/* GThrift — styles */
:root {
  --bg: #0b0d14;
  --bg-2: #10131d;
  --surface: #151927;
  --surface-2: #1c2133;
  --line: #262c42;
  --text: #e9ecf5;
  --muted: #9aa3bd;
  --green: #2ee59d;
  --green-ink: #06291b;
  --violet: #7c5cff;
  --amber: #ffb547;
  --red: #ff5c7a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.grad {
  background: linear-gradient(90deg, var(--green), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.15s, background 0.15s, border-color 0.15s;
  font-family: inherit; text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-primary { background: var(--green); color: var(--green-ink); }
.btn-primary:hover { background: #4ff0b0; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); }
.btn-wa { background: #25d366; color: #052e16; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
#site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 20, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-family: var(--display); font-size: 1.35rem; font-weight: 600; text-decoration: none !important; }
.brand b { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a:not(.btn) { color: var(--muted); padding: 0.5rem 0.8rem; border-radius: 8px; font-weight: 500; font-size: 0.95rem; text-decoration: none; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); background: var(--surface); }
.nav-links .btn { margin-left: 0.5rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.2s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 0.75rem 1.25rem 1.25rem;
    display: none;
  }
  #site-header.open .nav-links { display: flex; }
  .nav-links .btn { margin: 0.5rem 0 0; }
  #site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
  #site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- sections ---------- */
section { padding: 5rem 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 0.75rem; }
.page-hero { padding: 4rem 0 2.5rem; border-bottom: 1px solid var(--line); background: radial-gradient(800px 300px at 15% 0%, rgba(124, 92, 255, 0.18), transparent 70%); }
.page-hero p { max-width: 640px; color: var(--muted); font-size: 1.1rem; }

/* ---------- hero ---------- */
.hero {
  padding: 5.5rem 0 4.5rem; position: relative; overflow: hidden;
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(124, 92, 255, 0.25), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(46, 229, 157, 0.14), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1.5rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.hero-points li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 0.4rem; }
.hero-visual { position: relative; }
.hero-visual .listing-card { transform: rotate(-2deg); }
.hero-visual .stack { display: grid; gap: 1rem; }
.float-tag {
  position: absolute; right: -10px; bottom: -18px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.9rem 1.1rem; box-shadow: var(--shadow); font-size: 0.9rem;
}
.float-tag strong { color: var(--green); font-size: 1.1rem; display: block; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; }
}

/* ---------- grid + cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 1.5rem; }
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem;
  background: rgba(46, 229, 157, 0.12); color: var(--green); margin-bottom: 1rem;
}
.feature p { color: var(--muted); margin: 0; }

.listing-card { display: flex; flex-direction: column; overflow: hidden; color: var(--text); text-decoration: none !important; transition: transform 0.15s, border-color 0.15s; }
.listing-card:hover { transform: translateY(-3px); border-color: rgba(46, 229, 157, 0.55); }
.thumb { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
  background:
    radial-gradient(circle at 25% 20%, hsla(var(--h), 85%, 60%, 0.55), transparent 55%),
    radial-gradient(circle at 80% 90%, hsla(calc(var(--h) + 60), 85%, 55%, 0.45), transparent 55%),
    #171b2b;
}
.thumb-ph span { font-family: var(--display); font-size: 2.6rem; font-weight: 700; color: #fff; opacity: 0.92; }
.thumb-ph small { color: rgba(255, 255, 255, 0.75); font-size: 0.8rem; }
.thumb-badges { position: absolute; top: 0.6rem; left: 0.6rem; right: 0.6rem; display: flex; justify-content: space-between; gap: 0.4rem; }
.card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.05rem; margin: 0.25rem 0 0.9rem; }
.meta { font-size: 0.82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.35rem; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; }
.price { color: var(--green); font-size: 1.2rem; font-family: var(--display); }

.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 0.22rem 0.55rem; border-radius: 999px; letter-spacing: 0.02em; }
.badge-ok { background: rgba(46, 229, 157, 0.18); color: var(--green); }
.badge-reserved { background: rgba(255, 181, 71, 0.18); color: var(--amber); }
.badge-sold { background: rgba(255, 92, 122, 0.18); color: var(--red); }
.badge-sample { background: rgba(124, 92, 255, 0.85); color: #fff; }
.thumb-badges .badge:only-child { margin-left: auto; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 1.5rem; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: var(--green-ink); background: var(--green);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1rem;
}
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.timeline { list-style: none; padding: 0; margin: 0; counter-reset: tl; }
.timeline li { position: relative; padding: 0 0 2rem 3.5rem; }
.timeline li::before {
  counter-increment: tl; content: counter(tl); position: absolute; left: 0; top: 0;
  width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--green); color: var(--green); font-weight: 700; font-family: var(--display);
}
.timeline li::after { content: ""; position: absolute; left: 1.13rem; top: 2.5rem; bottom: 0.3rem; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline h3 { margin-bottom: 0.3rem; }
.timeline p { color: var(--muted); margin: 0; }

/* ---------- fee calculator ---------- */
.fee-calc { padding: 1.75rem; }
.fee-calc label { font-weight: 600; display: block; margin-bottom: 0.5rem; }
.fee-rows { margin-top: 1.25rem; display: grid; gap: 0.6rem; }
.fee-row { display: flex; justify-content: space-between; padding: 0.65rem 0; border-bottom: 1px dashed var(--line); }
.fee-row:last-child { border: 0; font-size: 1.15rem; font-weight: 700; }
.fee-row:last-child span:last-child { color: var(--green); }
.input-pkr { position: relative; }
.input-pkr::before { content: "Rs."; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.input-pkr input { padding-left: 3rem !important; font-size: 1.2rem; font-weight: 600; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; }
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; }
input, select, textarea {
  width: 100%; padding: 0.8rem 0.95rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font: inherit; transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46, 229, 157, 0.18); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.check input { width: auto; margin-top: 0.3rem; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 0.95rem; margin: 0; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 0; display: grid; gap: 1rem; }
legend { padding: 0 0.5rem; font-family: var(--display); font-weight: 600; }

/* ---------- browse ---------- */
.browse { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.filters { position: sticky; top: 88px; padding: 1.25rem; display: grid; gap: 1rem; }
.filters h3 { margin: 0; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.results-bar select { width: auto; }
.empty { padding: 3rem 1.5rem; text-align: center; color: var(--muted); }
@media (max-width: 900px) {
  .browse { grid-template-columns: 1fr; }
  .filters { position: static; }
}

/* ---------- listing detail ---------- */
.detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: start; }
.detail .thumb { border-radius: var(--radius); aspect-ratio: 16 / 9; }
.detail aside { position: sticky; top: 88px; display: grid; gap: 1rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.25rem; font-size: 0.95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.tick-list li::before { content: "✓"; color: var(--green); margin-right: 0.5rem; font-weight: 700; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .detail aside { position: static; } }

/* ---------- notices / misc ---------- */
.notice { border: 1px solid rgba(124, 92, 255, 0.5); background: rgba(124, 92, 255, 0.1); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; font-size: 0.92rem; }
.notice.warn { border-color: rgba(255, 181, 71, 0.5); background: rgba(255, 181, 71, 0.08); }
.notice.ok { border-color: rgba(46, 229, 157, 0.45); background: rgba(46, 229, 157, 0.07); }
.notice strong { color: var(--text); }

.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font-family: var(--display); color: var(--muted); font-weight: 600; }
.compare td:first-child { font-weight: 600; }
.compare .yes { color: var(--green); }
.compare .no { color: var(--muted); }
.table-wrap { overflow-x: auto; }

.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--green); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0.75rem 0 0; }

.prose { max-width: 780px; }
.prose h2 { margin-top: 2.5rem; font-size: 1.6rem; scroll-margin-top: 90px; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose p, .prose li { color: #c8cee0; }

.cta-band {
  border-radius: 20px; padding: 3rem; text-align: center;
  background: linear-gradient(135deg, rgba(46, 229, 157, 0.16), rgba(124, 92, 255, 0.22)); border: 1px solid var(--line);
}
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 1.5rem; }
.cta-band .hero-cta { justify-content: center; margin: 0; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { padding: 1.25rem; text-align: center; }
.stat strong { display: block; font-family: var(--display); font-size: 1.8rem; color: var(--green); }
.stat span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- footer ---------- */
#site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { font-size: 0.95rem; margin-bottom: 0.9rem; }
.footer-grid a:not(.brand) { display: block; color: var(--muted); margin-bottom: 0.45rem; font-size: 0.93rem; }
.footer-grid a:not(.brand):hover { color: var(--text); }
.footer-grid p { margin-top: 1rem; font-size: 0.93rem; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .cta-band { padding: 2rem 1.25rem; } section { padding: 3.5rem 0; } }
.cross-list li::before { content: "✕"; color: var(--red); }
@media (max-width: 640px) {
  .float-tag { position: static; margin-top: 1rem; }
  .hero-visual .listing-card { transform: none; }
}

/* ---------- auth ---------- */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 3rem 1.25rem; background: radial-gradient(700px 400px at 80% 0%, rgba(124, 92, 255, 0.18), transparent 70%); }
.auth-card { width: min(460px, 100%); padding: 2rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 1.5rem; }
.auth-tabs button { border: 0; background: none; color: var(--muted); padding: 0.55rem; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.auth-tabs button.active { background: var(--surface-2); color: var(--text); }
.link-btn { background: none; border: 0; color: var(--green); font: inherit; cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; }

/* ---------- dashboard ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; padding: 2.5rem 0 1.5rem; }
.dash-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 0.75rem 1rem; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tabs button.active { color: var(--text); border-bottom-color: var(--green); }
.tabs .count { background: var(--surface-2); border-radius: 999px; padding: 0.05rem 0.5rem; font-size: 0.75rem; margin-left: 0.35rem; }
.tab-panel[hidden] { display: none; }
.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data th, .data td { padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.data tr:last-child td { border-bottom: 0; }
.data td .muted { font-size: 0.82rem; }
.data .actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.data select { padding: 0.4rem 0.6rem; width: auto; font-size: 0.88rem; }
.btn-xs { padding: 0.3rem 0.7rem; font-size: 0.82rem; }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(255, 92, 122, 0.4); }
.pill { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.pill.pending, .pill.awaiting_payment, .pill.new, .pill.reserved { background: rgba(255, 181, 71, 0.16); color: var(--amber); }
.pill.approved, .pill.completed, .pill.paid, .pill.ordered { background: rgba(46, 229, 157, 0.16); color: var(--green); }
.pill.delivered, .pill.contacted { background: rgba(124, 92, 255, 0.2); color: #b7a6ff; }
.pill.rejected, .pill.cancelled, .pill.refunded { background: rgba(255, 92, 122, 0.16); color: var(--red); }
.pill.sold { background: rgba(46, 229, 157, 0.1); color: #8fe3c0; }
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; width: min(720px, 100% - 2rem); max-height: 90vh; }
dialog::backdrop { background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(3px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.dialog-head h2 { font-size: 1.3rem; margin: 0; }
.dialog-body { padding: 1.5rem; }
.close-x { background: none; border: 0; color: var(--muted); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.img-preview { width: 160px; aspect-ratio: 16/10; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--line); margin-top: 0.6rem; }
.mini-thumb { width: 64px; height: 40px; border-radius: 6px; overflow: hidden; flex: none; }
.mini-thumb .thumb-ph span { font-size: 0.9rem; }
.mini-thumb .thumb-ph small { display: none; }
.row-title { display: flex; gap: 0.75rem; align-items: center; min-width: 220px; }
.empty-row { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }
.gate { padding: 5rem 0; text-align: center; }
.review-grid { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; }
@media (max-width: 700px) { .review-grid { grid-template-columns: 1fr; } }
