/* ========================================
   AIMOT - AI Matchmaking of Trust
   Main Stylesheet
   ======================================== */

:root {
    --navy: #0a0f1e;
    --navy-light: #111833;
    --navy-mid: #1a2342;
    --gold: #D4A853;
    --gold-light: #e8c97a;
    --gold-dark: #b8903f;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #868e96;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --success: #51cf66;
    --warning: #fcc419;
    --danger: #ff6b6b;
    --info: #339af0;
    --sidebar-width: 260px;
    --topbar-height: 60px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Noto Sans KR', 'Inter', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); }

.btn-outline { background: transparent; border: 1.5px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }

.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--navy); font-weight: 600; }

.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ========================================
   BADGES
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-verified { background: rgba(81,207,102,0.15); color: var(--success); }
.badge-tokens { background: rgba(212,168,83,0.15); color: var(--gold); }
.badge-suggested { background: rgba(51,154,240,0.15); color: var(--info); }
.badge-questioning { background: rgba(252,196,25,0.15); color: var(--warning); }
.badge-mutual { background: rgba(81,207,102,0.15); color: var(--success); }
.badge-chatting { background: rgba(212,168,83,0.15); color: var(--gold); }
.badge-revealed { background: rgba(255,107,107,0.15); color: var(--danger); }

/* ========================================
   ALERTS
   ======================================== */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.9rem; }
.alert-error { background: rgba(255,107,107,0.1); color: var(--danger); border: 1px solid rgba(255,107,107,0.2); }
.alert-info { background: rgba(51,154,240,0.1); color: var(--info); border: 1px solid rgba(51,154,240,0.2); }

/* ========================================
   LANDING PAGE
   ======================================== */
.landing-body { background: var(--navy); color: var(--white); }

/* Language Toggle */
.lang-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 3px;
    backdrop-filter: blur(10px);
}
.lang-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}
.lang-btn.active { background: var(--gold); color: var(--navy); font-weight: 600; }

/* Landing Nav */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 16px 0;
    transition: var(--transition);
}
.landing-nav.scrolled { background: rgba(10,15,30,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(212,168,83,0.1); }
.landing-nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.brand-icon { font-size: 1.2rem; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 0.9rem; color: rgba(255,255,255,0.8); transition: var(--transition); }
.nav-links a:hover { color: var(--gold); }
.btn-demo { background: var(--gold); color: var(--navy) !important; padding: 8px 20px; border-radius: var(--radius-sm); font-weight: 600; }
.btn-nav-login { color: var(--gold) !important; font-weight: 600; padding: 8px 16px; border: 1.5px solid var(--gold); border-radius: var(--radius-sm); transition: var(--transition); }.btn-nav-login:hover { background: rgba(212,168,83,.1); }
.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 1.3rem; cursor: pointer; }
.mobile-menu { display: none; position: fixed; top: 60px; left: 0; right: 0; background: var(--navy-light); z-index: 998; flex-direction: column; padding: 16px 20px; gap: 12px; }
.mobile-menu a { color: rgba(255,255,255,0.8); padding: 8px 0; }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}
.hero > .container {
    text-align: center;
    max-width: 1200px;
}

.hero-bg-effects { position: absolute; inset: 0; pointer-events: none; }
.floating-heart {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.15;
    animation: floatHeart 8s ease-in-out infinite;
}
@keyframes floatHeart {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}
.hero-content { z-index: 1; }
.hero-badge {
    display: inline-block;
    background: rgba(212,168,83,0.15);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(212,168,83,0.2);
}
.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--white), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: 32px; line-height: 1.7; }
.hero-text { z-index: 1; }
.hero-buttons { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; justify-content: center; }
.hero-stats { display: flex; align-items: center; gap: 24px; justify-content: center; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.3rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

/* Phone Mockup */
.hero-visual { display: flex; justify-content: center; z-index: 1; margin-top: 48px; }
.phone-mockup {
    width: 280px;
    height: 500px;
    background: var(--navy-light);
    border-radius: 30px;
    padding: 12px;
    border: 2px solid rgba(212,168,83,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(212,168,83,0.1);
    animation: phoneFloat 6s ease-in-out infinite;
    max-width: 280px;
}
@keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.phone-screen {
    background: var(--navy-mid);
    border-radius: 20px;
    height: 100%;
    overflow: hidden;
    padding: 20px 16px;
}
.mock-header { text-align: center; font-weight: 600; margin-bottom: 20px; font-size: 0.9rem; }
.mock-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
}
.mock-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mock-info { flex: 1; }
.mock-name { font-weight: 600; font-size: 0.95rem; }
.mock-detail { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin: 4px 0; }
.mock-compat { display: flex; align-items: center; gap: 8px; }
.compat-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.compat-bar span { display: block; height: 100%; background: var(--gold); border-radius: 2px; }
.compat-score { font-size: 0.8rem; font-weight: 700; color: var(--gold); }

/* Sections */
.section { padding: 100px 0; }
.section-dark { background: var(--navy-light); }
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.section-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 1.05rem;
    margin-bottom: 60px;
}

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card {
    background: var(--navy-light);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    position: relative;
}
.step-card:hover { transform: translateY(-4px); border-color: rgba(212,168,83,0.3); }
.step-number {
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    opacity: 0.5;
}
.step-icon { font-size: 2rem; color: var(--gold); margin-bottom: 16px; }
.step-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step-card p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card {
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}
.feature-card:hover { border-color: rgba(212,168,83,0.3); transform: translateY(-4px); }
.feature-icon-wrap { margin-bottom: 24px; }
.feature-avatar-demo { display: flex; align-items: center; gap: 12px; }
.avatar-before { font-size: 2rem; opacity: 0.4; }
.avatar-arrow { color: var(--gold); }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--gold); }
.feature-card p { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.7; }

/* For Whom */
.whom-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.whom-card {
    background: var(--navy-light);
    border-radius: var(--radius);
    padding: 40px 32px;
    border: 1px solid rgba(255,255,255,0.05);
}
.whom-flag { font-size: 2.5rem; margin-bottom: 16px; }
.whom-card h3 { font-size: 1.3rem; margin-bottom: 20px; color: var(--gold); }
.whom-card ul { list-style: none; }
.whom-card li { padding: 8px 0; font-size: 0.95rem; color: rgba(255,255,255,0.8); }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-card {
    text-align: center;
    padding: 36px 24px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.05);
}
.trust-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 20px; }
.trust-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.trust-card p { font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* Pre-register Form */
.register-form-wrap { max-width: 600px; margin: 0 auto; }
.register-form {
    background: var(--navy-light);
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid rgba(212,168,83,0.15);
}
.form-row { display: flex; gap: 16px; }
.form-group { flex: 1; margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,0.08);
}
.form-group select option { background: var(--navy); }

.register-result {
    text-align: center;
    padding: 24px;
    margin-top: 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}
.register-result.success { background: rgba(81,207,102,0.1); color: var(--success); }
.register-result.error { background: rgba(255,107,107,0.1); color: var(--danger); }

/* Footer */
.landing-footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 40px 0 24px;
}
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.footer-brand { font-size: 1.2rem; font-weight: 700; }
.footer-brand p { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 4px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* ========================================
   AUTH PAGES
   ======================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    background: var(--navy-light);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255,255,255,0.05);
}
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-logo { font-size: 1.5rem; font-weight: 700; display: block; margin-bottom: 12px; }
.auth-form .form-group { margin-bottom: 16px; }
.auth-divider { text-align: center; margin: 20px 0; color: rgba(255,255,255,0.3); font-size: 0.85rem; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: rgba(255,255,255,0.1); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.auth-footer a { color: var(--gold); }

/* ========================================
   APP LAYOUT
   ======================================== */
.app-body { background: var(--gray-50); }

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--navy);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: var(--transition);
}
.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
}
.logo-icon { font-size: 1.2rem; }
.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
    margin-bottom: 4px;
}
.nav-item:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.nav-item.active { background: rgba(212,168,83,0.15); color: var(--gold); }
.nav-item i { width: 20px; text-align: center; }

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.token-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(212,168,83,0.1);
    border-radius: var(--radius-sm);
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
}
.logout-item { color: rgba(255,255,255,0.4) !important; }
.logout-item:hover { color: var(--danger) !important; }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}
.topbar {
    height: var(--topbar-height);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.hamburger { display: none; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--gray-700); }
.page-title { font-size: 1.1rem; font-weight: 600; color: var(--gray-800); flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.notification-icon { position: relative; cursor: pointer; color: var(--gray-600); font-size: 1.1rem; }
.notif-dot { position: absolute; top: -2px; right: -4px; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; }

.content-area { padding: 24px; max-width: 1100px; }

/* ========================================
   DASHBOARD
   ======================================== */
.welcome-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.welcome-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.avatar-emoji { font-size: 2.5rem; }
.welcome-info h2 { font-size: 1.3rem; color: var(--gray-900); margin-bottom: 4px; }
.welcome-info p { color: var(--gray-600); font-size: 0.9rem; margin-bottom: 8px; }
.welcome-badges { display: flex; gap: 8px; }

/* Quick Actions */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.action-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--gray-800);
}
.action-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.action-icon { font-size: 1.8rem; color: var(--gold); margin-bottom: 8px; }
.action-card span { font-size: 0.9rem; font-weight: 500; }

/* Section Header */
.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-header h3 { font-size: 1.1rem; color: var(--gray-800); }
.section-badge { background: var(--danger); color: white; font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; font-weight: 600; }

/* Match Cards (Dashboard) */
.match-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.match-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.match-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.match-card-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 0; }
.match-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.match-card-body { padding: 16px 20px; }
.match-card-body h4 { font-size: 1rem; color: var(--gray-900); margin-bottom: 4px; }
.match-meta { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 8px; }
.match-analysis { font-size: 0.8rem; color: var(--gray-600); margin-bottom: 10px; line-height: 1.5; }
.match-status { margin-top: 8px; }
.match-card-action {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--gray-50);
    color: var(--gold-dark);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}
.match-card-action:hover { background: var(--gold); color: var(--navy); }

/* Score Circle */
.score-circle, .score-circle-sm, .score-circle-lg {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.score-circle { width: 56px; height: 56px; }
.score-circle-sm { width: 48px; height: 48px; }
.score-circle-lg { width: 80px; height: 80px; }
.circular-chart { width: 100%; height: 100%; }
.circle-bg { fill: none; stroke: var(--gray-200); stroke-width: 2.5; }
.circle { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; transition: stroke-dasharray 1s ease; }
.score-text, .score-circle-sm span, .score-circle-lg span {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold-dark);
}
.score-circle-lg span { font-size: 1.1rem; }

/* AI Report Card */
.ai-report-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.report-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.report-item { display: flex; flex-direction: column; }
.report-label { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 4px; }
.report-value { font-weight: 600; color: var(--gray-800); }

/* ========================================
   CONSULT PAGE
   ======================================== */
.consult-page { height: calc(100vh - var(--topbar-height) - 48px); display: flex; flex-direction: column; }
.chat-container { flex: 1; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.chat-messages { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 20px; }

.chat-msg { display: flex; gap: 12px; max-width: 80%; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg.partner { align-self: flex-start; }
.msg-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.msg-bubble {
    background: var(--gray-100);
    padding: 14px 18px;
    border-radius: 16px 16px 16px 4px;
    max-width: 100%;
}
.chat-msg.user .msg-bubble {
    background: var(--gold);
    color: var(--navy);
    border-radius: 16px 16px 4px 16px;
}
.msg-sender { font-size: 0.75rem; font-weight: 600; color: var(--gold-dark); margin-bottom: 6px; }
.msg-bubble p { font-size: 0.9rem; line-height: 1.6; }
.msg-time { display: block; font-size: 0.7rem; color: var(--gray-500); margin-top: 6px; }
.chat-msg.user .msg-time { color: rgba(10,15,30,0.4); }

.ai-condition-box {
    background: rgba(255,255,255,0.8);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin: 10px 0;
}
.condition-item { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.85rem; }
.condition-label { font-weight: 600; color: var(--gray-700); }

.ai-search-result { margin-top: 8px; }
.search-status { color: var(--success); font-weight: 600; margin-bottom: 8px; }
.search-summary { margin: 12px 0; }
.candidate-mini { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.85rem; }
.mini-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
}

.chat-input-area { padding: 16px 24px; border-top: 1px solid var(--gray-200); }
.chat-input-wrap { display: flex; gap: 8px; }
.chat-input-wrap input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: var(--gray-50);
}
.chat-input-wrap input:disabled { opacity: 0.5; }
.btn-send {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-send:disabled { opacity: 0.3; }
.demo-notice { font-size: 0.8rem; color: var(--gray-500); margin-top: 8px; text-align: center; }

/* ========================================
   MATCH PAGE
   ======================================== */
.match-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filter-label { font-size: 0.9rem; color: var(--gray-600); font-weight: 500; }
.filter-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-600);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.match-list { display: flex; flex-direction: column; gap: 16px; }
.match-detail-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.match-detail-card:hover { box-shadow: var(--shadow-lg); }
.mdc-left { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mdc-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
}
.mdc-body { flex: 1; }
.mdc-header-row { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.mdc-header-row h4 { font-size: 1.1rem; }
.mdc-meta { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 8px; }
.mdc-analysis { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 10px; }
.mdc-analysis i { color: var(--gold); margin-right: 4px; }
.mdc-reasons { display: flex; gap: 6px; flex-wrap: wrap; }
.reason-tag {
    background: rgba(212,168,83,0.1);
    color: var(--gold-dark);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
}
.mdc-actions { display: flex; flex-direction: column; gap: 8px; }

/* ========================================
   MATCH DETAIL PAGE
   ======================================== */
.match-detail-page { max-width: 800px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gray-600); font-size: 0.9rem; margin-bottom: 20px; }
.back-link:hover { color: var(--gold-dark); }

.detail-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.detail-avatar-large {
    width: 100px; height: 100px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}
.detail-main-info { flex: 1; }
.detail-main-info h2 { font-size: 1.4rem; margin-bottom: 4px; }
.detail-meta { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 8px; }
.detail-score { text-align: center; }
.score-label { font-size: 0.8rem; color: var(--gray-500); margin-top: 4px; }

.detail-section {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.detail-section h3 { font-size: 1rem; color: var(--gray-800); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.detail-section h3 i { color: var(--gold); }

.report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.report-box {
    background: var(--gray-50);
    padding: 14px;
    border-radius: var(--radius-sm);
}
.report-box-label { font-size: 0.75rem; color: var(--gray-500); margin-bottom: 4px; }
.report-box-value { font-weight: 600; color: var(--gray-800); font-size: 0.95rem; }

.compat-reasons { display: flex; flex-direction: column; gap: 10px; }
.compat-reason { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--gray-700); }
.compat-reason i { color: var(--success); }

.bio-text { color: var(--gray-700); font-size: 0.95rem; line-height: 1.7; }

/* QA */
.qa-list { display: flex; flex-direction: column; gap: 16px; }
.qa-item { border-left: 3px solid var(--gold); padding-left: 16px; }
.qa-question { display: flex; align-items: flex-start; gap: 8px; font-size: 0.9rem; font-weight: 500; color: var(--gray-800); margin-bottom: 8px; }
.qa-question i { color: var(--gold); margin-top: 3px; }
.qa-answer { background: var(--gray-50); padding: 12px; border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--gray-700); margin-bottom: 6px; }
.qa-summary { font-size: 0.8rem; color: var(--info); font-style: italic; }
.qa-pending { font-size: 0.85rem; color: var(--gray-400); font-style: italic; }

.detail-actions { display: flex; gap: 12px; margin-top: 24px; }

/* ========================================
   CHAT PAGE
   ======================================== */
.chat-page .empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.chat-page .empty-state i { color: var(--gray-300); margin-bottom: 16px; }
.chat-page .empty-state h3 { color: var(--gray-700); margin-bottom: 8px; }

.chat-list { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.chat-list h3 { padding: 20px 24px; border-bottom: 1px solid var(--gray-200); font-size: 1rem; color: var(--gray-800); }
.chat-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}
.chat-list-item:hover { background: var(--gray-50); }
.cli-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.cli-info { flex: 1; }
.cli-name { font-weight: 600; font-size: 0.95rem; color: var(--gray-800); }
.cli-preview { font-size: 0.8rem; color: var(--gray-500); margin-top: 2px; }

/* Chat Room */
.chat-room-page { display: flex; flex-direction: column; height: calc(100vh - var(--topbar-height) - 48px); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.chat-room-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
}
.chat-room-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.chat-room-info { flex: 1; }
.chat-room-info h4 { font-size: 0.95rem; }
.online-status { font-size: 0.75rem; color: var(--success); }
.online-status i { font-size: 0.5rem; }

.chat-room-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.system-msg { text-align: center; }
.system-msg span {
    display: inline-block;
    background: var(--gray-100);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gray-500);
}
.msg-avatar-sm {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.msg-content { max-width: 70%; }
.chat-msg.partner .msg-bubble { background: var(--gray-100); border-radius: 16px 16px 16px 4px; }
.msg-translated {
    font-size: 0.8rem;
    color: var(--info);
    margin-top: 4px;
    padding: 6px 10px;
    background: rgba(51,154,240,0.05);
    border-radius: 8px;
    border-left: 2px solid var(--info);
}
.msg-time-sm { font-size: 0.7rem; color: var(--gray-400); margin-top: 4px; display: block; }
.chat-msg.user .msg-time-sm { text-align: right; }

.chat-room-input { padding: 16px 20px; border-top: 1px solid var(--gray-200); }

/* ========================================
   PROFILE PAGE
   ======================================== */
.profile-avatar-section {
    text-align: center;
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.profile-avatar-large {
    width: 100px; height: 100px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 2.5rem;
}
.profile-meta { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 12px; }
.profile-badges { display: flex; justify-content: center; gap: 8px; }

.profile-section {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.profile-section h3 { font-size: 1rem; color: var(--gray-800); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.profile-section h3 i { color: var(--gold); }

.avatar-style-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.style-tab {
    text-align: center;
    padding: 16px 12px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--gray-200);
    cursor: pointer;
    transition: var(--transition);
}
.style-tab.active { border-color: var(--gold); background: rgba(212,168,83,0.05); }
.style-preview {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
    font-size: 1.3rem;
}
.style-tab span { font-size: 0.8rem; color: var(--gray-600); }

.profile-bio-box {
    background: var(--gray-50);
    padding: 16px;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.7;
}

.verification-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.verify-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    text-align: center;
}
.verify-item i:first-child { font-size: 1.5rem; color: var(--gray-400); }
.verify-item span { font-size: 0.85rem; }
.verify-item.verified .status-icon { color: var(--success); }
.verify-item.pending .status-icon { color: var(--warning); }
.verify-item.verified i:first-child { color: var(--success); }
.verify-item.pending i:first-child { color: var(--warning); }

/* ========================================
   TOKEN PAGE
   ======================================== */
.token-balance-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    padding: 32px;
    border-radius: var(--radius);
    color: var(--white);
    margin-bottom: 24px;
}
.tbc-icon { font-size: 2.5rem; color: var(--gold); }
.tbc-label { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.tbc-amount { font-size: 2.5rem; font-weight: 700; color: var(--gold); }

.token-section {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.token-section h3 { font-size: 1rem; color: var(--gray-800); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.token-section h3 i { color: var(--gold); }

.token-packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.package-card {
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    position: relative;
    transition: var(--transition);
}
.package-card.popular { border-color: var(--gold); }
.package-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--navy);
    padding: 2px 12px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
}
.package-amount { font-size: 2rem; font-weight: 700; color: var(--gold-dark); }
.package-label { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 8px; }
.package-price { font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; }

.usage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.usage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}
.usage-item i { color: var(--gold); width: 20px; text-align: center; }
.usage-item span:first-of-type { flex: 1; font-size: 0.9rem; }
.usage-cost { font-weight: 600; color: var(--gold-dark); font-size: 0.85rem; }

.transaction-list { display: flex; flex-direction: column; }
.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}
.transaction-item:last-child { border-bottom: none; }
.ti-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
}
.ti-plus { background: rgba(81,207,102,0.1); color: var(--success); }
.ti-minus { background: rgba(255,107,107,0.1); color: var(--danger); }
.ti-info { flex: 1; }
.ti-desc { font-size: 0.9rem; color: var(--gray-800); }
.ti-date { font-size: 0.75rem; color: var(--gray-400); }
.ti-amount { font-weight: 700; font-size: 1rem; }
.ti-amount.positive { color: var(--success); }
.ti-amount.negative { color: var(--danger); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    /* Hero - mobile layout fix */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
        overflow: visible;
    }
    .hero > .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-text { width: 100%; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 24px; }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 12px;
        margin-bottom: 32px;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        white-space: nowrap;
        padding: 14px 20px;
    }
    .hero-stats { justify-content: center; gap: 16px; }
    .hero-visual {
        margin-top: 40px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .phone-mockup { width: 240px; height: 420px; }

    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .whom-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }

    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .mobile-menu.show { display: flex; }

    .lang-toggle { top: auto; bottom: 20px; right: 20px; }

    .footer-content { flex-direction: column; gap: 16px; text-align: center; }
    .footer-links { justify-content: center; }

    .section { padding: 60px 0; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 0.95rem; margin-bottom: 40px; }

    /* App layout mobile */
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.show { display: block; }
    .main-content { margin-left: 0; }
    .hamburger { display: block; }

    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .match-cards { grid-template-columns: 1fr; }
    .match-detail-card { flex-direction: column; text-align: center; }
    .mdc-actions { flex-direction: row; }
    .detail-hero { flex-direction: column; text-align: center; }
    .report-grid { grid-template-columns: 1fr; }
    .verification-grid { grid-template-columns: 1fr; }
    .avatar-style-tabs { grid-template-columns: repeat(2, 1fr); }
    .token-packages { grid-template-columns: 1fr; }
    .usage-grid { grid-template-columns: 1fr; }
    .welcome-card { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .steps-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.7rem; }
    .section-title { font-size: 1.6rem; }
    .content-area { padding: 16px; }
}



/* Features & trust sections - constrain card grids */
.features-grid,
.steps-grid {
    max-width: 1100px;
    margin: 0 auto;
}

.trust-grid {
    max-width: 1000px;
    margin: 0 auto;
}

/* For whom section */
.for-who-grid {
    max-width: 900px;
    margin: 0 auto;
}

/* Register form */
.register-form-wrap {
    max-width: 560px;
    margin: 0 auto;
}

/* Section content centering for wide screens */
@media (min-width: 1400px) {
    .section .container {
        max-width: 1200px;
    }

    .section-title {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .section-subtitle {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* PC: hero 좌우 배치 */
@media (min-width: 1200px) {
    .hero > .container {
        display: flex;
        align-items: center;
        gap: 60px;
        text-align: left;
        max-width: 1200px;
    }
    .hero-text {
        flex: 1;
        max-width: 560px;
    }
    .hero-buttons {
        justify-content: flex-start;
    }
    .hero-stats {
        justify-content: flex-start;
    }
    .hero-visual {
        flex: 0 0 auto;
        margin-top: 0;
    }
}
