/* SwipeJobs Design System */
:root {
    --primary: #FF6B3D;
    --primary-dark: #E45520;
    --primary-light: #FFF1E9;
    --secondary: #FF7A59;
    --accent: #F2A65A;
    --gradient-primary: linear-gradient(135deg, #FF7A59 0%, #F06B3D 100%);
    --success: #2FA372;
    --success-light: #EEF8F3;
    --danger: #E2575C;
    --danger-light: #FFF1F1;
    --warning: #E8A24A;
    --warning-light: #FFF8EB;
    --bg: #F7F4EF;
    --surface: #FCFBF8;
    --text: #1F2328;
    --text-secondary: #6A7280;
    --border: #E9E2D8;
    --radius: 26px;
    --radius-sm: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgba(31, 35, 40, 0.06);
    --shadow: 0 8px 24px rgba(31, 35, 40, 0.08);
    --shadow-lg: 0 16px 36px rgba(31, 35, 40, 0.12);
    --nav-height: 68px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --elevate: 0 12px 30px rgba(31, 35, 40, 0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background var(--transition), color var(--transition);
}

:root[data-theme="dark"] {
    --bg: #1D1F24;
    --surface: #25272D;
    --text: #F5F4EF;
    --text-secondary: #B8B9BF;
    --border: #3B3F47;
    --primary-light: #3C261D;
    --success-light: #17342A;
    --danger-light: #3B2326;
    --warning-light: #3C2D1D;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.34);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
img { max-width: 100%; display: block; }

.lang-switch {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 50;
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: var(--radius-full);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
}

.lang-switch-option {
    padding: 5px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
}

.lang-switch-option.active {
    background: white;
    color: var(--primary);
}

.lang-switch--inline {
    position: static;
    padding: 3px;
    background: var(--bg);
    backdrop-filter: none;
}

.lang-switch--inline .lang-switch-option {
    color: var(--text-secondary);
}

.lang-switch--inline .lang-switch-option.active {
    background: var(--primary);
    color: white;
}

.app-shell {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100dvh;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.page {
    min-height: 100dvh;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
}

.page--no-nav { padding-bottom: var(--safe-bottom); }

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 8px;
    position: sticky;
    top: 0;
    z-index: 50;
    animation: fadeDown 0.35s ease both;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    color: var(--text);
}

.icon-btn:active { transform: scale(0.92); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
    width: 100%;
    min-height: 56px;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 16px rgba(240, 107, 61, 0.18);
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.btn-primary:hover { filter: brightness(1.02); box-shadow: 0 8px 20px rgba(240, 107, 61, 0.2); }

.btn-outline {
    background: var(--surface);
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    width: auto;
    min-height: auto;
    padding: 8px;
}

.btn-social {
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text);
    font-weight: 500;
}

.btn-danger-text { color: var(--danger); }

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Form elements */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-input::placeholder { color: #94A3B8; }

textarea.form-input { min-height: 120px; resize: vertical; }

/* Pills & badges */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--primary-light);
    color: var(--primary);
}

.pill--success { background: var(--success-light); color: #0E9A6F; }
.pill--outline { background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary); }

.badge-match {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--success-light);
    color: #0E9A6F;
    font-size: 0.8125rem;
    font-weight: 600;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 11px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    padding: 8px 4px calc(8px + var(--safe-bottom));
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    padding: 8px 4px;
    color: var(--text-secondary);
    font-size: 0.6875rem;
    font-weight: 600;
    transition: color var(--transition), background var(--transition);
    position: relative;
    border-radius: 14px;
    min-height: 52px;
}

.nav-item:active {
    background: var(--primary-light);
}

.nav-item.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-item.active .nav-icon { transform: scale(1.12) translateY(-1px); }

.nav-icon {
    width: 24px;
    height: 24px;
    transition: transform var(--spring);
}

.nav-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--primary);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-nav {
    position: fixed;
    right: 16px;
    bottom: calc(var(--nav-height) + 12px);
    z-index: 110;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: var(--radius-full);
    background: var(--surface);
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
    animation: softFloat 3.2s ease-in-out infinite;
}

.theme-toggle-nav--inline {
    position: static;
    box-shadow: none;
    animation: none;
    padding: 0;
    border: none;
    background: none;
}

.theme-toggle-nav:hover {
    transform: translateY(-1px);
}

.theme-toggle-nav:active { transform: scale(0.96); }

.theme-toggle-nav__track {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: var(--border);
    display: inline-flex;
    align-items: center;
    padding: 3px;
    transition: background var(--transition);
}

:root[data-theme="dark"] .theme-toggle-nav__track {
    background: var(--gradient-primary);
}

.theme-toggle-nav__thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), background var(--transition);
}

:root[data-theme="dark"] .theme-toggle-nav__thumb {
    transform: translateX(20px);
}

.theme-toggle-nav__icon {
    font-size: 0.72rem;
    line-height: 1;
}

/* Splash Screen */
.splash {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, #FFE9DC 100%);
}

.splash-logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(255, 95, 109, 0.35);
    animation: float 3s ease-in-out infinite;
}

.splash-logo svg { width: 40px; height: 40px; color: white; }

.splash-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.splash-tagline {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    margin-bottom: 48px;
}

.splash-illustration {
    width: 280px;
    height: 200px;
    margin-bottom: 48px;
    position: relative;
}

.splash-dots {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.splash-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.splash-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }
.splash-dot:nth-child(2) { animation-delay: 0.2s; }
.splash-dot:nth-child(3) { animation-delay: 0.4s; }

.loader-bar {
    width: 120px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 32px;
}

.loader-bar-fill {
    height: 100%;
    width: 40%;
    background: var(--primary);
    border-radius: 2px;
    animation: loading 1.2s ease-in-out infinite;
}

/* Welcome */
.welcome-page {
    min-height: 100dvh;
    padding: 48px 24px 32px;
    display: flex;
    flex-direction: column;
}

.welcome-headline {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 12px;
}

.welcome-sub {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    margin-bottom: 40px;
}

.role-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.role-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 2px solid transparent;
}

.role-card:active { transform: scale(0.98); }
.role-card:hover { border-color: var(--primary-light); }

.role-card-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.role-card-icon--seeker { background: linear-gradient(135deg, #FFE4D3, #FFD1B3); }
.role-card-icon--giver { background: linear-gradient(135deg, #FFE0E3, #FFC9CF); }

.role-card-content { flex: 1; }

.role-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.role-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.role-card-arrow {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--spring);
}

.role-card:hover .role-card-arrow { transform: scale(1.08); }

.welcome-footer {
    text-align: center;
    padding-top: 32px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.welcome-footer a { color: var(--primary); font-weight: 600; }

/* Auth */
.auth-page {
    min-height: 100dvh;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.auth-back {
    margin-bottom: 24px;
}

.auth-header { margin-bottom: 32px; }

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.auth-subtitle { color: var(--text-secondary); }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-form { flex: 1; }

.auth-footer {
    text-align: center;
    padding: 24px 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.auth-footer a { color: var(--primary); font-weight: 600; }

.form-error {
    color: var(--danger);
    font-size: 0.8125rem;
    margin-top: 6px;
}

/* Discover / Swipe */
.discover-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 96px);
}

.swipe-container {
    flex: 1;
    position: relative;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
}

.swipe-stack {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 600px;
}

.swipe-card {
    position: absolute;
    inset: 0;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--elevate);
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    will-change: transform;
    backface-visibility: hidden;
    transform-origin: center center;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    contain: layout paint;
}

.swipe-card:active { cursor: grabbing; }

.swipe-card.is-dragging { transition: none; }

.swipe-card:nth-child(2) {
    transform: scale(0.96) translate3d(0, 10px, 0);
    z-index: 1;
}

.swipe-card:nth-child(3) {
    transform: scale(0.92) translate3d(0, 16px, 0);
    z-index: 0;
}

.swipe-card:nth-child(1) { z-index: 2; }

.swipe-stamp {
    position: absolute;
    top: 40px;
    padding: 8px 16px;
    border: 4px solid;
    border-radius: 8px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    opacity: 0;
    z-index: 10;
    pointer-events: none;
}

.swipe-stamp--like {
    right: 24px;
    color: var(--success);
    border-color: var(--success);
    transform: rotate(15deg);
}

.swipe-stamp--pass {
    left: 24px;
    color: var(--danger);
    border-color: var(--danger);
    transform: rotate(-15deg);
}

/* Job Card */
.job-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.job-card-hero {
    position: relative;
    width: 100%;
    height: 60%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #F7F2EA 0%, #ECE4DA 100%);
    animation: zoomIn 0.35s ease both;
}

.job-card-hero-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(28px) brightness(0.85) saturate(1.2);
    transform: scale(1.2);
}

.job-card-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31, 35, 40, 0.18) 0%, rgba(31, 35, 40, 0.56) 100%);
}

.job-card-logo {
    position: relative;
    z-index: 1;
    width: 112px;
    height: 112px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    border: 4px solid rgba(255, 255, 255, 0.9);
}

.job-card-overlay {
    position: relative;
    margin-top: -110px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 10%, rgba(15, 23, 42, 0.75) 55%, transparent);
    padding: 110px 24px 20px;
    color: white;
    flex-shrink: 0;
}

.job-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.job-title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.job-company {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
    font-size: 0.9375rem;
    margin-top: 4px;
}

.job-card-details {
    flex: 1;
    min-height: 0;
    padding: 20px 24px calc(20px + var(--safe-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.job-section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.job-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.job-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Candidate Card */
.candidate-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.candidate-photo {
    width: 100%;
    height: 60%;
    flex-shrink: 0;
    object-fit: cover;
    animation: zoomIn 0.35s ease both;
}

.candidate-overlay {
    position: relative;
    margin-top: -110px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 10%, rgba(15, 23, 42, 0.75) 55%, transparent);
    padding: 110px 24px 20px;
    color: white;
    flex-shrink: 0;
}

.candidate-name {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.candidate-role {
    font-size: 0.9375rem;
    opacity: 0.9;
    margin-top: 4px;
}

.candidate-details {
    flex: 1;
    min-height: 0;
    padding: 20px 24px calc(20px + var(--safe-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.candidate-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.candidate-bio {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Swipe Actions */
.swipe-actions {
    position: fixed;
    bottom: calc(var(--nav-height) + var(--safe-bottom) + 10px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 60;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(252, 251, 248, 0.82);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 20px rgba(31, 35, 40, 0.06);
}

:root[data-theme="dark"] .swipe-actions {
    background: rgba(37, 39, 45, 0.82);
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform var(--spring), box-shadow var(--transition), background var(--transition);
}

.action-btn:hover {
    transform: translateY(-2px) scale(1.01);
}

.action-btn:active { transform: scale(0.92); }

.action-btn--pass { color: var(--danger); }
.action-btn--pass svg { width: 28px; height: 28px; }

.action-btn--super {
    width: 52px;
    height: 52px;
    color: var(--warning);
}

.action-btn--like {
    color: var(--success);
    background: var(--success-light);
}

.action-btn--like svg { width: 28px; height: 28px; }

.action-btn:hover { box-shadow: var(--shadow-lg); }

/* Match Modal */
.match-overlay {
    position: fixed;
    inset: 0;
    background: var(--gradient-primary);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.4s ease;
}

.match-modal {
    text-align: center;
    color: white;
    width: 100%;
    max-width: 360px;
    animation: scaleIn 0.5s var(--spring);
}

.match-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    animation: shimmer 2s ease-in-out infinite;
}

.match-subtitle {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 40px;
}

.match-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}

.match-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.match-avatar:first-child { z-index: 2; margin-right: -20px; }
.match-avatar:last-child { z-index: 1; margin-left: -20px; }

.match-heart {
    position: absolute;
    width: 48px;
    height: 48px;
    background: white;
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    animation: heartbeat 1s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.match-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-actions .btn-primary { background: white; color: var(--primary); }
.match-actions .btn-outline { border-color: rgba(255,255,255,0.3); color: white; background: transparent; }

/* Messages */
.search-bar {
    margin: 0 20px 16px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: none;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.search-bar svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    width: 18px;
    height: 18px;
}

.conversation-list { padding: 0 20px; }

.conversation-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), transform var(--transition), opacity var(--transition);
}

.conversation-item:hover {
    transform: translateY(-1px);
}

.conversation-item:active {
    opacity: 0.7;
    transform: scale(0.99);
}

.conversation-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.conversation-content { flex: 1; min-width: 0; }

.conversation-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
}

.conversation-preview {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-meta {
    text-align: right;
    flex-shrink: 0;
}

.conversation-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.unread-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Chat */
.chat-page {
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: var(--safe-bottom);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-header-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-header-info { flex: 1; }

.chat-header-name { font-weight: 600; font-size: 1rem; }

.chat-header-status {
    font-size: 0.8125rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

.chat-messages {
    flex: 1;
    padding: 16px 20px;
    overflow-y: auto;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 0.9375rem;
    line-height: 1.4;
    animation: messageIn 0.22s ease;
}

.message--new {
    animation: messageIn 0.22s ease;
}

.message--received {
    align-self: flex-start;
    background: var(--surface);
    border-bottom-left-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.message--sent {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 6px;
}

.message--system {
    align-self: center;
    max-width: 90%;
    background: var(--warning);
    color: #fff;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 8px 16px;
}

.hire-propose { position: relative; }

.hire-propose > summary { list-style: none; cursor: pointer; }
.hire-propose > summary::-webkit-details-marker { display: none; }

.hire-propose-form {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 220px;
    padding: 14px;
    margin-top: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.hire-propose-form label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hire-propose-form input {
    font-size: 0.875rem;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: inherit;
}

.hire-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    background: var(--warning);
    color: #fff;
    flex-shrink: 0;
}

.hire-banner p { margin: 0; font-size: 0.8125rem; font-weight: 600; }

.hire-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.message-time {
    font-size: 0.6875rem;
    opacity: 0.6;
    margin-top: 4px;
}

.chat-input-bar {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 16px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    padding: 4px 4px 4px 16px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.chat-input-wrap:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(255, 122, 61, 0.14);
}

.chat-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    outline: none;
    max-height: 100px;
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--spring), opacity var(--transition);
}

.chat-send-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.chat-send-btn:active { transform: scale(0.9); }

/* Profile */
.profile-header {
    text-align: center;
    padding: 24px 20px;
}

.profile-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--surface);
    box-shadow: var(--shadow);
}

.profile-available {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--success);
    border: 3px solid var(--surface);
    border-radius: 50%;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.profile-title { color: var(--text-secondary); margin-bottom: 4px; }

.profile-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 20px;
    margin: 0 20px 24px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

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

.stat-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.profile-section {
    padding: 0 20px 24px;
}

.profile-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.profile-bio {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Matches List */
.match-list { padding: 0 20px; }

.match-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.match-item:hover,
.conversation-item:hover,
.settings-item:hover,
.plan-card:hover,
.addon-card:hover,
.role-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.match-item:active { transform: scale(0.98); }

.match-item-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.match-item-info { flex: 1; }

.match-item-name { font-weight: 600; margin-bottom: 2px; }

.match-item-role { font-size: 0.875rem; color: var(--text-secondary); }

.match-item-avatar--square { border-radius: var(--radius-sm); }

.match-item-remove {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: var(--bg);
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
}

.match-item-remove:hover { background: var(--danger-light); color: var(--danger); }

/* Filters */
.filters-page { padding: 0 20px 100px; }

.filter-section { margin-bottom: 28px; }

.filter-label {
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-value { color: var(--primary); font-size: 0.875rem; }

.range-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 3px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.segment-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.segment-btn {
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.segment-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.filters-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    padding: 16px 20px calc(16px + var(--safe-bottom));
    background: var(--surface);
    border-top: 1px solid var(--border);
}

/* Settings */
.settings-list {
    padding: 0 20px;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
    transition: opacity var(--transition);
}

.settings-item:active { opacity: 0.6; }

.settings-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.settings-item--danger { color: var(--danger); }

.premium-badge {
    margin-left: auto;
    padding: 4px 10px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 32px;
    color: var(--text-secondary);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

/* Onboarding */
.onboarding-page {
    min-height: 100dvh;
    padding: 24px 20px 40px;
}

.onboarding-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 32px;
}

.progress-step {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
}

.progress-step.active { background: var(--primary); }

.onboarding-step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.onboarding-step-desc {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.avatar-upload {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.avatar-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload input { display: none; }

/* Confetti */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 201;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall linear forwards;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

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

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

@keyframes confettiFall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

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

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes softFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes skeleton {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--border) 0%, #F1F5F9 50%, var(--border) 100%);
    background-size: 200px 100%;
    animation: skeleton 1.2s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

/* Utilities */
.page, .welcome-page, .auth-page, .discover-page, .profile-header, .profile-stats, .billing-summary-card, .filters-page, .settings-list, .match-list, .conversation-list, .plan-card, .addon-card, .role-card, .match-item, .conversation-item, .settings-item, .empty-state, .card {
    animation: fadeUp 0.45s var(--transition);
}

.btn, .icon-btn, .action-btn, .segment-btn, .form-input, .nav-item, .match-item-remove, .conversation-item, .settings-item {
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
}

.btn:focus-visible, .icon-btn:focus-visible, .action-btn:focus-visible, .segment-btn:focus-visible, .form-input:focus-visible {
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(255, 122, 61, 0.16);
}

.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }

@media (min-width: 431px) {
    body { background: #FFE9DC; }
    .app-shell { box-shadow: 0 0 60px rgba(255, 95, 109, 0.18); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Pricing / Billing */
.cycle-toggle {
    display: flex;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    padding: 4px;
    margin: 0 20px 20px;
}

.cycle-toggle-option {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    position: relative;
}

.cycle-toggle input { position: absolute; opacity: 0; pointer-events: none; }

.cycle-toggle-option.active {
    background: var(--primary);
    color: white;
}

.cycle-save-badge {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--success);
}

.cycle-toggle-option.active .cycle-save-badge { color: #DAF6EB; }

.plan-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 20px;
}

.plan-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    padding: 24px;
    position: relative;
}

.plan-card--current { border-color: var(--success); }

.plan-card--featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--surface) 140px);
}

.plan-card-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-full);
}

.plan-card-current-tag {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--success);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.plan-card-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.plan-card-tagline {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 2px;
    margin-bottom: 16px;
}

.plan-card-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.plan-card-price-amount {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.plan-card-price-period {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.plan-card-price-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.plan-feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.plan-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
}

.plan-feature svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--success);
}

/* Add-ons */
.addon-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
}

.addon-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.addon-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    flex-shrink: 0;
}

.addon-info { flex: 1; min-width: 0; }
.addon-name { font-weight: 700; font-size: 0.9375rem; }
.addon-desc { color: var(--text-secondary); font-size: 0.8125rem; margin-top: 2px; }
.addon-price { font-weight: 700; font-size: 0.9375rem; white-space: nowrap; }

.addon-buy-btn {
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.addon-active-tag {
    background: var(--success-light);
    color: #0E9A6F;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

/* Billing summary */
.billing-summary-card {
    margin: 0 20px 20px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.billing-plan-name {
    font-size: 1.375rem;
    font-weight: 800;
}

.billing-plan-meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 2px;
    margin-bottom: 20px;
}

/* My Jobs (business job management) */
.btn-sm {
    width: auto;
    min-height: auto;
    padding: 10px 16px;
    font-size: 0.8125rem;
}

.job-manage-list {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.job-manage-item { padding: 18px; }

.job-manage-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.job-manage-title { font-weight: 700; font-size: 1.0625rem; }

.job-manage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.job-manage-stats {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.job-manage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-form-page { padding: 0 20px; }

.section-label {
    padding: 0 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 24px 0 12px;
}
