/* ============================================================
   RANKHOSTZONE STORE - MAIN STYLESHEET (light default + dark)
   Sky-blue gradient theme. Mobile styles in mobile.css.
   ============================================================ */

:root {
  --bg: #f4f9ff;
  --bg2: #e8f4ff;
  --card: #ffffff;
  --card2: #f7fbff;
  --text: #0b1e33;
  --muted: #5b7290;
  --sky1: #0284c7;
  --sky2: #38bdf8;
  --sky3: #7dd3fc;
  --grad: linear-gradient(135deg, #0284c7, #38bdf8 55%, #7dd3fc);
  --grad-soft: linear-gradient(135deg, rgba(2,132,199,.12), rgba(125,211,252,.12));
  --border: #dbeafe;
  --shadow: 0 10px 30px rgba(14, 165, 233, .12);
  --shadow-lg: 0 20px 50px rgba(14, 165, 233, .18);
  --ring: rgba(56, 189, 248, .35);
  --radius: 18px;
  --ok: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --info: #0284c7;
  --nav-h: 68px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #050d1a;
  --bg2: #0a1728;
  --card: #0c1a2e;
  --card2: #10213a;
  --text: #e6f3ff;
  --muted: #8ba3bf;
  --border: #1c3350;
  --shadow: 0 10px 30px rgba(0, 0, 0, .5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .6);
  --grad-soft: linear-gradient(135deg, rgba(56,189,248,.08), rgba(2,132,199,.08));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--sky1); text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea {
  font-family: var(--font);
  font-size: 15px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--sky2);
  box-shadow: 0 0 0 4px var(--ring);
}
code {
  background: var(--card2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 13px;
  word-break: break-all;
}
s { color: var(--muted); font-weight: 400; }
::selection { background: var(--sky2); color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.hide-sm { display: inline-flex; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 13px;
  border: none;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .25s ease, filter .2s ease, background .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 22px rgba(56, 189, 248, .35);
  background-size: 180% 180%;
  animation: gradShift 5s ease infinite;
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(56, 189, 248, .5); filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  color: var(--sky1);
  border: 1.5px solid var(--sky2);
}
.btn-ghost:hover { background: var(--grad-soft); }
.btn-glass {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(10px);
}
.btn-light { background: #fff; color: var(--sky1); box-shadow: 0 8px 25px rgba(0,0,0,.15); }
.btn-danger {
  background: linear-gradient(135deg, #dc2626, #f87171);
  color: #fff;
  box-shadow: 0 8px 22px rgba(220, 38, 38, .3);
}
.btn-google {
  background: #fff;
  color: #333;
  border: 1.5px solid var(--border);
  width: 100%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
[data-theme="dark"] .btn-google { background: #0f2038; color: #e6f3ff; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 11px; }
.btn-lg { padding: 14px 30px; font-size: 16px; border-radius: 15px; }
.btn-block { width: 100%; }
.btn-icon {
  width: 48px; height: 48px;
  padding: 0; border-radius: 14px;
  font-size: 18px;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
  transition: all .25s;
}
.btn-icon.on { color: #f43f5e; border-color: #f43f5e; background: rgba(244, 63, 94, .08); }

/* ---------- topbar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .3s, box-shadow .3s, height .3s;
}
.topbar.scrolled {
  background: rgba(244, 249, 255, .85);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(2, 132, 199, .12);
  height: 60px;
}
[data-theme="dark"] .topbar.scrolled { background: rgba(5, 13, 26, .85); }
.nav-wrap { display: flex; align-items: center; gap: 22px; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo {
  width: 40px; height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(56, 189, 248, .4);
  animation: logoFloat 4s ease-in-out infinite;
}
.brand-text { font-weight: 800; font-size: 16px; color: var(--text); line-height: 1.15; }
.brand-text em { display: block; font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .5px; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 500;
  font-size: 14.5px;
  position: relative;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--grad-soft); color: var(--sky1); }
.nav-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search-box { display: flex; align-items: center; background: var(--card); border: 1.5px solid var(--border); border-radius: 30px; padding: 2px 4px 2px 14px; transition: box-shadow .2s, border-color .2s; }
.search-box:focus-within { border-color: var(--sky2); box-shadow: 0 0 0 4px var(--ring); }
.search-box input { border: none; background: transparent; padding: 8px 0; width: 170px; font-size: 14px; }
.search-box button { background: transparent; border: none; font-size: 15px; width: 36px; height: 32px; border-radius: 50%; transition: background .2s; }
.search-box button:hover { background: var(--grad-soft); }
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, border-color .2s, background .2s;
}
.icon-btn:hover { transform: translateY(-2px) rotate(6deg); border-color: var(--sky2); }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: none; }
.wish-btn { text-decoration: none; }
.heart { font-size: 16px; color: var(--muted); }
.wish-badge {
  position: absolute;
  top: -7px; right: -7px;
  background: var(--grad);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  min-width: 19px; height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.user-menu { position: relative; }
.avatar-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--sky2);
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  transition: transform .2s;
}
.avatar-btn:hover { transform: scale(1.08); }
.user-drop {
  position: absolute;
  right: 0; top: 54px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s ease;
  z-index: 120;
}
.user-drop.open { opacity: 1; visibility: visible; transform: translateY(0); }
.user-drop-head { padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.user-drop-head strong { display: block; }
.user-drop-head small { color: var(--muted); }
.user-drop a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); font-size: 14px; transition: background .2s; }
.user-drop a:hover { background: var(--grad-soft); color: var(--sky1); }
.hamburger { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(56, 189, 248, .35), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(125, 211, 252, .3), transparent 60%),
    linear-gradient(180deg, #0b1e33, #0e2a4a 55%, #0c2340);
  color: #fff;
}
[data-theme="dark"] .hero { background: linear-gradient(180deg, #02070f, #071527 60%, #050d1a); }
#particles { position: absolute; inset: 0; z-index: 1; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  z-index: 1;
  animation: blobMove 14s ease-in-out infinite alternate;
}
.blob.b1 { width: 380px; height: 380px; background: #0ea5e9; top: 8%; left: 5%; }
.blob.b2 { width: 300px; height: 300px; background: #7dd3fc; bottom: 10%; right: 8%; animation-delay: -5s; }
.blob.b3 { width: 220px; height: 220px; background: #38bdf8; top: 55%; left: 55%; animation-delay: -9s; }
.hero-inner { position: relative; z-index: 3; text-align: center; padding: 120px 0 70px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 40px;
  font-size: 13.5px;
  font-weight: 600;
  animation: fadeUp .8s ease both;
}
.glass {
  background: rgba(255, 255, 255, .65);
  border: 1.5px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
}
[data-theme="dark"] .glass { background: rgba(12, 26, 46, .6); border-color: rgba(28, 51, 80, .8); }
.hero-title {
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 22px auto 18px;
  max-width: 900px;
  animation: fadeUp .8s ease .1s both;
}
.grad-text {
  background: var(--grad);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradShift 4s ease infinite;
}
.hero-sub { font-size: 17.5px; color: #b9d6f0; max-width: 640px; margin: 0 auto 30px; animation: fadeUp .8s ease .2s both; }
[data-theme="dark"] .hero-sub { color: #8ba3bf; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fadeUp .8s ease .3s both; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding: 18px 24px;
  animation: fadeUp .8s ease .4s both;
}
.stat { padding: 6px 26px; text-align: center; }
.stat b { display: block; font-size: 24px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px; height: 44px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 20px;
}
.scroll-hint span {
  display: block;
  width: 4px; height: 9px;
  background: #fff;
  border-radius: 4px;
  margin: 7px auto;
  animation: scrollPulse 1.8s ease infinite;
}

/* ---------- sections ---------- */
.section { padding: 70px 0; position: relative; }
.section-alt { background: var(--bg2); }
.section-top { padding-top: 40px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sky1);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 10px; }
.section-head p { color: var(--muted); }

/* ---------- cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.feat-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
  position: relative;
  overflow: hidden;
}
.feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity .3s;
  z-index: -1;
}
.feat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--sky2); }
.feat-ico {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 10px 20px rgba(56, 189, 248, .35);
  animation: logoFloat 5s ease-in-out infinite;
}
.feat-card h3 { font-size: 17px; margin-bottom: 8px; }
.feat-card p { color: var(--muted); font-size: 14px; }

.p-card {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.p-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--sky2); }
.p-card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.p-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.p-card:hover .p-card-media img { transform: scale(1.08); }
.p-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 20, 40, .55));
}
.p-disc {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: linear-gradient(135deg, #f43f5e, #fb923c);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 20px;
  animation: pop .5s ease;
}
.p-trial {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  background: rgba(2, 132, 199, .9);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 20px;
}
.p-cat {
  position: absolute;
  bottom: 12px; left: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, .9);
  color: var(--sky1);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}
.p-cat.static { position: static; display: inline-block; margin-bottom: 10px; }
.p-card-body { padding: 16px 16px 14px; }
.p-card-title { font-size: 15.5px; line-height: 1.35; margin-bottom: 6px; }
.p-card-title a { color: var(--text); transition: color .2s; }
.p-card-title a:hover { color: var(--sky1); }
.p-card-desc {
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  min-height: 40px;
}
.p-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.p-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.p-price { font-weight: 800; font-size: 17px; color: var(--sky1); }
.p-price small { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.p-price s { font-size: 12.5px; margin-left: 6px; color: var(--muted); }
.wish-toggle {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .92);
  color: #94a3b8;
  font-size: 16px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
  transition: all .2s;
}
.p-card:hover .wish-toggle, .wish-toggle.on { display: flex; }
.wish-toggle.on { color: #f43f5e; background: #fff0f2; }

/* categories */
.grid-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: all .3s ease;
  position: relative;
}
.cat-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-lg); border-color: var(--sky2); }
.cat-img { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card:hover .cat-img img { transform: scale(1.12); }
.cat-body b { display: block; color: var(--text); font-size: 16px; }
.cat-body small { color: var(--sky1); font-size: 12.5px; }
.cat-body em { display: block; color: var(--muted); font-size: 12.5px; font-style: normal; margin-top: 3px; }
.cat-arrow {
  margin-left: auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky1);
  font-size: 16px;
  transition: all .3s;
  flex-shrink: 0;
}
.cat-card:hover .cat-arrow { background: var(--grad); color: #fff; transform: rotate(-45deg); }
.grid-cats.large .cat-card { padding: 22px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative;
  text-align: center;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 20px 26px;
  transition: all .3s;
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.step-n {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(56, 189, 248, .4);
}
.step-ico { font-size: 32px; margin-bottom: 12px; }
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 13.5px; }

/* license section */
.license-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.check-list { list-style: none; margin: 18px 0 24px; }
.check-list li { padding: 7px 0; color: var(--text); font-size: 14.5px; }
.check-list li::before { content: '✔ '; color: var(--ok); font-weight: 800; }
.code-window {
  background: #0b1e33;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid #1c3350;
}
.code-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background: #10233d;
}
.code-head span { width: 11px; height: 11px; border-radius: 50%; }
.code-head span:nth-child(1) { background: #f87171; }
.code-head span:nth-child(2) { background: #fbbf24; }
.code-head span:nth-child(3) { background: #34d399; }
.code-head small { color: #7dd3fc; margin-left: 8px; font-family: monospace; flex: 1; }
.copy-btn {
  background: transparent;
  border: 1px solid #2b4a72;
  color: #7dd3fc;
  padding: 5px 13px;
  border-radius: 8px;
  font-size: 12px;
  transition: all .2s;
}
.copy-btn:hover { background: #2b4a72; color: #fff; }
.code-window pre { padding: 20px; overflow-x: auto; color: #bae6fd; font-size: 13px; line-height: 1.7; }

/* CTA banner */
.cta-banner {
  background: var(--grad);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
  background-size: 200% 200%;
  animation: gradShift 6s ease infinite;
}
.cta-banner::before, .cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.cta-banner::before { width: 300px; height: 300px; top: -120px; right: -60px; }
.cta-banner::after { width: 220px; height: 220px; bottom: -100px; left: 8%; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 2; }
.cta-txt h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 8px; }
.cta-txt p { color: rgba(255, 255, 255, .85); }

/* ---------- page hero (inner pages) ---------- */
.page-head { height: var(--nav-h); }
.page-hero {
  padding: 120px 0 46px;
  position: relative;
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(56, 189, 248, .25), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(125, 211, 252, .2), transparent 60%),
    var(--bg2);
  border-bottom: 1px solid var(--border);
}
.page-hero.compact { padding: 110px 0 26px; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.page-hero p { color: var(--muted); margin-top: 6px; }
.page-search {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  max-width: 560px;
  padding: 8px;
}
.page-search input { border: none; background: transparent; }

/* filter bar */
.filter-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; margin-bottom: 26px; flex-wrap: wrap; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px;
  border-radius: 30px;
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  background: var(--card);
  transition: all .25s;
}
.chip:hover { border-color: var(--sky2); color: var(--sky1); transform: translateY(-2px); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(56, 189, 248, .35); }
.sort-box { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.sort-box select { width: auto; padding: 9px 12px; }

/* pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.page-link {
  padding: 10px 16px;
  border-radius: 11px;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  transition: all .25s;
  background: var(--card);
}
.page-link:hover { border-color: var(--sky2); color: var(--sky1); }
.page-link.active { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- product page ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--sky1); }
.product-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; }
.product-gallery { position: sticky; top: 90px; align-self: start; }
.g-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  aspect-ratio: 4/3;
  cursor: zoom-in;
  background: var(--card2);
}
.g-main img { width: 100%; height: 100%; object-fit: cover; }
.g-preview {
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(5, 13, 26, .7);
  color: #7dd3fc;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.g-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.g-thumb {
  width: 74px; height: 58px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--card2);
  padding: 0;
  transition: all .2s;
}
.g-thumb:hover, .g-thumb.active { border-color: var(--sky2); transform: translateY(-3px); }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-name { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; margin: 12px 0 10px; line-height: 1.2; }
.product-rating { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; margin-bottom: 14px; }
.stars { color: #f59e0b; letter-spacing: 2px; }
.product-short { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

.pricing-box { padding: 24px; margin-bottom: 18px; }
.price-block { margin-bottom: 18px; }
.price-block h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 12px; }
.price-block h4 small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all .25s;
}
.plan-card:hover { border-color: var(--sky2); transform: translateY(-3px); }
.plan-card.sel {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(56, 189, 248, .4);
}
.plan-card input { display: none; }
.plan-card b { font-size: 13.5px; }
.plan-price { font-weight: 800; font-size: 15px; }
.plan-card.sel .plan-price { color: #fff; }
.plan-card.lifetime { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; }
.plan-card.lifetime .plan-price { font-size: 18px; }
.save-badge {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  background: #dcfce7;
  color: #16a34a;
  padding: 3px 9px;
  border-radius: 20px;
  margin-left: 8px;
}
.plan-card.sel .save-badge { background: rgba(255,255,255,.25); color: #fff; }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.buy-note { margin-top: 14px; font-size: 13px; color: var(--ok); }
.feature-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.feature-pills span {
  background: var(--grad-soft);
  border: 1px solid var(--border);
  color: var(--sky1);
  padding: 7px 14px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 600;
}

/* tabs */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--border); margin-bottom: 26px; flex-wrap: wrap; }
.tab {
  background: none;
  border: none;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
}
.tab:hover { color: var(--sky1); }
.tab.active { color: var(--sky1); border-bottom-color: var(--sky2); }
.tab-panel { display: none; animation: fadeIn .4s ease; }
.tab-panel.active { display: block; }
.rich-text { line-height: 1.8; color: var(--text); }
.rich-text p { margin-bottom: 14px; }
.alert {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid;
}
.alert.info { background: rgba(14, 165, 233, .1); border-color: var(--sky2); color: var(--sky1); }
.steps-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.step.mini {
  background: var(--card2);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.step.mini b {
  display: inline-flex;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.step.mini p { font-size: 13.5px; color: var(--muted); }

/* reviews */
.review-list { display: grid; gap: 14px; margin-bottom: 24px; }
.review-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.review-head small { margin-left: auto; color: var(--muted); }
.review-card p { font-size: 14px; color: var(--text); }
.review-form { display: grid; gap: 12px; max-width: 640px; }
.star-input { display: flex; gap: 6px; }
.star-input button { background: none; border: none; font-size: 26px; color: #cbd5e1; transition: all .2s; }
.star-input button.on { color: #f59e0b; transform: scale(1.1); }
.star-input button:hover { color: #f59e0b; transform: scale(1.15); }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 10, 20, .92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-close {
  position: absolute;
  top: 22px; right: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 26px;
}

/* ---------- auth ---------- */
.auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 20px 60px;
  position: relative;
  overflow: hidden;
  background: var(--bg2);
}
.auth-card { width: 100%; max-width: 460px; padding: 34px 32px; }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-ico {
  width: 62px; height: 62px;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: var(--grad);
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(56, 189, 248, .4);
  animation: logoFloat 4s ease-in-out infinite;
}
.auth-head h1 { font-size: 26px; font-weight: 800; }
.auth-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.auth-form { display: grid; gap: 14px; margin-top: 18px; }
.field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12.5px;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-foot a { font-weight: 700; }

/* ---------- checkout ---------- */
.checkout-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.checkout-summary, .checkout-pay { padding: 26px; }
.checkout-summary h3, .checkout-pay h3 { margin-bottom: 16px; }
.co-product { display: flex; gap: 14px; padding: 14px; background: var(--card2); border-radius: 14px; margin-bottom: 18px; }
.co-thumb { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; }
.co-product small { display: block; color: var(--muted); font-size: 12.5px; }
.co-lines { display: grid; gap: 10px; margin-bottom: 16px; }
.co-line { display: flex; justify-content: space-between; font-size: 14.5px; }
.co-line.total { border-top: 1.5px dashed var(--border); padding-top: 12px; font-size: 17px; font-weight: 700; }
.co-line.total .grad-text { font-size: 22px; }
.co-note { font-size: 13px; color: var(--muted); background: var(--grad-soft); padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; }
.what-you-get { margin-bottom: 20px; }
.what-you-get .check-list { margin-bottom: 0; }

/* ---------- success ---------- */
.success-hero {
  padding: 130px 0 30px;
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% -20%, rgba(22, 163, 74, .2), transparent 60%),
    var(--bg2);
  border-bottom: 1px solid var(--border);
}
.success-check {
  width: 84px; height: 84px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #4ade80);
  color: #fff;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(22, 163, 74, .4);
  animation: pop .6s cubic-bezier(.5, 1.8, .6, 1) both, glowPulse 2s ease infinite;
}
.success-inner h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
.success-inner p { color: var(--muted); margin-top: 8px; }
.success-card { padding: 26px; }
.success-card h3 { margin-bottom: 16px; }
.lic-key-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lic-key-row.big .lic-key { font-size: 19px; padding: 12px 16px; letter-spacing: 1.5px; }
.lic-key {
  flex: 1;
  background: var(--grad-soft);
  border: 1.5px dashed var(--sky2);
  color: var(--sky1);
  font-weight: 700;
  font-size: 14.5px;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: monospace;
}
.lic-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; margin: 14px 0; color: var(--muted); }

/* ---------- account ---------- */
.account-head { display: flex; align-items: center; gap: 18px; }
.account-avatar {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(56, 189, 248, .4);
}
.acct-tabs { display: flex; gap: 4px; padding: 8px; margin-bottom: 26px; flex-wrap: wrap; overflow-x: auto; }
.acct-tab {
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  transition: all .2s;
}
.acct-tab:hover { color: var(--sky1); background: var(--grad-soft); }
.acct-tab.active { background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(56, 189, 248, .35); }
.stat-card {
  text-align: center;
  padding: 26px 18px;
}
.stat-ico {
  font-size: 26px;
  margin-bottom: 8px;
  display: inline-block;
  animation: logoFloat 5s ease-in-out infinite;
}
.stat-card b { display: block; font-size: 22px; font-weight: 800; }
.stat-card p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.quick-links { padding: 22px; margin-top: 22px; }
.quick-links h3 { margin-bottom: 14px; font-size: 16px; }
.list-card { padding: 10px 22px; }
.order-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.order-row:last-child { border-bottom: none; }
.order-main { flex: 1; min-width: 180px; }
.order-main b { display: block; }
.order-main small { color: var(--muted); font-size: 12.5px; }
.order-amount { font-weight: 800; color: var(--sky1); }
.order-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form { display: inline-flex; }
.license-card {
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
}
.license-card:last-child { border-bottom: none; }
.bind-form { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.bind-form input { flex: 1; min-width: 200px; }
.renew-form { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.renew-label { font-size: 13px; font-weight: 600; color: var(--sky1); }
.renew-select { background: var(--card2); color: var(--txt); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; }
.renew-note { margin-top: 12px; }
.co-line.renew-line { background: rgba(14, 165, 233, .08); border-radius: 8px; padding: 8px 12px; }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.badge-ok { background: rgba(22, 163, 74, .12); color: var(--ok); }
.badge-warn { background: rgba(217, 119, 6, .12); color: var(--warn); }
.badge-bad { background: rgba(220, 38, 38, .12); color: var(--bad); }
.badge-blue { background: rgba(14, 165, 233, .14); color: var(--sky1); }
.badge-purple { background: rgba(139, 92, 246, .14); color: #a78bfa; }
.block { display: block; }

/* ---------- product list admin ---------- */
.stat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.card-head-actions { display: flex; gap: 10px; align-items: center; }
.filter-bar select { background: var(--card2); color: var(--txt); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font: inherit; }
.bulk-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin: 8px 0 4px; background: var(--card2); border: 1px dashed var(--line); border-radius: 10px; flex-wrap: wrap; }
.bulk-bar select { background: var(--card2); color: var(--txt); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; }
.bulk-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.bulk-count { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.col-check { width: 34px; }
.td-prod .tag-pill { display: inline-block; margin-left: 6px; vertical-align: 1px; }
.td-tags { color: var(--sky1) !important; }
.muted { color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------- pricing method toggle (admin form) ---------- */
.pm-toggle { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pm-card {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px;
  border: 2px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  background: var(--card2);
  transition: all .25s ease;
}
.pm-card:hover { border-color: var(--sky2); transform: translateY(-2px); }
.pm-card input { position: absolute; opacity: 0; pointer-events: none; }
.pm-card .pm-ico { font-size: 26px; }
.pm-card b { font-size: 15px; }
.pm-card small { color: var(--muted); line-height: 1.45; }
.pm-card.sel { border-color: var(--sky1); background: linear-gradient(135deg, rgba(14, 165, 233, .12), rgba(56, 189, 248, .05)); box-shadow: 0 8px 24px rgba(14, 165, 233, .18); }
.pm-card.sel::after {
  content: "\2713";
  position: absolute; top: 12px; right: 14px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad); color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.pm-panel { display: none; }
.pm-panel.active { display: block; animation: fadeUp .35s ease; }

/* ---------- tags on frontend product page ---------- */
.product-meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.tag-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(14, 165, 233, .12);
  color: var(--sky1);
  border: 1px solid rgba(14, 165, 233, .25);
}
.feature-pills span.pill-warn {
  background: rgba(217, 119, 6, .14);
  color: var(--warn);
  border-color: rgba(217, 119, 6, .35);
}
.p-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 2px; }
.p-card-tags span {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--sky1);
  background: rgba(14, 165, 233, .1);
  border: 1px solid rgba(14, 165, 233, .2);
  border-radius: 20px;
  padding: 2px 9px;
  letter-spacing: .3px;
}

/* ---------- flash sale ---------- */
.p-flash {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .6px;
  padding: 6px 12px;
  border-radius: 30px;
  box-shadow: 0 6px 16px rgba(239, 68, 68, .4);
  animation: pulseFlash 1.6s ease infinite;
}
@keyframes pulseFlash {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.section-flash {
  background:
    radial-gradient(900px 300px at 15% 0%, rgba(239, 68, 68, .12), transparent 60%),
    radial-gradient(900px 300px at 85% 0%, rgba(249, 115, 22, .1), transparent 60%),
    var(--bg);
  border-top: 1px dashed rgba(239, 68, 68, .25);
  border-bottom: 1px dashed rgba(239, 68, 68, .25);
}
.flash-head { text-align: center; }
.flash-head h2 { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.countdown { display: flex; align-items: center; gap: 6px; }
.cd-box {
  background: linear-gradient(135deg, #dc2626, #f97316);
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 54px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(239, 68, 68, .35);
}
.cd-box b { display: block; font-size: 20px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd-box span { font-size: 9.5px; opacity: .85; letter-spacing: 1px; text-transform: uppercase; }
.cd-sep { font-weight: 800; color: var(--sky1); font-size: 18px; }
.flash-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(239, 68, 68, .14), rgba(249, 115, 22, .1));
  border: 1px solid rgba(239, 68, 68, .3);
  flex-wrap: wrap;
}
.flash-banner .flash-bolt { font-size: 26px; animation: pulseFlash 1.4s ease infinite; }
.flash-banner b { color: #ef4444; font-size: 14.5px; }
.flash-banner small { color: var(--muted); display: block; font-size: 12px; }
.countdown.mini { margin-left: auto; font-weight: 700; color: #ef4444; font-variant-numeric: tabular-nums; font-size: 16px; background: rgba(255, 255, 255, .55); padding: 6px 12px; border-radius: 8px; }
[data-theme="dark"] .countdown.mini { background: rgba(0, 0, 0, .35); }

/* ---------- banner slider ---------- */
.banner-slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(14, 165, 233, .18);
  border: 1px solid var(--border);
  aspect-ratio: 3.2 / 1;
  background: var(--card2);
}
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  display: block;
}
.banner-slide.active { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-cap {
  position: absolute;
  left: 20px;
  bottom: 18px;
  background: rgba(3, 7, 18, .62);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  backdrop-filter: blur(6px);
}
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .8);
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: all .2s;
}
.banner-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.banner-arrow.prev { left: 14px; }
.banner-arrow.next { right: 14px; }
.banner-dots {
  position: absolute;
  bottom: 14px;
  right: 18px;
  display: flex;
  gap: 7px;
  z-index: 4;
}
.banner-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: all .25s;
}
.banner-dots .dot.on { background: var(--sky1); width: 24px; border-radius: 6px; }
.strip-banner {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(14, 165, 233, .15);
}
.strip-banner img { width: 100%; height: 150px; object-fit: cover; }
.strip-banner span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  background: rgba(3, 7, 18, .62);
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

/* ---------- coupon ---------- */
.coupon-box { margin-bottom: 16px; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input {
  flex: 1;
  background: var(--card2);
  border: 1px solid var(--line);
  color: var(--txt);
  border-radius: 10px;
  padding: 11px 14px;
  font: inherit;
  text-transform: uppercase;
}
.coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(22, 163, 74, .1);
  border: 1px solid rgba(22, 163, 74, .3);
  color: var(--ok);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13.5px;
  flex-wrap: wrap;
}
.coupon-applied a { color: var(--bad); font-weight: 700; text-decoration: none; }
.co-line.flash-line { background: rgba(239, 68, 68, .08); border-radius: 8px; padding: 8px 12px; }
.flash-txt { color: #ef4444; }
.ok-txt { color: var(--ok); }
.success-note {
  display: inline-block;
  margin-top: 10px;
  background: rgba(22, 163, 74, .12);
  border: 1px solid rgba(22, 163, 74, .3);
  color: var(--ok);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13.5px;
}

/* ---------- one-time free trial ---------- */
.btn.trial-used {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: line-through;
}

/* ---------- cross-sell ---------- */
.cross-sell { margin-top: 34px; padding: 26px; border-radius: 18px; }
.cross-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.cross-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--card2);
  border: 1px solid var(--line);
  transition: all .25s;
}
.cross-item:hover { border-color: var(--sky2); transform: translateY(-2px); }
.cross-item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.cross-info { flex: 1; min-width: 0; }
.cross-info b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cross-info small { color: var(--muted); }
.cross-item .btn { flex-shrink: 0; }

/* ---------- popups ---------- */
.popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, .55);
  z-index: 1000;
  backdrop-filter: blur(3px);
}
.popup-stack {
  position: fixed;
  inset: 0;
  z-index: 1001;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}
.popup-box {
  pointer-events: auto;
  width: min(520px, 94vw);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--card2);
  color: var(--txt);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  position: relative;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
  animation: popIn .35s ease;
}
.popup-box.pos-top { align-self: flex-start; margin-top: 8px; }
.popup-box.pos-bottom { align-self: flex-end; margin-bottom: 8px; }
.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(100, 116, 139, .18);
  color: var(--txt);
  font-size: 14px;
  cursor: pointer;
  z-index: 2;
  transition: all .2s;
}
.popup-close:hover { background: rgba(239, 68, 68, .22); color: #f87171; }
.popup-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  display: block;
}
.popup-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; padding-right: 28px; }
.popup-msg { color: var(--muted); line-height: 1.65; margin-bottom: 18px; font-size: 14.5px; }
.popup-msg a { color: var(--sky1); }
.popup-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.popup-news { display: flex; gap: 8px; }
.popup-news input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--txt);
  font: inherit;
}
.popup-news-ok { color: var(--ok); font-weight: 600; padding: 8px 0; }
.popup-announcement { border-top: 4px solid var(--sky1); }
.popup-promo { border-top: 4px solid #f97316; }
.popup-newsletter { border-top: 4px solid #22c55e; }
.popup-exit { border-top: 4px solid #a855f7; }
@keyframes popIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .popup-box { animation: none; }
}

/* ---------- admin popups ---------- */
.admin-grid.popup-grid { grid-template-columns: 430px 1fr; align-items: start; }

/* ---------- admin banners ---------- */
.banner-list { display: grid; gap: 12px; padding-top: 6px; }
.banner-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--card2);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}
.banner-thumb img { width: 130px; height: 48px; object-fit: cover; border-radius: 8px; display: block; }
.banner-noimg {
  width: 130px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 20px;
  color: var(--muted);
}
.banner-meta { flex: 1; min-width: 160px; }
.banner-meta b { display: block; }
.banner-meta small { color: var(--muted); }

/* ---------- empty / misc ---------- */
.empty-state { text-align: center; padding: 50px 20px; grid-column: 1/-1; }
.empty-ico { font-size: 52px; margin-bottom: 12px; opacity: .7; animation: floatY 3s ease-in-out infinite; }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 18px; }
.page-search.inline-search { margin: 0; padding: 0; max-width: none; flex: 1; }
.page-search.inline-search select { width: auto; }

/* ---------- footer ---------- */
.site-footer { background: #0a1728; color: #c6d9ee; margin-top: 40px; }
[data-theme="dark"] .site-footer { background: #02070f; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 56px 20px 36px;
}
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer a { color: #9fc2e8; display: block; padding: 5px 0; font-size: 14px; transition: color .2s, padding-left .2s; }
.site-footer a:hover { color: #7dd3fc; padding-left: 6px; }
.footer-col p { font-size: 14px; color: #9fc2e8; margin-top: 12px; }
.brand-col .brand { margin-bottom: 14px; }
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pay-badge {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  color: #c6d9ee;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  letter-spacing: .5px;
}
.footer-note { font-size: 13px !important; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: #7d95b3; }
.footer-heart .pulse { color: #f43f5e; animation: heartPulse 1.4s ease infinite; display: inline-block; }

/* bottom nav (mobile only) */
.bottom-nav { display: none; }

/* ---------- toast / fab ---------- */
.toast {
  position: fixed;
  top: 82px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 300;
  padding: 13px 26px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .25);
  opacity: 0;
  animation: toastIn .4s ease forwards, toastOut .4s ease 3.6s forwards;
}
.toast-success { background: linear-gradient(135deg, #16a34a, #4ade80); }
.toast-error { background: linear-gradient(135deg, #dc2626, #f87171); }
.toast-info { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.fab {
  position: fixed;
  right: 22px;
  bottom: 24px;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--grad);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 12px 28px rgba(56, 189, 248, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .3s;
  z-index: 90;
}
.fab.show { opacity: 1; visibility: visible; transform: translateY(0); }
.fab:hover { transform: translateY(-4px); }

/* ---------- animations ---------- */
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes blobMove { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(40px, -30px) scale(1.15); } }
@keyframes scrollPulse { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(0); } 80% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 16px 40px rgba(22, 163, 74, .4); } 50% { box-shadow: 0 16px 60px rgba(22, 163, 74, .7); } }
@keyframes heartPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes toastIn { to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(-50%) translateY(-20px); } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- honeypot trap page ---------- */
.trap-body {
  background: radial-gradient(900px 500px at 50% -10%, rgba(220, 38, 38, .25), transparent 60%), #0a1526;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.trap-card {
  max-width: 520px;
  text-align: center;
  padding: 44px 40px;
  border: 1.5px solid rgba(220, 38, 38, .4);
  animation: fadeUp .7s ease both;
}
.trap-ico { font-size: 58px; animation: floatY 3s ease-in-out infinite; }
.trap-card h1 { color: #f87171; font-size: 28px; margin: 14px 0 10px; }
.trap-msg { color: #c6d9ee; font-size: 15px; margin-bottom: 20px; }
.trap-ip {
  background: rgba(220, 38, 38, .1);
  border: 1px dashed rgba(248, 113, 113, .5);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
}
.trap-ip span { display: block; font-size: 11.5px; color: #f87171; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.trap-ip code { background: transparent; border: none; color: #fff; font-size: 16px; }
.trap-note { color: #64748b; font-size: 12.5px; margin-bottom: 20px; }

/* ---------- payment redirect ---------- */
.pay-redirect { text-align: center; padding: 130px 20px 80px; }
.spinner {
  width: 54px; height: 54px;
  margin: 0 auto 20px;
  border: 4px solid var(--border);
  border-top-color: var(--sky2);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-body { background: var(--bg2); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 250px;
  background: #0a1728;
  color: #c6d9ee;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 90;
  transition: transform .3s ease;
}
[data-theme="dark"] .admin-sidebar { background: #02070f; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 20px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 14px; }
.admin-brand-txt { color: #fff; font-weight: 800; font-size: 15px; line-height: 1.2; }
.admin-brand-txt em { display: block; font-style: normal; font-size: 10.5px; color: #7dd3fc; font-weight: 600; letter-spacing: 1px; }
.admin-nav { display: grid; gap: 3px; flex: 1; overflow-y: auto; padding-bottom: 8px; min-height: 0; scrollbar-width: thin; scrollbar-color: rgba(125, 211, 252, .35) transparent; }
.admin-nav::-webkit-scrollbar { width: 6px; }
.admin-nav::-webkit-scrollbar-thumb { background: rgba(125, 211, 252, .35); border-radius: 8px; }
.admin-nav::-webkit-scrollbar-track { background: transparent; }
.admin-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: #9fc2e8;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
}
.admin-link:hover { background: rgba(56, 189, 248, .1); color: #fff; }
.admin-link.active { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(56, 189, 248, .35); }
.msg-count {
  margin-left: auto;
  background: #f43f5e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 21px; height: 21px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  animation: pop .4s ease;
}
.admin-ico { width: 20px; text-align: center; }
.admin-side-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; display: grid; gap: 3px; }
.admin-main { flex: 1; margin-left: 250px; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 26px;
  background: rgba(244, 249, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .admin-topbar { background: rgba(5, 13, 26, .88); }
.admin-top-title h1 { font-size: 19px; font-weight: 800; }
.admin-top-title small { color: var(--muted); font-size: 12px; }
.admin-top-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.admin-pill {
  background: var(--grad-soft);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sky1);
}
.admin-burger { display: none; }
.admin-content { padding: 26px; display: grid; gap: 22px; flex: 1; align-content: start; }
.admin-foot { padding: 18px 26px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); }

.admin-grid { display: grid; gap: 22px; }
.admin-grid.stats-row { grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); }
.admin-grid.two { grid-template-columns: 1fr 1fr; }
.admin-grid.chart-grid { grid-template-columns: 1.6fr 1fr; }
.admin-card { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head h3 { font-size: 16.5px; font-weight: 800; }
.form-section { margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px dashed var(--border); }
.form-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.form-section h3 { font-size: 15px; font-weight: 800; color: var(--sky1); margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid.four { grid-template-columns: repeat(4, 1fr); }
.form-grid .full { grid-column: 1/-1; }
.field span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field .small { display: inline-block; margin-top: 6px; }
.check-field { display: flex; align-items: center; gap: 10px; }
.check-field input { width: 18px; height: 18px; }
.check-field span { color: var(--text); font-weight: 600; }
.form-actions { display: flex; gap: 12px; margin-top: 20px; }

.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
.admin-table th {
  text-align: left;
  padding: 11px 12px;
  background: var(--grad-soft);
  color: var(--sky1);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .8px;
  white-space: nowrap;
}
.admin-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: var(--card2); }
.small-code { font-size: 12px; padding: 3px 7px; }
.td-prod { display: flex; align-items: center; gap: 10px; }
.td-prod img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.td-prod small { display: block; color: var(--muted); font-size: 11.5px; }
.row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row-actions form { display: inline-flex; }
.toggle {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--card);
  font-size: 15px;
  color: var(--muted);
  transition: all .2s;
}
.toggle.on { background: var(--grad); color: #fff; border-color: transparent; }

.bar-chart { display: flex; align-items: flex-end; gap: 12px; height: 190px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar {
  width: 100%;
  max-width: 44px;
  border-radius: 9px 9px 4px 4px;
  background: var(--grad);
  min-height: 6px;
  box-shadow: 0 8px 16px rgba(56, 189, 248, .3);
  transition: height .6s ease;
  animation: growUp .8s ease;
}
.bar-col small { color: var(--muted); font-size: 11px; }
@keyframes growUp { from { transform: scaleY(0); transform-origin: bottom; } to { transform: scaleY(1); } }
.top-prod { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.top-prod:last-child { border-bottom: none; }

.gallery-manage { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.gallery-item {
  width: 120px;
  background: var(--card2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.gallery-item img { width: 100%; height: 80px; object-fit: cover; }
.gallery-item label { display: flex; gap: 6px; align-items: center; padding: 7px 10px; font-size: 12px; color: var(--bad); cursor: pointer; }
.gallery-item input { width: auto; }
.cat-admin-list { display: grid; gap: 10px; }
.cat-admin-row { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--card2); border-radius: 12px; }
.cat-admin-row img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.cat-admin-row small { display: block; color: var(--muted); }
.cat-admin-row form { margin-left: auto; }

.code-block {
  background: #0b1e33;
  color: #bae6fd;
  padding: 18px;
  border-radius: 14px;
  overflow-x: auto;
  font-size: 12.8px;
  line-height: 1.7;
  border: 1.5px solid #1c3350;
}
.secret-box { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.secret-box code { flex: 1; font-size: 13.5px; padding: 12px 14px; background: var(--card2); }
.extend-form input { width: 70px; padding: 7px 9px; font-size: 12.5px; }

/* ---------- dashboard greeting ---------- */
.dash-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 26px;
  background: var(--grad);
  border: none;
  background-size: 200% 200%;
  animation: gradShift 6s ease infinite;
  color: #fff;
  box-shadow: 0 14px 34px rgba(56, 189, 248, .35);
}
.dash-greeting h2 { font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.dash-greeting p { color: rgba(255, 255, 255, .88); font-size: 13.5px; }
.dash-greeting .btn-light { color: var(--sky1); }
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-sub { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.stat-link { font-size: 12px; font-weight: 700; color: var(--sky1); }
.rank {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  align-items: center;
  justify-content: center;
  margin-right: 4px;
}

/* ---------- contact page ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 26px; align-items: start; }
.contact-info, .contact-form-card { padding: 30px; }
.contact-info h3, .contact-form-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.contact-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.contact-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border);
  align-items: flex-start;
}
.contact-item:last-child { border-bottom: none; }
.contact-ico {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(56, 189, 248, .35);
}
.contact-item b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.contact-item a { color: var(--sky1); font-weight: 600; font-size: 14.5px; }
.contact-item p { color: var(--muted); font-size: 13.5px; }
.contact-form-card form { margin-top: 8px; }

/* ---------- admin messages inbox ---------- */
.msg-list { display: grid; gap: 12px; }
.msg-row {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.msg-row:hover { border-color: var(--sky2); }
.msg-row.unread { border-color: var(--sky2); background: var(--grad-soft); }
.msg-row summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  flex-wrap: wrap;
}
.msg-row summary::-webkit-details-marker { display: none; }
.msg-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sky2);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .2);
}
.msg-row.unread .msg-dot { background: #f43f5e; box-shadow: 0 0 0 4px rgba(244, 63, 94, .2); animation: pulseDot 1.4s ease infinite; }
@keyframes pulseDot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.msg-subject { flex: 1; min-width: 160px; font-size: 14px; }
.msg-from { color: var(--muted); font-size: 12.5px; min-width: 160px; }
.msg-date { color: var(--muted); font-size: 12px; white-space: nowrap; }
.msg-toggle { color: var(--muted); font-size: 12px; transition: transform .25s; }
.msg-row[open] .msg-toggle { transform: rotate(180deg); }
.msg-body {
  border-top: 1px dashed var(--border);
  padding: 18px;
  background: var(--card2);
  animation: fadeIn .3s ease;
}
.msg-body > p { font-size: 14.5px; line-height: 1.75; margin-bottom: 14px; white-space: pre-wrap; }
.msg-meta { display: flex; gap: 10px 26px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.msg-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.msg-actions form { display: inline-flex; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--sky2), var(--sky1)); border-radius: 20px; }

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .admin-grid.stats-row { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
  .search-box { display: none; }
}
