/* SG Trade Pro — Light Marketplace Theme v1.0
   Visual-only global layer. Keeps existing PHP/business logic intact. */
:root{
  --bg:#f3f7fa;
  --panel:#ffffff;
  --panel2:#f8fbfd;
  --line:#d9e4eb;
  --text:#15242f;
  --muted:#637786;
  --cyan:#168cc8;
  --green:#18a86b;
  --gold:#b98519;
  --danger:#cf4b50;
}
html{background:#eef4f7}
body{
  color:var(--text);
  background:
    radial-gradient(circle at 10% 2%,rgba(117,188,225,.20),transparent 31%),
    radial-gradient(circle at 92% 4%,rgba(108,207,175,.18),transparent 29%),
    linear-gradient(180deg,#f9fcfe 0%,#eef4f7 46%,#f7fafc 100%);
  background-attachment:fixed;
}
.gridfx{
  opacity:.34;
  background-image:
    linear-gradient(rgba(68,104,126,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(68,104,126,.055) 1px,transparent 1px);
  background-size:46px 46px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.55),transparent 72%);
}
.nav{
  background:rgba(250,253,255,.82);
  border-bottom:1px solid rgba(116,145,163,.24);
  box-shadow:0 8px 28px rgba(39,67,84,.07);
  backdrop-filter:blur(20px) saturate(145%);
}
.nav nav,.main-nav{color:#415969}
.nav nav a,.main-nav a,.ghost{color:#344e5e}
.nav nav a:hover,.main-nav a:hover,.ghost:hover{color:#0e7eaf}
.btn{
  background:linear-gradient(135deg,#218fc5,#21b783);
  color:#fff;
  box-shadow:0 10px 28px rgba(26,137,171,.19);
}
.secondary{
  color:#244353;
  background:rgba(255,255,255,.72);
  border-color:#d2e0e8;
  box-shadow:0 8px 24px rgba(44,70,84,.06);
}
.kicker{
  color:#126f91;
  background:rgba(227,245,251,.82);
  border-color:#c4e2ec;
}
.lead,.muted{color:#687d8b}
.grad{background:linear-gradient(90deg,#1387bd,#1ba76d);-webkit-background-clip:text;color:transparent}

/* Shared light glass surfaces */
.form-shell,.card,.panel,.box,.faq,.license-box,.checkout-box,.dashboard-card{
  background:rgba(255,255,255,.78)!important;
  border-color:rgba(157,181,195,.38)!important;
  box-shadow:0 22px 60px rgba(40,68,83,.10)!important;
  backdrop-filter:blur(18px) saturate(130%);
}
.form-shell{
  margin:54px auto 70px;
  padding:32px;
  border:1px solid rgba(155,181,196,.42);
  border-radius:22px;
}
.form-shell h1{color:#172b37}
.form-shell label{color:#344e5d}
input,textarea,select{
  color:#1a303d!important;
  background:rgba(255,255,255,.92)!important;
  border-color:#cfdde5!important;
  box-shadow:inset 0 1px 2px rgba(32,57,70,.03);
}
input:focus,textarea:focus,select:focus{
  outline:2px solid rgba(31,153,195,.19);
  border-color:#5fafd1!important;
}
.form-shell a[style*="#b8f7ff"],
.form-shell a[style*="#8bf7ff"]{color:#137fae!important}
.flash{box-shadow:0 12px 30px rgba(42,69,83,.09)}
.flash.success{background:#eaf8f1;color:#176844;border-color:#bce7d2}
.flash.error{background:#fff0f0;color:#9b383d;border-color:#efc4c6}

/* Product/catalog copy on a light site shell */
.section-head h1,.section-head h2,.section h2,.wrap h1,.wrap h2,.wrap h3{color:#162b38}
.card p,.section-head p{color:#697e8c}
.pill{background:#eaf6f1!important;color:#15724b!important;border-color:#c5e7d7!important}

/* Mega navigation */
.mega-menu{
  background:rgba(255,255,255,.97)!important;
  border-color:#d9e5ec!important;
  box-shadow:0 22px 60px rgba(40,65,78,.15)!important;
}
.mega-title{color:#718493!important}
.mega-menu a{color:#2f4c5c!important}
.mega-menu a:hover{background:#eef7fb!important;color:#0f79a8!important}

/* Footer */
footer{
  background:rgba(244,249,252,.84)!important;
  border-top:1px solid #d8e4eb!important;
  color:#405968!important;
  backdrop-filter:blur(14px);
}
footer a{color:#496373}
footer strong{color:#182f3d}

/* Keep image/chart stages intentionally dark where contrast is part of the product preview. */
.main-product-shot,.product-thumb,.chart,.terminal{color:#edf8fb}

/* Phase 4 seller onboarding */
.seller-onboarding{width:min(920px,calc(100% - 32px));margin:46px auto 72px}
.onboarding-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:22px 0 26px}
.onboarding-step{padding:13px;border-radius:14px;background:rgba(255,255,255,.66);border:1px solid #d7e4eb;color:#6a7f8d;font-size:12px;font-weight:800}
.onboarding-step.active{background:#e8f6fb;border-color:#b9ddea;color:#126f96}
.onboarding-step.done{background:#eaf8f1;border-color:#bee7d3;color:#176e49}
.seller-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.seller-form-grid .full{grid-column:1/-1}
.seller-form-grid label{display:block;font-weight:700;color:#385160}
.seller-form-grid input,.seller-form-grid textarea,.seller-form-grid select{width:100%;margin-top:7px}
.verification-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0}
.verify-card{padding:18px;border-radius:18px;background:rgba(255,255,255,.72);border:1px solid #d6e3ea;box-shadow:0 14px 36px rgba(43,70,84,.07)}
.verify-card strong{display:block;margin-bottom:6px;color:#1e3745}.verify-card p{margin:0;color:#718391;font-size:13px;line-height:1.55}
.status-dot{display:inline-flex;align-items:center;gap:7px;margin-top:12px;padding:6px 9px;border-radius:999px;background:#f2f5f7;color:#627481;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.5px}
.status-dot.ok{background:#e6f7ef;color:#157349}.status-dot.pending{background:#fff7e6;color:#8b651b}.status-dot.blocked{background:#fff0f0;color:#a03f44}
.privacy-note{padding:16px 18px;border-radius:16px;background:rgba(238,248,252,.86);border:1px solid #cce3ed;color:#496777;line-height:1.6;font-size:13px}

@media(max-width:900px){
  .nav{padding-left:18px;padding-right:18px}
  .onboarding-steps{grid-template-columns:1fr 1fr}
  .verification-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
  .form-shell{margin:28px 16px 48px;padding:24px 18px}
  .seller-form-grid{grid-template-columns:1fr}
  .seller-form-grid .full{grid-column:auto}
  .onboarding-steps{grid-template-columns:1fr}
}


/* Phase 4.1 — Seller profile width, centering and comprehensive location form */
.seller-onboarding-wide{width:min(1120px,calc(100% - 48px));margin:42px auto 80px}
.seller-onboarding-wide .onboarding-steps{width:100%;margin:0 0 18px}
.seller-form-shell{width:100%;max-width:none!important;margin:0!important;padding:38px 42px!important;border-radius:26px!important}
.seller-form-heading{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:32px;align-items:start;margin-bottom:28px}
.seller-form-heading h1{font-size:clamp(32px,4vw,48px);line-height:1.05;margin:10px 0 12px}
.seller-form-heading .muted{max-width:690px;font-size:15px;line-height:1.65}
.seller-help-card{padding:18px 20px;border:1px solid #d4e3ea;border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(236,247,251,.72));box-shadow:0 12px 32px rgba(41,73,89,.07)}
.seller-help-card strong{display:block;color:#1c3b4a;margin-bottom:7px}.seller-help-card span{font-size:13px;line-height:1.5;color:#607784}
.seller-section-title{display:flex;align-items:baseline;gap:12px;margin:30px 0 14px;padding-top:22px;border-top:1px solid rgba(158,185,199,.34)}
.seller-section-title:first-of-type{margin-top:0;padding-top:0;border-top:0}
.seller-section-title strong{font-size:17px;color:#173442}.seller-section-title span{font-size:12px;color:#738794}
.seller-form-grid{gap:18px 20px}
.seller-form-grid input,.seller-form-grid select,.seller-form-grid textarea{min-height:46px;padding:11px 13px;border-radius:12px}
.seller-form-grid textarea{min-height:130px;resize:vertical}
.location-note{margin-top:12px;padding:12px 14px;border-radius:12px;background:#f3f9fc;border:1px solid #d8e9f0;color:#5f7684;font-size:12px;line-height:1.55}
.seller-terms-row{display:flex!important;gap:12px;align-items:flex-start;margin-top:24px;padding:16px 18px;border:1px solid #dbe6ec;border-radius:15px;background:rgba(255,255,255,.55);font-weight:600!important;line-height:1.45}
.seller-terms-row input{width:auto!important;min-height:0!important;margin-top:3px}
.seller-continue-btn{display:block;width:100%;min-height:50px;margin-top:22px;font-size:15px;font-weight:800}

@media(max-width:980px){
  .seller-onboarding-wide{width:min(94%,920px);margin-top:28px}
  .seller-form-shell{padding:30px 28px!important}
  .seller-form-heading{grid-template-columns:1fr}
  .seller-help-card{max-width:none}
}
@media(max-width:700px){
  .seller-onboarding-wide{width:calc(100% - 24px);margin:20px auto 52px}
  .seller-form-shell{padding:24px 18px!important;border-radius:20px!important}
  .seller-section-title{display:block}.seller-section-title span{display:block;margin-top:5px}
}


/* Phase 4.7 — Identity & Payout Setup full-width layout */
.seller-verification-wide{
  width:min(1440px,calc(100% - 64px));
  margin:38px auto 72px;
}
.seller-verification-wide .onboarding-steps{
  width:100%;
  margin:0 0 18px;
}
.seller-verification-shell{
  width:100%;
  max-width:none!important;
  margin:0!important;
  padding:40px 46px!important;
  border-radius:26px!important;
}
.seller-verification-shell>h1{
  font-size:clamp(32px,3.2vw,48px);
  line-height:1.06;
  margin:10px 0 12px;
}
.seller-verification-shell>.muted{
  max-width:980px;
  font-size:15px;
  line-height:1.65;
}
.seller-verification-shell .verification-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  margin:30px 0 24px;
}
.seller-verification-shell .verify-card{
  min-height:210px;
  padding:26px 28px;
  border-radius:20px;
}
.seller-verification-shell .verify-card strong{
  font-size:18px;
  margin-bottom:10px;
}
.seller-verification-shell .verify-card p{
  font-size:14px;
  line-height:1.65;
}
.seller-verification-shell .privacy-note{
  width:100%;
  padding:20px 22px;
  font-size:14px;
}
.seller-verification-shell .cta{
  justify-content:flex-end;
  gap:12px;
}

@media(max-width:980px){
  .seller-verification-wide{width:min(94%,920px);margin-top:28px}
  .seller-verification-shell{padding:30px 28px!important}
  .seller-verification-shell .verification-grid{grid-template-columns:1fr;gap:14px}
  .seller-verification-shell .verify-card{min-height:0}
}
@media(max-width:700px){
  .seller-verification-wide{width:calc(100% - 24px);margin:20px auto 52px}
  .seller-verification-shell{padding:24px 18px!important;border-radius:20px!important}
  .seller-verification-shell .cta{justify-content:stretch}
  .seller-verification-shell .cta a{width:100%;text-align:center}
}
