/* MOOSIZE seller pages: home, audit, pricing, account. Builds on moosize.css tokens. */

:root {
  --sx-good: #2fd38a;
  --sx-warn: #ffb547;
  --sx-bad: #ff5f7a;
  --sx-card: rgba(255, 255, 255, 0.045);
  --sx-card-strong: rgba(255, 255, 255, 0.075);
  --sx-line: rgba(255, 255, 255, 0.1);
}

.sx-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }

/* Header */
.sx-header { position: sticky; top: 0; z-index: 30; background: rgba(3, 5, 18, 0.82); backdrop-filter: blur(16px); border-bottom: 1px solid var(--sx-line); }
.sx-nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.sx-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: 0.04em; }
.sx-brand img { width: 34px; height: 34px; border-radius: 9px; }
.sx-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sx-links a { text-decoration: none; color: var(--mz-muted); font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 10px; }
.sx-links a:hover, .sx-links a[aria-current="page"] { color: var(--mz-text); background: rgba(255, 255, 255, 0.06); }
.sx-account-pill { display: inline-flex; align-items: center; gap: 8px; }

/* Buttons and inputs */
.sx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font-weight: 750; font-size: 1rem; padding: 14px 22px; border-radius: 14px; color: #fff; background: var(--mz-gradient); box-shadow: var(--mz-glow); transition: transform 0.15s ease, opacity 0.15s ease; }
.sx-btn:hover { transform: translateY(-1px); }
.sx-btn:disabled { opacity: 0.55; cursor: progress; transform: none; }
.sx-btn--ghost { background: rgba(255, 255, 255, 0.07); box-shadow: none; border: 1px solid var(--sx-line); }
.sx-btn--small { padding: 9px 14px; font-size: 0.9rem; border-radius: 11px; }
.sx-input { width: 100%; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--sx-line); background: rgba(0, 0, 0, 0.35); color: var(--mz-text); font-size: 1.02rem; outline: none; }
.sx-input:focus { border-color: #8a6bff; box-shadow: 0 0 0 4px rgba(122, 76, 255, 0.25); }

/* Hero */
.sx-hero { padding: 76px 0 40px; text-align: center; }
.sx-eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 999px; background: rgba(122, 76, 255, 0.14); border: 1px solid rgba(122, 76, 255, 0.35); color: #c9b8ff; font-weight: 700; font-size: 0.86rem; }
.sx-hero h1 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); line-height: 1.04; letter-spacing: -0.035em; margin: 22px auto 16px; max-width: 900px; }
.sx-hero h1 em { font-style: normal; background: var(--mz-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sx-lead { color: var(--mz-muted); font-size: 1.16rem; line-height: 1.6; max-width: 680px; margin: 0 auto; }
.sx-audit-form { display: flex; gap: 10px; max-width: 620px; margin: 30px auto 12px; }
.sx-audit-form .sx-input { flex: 1; }
.sx-fineprint { color: var(--mz-muted); font-size: 0.88rem; }
.sx-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px auto 0; max-width: 760px; }
.sx-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--sx-line); background: var(--sx-card); color: var(--mz-muted); font-size: 0.86rem; font-weight: 600; }

/* Sections and cards */
.sx-section { padding: 56px 0; }
.sx-section h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -0.025em; margin: 0 0 10px; }
.sx-section > .sx-shell > p.sx-sub { color: var(--mz-muted); margin: 0 0 28px; font-size: 1.05rem; line-height: 1.6; max-width: 720px; }
.sx-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sx-card { background: var(--sx-card); border: 1px solid var(--sx-line); border-radius: 20px; padding: 22px; }
.sx-card h3 { margin: 6px 0 8px; font-size: 1.12rem; }
.sx-card p { margin: 0; color: var(--mz-muted); line-height: 1.55; }
.sx-card .sx-icon { font-size: 1.6rem; }
.sx-tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; background: rgba(47, 211, 138, 0.14); color: var(--sx-good); }
.sx-tag--soon { background: rgba(255, 181, 71, 0.14); color: var(--sx-warn); }
.sx-steps { counter-reset: step; }
.sx-steps .sx-card::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--mz-gradient); font-weight: 800; }

/* Audit report */
.sx-report { display: none; padding: 10px 0 60px; }
.sx-report.is-ready { display: block; }
.sx-summary { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; background: var(--sx-card-strong); border: 1px solid var(--sx-line); border-radius: 24px; padding: 26px; }
.sx-score { width: 190px; height: 190px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; background: conic-gradient(var(--score-colour, #8a6bff) calc(var(--score, 0) * 1%), rgba(255, 255, 255, 0.08) 0); position: relative; }
.sx-score::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--mz-bg); }
.sx-score span { position: relative; z-index: 1; text-align: center; }
.sx-score strong { display: block; font-size: 3.2rem; letter-spacing: -0.04em; line-height: 1; }
.sx-score small { color: var(--mz-muted); font-weight: 700; }
.sx-shopline { display: flex; align-items: center; gap: 12px; }
.sx-shopline img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; }
.sx-shopline h2 { margin: 0; font-size: 1.6rem; }
.sx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.sx-stat { background: rgba(0, 0, 0, 0.25); border-radius: 14px; padding: 12px; }
.sx-stat b { display: block; font-size: 1.3rem; }
.sx-stat span { color: var(--mz-muted); font-size: 0.82rem; }
.sx-fix { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; }
.sx-fix .sx-share { font-size: 1.5rem; font-weight: 800; color: var(--sx-warn); }
.sx-fix .sx-share small { display: block; font-size: 0.72rem; color: var(--mz-muted); font-weight: 700; }
.sx-fix h3 { margin: 0 0 6px; }
.sx-fix p { margin: 0 0 6px; }
.sx-fix .sx-how { color: var(--mz-text); }
.sx-listings { width: 100%; border-collapse: collapse; }
.sx-listings td, .sx-listings th { padding: 12px 10px; border-bottom: 1px solid var(--sx-line); text-align: left; vertical-align: middle; font-size: 0.93rem; }
.sx-listings th { color: var(--mz-muted); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.sx-listings img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; display: block; }
.sx-listings a { color: var(--mz-text); }
.sx-pill { display: inline-block; margin: 2px 4px 2px 0; padding: 3px 8px; border-radius: 8px; background: rgba(255, 95, 122, 0.12); color: #ff9db0; font-size: 0.76rem; font-weight: 700; }
.sx-badge-score { display: inline-grid; place-items: center; min-width: 42px; padding: 5px 8px; border-radius: 10px; font-weight: 800; }
.sx-good { color: var(--sx-good); }
.sx-warn { color: var(--sx-warn); }
.sx-bad { color: var(--sx-bad); }
.sx-loading { text-align: center; padding: 48px 0; color: var(--mz-muted); }
.sx-spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.12); border-top-color: #8a6bff; animation: sx-spin 0.9s linear infinite; margin: 0 auto 14px; }
@keyframes sx-spin { to { transform: rotate(360deg); } }
.sx-error { background: rgba(255, 95, 122, 0.1); border: 1px solid rgba(255, 95, 122, 0.4); color: #ffc2cd; border-radius: 14px; padding: 14px 16px; max-width: 620px; margin: 16px auto; }
.sx-note { background: rgba(122, 76, 255, 0.1); border: 1px solid rgba(122, 76, 255, 0.35); border-radius: 16px; padding: 16px 18px; color: #dcd2ff; }

/* Pricing */
.sx-price { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }
.sx-price small { font-size: 1rem; color: var(--mz-muted); font-weight: 600; }
.sx-card--featured { border-color: rgba(122, 76, 255, 0.7); box-shadow: var(--mz-glow); }
.sx-list { margin: 14px 0 18px; padding: 0; list-style: none; }
.sx-list li { padding: 7px 0; color: var(--mz-muted); border-bottom: 1px dashed var(--sx-line); }
.sx-list li::before { content: "✓  "; color: var(--sx-good); font-weight: 800; }

/* Modal */
.sx-modal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; background: rgba(0, 0, 0, 0.6); padding: 18px; }
.sx-modal.is-open { display: grid; }
.sx-dialog { width: min(560px, 100%); max-height: 90vh; overflow: auto; background: #0d1230; border: 1px solid var(--sx-line); border-radius: 22px; padding: 26px; box-shadow: var(--mz-shadow); }
.sx-dialog h3 { margin: 0 0 8px; font-size: 1.35rem; }
.sx-dialog p { color: var(--mz-muted); line-height: 1.55; }
.sx-dialog .sx-row { display: flex; gap: 10px; margin-top: 12px; }
.sx-close { float: right; background: none; border: 0; color: var(--mz-muted); font-size: 1.4rem; cursor: pointer; }
.sx-copy { display: flex; gap: 8px; align-items: flex-start; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--sx-line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.sx-copy div { flex: 1; white-space: pre-wrap; }

/* FAQ and footer */
.sx-faq details { background: var(--sx-card); border: 1px solid var(--sx-line); border-radius: 16px; padding: 16px 18px; margin-bottom: 10px; }
.sx-faq summary { cursor: pointer; font-weight: 700; }
.sx-faq p { color: var(--mz-muted); line-height: 1.6; margin: 10px 0 0; }
.sx-footer { border-top: 1px solid var(--sx-line); padding: 34px 0 48px; color: var(--mz-muted); }
.sx-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.sx-footer a { color: var(--mz-muted); text-decoration: none; }

@media (max-width: 760px) {
  .sx-audit-form { flex-direction: column; }
  .sx-summary { grid-template-columns: 1fr; }
  .sx-stats { grid-template-columns: repeat(2, 1fr); }
  .sx-links a.sx-hide-sm { display: none; }
  .sx-listings .sx-hide-sm { display: none; }
  .sx-hero { padding-top: 48px; }
  .sx-nav { gap: 8px; min-height: 58px; }
  .sx-links { flex-wrap: nowrap; gap: 2px; }
  .sx-links a { font-size: 0.85rem; padding: 7px 8px; white-space: nowrap; }
  /* Listing rows become compact cards: photo | title | score, action below. */
  .sx-listings--audit thead { display: none; }
  .sx-listings--audit tr { display: grid; grid-template-columns: 52px 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--sx-line); }
  .sx-listings--audit td { padding: 0; border-bottom: 0; font-size: 0.9rem; }
  .sx-listings--audit td:empty { display: none; }
  .sx-listings--audit td:last-child:not(:empty) { grid-column: 2 / -1; }
  .sx-listings img { width: 52px; height: 52px; }
}

@media (max-width: 430px) {
  .sx-brand span { display: none; }
}
