    * { box-sizing: border-box; margin: 0; padding: 0; }
    .hidden { display: none !important; }

    :root {
      --teal: #00a693;
      --teal-dark: #008a79;
      --teal-light: #e6f7f5;
      --bg: #0f1623;
      --bg-card: #1a2336;
      --bg-inner: #212d42;
      --border: rgba(255,255,255,0.1);
      --border-light: rgba(255,255,255,0.07);
      --text: #ffffff;
      --muted: #8b9ab5;
      --radius: 14px;
    }

    /* ── LIGHT THEME ── */
    [data-theme="light"] {
      --bg: #f0f4f8;
      --bg-card: #ffffff;
      --bg-inner: #e8edf3;
      --border: rgba(0,0,0,0.1);
      --border-light: rgba(0,0,0,0.06);
      --text: #0f1623;
      --muted: #64748b;
    }
    /* System preference: light (no forced theme set) */
    @media (prefers-color-scheme: light) {
      :root:not([data-theme="dark"]):not([data-theme="light"]) {
        --bg: #f0f4f8;
        --bg-card: #ffffff;
        --bg-inner: #e8edf3;
        --border: rgba(0,0,0,0.1);
        --border-light: rgba(0,0,0,0.06);
        --text: #0f1623;
        --muted: #64748b;
      }
    }
    /* Light mode: fix hardcoded dark values */
    [data-theme="light"] .phone-mockup { background: #dde3ec; border-color: rgba(0,0,0,0.15); }
    [data-theme="light"] .phone-notch { background: rgba(0,0,0,0.2); }
    [data-theme="light"] .modal-overlay { background: rgba(0,0,0,0.4); }
    @media (prefers-color-scheme: light) {
      :root:not([data-theme="dark"]):not([data-theme="light"]) .phone-mockup { background: #dde3ec; border-color: rgba(0,0,0,0.15); }
      :root:not([data-theme="dark"]):not([data-theme="light"]) .phone-notch { background: rgba(0,0,0,0.2); }
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* ── HEADER ── */
    header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 32px;
      border-bottom: 1px solid var(--border);
      background: var(--bg);
    }
    .logo {
      display: flex;
      align-items: center;
      gap: 0;
      background: var(--bg-card);
      border: 2px solid var(--border);
      border-radius: 50px;
      overflow: hidden;
      cursor: pointer;
      transition: border-color 0.2s;
    }
    .logo:hover { border-color: var(--teal); }
    .logo-img { width: 52px; height: 52px; object-fit: cover; display: block; flex-shrink: 0; }
    .logo-divider {
      width: 1px;
      height: 32px;
      background: var(--border);
      flex-shrink: 0;
    }
    .logo-text {
      font-size: 16px;
      font-weight: 800;
      color: var(--text);
      letter-spacing: -0.3px;
      padding: 0 16px;
      white-space: nowrap;
    }
    .logo-text span { color: var(--teal); }
    .ai-badge {
      background: rgba(0,166,147,0.15);
      color: var(--teal);
      font-size: 11px;
      font-weight: 600;
      padding: 3px 9px;
      border-radius: 20px;
      border: 1px solid rgba(0,166,147,0.3);
    }
    .header-tagline {
      flex: 1;
      text-align: center;
      font-size: 24px;
      font-weight: 800;
      letter-spacing: -0.5px;
      color: var(--text);
      display: none;
    }
    .header-tagline span { color: var(--teal); }
    @media (max-width: 1099px) {
      .logo-text, .logo-divider { display: none; }
      #shareAppBtn { display: none; }
      #themeToggle { display: none; }
    }
    @media (min-width: 1100px) {
      .header-tagline { display: block; }
      .hero { display: none; }
    }

    .btn-share {
      background: transparent;
      border: 1.5px solid var(--border);
      color: var(--muted);
      border-radius: 8px;
      padding: 7px 14px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      margin-left: 4px;
    }
    .btn-share:hover { border-color: var(--teal); color: var(--teal); }
    /* Hide hero offer badge on desktop — it shows in the left sidebar instead */
    @media (min-width: 1100px) { .hero-offer-badge { display: none !important; } }

    nav {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    nav a {
      color: var(--muted);
      text-decoration: none;
      font-size: 14px;
      font-weight: 500;
      padding: 6px 14px;
      border-radius: 8px;
      transition: color 0.2s;
    }
    nav a:hover { color: var(--text); }
    nav a.active { color: var(--text); }
    .btn-login {
      background: var(--teal);
      color: white;
      border: none;
      border-radius: 8px;
      padding: 8px 18px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s;
      margin-left: 4px;
    }
    .btn-login:hover { background: var(--teal-dark); }

    /* ── HERO ── */
    .hero {
      text-align: center;
      padding: 16px 20px 10px;
    }
    .offer-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255,165,0,0.1);
      border: 1px solid rgba(255,165,0,0.3);
      color: #ffa500;
      font-size: 13px;
      font-weight: 600;
      padding: 7px 16px;
      border-radius: 30px;
      margin-bottom: 24px;
    }
    .hero h1 {
      font-size: clamp(32px, 5vw, 52px);
      font-weight: 800;
      letter-spacing: -1px;
      line-height: 1.1;
      margin-bottom: 16px;
    }
    .hero h1 span { color: var(--teal); }
    .hero p {
      font-size: 17px;
      color: var(--muted);
      max-width: 440px;
      margin: 0 auto;
    }
    @keyframes snappy-float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }
    .snappy-loading-img {
      width: 80px;
      height: 80px;
      object-fit: contain;
      margin: 0 auto 12px;
      display: block;
      animation: snappy-float 1.2s ease-in-out infinite;
    }

    /* ── MAIN CARD ── */
    .main-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 20px;
      max-width: 800px;
      margin: 0 auto 60px;
      width: calc(100% - 32px);
      overflow: hidden;
    }
    .card-header {
      text-align: center;
      padding: 22px 24px 18px;
      border-bottom: 1px solid var(--border-light);
      font-size: 16px;
      font-weight: 600;
      color: var(--text);
    }
    .card-body {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0;
      align-items: stretch;
    }
    @media (min-width: 600px) {
      .card-body { grid-template-columns: 1fr 1fr; }
    }
    .panel {
      padding: 20px 16px;
      box-sizing: border-box;
    }
    @media (min-width: 600px) {
      .panel { padding: 24px; }
    }
    @media (min-width: 1100px) {
      .panel { min-height: 340px; }
    }
    .panel:first-child {
      border-right: none;
      border-bottom: 1px solid var(--border-light);
    }
    @media (min-width: 600px) {
      .panel:first-child { border-bottom: none; border-right: 1px solid var(--border-light); }
    }
    .panel-title {
      font-size: 15px;
      font-weight: 700;
      text-align: center;
      margin-bottom: 18px;
      color: var(--text);
    }

    /* Mobile share strip (between main card and catalogue) */
    .mobile-share-strip {
      display: block;
      padding: 0 16px 16px;
    }
    @media (min-width: 1100px) {
      .mobile-share-strip { display: none; }
    }

    /* Mobile-only leaderboard button in header */
    .btn-leaderboard-mobile {
      background: linear-gradient(135deg, #f59e0b, #d97706);
      color: white;
      border: none;
      border-radius: 8px;
      padding: 7px 12px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: opacity 0.2s;
      margin-left: 4px;
    }
    .btn-leaderboard-mobile:hover { opacity: 0.9; }
    @media (min-width: 1100px) {
      .btn-leaderboard-mobile { display: none; }
    }

    /* Photo tips panel */
    .tip-row {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      font-size: 13px;
      color: var(--muted);
      padding: 7px 0;
      border-bottom: 1px solid var(--border-light);
      line-height: 1.4;
    }
    .tip-row:last-child { border-bottom: none; }
    .tips-listings-left {
      margin-top: 16px;
      background: var(--bg-inner);
      border-radius: 10px;
      padding: 12px 14px;
    }
    .tl-label { font-size: 12px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
    .tl-bar-wrap { background: var(--border); border-radius: 4px; height: 6px; margin-bottom: 6px; overflow: hidden; }
    .tl-bar { height: 100%; border-radius: 4px; background: var(--teal); transition: width 0.4s; }
    .tl-count { font-size: 13px; font-weight: 700; color: var(--text); }

    /* Trending dropdown */
    .trending-select {
      width: 100%;
      background: var(--bg-inner);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 7px 10px;
      color: var(--text);
      font-size: 13px;
      font-family: inherit;
      margin-bottom: 10px;
      cursor: pointer;
      outline: none;
    }
    .trending-select:focus { border-color: var(--teal); }

    /* Trending list */
    .trending-item {
      font-size: 13px;
      color: var(--muted);
      padding: 7px 0;
      border-bottom: 1px solid var(--border-light);
    }
    .trending-item:last-child { border-bottom: none; }

    /* Upload panel */
    .jacket-icon {
      text-align: center;
      font-size: 72px;
      margin-bottom: 14px;
      line-height: 1;
    }
    .upload-step {
      font-size: 13px;
      font-weight: 600;
      color: var(--muted);
      text-align: center;
      margin-bottom: 14px;
    }
    .drop-zone {
      background: var(--bg-inner);
      border: 1.5px dashed rgba(255,255,255,0.15);
      border-radius: 12px;
      padding: 24px 16px;
      text-align: center;
      cursor: pointer;
      position: relative;
      transition: all 0.2s;
    }
    .drop-zone:hover, .drop-zone.dragover {
      border-color: var(--teal);
      background: rgba(0,166,147,0.08);
    }
    @media (max-width: 599px) {
      .drop-zone { padding: 14px 8px; }
      .drop-zone .dz-title { font-size: 12px; }
      .drop-zone .dz-sub { font-size: 10px; }
      .btn-camera { padding: 9px; font-size: 12px; }
      .tip-item { padding: 8px 6px; font-size: 11px; }
      .tips-grid { gap: 6px; }
      .bulk-divider, .btn-bulk { display: none; }
    }
    /* Desktop upload boxes */
    .desktop-upload-boxes { display: none; }
    .mobile-upload-boxes { display: block; }
    @media (min-width: 1100px) {
      .desktop-upload-boxes { display: flex; flex-direction: column; gap: 10px; }
      .mobile-upload-boxes { display: none; }
    }
    .btn-browse {
      width: 100%;
      background: var(--teal);
      color: white;
      border: none;
      border-radius: 10px;
      padding: 12px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: opacity 0.2s;
    }
    .btn-browse:hover { opacity: 0.88; }
    .drop-zone input[type="file"] {
      position: absolute;
      inset: 0;
      opacity: 0;
      cursor: pointer;
      width: 100%;
      height: 100%;
    }
    .drop-zone .dz-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 4px;
    }
    .drop-zone .dz-sub {
      font-size: 12px;
      color: var(--muted);
    }

    .or-divider {
      text-align: center;
      color: var(--muted);
      font-size: 13px;
      margin: 12px 0;
      position: relative;
    }
    .or-divider::before, .or-divider::after {
      content: '';
      position: absolute;
      top: 50%;
      width: 42%;
      height: 1px;
      background: var(--border);
    }
    .or-divider::before { left: 0; }
    .or-divider::after { right: 0; }

    .btn-camera {
      width: 100%;
      background: var(--bg-inner);
      border: 1.5px solid var(--border);
      color: var(--text);
      border-radius: 12px;
      padding: 13px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }
    .btn-camera:hover {
      border-color: var(--teal);
      color: var(--teal);
      background: rgba(0,166,147,0.08);
    }

    /* Phone/QR panel */
    .phone-wrap {
      display: flex;
      justify-content: center;
      margin-bottom: 14px;
    }
    .phone-mockup {
      background: #1c1c1e;
      border: 2px solid rgba(255,255,255,0.15);
      border-radius: 24px;
      padding: 12px;
      width: 160px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.4);
      position: relative;
    }
    .phone-notch {
      width: 50px;
      height: 6px;
      background: rgba(255,255,255,0.15);
      border-radius: 3px;
      margin: 0 auto 10px;
    }
    .phone-mockup img {
      width: 100%;
      border-radius: 10px;
      display: block;
    }
    .phone-copy {
      font-size: 12px;
      color: var(--muted);
      text-align: center;
      line-height: 1.6;
    }
    .phone-copy .url {
      color: var(--teal);
      font-size: 11px;
      word-break: break-all;
    }

    /* ── PREVIEW & GENERATE ── */
    .preview-section {
      display: none;
      padding: 0 24px 24px;
    }
    .preview-section.show { display: block; }
    .preview-inner {
      position: relative;
      margin-bottom: 16px;
    }
    .preview-inner img {
      width: 100%;
      max-height: 280px;
      object-fit: contain;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: var(--bg-inner);
    }
    .preview-remove {
      position: absolute;
      top: 10px;
      right: 10px;
      background: rgba(0,0,0,0.7);
      color: white;
      border: none;
      border-radius: 50%;
      width: 30px;
      height: 30px;
      font-size: 14px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .btn-generate {
      width: 100%;
      background: var(--teal);
      color: white;
      border: none;
      border-radius: 12px;
      padding: 15px;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s;
    }
    .btn-generate:hover { background: var(--teal-dark); }
    .btn-generate:disabled { background: #2a3a50; color: var(--muted); cursor: not-allowed; }

    /* ── MULTI-PHOTO STRIP ── */
    .photo-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
    .photo-thumb { position: relative; width: 90px; height: 90px; border-radius: 10px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--border); background: var(--bg-inner); }
    .photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .photo-thumb-remove { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.75); color: white; border: none; border-radius: 50%; width: 22px; height: 22px; font-size: 11px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; }
    .photo-add-more { width: 90px; height: 90px; border-radius: 10px; border: 2px dashed var(--border); display: flex; align-items: center; justify-content: center; font-size: 26px; cursor: pointer; color: var(--muted); background: var(--bg-inner); transition: border-color 0.2s, color 0.2s; flex-shrink: 0; }
    .photo-add-more:hover { border-color: var(--teal); color: var(--teal); }

    /* ── CAMERA MORE-PHOTOS BANNER ── */
    .camera-more-banner { background: var(--bg-inner); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; text-align: center; }
    .camera-more-banner p { font-size: 14px; margin: 0 0 10px; color: var(--fg); }
    .camera-more-banner .banner-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
    .btn-add-more { background: var(--teal); color: white; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
    .btn-skip-more { background: var(--bg-inner); color: var(--muted); border: 1px solid var(--border); border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }

    /* ── CATALOGUE VIEW MODAL ── */
    .cat-view-modal { max-width: 560px; width: 100%; max-height: 92vh; overflow-y: auto; position: relative; padding: 0; }
    .cat-view-modal .modal-card-inner { padding: 24px; }
    .cat-view-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
    .cat-view-header h2 { font-size: 16px; font-weight: 700; margin: 0; }
    .cat-view-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); line-height: 1; padding: 0; flex-shrink: 0; }
    .cat-view-price-banner { background: var(--bg-inner); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; margin-bottom: 14px; }
    .cat-view-plabel { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
    .cat-view-pvalue { font-size: 28px; font-weight: 800; color: var(--teal); }
    .cat-btn.view { border-color: rgba(20,184,166,0.4); color: var(--teal); }
    .cat-btn.view:hover { background: rgba(20,184,166,0.1); }
    .cv-mktbtn { flex:1; background:var(--bg-inner); border:1px solid var(--border); color:var(--text); border-radius:10px; padding:11px; font-size:13px; font-weight:600; cursor:pointer; transition:all 0.2s; }

    /* ── COPY TOAST ── */
    .copy-toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); background: #1e293b; color: #e2e8f0; border: 1px solid rgba(20,184,166,0.5); border-radius: 10px; padding: 11px 20px; font-size: 13px; font-weight: 500; z-index: 9999; opacity: 0; transition: opacity 0.3s, transform 0.3s; pointer-events: none; max-width: 320px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

    /* ── LOADING ── */
    .loading {
      display: none;
      text-align: center;
      padding: 40px 24px;
    }
    .loading.show { display: block; }
    .spinner {
      width: 44px;
      height: 44px;
      border: 3px solid var(--border);
      border-top-color: var(--teal);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      margin: 0 auto 16px;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .loading p { color: var(--muted); font-size: 15px; }

    /* ── ERROR ── */
    .error-box {
      display: none;
      margin: 0 24px 24px;
      background: rgba(220,38,38,0.1);
      border: 1px solid rgba(220,38,38,0.3);
      border-radius: 12px;
      padding: 14px 16px;
      color: #f87171;
      font-size: 14px;
    }
    .error-box.show { display: block; }

    /* ── RESULTS ── */
    .results {
      display: none;
      padding: 24px;
    }
    .results.show { display: block; }

    .results-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
    }
    .results-top h2 { font-size: 18px; font-weight: 700; }
    .btn-reset {
      background: var(--bg-inner);
      border: 1px solid var(--border);
      color: var(--muted);
      border-radius: 8px;
      padding: 7px 14px;
      font-size: 13px;
      cursor: pointer;
      transition: all 0.15s;
    }
    .btn-reset:hover { color: var(--text); border-color: var(--teal); }

    .price-banner {
      background: linear-gradient(135deg, var(--teal), var(--teal-dark));
      border-radius: 12px;
      padding: 18px 20px;
      text-align: center;
      margin-bottom: 16px;
    }
    .price-banner .plabel { font-size: 12px; opacity: 0.8; margin-bottom: 4px; }
    .price-banner .pvalue { font-size: 40px; font-weight: 800; }
    .price-banner .psub { font-size: 12px; opacity: 0.7; margin-top: 2px; }

    .fields-card {
      background: var(--bg-inner);
      border: 1px solid var(--border);
      border-radius: 14px;
      overflow: hidden;
      margin-bottom: 16px;
    }
    .field {
      padding: 13px 16px;
      border-bottom: 1px solid var(--border-light);
    }
    .field:last-child { border-bottom: none; }
    .field-label {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      color: var(--muted);
      margin-bottom: 5px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .field-value {
      font-size: 14px;
      color: var(--text);
      line-height: 1.5;
    }
    .field-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
    }
    .field-row .field:first-child {
      border-right: 1px solid var(--border-light);
    }
    .copy-btn {
      background: rgba(255,255,255,0.07);
      border: none;
      border-radius: 5px;
      padding: 3px 9px;
      font-size: 11px;
      color: var(--muted);
      cursor: pointer;
      transition: all 0.15s;
    }
    .copy-btn:hover { background: rgba(0,166,147,0.2); color: var(--teal); }
    .copy-btn.copied { background: var(--teal); color: white; }

    .hashtags-wrap {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 4px;
    }
    .hashtag {
      background: rgba(0,166,147,0.15);
      color: var(--teal);
      border: 1px solid rgba(0,166,147,0.25);
      font-size: 12px;
      font-weight: 500;
      padding: 3px 10px;
      border-radius: 20px;
    }

    .copy-all-btn {
      width: 100%;
      background: transparent;
      border: 2px solid var(--teal);
      color: var(--teal);
      border-radius: 12px;
      padding: 13px;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s;
      margin-bottom: 10px;
    }
    .copy-all-btn:hover { background: var(--teal); color: white; }

    .new-btn {
      width: 100%;
      background: var(--teal);
      color: white;
      border: none;
      border-radius: 12px;
      padding: 13px;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s;
    }
    .new-btn:hover { background: var(--teal-dark); }

    /* ── SNAPPY ONBOARDING MODAL ── */
    .snappy-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.88);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      animation: fadeIn 0.3s ease;
    }
    .snappy-overlay.hidden { display: none; }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

    .snappy-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 24px;
      width: 100%;
      max-width: 440px;
      padding: 36px 32px 28px;
      position: relative;
      overflow: hidden;
    }

    .snappy-mascot {
      display: flex;
      justify-content: center;
      margin-bottom: 8px;
    }
    .snappy-mascot img {
      height: 130px;
      width: auto;
      object-fit: contain;
      filter: drop-shadow(0 8px 24px rgba(0,166,147,0.2));
    }

    .snappy-bubble {
      background: var(--bg-inner);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 14px 18px;
      font-size: 15px;
      font-weight: 500;
      color: var(--text);
      line-height: 1.55;
      margin-bottom: 24px;
      position: relative;
      text-align: center;
    }
    .snappy-bubble::before {
      content: '';
      position: absolute;
      top: -10px;
      left: 50%;
      transform: translateX(-50%);
      border: 10px solid transparent;
      border-bottom-color: var(--border);
      border-top: none;
    }
    .snappy-bubble::after {
      content: '';
      position: absolute;
      top: -8px;
      left: 50%;
      transform: translateX(-50%);
      border: 9px solid transparent;
      border-bottom-color: var(--bg-inner);
      border-top: none;
    }

    .snappy-slide { display: none; }
    .snappy-slide.active { display: block; }

    .snappy-field {
      margin-bottom: 14px;
    }
    .snappy-field label {
      display: block;
      font-size: 12px;
      font-weight: 600;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 6px;
    }
    .snappy-field input {
      width: 100%;
      background: var(--bg-inner);
      border: 1.5px solid var(--border);
      border-radius: 10px;
      padding: 12px 14px;
      font-size: 15px;
      color: var(--text);
      outline: none;
      transition: border-color 0.2s;
    }
    .snappy-field input:focus { border-color: var(--teal); }
    .snappy-field input::placeholder { color: var(--muted); }

    .snappy-field input.error { border-color: #f87171; }

    .freq-options {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .freq-option {
      background: var(--bg-inner);
      border: 1.5px solid var(--border);
      border-radius: 12px;
      padding: 14px 16px;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .freq-option:hover { border-color: var(--teal); }
    .freq-option.selected {
      border-color: var(--teal);
      background: rgba(0,166,147,0.1);
    }
    .freq-option .freq-icon { font-size: 22px; }
    .freq-option .freq-label {
      font-size: 14px;
      font-weight: 600;
      color: var(--text);
    }
    .freq-option .freq-sub {
      font-size: 12px;
      color: var(--muted);
      margin-top: 2px;
    }
    .freq-note {
      font-size: 11px;
      color: var(--muted);
      text-align: center;
      margin-top: 10px;
    }

    .pricing-card {
      background: var(--bg-inner);
      border: 1px solid var(--border);
      border-radius: 14px;
      overflow: hidden;
      margin-bottom: 14px;
    }
    .pricing-row {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 14px 16px;
      border-bottom: 1px solid var(--border-light);
    }
    .pricing-row:last-child { border-bottom: none; }
    .pricing-icon { font-size: 22px; }
    .pricing-label { font-size: 14px; font-weight: 600; color: var(--text); }
    .pricing-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
    .pricing-free {
      margin-left: auto;
      background: rgba(0,166,147,0.15);
      color: var(--teal);
      border: 1px solid rgba(0,166,147,0.3);
      font-size: 12px;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 20px;
      white-space: nowrap;
    }
    .pricing-tbd {
      margin-left: auto;
      background: rgba(255,165,0,0.1);
      color: #ffa500;
      border: 1px solid rgba(255,165,0,0.3);
      font-size: 12px;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: 20px;
      white-space: nowrap;
    }

    .snappy-progress {
      display: flex;
      justify-content: center;
      gap: 7px;
      margin-bottom: 20px;
    }
    .snappy-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--border);
      transition: all 0.3s;
    }
    .snappy-dot.active {
      background: var(--teal);
      width: 22px;
      border-radius: 4px;
    }
    .snappy-dot.done { background: rgba(0,166,147,0.4); }

    .snappy-actions {
      display: flex;
      gap: 10px;
      margin-top: 20px;
    }
    .snappy-btn-back {
      flex: 0 0 auto;
      background: var(--bg-inner);
      border: 1.5px solid var(--border);
      color: var(--muted);
      border-radius: 10px;
      padding: 12px 18px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }
    .snappy-btn-back:hover { color: var(--text); border-color: var(--teal); }
    .snappy-btn-next {
      flex: 1;
      background: var(--teal);
      border: none;
      color: white;
      border-radius: 10px;
      padding: 13px;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s;
    }
    .snappy-btn-next:hover { background: var(--teal-dark); }
    .snappy-btn-next:disabled { background: #2a3a50; color: var(--muted); cursor: not-allowed; }

    .snappy-error {
      background: rgba(220,38,38,0.1);
      border: 1px solid rgba(220,38,38,0.3);
      border-radius: 8px;
      padding: 10px 14px;
      color: #f87171;
      font-size: 13px;
      margin-top: 12px;
      display: none;
    }
    .snappy-error.show { display: block; }

    /* ── MARKETPLACE SELECTOR ── */
    .mkt-option {
      background: var(--bg-inner);
      border: 1.5px solid var(--border);
      border-radius: 10px;
      padding: 11px 14px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 10px;
      transition: all 0.15s;
    }
    .mkt-option:hover { border-color: var(--teal); }
    .mkt-option.selected { border-color: var(--teal); background: rgba(0,166,147,0.1); }
    .mkt-icon { font-size: 18px; flex-shrink: 0; }
    .mkt-label { font-size: 13px; font-weight: 600; }

    /* ── ANALYTICS STRIP ── */
    .analytics-strip {
      max-width: 800px;
      margin: 0 auto 16px;
      width: calc(100% - 32px);
      display: none;
    }
    .analytics-strip.show { display: block; }
    .analytics-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
    }
    @media (max-width: 480px) { .analytics-grid { grid-template-columns: repeat(2, 1fr); } }
    .analytics-tile {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 14px 16px;
      cursor: pointer;
      transition: border-color 0.2s;
    }
    .analytics-tile:hover { border-color: var(--teal); }
    .analytics-tile-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin-bottom: 6px; }
    .analytics-tile-value { font-size: 22px; font-weight: 800; color: var(--text); }
    .analytics-tile-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }

    /* ── ANALYTICS MODAL ── */
    .analytics-card { max-width: 480px; }
    .analytics-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
    .analytics-modal-tile { background: var(--bg-inner); border-radius: 12px; padding: 16px; }
    .analytics-modal-tile-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 6px; }
    .analytics-modal-tile-value { font-size: 24px; font-weight: 800; }
    .analytics-modal-tile-value.teal { color: var(--teal); }
    .analytics-modal-tile-value.gold { color: #fbbf24; }
    .analytics-modal-tile-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

    /* ── REFERRAL BANNER ── */
    .referral-banner {
      max-width: 800px;
      margin: 0 auto 16px;
      width: calc(100% - 32px);
      background: linear-gradient(135deg, rgba(0,166,147,0.12), rgba(0,166,147,0.05));
      border: 1px solid rgba(0,166,147,0.3);
      border-radius: 14px;
      padding: 16px 20px;
      display: none;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }
    .referral-banner.show { display: flex; }
    .referral-banner-text { flex: 1; min-width: 160px; }
    .referral-banner-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
    .referral-banner-sub { font-size: 12px; color: var(--muted); }
    .referral-banner-code { font-size: 18px; font-weight: 800; letter-spacing: 2px; color: var(--teal); flex-shrink: 0; }
    .referral-banner-btn { background: var(--teal); color: white; border: none; border-radius: 8px; padding: 9px 18px; font-size: 13px; font-weight: 700; cursor: pointer; flex-shrink: 0; transition: background 0.2s; }
    .referral-banner-btn:hover { background: var(--teal-dark); }

    /* ── CATALOGUE ── */
    .catalogue-section {
      max-width: 800px;
      margin: 0 auto 40px;
      width: calc(100% - 32px);
      display: none;
    }
    .catalogue-section.show { display: block; }
    .catalogue-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }
    .catalogue-title { font-size: 18px; font-weight: 700; }
    .catalogue-count { font-size: 13px; color: var(--muted); }
    .cat-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 14px 16px;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 14px;
      transition: border-color 0.2s;
    }
    .cat-card.expiring { border-color: rgba(251,191,36,0.5); background: rgba(251,191,36,0.03); }
    .cat-card.critical { border-color: rgba(255,107,107,0.5); background: rgba(255,107,107,0.03); }
    .cat-emoji { font-size: 26px; flex-shrink: 0; }
    .cat-info { flex: 1; min-width: 0; }
    .cat-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .cat-meta { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
    .cat-timer { font-size: 11px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 5px; }
    .cat-timer.warning { color: #fbbf24; }
    .cat-timer.critical { color: #ff6b6b; }
    .cat-timer-pulse {
      width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0;
      animation: pulse 1.4s infinite;
    }
    @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
    .cat-sold-badge { font-size: 11px; font-weight: 600; color: #4ade80; }
    .cat-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
    .cat-btn { background: var(--bg-inner); border: 1px solid var(--border); color: var(--muted); border-radius: 6px; padding: 5px 11px; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
    .cat-btn:hover { border-color: var(--teal); color: var(--teal); }
    .cat-btn.extend { border-color: rgba(251,191,36,0.5); color: #fbbf24; background: rgba(251,191,36,0.07); }
    .cat-btn.extend:hover { background: rgba(251,191,36,0.15); }
    .cat-btn.del { border-color: rgba(255,107,107,0.3); color: #ff6b6b; }
    .cat-btn.del:hover { background: rgba(255,107,107,0.1); }

    /* ── HOW IT WORKS ── */
    .how-it-works {
      display: flex;
      align-items: stretch;
      justify-content: center;
      gap: 8px;
      padding: 0 16px 20px;
      flex-wrap: wrap;
    }
    .hiw-step {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 10px;
      text-align: center;
      flex: 1 1 0;
      min-width: 80px;
      max-width: 120px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    .hiw-icon { font-size: 22px; margin-bottom: 4px; }
    .hiw-title { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
    .hiw-desc { font-size: 11px; color: var(--muted); line-height: 1.3; }
    .hiw-arrow { font-size: 20px; color: var(--muted); flex-shrink: 0; }
    @media (max-width: 480px) { .hiw-arrow { display: none; } }

    /* ── UPLOADS INDICATOR ── */
    .uploads-indicator {
      margin-bottom: 10px;
      display: none;
    }
    .uploads-indicator-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 6px;
    }
    .uploads-indicator-text { font-size: 12px; color: var(--muted); }
    .uploads-indicator-link { font-size: 11px; color: var(--teal); cursor: pointer; text-decoration: none; }

    /* ── FOOTER ── */
    footer {
      margin-top: auto;
      border-top: 1px solid var(--border);
      padding: 20px 32px;
      text-align: center;
      font-size: 13px;
      color: var(--muted);
    }
    footer a {
      color: var(--muted);
      text-decoration: none;
      margin: 0 10px;
    }
    footer a:hover { color: var(--teal); }
    .footer-links { margin-top: 8px; }

    /* ── CONSENT BANNER ── */
    .consent-banner {
      position: fixed; bottom: 0; left: 0; right: 0;
      background: var(--bg-card); border-top: 1px solid var(--border);
      padding: 16px 20px; z-index: 998;
      display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
      transform: translateY(100%); transition: transform 0.3s ease;
    }
    .consent-banner.show { transform: translateY(0); }
    .consent-text { flex: 1; font-size: 13px; color: var(--muted); min-width: 200px; }
    .consent-text a { color: var(--teal); }
    .consent-btn { background: var(--teal); color: white; border: none; border-radius: 8px; padding: 8px 20px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
    .consent-btn-outline { background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 8px; padding: 8px 16px; font-size: 13px; cursor: pointer; white-space: nowrap; }

    /* ── GDPR CHECKBOX ── */
    .snappy-checkbox { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; }
    .snappy-checkbox input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--teal); cursor: pointer; }
    .snappy-checkbox label { font-size: 13px; color: var(--muted); cursor: pointer; line-height: 1.5; }
    .snappy-checkbox label a { color: var(--teal); }

    /* ── INSTALL BANNER ── */
    .install-banner {
      position: fixed;
      bottom: 0; left: 0; right: 0;
      background: var(--bg-card);
      border-top: 1px solid var(--border);
      padding: 14px 20px;
      display: flex;
      align-items: center;
      gap: 12px;
      z-index: 999;
      transform: translateY(100%);
      transition: transform 0.3s ease;
    }
    .install-banner.show { transform: translateY(0); }
    .install-banner img { width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; }
    .install-banner-text { flex: 1; }
    .install-banner-title { font-size: 14px; font-weight: 700; }
    .install-banner-sub { font-size: 12px; color: var(--muted); }
    .install-btn { background: var(--teal); color: white; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
    .install-dismiss { background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; padding: 4px; flex-shrink: 0; }

    /* ── PHOTO TIPS ── */
    .tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
    .tip-item { background: var(--bg-inner); border-radius: 8px; padding: 12px; font-size: 13px; }
    .tip-icon { font-size: 20px; margin-bottom: 4px; }
    .tip-text { color: var(--muted); font-size: 12px; margin-top: 2px; }

    /* ── LISTING SCORE ── */
    .score-banner {
      display: flex; align-items: center; gap: 14px;
      background: var(--bg-inner); border-radius: 10px;
      padding: 14px 16px; margin-bottom: 16px;
      border: 1px solid var(--border);
    }
    .score-circle {
      width: 52px; height: 52px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 20px; font-weight: 800; flex-shrink: 0;
    }
    .score-high { background: rgba(74,222,128,0.15); color: #4ade80; border: 2px solid #4ade80; }
    .score-mid { background: rgba(251,191,36,0.15); color: #fbbf24; border: 2px solid #fbbf24; }
    .score-low { background: rgba(255,107,107,0.15); color: #ff6b6b; border: 2px solid #ff6b6b; }
    .score-label { font-size: 14px; font-weight: 700; }
    .score-tips { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }

    /* ── LEADERBOARD ── */
    .leaderboard-card { max-width: 420px; }
    .lb-row {
      display: flex; align-items: center; gap: 12px;
      padding: 10px 0; border-bottom: 1px solid var(--border-light);
    }
    .lb-row:last-child { border-bottom: none; }
    .lb-rank { width: 28px; text-align: center; font-weight: 800; font-size: 15px; color: var(--muted); flex-shrink: 0; }
    .lb-rank.gold { color: #fbbf24; }
    .lb-rank.silver { color: #94a3b8; }
    .lb-rank.bronze { color: #b45309; }
    .lb-name { flex: 1; font-size: 14px; font-weight: 600; }
    .lb-count { font-size: 13px; color: var(--teal); font-weight: 700; }

    /* ── VINTED GUIDE ── */
    .guide-card { max-width: 480px; max-height: 90vh; overflow-y: auto; }
    .guide-field {
      background: var(--bg-inner); border-radius: 8px;
      padding: 12px 14px; margin-bottom: 10px;
      display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
    }
    .guide-field-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
    .guide-field-value { font-size: 13px; color: var(--text); line-height: 1.5; }
    .guide-copy-btn { background: var(--bg-card); border: 1px solid var(--border); color: var(--muted); border-radius: 6px; padding: 5px 10px; font-size: 11px; font-weight: 600; cursor: pointer; flex-shrink: 0; transition: all 0.2s; white-space: nowrap; }
    .guide-copy-btn:hover { border-color: var(--teal); color: var(--teal); }
    .guide-step { font-size: 13px; color: var(--muted); margin-bottom: 14px; padding: 10px 14px; background: rgba(0,166,147,0.08); border-radius: 8px; border-left: 3px solid var(--teal); }

    /* ── NEWSLETTER ── */
    .newsletter-row { display: flex; gap: 8px; margin-top: 8px; }
    .newsletter-row input { flex: 1; background: var(--bg-inner); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; color: var(--text); font-size: 14px; outline: none; }
    .newsletter-row input:focus { border-color: var(--teal); }
    .newsletter-row button { background: var(--teal); color: white; border: none; border-radius: 8px; padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }

    /* ── EDITABLE FIELDS ── */
    .field-value[contenteditable="true"] {
      cursor: text;
      outline: none;
      border-radius: 6px;
      padding: 5px 7px;
      margin: -5px -7px;
      border: 1px solid transparent;
      transition: background 0.15s, border-color 0.15s;
    }
    .field-value[contenteditable="true"]:hover { background: rgba(255,255,255,0.04); }
    .field-value[contenteditable="true"]:focus { background: rgba(0,166,147,0.07); border-color: rgba(0,166,147,0.45); }
    .edit-hint { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 12px; }

    /* ── BULK UPLOAD ── */
    .bulk-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted); font-size: 12px; }
    .bulk-divider::before, .bulk-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
    .btn-bulk {
      width: 100%;
      background: transparent;
      border: 1px dashed rgba(0,166,147,0.4);
      border-radius: 10px;
      padding: 12px;
      color: var(--teal);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s, border-color 0.2s;
    }
    .btn-bulk:hover { background: rgba(0,166,147,0.06); border-color: var(--teal); }
    /* ── SMART GROUPING ── */
    .smart-group-panel { display: none; padding: 0 4px 24px; }
    .smart-group-panel.show { display: block; }
    .smart-group-header { margin-bottom: 16px; }
    .smart-group-header h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
    .smart-group-header p { font-size: 13px; color: var(--muted); line-height: 1.5; }
    .smart-group-analyzing { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--bg-inner); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
    .smart-group-analyzing.hidden { display: none; }
    .smart-group-spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--teal); border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; }
    .smart-group-card { background: var(--bg-card); border: 2px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 10px; transition: border-color 0.2s, background 0.2s; cursor: default; }
    .smart-group-card.is-drop-target { border-color: var(--teal); background: rgba(20,184,166,0.06); }
    .smart-group-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
    .smart-group-label { font-size: 13px; font-weight: 700; }
    .smart-group-photo-count { font-size: 12px; color: var(--muted); flex: 1; }
    .smart-group-split-btn { font-size: 11px; background: none; border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; color: var(--muted); cursor: pointer; }
    .smart-group-split-btn:hover { border-color: var(--teal); color: var(--teal); }
    .smart-group-thumbs { display: flex; gap: 8px; flex-wrap: wrap; min-height: 44px; align-items: center; }
    .smart-group-thumb { position: relative; width: 68px; height: 68px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; flex-shrink: 0; }
    .smart-group-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
    .smart-group-thumb.selected { border-color: var(--teal); transform: scale(1.1); box-shadow: 0 0 0 3px rgba(20,184,166,0.3); z-index: 1; }
    .smart-group-thumb:not(.selected):hover { border-color: rgba(20,184,166,0.5); }
    .smart-thumb-num { position: absolute; bottom: 2px; right: 4px; font-size: 10px; font-weight: 700; color: white; text-shadow: 0 1px 3px rgba(0,0,0,0.9); pointer-events: none; }
    .smart-group-move-hint { font-size: 12px; color: var(--teal); border: 2px dashed rgba(20,184,166,0.5); border-radius: 8px; padding: 8px 14px; cursor: pointer; background: rgba(20,184,166,0.07); flex-shrink: 0; white-space: nowrap; }
    .smart-group-move-hint:hover { background: rgba(20,184,166,0.14); }
    .smart-group-empty { font-size: 12px; color: var(--muted); font-style: italic; }
    .smart-group-add-btn { width: 100%; background: var(--bg-inner); border: 2px dashed var(--border); border-radius: 12px; padding: 12px; font-size: 13px; color: var(--muted); cursor: pointer; margin-bottom: 16px; transition: all 0.2s; }
    .smart-group-add-btn:hover { border-color: var(--teal); color: var(--teal); }
    .smart-group-selected-hint { background: rgba(20,184,166,0.1); border: 1px solid rgba(20,184,166,0.3); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--teal); margin-bottom: 12px; text-align: center; }
    .smart-group-actions { margin-top: 4px; }

    .bulk-queue { display: none; padding: 0 4px; }
    .bulk-queue.show { display: block; }
    .bulk-queue-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
    .bulk-queue-header h2 { font-size: 18px; font-weight: 700; }
    .queue-item {
      background: var(--bg-inner);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px;
      margin-bottom: 10px;
      display: flex;
      gap: 12px;
      align-items: center;
    }
    .queue-thumb {
      width: 56px; height: 56px;
      border-radius: 8px;
      object-fit: cover;
      flex-shrink: 0;
      background: var(--bg-card);
    }
    .queue-info { flex: 1; min-width: 0; }
    .queue-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
    .queue-status { font-size: 12px; color: var(--muted); }
    .queue-status.processing { color: var(--teal); }
    .queue-status.done { color: #4ade80; }
    .queue-status.error { color: #ff6b6b; }
    .queue-listing-title { font-size: 12px; color: var(--text); margin-top: 4px; opacity: 0.8; }
    .queue-copy-btn {
      background: var(--teal);
      color: white;
      border: none;
      border-radius: 6px;
      padding: 7px 13px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      flex-shrink: 0;
      transition: background 0.2s;
    }
    .queue-copy-btn:hover { background: var(--teal-dark); }

    /* ── VINTED FORMAT BUTTON ── */
    .btn-vinted {
      width: 100%;
      background: linear-gradient(135deg, var(--teal), var(--teal-dark));
      color: white;
      border: none;
      border-radius: 10px;
      padding: 14px;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      margin-top: 8px;
      transition: opacity 0.2s, transform 0.15s;
    }
    .btn-vinted:hover { opacity: 0.92; transform: scale(1.01); }

    /* ── UPGRADE BUTTON ── */
    .btn-upgrade {
      background: linear-gradient(135deg, #7c3aed, #a855f7);
      color: white;
      border: none;
      border-radius: 8px;
      padding: 8px 16px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: opacity 0.2s, transform 0.2s;
      margin-left: 4px;
    }
    .btn-upgrade:hover { opacity: 0.9; transform: scale(1.02); }

    /* ── LEADERBOARD BUTTON ── */
    .btn-leaderboard {
      background: linear-gradient(135deg, #f59e0b, #d97706);
      color: white;
      border: none;
      border-radius: 8px;
      padding: 8px 16px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: opacity 0.2s, transform 0.2s;
      margin-left: 4px;
    }
    .btn-leaderboard:hover { opacity: 0.9; transform: scale(1.02); }

    /* ── THEME TOGGLE ── */
    .theme-toggle {
      background: var(--bg-inner);
      border: 1px solid var(--border);
      color: var(--muted);
      border-radius: 8px;
      padding: 7px 10px;
      font-size: 15px;
      cursor: pointer;
      transition: all 0.2s;
      margin-left: 4px;
      line-height: 1;
    }
    .theme-toggle:hover { border-color: var(--teal); color: var(--text); }

    /* ── PAGE LAYOUT (desktop: left sidebar + main + right sidebar) ── */
    .page-layout {
      display: flex;
      align-items: flex-start;
      width: 100%;
      max-width: 1460px;
      margin: 0 auto;
    }
    .page-main { flex: 1; min-width: 0; }
    @media (min-width: 1100px) { .page-main { padding-top: 24px; } }

    /* Left sidebar — How it works */
    .left-sidebar {
      display: none;
      width: 270px;
      flex-shrink: 0;
      padding: 24px 16px 40px 20px;
      position: sticky;
      top: 20px;
      max-height: calc(100vh - 40px);
      overflow-y: auto;
    }
    @media (min-width: 1100px) {
      .left-sidebar { display: block; }
      .how-it-works { display: none !important; }
    }
    .hiw-vertical { display: flex; flex-direction: column; }
    .hiw-step-v {
      background: var(--bg-inner);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 14px 12px;
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }
    .hiw-step-v .hiw-icon { font-size: 26px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
    .hiw-arrow-v { text-align: center; font-size: 18px; color: var(--muted); padding: 6px 0; }

    /* Right sidebar */
    .desktop-sidebar {
      display: none;
      width: 280px;
      flex-shrink: 0;
      padding: 24px 20px 40px 0;
      position: sticky;
      top: 20px;
      max-height: calc(100vh - 40px);
      overflow-y: auto;
    }
    @media (min-width: 1100px) { .desktop-sidebar { display: block; } }
    .sidebar-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 16px;
      margin-bottom: 16px;
    }
    .sidebar-card-title {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 12px;
      color: var(--text);
    }
    .sidebar-lb-row {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 7px 0;
      border-bottom: 1px solid var(--border-light);
      font-size: 13px;
    }
    .sidebar-lb-row:last-child { border-bottom: none; }
    .sidebar-lb-rank { font-size: 15px; width: 22px; text-align: center; flex-shrink: 0; }
    .sidebar-lb-name { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .sidebar-lb-count { color: var(--muted); font-size: 11px; flex-shrink: 0; }

    /* ── MOBILE: hide QR panel (not useful on phones) ── */
    @media (max-width: 580px) {
      .panel-qr { display: none; }
    }

    /* ── HISTORY MODAL ── */
    .history-card { max-width: 540px; max-height: 90vh; overflow-y: auto; }
    .listing-card {
      background: var(--bg-inner);
      border: 1px solid var(--border-light);
      border-radius: 10px;
      padding: 14px 16px;
      margin-bottom: 10px;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
      cursor: pointer;
      transition: border-color 0.2s;
    }
    .listing-card:hover { border-color: var(--teal); }
    .listing-card-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
    .listing-card-meta { font-size: 12px; color: var(--muted); }
    .listing-card-price {
      font-size: 18px;
      font-weight: 700;
      color: var(--teal);
      white-space: nowrap;
    }
    .history-empty {
      text-align: center;
      padding: 40px 20px;
      color: var(--muted);
      font-size: 15px;
    }

    /* ── UPGRADE MODAL ── */
    .upgrade-card { max-width: 460px; }
    .plan-card {
      background: var(--bg-inner);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 18px;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 14px;
    }
    .plan-card.featured { border-color: #a855f7; background: rgba(168,85,247,0.08); }
    .plan-icon { font-size: 28px; flex-shrink: 0; }
    .plan-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
    .plan-desc { font-size: 13px; color: var(--muted); }
    .plan-price { margin-left: auto; text-align: right; flex-shrink: 0; }
    .plan-price-val { font-size: 18px; font-weight: 700; }
    .plan-price-sub { font-size: 11px; color: var(--muted); }
    .plan-badge {
      display: inline-block;
      background: linear-gradient(135deg, #7c3aed, #a855f7);
      color: white;
      font-size: 10px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 20px;
      margin-left: 8px;
      vertical-align: middle;
    }

    /* ── PROFILE ICON ── */
    .profile-icon {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--teal);
      color: white;
      font-size: 14px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      border: 2px solid rgba(0,166,147,0.4);
      transition: border-color 0.2s, transform 0.2s;
      margin-left: 4px;
      flex-shrink: 0;
    }
    .profile-icon:hover { border-color: var(--teal); transform: scale(1.05); }

    /* ── MODAL OVERLAY ── */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.75);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }
    .modal-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      width: 100%;
      max-width: 420px;
      padding: 32px;
      position: relative;
    }
    .modal-close {
      position: absolute;
      top: 16px;
      right: 16px;
      background: none;
      border: none;
      color: var(--muted);
      font-size: 20px;
      cursor: pointer;
      line-height: 1;
      padding: 4px;
    }
    .modal-close:hover { color: var(--text); }
    .modal-title { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
    .modal-field { margin-bottom: 16px; }
    .modal-field label {
      display: block;
      font-size: 13px;
      color: var(--muted);
      margin-bottom: 6px;
      font-weight: 500;
    }
    .modal-field input {
      width: 100%;
      background: var(--bg-inner);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 10px 14px;
      color: var(--text);
      font-size: 14px;
      outline: none;
    }
    .modal-field input:focus { border-color: var(--teal); }
    .modal-btn {
      width: 100%;
      background: var(--teal);
      color: white;
      border: none;
      border-radius: 8px;
      padding: 12px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      margin-top: 4px;
      transition: background 0.2s;
    }
    .modal-btn:hover { background: var(--teal-dark); }
    .modal-btn:disabled { opacity: 0.6; cursor: not-allowed; }
    .modal-error { color: #ff6b6b; font-size: 13px; margin-top: 10px; display: none; }
    .modal-error.show { display: block; }
    .modal-success { color: var(--teal); font-size: 13px; margin-top: 10px; display: none; }
    .btn-google {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      background: #ffffff;
      color: #1f1f1f;
      border: 1px solid #dadce0;
      border-radius: 8px;
      padding: 11px 16px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      margin-bottom: 16px;
      transition: background 0.15s, box-shadow 0.15s;
    }
    .btn-google:hover { background: #f8f8f8; box-shadow: 0 1px 4px rgba(0,0,0,0.15); }
    .login-divider {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
      color: var(--muted);
      font-size: 12px;
    }
    .login-divider::before, .login-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }
    .modal-success.show { display: block; }
    .modal-link { text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
    .modal-link a { color: var(--teal); cursor: pointer; text-decoration: none; }

    /* ── PROFILE MODAL ── */
    .profile-card { max-width: 460px; max-height: 90vh; overflow-y: auto; }
    .profile-modal-header {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 24px;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--border);
    }
    .profile-avatar-lg {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      background: var(--teal);
      color: white;
      font-size: 22px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .profile-name { font-size: 18px; font-weight: 700; }
    .profile-email { font-size: 13px; color: var(--muted); margin-top: 2px; }
    .profile-section { margin-bottom: 24px; }
    .profile-section-title {
      font-size: 11px;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.6px;
      margin-bottom: 12px;
    }
    .profile-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 9px 0;
      border-bottom: 1px solid var(--border-light);
      font-size: 14px;
    }
    .profile-row:last-child { border-bottom: none; }
    .profile-row-label { color: var(--muted); }
    .profile-row-value { font-weight: 500; }
    .uploads-bar {
      height: 6px;
      background: var(--bg-inner);
      border-radius: 3px;
      margin-top: 8px;
      overflow: hidden;
    }
    .uploads-bar-fill {
      height: 100%;
      background: var(--teal);
      border-radius: 3px;
      transition: width 0.4s;
    }
    .payment-placeholder {
      background: var(--bg-inner);
      border: 1px dashed var(--border);
      border-radius: 8px;
      padding: 20px;
      text-align: center;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
    }
    /* ── CHAT WIDGET ── */
    .chat-fab-wrap {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 900;
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 10px;
    }
    .chat-speech-bubble {
      background: white;
      color: #0f1623;
      border-radius: 16px 16px 4px 16px;
      padding: 11px 32px 11px 14px;
      font-size: 13px;
      font-weight: 500;
      max-width: 220px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.18);
      line-height: 1.5;
      position: relative;
      animation: bubble-in 0.3s ease;
    }
    @keyframes bubble-in {
      from { opacity: 0; transform: scale(0.85) translateY(8px); }
      to   { opacity: 1; transform: scale(1) translateY(0); }
    }
    .chat-bubble-dismiss {
      position: absolute;
      top: 7px;
      right: 9px;
      background: none;
      border: none;
      color: #94a3b8;
      font-size: 13px;
      cursor: pointer;
      line-height: 1;
      padding: 0;
    }
    .chat-bubble-dismiss:hover { color: #0f1623; }
    .chat-fab {
      display: flex;
      align-items: center;
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background: white;
      border: 3px solid var(--teal);
      cursor: pointer;
      box-shadow: 0 4px 20px rgba(0,166,147,0.4);
      overflow: hidden;
      padding: 0;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .chat-fab-img { width: 64px; height: 64px; object-fit: cover; flex-shrink: 0; display: block; }
    .chat-fab-divider { display: none; }
    .chat-fab-label { display: none; }
    .chat-fab:hover { transform: scale(1.05); box-shadow: 0 6px 28px rgba(0,166,147,0.5); }
    /* Close overlay — shown when chat is open, sits on top of logo */
    .chat-fab-open::after {
      content: '✕';
      position: absolute;
      top: 0; right: 0;
      width: 22px; height: 22px;
      background: var(--teal);
      color: white;
      border-radius: 50%;
      font-size: 12px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 22px;
      text-align: center;
    }
    .chat-fab { position: relative; }
    @media (min-width: 1100px) {
      .chat-fab { width: auto; height: auto; border-radius: 50px; }
      .chat-fab-img { width: 76px; height: 76px; }
      .chat-fab-divider {
        display: block;
        width: 1px;
        height: 42px;
        background: rgba(0,166,147,0.35);
        flex-shrink: 0;
      }
      .chat-fab-label {
        display: block;
        font-size: 16px;
        font-weight: 800;
        color: #0f1623;
        padding: 0 18px;
        letter-spacing: -0.3px;
        white-space: nowrap;
      }
    }
    .chat-window {
      position: fixed;
      bottom: 104px;
      right: 24px;
      width: 340px;
      max-height: 480px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 18px;
      display: flex;
      flex-direction: column;
      z-index: 900;
      box-shadow: 0 12px 48px rgba(0,0,0,0.3);
      overflow: hidden;
      transition: opacity 0.2s, transform 0.2s;
    }
    .chat-window.hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }
    .chat-header {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 14px 16px;
      background: linear-gradient(135deg, var(--teal), var(--teal-dark));
      color: white;
    }
    .chat-header-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      object-fit: contain;
      background: rgba(255,255,255,0.15);
      padding: 2px;
    }
    .chat-header-info { flex: 1; }
    .chat-header-name { font-size: 14px; font-weight: 700; }
    .chat-header-sub { font-size: 11px; opacity: 0.85; }
    .chat-close {
      background: none;
      border: none;
      color: white;
      font-size: 18px;
      cursor: pointer;
      padding: 4px;
      opacity: 0.8;
      line-height: 1;
    }
    .chat-close:hover { opacity: 1; }
    .chat-messages {
      flex: 1;
      overflow-y: auto;
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      min-height: 200px;
      max-height: 300px;
    }
    .chat-bubble {
      max-width: 85%;
      padding: 9px 13px;
      border-radius: 14px;
      font-size: 13px;
      line-height: 1.5;
    }
    .chat-bubble.bot {
      background: var(--bg-inner);
      color: var(--text);
      align-self: flex-start;
      border-bottom-left-radius: 4px;
    }
    .chat-bubble.user {
      background: var(--teal);
      color: white;
      align-self: flex-end;
      border-bottom-right-radius: 4px;
    }
    .chat-bubble.typing { color: var(--muted); font-style: italic; }
    .chat-input-row {
      display: flex;
      gap: 8px;
      padding: 10px 12px;
      border-top: 1px solid var(--border-light);
    }
    .chat-input {
      flex: 1;
      background: var(--bg-inner);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 8px 14px;
      font-size: 13px;
      color: var(--text);
      outline: none;
      font-family: inherit;
    }
    .chat-input:focus { border-color: var(--teal); }
    .chat-send {
      background: var(--teal);
      color: white;
      border: none;
      border-radius: 50%;
      width: 36px;
      height: 36px;
      font-size: 16px;
      cursor: pointer;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
    }
    .chat-send:hover { background: var(--teal-dark); }
    .chat-send:disabled { background: var(--bg-inner); color: var(--muted); cursor: not-allowed; }
    @media (max-width: 400px) {
      .chat-window { right: 12px; left: 12px; width: auto; }
      .chat-fab-wrap { bottom: 16px; right: 16px; }
    }
    .seller-type-btn { flex:1; padding:8px 4px; border-radius:8px; border:1px solid var(--border); background:var(--bg-inner); color:var(--muted); font-size:12px; font-weight:600; cursor:pointer; transition:all 0.2s; }
    .seller-type-btn.active { background:rgba(0,166,147,0.15); border-color:var(--teal); color:var(--teal); }
