/* ============================================
   EARTHVASI — DESIGN SYSTEM 2026
   Ultra-premium dark glassmorphism
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Bricolage+Grotesque:wght@400;600;700;800&display=swap');

:root {
    /* Brand */
    --brand:    #6366f1;
    --brand2:   #8b5cf6;
    --accent:   #f472b6;
    --success:  #22d3ee;
    --warn:     #fbbf24;
    --danger:   #f87171;
    --green:    #34d399;

    /* Dark surfaces */
    --bg:       #05050f;
    --bg2:      #0a0a18;
    --bg3:      #0f0f22;
    --bg4:      #141430;
    --surface:  rgba(255,255,255,0.032);
    --surface2: rgba(255,255,255,0.055);
    --surface3: rgba(255,255,255,0.08);

    /* Borders */
    --bdr:  rgba(255,255,255,0.07);
    --bdr2: rgba(255,255,255,0.12);
    --bdr3: rgba(255,255,255,0.18);

    /* Text */
    --t1: #f8fafc;
    --t2: #cbd5e1;
    --t3: #64748b;
    --t4: #334155;

    /* Gradients */
    --grad:  linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #f472b6 100%);
    --grad2: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --grad3: linear-gradient(135deg, #f472b6 0%, #fb923c 100%);
    --glow:  linear-gradient(135deg, rgba(99,102,241,0.15), rgba(244,114,182,0.1));

    /* Radius */
    --r-sm: 10px;
    --r:    16px;
    --r-lg: 24px;
    --r-xl: 32px;

    /* Fonts */
    --fh: 'Bricolage Grotesque', sans-serif;
    --fb: 'Plus Jakarta Sans', sans-serif;

    /* Shadows */
    --shadow:    0 8px 32px rgba(0,0,0,0.6);
    --shadow-lg: 0 24px 80px rgba(0,0,0,0.7);
    --glow-brand: 0 0 40px rgba(99,102,241,0.25);
}

/* ===== RESET ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
    font-family: var(--fb);
    background: var(--bg);
    color: var(--t2);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== BACKGROUND MESH ===== */
.bg-mesh {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(ellipse 90% 70% at -10% 10%,  rgba(99,102,241,0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 110% 90%,  rgba(244,114,182,0.14) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 50%,   rgba(139,92,246,0.07) 0%, transparent 60%),
        var(--bg);
}
.bg-grid {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.4); border-radius: 2px; }

/* ===== SELECTION ===== */
::selection { background: rgba(99,102,241,0.4); color: white; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5 { font-family: var(--fh); font-weight: 700; color: var(--t1); line-height: 1.2; }
a { text-decoration: none; color: inherit; }

/* ===== UTILITY ===== */
.hidden { display: none !important; }
.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.glass {
    background: var(--surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--bdr);
}
.glass2 { background: var(--surface2); backdrop-filter: blur(24px); border: 1px solid var(--bdr2); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 50px; border: none;
    font-family: var(--fb); font-size: 0.9rem; font-weight: 600;
    cursor: pointer; transition: all 0.25s; white-space: nowrap;
}
.btn-primary {
    background: var(--grad); color: white;
    box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.5); opacity: 0.92; }
.btn-primary:active { transform: translateY(0); }

.btn-ghost { background: var(--surface2); border: 1px solid var(--bdr2); color: var(--t2); }
.btn-ghost:hover { background: var(--surface3); border-color: var(--bdr3); color: var(--t1); }

.btn-outline { background: transparent; border: 1.5px solid var(--bdr2); color: var(--t2); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: rgba(99,102,241,0.06); }

.btn-danger { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.25); color: var(--danger); }
.btn-danger:hover { background: rgba(248,113,113,0.2); }

.btn-success { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.25); color: var(--green); }
.btn-success:hover { background: rgba(52,211,153,0.2); }

.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }

.btn-glow { animation: btnGlow 2.5s ease-in-out infinite; }
@keyframes btnGlow {
    0%,100% { box-shadow: 0 4px 20px rgba(99,102,241,0.35); }
    50% { box-shadow: 0 4px 40px rgba(244,114,182,0.55), 0 0 80px rgba(99,102,241,0.2); }
}

/* ===== INPUTS ===== */
.input {
    width: 100%; padding: 13px 16px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid var(--bdr);
    border-radius: var(--r-sm);
    color: var(--t1); font-family: var(--fb); font-size: 0.92rem;
    transition: border-color 0.2s, background 0.2s; outline: none;
}
.input:focus { border-color: var(--brand); background: rgba(99,102,241,0.05); }
.input::placeholder { color: var(--t3); }
.input-group { position: relative; }
.input-group .input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--t3); font-size: 0.85rem; pointer-events: none; }
.input-group .input { padding-left: 40px; }
.input-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.input-hint { font-size: 0.75rem; color: var(--t3); margin-top: 5px; }
.input-error { font-size: 0.75rem; color: var(--danger); margin-top: 5px; }

/* ===== CARD ===== */
.card {
    background: var(--surface);
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover { border-color: var(--bdr2); }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.4); border-color: rgba(99,102,241,0.3); }

/* ===== BADGE ===== */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; }
.badge-brand  { background: rgba(99,102,241,0.15); color: #818cf8; border: 1px solid rgba(99,102,241,0.25); }
.badge-green  { background: rgba(52,211,153,0.12); color: var(--green); border: 1px solid rgba(52,211,153,0.22); }
.badge-warn   { background: rgba(251,191,36,0.12); color: var(--warn); border: 1px solid rgba(251,191,36,0.22); }
.badge-danger { background: rgba(248,113,113,0.12); color: var(--danger); border: 1px solid rgba(248,113,113,0.22); }
.badge-cyan   { background: rgba(34,211,238,0.12); color: var(--success); border: 1px solid rgba(34,211,238,0.22); }

/* ===== NAV ===== */
.site-nav {
    position: sticky; top: 0; z-index: 200;
    height: 64px;
    background: rgba(5,5,15,0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--bdr);
}
.site-nav .nav-inner {
    max-width: 1140px; margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 34px; height: 34px; border-radius: 10px; background: var(--surface3); padding: 5px; border: 1px solid var(--bdr2); }
.nav-logo .logo-name { font-family: var(--fh); font-weight: 800; font-size: 1.15rem; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--t3); font-size: 0.88rem; font-weight: 500; padding: 7px 14px; border-radius: 50px; transition: all 0.2s; }
.nav-links a:hover { color: var(--t1); background: var(--surface2); }
.nav-links a.active { color: var(--brand); background: rgba(99,102,241,0.1); }

.nav-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--grad); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; color: white; cursor: pointer;
    overflow: hidden; border: 2px solid rgba(99,102,241,0.4);
    transition: border-color 0.2s;
}
.nav-avatar:hover { border-color: var(--brand); }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

.nav-notif-btn {
    position: relative; width: 36px; height: 36px; border-radius: 50%;
    background: var(--surface2); border: 1px solid var(--bdr);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; color: var(--t2);
}
.nav-notif-btn:hover { background: var(--surface3); color: var(--t1); }
.notif-dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; border: 2px solid var(--bg); display: none; }
.notif-dot.show { display: block; animation: blink 1.5s infinite; }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:0.3} }

/* Notification dropdown */
.notif-dropdown {
    position: absolute; top: 52px; right: 0; width: 340px;
    background: var(--bg3); border: 1px solid var(--bdr2);
    border-radius: var(--r); box-shadow: var(--shadow-lg);
    overflow: hidden; z-index: 300; display: none;
}
.notif-dropdown.open { display: block; animation: dropIn 0.2s ease; }
@keyframes dropIn { from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)} }
.notif-header { padding: 14px 18px; border-bottom: 1px solid var(--bdr); display: flex; align-items: center; justify-content: space-between; }
.notif-header h4 { font-size: 0.88rem; font-weight: 700; color: var(--t1); }
.notif-header a { font-size: 0.75rem; color: var(--brand); }
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item { padding: 14px 18px; border-bottom: 1px solid var(--bdr); cursor: pointer; transition: background 0.2s; }
.notif-item:hover { background: var(--surface2); }
.notif-item.unread { background: rgba(99,102,241,0.05); }
.notif-item .ni-title { font-size: 0.85rem; font-weight: 600; color: var(--t1); margin-bottom: 3px; }
.notif-item .ni-msg { font-size: 0.78rem; color: var(--t3); line-height: 1.4; }
.notif-item .ni-time { font-size: 0.7rem; color: var(--t4); margin-top: 4px; }
.notif-empty { padding: 28px; text-align: center; color: var(--t3); font-size: 0.85rem; }

/* User menu dropdown */
.user-menu-wrap { position: relative; }
.user-dropdown {
    position: absolute; top: 48px; right: 0; width: 220px;
    background: var(--bg3); border: 1px solid var(--bdr2);
    border-radius: var(--r); box-shadow: var(--shadow-lg);
    overflow: hidden; z-index: 300; display: none;
}
.user-dropdown.open { display: block; animation: dropIn 0.2s ease; }
.user-dropdown-header { padding: 16px; border-bottom: 1px solid var(--bdr); }
.udh-name { font-weight: 700; font-size: 0.9rem; color: var(--t1); }
.udh-email { font-size: 0.75rem; color: var(--t3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.udh-status { margin-top: 8px; }
.user-dropdown a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; color: var(--t2); font-size: 0.85rem; font-weight: 500; transition: all 0.2s; }
.user-dropdown a i { width: 16px; text-align: center; color: var(--t3); }
.user-dropdown a:hover { background: var(--surface2); color: var(--t1); }
.user-dropdown a:hover i { color: var(--brand); }
.user-dropdown .ud-danger { color: var(--danger) !important; }
.user-dropdown .ud-danger i { color: var(--danger) !important; }
.ud-divider { height: 1px; background: var(--bdr); margin: 4px 0; }

/* ===== HERO (Homepage) ===== */
.hero-wrap { max-width: 780px; margin: 0 auto; padding: 48px 24px 24px; text-align: center; }
.hero-wrap .hero-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.22);
    color: #818cf8; padding: 6px 16px; border-radius: 50px;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.3px; margin-bottom: 24px;
}
.hero-wrap .hero-pill .pulse { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 6px var(--green); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0%,100%{opacity:1;transform:scale(1)}50%{opacity:0.4;transform:scale(1.5)} }

.hero-title {
    font-family: var(--fh); font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800; line-height: 1.1; margin-bottom: 18px; color: var(--t1);
    letter-spacing: -1.5px;
}
.hero-title .accent-line { display: block; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.hero-sub { font-size: 1.05rem; color: var(--t3); max-width: 480px; margin: 0 auto 32px; line-height: 1.65; }

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }

.stats-row { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 8px; }
.stat-item { text-align: center; }
.stat-item .s-val { font-family: var(--fh); font-size: 1.6rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-item .s-label { font-size: 0.75rem; color: var(--t3); margin-top: 1px; }

/* ===== FEATURES GRID ===== */
.features-section { max-width: 1080px; margin: 56px auto; padding: 0 24px; }
.section-eyebrow { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--brand2); margin-bottom: 14px; }
.section-eyebrow::before, .section-eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--bdr2); max-width: 80px; }
.section-title-lg { font-family: var(--fh); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; text-align: center; margin-bottom: 10px; color: var(--t1); letter-spacing: -0.5px; }
.section-sub { text-align: center; color: var(--t3); font-size: 0.95rem; margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }

.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.feat-card {
    background: var(--surface); border: 1px solid var(--bdr);
    border-radius: var(--r); padding: 24px 20px;
    transition: all 0.3s; cursor: default;
}
.feat-card:hover { border-color: rgba(99,102,241,0.35); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(99,102,241,0.15); }
.feat-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 1.2rem; }
.feat-icon.indigo { background: rgba(99,102,241,0.15); color: #818cf8; }
.feat-icon.purple { background: rgba(139,92,246,0.15); color: #a78bfa; }
.feat-icon.pink   { background: rgba(244,114,182,0.15); color: #f9a8d4; }
.feat-icon.cyan   { background: rgba(34,211,238,0.15);  color: #67e8f9; }
.feat-icon.green  { background: rgba(52,211,153,0.15);  color: #6ee7b7; }
.feat-icon.orange { background: rgba(251,146,60,0.15);  color: #fcd34d; }
.feat-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--t1); margin-bottom: 6px; }
.feat-card p  { font-size: 0.82rem; color: var(--t3); line-height: 1.55; }

/* ===== HOW IT WORKS ===== */
.how-section { max-width: 860px; margin: 0 auto 56px; padding: 0 24px; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.steps-row::before { content:''; position:absolute; top:28px; left:calc(16.6% + 16px); right:calc(16.6% + 16px); height:1px; background:linear-gradient(90deg,transparent,var(--bdr3),transparent); }
.step-card { text-align: center; padding: 28px 16px 24px; background: var(--surface); border: 1px solid var(--bdr); border-radius: var(--r); position: relative; transition: all 0.3s; }
.step-card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-3px); }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: white; font-family: var(--fh); font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; box-shadow: 0 4px 14px rgba(99,102,241,0.4); }
.step-card i { font-size: 1.6rem; color: var(--brand2); display: block; margin-bottom: 12px; }
.step-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; color: var(--t1); }
.step-card p { font-size: 0.8rem; color: var(--t3); line-height: 1.55; }

/* ===== BLOG PREVIEW ===== */
.blog-preview { max-width: 1080px; margin: 0 auto 56px; padding: 0 24px; }
.blog-grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 24px; }
.blog-mini {
    background: var(--surface); border: 1px solid var(--bdr); border-radius: var(--r);
    padding: 20px; cursor: pointer; transition: all 0.3s;
}
.blog-mini:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,0.3); }
.bm-cat { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--brand2); margin-bottom: 8px; }
.bm-title { font-size: 0.95rem; font-weight: 700; color: var(--t1); margin-bottom: 8px; line-height: 1.35; }
.bm-excerpt { font-size: 0.8rem; color: var(--t3); line-height: 1.5; margin-bottom: 14px; }
.bm-footer { display: flex; align-items: center; justify-content: space-between; }
.bm-date { font-size: 0.72rem; color: var(--t4); }
.bm-arrow { color: var(--brand); font-size: 0.82rem; transition: transform 0.2s; }
.blog-mini:hover .bm-arrow { transform: translateX(4px); }
.blog-card-skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.8s infinite; border-radius: var(--r); height: 160px; }
@keyframes shimmer { 0%{background-position:200% 0}100%{background-position:-200% 0} }
.no-posts-msg { color: var(--t3); font-size: 0.88rem; }
.no-posts-msg a { color: var(--brand2); }

/* ===== FAQ ===== */
.faq-section { max-width: 700px; margin: 0 auto 56px; padding: 0 24px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--surface); border: 1px solid var(--bdr); border-radius: var(--r-sm); overflow: hidden; transition: border-color 0.2s; }
.faq-item:hover { border-color: var(--bdr2); }
.faq-q { width:100%; background:none; border:none; color:var(--t1); padding:16px 20px; font-size:0.9rem; font-weight:600; text-align:left; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:12px; font-family:var(--fb); transition:background 0.2s; }
.faq-q:hover { background: var(--surface2); }
.faq-q i { flex-shrink:0; color:var(--brand2); font-size:0.82rem; transition:transform 0.3s; }
.faq-a { max-height:0; overflow:hidden; transition:max-height 0.35s ease,padding 0.3s; font-size:0.86rem; color:var(--t3); padding:0 20px; line-height:1.65; }

/* ===== PRICING SECTION ===== */
.pricing-section { max-width: 560px; margin: 0 auto 56px; padding: 0 24px; text-align: center; }
.pricing-card {
    background: var(--glow), var(--surface);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: var(--r-xl); padding: 36px;
    box-shadow: 0 0 60px rgba(99,102,241,0.1), var(--shadow);
    position: relative; overflow: hidden;
}
.pricing-card::before { content:'LIFETIME'; position:absolute; top:18px; right:-32px; background:var(--grad); color:white; font-size:0.68rem; font-weight:800; letter-spacing:1.5px; padding:5px 40px; transform:rotate(45deg); }
.pricing-price { font-family: var(--fh); font-size: 4rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: 4px; }
.pricing-price sup { font-size: 1.8rem; vertical-align: super; }
.pricing-period { color: var(--t3); font-size: 0.9rem; margin-bottom: 20px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--t2); }
.pricing-features li i { color: var(--green); }

/* ===== AD BANNERS ===== */
.ad-banner { margin: 12px 0; position: relative; }
.ad-banner::before { content:'Advertisement'; display:block; font-size:0.6rem; color:var(--t4); text-align:center; letter-spacing:2px; text-transform:uppercase; padding:3px 0; }
.ad-placeholder { background: var(--surface); border: 1px dashed var(--bdr); border-radius: var(--r-sm); min-height: 90px; display: flex; align-items: center; justify-content: center; color: var(--t4); font-size: 0.75rem; }

/* ===== TERMS ===== */
.terms-section { text-align: center; padding: 12px; font-size: 0.78rem; color: var(--t4); }
.terms-section a { color: var(--brand2); }
.terms-section a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.site-footer {
    background: rgba(255,255,255,0.02); border-top: 1px solid var(--bdr);
    padding: 52px 24px 28px; margin-top: 48px;
}
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand .logo-row img { width: 36px; height: 36px; border-radius: 10px; background: var(--surface3); padding: 5px; border: 1px solid var(--bdr2); }
.footer-brand .logo-row span { font-family: var(--fh); font-weight: 800; font-size: 1.1rem; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer-brand p { font-size: 0.83rem; color: var(--t3); line-height: 1.55; max-width: 240px; margin-bottom: 16px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--bdr); display: flex; align-items: center; justify-content: center; color: var(--t3); font-size: 0.85rem; transition: all 0.2s; }
.footer-social a:hover { background: var(--surface3); color: var(--brand2); border-color: var(--bdr2); }
.footer-col h5 { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--t4); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 0.85rem; color: var(--t3); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--brand2); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--bdr); flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.78rem; color: var(--t4); }
.footer-bottom a { color: var(--t3); }
.footer-bottom a:hover { color: var(--brand2); }

/* ===== FAB ===== */
.fab { position: fixed; bottom: 24px; right: 24px; width: 50px; height: 50px; border-radius: 50%; background: var(--grad); border: none; color: white; font-size: 1.1rem; cursor: pointer; box-shadow: 0 4px 20px rgba(99,102,241,0.5); transition: transform 0.3s, box-shadow 0.3s; z-index: 100; display: flex; align-items: center; justify-content: center; }
.fab:hover { transform: scale(1.1) rotate(12deg); box-shadow: 0 8px 32px rgba(99,102,241,0.7); }

/* ===== PARTICLES ===== */
.particles { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.particle { position: absolute; border-radius: 50%; background: rgba(99,102,241,0.1); animation: floatUp linear infinite; }
@keyframes floatUp { 0%{transform:translateY(100vh) scale(0);opacity:0}10%{opacity:.8}90%{opacity:.2}100%{transform:translateY(-10vh) scale(1);opacity:0} }

/* ===== CHAT SCREEN ===== */
.chat-screen { position: fixed; inset: 0; background: var(--bg); z-index: 500; display: flex; flex-direction: column; }
.chat-container { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.video-section { flex: 1; background: #000; position: relative; overflow: hidden; }

.video-layout-controls { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; gap: 6px; background: rgba(0,0,0,0.6); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.1); padding: 5px; border-radius: 50px; }
.control-group { display: flex; gap: 4px; }
.layout-btn, .size-btn { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); cursor: pointer; font-size: 0.78rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.layout-btn:hover, .size-btn:hover { background: rgba(255,255,255,0.18); color: white; }
.layout-btn.active, .size-btn.active { background: var(--brand); border-color: var(--brand); color: white; }

.video-container { width: 100%; height: 100%; display: grid; gap: 4px; padding: 4px; }
.video-container.two-person { grid-template-columns: 1fr 1fr; }
.video-container.three-person { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

.video-box { position: relative; background: #0a0a18; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); transition: border-color 0.3s; }
.video-box:hover { border-color: rgba(99,102,241,0.3); }
.video-box.local-video { grid-column: 1; grid-row: 1; }
.video-box.remote-video { grid-column: 2; grid-row: 1; }
.video-box.remote-video-2 { grid-column: 1 / span 2; grid-row: 2; }
.video-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-label { position: absolute; bottom: 46px; left: 12px; color: white; background: rgba(0,0,0,0.55); backdrop-filter: blur(8px); padding: 3px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; z-index: 10; border: 1px solid rgba(255,255,255,0.1); }
.video-watermark { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; opacity: 0.3; pointer-events: none; z-index: 10; border-radius: 7px; background: rgba(255,255,255,0.08); padding: 3px; transition: opacity 0.2s; }
.video-box:hover .video-watermark { opacity: 0.6; }
.video-controls { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 15; background: rgba(0,0,0,0.55); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.08); border-radius: 50px; padding: 4px 8px; opacity: 0; transition: opacity 0.2s; }
.video-box:hover .video-controls { opacity: 1; }
.control-btn { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12); color: white; cursor: pointer; font-size: 0.76rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.control-btn:hover { background: rgba(255,255,255,0.22); }
.control-btn.active { background: rgba(248,113,113,0.3); border-color: var(--danger); color: var(--danger); }
.connection-status { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,0.7); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 10px 18px; border-radius: 10px; font-size: 0.85rem; font-weight: 500; white-space: nowrap; display: flex; align-items: center; gap: 8px; z-index: 20; }
.connection-status::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--brand2); animation:livePulse 1.5s infinite; }
.video-box.minimized { position: absolute; bottom: 68px; right: 10px; width: 110px; height: 82px; z-index: 20; border: 2px solid var(--brand); border-radius: 9px; }
.video-box.audio-mode { background: var(--bg3); }
.video-box.audio-mode video { display: none; }
.video-box.audio-mode::after { content:'🎙️'; font-size:3rem; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); animation:audioPulse 1.5s ease-in-out infinite; }
@keyframes audioPulse{0%,100%{transform:translate(-50%,-50%) scale(1)}50%{transform:translate(-50%,-50%) scale(1.15)}}
.camera-switch { background: rgba(255,255,255,0.12) !important; border: 1.5px solid rgba(255,255,255,0.18) !important; }
.camera-switch:disabled { opacity: 0.3; cursor: not-allowed; }

.text-chat-section { height: 160px; border-top: 1px solid var(--bdr); background: var(--bg2); display: flex; flex-direction: column; }
.chat-messages { flex: 1; overflow-y: auto; padding: 8px 14px; display: flex; flex-direction: column; gap: 6px; }
.chat-message { display: flex; gap: 7px; max-width: 75%; }
.chat-message.own { align-self: flex-end; flex-direction: row-reverse; }
.chat-message .bubble { background: var(--surface2); border: 1px solid var(--bdr); padding: 7px 12px; border-radius: 12px; font-size: 0.84rem; line-height: 1.4; }
.chat-message.own .bubble { background: rgba(99,102,241,0.2); border-color: rgba(99,102,241,0.3); }
.system-message { text-align:center; font-size:0.75rem; color:var(--brand2); background:rgba(99,102,241,0.07); border:1px solid rgba(99,102,241,0.14); padding:5px 14px; border-radius:50px; align-self:center; }
.chat-input { display: flex; gap: 7px; padding: 7px 12px; border-top: 1px solid var(--bdr); }
.chat-input textarea { flex:1; background:rgba(255,255,255,0.04); border:1.5px solid var(--bdr); border-radius: var(--r-sm); color:var(--t1); padding:9px 12px; resize:none; font-family:var(--fb); font-size:0.86rem; height:40px; outline:none; transition:border-color 0.2s; }
.chat-input textarea:focus { border-color: var(--brand); }
.chat-input button { width:40px; height:40px; border-radius: var(--r-sm); background: var(--grad); border:none; color:white; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:opacity 0.2s; flex-shrink:0; }
.chat-input button:hover { opacity: 0.85; }

.bottom-controls { height: 64px; background: rgba(0,0,0,0.88); backdrop-filter: blur(24px); border-top: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 20px; flex-shrink: 0; }
.bottom-controls .control-btn { height: 46px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; gap: 7px; padding: 0 18px; width: auto; }
.control-btn.end-call { background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.25); color: var(--danger); }
.control-btn.end-call:hover { background: rgba(248,113,113,0.25); border-color: var(--danger); color: white; }
.control-btn.next { background: rgba(52,211,153,0.12); border-color: rgba(52,211,153,0.25); color: var(--green); }
.control-btn.next:hover { background: rgba(52,211,153,0.25); color: white; }
.control-btn.home-btn { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.25); color: #818cf8; }
.control-btn.home-btn:hover { background: rgba(99,102,241,0.25); color: white; }

.report-dialog { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); z-index: 600; display: flex; align-items: center; justify-content: center; }
.report-content { background: var(--bg3); border: 1px solid var(--bdr2); border-radius: var(--r); padding: 28px; width: 380px; max-width: 92vw; }
.report-content h3 { font-family: var(--fh); font-weight: 700; margin-bottom: 18px; color: var(--t1); }
.report-content select, .report-content textarea { width:100%; padding:11px 14px; background:rgba(255,255,255,0.04); border:1.5px solid var(--bdr); border-radius:var(--r-sm); color:var(--t1); margin-bottom:12px; font-family:var(--fb); font-size:0.88rem; outline:none; transition:border-color 0.2s; }
.report-content select option { background:var(--bg3); }
.report-content select:focus,.report-content textarea:focus { border-color:var(--brand); }
.report-content textarea { resize:vertical; min-height:90px; }
.report-buttons { display:flex; gap:10px; }
#cancelReport { flex:1; padding:11px; border-radius:var(--r-sm); border:1px solid var(--bdr); font-family:var(--fb); font-size:0.86rem; font-weight:600; cursor:pointer; background:transparent; color:var(--t3); transition:all 0.2s; }
#cancelReport:hover { color:var(--t1); background:var(--surface2); }
#submitReport { flex:1; padding:11px; border-radius:var(--r-sm); border:none; font-family:var(--fb); font-size:0.86rem; font-weight:600; cursor:pointer; background:var(--grad); color:white; }

.welcome-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.94); backdrop-filter:blur(24px); z-index:700; display:flex; align-items:center; justify-content:center; }
.welcome-content { text-align:center; max-width:460px; padding:24px; }
.welcome-video-container { border-radius:var(--r); overflow:hidden; border:1px solid var(--bdr2); box-shadow:var(--shadow-lg); margin-bottom:16px; aspect-ratio:16/9; }
.welcome-video-container video { width:100%; height:100%; object-fit:cover; }
.skip-btn { background:var(--surface2); border:1px solid var(--bdr2); color:var(--t2); padding:10px 24px; border-radius:50px; font-family:var(--fb); font-size:0.88rem; font-weight:600; cursor:pointer; display:inline-flex; align-items:center; gap:7px; transition:all 0.2s; }
.skip-btn:hover { background:var(--surface3); color:var(--t1); }
.welcome-overlay.fade-out { animation:fadeOut 0.5s forwards; }
@keyframes fadeOut { to{opacity:0;pointer-events:none} }

/* ===== TOAST ===== */
#ev-toast { position:fixed; bottom:80px; left:50%; transform:translateX(-50%); padding:11px 22px; border-radius:12px; font-weight:600; z-index:9999; font-size:0.85rem; display:none; box-shadow:0 4px 24px rgba(0,0,0,0.5); backdrop-filter:blur(12px); border:1px solid rgba(255,255,255,0.1); }

/* ===== MODAL ===== */
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.8); backdrop-filter:blur(8px); z-index:400; display:flex; align-items:center; justify-content:center; padding:16px; }
.modal-box { background:var(--bg3); border:1px solid var(--bdr2); border-radius:var(--r-lg); padding:32px; width:100%; max-width:460px; box-shadow:var(--shadow-lg); }
.modal-box h2 { font-family:var(--fh); font-size:1.4rem; font-weight:800; margin-bottom:6px; color:var(--t1); }
.modal-box .modal-sub { color:var(--t3); font-size:0.88rem; margin-bottom:24px; }

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
    .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
    .steps-row { grid-template-columns: 1fr; }
    .steps-row::before { display: none; }
}
@media(max-width:640px){
    .footer-top { grid-template-columns: 1fr; }
    .hero-title { letter-spacing: -0.5px; }
    .feat-grid { grid-template-columns: 1fr 1fr; }
    .nav-links a span { display: none; }
    .video-container.two-person { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
    .video-box.remote-video { grid-column: 1; grid-row: 2; }
    .bottom-controls { gap: 7px; padding: 0 10px; }
    .bottom-controls .control-btn span { display: none; }
    .bottom-controls .control-btn { width: 44px; height: 44px; border-radius: 50%; padding: 0; }
}
@media(max-width:400px){
    .feat-grid { grid-template-columns: 1fr; }
}
