/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Disable text selection and context menu for security */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Allow text selection in input fields */
input, textarea, [contenteditable] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
    position: relative;
    overflow-y: auto;
}

.screen.active {
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Card */
.form-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    width: 100%;
    position: relative;
    backdrop-filter: blur(10px);
}

/* App Logo */
.app-logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.app-logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.tagline {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e91e63, #9c27b0);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    color: #333;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 30px;
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Phone Input */
.phone-input {
    display: flex;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.phone-input:focus-within {
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.country-code {
    background: #f8f9fa;
    padding: 16px;
    color: #666;
    border-right: 1px solid #e0e0e0;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.phone-input input {
    border: none;
    flex: 1;
    padding: 16px;
    background: transparent;
}

.phone-input input:focus {
    border: none;
    box-shadow: none;
    transform: none;
}

/* OTP Info */
.otp-info {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
    text-align: center;
}

/* Photo Upload */
.photo-upload {
    position: relative;
}

.photo-preview {
    width: 120px;
    height: 120px;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
    background: #f8f9fa;
}

.photo-preview:hover {
    border-color: #e91e63;
    background: #fce4ec;
}

.photo-preview i {
    font-size: 2rem;
    color: #999;
    margin-bottom: 8px;
}

.photo-preview span {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

.photo-preview.has-image {
    border: none;
    padding: 0;
    overflow: hidden;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* City Tags */
.city-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.city-tag {
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    background: white;
}

.city-tag:hover {
    border-color: #e91e63;
    background: #fce4ec;
}

.city-tag.selected {
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: white;
    border-color: transparent;
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(233, 30, 99, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: #e91e63;
    border: 2px solid #e91e63;
}

.btn-secondary:hover {
    background: #e91e63;
    color: white;
}

/* Option List */
.option-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-list.scrollable {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.option-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 30, 99, 0.1), transparent);
    transition: left 0.5s ease;
}

.option-item:hover::before {
    left: 100%;
}

.option-item:hover {
    border-color: #e91e63;
    background: #fce4ec;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.option-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.option-icon {
    font-size: 1.5rem;
    color: #e91e63;
    width: 30px;
    text-align: center;
}

.option-item span {
    font-weight: 500;
    color: #333;
    font-size: 1rem;
}

.option-item > i {
    color: #999;
    font-size: 1.2rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background: #f8f9fa;
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    background: white;
    border-color: #e91e63;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: white;
}

.feature-icon.verified { background: linear-gradient(135deg, #4caf50, #45a049); }
.feature-icon.privacy { background: linear-gradient(135deg, #2196f3, #1976d2); }
.feature-icon.matching { background: linear-gradient(135deg, #e91e63, #c2185b); }
.feature-icon.support { background: linear-gradient(135deg, #ff9800, #f57c00); }

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #333;
}

.feature-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Login Footer */
.login-footer {
    margin-top: 30px;
    text-align: center;
}

.login-footer p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.login-footer a {
    color: #e91e63;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Matches Screen */
.matches-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.matches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.header-left h2 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 2rem;
    font-weight: 700;
}

.header-left p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Match Card */
.match-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
    flex: 1;
    position: relative;
    max-height: 600px;
}

.match-photo-container {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.match-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 40px 25px 25px;
}

.match-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.match-age-location {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.match-occupation {
    font-size: 0.9rem;
    opacity: 0.8;
}

.match-details {
    padding: 25px;
}

.match-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.match-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.match-detail i {
    color: #e91e63;
    width: 16px;
    text-align: center;
}

.match-bio {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Match Actions */
.match-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 0 20px 20px;
}

.action-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.action-btn:hover::before {
    width: 100%;
    height: 100%;
}

.action-btn.pass {
    background: #f5f5f5;
    color: #999;
}

.action-btn.pass:hover {
    background: #ff5722;
    color: white;
    transform: scale(1.1);
}

.action-btn.super-like {
    background: #2196f3;
    color: white;
}

.action-btn.super-like:hover {
    background: #1976d2;
    transform: scale(1.1);
}

.action-btn.like {
    background: #e91e63;
    color: white;
}

.action-btn.like:hover {
    background: #c2185b;
    transform: scale(1.1);
}

/* Chat Screen */
.chat-container {
    max-width: 420px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
}

.chat-list {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: white;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.chat-header h2 {
    margin: 0;
    color: #333;
    flex: 1;
}

.back-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.chat-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.chat-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.chat-tab.active {
    color: #e91e63;
    border-bottom-color: #e91e63;
}

.matched-users {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.matched-user-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.matched-user-item:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.matched-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e91e63;
}

.matched-user-info {
    flex: 1;
}

.matched-user-info h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1rem;
}

.matched-user-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.last-message {
    font-size: 0.85rem;
    color: #999;
    margin-top: 3px;
}

.message-time {
    font-size: 0.8rem;
    color: #999;
    text-align: right;
}

/* Chat Window */
.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-window-header {
    background: white;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.chat-user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e91e63;
}

.chat-user-details h3 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.chat-user-details p {
    margin: 0;
    font-size: 0.85rem;
    color: #4caf50;
}

.chat-actions {
    display: flex;
    gap: 10px;
}

.messages-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    display: flex;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.sent {
    justify-content: flex-end;
}

.message.received {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
}

.message.sent .message-bubble {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    border-bottom-right-radius: 6px;
}

.message.received .message-bubble {
    background: white;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 6px;
}

.message-text {
    margin: 0;
    line-height: 1.4;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 5px;
    text-align: right;
}

.message.received .message-time {
    text-align: left;
}

.message-input-container {
    background: white;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    align-items: center;
}

.attachment-btn {
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
}

.attachment-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.message-input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    background: #f8f9fa;
}

.message-input-container input:focus {
    border-color: #e91e63;
    background: white;
}

.send-btn {
    background: #e91e63;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: #c2185b;
    transform: scale(1.1);
}

.send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Profile Screen */
.profile-container {
    max-width: 420px;
    margin: 0 auto;
    min-height: 100vh;
    background: white;
}

.profile-header {
    background: white;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.profile-header h2 {
    margin: 0;
    color: #333;
    flex: 1;
}

.profile-content {
    padding: 20px;
}

.profile-photo-section {
    text-align: center;
    margin-bottom: 30px;
}

.profile-photo-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e91e63;
    margin-bottom: 15px;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.profile-tagline {
    color: #666;
    font-size: 1rem;
}

.profile-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.profile-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-info-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.profile-info-value {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

/* Match Notification */
.match-notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: matchFadeIn 0.5s ease-out;
}

@keyframes matchFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.match-content {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    position: relative;
}

.match-animation {
    font-size: 4rem;
    color: #e91e63;
    margin-bottom: 20px;
    animation: heartPulse 1s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.match-content h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2rem;
}

.match-user-photos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.match-user-photos img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e91e63;
}

.match-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.match-actions {
    display: flex;
    gap: 15px;
}

.match-actions button {
    flex: 1;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 20px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e91e63;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Background Gradients */
#loginScreen {
    background: linear-gradient(135deg, #e91e63, #9c27b0);
}

#profileForScreen {
    background: linear-gradient(135deg, #2196f3, #00bcd4);
}

#lookingForScreen {
    background: linear-gradient(135deg, #4caf50, #009688);
}

#genderScreen {
    background: linear-gradient(135deg, #9c27b0, #e91e63);
}

#religionScreen {
    background: linear-gradient(135deg, #ff9800, #f44336);
}

#casteScreen {
    background: linear-gradient(135deg, #3f51b5, #9c27b0);
}

#otherCasteScreen {
    background: linear-gradient(135deg, #009688, #2196f3);
}

#motherTongueScreen {
    background: linear-gradient(135deg, #00bcd4, #2196f3);
}

#featuresScreen {
    background: linear-gradient(135deg, #4caf50, #009688);
}

#profileCreationScreen {
    background: linear-gradient(135deg, #673ab7, #9c27b0);
}

#matchesScreen {
    background: linear-gradient(135deg, #e91e63, #f06292);
}

#chatScreen {
    background: #f8f9fa;
}

#profileScreen {
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .form-card {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .match-details-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .profile-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .matches-container,
    .chat-container,
    .profile-container {
        padding: 15px;
    }
    
    .app-logo h1 {
        font-size: 2rem;
    }
    
    .match-name {
        font-size: 1.5rem;
    }
    
    .match-actions {
        gap: 10px;
    }
    
    .action-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 360px) {
    .form-card {
        padding: 25px 15px;
    }
    
    .city-tags {
        gap: 8px;
    }
    
    .city-tag {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .match-card {
        max-height: 500px;
    }
    
    .match-photo-container {
        height: 350px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Touch and Gesture Support */
.match-card {
    touch-action: pan-y;
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .app-logo h1 {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .screen {
        display: none !important;
    }
}