/* CSxStore Navy & Gold 1.0 — shared visual language with the link checker.
   Presentation only. Existing actions, routes, forms and data hooks are retained. */
:root {
  color-scheme: dark;
  --bg:#040d19; --bg-soft:#071426; --panel:#0b1d32; --panel-2:#10263d;
  --line:rgba(174,217,255,.17); --text:#f1f9ff; --muted:#9db4c9;
  --brand:#f2c14e; --brand-2:#d79b2b; --brand-soft:rgba(242,193,78,.10);
  --good:#68df9c; --warn:#ffc169; --danger:#ff93a4;
  --header:rgba(5,16,30,.94); --radius:24px;
  --shadow:0 20px 55px rgba(0,0,0,.23);
  --glow:0 0 0 1px rgba(242,193,78,.2),0 16px 42px rgba(215,155,43,.12);
  --gold-ink:#f4cf68; --button-ink:#07111c;
  --surface:linear-gradient(145deg,rgba(13,34,58,.96),rgba(7,20,37,.96));
}
html[data-theme="light"] {
  color-scheme:light;
  --bg:#f7f5ef; --bg-soft:#eeede7; --panel:#fffefb; --panel-2:#f3f0e7;
  --line:#d9d6cd; --text:#102238; --muted:#52657a;
  --brand:#9a6708; --brand-2:#bf8922; --brand-soft:rgba(174,121,24,.09);
  --good:#167448; --warn:#8e5c0b; --danger:#b32e49;
  --header:rgba(255,254,249,.96); --gold-ink:#845807;
  --surface:linear-gradient(145deg,#fffefa,#f7f5ef);
  --shadow:0 16px 40px rgba(35,42,50,.07);
}
body.store-body { background:radial-gradient(ellipse at 0 0,rgba(164,112,17,.12),transparent 38%),radial-gradient(ellipse at 100% 25%,rgba(27,70,108,.12),transparent 35%),var(--bg); }
body.store-body:before { z-index:0; background-image:linear-gradient(rgba(141,163,186,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(141,163,186,.025) 1px,transparent 1px); background-size:42px 42px; mask-image:linear-gradient(#000,transparent 85%); }
.store-body>main,.store-footer,.flash-wrap { position:relative; }
.store-container { width:min(1240px,calc(100% - 48px)); }
.store-header.profile-header { border-bottom:1px solid var(--line); background:var(--header); box-shadow:0 8px 35px rgba(0,0,0,.08); }
.profile-nav-wrap { min-height:94px; }
.csx-header-logo { height:auto; width:218px; max-width:100%; filter:drop-shadow(0 4px 14px rgba(215,155,43,.13)); }
.header-actions { gap:12px; }
.header-theme-toggle { height:44px; border-radius:13px; background:var(--bg-soft); color:var(--muted); }
.profile-trigger { border-radius:15px; background:var(--panel); border-color:var(--line); }
.profile-avatar,.profile-card-avatar { background:linear-gradient(135deg,#f4cf68,#d79b2b); color:var(--button-ink); box-shadow:none; }
.profile-avatar.guest,.profile-card-avatar.guest { background:var(--brand-soft); color:var(--gold-ink); }
.profile-dropdown { background:var(--panel); border-color:var(--line); border-radius:22px; box-shadow:0 22px 65px rgba(0,0,0,.25); }
.profile-section-title,.profile-link-icon { color:var(--gold-ink); }
.profile-links a.active,.profile-links a:hover { background:var(--brand-soft); color:var(--text); }
.profile-create { color:var(--button-ink); background:linear-gradient(135deg,#f4cf68,#d79b2b); box-shadow:0 6px 20px rgba(215,155,43,.18); }
.profile-login,.profile-signout { border-radius:12px; }

/* Hero uses the same framed navy surface as the extension header. */
.hero.premium-hero { padding:34px 0 20px; overflow:visible; }
.premium-hero .hero-grid { grid-template-columns:minmax(0,1.6fr) minmax(260px,.8fr)!important; align-items:center; gap:50px; padding:48px; border:1px solid var(--line); border-radius:28px; background:radial-gradient(ellipse at 100% 0,rgba(215,155,43,.06),transparent 45%),var(--surface); box-shadow:var(--shadow),inset 0 1px 0 rgba(255,255,255,.04); }
.premium-hero .hero-ambient { display:none; }
.premium-hero h1 { max-width:730px; margin:18px 0; font-size:clamp(38px,4.5vw,60px); letter-spacing:-.055em; line-height:1.06; }
.premium-hero h1 .gradient-text { display:block; color:var(--gold-ink); background:none; -webkit-text-fill-color:currentColor; }
.eyebrow { color:var(--gold-ink); letter-spacing:.14em; font-size:10px; font-weight:850; }
.pulse-dot { background:var(--good); box-shadow:0 0 0 5px color-mix(in srgb,var(--good) 10%,transparent); animation:none; }
.premium-hero p { color:var(--muted); max-width:620px; font-size:15px; line-height:1.75; }
.premium-hero .hero-copy { min-width:0; }
.hero-search { max-width:730px; margin-top:26px; gap:9px; }
.hero-search .store-input { min-width:0; }
.hero-search .store-input.big { min-height:54px; border-radius:14px; background:var(--bg-soft); font-size:13px; box-shadow:none; }
.hero-search .store-btn { min-width:144px; min-height:54px; }
.hero-search .store-btn>.csx-icon:last-child { display:none; }
.hero-feature-chips { gap:8px; margin-top:18px; }
.hero-feature-chips>span { border:1px solid var(--line); background:var(--bg-soft); color:var(--muted); border-radius:999px; font-size:10px; padding:7px 10px; }
.hero-feature-chips .csx-icon { color:var(--gold-ink); width:14px; height:14px; }
.hero-actions .store-btn { min-height:42px; font-size:12px; }
.csx-hero-guide { border-inline-start:1px solid var(--line); padding-inline-start:32px; min-width:0; }
.csx-guide-brand { display:flex; align-items:center; gap:13px; padding-bottom:22px; margin-bottom:5px; }
.csx-guide-brand img { width:66px; height:66px; object-fit:contain; filter:drop-shadow(0 6px 13px rgba(215,155,43,.15)); }
.csx-guide-brand strong { display:block; color:var(--text); font-size:18px; letter-spacing:-.035em; }
.csx-guide-brand small { display:block; color:var(--muted); margin-top:5px; font-size:11px; }
.csx-guide-link { display:flex; align-items:center; gap:12px; padding:15px 0; border-top:1px solid var(--line); text-decoration:none; color:var(--text); }
.csx-guide-icon { flex:0 0 38px; display:grid; place-items:center; width:38px; height:38px; border:1px solid rgba(242,193,78,.2); border-radius:12px; color:var(--gold-ink); background:var(--brand-soft); }
.csx-guide-icon .csx-icon { width:18px; height:18px; }
.csx-guide-link strong { display:block; font-size:12px; }
.csx-guide-link small { display:block; color:var(--muted); font-size:10px; margin-top:4px; }
.csx-guide-link>.csx-icon { width:15px; height:15px; margin-inline-start:auto; color:var(--muted); }
.csx-guide-link:hover strong { color:var(--gold-ink); }

/* Common controls; success and destructive actions retain their meaning. */
.store-btn { border:1px solid transparent; border-radius:13px; padding:12px 19px; min-height:44px; color:var(--button-ink); background:linear-gradient(135deg,#f4cf68,#d79b2b); font-weight:800; box-shadow:0 8px 24px rgba(215,155,43,.17); }
.store-btn:hover:not(:disabled) { filter:brightness(1.05); box-shadow:0 10px 30px rgba(215,155,43,.22); }
.store-btn.secondary,.store-btn.ghost { color:var(--gold-ink); background:var(--bg-soft); border:1px solid color-mix(in srgb,var(--brand) 32%,var(--line)); box-shadow:none; }
.store-btn.good { background:var(--good); color:#062517; }
.store-btn.danger { background:var(--danger); color:#430d18; }
html[data-theme="light"] .store-btn.good,html[data-theme="light"] .store-btn.danger { color:#fff; }
.store-btn.small { min-height:40px; padding:9px 15px; font-size:12px; }
.store-btn:disabled { opacity:.45; box-shadow:none; cursor:not-allowed; }
.store-input,.store-select,.store-textarea { border-color:var(--line); border-radius:12px; color:var(--text); background:var(--bg-soft); padding:12px 14px; }
.store-input::placeholder,.store-textarea::placeholder { color:var(--muted); opacity:.8; }
.store-input:focus,.store-select:focus,.store-textarea:focus { border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-soft); }
input[type="checkbox"],input[type="radio"] { accent-color:var(--brand); }
:where(a,button,input,select,textarea,summary):focus-visible { outline:2px solid var(--brand); outline-offset:4px; }
.search-suggestions { background:var(--panel); border-color:var(--line); border-radius:14px; }
.search-suggestions a:hover { background:var(--brand-soft); }
.search-suggestions strong { color:var(--gold-ink); }

/* Catalog */
.section { padding:36px 0; }
.section-head { margin-bottom:24px; gap:20px; }
.section-head h1,.section-head h2 { font-size:clamp(26px,3vw,36px); letter-spacing:-.045em; line-height:1.15; margin-top:8px; }
.catalog-heading p { font-size:13px; }
.catalog-count { border:1px solid var(--line); background:var(--panel); color:var(--muted); border-radius:999px; padding:10px 14px; font-size:12px; white-space:nowrap; }
.modern-filter-panel { background:var(--surface); border-color:var(--line); border-radius:22px; padding:22px; box-shadow:var(--shadow); }
.product-grid.marketplace-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.product-card { border:1px solid var(--line); border-radius:22px; background:var(--surface); box-shadow:0 10px 30px rgba(0,0,0,.12); overflow:hidden; }
.product-card:hover { border-color:color-mix(in srgb,var(--brand) 42%,var(--line)); box-shadow:var(--shadow); }
.product-image-wrap { aspect-ratio:16/9; background:var(--bg-soft); border-bottom:1px solid var(--line); }
.product-image { object-fit:cover; }
.marketplace-grid .product-content { padding:20px; }
.mini-kicker { color:var(--muted); font-size:9px; letter-spacing:.10em; }
.marketplace-grid .product-content h3 { margin:9px 0; font-size:18px; line-height:1.35; letter-spacing:-.025em; }
.product-content h3 a { color:var(--text); }
.product-content h3 a:hover { color:var(--gold-ink); }
.marketplace-grid .product-desc { font-size:12px; line-height:1.6; min-height:58px; -webkit-line-clamp:3; }
.rating-line { font-size:11px; color:var(--muted); }
.rating-star.filled { color:var(--gold-ink); }
.sales-signals { color:var(--muted); font-size:10px; border-bottom:1px solid var(--line); padding-bottom:13px; margin-bottom:14px; }
.price,.marketplace-grid .price { color:var(--gold-ink); font-size:25px; font-weight:850; letter-spacing:-.045em; }
.price-old { color:var(--muted); font-size:12px; }
.stock { font-size:10px; border-radius:999px; padding:5px 8px; background:var(--bg-soft); color:var(--muted); }
.stock.ok { color:var(--good); background:color-mix(in srgb,var(--good) 9%,transparent); }
.stock.low { color:var(--warn); background:color-mix(in srgb,var(--warn) 9%,transparent); }
.marketplace-grid .product-actions { grid-template-columns:1fr 1fr; gap:9px; margin-top:18px; }
.marketplace-grid .store-btn.small { font-size:12px; padding:9px 12px; min-height:42px; }
.product-badge { border:1px solid rgba(242,193,78,.3); background:#081626; color:#f4cf68; border-radius:999px; font-size:10px; }
.featured-badge { background:linear-gradient(135deg,#f4cf68,#d79b2b); color:#07111c; border-radius:999px; }
.wishlist-btn { color:#f1f9ff; background:rgba(5,17,32,.85); border-color:rgba(174,217,255,.25); }
.wishlist-btn.saved { color:#f4cf68; }
.load-more-btn { min-width:230px; border-radius:14px; }
.pagination-store a { border-radius:11px; }
.pagination-store a.active { color:var(--button-ink); background:linear-gradient(135deg,#f4cf68,#d79b2b); }

/* Product, account, wallet, checkout, and support surfaces. */
.trust-card,.store-card,.auth-card,.dash-card,.payment-card,.checkout-panel,.support-card,.account-card,
.feature-tile,.order-card,.product-info-card,.product-buy-panel { background:var(--surface); border-color:var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.dash-card { padding:24px; position:relative; overflow:hidden; }
.dash-card:after { content:""; position:absolute; width:80px; height:80px; border-radius:50%; background:var(--brand-soft); inset-inline-end:-24px; bottom:-40px; pointer-events:none; }
.dash-label { color:var(--muted); font-size:11px; letter-spacing:.05em; }
.dash-value { color:var(--gold-ink); font-variant-numeric:tabular-nums; letter-spacing:-.04em; }
.auth-card { padding:34px; }
.auth-card h1,.dashboard-head h1 { letter-spacing:-.045em; }
.auth-switch a { color:var(--gold-ink); }
.credential-box { border-color:var(--line); background:var(--bg-soft); border-radius:15px; }
.payment-tabs button.active,.tab-btn.active { color:var(--button-ink); background:linear-gradient(135deg,#f4cf68,#d79b2b); }
.feature-tile { padding:25px; }
.feature-tile>span { color:var(--gold-ink); background:var(--brand-soft); border:1px solid color-mix(in srgb,var(--brand) 24%,var(--line)); border-radius:14px; box-shadow:none; }
.feature-tile h3 { font-size:16px; letter-spacing:-.02em; }
.feature-tile p,.seo-copy-section p { line-height:1.75; }
.faq-list details { background:var(--surface); border-color:var(--line); border-radius:16px; }
.faq-list summary { color:var(--text); }
.modern-footer { margin-top:28px; background:linear-gradient(180deg,var(--panel),var(--bg)); border-top:1px solid var(--line); }
.footer-grid { gap:38px; }
.csx-footer-logo { height:auto; width:224px; max-width:100%; }
.footer-grid>div>strong { font-size:12px; color:var(--gold-ink); letter-spacing:.04em; }
.footer-links a:hover { color:var(--gold-ink); }
.footer-badges span { border-color:var(--line); background:var(--bg-soft); color:var(--muted); }
.footer-bottom { border-top-color:var(--line); color:var(--muted); }
.loader-orbit span { border-color:var(--brand); }
.page-loader { background:var(--bg); }
.pwa-install { background:linear-gradient(135deg,#f4cf68,#d79b2b); color:#07111c; border-color:#d79b2b; }

@media(max-width:1050px) {
  .premium-hero .hero-grid { gap:28px; padding:36px; grid-template-columns:minmax(0,1.45fr) minmax(220px,.75fr)!important; }
  .csx-hero-guide { padding-inline-start:22px; }
  .hero-search { grid-template-columns:1fr; }
}
@media(max-width:800px) {
  .store-container { width:calc(100% - 32px); }
  .profile-nav-wrap { min-height:80px; }
  .csx-header-logo { width:186px; }
  .premium-hero .hero-grid { grid-template-columns:minmax(0,1fr)!important; padding:30px; gap:28px; }
  .premium-hero h1 { max-width:620px; font-size:clamp(36px,7vw,48px); }
  .hero-search { grid-template-columns:minmax(0,1fr) auto; }
  .csx-hero-guide { border-inline-start:0; border-top:1px solid var(--line); padding:20px 0 0; display:flex; flex-wrap:wrap; gap:15px; }
  .csx-guide-brand { display:none; }
  .csx-guide-link { flex:1 1 150px; border:0; padding:0; }
  .csx-guide-link>.csx-icon { display:none; }
  .product-grid.marketplace-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
  .marketplace-grid .product-content { padding:17px; }
  .marketplace-grid .product-content h3 { font-size:16px; }
  .marketplace-grid .price { font-size:23px; }
  .feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:540px) {
  .store-container { width:calc(100% - 28px); }
  .profile-nav-wrap { min-height:76px; gap:12px; }
  .header-actions { gap:8px; }
  .csx-header-logo { width:163px; }
  .header-theme-toggle { width:40px; height:40px; padding:0; }
  .profile-trigger { min-width:44px; min-height:44px; }
  .hero.premium-hero { padding:20px 0 8px; }
  .premium-hero .hero-grid { padding:25px 20px; border-radius:22px; }
  .premium-hero h1 { font-size:36px; }
  .premium-hero p { font-size:13px; }
  .hero-search { grid-template-columns:1fr; }
  .hero-search .store-input.big { font-size:12px; }
  .hero-feature-chips>span { font-size:9px; padding:6px 8px; }
  .csx-guide-link { flex:1 1 100%; }
  .csx-guide-link small { font-size:11px; }
  .catalog-heading { align-items:flex-start; }
  .catalog-head-actions { gap:8px; flex-wrap:wrap; }
  .section { padding:26px 0; }
  .section-head h2 { font-size:27px; }
  .product-grid.marketplace-grid { grid-template-columns:minmax(0,1fr); gap:18px; }
  .marketplace-grid .product-content { padding:20px; }
  .marketplace-grid .product-content h3 { font-size:19px; }
  .marketplace-grid .product-desc { min-height:0; }
  .feature-grid { grid-template-columns:minmax(0,1fr); }
  .auth-card { padding:25px 20px; }
  .profile-dropdown { inset-inline:14px; top:82px; }
  .modern-filter-panel { padding:18px; }
}
@media(prefers-reduced-motion:reduce) {
  .store-body *, .store-body *:before, .store-body *:after { scroll-behavior:auto!important; animation:none!important; transition:none!important; }
}
