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

    :root {
      --grad-start: #1e3a8a;
      --grad-mid: #4338ca;
      --grad-end: #7c3aed;
      --orange-500: #f97316;
      --orange-600: #ea580c;
      --orange-700: #c2410c;
      --orange-50: #fff7ed;
      --blue-500: #3b82f6;
      --blue-600: #2563eb;
      --emerald-500: #10b981;
      --emerald-600: #059669;
      --purple-500: #a855f7;
      --red-500: #ef4444;
      --red-600: #dc2626;
      --silver: #c0c0c0;
      --silver-light: #d4d4d8;
      --gray-50: #f9fafb;
      --gray-100: #f3f4f6;
      --gray-200: #e5e7eb;
      --gray-300: #d1d5db;
      --gray-400: #9ca3af;
      --gray-500: #6b7280;
      --gray-600: #4b5563;
      --gray-700: #374151;
      --gray-800: #1f2937;
      --gray-900: #111827;
      --white: #ffffff;
      --black: #000000;
      --radius: 16px;
      --radius-lg: 24px;
    }

    body {
      font-family: 'DM Sans', sans-serif;
      background: linear-gradient(160deg, var(--grad-start) 0%, var(--grad-mid) 50%, var(--grad-end) 100%);
      background-attachment: fixed;
      color: var(--white);
      min-height: 100vh;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }

    .view { display: none; }
    .view.active { display: block; }
    .step { display: none; }
    .step.active { display: block; }
    .hidden { display: none !important; }
    input[type="file"] { display: none; }

    /* ─── TESTER BAR ─── */
    :root { --sim-strip-h: 40px; }

    /* Thin always-visible strip at very top */
    .tester-bar {
      position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
      display: flex; flex-direction: column;
      pointer-events: none; /* children opt-in */
    }

    /* The always-visible top strip */
    .tester-strip {
      height: var(--sim-strip-h);
      background: #0d0d0d;
      border-bottom: 2px solid #f97316;
      display: flex; align-items: center; gap: 6px;
      padding: 0 10px;
      pointer-events: all;
      flex-shrink: 0;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    .tester-strip::-webkit-scrollbar { display: none; }

    .tester-label {
      font-family: 'DM Sans', sans-serif; font-size: 0.6rem; font-weight: 900;
      color: #f97316; text-transform: uppercase; letter-spacing: 0.1em;
      white-space: nowrap; flex-shrink: 0;
      border-right: 1px solid rgba(255,255,255,.15); padding-right: 8px; margin-right: 2px;
    }
    .tester-btn {
      padding: 4px 10px; border: none; border-radius: 6px;
      font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.7rem;
      cursor: pointer; transition: all 0.15s; color: #fff;
      white-space: nowrap; flex-shrink: 0; line-height: 1.3;
    }
    .tester-btn:hover { opacity: 0.85; transform: translateY(-1px); }
    .tester-btn.t-home    { background: #ea580c; }
    .tester-btn.t-onboard { background: #2563eb; }
    .tester-btn.t-dash    { background: #059669; }
    .tester-btn.t-reset   { background: #4b5563; }
    .tester-btn.t-tour    { background: #7c3aed; }
    .tester-btn.t-toggle  { background: #1f2937; border: 1px solid #374151; margin-left: auto; flex-shrink: 0; }
    .tester-btn.t-toggle:hover { background: #374151; }
    /* Separator */
    .tester-sep {
      width: 1px; height: 20px; background: rgba(255,255,255,.12);
      flex-shrink: 0;
    }

    /* The collapsible drawer */
    .sim-drawer {
      background: rgba(10,10,10,.97);
      border-bottom: 1px solid rgba(249,115,22,.25);
      pointer-events: all;
      overflow: hidden;
      transition: max-height 0.35s cubic-bezier(.4,0,.2,1);
      max-height: 0; /* collapsed by default */
    }
    .sim-drawer.open {
      max-height: 60vh;
      overflow-y: auto;
    }
    .sim-drawer::-webkit-scrollbar { width: 4px; }
    .sim-drawer::-webkit-scrollbar-track { background: transparent; }
    .sim-drawer::-webkit-scrollbar-thumb { background: rgba(249,115,22,.4); border-radius: 2px; }

    /* Each category row inside the drawer */
    .sim-row {
      display: flex; align-items: center;
      padding: 5px 10px; gap: 4px;
      border-bottom: 1px solid rgba(255,255,255,.04);
      flex-wrap: nowrap; overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    .sim-row::-webkit-scrollbar { display: none; }
    .sim-row:last-child { border-bottom: none; }

    .sim-row-label {
      font-family: 'DM Sans', sans-serif; font-size: 0.58rem; font-weight: 900;
      color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: 0.06em;
      white-space: nowrap; flex-shrink: 0; min-width: 68px;
      border-right: 1px solid rgba(255,255,255,.08); padding-right: 6px; margin-right: 2px;
    }

    .sim-btn {
      padding: 3px 8px; border: none; border-radius: 5px;
      font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.62rem;
      cursor: pointer; transition: opacity 0.1s; color: #fff;
      white-space: nowrap; flex-shrink: 0; line-height: 1.4;
    }
    .sim-btn:hover { opacity: 0.75; }
    .sim-btn:active { opacity: 0.9; transform: scale(0.97); }
    .sim-btn.s-lend    { background: #be185d; }
    .sim-btn.s-borrow  { background: #16a34a; }
    .sim-btn.s-skills  { background: #0284c7; }
    .sim-btn.s-barter  { background: #dc2626; }
    .sim-btn.s-sell    { background: #1d4ed8; }
    .sim-btn.s-buy     { background: #92400e; }
    .sim-btn.s-free    { background: #c2410c; }
    .sim-btn.s-msg     { background: #7e22ce; }
    .sim-btn.s-cal     { background: #1e40af; }
    .sim-btn.s-qr      { background: #374151; }
    .sim-btn.s-scan    { background: #065f46; }
    .sim-btn.s-call    { background: #991b1b; }
    .sim-btn.s-news    { background: #065f46; }
    .sim-btn.s-hub     { background: #5b21b6; }
    .sim-btn.s-lang    { background: #075985; }
    .sim-btn.s-review  { background: #92400e; }
    .sim-btn.s-upgrade { background: #9a3412; }
    .sim-btn.s-neutral { background: #1f2937; border: 1px solid #374151; }
    .sim-btn.s-stripe  { background: #4338ca; }

    /* Offset all page content below the strip */
    body { padding-top: var(--sim-strip-h); }

    /* Tour highlight */
    @keyframes tourPulse {
      0%,100% { box-shadow: 0 0 0 0 rgba(249,115,22,.6); }
      50%      { box-shadow: 0 0 0 8px rgba(249,115,22,0); }
    }
    .tour-highlight { animation: tourPulse 1s ease 3; }

    /* ─── NAVBAR ─── */
    .navbar {
      position: sticky; top: 0; z-index: 50;
      background: rgba(0,0,0,.5); backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(255,255,255,.1);
      padding: 12px 24px;
    }
    .navbar-inner {
      max-width: 1100px; margin: 0 auto;
      display: flex; justify-content: space-between; align-items: center;
    }
    .logo-group { display: flex; align-items: center; gap: 12px; }
    .logo-icon { width: 42px; height: 42px; border-radius: 0; }
    .logo-text {
      font-family: 'DM Serif Display', serif; font-size: 1.6rem;
      background: linear-gradient(135deg, #ff6b35, #ffd700, #4ecdc4, #a855f7, #e84393);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    }
    .hamburger {
      display: none; background: none; border: none;
      font-size: 1.6rem; cursor: pointer; color: var(--white);
      width: 48px; height: 48px; border-radius: 12px;
    }
    .hamburger:hover { background: rgba(255,255,255,.1); }

    /* ─── HERO ─── */
    .hero {
      padding: 50px 24px 40px; text-align: center;
      position: relative; overflow: hidden;
    }
    .hero::before {
      content: ''; position: absolute; top: -100px; right: -100px;
      width: 400px; height: 400px; border-radius: 50%;
      background: radial-gradient(circle, rgba(249,115,22,.15) 0%, transparent 70%);
    }
    .hero-inner {
      max-width: 1000px; margin: 0 auto;
      display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
      position: relative; z-index: 2;
    }
    .hero-text { text-align: left; }
    .hero-text h1 {
      font-family: 'DM Serif Display', serif; font-size: 2.6rem; line-height: 1.15;
      color: var(--white); margin-bottom: 16px;
    }
    .hero-text h1 span { color: var(--orange-500); }
    .hero-text p {
      font-size: 1.1rem; color: rgba(255,255,255,.75);
      line-height: 1.6; margin-bottom: 28px; max-width: 440px;
    }
    .hero-cta {
      display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px;
      background: var(--orange-600); color: var(--white); border: none; border-radius: 100px;
      font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 1.05rem;
      cursor: pointer; transition: all 0.25s;
      box-shadow: 0 6px 24px rgba(234,88,12,.4); min-height: 48px;
    }
    .hero-cta:hover { background: var(--orange-700); transform: translateY(-2px); }
    .hero-pie-area { display: flex; justify-content: center; }

    /* ─── PIE WHEEL ─── */
    .pie-container { position: relative; width: 320px; height: 320px; }
    .pie-container canvas {
      width: 320px !important; height: 320px !important;
      filter: drop-shadow(0 16px 40px rgba(0,0,0,.35)); cursor: pointer;
    }
    .login-hub {
      position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
      width: 68px; height: 68px; border-radius: 50%;
      background: var(--blue-600); color: var(--white);
      border: 3px solid rgba(255,255,255,.5);
      font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 0.8rem;
      cursor: pointer; z-index: 10;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 4px 20px rgba(37,99,235,.5); transition: all 0.2s;
    }
    .login-hub:hover { background: #1d4ed8; transform: translate(-50%, -50%) scale(1.08); }

    /* ─── STEVIE SECTION (BLACK BG) ─── */
    .stevie-section {
      max-width: 1100px; margin: 0 auto; padding: 48px 24px;
    }
    .stevie-header {
      text-align: center; margin-bottom: 32px;
    }
    .stevie-header h2 {
      font-family: 'DM Serif Display', serif; font-size: 1.8rem; color: var(--white);
    }
    .stevie-header p { color: rgba(255,255,255,.6); margin-top: 6px; }
    .video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .video-card {
      aspect-ratio: 16/9;
      background: var(--black); border: 1px solid rgba(255,255,255,.15);
      border-radius: var(--radius-lg);
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      cursor: pointer; transition: all 0.3s; position: relative; overflow: hidden;
    }
    .video-card:hover { border-color: var(--orange-500); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
    .video-card .v-icon {
      font-size: 2.8rem; margin-bottom: 10px; color: var(--silver);
      transition: color 0.3s;
    }
    .video-card:hover .v-icon { color: var(--orange-500); }
    .video-card .v-label { font-weight: 700; color: var(--white); font-size: 0.95rem; }

    /* ─── TUTORIALS PANEL (BLACK BG, PROMINENT) ─── */
    .tutorials-panel {
      max-width: 1100px; margin: 0 auto; padding: 0 24px 48px;
    }
    .tutorials-toggle {
      width: 100%; padding: 18px 24px;
      background: var(--black); border: 1px solid rgba(255,255,255,.15);
      border-radius: var(--radius-lg);
      display: flex; align-items: center; justify-content: space-between;
      cursor: pointer; transition: all 0.3s; color: var(--white);
      font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1.05rem;
      min-height: 56px;
    }
    .tutorials-toggle:hover { border-color: var(--orange-500); }
    .tutorials-toggle .t-left { display: flex; align-items: center; gap: 12px; }
    .tutorials-toggle .t-icon { color: var(--silver); font-size: 1.4rem; }
    .tutorials-toggle .t-arrow {
      font-size: 1.2rem; transition: transform 0.3s; color: var(--silver);
    }
    .tutorials-toggle.open .t-arrow { transform: rotate(180deg); }
    .tutorials-list {
      max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
      background: var(--black); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
      border: 1px solid rgba(255,255,255,.15); border-top: none;
      margin-top: -12px;
    }
    .tutorials-list.open { max-height: 600px; }
    .tutorials-list-inner { padding: 12px 16px 16px; }
    .tut-btn {
      width: 100%; text-align: left; padding: 14px 16px;
      background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
      border-radius: 14px; color: var(--white);
      font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.88rem;
      cursor: pointer; transition: all 0.2s;
      display: flex; align-items: center; gap: 12px;
      margin-bottom: 6px; min-height: 48px;
    }
    .tut-btn:hover { background: rgba(249,115,22,.15); border-color: rgba(249,115,22,.3); }
    .tut-btn .tut-icon { color: var(--silver); font-size: 1.1rem; flex-shrink: 0; }

    /* ─── SIDEBAR (MOBILE DRAWER) ─── */
    .sidebar-backdrop {
      display: none; position: fixed; inset: 0;
      background: rgba(0,0,0,.5); z-index: 199;
    }
    .sidebar-backdrop.open { display: block; }
    .sidebar {
      position: fixed; top: 0; left: 0; width: 85%; max-width: 320px;
      height: 100vh; z-index: 200;
      background: var(--black); color: var(--white);
      transform: translateX(-100%); transition: transform 0.3s ease;
      padding: 24px 20px; overflow-y: auto;
      box-shadow: 4px 0 30px rgba(0,0,0,.5);
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-close {
      background: none; border: none; color: var(--silver); font-size: 1.4rem;
      cursor: pointer; position: absolute; top: 16px; right: 16px;
      width: 40px; height: 40px; border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
    }
    .sidebar-close:hover { background: rgba(255,255,255,.1); }
    .sidebar h3 {
      font-family: 'DM Serif Display', serif; font-size: 1.1rem;
      color: var(--orange-500); margin-bottom: 20px; padding-right: 40px;
    }

    /* ─── BOTTOM NAV ─── */
    .bottom-nav {
      position: fixed; bottom: 0; left: 0; right: 0;
      background: rgba(0,0,0,.85); backdrop-filter: blur(16px);
      border-top: 1px solid rgba(255,255,255,.1);
      padding: 10px 16px; z-index: 50;
    }
    .bottom-nav-inner {
      max-width: 500px; margin: 0 auto;
      display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
    }
    .bottom-btn {
      padding: 10px 4px; border: none; border-radius: 14px;
      font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.72rem;
      color: var(--white); cursor: pointer; transition: all 0.2s;
      display: flex; align-items: center; justify-content: center;
      min-height: 48px; letter-spacing: 0.01em;
    }
    .bottom-btn:hover { transform: translateY(-2px); }
    .bottom-btn.b-news { background: var(--emerald-600); }
    .bottom-btn.b-reviews { background: var(--purple-500); }
    .bottom-btn.b-more { background: var(--orange-600); }
    .bottom-btn.b-call { background: var(--red-600); }

    /* ─── MODALS ─── */
    .modal-overlay {
      display: none; position: fixed; inset: 0;
      background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
      z-index: 100; align-items: center; justify-content: center; padding: 20px;
    }
    .modal-overlay.open { display: flex; }
    @keyframes slideUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
    .modal-card {
      background: var(--gray-900); border: 1px solid rgba(255,255,255,.15);
      border-radius: var(--radius-lg); max-width: 480px; width: 100%;
      max-height: 85vh; overflow-y: auto; animation: slideUp 0.3s ease;
    }
    .modal-header {
      padding: 24px 24px 0; display: flex; justify-content: space-between; align-items: center;
    }
    .modal-header h2 { font-family: 'DM Serif Display', serif; font-size: 1.4rem; }
    .modal-x {
      width: 36px; height: 36px; border-radius: 50%;
      background: rgba(255,255,255,.1); border: none; color: var(--silver);
      font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
    }
    .modal-x:hover { background: rgba(255,255,255,.2); }
    .modal-body { padding: 20px 24px 24px; }
    .modal-btn {
      width: 100%; padding: 14px; background: var(--orange-600); color: var(--white);
      border: none; border-radius: 14px; font-family: 'DM Sans', sans-serif;
      font-weight: 700; font-size: 1rem; cursor: pointer; margin-top: 20px; min-height: 48px;
    }
    .modal-btn:hover { background: var(--orange-700); }

    .news-item { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; gap: 12px; }
    .news-item:last-child { border-bottom: none; }
    .news-date { background: rgba(249,115,22,.2); color: var(--orange-500); font-weight: 800; font-size: 0.75rem; padding: 4px 10px; border-radius: 8px; white-space: nowrap; height: fit-content; }
    .news-text { font-size: 0.9rem; color: rgba(255,255,255,.8); }

    .review-item { padding: 14px; margin-bottom: 10px; background: rgba(255,255,255,.05); border-radius: 14px; }
    .review-stars { color: #f59e0b; font-size: 0.85rem; margin-bottom: 4px; }
    .review-quote { font-size: 0.9rem; color: rgba(255,255,255,.8); font-style: italic; }
    .review-author { font-size: 0.75rem; color: var(--gray-400); font-weight: 700; margin-top: 4px; }

    .sub-pie-row { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: rgba(255,255,255,.8); }
    .sub-pie-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); flex-shrink: 0; }

    /* ─── MORE SCREEN ─── */
    .more-screen {
      display: none; position: fixed; inset: 0; z-index: 110;
      background: linear-gradient(160deg, var(--grad-start), var(--grad-mid), var(--grad-end));
      overflow-y: auto;
    }
    .more-screen.open { display: block; }
    .more-inner { max-width: 680px; margin: 0 auto; padding: 40px 24px 100px; }
    .more-inner h1 { font-family: 'DM Serif Display', serif; font-size: 1.8rem; text-align: center; margin-bottom: 6px; }
    .more-inner .sub { text-align: center; color: rgba(255,255,255,.5); margin-bottom: 36px; }
    .more-inner h2 { font-family: 'DM Serif Display', serif; color: var(--orange-500); font-size: 1.3rem; margin: 32px 0 16px; }
    .price-card {
      background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.1);
      border-radius: var(--radius); padding: 16px 20px;
      display: flex; align-items: center; gap: 14px; margin-bottom: 10px;
    }
    .price-card:hover { border-color: var(--orange-500); }
    .price-tier { width: 40px; height: 40px; background: rgba(249,115,22,.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
    .price-label { flex: 1; font-weight: 600; color: rgba(255,255,255,.8); }
    .price-amount { font-family: 'DM Serif Display', serif; font-size: 1.4rem; color: var(--orange-500); }
    .franchise-list { list-style: none; }
    .franchise-list li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 0.9rem; color: rgba(255,255,255,.75); display: flex; gap: 10px; }
    .franchise-list li::before { content: '→'; color: var(--orange-500); font-weight: 800; }
    .back-btn { background: none; border: none; color: var(--silver); font-size: 1rem; cursor: pointer; font-family: 'DM Sans', sans-serif; font-weight: 700; margin-bottom: 20px; min-height: 44px; }
    .back-btn:hover { color: var(--white); }

    /* ─── ONBOARDING ─── */
    .onboarding-view { padding-top: 4px; }
    .progress-bar { position: fixed; top: 42px; left: 0; right: 0; height: 4px; background: rgba(255,255,255,.15); z-index: 60; }
    .progress-fill { height: 100%; background: var(--orange-500); transition: width 0.4s ease; }
    .ob-card {
      max-width: 460px; width: 100%; margin: 36px auto;
      background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.12);
      border-radius: var(--radius-lg); padding: 36px 28px;
      backdrop-filter: blur(10px);
    }
    .ob-card h1 { font-family: 'DM Serif Display', serif; font-size: 1.5rem; color: var(--orange-500); text-align: center; margin-bottom: 6px; }
    .ob-card .hint { text-align: center; color: rgba(255,255,255,.55); font-size: 0.88rem; margin-bottom: 24px; }
    .tier-opt {
      padding: 18px; border: 2px solid var(--orange-500); border-radius: var(--radius);
      background: rgba(249,115,22,.08); cursor: pointer;
    }
    .tier-opt h3 { font-weight: 800; color: var(--orange-500); }
    .tier-opt .pr { font-size: 0.85rem; color: rgba(255,255,255,.6); margin-top: 4px; }
    .tier-opt .nt { font-size: 0.78rem; color: rgba(255,255,255,.4); margin-top: 6px; }
    .ob-btn {
      width: 100%; padding: 14px; border: none; border-radius: 14px;
      font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1rem;
      cursor: pointer; transition: all 0.2s; min-height: 48px;
    }
    .ob-btn.primary { background: var(--orange-600); color: var(--white); }
    .ob-btn.primary:hover { background: var(--orange-700); }
    .ob-btn.secondary { background: rgba(255,255,255,.1); color: var(--white); }
    .ob-btn.secondary:hover { background: rgba(255,255,255,.18); }
    .ob-btn:disabled { opacity: 0.4; cursor: not-allowed; }
    .ob-row { display: flex; gap: 12px; margin-top: 24px; }
    .ob-row .ob-btn { flex: 1; }

    .terms-box {
      height: 200px; overflow-y: auto; border: 1px solid rgba(255,255,255,.15);
      border-radius: 12px; padding: 16px; font-size: 0.82rem;
      color: rgba(255,255,255,.6); background: rgba(0,0,0,.3); margin-bottom: 16px; line-height: 1.7;
    }
    .terms-box ul { padding-left: 18px; margin-top: 8px; }
    .terms-box li { margin-bottom: 6px; }
    .cb-row { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: rgba(255,255,255,.75); cursor: pointer; }
    .cb-row input { width: 18px; height: 18px; accent-color: var(--orange-500); }

    .fg { margin-bottom: 16px; }
    .fg label { display: block; font-weight: 700; font-size: 0.82rem; color: rgba(255,255,255,.7); margin-bottom: 6px; }
    .fi {
      width: 100%; padding: 12px 16px; background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.15); border-radius: 12px;
      color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
      min-height: 46px;
    }
    .fi:focus { outline: none; border-color: var(--orange-500); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
    .fi::placeholder { color: rgba(255,255,255,.3); }
    .upload-lbl {
      display: block; padding: 16px; background: rgba(255,255,255,.05);
      border: 2px dashed rgba(255,255,255,.2); border-radius: 12px;
      text-align: center; cursor: pointer; font-weight: 600; color: var(--silver);
    }
    .upload-lbl:hover { border-color: var(--orange-500); color: var(--orange-500); }
    .file-nm { font-size: 0.78rem; color: rgba(255,255,255,.4); margin-top: 6px; text-align: center; }

    .selfie-circle {
      width: 160px; height: 160px; margin: 0 auto; border-radius: 50%;
      overflow: hidden; border: 3px solid var(--orange-500); background: rgba(0,0,0,.4);
    }
    .selfie-circle video, .selfie-circle img { width: 100%; height: 100%; object-fit: cover; }
    .cam-btns { display: flex; gap: 8px; margin-top: 12px; justify-content: center; }
    .cam-b {
      padding: 10px 18px; border: none; border-radius: 12px;
      font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.82rem;
      cursor: pointer; color: var(--white); min-height: 42px;
    }
    .cam-b.bl { background: var(--blue-600); }
    .cam-b.gr { background: var(--emerald-600); }
    .cam-b.gy { background: var(--gray-600); }
    #camera-status { text-align: center; font-size: 0.8rem; color: rgba(255,255,255,.4); margin-top: 8px; }

    .pending-scr { text-align: center; padding: 40px 0; }
    .pending-scr .ico { font-size: 3.5rem; margin-bottom: 16px; }
    .pending-scr p { color: rgba(255,255,255,.55); font-size: 0.9rem; line-height: 1.6; margin-top: 12px; }
    .login-lnk { text-align: center; margin-top: 16px; font-size: 0.85rem; color: rgba(255,255,255,.45); }
    .login-lnk button { background: none; border: none; color: var(--orange-500); font-weight: 700; cursor: pointer; text-decoration: underline; font-family: 'DM Sans', sans-serif; font-size: 0.85rem; min-height: auto; min-width: auto; }

    /* ═══════════════════════════════════════ */
    /* ─── POST-LOGIN DASHBOARD ─── */
    /* ═══════════════════════════════════════ */
    .dash-view { padding-top: 0; }
    .dash-banner {
      background: rgba(0,0,0,.4); border-bottom: 1px solid rgba(255,255,255,.1);
      padding: 16px 24px;
    }
    .dash-banner-inner {
      max-width: 800px; margin: 0 auto;
      display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
    }
    .zone-tag {
      display: flex; align-items: center; gap: 8px;
      font-weight: 700; font-size: 0.9rem;
    }
    .zone-tag .badge {
      background: var(--emerald-500); color: var(--white);
      font-size: 0.65rem; font-weight: 800; padding: 3px 8px;
      border-radius: 100px; text-transform: uppercase;
    }
    .dash-user { display: flex; align-items: center; gap: 10px; }
    .dash-avatar {
      width: 36px; height: 36px; border-radius: 50%;
      background: var(--orange-500); display: flex; align-items: center; justify-content: center;
      font-weight: 800; font-size: 0.8rem;
    }
    .dash-name { font-weight: 700; font-size: 0.9rem; }

    .dash-content { max-width: 800px; margin: 0 auto; padding: 28px 20px 120px; }
    .dash-greeting {
      font-family: 'DM Serif Display', serif; font-size: 1.6rem; margin-bottom: 24px;
    }
    .dash-greeting span { color: var(--orange-500); }

    /* Dashboard Tiles */
    .dash-grid {
      display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    }
    .dash-tile {
      background: var(--white); border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg); padding: 22px 20px;
      cursor: pointer; transition: all 0.25s; position: relative; overflow: hidden;
      color: var(--gray-900);
    }
    .dash-tile:hover { border-color: var(--orange-500); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.15); }
    .dash-tile .tile-icon { font-size: 2rem; margin-bottom: 10px; }
    .dash-tile .tile-title { font-weight: 800; font-size: 1rem; margin-bottom: 4px; color: var(--gray-900); }
    .dash-tile .tile-sub { font-size: 0.78rem; color: var(--gray-500); }
    .dash-tile .tile-count {
      position: absolute; top: 14px; right: 14px;
      background: var(--orange-500); color: var(--white);
      font-weight: 800; font-size: 0.7rem;
      width: 28px; height: 28px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
    }
    .dash-tile.wide { grid-column: 1 / -1; }

    /* Call to All Big Button */
    .call-to-all-btn {
      width: 100%; margin-top: 14px; padding: 20px;
      background: linear-gradient(135deg, #dc2626, #991b1b);
      border: 2px solid rgba(255,255,255,.15);
      border-radius: var(--radius-lg); cursor: pointer;
      display: flex; align-items: center; justify-content: center; gap: 12px;
      font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 1.1rem;
      color: var(--white); transition: all 0.3s; min-height: 64px;
    }
    .call-to-all-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(220,38,38,.4); }
    .call-to-all-btn .pulse {
      width: 14px; height: 14px; border-radius: 50%;
      background: var(--white); animation: callPulse 1.5s infinite;
    }
    @keyframes callPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }

    /* Dashboard detail panels */
    .dash-panel {
      display: none; margin-top: 20px;
      background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1);
      border-radius: var(--radius-lg); padding: 24px; animation: slideUp 0.3s ease;
    }
    .dash-panel.open { display: block; }
    .dash-panel h3 { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--orange-500); margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
    .dash-panel h3 button { background: none; border: none; color: var(--silver); cursor: pointer; font-size: 1.2rem; min-height: auto; min-width: auto; }

    /* Pie Slices in Dashboard */
    .slice-row {
      display: flex; align-items: center; gap: 14px;
      padding: 14px; background: rgba(255,255,255,.05);
      border-radius: 14px; margin-bottom: 10px;
      cursor: pointer; transition: all 0.2s;
    }
    .slice-row:hover { background: rgba(249,115,22,.1); }
    .slice-row.active-slice {
      background: rgba(249,115,22,.12);
      border-left: 3px solid var(--orange-500);
    }
    .slice-row.active-slice .slice-arrow { transform: rotate(90deg); color: var(--orange-500); }
    .slice-icon { font-size: 1.6rem; }
    .slice-info { flex: 1; }
    .slice-info .s-name { font-weight: 700; font-size: 0.9rem; }
    .slice-info .s-count { font-size: 0.78rem; color: rgba(255,255,255,.45); }
    .slice-arrow { color: var(--silver); font-size: 0.9rem; }

    /* Pieces list */
    .piece-item {
      display: flex; align-items: center; gap: 12px;
      padding: 12px; background: rgba(255,255,255,.03);
      border: 1px solid rgba(255,255,255,.06);
      border-radius: 12px; margin-bottom: 8px;
    }
    .piece-thumb {
      width: 44px; height: 44px; border-radius: 10px;
      background: rgba(249,115,22,.15); display: flex; align-items: center; justify-content: center;
      font-size: 1.3rem;
    }
    .piece-info { flex: 1; }
    .piece-info .p-name { font-weight: 700; font-size: 0.85rem; }
    .piece-info .p-status { font-size: 0.72rem; color: rgba(255,255,255,.4); }
    .piece-qr {
      width: 36px; height: 36px; border-radius: 8px;
      background: var(--white); display: flex; align-items: center; justify-content: center;
      font-size: 0.9rem; cursor: pointer;
    }

    /* Calendar */
    .cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
    .cal-header .cal-nav { display: flex; gap: 8px; }
    .cal-nav-btn {
      width: 34px; height: 34px; border-radius: 8px;
      background: rgba(255,255,255,.1); border: none; color: var(--white);
      cursor: pointer; font-size: 0.9rem;
      display: flex; align-items: center; justify-content: center;
      min-height: 34px; min-width: 34px;
    }
    .cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
    .cal-day-header { text-align: center; font-size: 0.7rem; color: rgba(255,255,255,.35); font-weight: 700; padding: 4px 0; }
    .cal-day {
      aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column;
      align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600;
      background: rgba(255,255,255,.04); cursor: pointer; transition: all 0.2s;
      position: relative;
    }
    .cal-day:hover { background: rgba(255,255,255,.1); }
    .cal-day.today { background: var(--orange-600); color: var(--white); }
    .cal-day.selected { background: var(--blue-600); color: var(--white); box-shadow: 0 0 0 2px rgba(59,130,246,.4); }
    .cal-day.has-slot::after {
      content: ''; position: absolute; bottom: 4px;
      width: 6px; height: 6px; border-radius: 50%; background: var(--emerald-500);
    }
    .cal-day.has-return::after { background: var(--orange-500); }
    .cal-day.has-slot.has-return::after {
      width: 12px; height: 6px; border-radius: 3px;
      background: linear-gradient(90deg, var(--emerald-500) 50%, var(--orange-500) 50%);
    }

    /* Day detail panel */
    .cal-day-detail {
      margin-top: 14px; padding: 16px;
      background: rgba(59,130,246,.06); border: 1px solid rgba(59,130,246,.2);
      border-radius: 14px; animation: slideUp 0.2s ease;
    }
    .cal-day-detail .cdd-header {
      font-weight: 800; font-size: 0.92rem; margin-bottom: 12px;
      color: var(--blue-500); display: flex; align-items: center; gap: 8px;
    }
    .cal-day-detail .cdd-empty {
      text-align: center; padding: 16px 0; color: rgba(255,255,255,.35); font-size: 0.85rem;
    }
    .cal-transaction {
      display: flex; align-items: center; gap: 12px;
      padding: 12px; background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
      margin-bottom: 8px;
    }
    .cal-transaction.ct-lend { border-left: 3px solid var(--emerald-500); }
    .cal-transaction.ct-return { border-left: 3px solid var(--orange-500); }
    .cal-transaction.ct-booked { border-left: 3px solid var(--blue-500); }
    .ct-icon { font-size: 1.3rem; flex-shrink: 0; }
    .ct-info { flex: 1; }
    .ct-name { font-weight: 700; font-size: 0.85rem; }
    .ct-detail { font-size: 0.75rem; color: rgba(255,255,255,.45); margin-top: 2px; }
    .ct-time { font-size: 0.72rem; color: rgba(255,255,255,.35); }
    .ct-type-badge {
      font-size: 0.6rem; font-weight: 800; padding: 2px 8px;
      border-radius: 6px; white-space: nowrap;
    }
    .ct-type-badge.lend { background: rgba(16,185,129,.15); color: var(--emerald-500); }
    .ct-type-badge.return { background: rgba(249,115,22,.15); color: var(--orange-500); }
    .ct-type-badge.booked { background: rgba(59,130,246,.15); color: var(--blue-500); }

    /* Messages */
    .msg-item {
      display: flex; align-items: center; gap: 12px;
      padding: 14px; background: rgba(255,255,255,.04);
      border-radius: 14px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s;
    }
    .msg-item:hover { background: rgba(255,255,255,.08); }
    .msg-item.unread { border-left: 3px solid var(--orange-500); }
    .msg-avatar {
      width: 40px; height: 40px; border-radius: 50%;
      background: var(--purple-500); display: flex; align-items: center; justify-content: center;
      font-weight: 800; font-size: 0.75rem; flex-shrink: 0;
    }
    .msg-info { flex: 1; min-width: 0; }
    .msg-info .m-name { font-weight: 700; font-size: 0.88rem; }
    .msg-info .m-preview { font-size: 0.78rem; color: rgba(255,255,255,.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .msg-time { font-size: 0.7rem; color: rgba(255,255,255,.3); white-space: nowrap; }

    /* ─── MOBILE ─── */
    @media (max-width: 768px) {
      .hero-inner { grid-template-columns: 1fr; text-align: center; }
      .hero-text { text-align: center; order: 1; }
      .hero-text p { margin: 0 auto 28px; }
      .hero-pie-area { order: 2; }
      .hero { padding: 36px 20px 30px; }
      .hero-text h1 { font-size: 2rem; }
      .video-grid { grid-template-columns: 1fr; }
      .pie-container { width: 260px; height: 260px; }
      .pie-container canvas { width: 260px !important; height: 260px !important; }
      .login-hub { width: 58px; height: 58px; font-size: 0.72rem; }
      .hamburger { display: flex; align-items: center; justify-content: center; }
      .ob-card { margin: 20px 16px; padding: 28px 20px; }
      .dash-grid { grid-template-columns: 1fr; }
      .dash-content { padding: 20px 16px 120px; }
      .partner-grid { grid-template-columns: 1fr 1fr !important; }
    }
    @media (max-width: 480px) {
      .partner-grid { grid-template-columns: 1fr !important; }
    }
    @media (min-width: 769px) {
      .sidebar-backdrop { display: none !important; }
      .hamburger { display: none !important; }
    }

    @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
    .float-anim { animation: float 4s ease-in-out infinite; }

    /* ─── TOAST NOTIFICATIONS (replaces browser alerts) ─── */
    .toast-container {
      position: fixed; top: 56px; right: 16px; z-index: 300;
      display: flex; flex-direction: column; gap: 10px;
      pointer-events: none; max-width: 380px; width: calc(100% - 32px);
    }
    @keyframes toastIn { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }
    @keyframes toastOut { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(40px); } }
    .toast {
      background: var(--gray-900); border: 1px solid rgba(255,255,255,.15);
      border-radius: 14px; padding: 16px 20px;
      color: var(--white); font-size: 0.88rem; line-height: 1.5;
      box-shadow: 0 8px 32px rgba(0,0,0,.4); pointer-events: auto;
      animation: toastIn 0.3s ease forwards;
      display: flex; align-items: flex-start; gap: 12px;
      backdrop-filter: blur(12px);
    }
    .toast.closing { animation: toastOut 0.3s ease forwards; }
    .toast-icon { font-size: 1.3rem; flex-shrink: 0; line-height: 1; }
    .toast-body { flex: 1; }
    .toast-title { font-weight: 800; font-size: 0.85rem; margin-bottom: 4px; }
    .toast-msg { color: rgba(255,255,255,.7); font-size: 0.82rem; }
    .toast-close {
      background: none; border: none; color: var(--silver); cursor: pointer;
      font-size: 1rem; padding: 0; line-height: 1; flex-shrink: 0;
      width: 28px; height: 28px; border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
    }
    .toast-close:hover { background: rgba(255,255,255,.1); }

    /* ─── INFO MODAL (replaces alerts for feature previews) ─── */
    .info-modal-overlay {
      display: none; position: fixed; inset: 0;
      background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
      z-index: 100; align-items: center; justify-content: center; padding: 20px;
    }
    .info-modal-overlay.open { display: flex; }
    .info-modal {
      background: var(--gray-900); border: 1px solid rgba(255,255,255,.15);
      border-radius: var(--radius-lg); max-width: 420px; width: 100%;
      padding: 32px 28px; text-align: center;
      animation: slideUp 0.3s ease;
    }
    .info-modal .im-icon { font-size: 2.8rem; margin-bottom: 14px; }
    .info-modal h3 { font-family: 'DM Serif Display', serif; font-size: 1.3rem; color: var(--orange-500); margin-bottom: 10px; }
    .info-modal p { color: rgba(255,255,255,.6); font-size: 0.88rem; line-height: 1.6; margin-bottom: 8px; }
    .info-modal .im-btn {
      margin-top: 20px; width: 100%; padding: 14px; background: var(--orange-600);
      color: var(--white); border: none; border-radius: 14px;
      font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1rem;
      cursor: pointer; min-height: 48px;
    }
    .info-modal .im-btn:hover { background: var(--orange-700); }

    /* ─── FORM VALIDATION ─── */
    .fi.invalid { border-color: var(--red-500); box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
    .field-error { font-size: 0.75rem; color: var(--red-500); margin-top: 4px; display: none; }
    .field-error.show { display: block; }

    /* ─── SKIP LINK (accessibility) ─── */
    .skip-link {
      position: absolute; top: -100px; left: 16px; z-index: 999;
      background: var(--orange-600); color: var(--white);
      padding: 12px 24px; border-radius: 0 0 12px 12px;
      font-weight: 700; font-size: 0.9rem; text-decoration: none;
      transition: top 0.2s;
    }
    .skip-link:focus { top: 0; }

    /* ─── PIECE MANAGEMENT ─── */
    .piece-actions { display: flex; gap: 6px; align-items: center; }
    .piece-action-btn {
      width: 34px; height: 34px; border-radius: 8px; border: none;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; font-size: 0.85rem; transition: all 0.2s;
      min-height: 34px; min-width: 34px;
    }
    .piece-action-btn.edit { background: rgba(59,130,246,.15); color: var(--blue-500); }
    .piece-action-btn.edit:hover { background: rgba(59,130,246,.25); }
    .piece-action-btn.delete { background: rgba(239,68,68,.12); color: var(--red-500); }
    .piece-action-btn.delete:hover { background: rgba(239,68,68,.25); }
    .piece-action-btn.qr { background: var(--white); color: var(--gray-900); }
    .piece-action-btn.qr:hover { background: var(--gray-200); }

    .add-piece-btn {
      width: 100%; padding: 14px; margin-top: 10px;
      background: rgba(249,115,22,.1); border: 2px dashed rgba(249,115,22,.35);
      border-radius: 14px; color: var(--orange-500);
      font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.88rem;
      cursor: pointer; transition: all 0.2s; min-height: 48px;
      display: flex; align-items: center; justify-content: center; gap: 8px;
    }
    .add-piece-btn:hover { background: rgba(249,115,22,.18); border-color: var(--orange-500); }
    .add-piece-btn:disabled { opacity: 0.35; cursor: not-allowed; }

    .piece-form-group { margin-bottom: 16px; }
    .piece-form-group label {
      display: block; font-weight: 700; font-size: 0.82rem;
      color: rgba(255,255,255,.7); margin-bottom: 6px;
    }
    .piece-form-group select { appearance: auto; }

    .photo-upload-area {
      display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px;
    }
    .photo-preview {
      width: 72px; height: 72px; border-radius: 10px; object-fit: cover;
      border: 2px solid rgba(255,255,255,.15);
    }
    .photo-add-btn {
      width: 72px; height: 72px; border-radius: 10px;
      border: 2px dashed rgba(255,255,255,.2); background: rgba(255,255,255,.05);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; font-size: 1.4rem; color: var(--silver);
      transition: all 0.2s;
    }
    .photo-add-btn:hover { border-color: var(--orange-500); color: var(--orange-500); }

    .qr-preview-box {
      background: var(--white); border-radius: 12px; padding: 16px;
      display: flex; align-items: center; justify-content: center;
      margin: 12px auto 0; width: 140px; height: 140px;
    }

    /* ─── CONFIRM DELETE ─── */
    .confirm-bar {
      display: flex; gap: 8px; margin-top: 10px; padding: 12px;
      background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2);
      border-radius: 12px; align-items: center;
    }
    .confirm-bar p { flex: 1; font-size: 0.82rem; color: rgba(255,255,255,.7); }
    .confirm-bar button {
      padding: 8px 16px; border: none; border-radius: 10px;
      font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.8rem;
      cursor: pointer; min-height: 36px;
    }
    .confirm-bar .cancel-del { background: rgba(255,255,255,.1); color: var(--white); }
    .confirm-bar .confirm-del { background: var(--red-600); color: var(--white); }

    /* ─── HUB FEED ─── */
    .feed-item {
      display: flex; align-items: flex-start; gap: 12px;
      padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06);
    }
    .feed-item:last-child { border-bottom: none; }
    .feed-dot {
      width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    }
    .feed-text { font-size: 0.85rem; color: rgba(255,255,255,.75); line-height: 1.5; }
    .feed-time { font-size: 0.7rem; color: rgba(255,255,255,.3); margin-top: 4px; }

    /* ─── MY REVIEWS ─── */
    .my-review-summary {
      display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px;
    }
    .my-review-stat {
      background: rgba(255,255,255,.05); border-radius: 14px;
      padding: 16px; text-align: center;
    }
    .my-review-stat .stat-val {
      font-family: 'DM Serif Display', serif; font-size: 1.8rem;
      color: var(--orange-500);
    }
    .my-review-stat .stat-lbl {
      font-size: 0.72rem; color: rgba(255,255,255,.45); font-weight: 600; margin-top: 4px;
    }
    .review-pending {
      background: rgba(249,115,22,.08); border: 1px solid rgba(249,115,22,.2);
      border-radius: 14px; padding: 14px 16px; margin-bottom: 12px;
      display: flex; align-items: center; gap: 12px; cursor: pointer;
      transition: all 0.2s;
    }
    .review-pending:hover { background: rgba(249,115,22,.15); }
    .review-pending .rp-icon { font-size: 1.3rem; }
    .review-pending .rp-info { flex: 1; }
    .review-pending .rp-name { font-weight: 700; font-size: 0.85rem; }
    .review-pending .rp-hint { font-size: 0.72rem; color: rgba(255,255,255,.4); }

    /* ─── UPGRADE SCREEN ─── */
    .current-plan-badge {
      display: inline-flex; align-items: center; gap: 6px;
      background: rgba(16,185,129,.15); color: var(--emerald-500);
      font-weight: 800; font-size: 0.75rem; padding: 5px 12px;
      border-radius: 100px; margin-bottom: 16px;
    }
    .upgrade-option {
      padding: 18px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.1);
      border-radius: var(--radius); margin-bottom: 10px;
      display: flex; align-items: center; gap: 14px;
      cursor: pointer; transition: all 0.2s;
    }
    .upgrade-option:hover { border-color: var(--orange-500); transform: translateY(-2px); }
    .upgrade-option .uo-icon {
      width: 44px; height: 44px; border-radius: 12px;
      background: rgba(249,115,22,.15); display: flex; align-items: center; justify-content: center;
      font-size: 1.3rem; flex-shrink: 0;
    }
    .upgrade-option .uo-info { flex: 1; }
    .upgrade-option .uo-name { font-weight: 700; font-size: 0.9rem; }
    .upgrade-option .uo-desc { font-size: 0.78rem; color: rgba(255,255,255,.45); margin-top: 2px; }
    .upgrade-option .uo-price {
      font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--orange-500);
      white-space: nowrap;
    }

    /* ─── PIECE STATES ─── */
    .piece-item.scanned-out {
      opacity: 0.45; filter: grayscale(0.6);
      border: 1px solid rgba(255,255,255,.04);
      position: relative;
    }
    .piece-item.scanned-out::after {
      content: 'ON LOAN'; position: absolute; top: 6px; right: 8px;
      background: rgba(107,114,128,.7); color: var(--white);
      font-size: 0.55rem; font-weight: 800; padding: 2px 8px;
      border-radius: 6px; letter-spacing: 0.04em;
    }
    .piece-item.suspended {
      border-left: 3px solid #f59e0b;
      background: rgba(245,158,11,.06);
    }
    .piece-item.suspended .piece-thumb {
      background: rgba(245,158,11,.15);
    }
    .suspend-badge {
      display: inline-flex; align-items: center; gap: 4px;
      background: rgba(245,158,11,.15); color: #f59e0b;
      font-size: 0.6rem; font-weight: 800; padding: 2px 8px;
      border-radius: 6px; white-space: nowrap;
    }

    /* Scan Out / In / Suspend buttons */
    .piece-action-btn.scan-out { background: rgba(168,85,247,.15); color: var(--purple-500); }
    .piece-action-btn.scan-out:hover { background: rgba(168,85,247,.25); }
    .piece-action-btn.scan-in { background: rgba(16,185,129,.15); color: var(--emerald-500); }
    .piece-action-btn.scan-in:hover { background: rgba(16,185,129,.25); }
    .piece-action-btn.suspend { background: rgba(245,158,11,.12); color: #f59e0b; }
    .piece-action-btn.suspend:hover { background: rgba(245,158,11,.22); }

    /* ─── BORROWED ITEMS SECTION ─── */
    .borrowed-section {
      margin-top: 20px; padding: 20px;
      background: rgba(168,85,247,.06); border: 1px solid rgba(168,85,247,.2);
      border-radius: var(--radius-lg);
    }
    .borrowed-section h4 {
      font-family: 'DM Serif Display', serif; font-size: 1.05rem;
      color: var(--purple-500); margin-bottom: 4px;
    }
    .borrowed-section .borrow-hint {
      font-size: 0.78rem; color: rgba(255,255,255,.4); margin-bottom: 14px;
    }
    .borrowed-piece-item {
      display: flex; align-items: center; gap: 12px;
      padding: 12px; background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 12px; margin-bottom: 8px;
    }
    .borrowed-piece-item.suspended { border-left: 3px solid #f59e0b; background: rgba(245,158,11,.06); }
    .bp-from { font-size: 0.7rem; color: var(--purple-500); font-weight: 700; }

    /* ─── CALENDAR WARNING ─── */
    .cal-warning {
      display: flex; align-items: flex-start; gap: 10px;
      padding: 12px 16px; margin-top: 12px;
      background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.25);
      border-radius: 12px; animation: slideUp 0.3s ease;
    }
    .cal-warning .cw-icon { font-size: 1.2rem; flex-shrink: 0; line-height: 1.4; }
    .cal-warning .cw-text { font-size: 0.82rem; color: rgba(255,255,255,.75); line-height: 1.5; }
    .cal-warning .cw-item { color: #f59e0b; font-weight: 700; }

    /* ─── SCAN OUT MODAL ─── */
    .neighbour-select {
      display: flex; flex-direction: column; gap: 8px; margin: 14px 0;
    }
    .neighbour-opt {
      display: flex; align-items: center; gap: 12px;
      padding: 12px 16px; background: rgba(255,255,255,.05);
      border: 2px solid rgba(255,255,255,.1); border-radius: 14px;
      cursor: pointer; transition: all 0.2s;
      font-family: 'DM Sans', sans-serif; color: var(--white);
      font-size: 0.88rem; font-weight: 600;
    }
    .neighbour-opt:hover { border-color: var(--purple-500); background: rgba(168,85,247,.08); }
    .neighbour-opt.selected { border-color: var(--purple-500); background: rgba(168,85,247,.12); }
    .neighbour-opt .no-avatar {
      width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      font-weight: 800; font-size: 0.75rem;
    }

    /* ─── SEARCH HUB ─── */
    .search-input-wrap {
      position: relative; margin-bottom: 16px;
    }
    .search-input-wrap input {
      width: 100%; padding: 14px 16px 14px 44px;
      background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
      border-radius: 14px; color: var(--white);
      font-family: 'DM Sans', sans-serif; font-size: 0.92rem; min-height: 48px;
    }
    .search-input-wrap input:focus { outline: none; border-color: var(--orange-500); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
    .search-input-wrap input::placeholder { color: rgba(255,255,255,.3); }
    .search-input-wrap .search-icon {
      position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
      font-size: 1.1rem; pointer-events: none;
    }
    .search-filter-row {
      display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap;
    }
    .search-filter-btn {
      padding: 6px 14px; border-radius: 100px; font-size: 0.75rem; font-weight: 700;
      font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all 0.2s;
      border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05);
      color: rgba(255,255,255,.6); min-height: 32px;
    }
    .search-filter-btn.active { background: var(--orange-600); color: var(--white); border-color: var(--orange-600); }
    .search-filter-btn:hover { border-color: var(--orange-500); }

    .search-result {
      display: flex; align-items: center; gap: 12px;
      padding: 14px; background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
      margin-bottom: 8px; transition: all 0.2s;
    }
    .search-result:hover { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.06); }
    .sr-thumb {
      width: 48px; height: 48px; border-radius: 12px;
      background: rgba(249,115,22,.12); display: flex; align-items: center; justify-content: center;
      font-size: 1.5rem; flex-shrink: 0;
    }
    .sr-info { flex: 1; min-width: 0; }
    .sr-name { font-weight: 700; font-size: 0.9rem; }
    .sr-owner { font-size: 0.72rem; color: var(--purple-500); font-weight: 600; }
    .sr-slice { font-size: 0.68rem; color: rgba(255,255,255,.35); }
    .sr-rating { font-size: 0.72rem; color: #f59e0b; }
    .interest-btn {
      padding: 8px 16px; border: none; border-radius: 10px;
      background: var(--purple-500); color: var(--white);
      font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.78rem;
      cursor: pointer; transition: all 0.2s; white-space: nowrap; min-height: 36px;
    }
    .interest-btn:hover { background: #7c3aed; }
    .interest-btn:disabled { opacity: 0.4; cursor: not-allowed; }
    .interest-btn.sent { background: var(--emerald-600); }

    .search-empty {
      text-align: center; padding: 32px 0; color: rgba(255,255,255,.35);
    }
    .search-empty .se-icon { font-size: 2.5rem; margin-bottom: 10px; }

    /* ─── CONVERSATION THREAD ─── */
    .conv-thread {
      max-height: 320px; overflow-y: auto; margin-bottom: 16px;
      padding: 4px;
    }
    .conv-bubble {
      max-width: 85%; padding: 12px 16px; border-radius: 16px;
      font-size: 0.85rem; line-height: 1.5; margin-bottom: 8px;
      position: relative;
    }
    .conv-bubble.them {
      background: rgba(255,255,255,.08); border-bottom-left-radius: 4px;
      margin-right: auto;
    }
    .conv-bubble.you {
      background: rgba(249,115,22,.15); border-bottom-right-radius: 4px;
      margin-left: auto;
    }
    .conv-bubble .cb-sender {
      font-size: 0.7rem; font-weight: 700; margin-bottom: 4px;
      color: var(--purple-500);
    }
    .conv-bubble.you .cb-sender { color: var(--orange-500); }
    .conv-bubble .cb-time {
      font-size: 0.62rem; color: rgba(255,255,255,.3); margin-top: 4px; text-align: right;
    }
    .conv-reply-bar {
      display: flex; gap: 8px; align-items: center;
    }
    .conv-reply-bar input {
      flex: 1; padding: 10px 14px; background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
      color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 0.85rem;
      min-height: 42px;
    }
    .conv-reply-bar input:focus { outline: none; border-color: var(--orange-500); }
    .conv-reply-bar button {
      padding: 10px 16px; background: var(--orange-600); color: var(--white);
      border: none; border-radius: 12px; font-weight: 700; font-size: 0.85rem;
      cursor: pointer; min-height: 42px; font-family: 'DM Sans', sans-serif;
    }

    /* ─── DEAL ACTIONS ─── */
    .deal-actions {
      display: flex; gap: 8px; margin-top: 14px; padding-top: 14px;
      border-top: 1px solid rgba(255,255,255,.08);
    }
    .deal-btn {
      flex: 1; padding: 12px; border: none; border-radius: 12px;
      font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.85rem;
      cursor: pointer; min-height: 44px; transition: all 0.2s;
    }
    .deal-btn.accept { background: var(--emerald-600); color: var(--white); }
    .deal-btn.accept:hover { background: #047857; }
    .deal-btn.decline { background: rgba(239,68,68,.15); color: var(--red-500); }
    .deal-btn.decline:hover { background: rgba(239,68,68,.25); }

    /* ─── BOOKING FORM ─── */
    .booking-form {
      background: rgba(16,185,129,.06); border: 1px solid rgba(16,185,129,.2);
      border-radius: 14px; padding: 18px; margin-top: 14px;
    }
    .booking-form h4 {
      font-family: 'DM Serif Display', serif; font-size: 1rem;
      color: var(--emerald-500); margin-bottom: 12px;
    }
    .booking-row { display: flex; gap: 10px; margin-bottom: 12px; }
    .booking-row .fg { flex: 1; margin-bottom: 0; }

    /* ─── DEAL STATUS BADGES ─── */
    .deal-badge {
      display: inline-flex; align-items: center; gap: 4px;
      font-size: 0.65rem; font-weight: 800; padding: 3px 10px;
      border-radius: 8px; white-space: nowrap;
    }
    .deal-badge.interest { background: rgba(168,85,247,.15); color: var(--purple-500); }
    .deal-badge.active { background: rgba(16,185,129,.15); color: var(--emerald-500); }
    .deal-badge.booked { background: rgba(59,130,246,.15); color: var(--blue-500); }

    /* ─── LOCKED SEARCH RESULTS (unsubscribed slices) ─── */
    .search-result.locked {
      position: relative; overflow: hidden;
    }
    .search-result.locked::before {
      content: 'LOCKED'; position: absolute;
      top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-18deg);
      font-size: 1.6rem; font-weight: 900; letter-spacing: 0.2em;
      color: rgba(249,115,22,.12); pointer-events: none; z-index: 2;
      white-space: nowrap; text-transform: uppercase;
    }
    .search-result.locked .sr-thumb { opacity: 0.6; }
    .search-result.locked .sr-info { opacity: 0.75; }
    .search-result.locked .sr-name { color: rgba(255,255,255,.7); }
    .sr-listed {
      font-size: 0.65rem; color: rgba(255,255,255,.3); margin-top: 2px;
      display: flex; align-items: center; gap: 4px;
    }
    .sr-desc {
      font-size: 0.75rem; color: rgba(255,255,255,.4); margin-top: 3px;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .locked-overlay {
      display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
      flex-shrink: 0; z-index: 3;
    }
    .locked-badge {
      display: inline-flex; align-items: center; gap: 4px;
      background: rgba(255,255,255,.08); color: rgba(255,255,255,.5);
      font-size: 0.65rem; font-weight: 800; padding: 3px 10px;
      border-radius: 8px;
    }
    .unlock-btn {
      padding: 7px 14px; border: none; border-radius: 10px;
      background: linear-gradient(135deg, var(--orange-600), var(--purple-500));
      color: var(--white); font-family: 'DM Sans', sans-serif;
      font-weight: 700; font-size: 0.72rem; cursor: pointer;
      transition: all 0.2s; white-space: nowrap; min-height: 32px;
    }
    .unlock-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(168,85,247,.3); }

    .search-upgrade-banner {
      background: linear-gradient(135deg, rgba(168,85,247,.1), rgba(249,115,22,.1));
      border: 1px solid rgba(168,85,247,.25); border-radius: 14px;
      padding: 16px 18px; margin-bottom: 16px;
      display: flex; align-items: center; gap: 12px;
    }
    .search-upgrade-banner .sub-icon { font-size: 1.6rem; flex-shrink: 0; }
    .search-upgrade-banner .sub-text { flex: 1; font-size: 0.82rem; color: rgba(255,255,255,.7); line-height: 1.5; }
    .search-upgrade-banner .sub-text strong { color: var(--orange-500); }

    /* ─── SHARE MY PIE HQ MESSAGES ─── */
    .msg-item.hq-msg {
      background: linear-gradient(135deg, rgba(249,115,22,.06), rgba(168,85,247,.06));
      border: 1px solid rgba(249,115,22,.2); border-radius: 14px;
    }
    .msg-item.hq-msg:hover { background: linear-gradient(135deg, rgba(249,115,22,.1), rgba(168,85,247,.1)); }
    .hq-avatar {
      width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.2rem;
      background: linear-gradient(135deg, var(--orange-600), var(--purple-500));
    }
    .hq-badge {
      display: inline-flex; align-items: center; gap: 3px;
      background: linear-gradient(135deg, rgba(249,115,22,.2), rgba(168,85,247,.2));
      color: var(--orange-500); font-size: 0.6rem; font-weight: 800;
      padding: 2px 8px; border-radius: 6px; white-space: nowrap;
    }

    /* ─── LANGUAGE SELECTOR ─── */
    .lang-selector-wrap {
      position: relative;
    }
    .lang-btn {
      background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
      border-radius: 100px; color: var(--white);
      font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.8rem;
      padding: 7px 14px; cursor: pointer; display: flex; align-items: center; gap: 6px;
      transition: all 0.2s; min-height: 36px;
    }
    .lang-btn:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); }
    .lang-dropdown {
      display: none; position: absolute; top: calc(100% + 8px); right: 0;
      background: var(--gray-900); border: 1px solid rgba(255,255,255,.15);
      border-radius: 14px; padding: 8px; min-width: 220px;
      box-shadow: 0 16px 48px rgba(0,0,0,.5); z-index: 300;
      animation: slideUp 0.2s ease;
    }
    .lang-dropdown.open { display: block; }
    .lang-opt {
      width: 100%; padding: 10px 14px; background: none; border: none;
      color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
      font-weight: 600; text-align: left; cursor: pointer; border-radius: 10px;
      display: flex; align-items: center; gap: 10px; min-height: 40px;
      transition: background 0.15s;
    }
    .lang-opt:hover { background: rgba(255,255,255,.08); }
    .lang-opt.active { background: rgba(249,115,22,.12); color: var(--orange-500); }
    .lang-opt .lang-flag { font-size: 1.1rem; }
    .lang-opt .lang-native { font-size: 0.72rem; color: rgba(255,255,255,.4); margin-left: auto; }

    /* Translation indicator in chat bubbles */
    .translated-badge {
      font-size: 0.6rem; background: rgba(59,130,246,.15); color: var(--blue-500);
      padding: 2px 8px; border-radius: 6px; font-weight: 700; margin-top: 4px;
      display: inline-block;
    }

    /* ─── HUB NEWS (NOTICEBOARD) ─── */
    .hub-news-panel {
      margin-top: 20px; background: rgba(0,0,0,.35);
      border: 1px solid rgba(255,255,255,.1);
      border-radius: var(--radius-lg); padding: 24px; animation: slideUp 0.3s ease;
    }
    .hub-news-panel h3 {
      font-family: 'DM Serif Display', serif; font-size: 1.2rem;
      color: var(--emerald-500); margin-bottom: 4px;
      display: flex; align-items: center; justify-content: space-between;
    }
    .hub-news-panel h3 button { background: none; border: none; color: var(--silver); cursor: pointer; font-size: 1.2rem; }
    .hub-news-panel .hn-sub {
      font-size: 0.78rem; color: rgba(255,255,255,.4); margin-bottom: 18px;
    }
    .news-post {
      background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
      border-radius: 14px; padding: 16px; margin-bottom: 12px;
      transition: border-color 0.2s;
    }
    .news-post:hover { border-color: rgba(16,185,129,.3); }
    .news-post-header {
      display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
    }
    .news-post-icon {
      width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
      background: rgba(16,185,129,.12); display: flex; align-items: center;
      justify-content: center; font-size: 1.3rem;
    }
    .news-post-meta { flex: 1; }
    .news-post-title { font-weight: 800; font-size: 0.9rem; }
    .news-post-datetime {
      font-size: 0.7rem; color: var(--emerald-500); font-weight: 700;
      margin-top: 2px; display: flex; align-items: center; gap: 6px;
    }
    .news-post-datetime .anon-tag {
      color: rgba(255,255,255,.35); font-weight: 600;
    }
    .news-post-body {
      font-size: 0.85rem; color: rgba(255,255,255,.7); line-height: 1.55; margin-bottom: 12px;
    }
    .news-post-footer {
      display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    }
    .interest-post-btn {
      padding: 9px 18px; background: rgba(16,185,129,.12);
      border: 1px solid rgba(16,185,129,.3); border-radius: 100px;
      color: var(--emerald-500); font-family: 'DM Sans', sans-serif;
      font-weight: 700; font-size: 0.78rem; cursor: pointer; transition: all 0.2s; min-height: 36px;
    }
    .interest-post-btn:hover { background: rgba(16,185,129,.22); border-color: var(--emerald-500); }
    .interest-post-btn.interested { background: rgba(16,185,129,.25); color: var(--white); }
    .cal-add-btn {
      padding: 9px 18px; background: rgba(59,130,246,.1);
      border: 1px solid rgba(59,130,246,.25); border-radius: 100px;
      color: var(--blue-500); font-family: 'DM Sans', sans-serif;
      font-weight: 700; font-size: 0.78rem; cursor: pointer; transition: all 0.2s; min-height: 36px;
    }
    .cal-add-btn:hover { background: rgba(59,130,246,.2); }
    .cal-add-btn.added { background: rgba(59,130,246,.25); color: var(--white); border-color: var(--blue-500); }
    .interests-count {
      font-size: 0.72rem; color: rgba(255,255,255,.35); margin-left: auto;
    }
    .add-news-btn {
      width: 100%; padding: 14px; margin-top: 8px;
      background: rgba(16,185,129,.08); border: 2px dashed rgba(16,185,129,.3);
      border-radius: 14px; color: var(--emerald-500);
      font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.88rem;
      cursor: pointer; transition: all 0.2s; min-height: 48px;
      display: flex; align-items: center; justify-content: center; gap: 8px;
    }
    .add-news-btn:hover { background: rgba(16,185,129,.15); border-color: var(--emerald-500); }

    /* Add News Post Modal */
    .news-form-group { margin-bottom: 16px; }
    .news-form-group label { display: block; font-weight: 700; font-size: 0.82rem; color: rgba(255,255,255,.7); margin-bottom: 6px; }

    /* Reminder badge on calendar items */
    .reminder-tag {
      font-size: 0.6rem; background: rgba(245,158,11,.15); color: #f59e0b;
      padding: 2px 8px; border-radius: 6px; font-weight: 700;
      display: inline-flex; align-items: center; gap: 3px;
    }

    /* ─── SMP NOTIFICATIONS SECTION ─── */
    .smp-notif-section {
      margin-top: 24px; background: linear-gradient(135deg, rgba(168,85,247,.06), rgba(249,115,22,.06));
      border: 1px solid rgba(168,85,247,.2); border-radius: var(--radius-lg); padding: 22px;
    }
    .smp-notif-section h3 {
      font-family: 'DM Serif Display', serif; font-size: 1.1rem; color: var(--purple-500);
      margin-bottom: 4px; display: flex; align-items: center; gap: 8px;
    }
    .smp-notif-section .sn-sub {
      font-size: 0.78rem; color: rgba(255,255,255,.4); margin-bottom: 16px;
    }
    .smp-notif-item {
      display: flex; align-items: flex-start; gap: 12px;
      padding: 14px; background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
      margin-bottom: 10px;
    }
    .smp-notif-icon {
      width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    }
    .smp-notif-icon.update { background: rgba(168,85,247,.15); }
    .smp-notif-icon.freebie { background: rgba(249,115,22,.15); }
    .smp-notif-content { flex: 1; }
    .smp-notif-title { font-weight: 800; font-size: 0.88rem; margin-bottom: 3px; }
    .smp-notif-title.update { color: var(--purple-500); }
    .smp-notif-title.freebie { color: var(--orange-500); }
    .smp-notif-body { font-size: 0.8rem; color: rgba(255,255,255,.6); line-height: 1.5; }

    /* ─── FEEDBACK / MESSAGE US SECTION ─── */
    .feedback-section {
      margin-top: 24px; background: rgba(0,0,0,.3);
      border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 22px;
    }
    .feedback-section h3 {
      font-family: 'DM Serif Display', serif; font-size: 1.1rem; color: var(--orange-500);
      margin-bottom: 4px; display: flex; align-items: center; gap: 8px;
    }
    .feedback-section .fb-sub {
      font-size: 0.78rem; color: rgba(255,255,255,.4); margin-bottom: 16px;
    }
    .feedback-section .fb-email-hint {
      display: flex; align-items: center; gap: 8px; padding: 10px 14px;
      background: rgba(249,115,22,.08); border: 1px solid rgba(249,115,22,.2);
      border-radius: 10px; margin-bottom: 16px;
      font-size: 0.8rem; color: rgba(255,255,255,.65);
    }
    .fb-auto-reply {
      display: none; margin-top: 16px; padding: 14px 16px;
      background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.25);
      border-radius: 12px; animation: slideUp 0.3s ease;
    }
    .fb-auto-reply.show { display: flex; gap: 10px; align-items: flex-start; }
    .fb-auto-reply .ar-icon { font-size: 1.4rem; flex-shrink: 0; }
    .fb-auto-reply .ar-text { font-size: 0.82rem; color: rgba(255,255,255,.75); line-height: 1.5; }
    .fb-auto-reply .ar-title { font-weight: 800; color: var(--emerald-500); margin-bottom: 4px; }

    /* ─── STRIPE PAYMENT PORTAL ─── */
    .stripe-overlay {
      display: none; position: fixed; inset: 0; z-index: 500;
      background: rgba(10,10,20,.88); backdrop-filter: blur(14px);
      align-items: center; justify-content: center; padding: 20px;
    }
    .stripe-overlay.open { display: flex; }
    @keyframes stripeSlideUp {
      from { opacity:0; transform:translateY(40px) scale(.97); }
      to   { opacity:1; transform:translateY(0) scale(1); }
    }
    .stripe-modal {
      background: #ffffff; border-radius: 20px;
      max-width: 480px; width: 100%; overflow: hidden;
      box-shadow: 0 32px 80px rgba(0,0,0,.5);
      animation: stripeSlideUp 0.35s cubic-bezier(.22,.68,0,1.2);
      color: #111827; font-family: 'DM Sans', sans-serif;
    }
    /* Stripe header bar */
    .stripe-header {
      background: linear-gradient(135deg, #635bff, #4f46e5);
      padding: 24px 28px 20px;
      display: flex; align-items: center; justify-content: space-between;
    }
    .stripe-header-left { display: flex; align-items: center; gap: 14px; }
    .stripe-logo {
      background: white; border-radius: 10px;
      width: 44px; height: 44px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.3rem;
    }
    .stripe-header-text .s-merchant {
      font-weight: 800; font-size: 1rem; color: white;
    }
    .stripe-header-text .s-amount {
      font-size: 1.6rem; font-weight: 800; color: white; line-height: 1.1;
    }
    .stripe-header-text .s-desc {
      font-size: 0.75rem; color: rgba(255,255,255,.7); margin-top: 2px;
    }
    .stripe-secure-badge {
      display: flex; align-items: center; gap: 5px;
      background: rgba(255,255,255,.15); border-radius: 100px;
      padding: 5px 12px; font-size: 0.7rem; color: white; font-weight: 700;
    }
    /* Stripe body */
    .stripe-body { padding: 24px 28px 28px; }
    .stripe-section-title {
      font-size: 0.72rem; font-weight: 800; color: #6b7280;
      text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
    }
    /* Card tabs */
    .stripe-pay-tabs {
      display: flex; gap: 6px; margin-bottom: 18px;
    }
    .stripe-tab {
      flex: 1; padding: 10px 6px;
      border: 2px solid #e5e7eb; border-radius: 10px;
      background: white; cursor: pointer;
      font-family: 'DM Sans', sans-serif; font-size: 0.78rem; font-weight: 700;
      color: #6b7280; text-align: center; transition: all 0.2s;
      display: flex; flex-direction: column; align-items: center; gap: 4px;
    }
    .stripe-tab:hover { border-color: #635bff; color: #635bff; }
    .stripe-tab.active { border-color: #635bff; background: #f5f3ff; color: #635bff; }
    .stripe-tab .tab-icon { font-size: 1.1rem; }
    /* Card input group */
    .stripe-input-group { margin-bottom: 14px; }
    .stripe-input-group label {
      display: block; font-size: 0.72rem; font-weight: 700; color: #374151;
      margin-bottom: 5px;
    }
    .stripe-input {
      width: 100%; padding: 11px 14px;
      border: 1.5px solid #d1d5db; border-radius: 10px;
      font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: #111827;
      background: #f9fafb; transition: border 0.2s;
      outline: none;
    }
    .stripe-input:focus { border-color: #635bff; background: white; box-shadow: 0 0 0 3px rgba(99,91,255,.1); }
    .stripe-input::placeholder { color: #9ca3af; }
    .stripe-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    /* Card number with brand icon */
    .stripe-card-wrap { position: relative; }
    .stripe-card-wrap .card-brand {
      position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
      font-size: 1.1rem; pointer-events: none;
    }
    .stripe-card-wrap .stripe-input { padding-right: 44px; }
    /* CVC helper */
    .stripe-cvc-wrap { position: relative; }
    .stripe-cvc-wrap .cvc-icon {
      position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
      font-size: 0.8rem; color: #9ca3af; pointer-events: none;
    }
    /* Summary box */
    .stripe-summary {
      background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px;
      padding: 14px 16px; margin-bottom: 18px;
    }
    .stripe-summary-row {
      display: flex; justify-content: space-between; align-items: center;
      font-size: 0.82rem; color: #374151; padding: 3px 0;
    }
    .stripe-summary-row.total {
      font-weight: 800; font-size: 0.95rem; color: #111827;
      border-top: 1px solid #e5e7eb; margin-top: 8px; padding-top: 10px;
    }
    .stripe-summary-row .s-label { color: #6b7280; }
    /* Pay button */
    .stripe-pay-btn {
      width: 100%; padding: 15px; border: none; border-radius: 12px;
      background: linear-gradient(135deg, #635bff, #4f46e5);
      color: white; font-family: 'DM Sans', sans-serif;
      font-weight: 800; font-size: 1rem; cursor: pointer;
      transition: all 0.2s; min-height: 52px;
      display: flex; align-items: center; justify-content: center; gap: 10px;
      box-shadow: 0 4px 16px rgba(99,91,255,.35);
    }
    .stripe-pay-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,91,255,.45); }
    .stripe-pay-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
    .stripe-pay-btn .btn-lock { font-size: 0.9rem; }
    /* Apple/Google pay buttons */
    .stripe-express-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
    .stripe-express-btn {
      padding: 12px; border: 1.5px solid #d1d5db; border-radius: 10px;
      background: white; cursor: pointer; font-size: 1rem;
      display: flex; align-items: center; justify-content: center; gap: 6px;
      font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.82rem;
      transition: all 0.2s; color: #111827; min-height: 46px;
    }
    .stripe-express-btn:hover { border-color: #635bff; background: #f5f3ff; }
    .stripe-divider {
      display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
    }
    .stripe-divider hr { flex: 1; border: none; border-top: 1px solid #e5e7eb; }
    .stripe-divider span { font-size: 0.72rem; color: #9ca3af; font-weight: 700; white-space: nowrap; }
    /* Terms & Stripe branding */
    .stripe-footer {
      text-align: center; font-size: 0.68rem; color: #9ca3af;
      margin-top: 14px; line-height: 1.6;
    }
    .stripe-footer a { color: #635bff; text-decoration: none; }
    .stripe-powered {
      display: flex; align-items: center; justify-content: center; gap: 5px;
      margin-top: 8px; font-size: 0.7rem; color: #9ca3af;
    }
    .stripe-powered .stripe-wordmark {
      font-weight: 900; color: #635bff; font-size: 0.78rem; letter-spacing: -0.02em;
    }
    /* Processing overlay */
    .stripe-processing {
      display: none; flex-direction: column; align-items: center;
      justify-content: center; padding: 48px 28px; text-align: center;
    }
    .stripe-processing.show { display: flex; }
    .stripe-processing .proc-spinner {
      width: 52px; height: 52px; border: 4px solid #e5e7eb;
      border-top-color: #635bff; border-radius: 50%;
      animation: spin 0.8s linear infinite; margin-bottom: 18px;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .stripe-processing .proc-title { font-weight: 800; font-size: 1.1rem; color: #111827; margin-bottom: 6px; }
    .stripe-processing .proc-sub   { font-size: 0.82rem; color: #6b7280; }
    /* Success screen */
    .stripe-success {
      display: none; flex-direction: column; align-items: center;
      justify-content: center; padding: 40px 28px; text-align: center;
    }
    .stripe-success.show { display: flex; }
    .stripe-success .success-ring {
      width: 72px; height: 72px; border-radius: 50%;
      background: linear-gradient(135deg, #10b981, #059669);
      display: flex; align-items: center; justify-content: center;
      font-size: 2rem; margin-bottom: 18px;
      box-shadow: 0 8px 24px rgba(16,185,129,.3);
      animation: successPop 0.5s cubic-bezier(.22,.68,0,1.4) forwards;
    }
    @keyframes successPop { from{transform:scale(0)} to{transform:scale(1)} }
    .stripe-success .succ-title { font-weight: 800; font-size: 1.3rem; color: #111827; margin-bottom: 8px; }
    .stripe-success .succ-sub   { font-size: 0.85rem; color: #6b7280; line-height: 1.6; margin-bottom: 6px; }
    .stripe-success .succ-ref   { font-size: 0.7rem; color: #9ca3af; font-family: monospace; }
    .stripe-success .succ-btn {
      margin-top: 22px; width: 100%; padding: 14px;
      background: linear-gradient(135deg, #635bff, #4f46e5);
      color: white; border: none; border-radius: 12px;
      font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 1rem;
      cursor: pointer; min-height: 50px; transition: all 0.2s;
    }
    .stripe-success .succ-btn:hover { transform: translateY(-1px); }
    /* Close X */
    .stripe-close-x {
      background: rgba(255,255,255,.2); border: none; border-radius: 50%;
      width: 32px; height: 32px; cursor: pointer; color: white; font-size: 1rem;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0; transition: background 0.2s;
    }
    .stripe-close-x:hover { background: rgba(255,255,255,.35); }
    /* Slice unlock success banner in dashboard */
    .slice-unlock-banner {
      display: none; align-items: center; gap: 14px;
      background: linear-gradient(135deg, rgba(99,91,255,.1), rgba(16,185,129,.08));
      border: 1px solid rgba(99,91,255,.3); border-radius: var(--radius-lg);
      padding: 16px 20px; margin-bottom: 20px; animation: slideUp 0.4s ease;
    }
    .slice-unlock-banner.show { display: flex; }
    .slice-unlock-banner .sub-icon { font-size: 1.8rem; flex-shrink: 0; }
    .slice-unlock-banner .sub-text { flex: 1; }
    .slice-unlock-banner .sub-title { font-weight: 800; color: #635bff; font-size: 0.92rem; }
    .slice-unlock-banner .sub-desc  { font-size: 0.78rem; color: rgba(255,255,255,.6); margin-top: 3px; }

    /* HQ Notification Banner (dashboard top) */
    .hq-notification-bar {
      background: linear-gradient(135deg, rgba(249,115,22,.08), rgba(168,85,247,.08));
      border: 1px solid rgba(249,115,22,.2); border-radius: var(--radius-lg);
      padding: 16px 20px; margin-bottom: 20px;
      display: flex; align-items: center; gap: 14px;
      cursor: pointer; transition: all 0.25s;
    }
    .hq-notification-bar:hover { border-color: var(--orange-500); transform: translateY(-2px); }
    .hq-notification-bar .hnb-icon {
      width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
      background: linear-gradient(135deg, var(--orange-600), var(--purple-500));
      display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
    }
    .hq-notification-bar .hnb-text { flex: 1; }
    .hq-notification-bar .hnb-title { font-weight: 800; font-size: 0.88rem; color: var(--orange-500); }
    .hq-notification-bar .hnb-msg { font-size: 0.8rem; color: rgba(255,255,255,.6); margin-top: 2px; }
    .hq-notification-bar .hnb-dismiss {
      background: none; border: none; color: var(--silver); cursor: pointer;
      font-size: 1rem; padding: 4px; border-radius: 8px;
      width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    }
    .hq-notification-bar .hnb-dismiss:hover { background: rgba(255,255,255,.1); }
