/* ==========================================================================
   LANDXPERTZ.IN - MODERN PROPERTY INTELLIGENCE DESIGN SYSTEM
   30+ Years Land Registration Expertise & High-Performance UI
   ========================================================================== */

:root {
    --primary: #3B82F6;
    --primary-hover: #60A5FA;
    --primary-light: rgba(59, 130, 246, 0.15);
    --primary-glow: rgba(59, 130, 246, 0.35);
    
    --accent: #10B981;
    --accent-hover: #34D399;
    --accent-light: rgba(16, 185, 129, 0.15);
    
    --gold: #F59E0B;
    --gold-light: rgba(245, 158, 11, 0.15);
    
    --bg-color: #080C14;
    --sidebar-bg: #0D121F;
    --card-bg: #111827;
    --surface-elevated: #162032;
    
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-light: #64748B;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.04);
    
    --success: #10B981;
    --success-bg: rgba(16, 185, 129, 0.18);
    --error: #EF4444;
    --error-bg: rgba(239, 68, 68, 0.18);
    --warning: #F59E0B;
    
    --shadow-xs: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px 0 rgba(0, 0, 0, 0.45);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --input-bg: #0B0F19;
    --input-text: #F8FAFC;
    --dropdown-bg: #111827;
    --badge-bg: rgba(59, 130, 246, 0.15);
    --badge-text: #93C5FD;
    --topbar-bg: #0D121F;
    
    --hero-gradient: linear-gradient(135deg, #020617 0%, #0F172A 50%, #172554 100%);
    --card-gradient: linear-gradient(180deg, #162032 0%, #0F172A 100%);
}

[data-theme="dark"] {
    --primary: #3B82F6;
    --primary-hover: #60A5FA;
    --primary-light: rgba(59, 130, 246, 0.15);
    --primary-glow: rgba(59, 130, 246, 0.35);
    
    --accent: #10B981;
    --accent-hover: #34D399;
    --accent-light: rgba(16, 185, 129, 0.15);
    
    --gold: #F59E0B;
    --gold-light: rgba(245, 158, 11, 0.15);
    
    --bg-color: #080C14;
    --sidebar-bg: #0D121F;
    --card-bg: #111827;
    --surface-elevated: #162032;
    
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-light: #64748B;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.04);
    
    --success: #10B981;
    --success-bg: rgba(16, 185, 129, 0.18);
    --error: #EF4444;
    --error-bg: rgba(239, 68, 68, 0.18);
    --warning: #F59E0B;
    
    --shadow-xs: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px 0 rgba(0, 0, 0, 0.45);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.3);
    
    --input-bg: #0B0F19;
    --input-text: #F8FAFC;
    --dropdown-bg: #111827;
    --badge-bg: rgba(59, 130, 246, 0.15);
    --badge-text: #93C5FD;
    --topbar-bg: #0D121F;
    
    --hero-gradient: linear-gradient(135deg, #020617 0%, #0F172A 50%, #172554 100%);
    --card-gradient: linear-gradient(180deg, #162032 0%, #0F172A 100%);
}

[data-theme="light"] {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-light: #EFF6FF;
    --primary-glow: rgba(37, 99, 235, 0.25);
    
    --accent: #10B981;
    --accent-hover: #059669;
    --accent-light: #ECFDF5;
    
    --gold: #F59E0B;
    --gold-light: #FEF3C7;
    
    --bg-color: #F8FAFC;
    --sidebar-bg: #FFFFFF;
    --card-bg: #FFFFFF;
    --surface-elevated: #FFFFFF;
    
    --text-main: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    
    --border-color: #E2E8F0;
    --border-subtle: #F1F5F9;
    
    --success: #10B981;
    --success-bg: #D1FAE5;
    --error: #EF4444;
    --error-bg: #FEE2E2;
    --warning: #F59E0B;
    
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 2px 4px -1px rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.04);
    --shadow-md: 0 10px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
    --shadow-lg: 0 20px 30px -10px rgb(0 0 0 / 0.12), 0 10px 15px -5px rgb(0 0 0 / 0.05);
    --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.35);
    
    --input-bg: #FFFFFF;
    --input-text: #0F172A;
    --dropdown-bg: #FFFFFF;
    --badge-bg: #DBEAFE;
    --badge-text: #2563EB;
    --topbar-bg: #FFFFFF;
    
    --hero-gradient: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #1E3A8A 100%);
    --card-gradient: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */

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

html, body {
    height: 100%;
    font-family: 'Plus Jakarta Sans', 'Inter', 'Mukta Malar', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ==========================================================================
   SIDEBAR NAVIGATION
   ========================================================================== */

.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px 0 16px;
    transition: var(--transition);
    z-index: 20;
}

.brand {
    padding: 0 18px 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.brand-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

[data-theme="dark"] .brand-logo-container {
    background: #FFFFFF; /* keep logo contrast crisp */
}

.brand-logo-img {
    width: 100%;
    max-width: 220px;
    height: auto;
    max-height: 74px;
    object-fit: contain;
    display: block;
}

.brand-meta-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--border-subtle);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.meta-dot {
    color: var(--primary);
    font-size: 0.75rem;
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 16px;
    overflow-y: auto;
}

.nav-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 0.08em;
    padding: 12px 10px 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-muted);
}

.nav-item-text {
    display: flex;
    flex-direction: column;
}

.nav-main-title {
    font-size: 0.9rem;
    color: var(--text-main);
}

.nav-sub-title {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-item:hover:not(.locked) {
    background: var(--bg-color);
    border-color: var(--border-color);
}

.nav-item:hover:not(.locked) .nav-icon-wrap {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary-light);
    border-color: rgba(37, 99, 235, 0.2);
}

.nav-item.active .nav-icon-wrap {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.nav-item.active .nav-main-title {
    color: var(--primary);
    font-weight: 700;
}

.nav-item.locked {
    opacity: 0.55;
    cursor: not-allowed;
}

.nav-expert-highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(37, 99, 235, 0.08) 100%);
    border: 1px dashed rgba(16, 185, 129, 0.35);
}

.nav-expert-highlight:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%) !important;
}

.expert-icon {
    background: var(--accent-light) !important;
    color: var(--accent) !important;
}

.badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 800;
    background: var(--badge-bg);
    color: var(--badge-text);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    letter-spacing: 0.04em;
}

.badge-pulse {
    background: #10B981;
    color: #FFFFFF;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.badge-free {
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.sidebar-helpline-card {
    margin: auto 14px 0;
    padding: 14px 16px;
    background: linear-gradient(180deg, var(--card-bg) 0%, var(--border-subtle) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-xs);
}

.helpline-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.helpline-avatar {
    width: 34px;
    height: 34px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.helpline-avatar .material-icons-round {
    font-size: 20px;
}

.helpline-info {
    display: flex;
    flex-direction: column;
}

.helpline-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-main);
}

.helpline-sub {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.helpline-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.helpline-action-btn:hover {
    background: #1EBE5D;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
   TOPBAR & MAIN CONTENT
   ========================================================================== */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topbar {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
}

.topbar-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.topbar h2 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.topbar-tagline {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.mobile-brand-pill {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-cta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.whatsapp-cta-btn:hover {
    background: #1EBE5D;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.icon-btn {
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    scroll-behavior: smooth;
}

.dashboard {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ==========================================================================
   HERO INTERACTIVE BANNER & CADASTRAL VISUALIZATION
   ========================================================================== */

.hero-interactive-banner {
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px 0;
    background: var(--hero-gradient);
    border-radius: var(--radius-xl);
    padding: 36px 40px;
    color: #FFFFFF;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-interactive-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.hero-left-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 2;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-heading {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, #60A5FA 0%, #34D399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-white-emp {
    color: #F8FAFC;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
}

.hero-description {
    font-size: 0.92rem;
    color: #CBD5E1;
    line-height: 1.55;
}

.hero-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.f-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.f-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.f-tag .material-icons-round {
    font-size: 16px;
    color: #60A5FA;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: #F8FAFC;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.68rem;
    color: #94A3B8;
    font-weight: 600;
}

/* Hero Visual Land Card Frame */
.hero-visual-card {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.cadastral-card-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.18);
    background: #020617;
    width: 100%;
    aspect-ratio: 16 / 10;
}

.cadastral-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.95);
    transition: var(--transition);
}

.cadastral-card-frame:hover .cadastral-img {
    transform: scale(1.03);
}

/* Radar Scan Line Animation */
.radar-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, rgba(52, 211, 153, 0.9) 50%, transparent 100%);
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.8), 0 0 30px rgba(52, 211, 153, 0.4);
    animation: radarScan 3.5s linear infinite;
    pointer-events: none;
}

@keyframes radarScan {
    0% { top: 0%; opacity: 0.2; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0.2; }
}

/* Plot Pins */
.plot-pin {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
}

.pin-1 { top: 28%; left: 18%; }
.pin-2 { bottom: 25%; right: 15%; }

.pin-pulse {
    width: 12px;
    height: 12px;
    background: #3B82F6;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.5);
    animation: pinPulse 2s infinite;
}

@keyframes pinPulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.8); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.pin-tooltip {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

/* Floating 30+ Years Trust Badge */
.floating-trust-badge {
    position: absolute;
    bottom: -8px;
    left: -8px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(245, 158, 11, 0.6);
    border-radius: var(--radius-md);
    padding: 6px 12px 6px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: floatBadge 4s ease-in-out infinite;
}

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

.badge-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--gold);
}

.badge-text-wrap {
    display: flex;
    flex-direction: column;
}

.badge-strong {
    font-size: 0.85rem;
    font-weight: 800;
    color: #FBBF24;
}

.badge-light {
    font-size: 0.65rem;
    color: #E2E8F0;
    font-weight: 600;
}

/* ==========================================================================
   3 STEP SIMPLE GUIDE BAR
   ========================================================================== */

.step-guide-bar {
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.step-card {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.step-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(22, 32, 50, 0.8);
    transform: translateY(-2px);
}

.step-card.active {
    border-color: #3B82F6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(17, 24, 39, 0.9) 100%);
    box-shadow: 0 8px 25px -5px rgba(59, 130, 246, 0.25);
}

.step-num {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-weight: 800;
    font-size: 0.92rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.step-card.active .step-num {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: #FFFFFF;
    border-color: #60A5FA;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.6);
}

.step-info {
    display: flex;
    flex-direction: column;
}

.step-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
}

.step-desc {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.step-arrow {
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   CARDS & FORMS
   ========================================================================== */

.card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.form-card {
    border-top: 3px solid var(--primary);
    background: linear-gradient(180deg, #131D31 0%, #0D121F 100%);
}

.card-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.card-header-icon {
    width: 46px;
    height: 46px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.card-header-icon .material-icons-round {
    font-size: 24px;
}

.ec-icon-theme {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #F59E0B !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

.tools-icon-theme {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #10B981 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.card-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

/* Quick Presets Strip */
.quick-presets-strip {
    background: var(--border-subtle);
    padding: 10px 28px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
}

.preset-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.preset-label .material-icons-round {
    font-size: 16px;
    color: var(--primary);
}

.preset-pill {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.preset-pill:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Form Styles */
.search-form {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.label-hint {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
}

.req-star {
    color: var(--error);
    margin-left: 2px;
}

.optional {
    font-size: 0.72rem;
    font-weight: normal;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-light);
    font-size: 20px;
    pointer-events: none;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="number"],
select.conv-input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--input-bg);
    color: var(--input-text);
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 500;
    transition: var(--transition);
    outline: none;
}

input:focus, select.conv-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3.5px var(--primary-glow);
    background: var(--card-bg);
}

.purpose-select {
    padding-left: 44px !important;
    cursor: pointer;
}

/* Autocomplete Dropdown */
.autocomplete-group {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dropdown-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: 6px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 50;
}

.autocomplete-item {
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: var(--primary-light);
}

.ac-village {
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
}

.ac-ta {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.ac-details {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Location Badge */
.location-badge {
    background: var(--primary-light);
    border: 1.5px solid rgba(37, 99, 235, 0.25);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fadeIn 0.3s ease;
}

.badge-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-content .material-icons-round {
    color: var(--primary);
    font-size: 24px;
}

.location-label-tiny {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.06em;
}

.location-name-bold {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.change-loc-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: auto !important;
    height: auto !important;
    padding: 6px 12px !important;
    border-radius: var(--radius-full) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    background: #FFFFFF !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.55);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.btn-submit-action {
    margin-top: 6px;
    padding: 16px 24px;
    font-size: 1rem;
}

/* WhatsApp Message Box */
.whatsapp-msg {
    background: #ECFDF5;
    border: 1.5px solid #A7F3D0;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    animation: fadeIn 0.3s ease;
}

.wa-badge-icon {
    width: 36px;
    height: 36px;
    background: #10B981;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wa-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #065F46;
    margin-bottom: 2px;
}

.wa-desc {
    font-size: 0.82rem;
    color: #047857;
    margin-bottom: 10px;
    line-height: 1.4;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #10B981;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.whatsapp-link:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* ==========================================================================
   RESULTS, LOADING & ERROR STATES
   ========================================================================== */

.result-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Radar Spinner */
.loading-state {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.spinner-radar {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.radar-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary-light);
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

.radar-center-icon {
    font-size: 28px;
    color: var(--primary);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state h4 {
    font-size: 1.15rem;
    font-weight: 800;
}

.loading-state p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Error State */
.error-state {
    background: var(--error-bg);
    border: 1.5px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.error-icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.error-state h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--error);
}

.error-state p {
    font-size: 0.88rem;
    color: var(--text-main);
}

/* Result Card */
.result-card {
    border-top: 4px solid var(--accent);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.result-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.result-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.success-icon-wrap {
    width: 40px;
    height: 40px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
}

.result-sub-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.official-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 0;
}

.result-section {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-right: 1px solid var(--border-color);
}

.highlight-section {
    background: var(--primary-light);
    border-right: none;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.section-title-wrap .material-icons-round {
    color: var(--primary);
    font-size: 20px;
}

.section-title-wrap h4 {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-main);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-row .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.info-row .value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: right;
}

.val-flex {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.currency-symbol {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.primary-val .value.highlight {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.badge-class {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
}

.highlight-sub {
    color: var(--primary);
    font-family: monospace;
    font-size: 1.05rem;
}

/* Subdivision Section */
.subdivision-section {
    padding: 24px 28px;
    border-top: 1px solid var(--border-color);
    background: var(--surface-elevated);
}

.subdivision-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.subdivision-header .material-icons-round {
    color: var(--primary);
}

.subdivision-header h4 {
    font-size: 1rem;
    font-weight: 800;
}

.subdiv-help {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.subdiv-dropdown-wrap {
    margin-bottom: 14px;
}

.subdiv-select-dropdown {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-md);
    background: var(--input-bg);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.subdivision-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subdiv-chip {
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.subdiv-chip:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.subdiv-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 2px 8px var(--primary-glow);
}

/* Result Expert Callout */
.result-expert-callout {
    margin: 20px 28px 28px;
    background: linear-gradient(135deg, #EFF6FF 0%, #ECFDF5 100%);
    border: 1.5px dashed rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

[data-theme="dark"] .result-expert-callout {
    background: linear-gradient(135deg, #1E293B 0%, #064E3B 100%);
}

.expert-callout-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.expert-callout-text h5 {
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.expert-callout-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.expert-cta-btn {
    background: #10B981 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
    white-space: nowrap;
    padding: 10px 18px !important;
    font-size: 0.85rem !important;
}

.expert-cta-btn:hover {
    background: #059669 !important;
}

/* ==========================================================================
   CONVERTER & UNIT TOOLS
   ========================================================================== */

.converter-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--border-subtle);
    padding: 6px;
    border-bottom: 1px solid var(--border-color);
}

.conv-tab {
    padding: 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.conv-tab:hover {
    color: var(--text-main);
}

.conv-tab.active {
    background: var(--card-bg);
    color: var(--primary);
    box-shadow: var(--shadow-xs);
}

.converter-body {
    padding: 28px;
}

.converter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.converter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.highlight-conv-item {
    border-color: rgba(37, 99, 235, 0.4);
    background: var(--primary-light);
}

.conv-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.conv-unit-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--border-subtle);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.highlight-badge {
    background: var(--primary);
    color: #FFFFFF;
}

.font-bold-conv {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
}

/* Cheatsheet Table */
.unit-cheatsheet-card {
    margin: 28px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.cheatsheet-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.cheatsheet-head .material-icons-round {
    color: var(--primary);
}

.cheatsheet-head h4 {
    font-size: 1rem;
    font-weight: 800;
}

.cheatsheet-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.cheatsheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.cheatsheet-table th {
    background: var(--border-subtle);
    padding: 12px 16px;
    font-weight: 800;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
}

.cheatsheet-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.cheatsheet-table tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   TRUST & FAQ SECTION
   ========================================================================== */

.trust-faq-section {
    max-width: 960px;
    margin: 32px auto 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

.section-badge-center {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold-light);
    color: #B45309;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin: 0 auto;
    border: 1px solid #FCD34D;
}

.section-title-center {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.section-desc-center {
    font-size: 0.92rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: -10px auto 0;
}

.features-three-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
    text-align: left;
}

.feat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.feat-icon-bubble {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feat-card h4 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.feat-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* FAQ Accordion */
.faq-accordion-wrap {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: left;
    box-shadow: var(--shadow-sm);
    margin-top: 10px;
}

.faq-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.faq-head .material-icons-round {
    color: var(--primary);
    font-size: 24px;
}

.faq-head h4 {
    font-size: 1.1rem;
    font-weight: 800;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
}

.faq-chevron {
    color: var(--text-light);
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 16px;
}

.faq-answer p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.app-footer {
    max-width: 960px;
    margin: 40px auto 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand-name {
    font-size: 1.25rem;
    font-weight: 800;
}

.footer-brand p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    padding-bottom: 20px;
}

/* ==========================================================================
   CAPTCHA MODAL POPUP
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal-dialog {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-icon-badge {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-title {
    font-size: 1.05rem;
    font-weight: 800;
}

.modal-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--border-subtle);
    color: var(--text-main);
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.captcha-instruction {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.captcha-display-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--border-subtle);
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.captcha-img-frame {
    flex: 1;
    background: #FFFFFF;
    border-radius: var(--radius-sm);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}

.captcha-image-main {
    max-height: 48px;
    object-fit: contain;
}

.btn-refresh-captcha {
    width: 44px;
    height: 44px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-refresh-captcha:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.ai-suggestion-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #EFF6FF 0%, #F5F3FF 100%);
    border: 1px solid #C7D2FE;
    padding: 8px 12px;
    border-radius: var(--radius-md);
}

.ai-suggest-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #4338CA;
}

.ai-spark {
    font-size: 16px;
    color: #6366F1;
}

.chip-btn {
    background: #4F46E5;
    color: #FFFFFF;
    border: none;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.chip-btn:hover {
    background: #4338CA;
}

.captcha-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.captcha-text-input {
    letter-spacing: 4px;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    text-align: center;
    text-transform: uppercase;
}

.captcha-err-msg {
    font-size: 0.78rem;
    color: var(--error);
    font-weight: 600;
}

.modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.modal-btn {
    flex: 1;
}

/* ==========================================================================
   SETTINGS PANEL & FLOATING WHATSAPP
   ========================================================================== */

.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 110;
}

.settings-panel {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.settings-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
}

.settings-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.settings-item-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-item-label .material-icons-round {
    color: var(--primary);
}

.settings-item-text h4 {
    font-size: 0.92rem;
    font-weight: 700;
}

.settings-item-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--border-color);
    transition: var(--transition);
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}


/* ==========================================================================
   LANDXPERTZ ASSISTANT — MODERN ENTERPRISE VALUATION SEARCH
   ========================================================================== */
.gemini-thunder-btn, .lx-assistant-trigger {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #0F172A;
    color: #FFFFFF;
    border: 1px solid #334155;
    border-radius: 9999px;
    padding: 8px 18px 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.35), 0 4px 6px -2px rgba(15, 23, 42, 0.1);
    z-index: 999;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    font-family: inherit;
}

.gemini-thunder-btn:hover, .lx-assistant-trigger:hover {
    background: #1E293B;
    border-color: #475569;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -4px rgba(15, 23, 42, 0.45);
}

.gemini-thunder-btn:active, .lx-assistant-trigger:active {
    transform: scale(0.98);
}

.thunder-icon-box, .lx-trigger-icon {
    width: 28px;
    height: 28px;
    background: #1E293B;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.thunder-title, .lx-trigger-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: #F8FAFC;
    letter-spacing: -0.01em;
}

/* Assistant Card */
.gemini-chat-popup, .lx-assistant-card {
    position: fixed;
    bottom: 84px;
    right: 28px;
    width: 400px;
    max-width: calc(100vw - 36px);
    height: 520px;
    max-height: calc(100vh - 110px);
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: lxSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-theme="dark"] .gemini-chat-popup,
[data-theme="dark"] .lx-assistant-card {
    background: #0F172A;
    border-color: #334155;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.gemini-chat-popup.active, .lx-assistant-card.active {
    display: flex;
}

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

.gemini-chat-header, .lx-assistant-header {
    background: #0F172A;
    color: #FFFFFF;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1E293B;
}

.gemini-header-info, .lx-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gemini-header-icon, .lx-header-badge {
    width: 28px;
    height: 28px;
    background: #1E293B;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gemini-header-title, .lx-header-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
}

.gemini-header-subtitle, .lx-header-subtitle {
    font-size: 0.72rem;
    color: #94A3B8;
    margin-top: 2px;
}

.gemini-close-btn, .lx-assistant-close {
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 1.1rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.gemini-close-btn:hover, .lx-assistant-close:hover {
    color: #FFFFFF;
    background: #1E293B;
}

.gemini-sample-chips, .lx-quick-chips {
    background: #F8FAFC;
    padding: 8px 12px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

[data-theme="dark"] .gemini-sample-chips,
[data-theme="dark"] .lx-quick-chips {
    background: #1E293B;
    border-color: #334155;
}

.gemini-sample-chips::-webkit-scrollbar,
.lx-quick-chips::-webkit-scrollbar {
    display: none;
}

.chip-label, .lx-chips-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sample-chip, .lx-chip {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

[data-theme="dark"] .sample-chip,
[data-theme="dark"] .lx-chip {
    background: #0F172A;
    border-color: #475569;
    color: #CBD5E1;
}

.sample-chip:hover, .lx-chip:hover {
    background: #EFF6FF;
    color: #2563EB;
    border-color: #93C5FD;
}

.gemini-messages-body, .lx-messages-stream {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #FAFAFA;
}

[data-theme="dark"] .gemini-messages-body,
[data-theme="dark"] .lx-messages-stream {
    background: #0B1120;
}

.lx-welcome-box {
    text-align: center;
    padding: 24px 16px;
    color: #64748B;
    margin: auto 0;
}

.lx-welcome-icon {
    width: 44px;
    height: 44px;
    background: #EFF6FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

[data-theme="dark"] .lx-welcome-icon {
    background: #1E293B;
}

.lx-welcome-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 4px;
}

[data-theme="dark"] .lx-welcome-title {
    color: #F8FAFC;
}

.lx-welcome-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #64748B;
    margin: 0;
}

.ai-msg {
    display: flex;
    flex-direction: column;
    max-width: 90%;
}

.ai-msg-user {
    align-self: flex-end;
}

.ai-msg-bot {
    align-self: flex-start;
    width: 100%;
    max-width: 100%;
}

.msg-bubble {
    padding: 10px 14px;
    font-size: 0.85rem;
    line-height: 1.45;
    border-radius: 12px;
    word-break: break-word;
}

.user-bubble {
    background: #2563EB;
    color: #FFFFFF;
    border-bottom-right-radius: 2px;
}

.bot-bubble {
    background: #FFFFFF;
    color: #0F172A;
    border: 1px solid #E2E8F0;
    border-bottom-left-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

[data-theme="dark"] .bot-bubble {
    background: #1E293B;
    color: #F8FAFC;
    border-color: #334155;
}

.bot-bubble.error-bubble {
    background: #FEF2F2;
    color: #991B1B;
    border-color: #FECACA;
}

[data-theme="dark"] .bot-bubble.error-bubble {
    background: #450A0A;
    color: #FCA5A5;
    border-color: #7F1D1D;
}

/* Structured Valuation Report Card */
.lx-result-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

[data-theme="dark"] .lx-result-card {
    background: #1E293B;
    border-color: #334155;
}

.lx-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.lx-result-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #059669;
    background: #ECFDF5;
    padding: 3px 8px;
    border-radius: 4px;
}

[data-theme="dark"] .lx-result-badge {
    background: #064E3B;
    color: #6EE7B7;
}

.lx-result-source {
    font-size: 0.68rem;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lx-result-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 10px;
}

[data-theme="dark"] .lx-result-price-row {
    border-color: #334155;
}

.lx-price-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748B;
}

.lx-price-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #2563EB;
}

[data-theme="dark"] .lx-price-value {
    color: #60A5FA;
}

.lx-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.lx-grid-item {
    display: flex;
    flex-direction: column;
}

.lx-grid-full {
    grid-column: span 2;
    padding-top: 4px;
    border-top: 1px dashed #F1F5F9;
}

[data-theme="dark"] .lx-grid-full {
    border-color: #334155;
}

.lx-grid-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #94A3B8;
    text-transform: uppercase;
}

.lx-grid-val {
    font-size: 0.82rem;
    font-weight: 600;
    color: #0F172A;
}

[data-theme="dark"] .lx-grid-val {
    color: #F1F5F9;
}

/* Typing indicator */
.gemini-typing-loader {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2563EB;
}

[data-theme="dark"] .gemini-typing-loader {
    color: #60A5FA;
}

.gemini-chat-input-row, .lx-input-form {
    padding: 10px 12px;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="dark"] .gemini-chat-input-row,
[data-theme="dark"] .lx-input-form {
    background: #0F172A;
    border-color: #334155;
}

.gemini-text-input, .lx-search-input {
    flex: 1;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.85rem;
    outline: none;
    background: #F8FAFC;
    color: #0F172A;
    transition: all 0.15s;
    font-family: inherit;
}

[data-theme="dark"] .gemini-text-input,
[data-theme="dark"] .lx-search-input {
    background: #1E293B;
    border-color: #475569;
    color: #F8FAFC;
}

.gemini-text-input:focus, .lx-search-input:focus {
    border-color: #2563EB;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

[data-theme="dark"] .gemini-text-input:focus,
[data-theme="dark"] .lx-search-input:focus {
    background: #0F172A;
}

.gemini-send-button, .lx-search-submit {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #2563EB;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}

.gemini-send-button:hover:not(:disabled),
.lx-search-submit:hover:not(:disabled) {
    background: #1D4ED8;
}

.gemini-send-button:disabled,
.lx-search-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .gemini-thunder-btn, .lx-assistant-trigger {
        right: 16px;
        bottom: 16px;
    }
    .gemini-chat-popup, .lx-assistant-card {
        right: 12px;
        bottom: 74px;
        width: calc(100vw - 24px);
    }
}


/* ==========================================================================
   HELPERS & UTILITIES
   ========================================================================== */

.hidden {
    display: none !important;
}

.hidden-screen {
    display: none;
}

.font-mono {
    font-family: monospace;
}

/* ==========================================================================
   PRINT STYLING
   ========================================================================== */

@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .sidebar, .topbar, .hero-interactive-banner, .step-guide-bar, .form-card, 
    .floating-whatsapp-widget, .app-footer, .trust-faq-section, .quick-presets-strip,
    .result-expert-callout, .btn-print, .header-actions {
        display: none !important;
    }
    
    .content-scroll {
        padding: 0 !important;
        overflow: visible !important;
    }
    
    .hidden-screen {
        display: block !important;
    }
    
    .print-header {
        text-align: center;
        border-bottom: 2px solid #000;
        padding-bottom: 12px;
        margin-bottom: 24px;
    }
    
    .result-card {
        border: none !important;
        box-shadow: none !important;
    }
    
    .result-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .print-footer {
        margin-top: 32px;
        border-top: 1px solid #ccc;
        padding-top: 12px;
        font-size: 11px;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */

@media (max-width: 900px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        padding: 12px 16px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .brand {
        padding: 0 0 10px;
    }
    
    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 6px 0;
        gap: 8px;
    }
    
    .nav-section-title, .user-profile {
        display: none;
    }
    
    .hero-interactive-banner {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    
    .step-guide-bar {
        grid-template-columns: 1fr;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .result-section {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .converter-grid {
        grid-template-columns: 1fr;
    }
    
    .features-three-grid {
        grid-template-columns: 1fr;
    }
    
    .content-scroll {
        padding: 16px;
    }
    
    .topbar {
        padding: 0 16px;
    }
    
    .topbar-tagline {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   RAZORPAY CONSULTATION MODAL & CHECKOUT STYLING (SENIOR UI SYSTEM)
   ========================================================================== */

.consultation-dialog {
    max-width: 580px;
    width: 95%;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25);
    background: var(--card-bg);
    overflow: hidden;
}

.modal-kicker {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 2px;
}

.form-section-label {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text-main);
    display: block;
    margin-bottom: 8px;
}

.consultation-plans-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-card {
    background: var(--surface-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.plan-card:hover {
    border-color: #93C5FD;
    background: var(--primary-light);
    transform: translateY(-1px);
}

.plan-card.selected {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    box-shadow: 0 0 0 1px var(--primary), 0 4px 12px rgba(37, 99, 235, 0.08);
}

/* Radio circle state */
.plan-radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.plan-check-icon {
    font-size: 14px;
    color: #FFFFFF;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.plan-card.selected .plan-radio-circle {
    background: var(--primary);
    border-color: var(--primary);
}

.plan-card.selected .plan-check-icon {
    opacity: 1;
    transform: scale(1);
}

.plan-content {
    flex: 1;
}

.plan-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 4px;
}

.plan-title-group {
    display: flex;
    flex-direction: column;
}

.plan-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
}

.plan-duration {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 2px;
}

.plan-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.plan-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
    color: #FFFFFF;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 2px 9px;
    border-radius: 99px;
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.35);
}

/* Phone input group with country prefix */
.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.country-prefix {
    position: absolute;
    left: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    pointer-events: none;
    user-select: none;
    border-right: 1.5px solid var(--border-color);
    padding-right: 8px;
    line-height: 1;
}

.phone-input-wrapper input[type="tel"] {
    padding-left: 54px !important;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* Trust guarantee strip */
.consult-trust-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    gap: 8px;
}

.cts-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
}

.cts-item .material-icons-round {
    font-size: 15px;
    color: var(--primary);
}

/* Price summary */
.checkout-summary-box {
    background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
}

[data-theme="dark"] .checkout-summary-box {
    background: rgba(255, 255, 255, 0.03);
}

.summary-left {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text-main);
}

.summary-tax {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.summary-total {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.rzp-pay-btn {
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.35);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 13px 22px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.rzp-pay-btn:hover {
    background: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 100%);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.45);
    transform: translateY(-1px);
}

.payment-success-icon-wrap {
    width: 68px;
    height: 68px;
    background: #D1FAE5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.success-receipt-card {
    width: 100%;
    background: var(--border-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    box-sizing: border-box;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-main);
}

.receipt-row span {
    color: var(--text-muted);
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ─── Survey Risk Check (MVP) Styles ────────────────────────────────────────── */

.rc-disclaimer-banner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 4px solid #d97706;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #92400e;
    font-size: 0.88rem;
    line-height: 1.45;
}

.rc-disclaimer-icon {
    color: #d97706;
    display: flex;
    align-items: center;
}

.rc-top-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .rc-top-grid {
        grid-template-columns: 1fr;
    }
}

.rc-prop-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rc-prop-badge-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.rc-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.rc-survey-chip {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 3px 10px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: ui-monospace, monospace;
}

.rc-norm-chip {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 3px 10px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: ui-monospace, monospace;
}

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

.rc-matrix-item {
    background: var(--bg-surface-subtle);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rc-m-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.rc-m-val {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 600;
    word-break: break-word;
}

/* Risk Score Gauge */
.rc-score-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 6px;
}

.rc-score-gauge-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rc-score-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 5px solid #cbd5e1;
    background: var(--bg-surface);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.rc-score-circle.border-low {
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.rc-score-circle.border-moderate {
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.rc-score-circle.border-high {
    border-color: #f97316;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.25);
}

.rc-score-circle.border-critical {
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}

.rc-score-number {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
}

.rc-score-max {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
}

.rc-score-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rc-level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    width: fit-content;
}

.level-low {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.level-moderate {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.level-high {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.level-critical {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    animation: pulseRisk 2s infinite;
}

@keyframes pulseRisk {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.rc-score-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.rc-score-weights-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot-crit { background: #ef4444; }
.dot-high { background: #f97316; }
.dot-med { background: #f59e0b; }
.dot-low { background: #10b981; }

/* Red Flags Cards */
.rc-redflags-card {
    margin-bottom: 20px;
}

.rc-redflags-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rc-flag-card {
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--border-subtle);
}

.flag-critical {
    background: #fff5f5;
    border-left: 5px solid #dc2626;
    border-color: #fee2e2;
}

.flag-high {
    background: #fff7ed;
    border-left: 5px solid #ea580c;
    border-color: #ffedd5;
}

.flag-medium {
    background: #fffbeb;
    border-left: 5px solid #d97706;
    border-color: #fef3c7;
}

.flag-low {
    background: #f0fdf4;
    border-left: 5px solid #16a34a;
    border-color: #dcfce7;
}

.flag-clear {
    background: #f8fafc;
    border-left: 5px solid #059669;
    border-color: #e2e8f0;
}

.rc-flag-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
}

.rc-flag-severity {
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.sev-critical { background: #fee2e2; color: #b91c1c; }
.sev-high { background: #ffedd5; color: #c2410c; }
.sev-medium { background: #fef3c7; color: #b45309; }
.sev-low { background: #dcfce7; color: #15803d; }
.sev-clear { background: #d1fae5; color: #047857; }

.rc-flag-category {
    font-weight: 700;
    color: var(--text-muted);
}

.rc-flag-source {
    margin-left: auto;
    color: var(--text-muted);
    font-style: italic;
}

.rc-flag-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.rc-flag-desc {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.45;
    margin: 0;
}

.rc-flag-evidence {
    background: rgba(0, 0, 0, 0.03);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
}

.rc-flag-evidence pre {
    margin: 4px 0 0 0;
    font-family: ui-monospace, monospace;
    color: #334155;
    white-space: pre-wrap;
}

.rc-flag-action {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.84rem;
    color: #1e40af;
    line-height: 1.4;
}

.action-icon {
    font-size: 1.1rem;
    color: #2563eb;
    margin-top: 2px;
}

/* Check Summary Table */
.rc-matrix-card {
    margin-bottom: 20px;
}

.rc-check-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.rc-check-table th,
.rc-check-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.rc-check-table th {
    background: var(--bg-surface-subtle);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.rc-status-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-match { background: #dcfce7; color: #166534; }
.status-mismatch { background: #fee2e2; color: #991b1b; }
.status-review { background: #fef3c7; color: #92400e; }
.status-na { background: #f1f5f9; color: #64748b; }

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

@media (max-width: 800px) {
    .rc-deepdive-grid {
        grid-template-columns: 1fr;
    }
}

.rc-subcard-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.rc-subdetail-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rc-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.rc-stat-box {
    background: var(--bg-surface-subtle);
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-lbl {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.rc-alert-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    line-height: 1.35;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.rc-ec-latest-party {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.rc-gl-rate-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 12px 16px;
    border-radius: var(--radius-md);
}

.gl-rate-symbol {
    font-size: 1.2rem;
    color: #15803d;
    font-weight: 700;
}

.gl-rate-val {
    font-size: 1.5rem;
    color: #166534;
    font-weight: 800;
}

.gl-rate-unit {
    font-size: 0.82rem;
    color: #15803d;
    font-weight: 600;
}

/* ==========================================================================
   SILICON VALLEY ESPRESSO LOADERS & MOTION-ORGANIC KINETIC DESIGN SYSTEM
   ========================================================================== */

/* Motion-Organic Physics */
.card, .nav-item, .btn-primary, .submit-btn, .modal-dialog {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease,
                background-color 0.25s ease;
}

.card:hover {
    box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.12);
}

/* Silicon Valley Espresso Floating Dark Pill Loaders */
.sve-pill-loader {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #F8FAFC;
    padding: 10px 22px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    user-select: none;
    animation: svePillFloat 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

@keyframes svePillFloat {
    0% { transform: translateY(0px); box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.3); }
    100% { transform: translateY(-4px); box-shadow: 0 20px 42px -4px rgba(0, 0, 0, 0.45); }
}

.sve-pill-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    gap: 14px;
    text-align: center;
}

.sve-pill-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.5;
}

/* 1. THINKING... Vortex Iris Spinner */
.sve-iris {
    width: 22px;
    height: 22px;
    position: relative;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.sve-iris-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #38BDF8;
    border-right-color: #818CF8;
    animation: sveSpin 1.1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}

.sve-iris-core {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    border-bottom-color: #C084FC;
    border-left-color: #38BDF8;
    animation: sveSpinReverse 0.85s linear infinite;
}

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

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

/* 2. SEARCHING... 3D Rotating Dotted Globe / Radar */
.sve-globe {
    width: 22px;
    height: 22px;
    position: relative;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.sve-globe-lat {
    position: absolute;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.sve-globe-axis {
    width: 10px;
    height: 100%;
    border-radius: 50%;
    border: 1.5px solid #60A5FA;
    animation: sveGlobeSpin 1.6s linear infinite;
    filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.6));
}

@keyframes sveGlobeSpin {
    0% { transform: scaleX(1); }
    50% { transform: scaleX(0.05); }
    100% { transform: scaleX(1); }
}

/* 3. SOLVING... Equalizer Audio Waveform */
.sve-equalizer {
    display: inline-flex;
    align-items: center;
    gap: 2.5px;
    height: 18px;
    flex-shrink: 0;
}

.sve-bar {
    width: 3px;
    background: linear-gradient(180deg, #34D399 0%, #059669 100%);
    border-radius: 9999px;
    height: 6px;
    animation: sveBarPulse 0.75s ease-in-out infinite alternate;
    box-shadow: 0 0 5px rgba(52, 211, 153, 0.4);
}

.sve-bar:nth-child(1) { animation-delay: 0.1s; height: 14px; }
.sve-bar:nth-child(2) { animation-delay: 0.35s; height: 8px; }
.sve-bar:nth-child(3) { animation-delay: 0.2s; height: 18px; }
.sve-bar:nth-child(4) { animation-delay: 0.45s; height: 10px; }

@keyframes sveBarPulse {
    0% { transform: scaleY(0.35); }
    100% { transform: scaleY(1.2); }
}

/* Label & Pulsing Ellipsis */
.sve-dots::after {
    content: '';
    animation: sveDots 1.6s steps(4, jump-none) infinite;
}

@keyframes sveDots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: '....'; }
}

/* ==========================================================================
   CHATGPT-STYLE DEDICATED AI ASSISTANT TAB
   ========================================================================== */
.chatgpt-shell {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    min-height: 560px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.chatgpt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--topbar-bg);
}

.chatgpt-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatgpt-avatar-pill {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.chatgpt-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chatgpt-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 9999px;
}

.chatgpt-online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    animation: livePulse 2s infinite;
}

.chatgpt-stream {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth;
}

/* Welcome Prompt State */
.chatgpt-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    max-width: 640px;
    text-align: center;
    padding: 20px;
}

.chatgpt-welcome-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.15) 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.chatgpt-welcome h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
}

.chatgpt-welcome p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.chatgpt-starter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

@media (max-width: 640px) {
    .chatgpt-starter-grid {
        grid-template-columns: 1fr;
    }
}

.chatgpt-starter-btn {
    text-align: left;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 0.88rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chatgpt-starter-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

/* Chat Message Bubbles */
.chat-row {
    display: flex;
    gap: 12px;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

.chat-row.user-row {
    justify-content: flex-end;
}

.chat-row.bot-row {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 78%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 0.94rem;
    line-height: 1.6;
    word-break: break-word;
}

.user-bubble {
    background: #2563EB;
    color: #FFFFFF;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.bot-bubble {
    background: var(--bg-color);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-xs);
}

.bot-bubble p {
    margin-bottom: 10px;
}

.bot-bubble p:last-child {
    margin-bottom: 0;
}

.bot-bubble ul, .bot-bubble ol {
    margin: 8px 0 10px 20px;
}

.bot-bubble li {
    margin-bottom: 4px;
}

.bot-bubble strong {
    color: var(--primary);
}

.bot-bubble-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-bubble-copy {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-bubble-copy:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

/* Chat Input Bar */
.chatgpt-input-tray {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
}

.chatgpt-input-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--input-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 9999px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.chatgpt-input-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.chatgpt-textarea {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--input-text);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    resize: none;
    height: 24px;
    max-height: 120px;
    line-height: 24px;
}

.chatgpt-textarea::placeholder {
    color: var(--text-light);
}

.chatgpt-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.chatgpt-send-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.chatgpt-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.chatgpt-disclaimer {
    text-align: center;
    font-size: 0.74rem;
    color: var(--text-light);
    margin-top: 8px;
}

/* ==========================================================================
   INSPO SPATIAL CADASTRAL INTELLIGENCE CANVAS & OMNIBAR HUD
   Inspired by inspomcp.dev (Sardine.ai, Linear, Rive) & Landeed GIS
   ========================================================================== */

/* Custom Smooth Slim Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* Topbar SRO Live Capsule */
.topbar-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sro-live-capsule {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    padding: 3px 10px;
}

.sro-live-dot {
    width: 7px;
    height: 7px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10B981;
    animation: sroPulse 2s infinite ease-in-out;
}

@keyframes sroPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.sro-live-text {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #34D399;
}

/* Cadastral Command Shell */
.cadastral-command-shell {
    position: relative;
    width: 100%;
    height: calc(100vh - 150px);
    min-height: 620px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
    background: #080C14;
}

.cadastral-map-viewport {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cadastral-map-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(circle at center, transparent 40%, rgba(8, 12, 20, 0.6) 80%, rgba(8, 12, 20, 0.95) 100%),
                linear-gradient(to bottom, rgba(8, 12, 20, 0.5) 0%, transparent 20%, transparent 75%, rgba(8, 12, 20, 0.8) 100%);
}

/* Floating Inspo Omnibar HUD */
.inspo-omnibar-capsule {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 820px;
    z-index: 10;
    background: rgba(13, 18, 31, 0.82);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 34px 38px 28px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.75), 0 0 40px rgba(59, 130, 246, 0.1);
    text-align: center;
    transition: var(--transition);
}

.inspo-omnibar-capsule:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.85), 0 0 50px rgba(59, 130, 246, 0.18);
}

.omnibar-top-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-full);
    padding: 4px 14px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #93C5FD;
    margin-bottom: 12px;
}

.sparkle-icon {
    color: #60A5FA;
    font-size: 13px;
    animation: sparkleSpin 4s infinite linear;
}

@keyframes sparkleSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.15); }
    100% { transform: rotate(360deg) scale(1); }
}

.omnibar-headline {
    font-size: 1.55rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.025em;
    line-height: 1.3;
    margin-bottom: 4px;
}

.omnibar-search-box {
    display: flex;
    align-items: center;
    background: rgba(11, 15, 25, 0.88);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-full);
    padding: 6px 10px 6px 18px;
    margin: 22px 0 16px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.omnibar-search-box:focus-within {
    border-color: #3B82F6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25), inset 0 2px 6px rgba(0, 0, 0, 0.4);
    background: rgba(14, 20, 36, 0.95);
}

.omnibar-search-icon {
    font-size: 22px;
    color: var(--text-light);
    margin-right: 12px;
    flex-shrink: 0;
}

.omnibar-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #F8FAFC;
    font-size: 0.98rem;
    font-family: inherit;
    font-weight: 500;
}

.omnibar-input::placeholder {
    color: var(--text-light);
}

.omnibar-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.omnibar-action-btn:hover {
    background: linear-gradient(135deg, #60A5FA 0%, #2563EB 100%);
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* Inspo Intent Chips */
.omnibar-intent-chips {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.intent-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    color: #E2E8F0;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.intent-chip:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.45);
    color: #93C5FD;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.intent-chip .chip-icon {
    font-size: 14px;
}

.omnibar-map-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* Floating District Dock */
.inspo-district-dock {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 18, 31, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 8px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    flex-wrap: wrap;
    justify-content: center;
}

.dock-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-right: 4px;
}

.dock-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #F1F5F9;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.dock-pill:hover {
    background: var(--primary);
    border-color: var(--primary-hover);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Leaflet Customizations */
.leaflet-container {
    background: #080C14 !important;
    font-family: inherit !important;
}

.custom-map-pin {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-pulse-marker {
    width: 14px;
    height: 14px;
    background: #3B82F6;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.4);
    animation: pinWave 2.4s infinite;
}

@keyframes pinWave {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.8); }
    70% { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.leaflet-popup-content-wrapper {
    background: rgba(13, 18, 31, 0.94) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--radius-md) !important;
    color: #F8FAFC !important;
    box-shadow: var(--shadow-lg) !important;
}

.leaflet-popup-tip {
    background: rgba(13, 18, 31, 0.94) !important;
}

.map-popup-card {
    padding: 6px 2px;
}

.map-popup-card h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 2px;
}

.map-popup-card p {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.btn-popup-select {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-full);
    padding: 5px 12px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-popup-select:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}


