/* ==============================================================================
 * Copyright (c) 2026 Spiridon Valentin / TSV Consulting. All rights reserved.
 * Proprietary and Confidential.
 *
 * Copying, modification, reproduction, multiplication, or distribution of this
 * material is strictly prohibited without prior written permission.
 * ============================================================================== */

@import url('_ds/tc-c-travel-design-system-3192ec71-1a81-441a-968f-5842bc208175/colors_and_type.css');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,600&display=swap');

:root {
    --logo-gold-color: #bba57d;
    
    /* Default / Standard Tier Fallbacks */
    --tier-accent: var(--border-strong, rgba(255, 255, 255, 0.3));
    --tier-border: var(--border, rgba(255, 255, 255, 0.1));
    --tier-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    --tier-badge-bg: var(--gold-faint, rgba(255, 255, 255, 0.06));
    --tier-badge-color: var(--text-mut, rgba(240, 240, 240, 0.6));
    --tier-glow: transparent;
}

/* ===== BASE OVERRIDES FOR MOBILE MOCKUP LOOK ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--ff-sans);
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg2);
}

body {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s var(--ease-out-expo);
}

/* Container as iPhone / Mobile Viewport Mockup */
.container {
    width: 430px;
    max-width: 100%;
    height: min(908px, 94vh);
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 46px;
    box-shadow: 0 50px 130px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: background-color 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
}

/* Scroll area inside mock container */
.main-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: none;
    background-color: var(--bg);
    scrollbar-width: none; /* Firefox */
    padding-top: 64px;
    padding-bottom: 64px;
}
.main-scroll::-webkit-scrollbar {
    width: 0;
    height: 0; /* Chrome, Safari, Opera */
}

/* Mobile responsive view: full screen */
@media (max-width: 480px) {
    html, body {
        height: 100%;
        height: 100svh;
        overflow: hidden;
        overscroll-behavior-y: none;
    }
    body {
        padding: 0;
    }
    .container {
        width: 100%;
        height: 100%;
        height: 100svh;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
        border: none;
        display: flex;
        flex-direction: column;
        overscroll-behavior-y: none;
    }
    header.app-header {
        padding: 4px 12px;
        height: 48px;
    }
    .logo-icon {
        width: 24px;
        height: 24px;
    }
    .logo-title {
        font-size: clamp(0.7rem, 4.5vw, 1rem);
        white-space: nowrap;
        flex-shrink: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .logo-subtitle {
        display: none !important;
    }
    .theme-toggle-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    .header-btn {
        height: 30px;
        padding: 0 8px;
    }
    .header-btn.btn-circle {
        width: 30px;
        height: 30px;
    }
    .header-btn svg {
        width: 13px;
        height: 13px;
    }
}

/* ===== COMMON LAYOUTS & ANIMS ===== */
@keyframes eaRise {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: none; opacity: 1; }
}
@keyframes eaDot {
    0%, 80%, 100% { opacity: .25; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}
@keyframes eaSpin {
    to { transform: rotate(360deg); }
}

.ea-rise {
    animation: eaRise .55s var(--ease-out-expo) both;
}

.ea-shimmer {
    position: relative;
    overflow: hidden;
}
.ea-shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s var(--ease-out-expo);
}
.ea-shimmer:hover::after {
    left: 130%;
}

/* ===== APP HEADER ===== */
header.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    height: 64px;
    flex: none;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 1000;
}

.logo-text {
    font-family: var(--ff-serif);
    font-size: 1.12rem;
    font-weight: 400;
    letter-spacing: .03em;
    text-decoration: none;
    color: var(--text);
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon-circle {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-serif);
    font-size: 1.05rem;
    color: var(--gold-dim);
}

.logo-text span {
    font-style: italic;
    color: var(--gold-dim);
}

.theme-toggle-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-mid);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    font-size: .95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s var(--ease-out-expo);
}
.theme-toggle-btn:hover {
    border-color: var(--text);
    background: var(--gold-faint);
}

/* ===== TACTILE BUTTONS & ACCENTS ===== */
.btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--ff-sans);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    padding: 16px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: all .3s var(--ease-out-expo);
    border: 1px solid var(--border-strong);
    text-decoration: none;
}

.btn-primary {
    color: var(--btn-gold-color);
    background: var(--btn-gold-bg);
    border-color: var(--btn-gold-bg);
}
.btn-primary:hover {
    background: var(--btn-gold-hover-bg);
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
    border-color: var(--text);
    background: var(--gold-faint);
    transform: translateY(-2px);
}

.btn-success {
    color: #ffffff;
    background: var(--wa-green);
    border-color: var(--wa-green);
}
.btn-success:hover {
    background: #4cae4c;
    transform: translateY(-2px);
}

/* ===== CARDS & ACCENTS ===== */
.card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 20px;
    margin-bottom: 16px;
    background: var(--bg2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.badge {
    font-family: var(--ff-sans);
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--gold-dim);
    display: inline-block;
    margin-bottom: 4px;
}

.price-tag {
    font-family: var(--ff-serif);
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--text);
}
.price-tag span {
    font-family: var(--ff-sans);
    font-size: .6rem;
    font-weight: 500;
    letter-spacing: .12em;
    color: var(--text-mut);
}

.feature-list {
    list-style: none;
    margin: 12px 0;
}
.feature-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.check-icon {
    color: var(--gold-dim);
    font-size: .8rem;
    line-height: 1.55;
    flex: none;
}
.feature-text {
    flex: 1;
    min-width: 0;
    font-family: var(--ff-sans);
    font-weight: 300;
    font-size: .79rem;
    line-height: 1.55;
    letter-spacing: .02em;
    color: var(--text);
}

/* ===== FORM CONTROLS ===== */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    font-family: var(--ff-sans);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-mut);
    display: block;
    margin-bottom: 9px;
}

.form-control {
    width: 100%;
    font-family: var(--ff-sans);
    font-size: .85rem;
    letter-spacing: .04em;
    color: var(--text);
    background: var(--bg2);
    border: 1px solid var(--border-mid);
    border-radius: 6px;
    padding: 13px 14px;
    outline: none;
    transition: border-color 0.2s var(--ease-out-expo);
}
.form-control:focus {
    border-color: var(--text);
}

.form-control::placeholder {
    color: var(--text-mut);
}

/* ===== BOTTOM STICKY NAV ===== */
.bottom-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    padding: 8px 8px 14px;
    padding: 8px 8px max(14px, calc(12px + env(safe-area-inset-bottom, 0px)));
    border-top: 1px solid var(--border);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    flex-shrink: 0;
    margin-top: auto;
    position: relative;
    z-index: 1000;
}

.bottom-nav-item {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 2px;
    color: var(--text-mut);
    text-decoration: none;
    transition: color 0.2s var(--ease-out-expo);
    flex: 1;
    min-width: 0;
}

.bottom-nav-item.active {
    color: var(--gold-dim);
}

.bottom-nav-item span {
    font-family: var(--ff-sans);
    font-size: .45rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.bottom-nav-item svg {
    stroke: currentColor;
    stroke-width: 1.3;
    flex-shrink: 0;
}

/* ===== CHIPS ===== */
.pill-group {
    display: flex;
    gap: 7px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px 0 4px;
    scrollbar-width: none;
}
.pill-group::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.pill {
    flex: none;
    font-family: var(--ff-sans);
    font-size: .58rem;
    font-weight: 500;
    letter-spacing: .10em;
    color: var(--text);
    background: var(--gold-faint);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 8px 13px;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mt-1 { margin-top: 1rem; }
.flex { display: flex; gap: 0.8rem; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.w-full { width: 100%; }

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--text);
    border-radius: 50%;
    animation: eaSpin .8s linear infinite;
}

/* ===== MULTILINGUAL TRANSLATION SYSTEM WITH SMART EN FALLBACK ===== */
.ro-text, .en-text, .hi-text, .tl-text, .ne-text, .vi-text, .ur-text, .bn-text, .si-text {
    display: none !important;
}

/* RO Active Language */
html[lang="ro"] .ro-text {
    display: revert !important;
}

/* EN Active Language */
html[lang="en"] .en-text {
    display: revert !important;
}

/* HI (Hindi) */
html[lang="hi"] :has(> .hi-text) > .en-text {
    display: none !important;
}
html[lang="hi"] :not(:has(> .hi-text)) > .en-text {
    display: revert !important;
}
html[lang="hi"] .hi-text {
    display: revert !important;
}

/* TL (Tagalog) */
html[lang="tl"] :has(> .tl-text) > .en-text {
    display: none !important;
}
html[lang="tl"] :not(:has(> .tl-text)) > .en-text {
    display: revert !important;
}
html[lang="tl"] .tl-text {
    display: revert !important;
}

/* NE (Nepali) */
html[lang="ne"] :has(> .ne-text) > .en-text {
    display: none !important;
}
html[lang="ne"] :not(:has(> .ne-text)) > .en-text {
    display: revert !important;
}
html[lang="ne"] .ne-text {
    display: revert !important;
}

/* VI (Vietnamese) */
html[lang="vi"] :has(> .vi-text) > .en-text {
    display: none !important;
}
html[lang="vi"] :not(:has(> .vi-text)) > .en-text {
    display: revert !important;
}
html[lang="vi"] .vi-text {
    display: revert !important;
}

/* UR (Urdu) */
html[lang="ur"] :has(> .ur-text) > .en-text {
    display: none !important;
}
html[lang="ur"] :not(:has(> .ur-text)) > .en-text {
    display: revert !important;
}
html[lang="ur"] .ur-text {
    display: revert !important;
}

/* BN (Bengali) */
html[lang="bn"] :has(> .bn-text) > .en-text {
    display: none !important;
}
html[lang="bn"] :not(:has(> .bn-text)) > .en-text {
    display: revert !important;
}
html[lang="bn"] .bn-text {
    display: revert !important;
}

/* SI (Sinhala) */
html[lang="si"] :has(> .si-text) > .en-text {
    display: none !important;
}
html[lang="si"] :not(:has(> .si-text)) > .en-text {
    display: revert !important;
}
html[lang="si"] .si-text {
    display: revert !important;
}

/* ===== TIER-BASED LUXURY DESIGN SYSTEM ===== */
/* Default / Standard Tier */
html[data-tier="standard"] {
    --tier-accent: var(--border-strong);
    --tier-border: var(--border);
    --tier-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    --tier-badge-bg: var(--gold-faint);
    --tier-badge-color: var(--text-mut);
    --tier-glow: transparent;
}

/* Gold Tier - Warm Premium Radiance (Gold Accents) */
html[data-tier="gold"] {
    --tier-accent: #C5A880;
    --tier-border: #C5A880;
    --tier-shadow: 0 10px 30px rgba(197, 168, 128, 0.18);
    --tier-badge-bg: rgba(197, 168, 128, 0.1);
    --tier-badge-color: #C5A880;
    --tier-glow: rgba(197, 168, 128, 0.4);
    --logo-gold-color: #C5A880;
}
html[data-theme="light"][data-tier="gold"] {
    --tier-accent: #B0946D;
    --tier-border: #B0946D;
    --tier-badge-color: #9C7E55;
    --tier-badge-bg: rgba(197, 168, 128, 0.15);
    --logo-gold-color: #B0946D;
}

/* Platinum Tier - Obsidian / Cool Brushed Metal (Elite Silver) */
html[data-tier="platinum"] {
    --tier-accent: #E5E5E5;
    --tier-border: #999999;
    --tier-shadow: 0 12px 40px rgba(255, 255, 255, 0.08);
    --tier-badge-bg: #E5E5E5;
    --tier-badge-color: #0A0A0A;
    --tier-glow: rgba(255, 255, 255, 0.4);
    --logo-gold-color: #E5E5E5;
}
html[data-theme="light"][data-tier="platinum"] {
    --tier-accent: #444444;
    --tier-border: #666666;
    --tier-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    --tier-badge-bg: #444444;
    --tier-badge-color: #FFFFFF;
    --tier-glow: rgba(0, 0, 0, 0.2);
    --logo-gold-color: #666666;
}

/* Dynamic updates on elements */
/* 1. Container frames */
html[data-tier="gold"] .container {
    border-color: #C5A880;
}
html[data-theme="light"][data-tier="gold"] .container {
    border-color: #B0946D;
}
html[data-tier="platinum"] .container {
    border-color: #999999;
    box-shadow: 0 50px 130px rgba(255, 255, 255, 0.12);
}
html[data-theme="light"][data-tier="platinum"] .container {
    border-color: #666666;
    box-shadow: 0 50px 130px rgba(0, 0, 0, 0.2);
}

/* 2. Logo updates */
html[data-tier="gold"] .logo-icon-circle {
    border-color: #C5A880;
    color: #C5A880;
    box-shadow: 0 0 8px rgba(197, 168, 128, 0.3);
}
html[data-theme="light"][data-tier="gold"] .logo-icon-circle {
    border-color: #B0946D;
    color: #B0946D;
}
html[data-tier="platinum"] .logo-icon-circle {
    border-color: #FFFFFF;
    color: #FFFFFF;
    background: linear-gradient(135deg, #FFFFFF, #999999);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}
html[data-theme="light"][data-tier="platinum"] .logo-icon-circle {
    border-color: #000000;
    color: #FFFFFF;
    background: linear-gradient(135deg, #444444, #000000);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* 3. Cards & Lists */
.card, .rows-card, .plan-select-card, .employer-item {
    border: 1px solid var(--tier-border) !important;
    box-shadow: var(--tier-shadow) !important;
    transition: all 0.4s var(--ease-out-expo) !important;
}
html[data-tier="platinum"] .card, 
html[data-tier="platinum"] .rows-card, 
html[data-tier="platinum"] .plan-select-card, 
html[data-tier="platinum"] .employer-item {
    background: linear-gradient(145deg, var(--bg2) 0%, var(--bg) 100%) !important;
}

/* 4. Badges */
.badge {
    background-color: var(--tier-badge-bg) !important;
    color: var(--tier-badge-color) !important;
    border: 1px solid var(--tier-border);
    transition: all 0.4s var(--ease-out-expo);
}

/* 5. Buttons */
.btn-secondary {
    border-color: var(--tier-border) !important;
}
.btn-secondary:hover {
    border-color: var(--tier-accent) !important;
    box-shadow: 0 0 10px var(--tier-glow);
}

/* ===== OFFICIAL BRAND IDENTITY (VISUAL IDENTITY) ===== */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    user-select: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 1;
    min-width: 0;
}

.logo-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.9rem, 4.5vw, 1.15rem);
    line-height: 1.1;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-emigrant {
    color: var(--text);
    font-weight: 600;
    transition: color 0.4s var(--ease-out-expo);
}

.text-agency {
    color: var(--logo-gold-color);
    font-weight: 600;
    font-style: italic;
    transition: color 0.4s var(--ease-out-expo);
}

.logo-subtitle {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-mut);
    font-size: 0.42rem;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Theme overrides for visual identity */
[data-theme="light"] .text-emigrant {
    color: #1A1008;
}
[data-theme="dark"] .text-emigrant {
    color: #fcfcfc;
}

.monogram-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
}

.monogram-text {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 500;
    fill: var(--text);
    text-anchor: middle;
    dominant-baseline: central;
    transition: fill 0.4s var(--ease-out-expo);
}

.emblem-container {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    display: block;
}

/* ===== RELOCATION GUIDE & INFO GRID ===== */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 8px 0;
}

@media (min-width: 360px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.trust-card {
    background: var(--bg2);
    border: 1px solid var(--tier-border);
    box-shadow: var(--tier-shadow);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.trust-card:active {
    transform: scale(0.97);
}

.trust-card:hover {
    transform: translateY(-2px);
    border-color: var(--tier-accent);
    box-shadow: 0 8px 24px var(--tier-glow);
}

.trust-card-num {
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--gold-dim);
    margin-bottom: 6px;
}

.trust-card-title {
    font-family: var(--ff-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 8px;
}

.trust-card-desc {
    font-family: var(--ff-sans);
    font-size: 0.72rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-mut);
}

/* Detail views on info page */
.info-detail-view {
    display: none;
    animation: eaRise .45s var(--ease-out-expo) both;
}

.info-detail-view.active {
    display: block;
}

.btn-back-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ff-sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-mut);
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    margin-bottom: 22px;
    transition: all 0.2s ease;
}

.btn-back-info:hover {
    color: var(--text);
    border-color: var(--text);
    background: var(--gold-faint);
}

/* LifeBudget Interactive Widget Styles */
.life-budget-container {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    margin-top: 16px;
}

.life-budget-select {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--text);
    font-family: var(--ff-sans);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    outline: none;
}

.life-budget-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.life-budget-item:last-child {
    border-bottom: none;
}

.life-budget-label {
    font-family: var(--ff-sans);
    font-size: 0.76rem;
    color: var(--text-mut);
    display: flex;
    align-items: center;
    gap: 8px;
}

.life-budget-value {
    font-family: var(--ff-sans);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text);
}

.life-budget-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1.5px solid var(--border-strong);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.life-budget-total-label {
    font-family: var(--ff-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
}

.life-budget-total-value {
    font-family: var(--ff-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--gold-dim);
}

/* Emergency buttons styling */
.emergency-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
}

.emergency-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    background: var(--bg2);
}

.emergency-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.emergency-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.emergency-info {
    flex: 1;
}

.emergency-phone {
    font-family: var(--ff-sans);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.emergency-name {
    font-family: var(--ff-sans);
    font-size: 0.7rem;
    color: var(--text-mut);
}

/* ===== HEADER AI ASSISTANT & CHAT OVERLAY ===== */
.header-assistant-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-mid);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
}
.header-assistant-btn:hover {
    border-color: var(--text);
    background: var(--gold-faint);
}
.header-assistant-btn svg, .nav-ai-icon {
    width: 20px;
    height: 20px;
    animation: oz-fab-rotate 3s ease-in-out infinite;
    transform-origin: center;
    display: inline-block;
}
.header-assistant-btn .oz-fab-ring, .nav-ai-icon .oz-fab-ring {
    fill: none;
    stroke: currentColor;
    stroke-width: 0.8;
    opacity: 0.3;
    animation: oz-pulse 2.5s ease-in-out infinite;
}

/* Chat attach elements styling */
.chat-attach-btn {
    background: none;
    border: none;
    color: var(--text-mut);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    outline: none;
}
.chat-attach-btn:hover {
    color: var(--text);
}
.chat-doc-drawer {
    border-top: 1px solid var(--border);
    background: var(--bg2);
    padding: 14px 22px;
    display: none;
    animation: eaRise 0.35s var(--ease-out-expo) both;
}
.chat-doc-drawer.active {
    display: block;
}
.chat-drop-zone {
    border: 1px dashed var(--border-strong);
    border-radius: 12px;
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    background: var(--bg);
    transition: all .3s var(--ease-out-expo);
}
.chat-drop-zone:hover {
    border-color: var(--text);
    background: var(--gold-faint);
}
.chat-findings-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-finding-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    background: var(--bg2);
    font-family: var(--ff-sans);
    font-size: 0.74rem;
}
.chat-finding-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 4px;
}
.chat-finding-body {
    color: var(--text-mut);
    font-weight: 300;
    line-height: 1.4;
}

@keyframes oz-fab-rotate {
    0%, 15% { transform: rotate(0deg); }
    45%, 55% { transform: rotate(180deg); }
    85%, 100% { transform: rotate(0deg); }
}

@keyframes oz-pulse {
    0%, 100% { opacity: 0.15; stroke-width: 0.8; }
    50% { opacity: 0.45; stroke-width: 1.4; }
}

/* Overlay Panel */
.chat-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: var(--bg-elevated);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    z-index: 500;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out-expo);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    overflow: hidden;
}
.chat-overlay.open {
    transform: translateY(0);
}
.chat-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--border);
    flex: none;
}
.chat-overlay-header-title {
    font-family: var(--ff-serif);
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--text);
    line-height: 1.1;
}
.chat-overlay-header-sub {
    font-family: var(--ff-sans);
    font-weight: 300;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    color: var(--text-mut);
    margin-top: 3px;
}
.chat-overlay-status {
    display: flex;
    align-items: center;
    gap: 6px;
}
.chat-overlay-status .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--wa-green);
    box-shadow: 0 0 0 3px rgba(92,186,92,0.15);
}
.chat-overlay-status-text {
    font-family: var(--ff-sans);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mut);
}
.chat-overlay-close {
    background: none;
    border: none;
    color: var(--text-mut);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.chat-overlay-close:hover {
    color: var(--text);
}
.chat-messages-window {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 22px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: none;
}
.chat-messages-window::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.chat-overlay-chips {
    padding: 8px 22px 4px;
    flex: none;
}
.chat-overlay-input-bar {
    display: flex;
    gap: 9px;
    padding: 12px 22px 18px;
    border-top: 1px solid var(--border);
    flex: none;
    align-items: center;
}

/* ===== NEW PREMIUM HEADER BUTTONS ===== */
.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border-mid);
    border-radius: 17px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    outline: none;
}
.header-btn.btn-circle {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
}
.header-btn:hover {
    border-color: var(--text);
    background: var(--gold-faint);
}
.header-btn svg {
    color: var(--text);
}

/* ===== PWA INSTALL PROMPTS (GLASSMORPHISM POPUPS) ===== */
.pwa-prompt {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 2rem));
  width: min(390px, calc(100vw - 2rem));
  z-index: 999;
  transition: transform .4s var(--ease-out-expo), opacity .4s ease;
  opacity: 0;
  pointer-events: none;
}

.pwa-prompt--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pwa-prompt-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 12px 14px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 0 1px var(--border);
}

.pwa-prompt-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
  border: 1px solid var(--border-mid);
}

.pwa-prompt-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pwa-prompt-title {
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.pwa-prompt-sub {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 0.72rem;
  color: var(--text-mut);
}

.pwa-prompt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pwa-btn-dismiss {
  background: none;
  border: none;
  color: var(--text-mut);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 6px;
  opacity: 0.6;
  transition: opacity 0.2s;
  line-height: 1;
}

.pwa-btn-dismiss:hover {
  opacity: 1;
}

.pwa-btn-install {
  background: var(--btn-gold-bg);
  color: var(--btn-gold-color);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-family: var(--ff-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.pwa-btn-install:hover {
  background: var(--btn-gold-hover-bg);
  transform: scale(1.02);
}

/* iOS Safari Guide Styles */
.pwa-prompt-inner--ios, .pwa-prompt-inner--inapp {
  flex-direction: column;
  text-align: center;
  gap: 10px;
  padding: 16px;
}

.pwa-prompt-inner--ios .pwa-prompt-actions, .pwa-prompt-inner--inapp .pwa-prompt-actions {
  position: absolute;
  top: 8px;
  right: 8px;
}

.pwa-ios-steps, .pwa-inapp-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--text-mut);
  width: 100%;
}

.pwa-ios-step, .pwa-inapp-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pwa-ios-share-icon {
  color: var(--gold-dim);
}

.pwa-ios-arrow {
  text-align: center;
  font-size: 1.2rem;
  color: var(--gold-dim);
  margin-top: 2px;
  animation: pwaIosArrow 1.2s ease-in-out infinite;
}

@keyframes pwaIosArrow {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 1; }
}

.pwa-android-steps, .pwa-inapp-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--text-mut);
  width: 100%;
}

.pwa-android-step, .pwa-inapp-step {
  display: block;
  text-align: center;
  line-height: 1.4;
}

.pwa-inapp-step strong, .pwa-android-step strong {
  color: var(--gold-dim);
}




/* ===== 3D OPTICAL ILLUSIONS & NEON AURA ===== */

/* 1. 3D Effect for AI Assistant Button (Inline) */
.bottom-nav-item#nav-assistant {
    position: relative;
}

.bottom-nav-item#nav-assistant::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(197, 168, 128, 0.1) 0%, transparent 70%);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.15),
                0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: -1;
    animation: pulse-3d 3s infinite ease-in-out;
}

@keyframes pulse-3d {
    0% { opacity: 0.6; box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), 0 4px 8px rgba(0, 0, 0, 0.3); }
    50% { opacity: 1; box-shadow: inset 0 3px 6px rgba(255, 255, 255, 0.25), 0 6px 15px rgba(0, 0, 0, 0.5); }
    100% { opacity: 0.6; box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), 0 4px 8px rgba(0, 0, 0, 0.3); }
}

/* 2. Neon Aura on Active Items based on Tier */
html[data-tier="gold"] .bottom-nav-item.active {
    position: relative;
}
html[data-tier="gold"] .bottom-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 8px;
    background: rgba(197, 168, 128, 0.8);
    filter: blur(6px);
    border-radius: 50%;
    z-index: -1;
}

html[data-tier="platinum"] .bottom-nav-item.active {
    position: relative;
}
html[data-tier="platinum"] .bottom-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    filter: blur(6px);
    border-radius: 50%;
    z-index: -1;
}

/* 3. Header Logo Glow Enhancement */
html[data-tier="gold"] .logo-icon-circle {
    box-shadow: 0 0 15px rgba(197, 168, 128, 0.6), inset 0 0 8px rgba(197, 168, 128, 0.3) !important;
}
html[data-tier="platinum"] .logo-icon-circle {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6), inset 0 0 8px rgba(255, 255, 255, 0.3) !important;
}
