/* ============================================================
   RiotShine LLC — Custom Website & Digital Product Store
   Copyright (c) 2026 RiotShine LLC. All rights reserved.
   Dark-tech design system — brand colors:
   navy #01002a · red #d03d1b · yellow #fcb200 · slate #233543
   ============================================================ */

:root {
  --navy: #01002a;
  --navy-2: #070534;
  --navy-3: #0d0a44;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(252, 178, 0, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --red: #d03d1b;
  --red-soft: rgba(208, 61, 27, 0.15);
  --yellow: #fcb200;
  --yellow-soft: rgba(252, 178, 0, 0.12);
  --text: #eef0f6;
  --text-dim: #9aa1b5;
  --font: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--panel); border: 1px solid var(--line-soft); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--text-dim); }
.small { font-size: 0.8rem; }
.req { color: var(--red); }
.pre-line { white-space: pre-line; }
.lead { font-size: 1.15rem; margin-bottom: 1rem; }

/* ---------- Announcement bar ---------- */
.announce {
  background: linear-gradient(90deg, var(--red), #e8622a, var(--yellow));
  color: #1a0500;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-align: center; padding: 7px 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(1, 0, 42, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand-logo { height: 44px; width: auto; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  color: var(--text-dim); font-size: 0.86rem; font-weight: 600;
  padding: 8px 14px; border-radius: 8px; text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.main-nav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.main-nav a.active { color: var(--yellow); background: var(--yellow-soft); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; color: var(--text);
  border: 1px solid var(--line-soft); transition: border-color 0.15s, color 0.15s;
}
.cart-btn:hover { border-color: var(--yellow); color: var(--yellow); text-decoration: none; }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--red); color: #fff; font-size: 0.66rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 0.88rem;
  padding: 11px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none !important; transition: 0.15s;
  color: var(--navy);
}
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-yellow { background: var(--yellow); color: #1a0500; }
.btn-yellow:hover { filter: brightness(1.1); box-shadow: 0 0 24px rgba(252, 178, 0, 0.35); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { filter: brightness(1.15); box-shadow: 0 0 24px rgba(208, 61, 27, 0.4); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-soft); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-danger { background: transparent; color: #ff6b5e; border-color: rgba(255, 107, 94, 0.35); }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); }
.btn-sm { padding: 7px 13px; font-size: 0.76rem; }
.btn-lg { padding: 14px 28px; font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 96px 0 110px;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(208, 61, 27, 0.22), transparent 60%),
    radial-gradient(900px 480px at 0% 110%, rgba(252, 178, 0, 0.10), transparent 60%),
    var(--navy);
  border-bottom: 1px solid var(--line);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero-glow-1 { width: 420px; height: 420px; background: rgba(208, 61, 27, 0.25); top: -120px; right: -80px; }
.hero-glow-2 { width: 380px; height: 380px; background: rgba(252, 178, 0, 0.14); bottom: -140px; left: -60px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--yellow); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 26px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 10px var(--red); animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; line-height: 1.06;
  letter-spacing: -0.02em; margin-bottom: 22px;
  background: linear-gradient(92deg, #ffffff 30%, var(--yellow) 75%, var(--red) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-subtitle { color: var(--text-dim); font-size: 1.05rem; max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { color: var(--yellow); font-size: 1.3rem; font-weight: 800; }
.hero-stats span { color: var(--text-dim); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }

.hero-art { position: relative; display: flex; justify-content: center; }
.hero-logo-frame {
  position: relative;
  background: linear-gradient(160deg, var(--navy-3), var(--navy-2));
  border: 1px solid var(--line); border-radius: 24px;
  padding: 52px; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.hero-logo-frame img { width: 250px; height: 250px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.chip {
  position: absolute; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  background: var(--navy-3); border: 1px solid var(--line-soft);
  padding: 6px 12px; border-radius: 999px; color: var(--text-dim);
  box-shadow: var(--shadow);
}
.chip-1 { top: -6%; left: -6%; animation: float 7s 0.5s ease-in-out infinite; }
.chip-2 { top: 42%; right: -10%; animation: float 6s 1s ease-in-out infinite; }
.chip-3 { bottom: -4%; left: 8%; animation: float 8s 0.2s ease-in-out infinite; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: linear-gradient(180deg, var(--navy-2), var(--navy)); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.section-head p { color: var(--text-dim); }
.section-cta { text-align: center; margin-top: 44px; }
.accent { color: var(--red); }
.accent-y { color: var(--yellow); }

.page-head {
  padding: 72px 0 10px; text-align: center;
  background: radial-gradient(800px 300px at 50% -80px, rgba(208, 61, 27, 0.16), transparent 70%);
}
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 10px; }
.page-head p { color: var(--text-dim); max-width: 620px; margin: 0 auto; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.feature-card {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--line); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-soft); color: var(--yellow);
  border: 1px solid var(--line); margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 0.84rem; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--line);
  box-shadow: 0 20px 44px rgba(208, 61, 27, 0.16);
}
.product-media {
  position: relative; display: block; aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, var(--navy-3), var(--navy-2));
  border-bottom: 1px solid var(--line-soft);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-flag {
  position: absolute; top: 12px; left: 12px;
  background: var(--yellow); color: #1a0500;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.product-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-category { color: var(--red); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.product-body h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.product-body h3 a { color: var(--text); }
.product-body h3 a:hover { color: var(--yellow); text-decoration: none; }
.product-body > p { color: var(--text-dim); font-size: 0.82rem; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.price { color: var(--yellow); font-weight: 800; font-size: 1.06rem; }
.price-lg { font-size: 1.6rem; margin: 10px 0 14px; }

/* ---------- Product page ---------- */
.crumbs { font-size: 0.76rem; color: var(--text-dim); margin-bottom: 14px; }
.crumbs span { color: var(--text); }
.product-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.product-media-lg {
  position: sticky; top: 100px;
  background: linear-gradient(150deg, var(--navy-3), var(--navy-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow);
}
.product-media-lg img { border-radius: 8px; }
.product-info h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; margin: 8px 0 6px; }
.product-info .tagline { color: var(--text-dim); font-size: 1rem; margin-bottom: 4px; }
.buy-box { display: flex; align-items: center; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.qty-label { color: var(--text-dim); font-size: 0.8rem; }
.qty-input {
  width: 74px; font-family: var(--font); font-size: 0.95rem;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 12px;
}
.qty-input:focus { outline: none; border-color: var(--yellow); }
.perks { list-style: none; margin-top: 18px; }
.perks li { padding: 8px 0 8px 26px; position: relative; color: var(--text-dim); font-size: 0.86rem; border-bottom: 1px dashed var(--line-soft); }
.perks li::before { content: '✓'; position: absolute; left: 0; color: var(--yellow); font-weight: 800; }
.details-block { margin-top: 64px; }
.details-block h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 14px; }
.details-block .pre-line { color: var(--text-dim); max-width: 820px; }

/* ---------- About strips ---------- */
.about-strip { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.about-mark {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: 40px; box-shadow: var(--shadow);
}
/* Explicit sizing — some mobile browsers collapse viewBox-only SVGs without it. */
.about-mark img, .about-mark-lg img { width: 100%; height: auto; }
.about-strip h2, .about-page h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 14px; }
.about-strip p { color: var(--text-dim); margin-bottom: 20px; }
.about-page { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.about-mark-lg {
  position: sticky; top: 100px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 24px; padding: 44px; box-shadow: var(--shadow);
}
.about-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 26px 0; }
.point { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; }
.point strong { display: block; color: var(--yellow); text-transform: uppercase; font-size: 0.76rem; letter-spacing: 0.12em; margin-bottom: 6px; }
.point span { color: var(--text-dim); font-size: 0.8rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 80% 120%, rgba(208, 61, 27, 0.35), transparent 65%),
    linear-gradient(120deg, var(--navy-2), var(--navy-3));
  border-top: 1px solid var(--line);
  padding: 72px 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; }
.cta-inner p { color: var(--text-dim); }

/* ---------- Search ---------- */
.search-form { display: flex; gap: 10px; max-width: 460px; margin: 26px auto 0; }
.search-form input {
  flex: 1; font-family: var(--font);
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 14px;
}
.search-form input:focus { outline: none; border-color: var(--yellow); }

/* ---------- Cart & checkout ---------- */
.cart-root { margin-bottom: 32px; }
.cart-line {
  display: grid; grid-template-columns: 86px 1fr auto auto; gap: 18px; align-items: center;
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
}
.cart-line img { width: 86px; height: 58px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-soft); }
.cart-line-name { font-weight: 700; }
.cart-line-name a { color: var(--text); }
.cart-line-name a:hover { color: var(--yellow); text-decoration: none; }
.cart-line-price { color: var(--yellow); font-weight: 700; white-space: nowrap; }
.cart-line-controls { display: flex; align-items: center; gap: 10px; }
.cart-line-controls button:not(.remove-item) {
  font-family: var(--font); font-size: 0.95rem; font-weight: 700;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line-soft); cursor: pointer;
}
.cart-line-controls button:not(.remove-item):hover { border-color: var(--yellow); color: var(--yellow); }
.cart-line-controls .qty-input { width: 52px; text-align: center; padding: 6px; }
.cart-line-controls .remove-item {
  background: none; border: 0; width: auto; height: auto; padding: 0;
  color: #ff6b5e; cursor: pointer; font-size: 0.8rem; text-decoration: underline;
}
.cart-line-controls .remove-item:hover { color: #ff8a80; text-decoration: none; }
.checkout-box { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: start; }
.cart-summary {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 24px;
}
.cart-summary-row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--text-dim); font-size: 0.9rem; }
.cart-summary-total { display: flex; justify-content: space-between; padding: 14px 0 4px; border-top: 1px solid var(--line-soft); font-weight: 800; font-size: 1.1rem; }
.cart-summary-total strong { color: var(--yellow); }
.checkout-form {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 24px;
}
.checkout-form h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }

/* ---------- Forms ---------- */
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.8rem; font-weight: 600; color: var(--text-dim); }
.form-row input, .form-row textarea, .form-row select {
  font-family: var(--font); font-size: 0.92rem;
  background: rgba(1, 0, 42, 0.6); color: var(--text);
  border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 14px;
  width: 100%;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft);
}
.form-check label { display: flex; gap: 10px; align-items: center; font-size: 0.86rem; color: var(--text); cursor: pointer; }
.form-check input[type='checkbox'] { width: 18px; height: 18px; accent-color: var(--yellow); }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.table th {
  text-align: left; color: var(--text-dim); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.table td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tfoot td { border-top: 1px solid var(--line); border-bottom: 0; }

/* ---------- Notices / pills ---------- */
.notice { border-radius: 10px; padding: 14px 18px; margin: 0 0 22px; font-size: 0.86rem; border: 1px solid; }
.notice-warn { background: var(--red-soft); border-color: rgba(208, 61, 27, 0.5); color: #ffb3a3; }
.notice-ok { background: var(--yellow-soft); border-color: rgba(252, 178, 0, 0.4); color: var(--yellow); }
.status-pill {
  display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line-soft); color: var(--text-dim); text-decoration: none;
}
.status-pill.status-paid { background: var(--yellow-soft); border-color: rgba(252, 178, 0, 0.4); color: var(--yellow); }
.status-pill.status-pending { background: var(--red-soft); border-color: rgba(208, 61, 27, 0.4); color: #ff9d8b; }
.status-pill.status-featured { background: var(--red-soft); border-color: rgba(208, 61, 27, 0.4); color: #ff9d8b; }

/* ---------- Orders / success ---------- */
.order-wrap { max-width: 860px; }
.success-head { text-align: center; margin-bottom: 36px; }
.success-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; margin-bottom: 10px; }
.success-check {
  width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--yellow-soft); border: 2px solid var(--yellow);
  color: var(--yellow); font-size: 2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(252, 178, 0, 0.3);
}
.order-card {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 28px;
}
.order-card h2 { font-size: 1.15rem; font-weight: 800; margin: 22px 0 12px; }
.order-card h2:first-of-type { margin-top: 0; }
.license-list { list-style: none; }
.license-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(1, 0, 42, 0.6); border: 1px dashed var(--line);
  border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; flex-wrap: wrap;
}
.license-key code { color: var(--yellow); font-weight: 700; letter-spacing: 0.06em; font-size: 0.95rem; }
.order-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Panels / empty states ---------- */
.panel {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 30px;
}
.panel h2:first-child { margin-top: 0; }
.lookup-form, .contact-form { max-width: 560px; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state h2, .empty-state h1 { font-weight: 800; margin-bottom: 8px; }
.empty-state p { color: var(--text-dim); }
.error-code {
  font-size: 5rem; font-weight: 800; line-height: 1;
  background: linear-gradient(92deg, var(--yellow), var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--navy-2); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding: 64px 24px 48px;
}
.footer-logo { height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--text-dim); font-size: 0.82rem; max-width: 300px; }
.footer-col h4 {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--yellow); margin-bottom: 14px;
}
.footer-col a { display: block; color: var(--text-dim); font-size: 0.84rem; padding: 4px 0; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-pay { color: var(--text-dim); font-size: 0.8rem; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid var(--line-soft); padding: 18px 0; }
.footer-bottom-inner {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.74rem; color: var(--text-dim);
}
.footer-tagline { color: var(--yellow); letter-spacing: 0.2em; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-body { background: var(--navy); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: linear-gradient(180deg, var(--navy-2), #04032c);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 22px 16px;
  position: sticky; top: 0; height: 100vh;
}
.admin-brand img { width: 100%; height: auto; margin-bottom: 26px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a {
  color: var(--text-dim); font-size: 0.84rem; font-weight: 600;
  padding: 10px 14px; border-radius: 10px; text-decoration: none;
  transition: 0.15s; display: flex; justify-content: space-between; align-items: center;
}
.admin-nav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.admin-nav a.active { color: var(--yellow); background: var(--yellow-soft); }
.badge {
  background: var(--red); color: #fff; font-size: 0.64rem; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}
.admin-sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.admin-sidebar-foot a { color: var(--text-dim); font-size: 0.8rem; text-decoration: none; }
.admin-sidebar-foot a:hover { color: var(--yellow); }
.admin-sidebar-foot small { color: var(--text-dim); font-size: 0.62rem; opacity: 0.7; }
.admin-demo-note {
  font-size: 0.66rem; color: #ffb3a3; background: var(--red-soft);
  border: 1px solid rgba(208, 61, 27, 0.4); border-radius: 8px; padding: 8px 10px; line-height: 1.5;
}
.admin-logout {
  background: none; border: 1px solid var(--line-soft); color: var(--text-dim);
  font-family: var(--font); font-size: 0.8rem; padding: 9px 12px;
  border-radius: 10px; cursor: pointer; text-align: left;
}
.admin-logout:hover { color: #ff6b5e; border-color: var(--red); }

.admin-main { padding: 34px 38px; max-width: 1200px; }
.admin-header { margin-bottom: 26px; }
.admin-header h1 { font-size: 1.7rem; font-weight: 800; }
.admin-header-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.admin-panel {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 24px; margin-bottom: 22px;
}
.admin-panel h2 { font-size: 1rem; font-weight: 800; margin-bottom: 14px; }
.admin-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.admin-panel-head h2 { margin: 0; }
.admin-panel.narrow { max-width: 520px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 30px; }
.stat-card {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-value { font-size: 1.7rem; font-weight: 800; color: var(--yellow); }
.stat-revenue .stat-value { color: #ff7a5e; }
.stat-label { color: var(--text-dim); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }

.admin-actions-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.form-cols { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; align-items: start; }
.filter-row { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.table-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.table-actions form { display: inline; }
.thumb { width: 46px; height: 34px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line-soft); }
.product-cell { display: flex; align-items: center; gap: 12px; }
.unread-row { background: var(--yellow-soft); }
.msg-cell { max-width: 260px; font-size: 0.78rem; color: var(--text-dim); }
.inline-confirm { display: inline; }
.upload-preview { margin-top: 12px; }
.upload-preview img { max-width: 180px; border-radius: 8px; border: 1px solid var(--line-soft); }

/* ---------- Admin login ---------- */
.login-body {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(208, 61, 27, 0.25), transparent 60%),
    var(--navy);
  display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px;
}
.login-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 44px; width: 100%; max-width: 420px;
  box-shadow: var(--shadow); text-align: center;
}
.login-logo { height: 54px; width: auto; margin: 0 auto 22px; }
.login-card h1 { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.login-card form { text-align: left; margin-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .admin-brand img { width: 160px; margin: 0; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-sidebar-foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; }
  .admin-demo-note { display: none; }
  .admin-main { padding: 24px; }
  .form-cols, .checkout-box { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle, .hero-cta, .hero-stats { margin-left: auto; margin-right: auto; justify-content: center; }
  .hero-art { display: none; }
  .product-layout, .about-page, .about-strip, .footer-grid { grid-template-columns: 1fr; }
  .about-mark, .about-mark-lg, .product-media-lg { position: static; max-width: 320px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .main-nav {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; background: rgba(1, 0, 42, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 12px; display: none; z-index: 60;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; }
  .brand-logo { height: 36px; }
  .section { padding: 56px 0; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line-controls { grid-column: 2; }
  .cart-line-price { grid-column: 2; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

/* ---------- Info & Tutorial page (public) ---------- */
.tutorial-page .tutorial-category { margin-bottom: 4px; }
.tutorial-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; margin: 6px 0 4px; }
.tutorial-tagline {
  color: var(--yellow); font-size: 0.9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 26px;
}
.tutorial-desc {
  font-size: 1.02rem; line-height: 1.75; color: var(--text);
  max-width: 860px; margin-bottom: 40px;
}
.tutorial-gallery { display: flex; flex-direction: column; gap: 36px; margin-bottom: 40px; }
.tutorial-figure {
  max-width: 960px; margin: 0 auto; width: 100%;
  border: 1px solid var(--line-soft); border-radius: 12px;
  background: rgba(255, 255, 255, 0.02); padding: 10px;
}
.tutorial-figure img {
  display: block; width: 100%; height: auto; border-radius: 8px; cursor: zoom-in;
}
.tutorial-figure:hover { border-color: var(--yellow); }

/* ---------- Custom buttons manager (admin product form) ---------- */
.btn-rows { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 14px; }
.btn-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto;
  gap: 10px; align-items: center;
}
.btn-row input {
  font-family: var(--font); font-size: 0.92rem;
  background: rgba(1, 0, 42, 0.6); color: var(--text);
  border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 14px;
  width: 100%;
}
.btn-row input:focus {
  outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft);
}
.btn-row .btn-row-remove { white-space: nowrap; }
@media (max-width: 760px) {
  .btn-row { grid-template-columns: 1fr; }
  .btn-row .btn-row-remove { justify-self: start; }
}
.tutorial-back { margin-top: 8px; }

.tutorial-lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(1, 0, 20, 0.94);
  display: none; align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
}
/* Only show when JS removes the hidden attribute (click on a screenshot). */
.tutorial-lightbox:not([hidden]) { display: flex; }
.tutorial-lightbox[hidden] { display: none; }
.tutorial-lightbox img {
  max-width: 96vw; max-height: 92vh; width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
}

/* ---------- Info & Tutorial manager (admin) ---------- */
.tutorial-admin-panel { margin-top: 26px; }
.tut-images {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin: 18px 0 26px;
}
.tut-image-card {
  border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 10px; position: relative; background: rgba(255, 255, 255, 0.02);
}
.tut-image-thumb { display: block; }
.tut-image-thumb img {
  width: 100%; height: 120px; object-fit: cover; display: block;
  border-radius: 6px; border: 1px solid var(--line-soft);
}
.tut-image-num {
  position: absolute; top: 16px; left: 16px;
  background: rgba(1, 0, 42, 0.85); color: var(--yellow);
  font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
}
.tut-image-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tut-image-actions form { display: inline; }
.tut-add-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.tut-add-form { border-top: 1px solid var(--line-soft); padding-top: 18px; }

/* ============================================================
   Custom pages (admin editor + public rendering)
   ============================================================ */

/* ---------- Admin: page form (block & button rows) ---------- */
.page-sections { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 14px; }
.page-section-row {
  border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 14px; background: rgba(1, 0, 42, 0.45);
}
.page-section-row [hidden] { display: none !important; }
.sec-top {
  display: grid; grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 10px; align-items: center; margin-bottom: 10px;
}
.page-section-row input, .page-section-row textarea, .page-section-row select,
.page-btn-row select {
  font-family: var(--font); font-size: 0.92rem;
  background: rgba(1, 0, 42, 0.6); color: var(--text);
  border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 14px;
  width: 100%;
}
.page-section-row input:focus, .page-section-row textarea:focus,
.page-section-row select:focus, .page-btn-row select:focus {
  outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft);
}
.sec-body-full { margin-top: 10px; }
.sec-cols-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; margin-top: 10px;
}
.sec-col { display: flex; flex-direction: column; gap: 8px; }
.sec-move { display: inline-flex; gap: 6px; }
.page-btn-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 150px auto; }
@media (max-width: 900px) {
  .sec-top { grid-template-columns: 1fr; }
  .sec-cols-grid { grid-template-columns: 1fr; }
  .page-btn-row { grid-template-columns: 1fr; }
  .page-btn-row .sec-move { justify-self: start; }
}

/* ---------- Public: custom page rendering ---------- */
.page-panel { max-width: 900px; margin: 0 auto 22px; }
.page-panel h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 12px; }
.page-panel p { color: var(--text-dim); margin: 0; }
.page-cols-head { max-width: 900px; margin: 6px auto 16px; }
.page-cols-head h2 { font-size: 1.4rem; font-weight: 800; }
.page-cols { display: grid; gap: 22px; margin: 0 auto 22px; }
.page-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-col {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 26px;
}
.page-col h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.page-col p { color: var(--text-dim); font-size: 0.9rem; margin: 0; }
.page-col .col-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.page-col .col-btns .btn { padding: 8px 16px; font-size: 0.8rem; }
.page-cta { justify-content: center; margin: 42px 0 8px; }
@media (max-width: 900px) {
  .page-cols-2, .page-cols-3 { grid-template-columns: 1fr; }
}
