﻿
    :root {
      --bg: #0a0b0d;
      --bg-elevated: #12141a;
      --bg-soft: #181b22;
      --text: #f2f0eb;
      --muted: #9a968c;
      --line: rgba(242, 240, 235, 0.12);
      --accent: #e8ff47;
      --accent-ink: #12140a;
      --warm: #ff5c2e;
      --nav-h: 72px;
      --font-display: "Space Grotesk", sans-serif;
      --font-body: "Sora", sans-serif;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font-body);
      background: var(--bg);
      color: var(--text);
      line-height: 1.55;
      -webkit-font-smoothing: antialiased;
    }
    h1, h2, h3, h4, .logo, .brand, .listing-price, .cat strong, .step-n {
      font-family: var(--font-display);
      line-height: 1.25;
    }
    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }
    button, input, select { font: inherit; color: inherit; }

    /* NAV */
    .nav {
      position: fixed;
      inset: 0 0 auto;
      z-index: 50;
      height: var(--nav-h);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 clamp(20px, 4vw, 48px);
      background: linear-gradient(to bottom, rgba(10,11,13,.95), rgba(10,11,13,.55) 70%, transparent);
      backdrop-filter: blur(10px);
    }
    .logo {
      font-weight: 700;
      font-size: 1.35rem;
      letter-spacing: -0.03em;
    }
    .logo span { color: var(--accent); }
    .nav-links {
      display: flex;
      gap: 26px;
      font-size: 0.9rem;
      color: var(--muted);
    }
    .nav-links a:hover { color: var(--text); }
    .nav-cta { display: flex; gap: 12px; align-items: center; }
    .nav-links-mobile-cta { display: none; }
    .nav-toggle {
      display: none;
      width: 44px;
      height: 44px;
      padding: 0;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: rgba(18, 20, 26, .85);
      cursor: pointer;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 5px;
      flex-shrink: 0;
    }
    .nav-toggle span {
      display: block;
      width: 18px;
      height: 2px;
      background: var(--text);
      border-radius: 2px;
      transition: transform .2s ease, opacity .2s ease;
    }
    body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 12px 20px;
      border-radius: 6px;
      border: none;
      cursor: pointer;
      font-weight: 600;
      font-size: 0.9rem;
      transition: transform .15s ease, background .15s ease, border-color .15s ease;
    }
    .btn:hover { transform: translateY(-1px); }
    .btn[hidden],
    .btn.is-hidden {
      display: none !important;
    }
    .btn:disabled,
    .btn[disabled],
    .btn.is-disabled {
      cursor: not-allowed;
      transform: none !important;
      pointer-events: none;
      box-shadow: none !important;
    }
    .btn-accent { background: var(--accent); color: var(--accent-ink); }
    .btn-ghost {
      background: transparent;
      color: var(--text);
      border: 1px solid var(--line);
    }
    .btn-ghost:hover { border-color: rgba(242,240,235,.35); }
    .btn-warm { background: var(--warm); color: #fff; }
    .btn-warm:disabled,
    .btn-warm[disabled],
    .btn-warm.is-disabled {
      background: #2a2d35 !important;
      color: #6b6e76 !important;
      border: 1px solid var(--line) !important;
      opacity: 1;
    }
    .btn-block { width: 100%; }

    /* HERO â€” search-first (standard portali moto) */
    .hero {
      position: relative;
      min-height: min(920px, 100dvh);
      display: flex;
      align-items: flex-end;
      overflow: hidden;
      padding: calc(var(--nav-h) + 40px) clamp(20px, 4vw, 48px) 48px;
    }
    .hero-scenes { position: absolute; inset: 0; }
    .hero-scene {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center 40%;
      opacity: 0;
      transform: scale(1.05);
      transition: opacity 1s ease, transform 7s ease;
    }
    .hero-scene.is-active { opacity: 1; transform: scale(1); }
    .hero-scene::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(to top, #0a0b0d 0%, rgba(10,11,13,.72) 38%, rgba(10,11,13,.35) 100%),
        linear-gradient(90deg, rgba(10,11,13,.5) 0%, transparent 55%);
    }
    .hero-scene:nth-child(1) { background-image: url("https://images.unsplash.com/photo-1552519507-da3b142c6e3d?auto=format&fit=crop&w=2400&q=80"); }
    .hero-scene:nth-child(2) { background-image: url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=2400&q=80"); }
    .hero-scene:nth-child(3) { background-image: url("https://images.unsplash.com/photo-1494976388531-d1058494cdd8?auto=format&fit=crop&w=2400&q=80"); }
    .hero-scene:nth-child(4) { background-image: url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=2400&q=80"); }

    .hero-shell {
      position: relative;
      z-index: 2;
      width: min(1120px, 100%);
      margin: 0 auto;
    }
    .hero-top {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 32px;
      align-items: end;
      margin-bottom: 22px;
    }
    .hero h1 {
      font-size: clamp(2.4rem, 5.5vw, 3.75rem);
      font-weight: 700;
      letter-spacing: -0.035em;
      line-height: 1.12;
      margin-bottom: 12px;
      max-width: 16ch;
    }
    .hero-lead {
      color: rgba(242,240,235,.78);
      font-size: 1.05rem;
      max-width: 38ch;
      margin-bottom: 0;
    }
    .hero-side {
      display: flex;
      flex-direction: column;
      gap: 14px;
      align-items: flex-end;
      text-align: right;
    }
    .hero-metrics {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: flex-end;
    }
    .metric {
      background: rgba(18,20,26,.72);
      border: 1px solid var(--line);
      backdrop-filter: blur(8px);
      border-radius: 10px;
      padding: 12px 14px;
      min-width: 108px;
    }
    .metric b {
      display: block;
      font-family: var(--font-display);
      font-size: 1.15rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--accent);
      line-height: 1.2;
    }
    .metric span {
      font-size: 0.75rem;
      color: var(--muted);
    }
    .hero-sell {
      font-size: 0.9rem;
      color: rgba(242,240,235,.7);
    }
    .hero-sell a {
      color: var(--accent);
      font-weight: 600;
      border-bottom: 1px solid rgba(232,255,71,.35);
    }

    /* Search card â€” gĹ‚Ăłwna akcja hero */
    .search-card {
      position: relative;
      z-index: 20;
      background: rgba(18, 20, 26, 0.92);
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 18px;
      backdrop-filter: blur(14px);
      box-shadow: 0 28px 70px rgba(0,0,0,.45);
    }
    .search-tabs {
      display: flex;
      gap: 6px;
      margin-bottom: 14px;
      flex-wrap: wrap;
    }
    .search-tab {
      border: 1px solid transparent;
      background: transparent;
      color: var(--muted);
      padding: 8px 14px;
      border-radius: 999px;
      cursor: pointer;
      font-size: 0.85rem;
      font-weight: 500;
    }
    .search-tab.is-active {
      background: rgba(232,255,71,.12);
      border-color: rgba(232,255,71,.35);
      color: var(--accent);
    }
    .search-grid {
      display: grid;
      grid-template-columns: 1.1fr 1fr 0.9fr 0.9fr 1fr auto;
      gap: 10px;
    }
    .search-grid--listings {
      grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    }
    .search-grid--listings .btn {
      grid-column: 5;
      grid-row: 1 / span 2;
      align-self: stretch;
    }
    .field {
      display: flex;
      flex-direction: column;
      gap: 5px;
      padding: 10px 12px;
      border-radius: 10px;
      background: var(--bg-soft);
      border: 1px solid transparent;
    }
    .field:focus-within { border-color: rgba(232,255,71,.35); }
    .field label {
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      color: var(--muted);
      font-weight: 500;
    }
    .field select,
    .field input {
      background: transparent;
      border: none;
      outline: none;
      width: 100%;
      font-size: 0.95rem;
    }
    .field select option { background: #1a1d24; }
    .search-grid .btn {
      min-width: 120px;
      align-self: stretch;
      border-radius: 10px;
    }

    .quick-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 14px;
      align-items: center;
    }
    .quick-links > span {
      font-size: 0.8rem;
      color: var(--muted);
      margin-right: 4px;
    }
    .chip {
      font-size: 0.8rem;
      padding: 7px 12px;
      border-radius: 999px;
      border: 1px solid var(--line);
      color: rgba(242,240,235,.8);
      background: rgba(255,255,255,.02);
      transition: border-color .15s, color .15s;
    }
    .chip:hover {
      border-color: rgba(232,255,71,.4);
      color: var(--accent);
    }

    .hero-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 18px;
      gap: 16px;
    }
    .hero-dots { display: flex; gap: 8px; }
    .hero-dot {
      width: 28px;
      height: 3px;
      border: none;
      padding: 0;
      background: rgba(242,240,235,.25);
      cursor: pointer;
      border-radius: 2px;
    }
    .hero-dot.is-active {
      background: var(--accent);
      width: 40px;
    }

    @media (prefers-reduced-motion: reduce) {
      .hero-scene { transition: opacity .25s ease; transform: none !important; }
    }

    /* SECTIONS */
    section { padding: 64px clamp(20px, 4vw, 48px); }
    .section-inner { width: min(1120px, 100%); margin: 0 auto; }
    .section-head {
      display: flex;
      justify-content: space-between;
      align-items: end;
      gap: 16px;
      margin-bottom: 24px;
    }
    .section-head h2 {
      font-size: clamp(1.45rem, 2.8vw, 1.9rem);
      letter-spacing: -0.03em;
      font-weight: 700;
    }
    .section-head a {
      color: var(--accent);
      font-size: 0.9rem;
      font-weight: 500;
      white-space: nowrap;
    }

    .cat-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }
    .cat {
      position: relative;
      border-radius: 14px;
      overflow: hidden;
      min-height: 150px;
    }
    .cat img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .45s ease;
    }
    .cat:hover img { transform: scale(1.05); }
    .cat::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.1));
    }
    .cat > div {
      position: relative;
      z-index: 1;
      height: 100%;
      min-height: 150px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 16px;
    }
    .cat strong { font-size: 1.15rem; letter-spacing: -0.02em; }
    .cat span { font-size: 0.8rem; color: rgba(242,240,235,.7); }

    .featured-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }
    .listing {
      background: var(--bg-elevated);
      border: 1px solid transparent;
      border-radius: 12px;
      overflow: hidden;
      transition: border-color .2s, transform .2s;
    }
    .listing:hover {
      border-color: rgba(232,255,71,.35);
      transform: translateY(-3px);
    }
    .listing.is-promo { border-color: rgba(232,255,71,.45); }
    .listing-media {
      aspect-ratio: 16 / 10;
      background-size: cover;
      background-position: center;
      position: relative;
    }
    .listing-badge {
      position: absolute;
      top: 10px;
      left: 10px;
      background: var(--accent);
      color: var(--accent-ink);
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      padding: 5px 8px;
      border-radius: 4px;
    }
    .listing-body { padding: 14px; }
    .listing-price {
      font-weight: 700;
      font-size: 1.2rem;
      margin-bottom: 4px;
      line-height: 1.2;
    }
    .listing-title { font-size: 0.95rem; font-weight: 500; margin-bottom: 8px; }
    .listing-meta {
      font-size: 0.78rem;
      color: var(--muted);
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .brands-row {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 12px;
    }
    .brand {
      background: var(--bg-elevated);
      border: 1px solid var(--line);
      border-radius: 12px;
      min-height: 78px;
      display: grid;
      place-items: center;
      font-weight: 700;
      color: rgba(242,240,235,.72);
      letter-spacing: -0.02em;
      transition: color .15s, border-color .15s;
    }
    .brand:hover {
      color: var(--accent);
      border-color: rgba(232,255,71,.4);
    }

    .cities { display: flex; flex-wrap: wrap; gap: 10px; }
    .city {
      padding: 10px 16px;
      border-radius: 999px;
      border: 1px solid var(--line);
      color: var(--muted);
      font-size: 0.9rem;
    }
    .city:hover {
      color: var(--text);
      border-color: rgba(242,240,235,.35);
      background: var(--bg-elevated);
    }

    .steps {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
    }
    .step {
      background: var(--bg-elevated);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 24px;
    }
    .step-n {
      color: var(--accent);
      font-size: 0.85rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      margin-bottom: 10px;
    }
    .step h3 {
      font-size: 1.15rem;
      margin-bottom: 8px;
      letter-spacing: -0.02em;
    }
    .step p { color: var(--muted); font-size: 0.92rem; }

    .seo-block {
      background: var(--bg-elevated);
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: clamp(28px, 4vw, 44px);
    }
    .seo-block h2 {
      font-size: 1.6rem;
      letter-spacing: -0.03em;
      margin-bottom: 12px;
    }
    .seo-block p { color: var(--muted); margin-bottom: 12px; max-width: 70ch; }
    .seo-block h3 {
      font-size: 1.1rem;
      margin: 22px 0 8px;
      letter-spacing: -0.02em;
    }
    .seo-block a { color: var(--accent); }
    .faq details {
      border-top: 1px solid var(--line);
      padding: 14px 0;
    }
    .faq summary {
      cursor: pointer;
      font-weight: 500;
      list-style: none;
      display: flex;
      justify-content: space-between;
    }
    .faq summary::-webkit-details-marker { display: none; }
    .faq summary::after { content: "+"; color: var(--accent); }
    .faq details[open] summary::after { content: "–"; }
    .faq p { margin-top: 8px; font-size: 0.92rem; }

    footer {
      border-top: 1px solid var(--line);
      padding: 56px clamp(20px, 4vw, 48px) 32px;
    }
    .footer-grid {
      width: min(1120px, 100%);
      margin: 0 auto 36px;
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr 1fr;
      gap: 28px;
    }
    footer h4 { font-size: 0.95rem; margin-bottom: 14px; }
    footer ul { list-style: none; display: grid; gap: 8px; }
    footer li, .footer-note { color: var(--muted); font-size: 0.88rem; }
    footer a:hover { color: var(--accent); }
    .footer-bottom {
      width: min(1120px, 100%);
      margin: 0 auto;
      padding-top: 22px;
      border-top: 1px solid var(--line);
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px;
      color: var(--muted);
      font-size: 0.8rem;
    }
    .footer-legal {
      display: inline-flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }
    .footer-legal a:hover { color: var(--accent); }

    .legal-page { max-width: 760px; }
    .legal-card h1 {
      font-size: clamp(1.6rem, 4vw, 2.1rem);
      margin-bottom: 8px;
    }
    .legal-updated {
      color: var(--muted);
      font-size: 0.88rem;
      margin-bottom: 22px;
    }
    .legal-card h2 {
      font-size: 1.05rem;
      margin: 22px 0 8px;
    }
    .legal-card p {
      color: rgba(242,240,235,.82);
      margin-bottom: 12px;
      line-height: 1.65;
    }
    .legal-card a {
      color: var(--accent);
      border-bottom: 1px solid rgba(232,255,71,.35);
    }

    .cookie-banner {
      position: fixed;
      inset: auto 0 0;
      z-index: 80;
      padding: 14px clamp(16px, 3vw, 28px);
      background: rgba(18, 20, 26, .96);
      border-top: 1px solid var(--line);
      backdrop-filter: blur(12px);
      box-shadow: 0 -16px 40px rgba(0,0,0,.35);
    }
    .cookie-banner[hidden] { display: none !important; }
    .cookie-banner-inner {
      width: min(1120px, 100%);
      margin: 0 auto;
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      align-items: center;
      justify-content: space-between;
    }
    .cookie-banner-inner p {
      flex: 1 1 280px;
      margin: 0;
      color: rgba(242,240,235,.78);
      font-size: 0.9rem;
      line-height: 1.5;
    }
    .cookie-banner-inner a {
      color: var(--accent);
      border-bottom: 1px solid rgba(232,255,71,.35);
      font-weight: 600;
    }
    .cookie-banner-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      flex-shrink: 0;
    }

    .mock-banner {
      position: fixed;
      bottom: 16px;
      right: 16px;
      z-index: 100;
      background: rgba(18,20,26,.92);
      border: 1px solid var(--line);
      color: var(--muted);
      font-size: 0.75rem;
      padding: 8px 12px;
      border-radius: 8px;
    }

    @media (max-width: 980px) {
      .nav {
        gap: 12px;
        padding: 0 16px;
      }
      .logo {
        font-size: 1.15rem;
        min-width: 0;
        white-space: nowrap;
      }
      .nav-cta { display: none; }
      .nav-toggle { display: inline-flex; }
      .nav-links {
        display: none;
        position: absolute;
        top: calc(var(--nav-h) - 8px);
        left: 12px;
        right: 12px;
        flex-direction: column;
        gap: 0;
        padding: 10px;
        border-radius: 14px;
        border: 1px solid var(--line);
        background: rgba(18, 20, 26, .97);
        box-shadow: 0 20px 50px rgba(0,0,0,.45);
        backdrop-filter: blur(12px);
      }
      body.nav-open .nav-links { display: flex; }
      .nav-links a {
        padding: 12px 14px;
        border-radius: 10px;
        color: var(--text);
      }
      .nav-links > a:hover { background: rgba(232,255,71,.08); color: var(--accent); }
      .nav-links-mobile-cta {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid var(--line);
      }
      .nav-links-mobile-cta .btn {
        color: var(--text);
      }
      .nav-links-mobile-cta .btn-accent {
        background: var(--accent);
        color: var(--accent-ink) !important;
      }
      .nav-links-mobile-cta .btn-ghost {
        color: var(--text) !important;
      }
      .hero {
        min-height: 100dvh;
        align-items: flex-start;
        padding-top: calc(var(--nav-h) + 16px);
        padding-bottom: 28px;
      }
      .hero-scenes {
        inset: 0;
      }
      .hero-scene {
        background-size: cover;
        background-position: center 28%;
        transform: none;
      }
      .hero-scene.is-active { transform: none; }
      .hero-scene::after {
        background:
          linear-gradient(to bottom, rgba(10,11,13,.55) 0%, rgba(10,11,13,.28) 35%, rgba(10,11,13,.72) 78%, #0a0b0d 100%),
          linear-gradient(90deg, rgba(10,11,13,.25) 0%, transparent 55%);
      }
      .hero-shell {
        display: block;
        min-height: 0;
        padding-top: 0;
        width: 100%;
      }
      .hero h1 {
        font-size: clamp(1.85rem, 8vw, 2.4rem);
        max-width: none;
      }
      .hero-top { grid-template-columns: 1fr; margin-bottom: 14px; }
      .hero-side { align-items: flex-start; text-align: left; }
      .hero-metrics { justify-content: flex-start; }
      .search-grid { grid-template-columns: 1fr 1fr; }
      .search-grid--listings { grid-template-columns: 1fr 1fr; }
      .search-grid .btn,
      .search-grid--listings .btn { grid-column: 1 / -1; grid-row: auto; }
      .cat-grid, .featured-grid { grid-template-columns: 1fr 1fr; }
      .brands-row { grid-template-columns: repeat(3, 1fr); }
      .steps, .footer-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 560px) {
      .search-grid, .cat-grid, .featured-grid { grid-template-columns: 1fr; }
      .brands-row { grid-template-columns: 1fr 1fr; }
      .hero {
        padding-top: calc(var(--nav-h) + 12px);
      }
      .hero-scene {
        background-size: cover;
        background-position: center 30%;
      }
      .hero-scene:nth-child(1) { background-position: 55% 26%; }
      .hero-scene:nth-child(2) { background-position: 50% 28%; }
      .hero-scene:nth-child(3) { background-position: 48% 32%; }
      .hero-scene:nth-child(4) { background-position: 52% 26%; }
      .hero-metrics { display: none; }
    }
  

/* Wizard + extras */
.wizard { max-width: 820px; margin: 0 auto; }
.wizard-steps { display:flex; gap:8px; margin-bottom:28px; flex-wrap:wrap; }
.wizard-step {
  flex:1; min-width:120px; text-align:center; padding:12px 10px; border-radius:10px;
  border:1px solid var(--line); color:var(--muted); font-size:.82rem; font-weight:600;
  background:var(--bg-elevated);
  font-family: inherit;
  cursor: default;
}
.wizard-step.is-clickable { cursor: pointer; }
.wizard-step.is-clickable:hover { border-color: rgba(242,240,235,.35); color: var(--text); }
.wizard-step.is-active { border-color:rgba(232,255,71,.45); color:var(--accent); background:rgba(232,255,71,.08); }
.wizard-step.is-done { color:var(--text); border-color:rgba(242,240,235,.25); }
.wizard-step.has-error {
  border-color: rgba(255,92,46,.55);
  color: #ffb4a0;
  background: rgba(255,92,46,.08);
}
.wizard-step.has-error.is-active {
  border-color: rgba(255,92,46,.75);
  color: #ffb4a0;
  background: rgba(255,92,46,.14);
}
.wizard-panel { display:none; }
.wizard-panel.is-active { display:block; }
.form-card {
  background:var(--bg-elevated); border:1px solid var(--line); border-radius:16px; padding:24px;
}
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-grid .full { grid-column:1 / -1; }
.form-field label { display:block; font-size:.75rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-bottom:6px; }
.form-field input, .form-field select, .form-field textarea {
  width:100%; background:var(--bg-soft); border:1px solid var(--line); border-radius:10px;
  padding:12px 14px; outline:none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color:rgba(232,255,71,.4); }
.form-field textarea { min-height:140px; resize:vertical; }
.cat-pick { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.cat-pick label {
  border:1px solid var(--line); border-radius:14px; padding:18px; cursor:pointer; background:var(--bg-soft);
  transition:border-color .15s, background .15s;
}
.cat-pick input { display:none; }
.cat-pick input:checked + span, .cat-pick label:has(input:checked) {
  border-color:rgba(232,255,71,.5); background:rgba(232,255,71,.08);
}
.cat-pick strong { display:block; font-family:var(--font-display); margin-bottom:4px; }
.cat-pick small { color:var(--muted); }
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 240px;
  border: 1px dashed rgba(242,240,235,.25);
  border-radius: 14px;
  padding: 40px 24px;
  text-align: center;
  background: var(--bg-soft);
  cursor: pointer;
}
.dropzone strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.dropzone.dragover {
  border-color: var(--accent);
  background: rgba(232,255,71,.06);
}
.wizard-panel[data-panel="3"] {
  width: 100%;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
  width: 100%;
}
.preview-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}
.alert {
  border-radius:12px; padding:14px 16px; margin-bottom:18px; border:1px solid var(--line);
  background:var(--bg-elevated);
}
.alert-success { border-color:rgba(232,255,71,.35); color:var(--accent); }
.alert-error { border-color:rgba(255,92,46,.45); color:#ffb4a0; }
.page { padding: calc(var(--nav-h) + 40px) clamp(20px,4vw,48px) 64px; }
.wizard-nav { display:flex; justify-content:space-between; gap:12px; margin-top:22px; flex-wrap:wrap; }
.errors { color:#ffb4a0; font-size:.88rem; margin-top:8px; }
.listing-detail {
  grid-template-columns: 1.4fr .8fr;
  align-items: start;
}
.auth-wrap {
  max-width: 480px;
  margin: 0 auto;
}
.auth-card {
  padding: 28px 26px;
}
.auth-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.auth-lead {
  color: var(--muted);
  margin: 0 0 22px;
  line-height: 1.5;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-form .btn { margin-top: 6px; }
.auth-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  cursor: pointer;
  user-select: none;
}
.auth-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.auth-links a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.auth-links a:hover {
  color: var(--accent);
  border-bottom-color: rgba(232,255,71,.35);
}
.listing-gallery { margin-bottom: 4px; }
.listing-gallery-main {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-elevated);
  cursor: zoom-in;
  aspect-ratio: 16 / 10;
}
.listing-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.listing-gallery-main:hover img { transform: scale(1.02); }
.listing-gallery-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(10, 12, 16, .72);
  color: rgba(242,240,235,.9);
  font-size: 0.75rem;
  font-weight: 500;
  pointer-events: none;
}
.listing-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.listing-gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elevated);
  cursor: pointer;
  aspect-ratio: 1;
}
.listing-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.listing-gallery-thumb.is-active,
.listing-gallery-thumb:hover {
  border-color: rgba(232,255,71,.55);
}

.lightbox {
  border: none;
  padding: 0;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 8, 12, .92);
  color: var(--text);
}
.lightbox::backdrop { background: rgba(0, 0, 0, .75); }
.lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 56px 64px 40px;
  box-sizing: border-box;
}
.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
.lightbox-counter {
  font-size: 0.9rem;
  color: var(--muted);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid var(--line);
  background: rgba(18, 20, 26, .9);
  color: var(--text);
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .15s, color .15s, background .15s;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  border-color: rgba(232,255,71,.4);
  color: var(--accent);
  background: rgba(232,255,71,.08);
}
.lightbox-close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
  z-index: 2;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
  line-height: 1;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
body.lightbox-open { overflow: hidden; }

@media (max-width:980px) {
  .listing-detail { grid-template-columns: 1fr; }
  .lightbox-inner { padding: 56px 16px 24px; }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding-top: 8px;
}
.pagination-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
.pagination-meta strong { color: var(--text); font-weight: 600; }
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination li a,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}
.pagination li a:hover {
  border-color: rgba(232,255,71,.4);
  color: var(--accent);
  background: rgba(232,255,71,.08);
}
.pagination li.active span {
  border-color: rgba(232,255,71,.45);
  background: rgba(232,255,71,.14);
  color: var(--accent);
  font-weight: 600;
}
.pagination li.disabled span {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (max-width:700px) {
  .form-grid, .cat-pick, .preview-grid { grid-template-columns:1fr; }
  .pagination-bar { justify-content: center; }
}
