/* ============================================================
   60Soniya v4 Product Build — website shell, full marketplace UI
   This layer turns the MVP app-frame into a real public website while
   keeping the mobile PWA experience.
   ============================================================ */
:root {
  --maxw: 1180px;
  --site-pad: clamp(16px, 4vw, 40px);
  --hero-grad: radial-gradient(70% 60% at 80% 10%, rgba(184,255,44,.22), transparent 64%), radial-gradient(90% 70% at 5% 0%, rgba(84,224,255,.12), transparent 58%);
  --glass: rgba(18,24,25,.74);
}
body {
  background:
    radial-gradient(900px 520px at 80% -10%, rgba(184,255,44,.12), transparent 55%),
    radial-gradient(720px 500px at 0% 18%, rgba(84,224,255,.09), transparent 50%),
    linear-gradient(180deg, #070a0b 0%, #0a0e0f 38%, #080b0c 100%);
  overscroll-behavior-y: auto;
}
#outlet { min-height: calc(100vh - 170px); }
.screen { padding-left: var(--site-pad); padding-right: var(--site-pad); padding-bottom: calc(98px + var(--safe-bot)); }
@media (min-width: 920px) {
  .screen { padding-top: 28px; padding-bottom: 68px; }
}

/* Real website header */
.topbar {
  max-width: none;
  padding: calc(var(--safe-top) + 10px) var(--site-pad) 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(7,10,11,.92), rgba(7,10,11,.74));
}
.topbar__inner { width: min(var(--maxw), 100%); margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.brand { min-width: 156px; display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { width: 38px; height: 38px; border-radius: 13px; box-shadow: 0 0 34px rgba(184,255,44,.18); }
.brand__copy { display: grid; line-height: 1; }
.brand__name { font-weight: 900; font-size: 17px; letter-spacing: -.015em; color: var(--ink); }
.brand__name strong { font-family: var(--mono); color: var(--lime); font-size: 19px; }
.brand__tag { margin-top: 4px; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.site-nav { display: none; align-items: center; gap: 4px; padding: 4px; border: 1px solid rgba(255,255,255,.07); border-radius: var(--r-pill); background: rgba(255,255,255,.035); }
.site-nav a { padding: 9px 12px; color: var(--ink-2); font-weight: 750; font-size: 13px; border-radius: var(--r-pill); white-space: nowrap; }
.site-nav a[aria-current="page"] { color: var(--on-lime); background: var(--lime); }
.site-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar .right.row { margin-left: 0; }
@media (min-width: 920px) {
  .site-nav { display: flex; }
  .tabbar { display: none; }
  .toasts { bottom: 28px; }
}
@media (max-width: 520px) {
  .brand { min-width: 0; }
  .brand__tag { display: none; }
  .site-actions .lang { display: none; }
  .wpill small { display: none; }
}

/* Website footer */
.site-footer { display: none; border-top: 1px solid rgba(255,255,255,.06); background: rgba(5,8,9,.52); }
.site-footer__inner { width: min(var(--maxw), 100%); margin: 0 auto; padding: 32px var(--site-pad); display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 26px; }
.site-footer h3 { font-size: 13px; color: var(--ink); margin-bottom: 10px; }
.site-footer a, .site-footer p { display: block; color: var(--muted); font-size: 13px; margin: 7px 0; }
@media (min-width: 920px) { .site-footer { display: block; } }

/* Generic website layout */
.web-hero { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 32px; padding: clamp(22px, 5vw, 58px); background: var(--hero-grad), linear-gradient(135deg, rgba(18,24,25,.98), rgba(12,18,19,.84)); box-shadow: var(--sh-2); }
.web-hero::after { content: ""; position: absolute; right: -100px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(184,255,44,.15), transparent 67%); pointer-events: none; }
.web-hero > * { position: relative; z-index: 1; }
.web-hero__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 880px) { .web-hero__grid { grid-template-columns: 1.05fr .95fr; } }
.web-title { font-size: clamp(38px, 8vw, 82px); line-height: .93; font-weight: 950; letter-spacing: -.06em; }
.web-title .accent { color: var(--lime); text-shadow: 0 0 36px rgba(184,255,44,.28); }
.web-lead { max-width: 650px; color: var(--ink-2); font-size: clamp(16px, 2.1vw, 20px); line-height: 1.55; margin-top: 18px; }
.web-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.web-actions .btn { min-width: 170px; }
.hero-board { background: rgba(5,8,9,.52); border: 1px solid rgba(255,255,255,.08); border-radius: 26px; padding: 16px; backdrop-filter: blur(14px); }
.hero-board__screen { position: relative; min-height: 320px; border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #1d322e 0%, #0b1112 66%); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.06); }
.hero-board__screen .count { font-family: var(--mono); font-size: clamp(72px, 14vw, 136px); font-weight: 950; color: var(--lime); letter-spacing: -.08em; text-shadow: 0 0 45px rgba(184,255,44,.30); }
.hero-board__ticker { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 8px; }
.hero-bid { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(0,0,0,.34); border: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(10px); font-size: 13px; }
.hero-bid b { color: var(--lime); font-family: var(--mono); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 34px 0 14px; }
.section-head p { max-width: 620px; color: var(--muted); font-size: 14px; }
.web-grid { display: grid; gap: 14px; }
.web-grid--3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.web-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 780px) { .web-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .web-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.info-card { padding: 20px; min-height: 156px; background: linear-gradient(180deg, rgba(18,24,25,.96), rgba(16,22,23,.78)); border: 1px solid rgba(255,255,255,.07); border-radius: 24px; box-shadow: var(--sh-1); }
.info-card__icon { width: 42px; height: 42px; display: grid; place-content: center; border-radius: 14px; background: rgba(184,255,44,.12); color: var(--lime); font-weight: 900; margin-bottom: 14px; }
.info-card h3 { font-size: 17px; margin-bottom: 7px; }
.info-card p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Market */
.market-tools { display: grid; gap: 10px; margin: 14px 0 18px; }
@media (min-width: 760px) { .market-tools { grid-template-columns: 1.5fr .7fr .7fr; } }
.searchbox { position: relative; }
.searchbox::before { content: "⌕"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 20px; }
.searchbox .input { padding-left: 44px; }
.catalog-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 560px) { .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.product-card { display: grid; overflow: hidden; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.product-card__media { aspect-ratio: 4/3; background: var(--surface-3); display: grid; place-content: center; overflow: hidden; position: relative; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 14px; display: grid; gap: 8px; }
.product-card__title { font-size: 16px; font-weight: 800; line-height: 1.2; min-height: 38px; }
.product-card__price { color: var(--lime); font-family: var(--mono); font-weight: 900; }
.product-card__seller { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }

/* Profile and dashboards */
.profile-grid { display: grid; gap: 16px; }
@media (min-width: 880px) { .profile-grid { grid-template-columns: 360px 1fr; align-items: start; } }
.identity-card { position: sticky; top: 88px; }
.avatar-xl { width: 74px; height: 74px; border-radius: 24px; background: radial-gradient(circle at 30% 20%, rgba(184,255,44,.35), rgba(18,24,25,1)); display: grid; place-content: center; color: var(--lime); font-size: 28px; font-weight: 950; font-family: var(--mono); border: 1px solid rgba(184,255,44,.22); }
.form-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .span2 { grid-column: 1 / -1; } }
.progress-steps { display: grid; gap: 10px; }
.progress-step { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 16px; }
.progress-step .n { width: 30px; height: 30px; border-radius: 10px; display: grid; place-content: center; background: rgba(184,255,44,.12); color: var(--lime); font-weight: 900; }
.progress-step.done .n { background: var(--lime); color: var(--on-lime); }

/* Admin risk */
.risk-meter { height: 8px; overflow: hidden; background: var(--surface-3); border-radius: 999px; }
.risk-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--amber), var(--red)); border-radius: inherit; }
.user-table { width: 100%; border-collapse: collapse; }
.user-table th, .user-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line-soft); font-size: 13px; vertical-align: middle; }
.user-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.table-wrap { overflow-x: auto; }

/* Helpful page blocks */
.timeline { display: grid; gap: 14px; counter-reset: step; }
.timeline .info-card { position: relative; padding-left: 72px; }
.timeline .info-card::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 22px; width: 36px; height: 36px; border-radius: 13px; display: grid; place-content: center; background: var(--lime); color: var(--on-lime); font-family: var(--mono); font-weight: 950; }
.support-card { display: grid; gap: 12px; }
.notice { border: 1px solid rgba(255,210,62,.22); background: rgba(255,210,62,.08); color: #ffe889; border-radius: 18px; padding: 14px; }

/* Make old app components more website-ready */
.sc-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) { .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .sc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.land { display: none; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

@media (max-width: 919px) {
  .web-hero { border-radius: 24px; }
  .web-title { letter-spacing: -.045em; }
  .site-footer { display: none; }
}
.web-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 780px) { .web-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
