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

  :root {
    /* ══════════════════════════════════════════════════════════
       BHUCHAIN LUXURY . Warm Gold & Beige Premium Palette
       ══════════════════════════════════════════════════════════ */

    /* ── Primary Gold Accent ── */
    --primary:      #C8973A;        /* bright gold */
    --primary-dim:  #FFD700;        /* lighter gold */
    --primary-soft: rgba(200,151,58,0.10);
    --primary-glow: rgba(200,151,58,0.22);

    /* ── Secondary Deep Brown ── */
    --teal:         #7C4A1E;        /* warm espresso brown (replaces teal) */
    --teal-dim:     #6B3E18;
    --teal-soft:    rgba(124,74,30,0.10);
    --teal-glow:    rgba(124,74,30,0.18);

    /* ── Accent & Status ── */
    --gold:         #B5813A;        /* matches primary */
    --red:          #C0392B;        /* muted terracotta red */

    /* ── Legacy compat aliases ── */
    --cyan:         #B5813A;
    --cyan-dim:     #96681F;
    --cyan-glow:    rgba(200,151,58,0.14);
    --violet:       #B5813A;
    --violet-dim:   #C9973A;
    --violet-glow:  rgba(200,151,58,0.15);
    --emerald:      #7C9A5E;        /* soft sage green for verified states */

    /* ── Warm Ivory Background System ── */
    --bg:           #F5EDE0;        /* warmer beige base (50% less white) */
    --bg-1:         #EDE0CE;        /* deeper cream */
    --bg-2:         #E4D4BC;        /* warm beige cards */
    --bg-3:         #D9C8A8;        /* hover / pressed */
    --surface-1:    #FAF5EC;        /* warm cream cards (50% less white) */
    --surface-2:    #F5EDE0;        /* warm beige surfaces */

    /* ── Borders (warm golden) ── */
    --border:       rgba(200,151,58,0.14);
    --border-md:    rgba(200,151,58,0.28);
    --border-hi:    rgba(200,151,58,0.55);
    --border-warm:  rgba(200,151,58,0.20);

    /* ── Text (deep warm brown) ── */
    --text-1:       #2C1810;        /* deep espresso brown */
    --text-2:       #6B4C35;        /* warm medium brown */
    --text-3:       #A68660;        /* soft tan / muted gold */

    /* ── Legacy "slate" aliases → warm brown tones ── */
    --slate-950: #2C1810;
    --slate-900: #3D2314;
    --slate-800: #5A3520;
    --slate-700: #6B4C35;
    --slate-600: #7D5C45;
    --slate-500: #A68660;
    --slate-400: #C4A882;
    --slate-300: #DDD0BC;
    --slate-200: rgba(200,151,58,0.18);
    --slate-100: rgba(200,151,58,0.09);
    --slate-50:  rgba(200,151,58,0.05);
    --white:     #2C1810;

    /* ── Legacy "green" aliases → warm beige tones ── */
    --green-950: #FBF8F3;
    --green-900: #F5EDE0;
    --green-800: #EDE0CE;
    --green-700: #B5813A;
    --green-600: #C9973A;
    --green-500: #B5813A;
    --green-400: #D4A96A;
    --green-200: rgba(200,151,58,0.35);
    --green-100: rgba(200,151,58,0.14);
    --green-50:  rgba(200,151,58,0.07);

    /* ── Shadows (warm amber, ultra-subtle) ── */
    --shadow-sm: 0 2px 10px rgba(100,65,25,0.07);
    --shadow:    0 4px 24px rgba(100,65,25,0.10);
    --shadow-lg: 0 8px 44px rgba(100,65,25,0.14);
    --shadow-xl: 0 0 0 1px rgba(200,151,58,0.08), 0 20px 60px rgba(100,65,25,0.14);
    --glow:      0 0 28px rgba(200,151,58,0.22);
    --glow-v:    0 0 28px rgba(200,151,58,0.28);

    --radius:    12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    /* ── Gold / Amber extended system ── */
    --yellow:        #C9973A;
    --yellow-deep:   #A07828;
    --yellow-light:  #FEF3DC;
    --yellow-mid:    #F5DDAA;
    --yellow-soft:   rgba(201,151,58,0.12);
    --yellow-glow:   rgba(201,151,58,0.24);
    --yellow-border: rgba(201,151,58,0.32);

    --overlay:      rgba(60,30,10,0.42);
    --overlay-dark: rgba(60,30,10,0.62);
    --surface-yellow: #F8EDD8;
    --surface-amber:  #F2E4D0;

    /* ── Rounded Fonts (unchanged) ── */
    --font-head: 'Nunito', sans-serif;
    --font-display: 'simply bold', Georgia, serif;  /* luxury display */
    --font-body: 'Nunito Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
  }

  /* ══════════════════════════════════════════════════════════
     DARK THEME . Luxury Dark Gold
     ══════════════════════════════════════════════════════════ */
  [data-theme="dark"] {
    --primary:      #D4A94E;
    --primary-dim:  #E8C55A;
    --primary-soft: rgba(212,169,78,0.12);
    --primary-glow: rgba(212,169,78,0.25);

    --teal:         #A8784A;
    --teal-dim:     #8C6438;
    --teal-soft:    rgba(168,120,74,0.12);
    --teal-glow:    rgba(168,120,74,0.20);

    --gold:         #D4A94E;
    --red:          #E85D4A;

    --cyan:         #D4A94E;
    --cyan-dim:     #B8923A;
    --cyan-glow:    rgba(212,169,78,0.16);
    --violet:       #D4A94E;
    --violet-dim:   #E0B862;
    --violet-glow:  rgba(212,169,78,0.18);
    --emerald:      #8FB06E;

    --bg:           #141210;
    --bg-1:         #1C1916;
    --bg-2:         #282420;
    --bg-3:         #342E28;
    --surface-1:    #28241E;
    --surface-2:    #1E1B18;

    --border:       rgba(212,169,78,0.15);
    --border-md:    rgba(212,169,78,0.30);
    --border-hi:    rgba(212,169,78,0.50);
    --border-warm:  rgba(212,169,78,0.20);

    --text-1:       #F0E6D6;
    --text-2:       #B8A68E;
    --text-3:       #8A7A66;

    --slate-950: #F0E6D6;
    --slate-900: #E6DCC8;
    --slate-800: #D4C8B2;
    --slate-700: #B8A68E;
    --slate-600: #9E8E76;
    --slate-500: #8A7A66;
    --slate-400: #6A5E50;
    --slate-300: #3E3830;
    --slate-200: rgba(212,169,78,0.14);
    --slate-100: rgba(212,169,78,0.08);
    --slate-50:  rgba(212,169,78,0.04);
    --white:     #F0E6D6;

    --green-950: #141210;
    --green-900: #1C1916;
    --green-800: #252220;
    --green-700: #D4A94E;
    --green-600: #E0B862;
    --green-500: #D4A94E;
    --green-400: #C49A3E;
    --green-200: rgba(212,169,78,0.28);
    --green-100: rgba(212,169,78,0.12);
    --green-50:  rgba(212,169,78,0.06);

    --shadow-sm: 0 2px 10px rgba(0,0,0,0.25);
    --shadow:    0 4px 24px rgba(0,0,0,0.35);
    --shadow-lg: 0 8px 44px rgba(0,0,0,0.45);
    --shadow-xl: 0 0 0 1px rgba(212,169,78,0.08), 0 20px 60px rgba(0,0,0,0.45);
    --glow:      0 0 28px rgba(212,169,78,0.28);
    --glow-v:    0 0 28px rgba(212,169,78,0.35);

    --yellow:        #E0B862;
    --yellow-deep:   #C49A3E;
    --yellow-light:  #302818;
    --yellow-mid:    #3E3422;
    --yellow-soft:   rgba(212,169,78,0.14);
    --yellow-glow:   rgba(212,169,78,0.28);
    --yellow-border: rgba(212,169,78,0.30);

    --overlay:      rgba(0,0,0,0.40);
    --overlay-dark: rgba(0,0,0,0.65);
    --surface-yellow: #2A2418;
    --surface-amber:  #2C261A;
  }

  /* Dark mode body backgrounds */
  [data-theme="dark"] body::before {
    background:
      radial-gradient(ellipse 80% 60% at 15% 10%,  rgba(212,169,78,0.06) 0%, transparent 55%),
      radial-gradient(ellipse 60% 80% at 85% 80%,  rgba(168,120,74,0.05) 0%, transparent 55%),
      radial-gradient(ellipse 50% 40% at 50% 50%,  rgba(212,169,78,0.04) 0%, transparent 60%),
      #141210;
  }
  [data-theme="dark"] body::after {
    background-image: radial-gradient(circle, rgba(212,169,78,0.06) 1px, transparent 1px);
  }
  [data-theme="dark"] .navbar {
    background: rgba(20,18,16,0.94);
    box-shadow: 0 1px 20px rgba(0,0,0,0.25);
  }
  [data-theme="dark"] .navbar::after {
    background: linear-gradient(90deg, transparent, rgba(212,169,78,0.40), rgba(168,120,74,0.25), transparent);
  }
  [data-theme="dark"] img { opacity: 0.95; }

  [data-theme="dark"] .form-input,
[data-theme="dark"] .form-select {
  color: var(--text-1);   /* light readable text */
}

  /* Smooth theme transition */
  body, body::before, body::after,
  .navbar, .navbar::after {
    transition: background 0.4s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  }

  /* ── Chatbot & New Feature Animations ── */
  @keyframes pulse { 0%,100%{opacity:0.3} 50%{opacity:1} }
  @keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
  .fade-in { animation: fadeIn 0.4s ease; }

  /* ══════════════════════════════════════════════════════════
     HOLOGRAPHIC CERTIFICATE CARD — BhuChain v11
     ══════════════════════════════════════════════════════════ */
  :root {
    --hol-card-radius: 22px;
    --hol-pointer-x: 50%;
    --hol-pointer-y: 50%;
    --hol-card-opacity: 0;
    --hol-rotate-x: 0deg;
    --hol-rotate-y: 0deg;
    --hol-bg-x: 50%;
    --hol-bg-y: 50%;
    --hol-from-center: 0;
    --hol-from-top: 0.5;
    --hol-from-left: 0.5;
  }

  .hol-cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    max-width: 100%;
  }

  .hol-cert-wrapper {
    perspective: 500px;
    transform: translate3d(0,0,0.1px);
    position: relative;
    touch-action: none;
  }

  .hol-cert-behind {
    position: absolute; inset: -16px; z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--hol-pointer-x) var(--hol-pointer-y),
      rgba(200,151,58,0.70) 0%, transparent 55%);
    filter: blur(60px) saturate(0.9);
    opacity: calc(0.4 * var(--hol-card-opacity));
    transition: opacity 300ms ease;
  }

  .hol-cert-shell {
    position: relative; z-index: 1;
    transform: translateZ(0) rotateX(var(--hol-rotate-y)) rotateY(var(--hol-rotate-x));
    transition: transform 1s ease;
    border-radius: var(--hol-card-radius);
  }
  .hol-cert-shell:hover, .hol-cert-shell.hol-active {
    transition: none;
  }
  .hol-cert-shell.hol-entering { transition: transform 180ms ease-out; }

  .hol-cert-card {
    border-radius: var(--hol-card-radius);
    background: linear-gradient(160deg, #120c00 0%, #1e1500 45%, #110a00 100%);
    border: 1.5px solid rgba(200,151,58,0.50);
    box-shadow:
      rgba(0,0,0,0.75) calc((var(--hol-from-left)*10px) - 3px) calc((var(--hol-from-top)*18px) - 5px) 20px -4px,
      0 0 0 1px rgba(200,151,58,0.08) inset,
      0 0 40px rgba(200,151,58,0.06) inset;
    overflow: hidden;
    position: relative;
    isolation: isolate;
  }

  /* Holographic shine layer */
  .hol-shine {
    position: absolute; inset: 0; z-index: 3;
    pointer-events: none; border-radius: var(--hol-card-radius);
    --space: 0.1%;
    --angle: -45deg;
    --sp1: hsl(2,100%,73%); --sp2: hsl(53,100%,69%); --sp3: hsl(93,100%,69%);
    --sp4: hsl(176,100%,76%); --sp5: hsl(228,100%,74%); --sp6: hsl(283,100%,73%);
    background-image:
      repeating-linear-gradient(0deg,
        var(--sp1) calc(var(--space)*1), var(--sp2) calc(var(--space)*2),
        var(--sp3) calc(var(--space)*3), var(--sp4) calc(var(--space)*4),
        var(--sp5) calc(var(--space)*5), var(--sp6) calc(var(--space)*6),
        var(--sp1) calc(var(--space)*7)),
      repeating-linear-gradient(var(--angle),
        #0e152e 0%, hsl(180,10%,60%) 3.8%, hsl(180,29%,66%) 4.5%,
        hsl(180,10%,60%) 5.2%, #0e152e 10%, #0e152e 12%),
      radial-gradient(farthest-corner circle at var(--hol-pointer-x) var(--hol-pointer-y),
        hsla(0,0%,0%,0.1) 12%, hsla(0,0%,0%,0.15) 20%, hsla(0,0%,0%,0.25) 120%);
    background-position: 0 var(--hol-bg-y), var(--hol-bg-x) var(--hol-bg-y), center;
    background-blend-mode: color, hard-light;
    background-size: 500% 500%, 300% 300%, 200% 200%;
    mix-blend-mode: color-dodge;
    filter: brightness(0.55) contrast(1.3) saturate(0.25) opacity(0.35);
    transition: filter 0.8s ease, opacity 0.5s ease;
    opacity: 0;
  }
  .hol-cert-shell:hover .hol-shine,
  .hol-cert-shell.hol-active .hol-shine {
    filter: brightness(0.65) contrast(1.3) saturate(0.30);
    opacity: 1;
  }

  /* Glare layer */
  .hol-glare {
    position: absolute; inset: 0; z-index: 4;
    pointer-events: none; border-radius: var(--hol-card-radius);
    background: radial-gradient(farthest-corner circle at var(--hol-pointer-x) var(--hol-pointer-y),
      hsla(45,60%,80%,0.18) 10%, hsla(30,40%,30%,0.06) 90%);
    mix-blend-mode: overlay;
    opacity: calc(0.85 * var(--hol-card-opacity));
    transition: opacity 300ms ease;
  }

  /* Card hover state triggers */
  .hol-cert-wrapper:hover { --hol-card-opacity: 1; }

  /* Image area on top of card — square for profile/property picture */
  .hol-cert-img-wrap {
    position: relative;
    height: 320px;
    width: 100%;
    overflow: hidden;
    border-bottom: 1.5px solid rgba(200,151,58,0.35);
    background: linear-gradient(180deg, #1a1108 0%, #0e0b05 60%, #180f04 100%);
  }
  .hol-cert-img-wrap img {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    filter: sepia(0.4) contrast(1.1) brightness(0.85);
    display: block;
  }
  .hol-cert-img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #120900 0%, #2a1800 50%, #120900 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px;
  }
  .hol-cert-nft3d-wrap {
    position: absolute; inset: 0; width: 100%; height: 100%;
  }
  .hol-cert-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,6,0,0.10) 0%, rgba(10,6,0,0.55) 100%);
    pointer-events: none;
  }
  .hol-cert-img-bar {
    height: 2.5px;
    background: linear-gradient(90deg, transparent, rgba(200,151,58,0.9) 20%, #C8973A 50%, rgba(200,151,58,0.9) 80%, transparent);
  }
  .hol-cert-map-label {
    position: absolute; top: 8px; left: 10px;
    background: rgba(0,0,0,0.65); backdrop-filter: blur(6px);
    border: 1px solid rgba(200,151,58,0.4); border-radius: 5px;
    padding: 3px 8px; font-size: 8px; font-weight: 700;
    color: rgba(200,151,58,0.9); letter-spacing: 1.2px;
    font-family: var(--font-body);
  }
  .hol-cert-verified-badge {
    position: absolute; top: 8px; right: 10px;
    background: rgba(16,185,129,0.14); border: 1px solid rgba(16,185,129,0.38);
    color: #6ee7b7; padding: 3px 9px; border-radius: 20px;
    font-size: 8px; font-weight: 800; letter-spacing: 1.2px;
    font-family: var(--font-body);
  }
  .hol-cert-sample-badge {
    position: absolute; top: 8px; right: 10px;
    background: rgba(200,151,58,0.12); border: 1px solid rgba(200,151,58,0.35);
    color: #C8973A; padding: 3px 9px; border-radius: 20px;
    font-size: 8px; font-weight: 800; letter-spacing: 1.2px;
    font-family: var(--font-body);
  }

  /* Body area */
  .hol-cert-body { padding: 14px 16px 0; position: relative; z-index: 2; }

  .hol-cert-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
  }
  .hol-cert-seal {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg,#C8973A,#8B5E1A);
    border: 1.5px solid rgba(200,151,58,0.55);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    box-shadow: 0 0 0 3px rgba(200,151,58,0.08), 0 3px 12px rgba(0,0,0,0.5);
  }
  .hol-cert-org-text {}
  .hol-cert-org-name {
    font-size: 7.5px; color: rgba(200,151,58,0.70); letter-spacing: 2px;
    font-family: var(--font-body); font-weight: 700; margin-bottom: 1px;
    text-transform: uppercase;
  }
  .hol-cert-org-sub {
    font-size: 7px; color: rgba(200,151,58,0.38); letter-spacing: 1px;
    font-family: var(--font-body);
  }

  .hol-cert-divider {
    height: 1px; margin: 0 0 10px;
    background: linear-gradient(90deg, transparent, rgba(200,151,58,0.55) 25%, rgba(200,151,58,0.85) 50%, rgba(200,151,58,0.55) 75%, transparent);
  }

  .hol-cert-title {
    font-size: 15px; font-weight: 900; color: #F5D78A;
    font-family: var(--font-head); line-height: 2.1;
    text-shadow: 0 2px 12px rgba(200,151,58,0.3);
    margin-left: 6px;
    margin-bottom: 3px;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  }
  .hol-cert-location {
    font-size: 10px; color: rgba(245,215,138,0.45);
    font-family: var(--font-body); margin-bottom: 10px;
  }

  /* Info rows */
  .hol-cert-info-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px;
  }
  .hol-cert-info-box {
    background: rgba(0,0,0,0.30);
    border: 1px solid rgba(200,151,58,0.18);
    border-radius: 7px; padding: 6px 8px;
  }
  .hol-cert-info-label {
    font-size: 7px; color: rgba(200,151,58,0.45); letter-spacing: 1.2px;
    font-family: var(--font-body); font-weight: 700; margin-bottom: 2px;
    text-transform: uppercase;
  }
  .hol-cert-info-val {
    font-size: 10px; color: rgba(245,215,138,0.82); font-weight: 700;
    font-family: var(--font-body);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }

  /* BhuID bar */
  .hol-cert-bhuid-bar {
    background: rgba(0,0,0,0.38);
    border: 1px solid rgba(200,151,58,0.28);
    border-radius: 8px; padding: 7px 10px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; gap: 6px;
  }
  .hol-cert-bhuid-val {
    font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
    color: #C8973A; letter-spacing: 0.4px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .hol-cert-onchain {
    display: flex; align-items: center; gap: 5px; flex-shrink: 0;
    background: rgba(200,151,58,0.10); border: 1px solid rgba(200,151,58,0.28);
    border-radius: 14px; padding: 3px 9px;
    font-size: 8.5px; font-weight: 800; color: #C8973A; letter-spacing: 0.6px;
    font-family: var(--font-body);
  }
  .hol-cert-onchain-dot {
    width: 5px; height: 5px; border-radius: 50%; background: #C8973A; display: inline-block;
  }

  /* Footer */
  .hol-cert-footer {
    border-top: 1px solid rgba(200,151,58,0.15);
    padding: 10px 16px 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    position: relative; z-index: 10;
  }
  .hol-cert-registry {
    display: flex; align-items: center; gap: 7px;
  }
  .hol-cert-registry-text .hol-cert-reg-name {
    font-size: 11px; color: rgba(200,151,58,0.75); letter-spacing: 0.9px;
    font-family: var(--font-body); font-weight: 700; margin-bottom: 1px;
    text-transform: uppercase;
  }
  .hol-cert-registry-text .hol-cert-reg-sub {
    font-size: 8.5px; color: rgba(245,215,138,0.75); font-family: var(--font-body);
  }
  .hol-cert-transfer-btn {
    background: linear-gradient(135deg,#C8973A,#8B5E1A);
    border: 1px solid rgba(200,151,58,0.45);
    color: #FFF8E7; padding: 8px 14px; border-radius: 10px;
    cursor: pointer; font-size: 10px; font-weight: 800;
    font-family: var(--font-body); display: flex; align-items: center; gap: 5px;
    box-shadow: 0 3px 16px rgba(200,151,58,0.30);
    transition: all .2s; letter-spacing: 0.2px; white-space: nowrap;
    position: relative; z-index: 10; pointer-events: auto;
  }
  .hol-cert-transfer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(200,151,58,0.55);
    background: linear-gradient(135deg,#e0aa44,#a06820);
  }

  /* Corner ornaments */
  .hol-cert-corner { position: absolute; pointer-events: none; z-index: 1; }

  /* SAMPLE watermark */
  .hol-cert-watermark {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%) rotate(-28deg);
    font-size: 44px; font-weight: 900;
    color: rgba(200,151,58,0.055); letter-spacing: 6px;
    pointer-events: none; z-index: 1;
    font-family: var(--font-head); white-space: nowrap; user-select: none;
  }

  /* Admin image upload overlay */
  .hol-img-upload-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.60); backdrop-filter: blur(4px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; opacity: 0; transition: opacity 0.25s ease;
    cursor: pointer; z-index: 5;
  }
  

  @media (max-width: 900px) {
    .hol-cert-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  }
  @media (max-width: 500px) {
    .hol-cert-grid { grid-template-columns: 1fr; }
  }

  /* ── DANGER / WARNING Section Animations ── */
  @keyframes dangerPulse {
    0%,100% { transform: scale(1); opacity: 0.7; }
    50%      { transform: scale(1.18); opacity: 1; }
  }
  @keyframes dangerBorderFlash {
    0%,100% { opacity: 0.5; }
    50%      { opacity: 1; }
  }
  @keyframes warningBadgePulse {
    0%,100% { box-shadow: 0 4px 24px rgba(192,57,43,0.18), 0 0 0 4px rgba(192,57,43,0.06); }
    50%      { box-shadow: 0 4px 32px rgba(192,57,43,0.38), 0 0 0 8px rgba(192,57,43,0.12); }
  }
  @keyframes warningIconShake {
    0%,100% { transform: rotate(0deg); }
    10%      { transform: rotate(-12deg); }
    20%      { transform: rotate(12deg); }
    30%      { transform: rotate(-8deg); }
    40%      { transform: rotate(8deg); }
    50%      { transform: rotate(0deg); }
  }
  @keyframes amountFlicker {
    0%,90%,100% { opacity:1; text-shadow: 0 0 20px rgba(192,57,43,0.3); }
    92%          { opacity:0.6; }
    94%          { opacity:1; }
    96%          { opacity:0.7; }
  }
  @keyframes successBadgePulse {
    0%,100% { box-shadow: 0 4px 24px rgba(34,197,94,0.18), 0 0 0 4px rgba(34,197,94,0.06); }
    50%      { box-shadow: 0 4px 32px rgba(34,197,94,0.38), 0 0 0 8px rgba(34,197,94,0.12); }
  }
  @keyframes successGlow {
    0%,100% { opacity:1; text-shadow: 0 0 20px rgba(34,197,94,0.3); }
    50%      { opacity:0.85; text-shadow: 0 0 28px rgba(34,197,94,0.5); }
  }
  @keyframes problemCardIn {
    from { opacity:0; transform:translateY(28px); }
    to   { opacity:1; transform:translateY(0); }
  }
  @keyframes iconWobble {
    0%,100% { transform: rotate(0deg) scale(1); }
    20%      { transform: rotate(-6deg) scale(1.05); }
    40%      { transform: rotate(5deg) scale(1.02); }
    60%      { transform: rotate(-3deg) scale(1); }
    80%      { transform: rotate(0deg) scale(1); }
  }

  /* ══ HERO PARALLAX SYSTEM ══════════════════════════════════ */
  .hero-main-section {
    transform-style: preserve-3d;
    perspective: 1200px;
  }
  .blockchain-canvas-wrap {
    will-change: transform;
    transform-origin: center top;
  }
  .hero-right-logo {
    will-change: transform;
  }
  /* Subtle vignette that deepens as you scroll — pure CSS, no JS */
  .hero-main-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 100%,
      rgba(0,0,0,0.0) 0%,
      rgba(44,24,16,0.05) 100%);
    pointer-events: none;
    z-index: 9;
  }

  /* ── Luxury Section Entrance Helpers ── */
  @keyframes srCounterReveal {
    from { opacity:0; transform:translateY(14px) scale(0.92); }
    to   { opacity:1; transform:none; }
  }
  .sr-counter { opacity:0; }
  .sr-counter.visible {
    animation: srCounterReveal 0.7s cubic-bezier(0.16,1,0.3,1) both;
    opacity:1;
  }

  /* ══════════════════════════════════════════════
     SCROLL REVEAL SYSTEM — BhuChain Premium
     ══════════════════════════════════════════════ */
  .sr {
    opacity: 0;
    will-change: opacity, transform;
    transition:
      opacity   0.80s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.80s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .sr-up    { transform: translateY(52px); }
  .sr-left  { transform: translateX(-52px) translateY(12px); }
  .sr-right { transform: translateX(52px)  translateY(12px); }
  .sr-scale { transform: scale(0.86) translateY(24px); }
  .sr-flip  { transform: perspective(600px) rotateX(18deg) translateY(30px); }
  .sr.visible {
    opacity: 1 !important;
    transform: none !important;
  }

  @keyframes srLineGrow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
  .sr-divider {
    transform-origin: left center;
    animation: none;
  }
  .sr-divider.visible {
    animation: srLineGrow 0.9s cubic-bezier(0.16,1,0.3,1) both;
  }

  /* ── Featured Badge Shimmer ── */
  @keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
  }

  /* ── Theme Toggle Button ── */
  .theme-toggle-btn {
    position: relative;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(200,151,58,0.25);
    background: rgba(200,151,58,0.06);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden;
    flex-shrink: 0;
  }
  .theme-toggle-btn:hover {
    background: rgba(200,151,58,0.15);
    border-color: rgba(200,151,58,0.45);
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(200,151,58,0.25);
  }
  .theme-toggle-btn:active { transform: scale(0.95); }
  .theme-toggle-icon {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
  }
  .theme-toggle-btn:hover .theme-toggle-icon { transform: rotate(30deg); }

  html { scroll-behavior: smooth; overflow-x: hidden; }
  body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-1);
    line-height: 1.65;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
  }
  *, *::before, *::after { box-sizing: border-box; }
  #root, #root > div { overflow-x: hidden; max-width: 100vw; }
  h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.15; color: var(--text-1); }

  /* Warm paper texture background */
  body::before {
    content: '';
    position: fixed; inset: 0; z-index: -2;
    background:
      radial-gradient(ellipse 80% 60% at 15% 10%,  rgba(200,151,58,0.07) 0%, transparent 55%),
      radial-gradient(ellipse 60% 80% at 85% 80%,  rgba(124,74,30,0.06) 0%, transparent 55%),
      radial-gradient(ellipse 50% 40% at 50% 50%,  rgba(201,151,58,0.05) 0%, transparent 60%),
      var(--bg);
    pointer-events: none;
  }
  /* Subtle dot pattern for paper feel */
  body::after {
    content: '';
    position: fixed; inset: 0; z-index: -1;
    background-image: radial-gradient(circle, rgba(200,151,58,0.09) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
  }

  /* ── LAYOUT ── */
  .container    { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
  .section      { padding: 60px 0; }
  .section-sm   { padding: 36px 0; }
  .grid-2       { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .grid-3       { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px,100%),1fr)); gap: 18px; }
  .grid-4       { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }

  /* ── NAVBAR ── */
  .navbar {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(245,237,224,0.92);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--border-warm);
    padding: 0 5px; height: 60px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 1px 20px rgba(100,65,25,0.08);
  }
  .navbar::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(200,151,58,0.45), rgba(124,74,30,0.30), transparent);
  }
  .nav-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; }
  .nav-logo {
    display: flex; align-items: center;
  }
  .nav-logo img {
    height: 56px; width: auto;
    display: block;
    object-fit: contain;
  }
  .nav-name { display: none; }  /* hidden . logo image replaces text */
  .nav-links    { display: flex; align-items: center; gap: 2px; }
  .nav-link {
    padding: 7px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 500;
    color: var(--text-2); cursor: pointer; transition: all .2s;
    background: none; border: none; font-family: var(--font-body);
  }
  .nav-link:hover  { color: var(--primary); background: rgba(200,151,58,0.09); }
  .nav-link.active { color: var(--primary); font-weight: 700; }
  .nav-actions { display: flex; gap: 10px; align-items: center; }
  .nav-hamburger { display: none; background: none; border: 1px solid var(--border-warm); color: var(--text-2); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 16px; align-items: center; justify-content: center; }

  /* ── BUTTONS ── */
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: 9px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .2s; border: none;
    font-family: var(--font-body); text-decoration: none; white-space: nowrap;
    letter-spacing: 0.1px;
  }
  .btn-sm  { padding: 7px 14px; font-size: 12.5px; border-radius: 7px; }
  .btn-lg  { padding: 13px 28px; font-size: 15px; border-radius: 11px; }
  .btn-xl  { padding: 15px 34px; font-size: 16px; border-radius: 12px; }
  .btn-primary {
    background: linear-gradient(135deg, #96681F 0%, #B5813A 45%, #C9973A 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 18px rgba(150,104,31,0.40), 0 2px 6px rgba(150,104,31,0.22);
    font-weight: 700;
    letter-spacing: 0.2px;
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(150,104,31,0.50), 0 4px 12px rgba(150,104,31,0.28);
    background: linear-gradient(135deg, #A0721F 0%, #C9973A 50%, #DDB04A 100%);
  }
  .btn-outline {
    background: transparent; color: var(--primary);
    border: 1.5px solid rgba(200,151,58,0.45);
    box-shadow: inset 0 0 12px rgba(200,151,58,0.04);
  }
  .btn-outline:hover { background: rgba(200,151,58,0.08); box-shadow: 0 4px 16px rgba(200,151,58,0.18); transform: translateY(-1px); border-color: var(--primary); }
  .btn-primary {
    background: linear-gradient(135deg, #96681F 0%, #B5813A 45%, #C9973A 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 18px rgba(150,104,31,0.40), 0 2px 6px rgba(150,104,31,0.22);
    font-weight: 700;
    letter-spacing: 0.2px;
  }
  .btn-ghost:hover  { background: #ffffff; color: var(--text-1); border-color: rgba(200,151,58,0.35); }
  .btn-gold {
    background: linear-gradient(135deg, #b45309, var(--gold));
    color: #1c1117;
    box-shadow: 0 4px 16px rgba(245,158,11,0.3);
  }
  .btn-gold:hover   { transform: translateY(-2px); box-shadow: 0 0 32px rgba(245,158,11,0.45); }
  .btn-danger       { background: linear-gradient(135deg, #be123c, var(--red)); color: white; box-shadow: 0 0 16px rgba(192,57,43,0.25); }
  .btn-danger:hover { transform: translateY(-1px); box-shadow: 0 0 24px rgba(192,57,43,0.4); }
  .btn:disabled     { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

  /* ── GLASS CARDS ── */
  .card {
    background: var(--surface-1);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-warm);
    box-shadow: var(--shadow);
  }
  .card-hover { transition: all .25s; cursor: pointer; }
  .card-hover:hover {
    transform: translateY(-5px);
    border-color: var(--border-md);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(200,151,58,0.12);
  }

  [data-theme="dark"] .form-input::placeholder {
  color: var(--text-3);
}


  /* ── BADGES ── */
  .badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 20px; font-size: 11.5px; font-weight: 600; font-family: var(--font-body); }
  .badge-green    { background: rgba(124,154,94,0.12); color: #5A7A3A; border: 1px solid rgba(124,154,94,0.30); }
  .badge-verified { background: linear-gradient(135deg, rgba(124,154,94,0.18), rgba(124,154,94,0.09)); color: #4A6A2E; border: 1px solid rgba(124,154,94,0.32); box-shadow: 0 2px 8px rgba(124,154,94,0.12); }
  .badge-pending  { background: rgba(217,119,6,0.1); color: #b45309; border: 1px solid rgba(217,119,6,0.25); }
  .badge-rejected { background: rgba(220,38,38,0.08); color: #dc2626; border: 1px solid rgba(220,38,38,0.22); }
  .badge-blue     { background: rgba(200,151,58,0.10); color: var(--primary); border: 1px solid rgba(200,151,58,0.28); }
  .badge-gold     { background: rgba(217,119,6,0.09); color: #b45309; border: 1px solid rgba(217,119,6,0.25); }

  /* ── FORMS ── */
  .form-group { margin-bottom: 18px; }
  .form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.7px; font-family: var(--font-body); }
  .form-input {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--border-warm);
    border-radius: var(--radius);
    font-size: 14px; font-family: var(--font-body);
    color: var(--text-1); background: var(--surface-1);   /* ✅ auto theme */
    outline: none; transition: border-color .2s, box-shadow .2s;
    box-shadow: 0 1px 4px rgba(200,151,58,0.06);
  }
  .form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200,151,58,0.14), 0 2px 8px rgba(200,151,58,0.10); }
  .form-input::placeholder { color: var(--text-3); }
  .form-textarea { min-height: 100px; resize: vertical; }
  .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B5813A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
  }
  .form-error { font-size: 12px; color: var(--red); margin-top: 5px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  @media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

  /* ── FILE UPLOAD ── */
  .upload-zone {
    border: 1.5px dashed var(--border-md); border-radius: var(--radius);
    padding: 28px; text-align: center; cursor: pointer; transition: all .2s;
    background: rgba(200,151,58,0.03);
  }
  .upload-zone:hover  { border-color: var(--primary); background: rgba(200,151,58,0.07); }
  .upload-zone.has-file { border-color: #7C9A5E; background: rgba(124,154,94,0.10); border-style: solid; }
  .upload-icon  { font-size: 28px; margin-bottom: 8px; }
  .upload-label { font-size: 13px; font-weight: 500; color: var(--text-2); }
  .upload-hint  { font-size: 11px; color: var(--text-3); margin-top: 4px; }

  /* ── HERO ── */
  .hero {
    min-height: 72vh; display: flex; align-items: center;
    position: relative; overflow: hidden; padding: 20px 0;
    background: transparent;
  }
  .hero::before {
    content: ''; position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 70% 70% at 70% 40%, rgba(200,151,58,0.08) 0%, transparent 60%),
      radial-gradient(ellipse 50% 50% at 20% 80%, rgba(124,74,30,0.07) 0%, transparent 60%);
  }
  /* Subtle grid overlay for hero */
  .hero::after {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background-image:
      linear-gradient(rgba(200,151,58,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(200,151,58,0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  }
  .hero-grid   { display: grid; grid-template-columns: 1fr; gap: 0; align-items: center; position: relative; z-index: 1; }
  .hero-badge  {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary-soft); border: 1px solid rgba(200,151,58,0.3);
    color: var(--primary); padding: 5px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 700; margin-bottom: 16px;
    font-family: var(--font-body); letter-spacing: 0.3px;
    box-shadow: 0 2px 12px rgba(200,151,58,0.12);
  }
  .hero h1 {
    font-size: clamp(38px, 5.5vw, 76px);
    color: var(--text-1); margin-bottom: 18px; font-weight: 900;
    letter-spacing: -2px; line-height: 1.04;
  }
  .hero h1 em { color: var(--primary); font-style: normal; }
  .hero-desc   { font-size: 17px; color: var(--text-2); max-width: 680px; margin-bottom: 28px; line-height: 1.6; }
  .hero-btns   { display: flex; gap: 14px; flex-wrap: wrap; }
  .hero-stats  {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
    background: var(--border-warm); border-radius: 16px; overflow: hidden;
    margin-top: 32px;
    box-shadow: 0 4px 24px rgba(100,65,25,0.09);
  }
  .hero-stat      { background: var(--surface-1); padding: 14px 18px; text-align: center; }
  .hero-stat-num  { font-family: var(--font-head); font-size: 24px; font-weight: 900; color: var(--primary); }
  .hero-stat-label{ font-size: 11px; color: var(--text-3); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-mono); }

  /* ── PROPERTY CARD ── */
  .prop-card { overflow: hidden; display: flex; flex-direction: column; }

  /* TOP HALF - Photo zone */
  .prop-img {
    height: 160px; position: relative; overflow: hidden;
    background: linear-gradient(160deg, #FEF3DC, #F5EDE0);
    border-bottom: 1px solid var(--border-warm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .prop-img img { width:100%; height:100%; object-fit:cover; display:block; transition:transform 0.35s ease; }
  .card-hover:hover .prop-img img { transform: scale(1.04); }
  .prop-img-placeholder { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:var(--text-3); user-select:none; }
  .prop-img-placeholder span:first-child { font-size:52px; opacity:0.55; }
  .prop-img-placeholder span:last-child  { font-size:11px; font-family:var(--font-mono); letter-spacing:0.8px; opacity:0.6; }
  .prop-img-badges { position:absolute; top:10px; left:10px; display:flex; gap:6px; flex-wrap:wrap; }
  .prop-fav {
    position:absolute; top:10px; right:10px;
    background:rgba(255,255,255,0.88); backdrop-filter:blur(6px);
    border:1px solid rgba(200,151,58,0.18); border-radius:50%;
    width:32px; height:32px; cursor:pointer; font-size:15px;
    display:flex; align-items:center; justify-content:center;
    transition:all 0.2s; box-shadow:0 2px 8px rgba(0,0,0,0.08);
  }
  .prop-fav:hover { transform:scale(1.12); background:#fff; }

  /* BOTTOM HALF - Text zone */
  .prop-body { padding:12px 14px 14px; display:flex; flex-direction:column; flex:1; }
  .prop-price { font-size:17px; font-weight:900; color:var(--primary); font-family:var(--font-head); margin-bottom:2px; line-height:1.1; }
  .prop-title { font-size:13px; font-weight:700; color:var(--text-1); font-family:var(--font-head); margin-bottom:4px; line-height:1.3; }
  .prop-loc   { font-size:11px; color:var(--text-2); margin-bottom:8px; display:flex; align-items:center; gap:4px; }
  .prop-meta  { display:flex; gap:6px; flex-wrap:wrap; border-top:1px solid var(--border-warm); padding-top:8px; margin-top:auto; }
  .prop-meta-item { font-size:10px; color:var(--text-3); font-family:var(--font-mono); display:flex; align-items:center; gap:3px; }

  /* legacy aliases */
  .prop-card-image  { height:160px; }
  .prop-card-body   { padding:14px 16px 16px; }
  .prop-card-title  { font-size:13.5px; font-weight:800; color:var(--text-1); margin-bottom:5px; font-family:var(--font-head); }
  .prop-card-loc    { font-size:11.5px; color:var(--text-2); display:flex; align-items:center; gap:4px; margin-bottom:10px; }
  .prop-card-meta   { display:flex; justify-content:space-between; align-items:center; }
  .prop-card-price  { font-size:20px; font-weight:900; color:var(--primary); font-family:var(--font-head); }
  .prop-card-type   { font-size:11px; background:rgba(200,151,58,0.10); color:var(--primary); border:1px solid rgba(200,151,58,0.25); padding:3px 10px; border-radius:20px; font-family:var(--font-body); font-weight:700; }
  .prop-card-footer { padding:10px 16px; border-top:1px solid var(--border-warm); display:flex; justify-content:space-between; align-items:center; font-size:11px; color:var(--text-3); }

  /* ── DASHBOARD ── */
  .dash-layout   {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 60px);
  }
  @media (max-width: 900px) {
    .dash-layout { grid-template-columns: 1fr; }
    .dash-sidebar { flex-direction: row; flex-wrap: nowrap; padding: 5px 8px;
      border-right: none; border-bottom: 1px solid var(--border-warm);
      gap: 5px; box-shadow: none; overflow-x: auto; max-height: 42px; align-items: center; }
    .dash-user { display: none; }
    .dash-nav-item { padding: 5px 12px; font-size: 11px; border-radius: 16px; white-space: nowrap;
      height: 28px; min-height: 0; align-items: center; flex-shrink: 0; width: auto; min-width: max-content; }
    .dash-nav-item.dash-logout-btn { margin-top: 0 !important; order: -1; background: rgba(192,57,43,0.10); border: 1px solid rgba(192,57,43,0.25); color: #C0392B !important; font-weight: 800; }
    .dash-content { padding: 16px; }
  }
  .dash-sidebar  {
    background: var(--surface-1);
    padding: 16px 0 24px; border-right: 1px solid var(--border-warm);
    display: flex; flex-direction: column;
    box-shadow: 2px 0 12px rgba(100,65,25,0.07);
  }
  .dash-sidebar::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 1px;
    background: linear-gradient(180deg, transparent, rgba(200,151,58,0.25), transparent);
    pointer-events: none;
  }
  .dash-user       { padding: 14px 16px 16px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
  .dash-avatar     {
    width: 44px; height: 44px; border-radius: 12px; margin-bottom: 10px;
    background: linear-gradient(135deg, #96681F, #C9973A);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; box-shadow: 0 4px 14px rgba(150,104,31,0.28);
  }
  .dash-user-name  { font-size: 14px; font-weight: 700; color: var(--text-1); font-family: var(--font-head); }
  .dash-user-role  { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.8px; }
  .dash-nav-item   {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 20px; margin: 2px 8px; border-radius: 9px;
    font-size: 13.5px; font-weight: 500; color: var(--text-2);
    cursor: pointer; transition: all .18s; background: none; border: none;
    font-family: var(--font-body); width: calc(100% - 16px); text-align: left;
  }
  .dash-nav-item:hover  { color: var(--text-1); background: var(--primary-soft); }
  .dash-nav-item.active { color: var(--primary); background: var(--primary-soft); border-left: 3px solid var(--primary); padding-left: 18px; font-weight: 700; }
  .dash-content  { padding: 20px 24px; background: var(--bg-1); overflow-y: auto; width: 100%; min-width: 0; }
  .dash-header   { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
  .dash-title    { font-size: 24px; font-weight: 800; color: var(--text-1); font-family: var(--font-head); }
  .dash-subtitle { font-size: 13px; color: var(--text-3); margin-top: 4px; font-family: var(--font-mono); }

  /* ── STAT CARDS ── */
  .stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
  @media (max-width: 1100px) { .stat-cards { grid-template-columns: repeat(2,1fr); } }
  @media (max-width: 600px)  { .stat-cards { grid-template-columns: repeat(2,1fr); gap: 10px; } }
  .stat-card  {
    background: var(--surface-1); border-radius: var(--radius-lg);
    padding: 14px 16px; border: 1px solid var(--border-warm);
    transition: border-color .2s, box-shadow .2s;
    box-shadow: var(--shadow-sm);
  }
  .stat-card:hover { border-color: var(--border-md); box-shadow: 0 4px 20px rgba(200,151,58,0.1); }
  .stat-icon  { font-size: 18px; margin-bottom: 8px; }
  .stat-num   { font-size: 22px; font-weight: 800; color: var(--text-1); font-family: var(--font-head); }
  .stat-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 2px; font-family: var(--font-mono); }

  /* ── TABLE ── */
  .table-wrap  {
    background: var(--surface-1); border-radius: var(--radius-lg);
    border: 1px solid var(--border-warm); overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .data-table  { width: 100%; border-collapse: collapse; }
  .data-table th {
    padding: 12px 16px; text-align: left; font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: var(--text-3);
    background: var(--bg-2); border-bottom: 1px solid var(--border-warm);
    font-family: var(--font-mono);
  }
  .data-table td {
    padding: 14px 16px; font-size: 13.5px; color: var(--text-2);
    border-bottom: 1px solid rgba(180,155,110,0.12);
  }
  .data-table tr:last-child td  { border-bottom: none; }
  .data-table tr:hover td { background: var(--primary-soft); color: var(--text-1); }
  .table-title {
    padding: 18px 20px; font-weight: 800; font-size: 15px; color: var(--text-1);
    border-bottom: 1px solid var(--border-warm); display: flex;
    justify-content: space-between; align-items: center;
    font-family: var(--font-head);
  }

  /* ── MODAL ── */
  .modal-overlay {
    position: fixed; inset: 0; background: var(--overlay);
    z-index: 9000; display: flex; align-items: center; justify-content: center;
    padding: 20px; backdrop-filter: blur(8px); animation: fadeIn .15s ease;
  }
  .modal {
    background: var(--surface-1); border-radius: var(--radius-xl);
    border: 1px solid var(--border-warm); max-width: 520px; width: 100%;
    max-height: 90vh; overflow-y: auto; position: relative;
    box-shadow: 0 8px 40px rgba(200,151,58,0.12), 0 40px 80px rgba(90,50,120,0.15);
  }
  .modal::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: linear-gradient(90deg, transparent, var(--primary), var(--teal), transparent);
  }
  .modal-header   { padding: 28px 28px 0; }
  .modal-header h2{ font-size: 22px; font-weight: 800; font-family: var(--font-head); }
  .modal-header p { font-size: 13px; color: var(--text-2); margin-top: 5px; }
  .modal-body     { padding: 24px 28px; }
  .modal-footer   { padding: 0 28px 24px; display: flex; gap: 12px; justify-content: flex-end; }
  .modal-close    {
    position: absolute; top: 20px; right: 20px;
    background: var(--bg-2); border: 1px solid var(--border-warm);
    color: var(--text-2); width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center;
    transition: all .15s;
  }
  .modal-close:hover { background: rgba(220,38,38,0.1); color: var(--red); border-color: rgba(220,38,38,0.3); }

  /* ── TOAST ── */
  .toast {
    position: fixed; bottom: 24px; right: 24px;
    background: var(--surface-1); color: var(--text-1);
    padding: 13px 18px; border-radius: var(--radius); z-index: 99999;
    font-size: 13.5px; font-weight: 600;
    box-shadow: 0 8px 32px rgba(200,151,58,0.15), 0 0 0 1px var(--border-warm);
    animation: slideUp .3s cubic-bezier(0.34,1.56,0.64,1);
    display: flex; align-items: center; gap: 10px; min-width: 280px;
    font-family: var(--font-body);
  }
  .toast.success { border-left: 3px solid var(--teal); }
  .toast.error   { border-left: 3px solid var(--red); }

  /* ── MISC ── */
  .divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-3); font-size: 12px; }
  .divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border-warm); }
  .section-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    color: var(--primary); margin-bottom: 12px; font-family: var(--font-mono);
  }
  .section-title {
    font-size: clamp(28px, 3vw, 42px); font-weight: 800; color: var(--text-1);
    margin-bottom: 14px; font-family: var(--font-head); letter-spacing: -0.5px;
  }
  .section-title em { color: var(--primary); font-style: normal; }
  .section-desc  { font-size: 15.5px; color: var(--text-2); max-width: 560px; line-height: 1.75; }
  .empty-state   { text-align: center; padding: 64px 20px; color: var(--text-3); }
  .empty-state .empty-icon { font-size: 44px; margin-bottom: 14px; opacity: 0.6; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(200,151,58,0.20); border-top-color: var(--primary);
    border-radius: 50%; animation: spin .65s linear infinite; display: inline-block;
  }
  .page-wrap { min-height: calc(100vh - 60px); }
  .tag { display: inline-flex; align-items: center; gap: 4px; background: rgba(0,217,255,0.07); color: var(--text-2); padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 500; border: 1px solid var(--border); }

  /* ── FOOTER ── */
  .footer { background: var(--yellow-light); border-top: 1px solid var(--yellow-border); color: var(--text-3); padding: 64px 0 28px; }
  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 28px; }
  .footer-brand p { font-size: 13.5px; line-height: 1.75; margin-top: 12px; color: var(--text-3); max-width: 260px; }
  .footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-1); margin-bottom: 16px; font-family: var(--font-mono); }
  .footer-links  { list-style: none; }
  .footer-links li { margin-bottom: 10px; }
  .footer-links a { color: var(--text-3); font-size: 13.5px; text-decoration: none; cursor: pointer; transition: color .15s; }
  .footer-links a:hover { color: var(--primary); }
  .footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 12px; font-family: var(--font-mono); }

  /* ── ANIMATIONS ── */
  @keyframes fadeIn  { from { opacity: 0 } to { opacity: 1 } }
  @keyframes slideUp { from { transform: translateY(24px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
  @keyframes modalSlideIn { from { opacity:0; transform:translateY(40px) scale(0.97); } to { opacity:1; transform:translateY(0) scale(1); } }
  @keyframes backdropIn { from { opacity:0; } to { opacity:1; } }
  .modal-overlay { position:fixed;inset:0;z-index:9990;display:flex;align-items:center;justify-content:center;padding:20px;background:var(--overlay);backdrop-filter:blur(12px);animation:backdropIn 0.3s ease; }
  .modal-card { animation:modalSlideIn 0.45s cubic-bezier(0.16,1,0.3,1) both; }

  @keyframes pulse   { 0%,100% { opacity: 1 } 50% { opacity: 0.4 } }
  @keyframes glow    { 0%,100% { box-shadow: 0 0 20px rgba(200,151,58,0.20) } 50% { box-shadow: 0 0 40px rgba(0,217,255,0.45) } }
  @keyframes float   { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
  @keyframes kycScan { 0% { top:10% } 50% { top:80% } 100% { top:10% } }

  /* ── 3D Logo Right-Column Animations ── */
  @keyframes heroFloat3D {
  0% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.03);
  }

  100% {
    transform: translateY(0px) scale(1);
  }
}
.circle{
  position: relative;
}
.spark{
  position:absolute;
  width:6px;
  height:6px;
  background:#ffc857;
  border-radius:50%;
  box-shadow:
    0 0 10px #ffc857,
    0 0 20px #ffd97a,
    0 0 40px #fff3c4;
}
  @keyframes glowPulse {
    0%,100% { opacity: 0.3; transform: scale(0.75); }
    50%     { opacity: 0.5; transform: scale(0.59); }
  }
  @keyframes glowPulse2 {
    0%,100% { opacity: 0.1; transform: scale(0.75); }
    50%     { opacity: 0.4; transform: scale(0.86); }
  }
  @keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }
  @keyframes orbitSpinRev {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
  }
  @keyframes sphereShine {
    0%,100% { opacity: 0.32; }
    50%     { opacity: 0.54; }
  }
  @keyframes sparkleFloat {
    0%,100% { transform: translate(0,0) scale(1);   opacity: 0; }
    10%     { opacity: 1; }
    50%     { transform: translate(var(--sx),var(--sy)) scale(0.5); opacity: 0.8; }
    90%     { opacity: 0; }
  }

  /* ════════════════════════════════════════════════════════════
     BHUCHAIN v30 — CINEMATIC HERO ANIMATION SYSTEM
     ════════════════════════════════════════════════════════════ */

  /* ── NAVBAR LOGO STAMP-IN ── */
  @keyframes navLogoStamp {
    0%   { opacity:0; transform: scale(1.6) rotate(-6deg); filter: blur(4px); }
    55%  { opacity:1; transform: scale(0.94) rotate(1deg); filter: blur(0); }
    75%  { transform: scale(1.03) rotate(-0.5deg); }
    100% { transform: scale(1) rotate(0deg); }
  }
  .nav-logo-stamp {
    animation: navLogoStamp 0.65s cubic-bezier(0.22,1,0.36,1) 0.1s both;
  }

  /* ── HERO: GRADIENT TEXT FLOW ── */
  @keyframes gradientFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  /* ── HERO H1: CLIP REVEAL LEFT→RIGHT ── */
  @keyframes heroClipReveal {
    from { clip-path: inset(0 100% 0 0); opacity: 0.4; }
    to   { clip-path: inset(0 0% 0 0);   opacity: 1; }
  }
  .hero-h1-reveal {
    animation: heroClipReveal 0.9s cubic-bezier(0.77,0,0.175,1) 0.15s both;
  }

  /* ── HERO BADGE ── */
  @keyframes badgeSlideIn {
    0%   { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
  }

  /* ── HERO CONTENT LINES — staggered blur-slide ── */
  @keyframes heroLineIn {
    from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
    to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
  }
  @keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(32px) skewY(1.5deg); }
    to   { opacity: 1; transform: translateY(0)    skewY(0deg); }
  }
  @keyframes descFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ── STATS: COUNTER SLIDE UP ── */
  @keyframes statTilePop {
    0%   { opacity: 0; transform: translateY(24px) scale(0.88); }
    70%  { transform: translateY(-3px) scale(1.03); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }
  .hero-stat-tile-anim {
    opacity: 0;
    animation: statTilePop 0.7s cubic-bezier(0.34,1.56,0.64,1) both;
  }

  /* ── SPHERE: MATERIAL DROP ── */
  @keyframes sphereDrop {
    0%   { opacity: 0; transform: translateY(-60px) scale(0.7); filter: blur(16px); }
    55%  { opacity: 1; transform: translateY(8px) scale(1.02); filter: blur(0); }
    75%  { transform: translateY(-4px) scale(0.99); }
    100% { transform: translateY(0) scale(1); }
  }
  .hero-sphere-cinematic {
    animation: sphereDrop 1.1s cubic-bezier(0.22,1,0.36,1) 0.2s both !important;
  }

  /* ── ORBIT RINGS ── */
  @keyframes orbitFadeIn {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
  }
  .hero-orbit-1 { animation: orbitFadeIn 0.8s ease 0.9s both, orbitSpin 20s linear 1.7s infinite !important; }
  .hero-orbit-2 { animation: orbitFadeIn 0.8s ease 1.1s both, orbitSpinRev 30s linear 1.9s infinite !important; }

  /* 10. BUTTON — breathing gold glow + shimmer */
  @keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
  }
  @keyframes btnGlowBreathe {
    0%,100% { box-shadow: 0 6px 28px rgba(150,104,31,0.40); }
    50%     { box-shadow: 0 8px 48px rgba(200,151,58,0.75), 0 0 80px rgba(200,151,58,0.22); }
  }
  .btn-primary.btn-xl {
    animation: btnGlowBreathe 3s ease-in-out infinite !important;
  }
  .btn-primary.btn-xl:hover {
    transform: translateY(-3px) scale(1.04) !important;
    box-shadow: 0 14px 52px rgba(200,151,58,0.65) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }
  .btn-primary.btn-xl:active {
    transform: scale(0.97) !important;
    transition-duration: 0.08s !important;
  }

  /* 11. THREE.JS CANVAS — slow rise on load */
  .blockchain-canvas-wrap {
    animation: canvasRise 2s cubic-bezier(0.16,1,0.3,1) 0.8s both !important;
  }
  @keyframes canvasRise {
    from { opacity: 0; transform: translateY(60px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  .fade-in { animation: fadeIn .4s ease; }

  /* Hero gradient headline utility */
  .hero-gradient-text {
    background: linear-gradient(
      125deg,
      #7c4a1e 0%,
      #b5813a 22%,
      #fdcf4e 44%,
      #b5813a 62%,
      #96681f 80%,
      #C9973A 100%
    );
    background-size: 250% 250%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #b5813a;
    animation: gradientFlow 7s ease infinite;
    display: inline-block;
    filter: drop-shadow(0 2px 8px rgba(181,129,58,0.3));
  }

  /* ── Hero headline logo + text flex layout ── */
  .hero-headline-wrap {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  /* On small screens: stack logo above text, center everything */
  /* Hero right logo . responsive stacking */
  @media (max-width: 1100px) {
    .hero-right-logo {
      display: none !important;
    }
  }
  @media (max-width: 640px) {
    .hero-headline-wrap {
      flex-direction: column;
      align-items: flex-start;
      gap: 18px;
    }
  }

  /* ── Premium Luxury Enhancements ── */

  /* Gold shimmer on primary buttons */
  .btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: shimmer 3.5s ease-in-out infinite;
    pointer-events: none;
  }
  .btn-primary { position: relative; overflow: hidden; }

  /* Luxury gold section divider line */
  .section::before {
    content: none;
  }

  /* Premium stat number gradient */
  .hero-stat-num {
    background: linear-gradient(135deg, #96681F, #C9973A, #D4A96A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Navbar luxury brand treatment */
  .nav-brand:hover .nav-logo img {
    filter: drop-shadow(0 2px 8px rgba(200,151,58,0.35));
    transition: filter 0.3s ease;
  }

  /* Gold accent line on active nav items */
  .nav-link.active::after {
    content: '';
    display: block;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dim));
    margin-top: 2px;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Remove blue text selection on hero */
  ::selection { background: rgba(200,151,58,0.22); color: inherit; }

  /* Scrollbar */
  ::-webkit-scrollbar       { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: var(--bg-1); }
  ::-webkit-scrollbar-thumb { background: rgba(200,151,58,0.20); border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: rgba(0,217,255,0.4); }

  /* ── RESPONSIVE ── */
  @media (max-width: 1024px) {
    .grid-4        { grid-template-columns: repeat(2,1fr); }
    .stat-cards    { grid-template-columns: repeat(2,1fr); }
    .footer-grid   { grid-template-columns: 1fr 1fr; }
    .dash-content  { padding: 22px 24px; }
  }
  @media (max-width: 768px) {
    .hero-grid     { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual   { display: none; }
    .hero-right-logo { display: none !important; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .dash-layout   { grid-template-columns: 1fr; }
    .dash-sidebar  {
      display: flex !important;
      flex-direction: row !important;
      flex-wrap: nowrap !important;
      overflow-x: auto !important;
      -webkit-overflow-scrolling: touch;
      padding: 5px 8px !important;
      border-right: none !important;
      border-bottom: 1px solid var(--border-warm) !important;
      gap: 5px !important;
      box-shadow: none !important;
      position: sticky; top: 0; z-index: 20;
      background: var(--surface-1) !important;
      min-height: 0 !important;
      max-height: 42px !important;
      align-items: center !important;
    }
    .dash-sidebar::after { display: none !important; }
    .dash-sidebar .dash-user { display: none !important; }
    .dash-sidebar .dash-nav-item {
      padding: 4px 10px !important;
      font-size: 10.5px !important;
      border-radius: 14px !important;
      white-space: nowrap !important;
      width: auto !important;
      min-width: max-content !important;
      margin: 0 !important;
      border-left: none !important;
      text-align: center !important;
      gap: 4px !important;
      line-height: 1 !important;
      height: 28px !important;
      min-height: 0 !important;
      align-items: center !important;
      flex-shrink: 0 !important;
    }
    .dash-sidebar .dash-nav-item span { font-size: 12px !important; }
    .dash-sidebar .dash-logout-btn { order: -1 !important; margin-top: 0 !important; background: rgba(192,57,43,0.10) !important; border: 1px solid rgba(192,57,43,0.25) !important; color: #C0392B !important; font-weight: 800 !important; }
    .dash-nav-item.active { border-left: none !important; padding-left: 10px !important; }
    .form-row      { grid-template-columns: 1fr; }
    .nav-links     { display: none; }
    .nav-hamburger { display: flex; }
    .nav-actions   { display: none !important; }
    .footer-grid   { grid-template-columns: 1fr; gap: 20px; margin-bottom: 24px; }
    .stat-cards    { grid-template-columns: repeat(2,1fr); }
    .dash-content  { padding: 16px; }
    .container     { padding: 0 16px; }
    .hero          { padding: 60px 0; min-height: 80vh; }
    .section       { padding: 64px 0; }
    .hero h1       { font-size: clamp(30px, 8vw, 44px); }
  }

  /* ── MOBILE HERO FIX ── */
  @media (max-width: 1100px) {
    .hero-section-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .hero-right-logo { display: none !important; }
    .hero-main-section { min-height: auto !important; }
    .tech-canvas-wrap canvas { opacity: 0.12 !important; }
    .verification-banner-grid { grid-template-columns: 1fr !important; }
  }
  @media (max-width: 600px) {
    .tech-canvas-wrap { display: none !important; }
    .hero-main-section { min-height: auto !important; }
    .hero-section-grid h1 { font-size: clamp(26px, 8vw, 38px) !important; letter-spacing: -1px !important; }
    .hero-section-grid p { font-size: 14px !important; }
    .hero-section-grid .btn-xl { font-size: 14px !important; padding: 12px 24px !important; }
  }

  /* ── WEB3 CANVAS BACKGROUND OPACITY ── */
  .blockchain-canvas-wrap {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
    opacity: 0.35;
  }
  .blockchain-canvas-wrap > div { pointer-events: all; }
  @media (max-width: 1100px) {
    .blockchain-canvas-wrap { opacity: 0.10; }
  }
  @media (max-width: 768px) {
    .blockchain-canvas-wrap { opacity: 0.08; }
    .hero-main-section {
      min-height: auto !important;
      padding-top: 20px !important;
      padding-bottom: 20px !important;
    }
    .hero-section-grid {
      grid-template-columns: 1fr !important;
      gap: 16px !important;
      text-align: center;
    }
    .hero-section-grid > div:first-child {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .hero-section-grid [style*="display:\"grid\""][style*="repeat(3"] {
      max-width: 100% !important;
    }
  }
  @media (max-width: 480px) {
    .blockchain-canvas-wrap { opacity: 0.06; }
    .hero-main-section { padding-top: 10px !important; padding-bottom: 10px !important; }
    .hero-section-grid h1 { font-size: clamp(24px, 7.5vw, 34px) !important; letter-spacing: -0.5px !important; }
    .hero-section-grid p { font-size: 13px !important; line-height: 1.6 !important; }
    .hero-section-grid .btn-xl { font-size: 13px !important; padding: 11px 20px !important; }
  }

  /* ── REAL PHONE HERO COMPACT ── */
  @media (max-width: 768px) {
    .hero-section-grid { padding: 0 !important; }
    .hero-section-grid > div:first-child { padding: 0 4px; }
    .hero-section-grid [style*="marginBottom:32"] { margin-bottom: 16px !important; }
    .hero-section-grid [style*="marginBottom:60"] { margin-bottom: 20px !important; }
    .hero-section-grid [style*="letterSpacing:\"1.8px\""] { font-size: 10px !important; letter-spacing: 1px !important; }
  }

  /* ── MOBILE CARDS & SECTIONS ── */
  @media (max-width: 768px) {
    .section-title { font-size: clamp(22px, 5vw, 32px) !important; }
    .section-label { font-size: 11px !important; }
    section { padding: 48px 0 !important; }
    .container { padding: 0 14px !important; }
  }
  @media (max-width: 480px) {
    .container { padding: 0 10px !important; }
    section { padding: 36px 0 !important; }
    .section-title { font-size: clamp(20px, 5vw, 28px) !important; }
  }

  /* ── GLOBAL OVERFLOW PREVENTION ── */
  section, .container, .hero, .page-wrap, div[class*="section"] {
    max-width: 100vw;
  }
  img, video, canvas, svg, iframe { max-width: 100%; height: auto; }

  /* ── MOBILE FLEX/GRID FIXES ── */
  @media (max-width: 768px) {
    [style*="display:flex"][style*="gap:48"] { gap: 16px !important; }
    [style*="display:flex"][style*="gap:40"] { gap: 14px !important; }
    [style*="padding:52px"] { padding: 28px 18px !important; }
    [style*="padding:\"52px"] { padding: 28px 18px !important; }
    [style*="fontSize:38"] { font-size: 28px !important; }
    [style*="fontSize:\"clamp(32px"] { font-size: clamp(24px,6vw,36px) !important; }
  }
  @media (max-width: 480px) {
    [style*="fontSize:38"] { font-size: 22px !important; }
  }
  
  @media (max-width: 500px) {
    .nav-logo img { height: 50px !important; }
    .nav-actions .btn { font-size: 12px !important; padding: 7px 14px !important; }
    .modal-card { margin: 10px !important; max-height: 95vh !important; border-radius: 18px !important; }
    .modal-card > div:first-child { padding: 20px 20px 16px !important; }
  }
  @media (max-width: 480px) {
    .stat-cards    { grid-template-columns: 1fr 1fr; }
    .hero-stats    { grid-template-columns: 1fr; }
    .navbar        { padding: 0 16px; }
  }

  /* Offline banner */
  #offline-check {
    display: none; position: fixed; top: 0; left: 0; right: 0;
    background: rgba(245,158,11,0.15); color: #fbbf24;
    border-bottom: 1px solid rgba(245,158,11,0.3);
    padding: 8px 16px; font-size: 12.5px; font-weight: 600;
    text-align: center; z-index: 99999; font-family: var(--font-mono);
    backdrop-filter: blur(8px);
  }

  
  /* ── LOAN SYSTEM ── */
  .loan-page { max-width: 960px; margin: 0 auto; padding: 32px 16px 80px; }
  .loan-hero { background: var(--surface-1);
    border: 1px solid rgba(200,151,58,0.20); border-radius: 20px; padding: 32px 28px; margin-bottom: 28px; position: relative; overflow: hidden; }
  .loan-hero::before { content:''; position:absolute; top:0; left:0; right:0; height:3px;
    background: linear-gradient(90deg,transparent,var(--primary),rgba(169, 118, 23, 0.768),transparent); }
  .loan-hero h1 { font-family: var(--font-head); font-size: clamp(22px,4vw,34px); font-weight: 800; margin-bottom: 10px; }
  .loan-hero p  { color: var(--text-2); font-size: 14px; line-height: 1.8; max-width: 560px; }
  .loan-stats-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
  .loan-stat { background: linear-gradient(145deg,#f6e6b5,#e2c27a); border: 1px solid #b8860b;
    border-radius: 10px; padding: 10px 16px; text-align: center; flex: 1; min-width: 100px; }
  .loan-stat strong { display:block; font-family:var(--font-head); font-size:22px; font-weight:900; color:#2C1810; }
  .loan-stat small  { font-size:11px; color:#3D2314; font-family:var(--font-mono); font-weight:600; }

  .loan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  @media(max-width:700px){ .loan-grid { grid-template-columns: 1fr; } }

  .loan-card { background: var(--surface-1); border: 1px solid var(--border-md);
    border-radius: 18px; padding: 24px; }
  .loan-card h3 { font-family:var(--font-head); font-size:16px; font-weight:800; margin-bottom:18px; }

  .emi-result { background: rgba(0,217,255,0.06); border: 1px solid rgba(200,151,58,0.20);
    border-radius: 14px; padding: 18px; margin: 16px 0; text-align: center; }
  .emi-main  { font-family:var(--font-head); font-size:32px; font-weight:800; color:var(--primary); }
  .emi-label { font-size:11px; color:var(--text-3); font-family:var(--font-mono); margin-top:4px; }
  .emi-breakdown { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; margin-top:14px; }
  .emi-cell { background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.06);
    border-radius:8px; padding:10px; text-align:center; }
  .emi-cell strong { display:block; font-size:14px; font-weight:800; color:var(--text-1); }
  .emi-cell small  { font-size:10px; color:var(--text-3); font-family:var(--font-mono); }

  .bank-card { background:var(--surface-1); border:1px solid var(--border-md);
    border-radius:14px; padding:12px 16px; margin-bottom:10px; transition:all .2s;
    cursor:pointer; position:relative; overflow:hidden; }
  .bank-card:hover { border-color:rgba(200,151,58,0.28); transform:translateY(-1px); }
  .bank-card.selected { border-color:var(--primary); background:rgba(200,151,58,0.04); }
  .bank-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px;
    background:linear-gradient(90deg,transparent,rgba(200,151,58,0.28),transparent); }
  .bank-row  { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
  .bank-logo { width:52px; height:52px; border-radius:12px; display:flex; align-items:center; overflow:hidden;
    justify-content:center; font-size:20px; flex-shrink:0; border:1px solid rgba(255,255,255,0.08); }
  .bank-info { flex:1; min-width:120px; }
  .bank-info strong { font-size:14px; font-weight:800; display:block; }
  .bank-info small  { font-size:11px; color:var(--text-3); font-family:var(--font-mono); }
  .bank-rate{
    text-align:right;
    flex-shrink:0;
    padding-top:10px;
}
  .bank-rate .rate {
    font-family:var(--font-head);
    font-size:22px;
    font-weight:800;
    color:#09c309ca;
    margin-top:12px;
}
  .bank-rate small{
    display:block;
    font-size:10px;
    color:var(--text-3);
    font-family:var(--font-mono);
    margin-top:1px;
}
  .bank-emi{
    font-size:12px;
    color:var(--primary);
    font-weight:700;
    margin-top:2px;
}
  .bank-features{
    margin-top:6px;
    padding-top:6px;
    border-top:1px solid rgba(255,255,255,0.05); }
  .bank-feat { font-size:10px; padding:3px 8px; border-radius:20px; font-family:var(--font-mono);
    background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); color:var(--text-3); }
  .bank-feat.good { background:rgba(16,185,129,0.08); border-color:rgba(16,185,129,0.25); color:#6ee7b7; }
  .apply-btn-row { display:flex; gap:10px; margin-top:12px; }

  .risk-banner { background:rgba(192,57,43,0.05); border:1px solid rgba(192,57,43,0.2);
    border-radius:12px; padding:14px 16px; margin:14px 0; }
  .risk-banner strong { color:#f87171; display:block; margin-bottom:6px; }
  .risk-banner p { font-size:12px; color:var(--text-2); line-height:1.7; }

  .protection-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:14px 0; }
  @media(max-width:500px){ .protection-grid { grid-template-columns:1fr; } }
  .protect-card { background:rgba(16,185,129,0.05); border:1px solid rgba(16,185,129,0.18);
    border-radius:12px; padding:14px; }
  .protect-card .p-icon { font-size:22px; margin-bottom:8px; }
  .protect-card strong { display:block; font-size:13px; font-weight:800; margin-bottom:4px; }
  .protect-card p { font-size:11px; color:var(--text-2); line-height:1.6; }

  .phase-timeline { display:flex; flex-direction:column; gap:0; margin:14px 0; }
  .phase-row { display:flex; gap:14px; position:relative; padding-bottom:16px; }
  .phase-row:last-child { padding-bottom:0; }
  .phase-row::before { content:''; position:absolute; left:15px; top:32px; bottom:0;
    width:2px; background:rgba(200,151,58,0.12); }
  .phase-row:last-child::before { display:none; }
  .phase-dot { width:30px; height:30px; border-radius:50%; display:flex; align-items:center;
    justify-content:center; font-size:12px; flex-shrink:0; margin-top:2px;
    border:2px solid rgba(200,151,58,0.28); background:rgba(200,151,58,0.08); }
  .phase-body strong { display:block; font-size:13px; font-weight:800; margin-bottom:3px; }
  .phase-body p { font-size:12px; color:var(--text-2); line-height:1.6; }
  .phase-tag { display:inline-block; font-size:9px; padding:2px 8px; border-radius:20px;
    font-family:var(--font-mono); font-weight:700; margin-top:4px; }
  .tag-nft  { background:rgba(124,58,237,0.12); color:#c4b5fd; border:1px solid rgba(124,58,237,0.25); }
  .tag-safe { background:rgba(16,185,129,0.1);  color:#6ee7b7; border:1px solid rgba(16,185,129,0.25); }
  .tag-warn { background:rgba(245,158,11,0.1);  color:#fbbf24; border:1px solid rgba(245,158,11,0.25); }

  .form-range { width:100%; accent-color:var(--primary); cursor:pointer; }
  .range-labels { display:flex; justify-content:space-between; font-size:10px;
    color:var(--text-3); font-family:var(--font-mono); margin-top:4px; }

  .loan-apply-modal { position:fixed; inset:0; z-index:300; background:var(--overlay);
    backdrop-filter:blur(6px); display:flex; align-items:center; justify-content:center; padding:16px; }
  .loan-apply-inner { background:var(--surface-1); border:1.5px solid rgba(245,158,11,0.3);
    border-radius:20px; width:100%; max-width:480px; max-height:92vh; overflow-y:auto;
    box-shadow:0 8px 60px rgba(120,53,15,0.25), 0 2px 16px rgba(245,158,11,0.15); }
  .loan-apply-head { padding:18px 20px 14px; border-bottom:1px solid rgba(200,151,58,0.12);
    display:flex; align-items:center; gap:12px; position:sticky; top:0; background:var(--surface-1); }

  .eligibility-bar { height:8px; border-radius:4px; background:rgba(255,255,255,0.06); overflow:hidden; margin:8px 0; }
  .eligibility-fill { height:100%; border-radius:4px; transition:width .6s ease;
    background:linear-gradient(90deg,var(--primary),#6ee7b7); }

  .loan-mini-card { background:rgba(200,151,58,0.07); border:1.5px solid rgba(200,151,58,0.30);
    border-radius:12px; padding:14px 16px; cursor:pointer; transition:all .2s; }
  .loan-mini-card:hover { border-color:rgba(200,151,58,0.55); background:rgba(200,151,58,0.11); }
  .loan-mini-card strong { display:block; font-size:14px; font-weight:800; color:var(--primary); }
  .loan-mini-card span { font-size:11px; color:var(--text-3); }

  /* ── GLOBAL RESPONSIVE ── */
  @media (max-width: 768px) {
    .container { padding: 0 16px; }
    .card { padding: 16px !important; }
    .dash-content { padding: 12px !important; }
    .dash-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .stat-cards { grid-template-columns: repeat(2,1fr) !important; gap: 10px !important; }
    .data-table { font-size: 12px; }
    .data-table th, .data-table td { padding: 8px 10px; }
    .btn { font-size: 13px; padding: 8px 14px; }
    .hero-right-logo { display: none !important; }
    h1 { font-size: clamp(28px, 6vw, 48px) !important; }
  }
  @media (max-width: 480px) {
    .stat-cards { grid-template-columns: 1fr 1fr !important; }
    .dash-nav-item { font-size: 11px !important; padding: 6px 10px !important; }
    .form-row { grid-template-columns: 1fr !important; }
    .table-wrap { margin: 0 -12px; border-radius: 0; }
  }
  * { box-sizing: border-box; }
  img { max-width: 100%; }
  .dash-content > * { width: 100%; }


  @keyframes navLogoGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(1.03); }
  }
  @keyframes navLogoRing {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.02); }
  }
  .nav-brand:hover .nav-logo img {
    filter: brightness(0.85) drop-shadow(0 0 10px rgba(200,151,58,0.5)) drop-shadow(0 0 20px rgba(200,151,58,0.25)) !important;
  }

  /* ── SEARCH BAR THEME ── */
  .search-bar-wrap {
    background: var(--bg-search-bar);
    border-bottom: 1px solid rgba(200,151,58,0.22);
    transition: background 0.3s;
  }
  .search-bar-wrap input,
  .search-bar-wrap select {
    color: var(--text-1) !important;
    background: var(--bg-search-input) !important;
    border: 1px solid rgba(200,151,58,0.25) !important;
  }
  .search-bar-wrap input::placeholder { color: var(--text-3) !important; }
  .search-bar-wrap select option { 
    background: var(--bg-2) !important; 
    color: var(--text-1) !important; 
  }

  /* ── WHY BHUCHAIN SECTION THEME ── */
  .why-bhuchain-section {
    background: var(--bg-features-section) !important;
    transition: background 0.3s;
  }
  .feature-card-inner {
    background: var(--bg-feature-card) !important;
    border: 1px solid var(--border-feature-card) !important;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
  }
  .feature-card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(200,151,58,0.25), 0 0 60px rgba(200,151,58,0.08) !important;
  }
  .feature-card-title { color: var(--text-1) !important; }
  .feature-card-desc  { color: var(--text-2) !important; }

  /* ── LIGHT THEME VALUES ── */
  :root, [data-theme="light"] {
    --bg-search-bar:      rgba(251,248,243,0.97);
    --bg-search-input:    rgba(200,151,58,0.04);
    --bg-features-section: transparent;
    --bg-feature-card:    linear-gradient(160deg,#fdf6e3,#f5e6c8);
    --border-feature-card: rgba(200,151,58,0.3);
  }

  /* ── DARK THEME VALUES ── */
  [data-theme="dark"] {
    --bg-search-bar:      rgba(10,10,10,0.97);
    --bg-search-input:    rgba(255,255,255,0.06);
    --bg-features-section: linear-gradient(160deg, #0a0a0a 0%, #111008 50%, #0d0d0d 100%);
    --bg-feature-card:    linear-gradient(160deg, rgba(40,32,18,0.92), rgba(28,22,12,0.95));
    --border-feature-card: rgba(200,151,58,0.35);
  }
  .btn-shine{
position:absolute;
top:-50%;
left:-150%;
width:100%;
height:200%;
background:linear-gradient(
120deg,
transparent,
rgb(255, 248, 234),
transparent
);
transform:rotate(25deg);
animation:shineMove 3s infinite;
}

.shine{
  position:absolute;
  top:0;
  left:-120%;
  width:60%;
  height:100%;
  background:linear-gradient(
    120deg,
    transparent,
    rgba(251, 211, 130, 0.544),
    transparent
  );
  transform:skewX(-25deg);
  animation:shineMove 3s infinite;
}

@keyframes shineMove{
  0%{ left:-120%; }
  100%{ left:130%; }
}

      @keyframes bc-plot-in { 0%{opacity:0;transform:scale(0.7)} 60%{opacity:1;transform:scale(1.04)} 100%{transform:scale(1)} }
      @keyframes bc-plot-pulse { 0%,100%{box-shadow:0 0 0 0 rgba(181,129,58,0.0)} 50%{box-shadow:0 0 0 6px rgba(181,129,58,0.18)} }
      @keyframes bc-line-grow { from{transform:scaleX(0)} to{transform:scaleX(1)} }
      @keyframes bc-fade-up { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
      @keyframes bc-bar { 0%{width:0} 100%{width:100%} }
      .bc-plot { width:18px;height:18px;border-radius:3px;border:1.5px solid rgba(181,129,58,0.35);background:rgba(181,129,58,0.06);animation:bc-plot-in 0.4s both, bc-plot-pulse 2s ease-in-out infinite; }
      .bc-plot.lit { background:rgba(181,129,58,0.28);border-color:rgba(181,129,58,0.7); }
    </style>
