@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --r: #e0243a;
  --r2: #c01f33;
  --r-glow: rgba(224, 36, 58, 0.2);
  --bg: #0d1117;
  --bg2: #161b22;
  --bg3: #1c2128;
  --line: #30363d;
  --line2: #3d444d;
  --t1: #e6edf3;
  --t2: #c9d1d9;
  --t3: #8b949e;
  --font: "Inter", system-ui, sans-serif;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t2);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ============================================================
   PUBLIC HEADER
   ============================================================ */
.gs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(14px);
}

.gs-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.gs-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--t1);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gs-logo__icon {
  width: 32px;
  height: 32px;
  background: var(--r);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}

.gs-nav {
  display: flex;
  gap: 6px;
  list-style: none;
}

.gs-nav a {
  text-decoration: none;
  color: var(--t3);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}

.gs-nav a:hover {
  color: var(--t1);
  background: var(--bg3);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.gs-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all .18s ease;
  padding: 11px 20px;
  font-size: 14px;
}

.gs-btn--red {
  background: var(--r);
  color: #fff;
  box-shadow: 0 4px 24px var(--r-glow);
}

.gs-btn--red:hover {
  background: var(--r2);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--r-glow);
}

.gs-btn--outline {
  background: transparent;
  border: 1px solid var(--line2);
  color: var(--t2);
}

.gs-btn--outline:hover {
  border-color: var(--r);
  color: var(--t1);
  background: rgba(225,29,46,0.06);
}

.gs-btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.gs-btn--lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.gs-btn--full { width: 100%; justify-content: center; }

/* ============================================================
   MAIN WRAPPER
   ============================================================ */
.gs-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* ============================================================
   HERO
   ============================================================ */
.gs-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 24px;
  background: linear-gradient(135deg, #0f0f0f 0%, #150505 100%);
  border: 1px solid var(--line);
  min-height: 420px;
  display: flex;
  align-items: center;
}

.gs-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gs-hero__glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(225,29,46,0.28) 0%, transparent 65%);
  border-radius: 50%;
}

.gs-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 52px 48px;
  align-items: center;
}

.gs-tag {
  display: inline-flex;
  background: rgba(225,29,46,0.14);
  border: 1px solid rgba(225,29,46,0.3);
  color: #fca5a5;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.gs-hero__title {
  font-size: 52px;
  line-height: 1.08;
  font-weight: 900;
  color: var(--t1);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.gs-hero__title em {
  font-style: normal;
  color: var(--r);
}

.gs-hero__sub {
  color: var(--t3);
  font-size: 16px;
  max-width: 52ch;
  margin-bottom: 24px;
  line-height: 1.65;
}

.gs-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gs-hero__badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.gs-hero__badges span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #a1a1aa;
}

.gs-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gs-hero__card-stack {
  position: relative;
  width: 250px;
  height: 240px;
}

.gs-mock-card {
  position: absolute;
  width: 230px;
  height: 145px;
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
}

.gs-mock-card--gp {
  background: linear-gradient(135deg, #003d1a 0%, #006b2b 50%, #00a83f 100%);
  top: 0;
  left: 0;
  transform: rotate(-5deg);
  box-shadow: 0 20px 60px rgba(0,168,42,0.3), 0 0 0 1px rgba(255,255,255,0.1);
}

.gs-mock-card--it {
  background: linear-gradient(135deg, #1c0038 0%, #5b00b5 55%, #9333ea 100%);
  top: 90px;
  left: 18px;
  transform: rotate(4deg);
  z-index: 2;
  box-shadow: 0 20px 60px rgba(147,51,234,0.35), 0 0 0 1px rgba(255,255,255,0.1);
}

.gs-mock-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.04) 40%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}

.gs-mock-card__header {
  display: flex;
  align-items: center;
  gap: 7px;
}

.gs-mock-card__header span {
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.gs-mock-card strong {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.gs-mock-card__chip {
  width: 34px;
  height: 26px;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.2);
  position: absolute;
  bottom: 16px;
  right: 18px;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.gs-statsbar {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg2);
  margin: 14px 0;
}

.gs-statsbar__inner {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr;
  align-items: center;
  padding: 18px 24px;
}

.gs-statsbar article {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.gs-statsbar article strong {
  color: var(--t1);
  font-size: 22px;
  font-weight: 800;
}

.gs-statsbar article span {
  color: var(--t3);
  font-size: 12px;
}

.gs-statsbar__div {
  background: var(--line);
  height: 36px;
  width: 1px;
}

/* ============================================================
   CATEGORY NAV
   ============================================================ */
.gs-catnav {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gs-catnav::-webkit-scrollbar { display: none; }

.gs-catnav__item {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--t3);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all .15s;
}

.gs-catnav__item:hover,
.gs-catnav__item--active {
  color: var(--t1);
  border-color: var(--r);
  background: rgba(225,29,46,0.08);
}

/* ============================================================
   SECTION
   ============================================================ */
.gs-section {
  margin-bottom: 20px;
}

.gs-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.gs-section__head h2 {
  color: var(--t1);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.gs-section__head p {
  color: var(--t3);
  font-size: 14px;
}

.gs-section__head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.gs-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gs-product {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.gs-product:hover {
  border-color: var(--r);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(225,29,46,0.15);
}

.gs-product__img {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gs-product__img--gp {
  background: linear-gradient(145deg, #012a00 0%, #004d14 40%, #008c25 100%);
  box-shadow: inset 0 -40px 60px rgba(0,0,0,0.4);
}

.gs-product__img--it {
  background: linear-gradient(145deg, #16002e 0%, #4a009c 50%, #7c3aed 100%);
  box-shadow: inset 0 -40px 60px rgba(0,0,0,0.4);
}

.gs-product__img img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  transition: transform .4s ease;
}

.gs-product:hover .gs-product__img img {
  transform: scale(1.06);
}

.gs-product__ribbon {
  position: absolute;
  top: 12px;
  left: -2px;
  background: var(--r);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px 3px 8px;
  border-radius: 0 6px 6px 0;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.gs-product__body {
  padding: 14px;
}

.gs-product__cat {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line2);
  color: var(--t3);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}

.gs-product__name {
  color: var(--t1);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.gs-product__pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.gs-product__price {
  font-size: 22px;
  font-weight: 800;
  color: var(--t1);
}

.gs-product__stock {
  font-size: 12px;
  font-weight: 600;
}

.gs-product__stock--in { color: #22c55e; }
.gs-product__stock--out { color: #ef4444; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.gs-how {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
}

.gs-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 28px;
}

.gs-step {
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.gs-step__num {
  font-size: 40px;
  font-weight: 900;
  color: var(--r);
  opacity: .5;
  line-height: 1;
  margin-bottom: 10px;
}

.gs-step h3 {
  color: var(--t1);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 7px;
}

.gs-step p {
  color: var(--t3);
  font-size: 14px;
  line-height: 1.55;
}

.gs-step__arrow {
  color: var(--r);
  font-size: 24px;
  align-self: center;
  font-weight: 700;
  opacity: .6;
}

/* ============================================================
   TRUST BAND
   ============================================================ */
.gs-trust {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg2);
  margin-bottom: 20px;
}

.gs-trust__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.gs-trust__inner article {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.gs-trust__inner article:last-child { border-right: none; }

.gs-trust__inner svg {
  margin-bottom: 10px;
}

.gs-trust__inner h4 {
  color: var(--t1);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.gs-trust__inner p {
  color: var(--t3);
  font-size: 13px;
  line-height: 1.55;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.gs-cta-band {
  background: linear-gradient(120deg, #150202, #1f0404);
  border: 1px solid rgba(225,29,46,0.3);
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.gs-cta-band::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(225,29,46,0.3), transparent 60%);
  pointer-events: none;
}

.gs-cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px 36px;
}

.gs-cta-band h2 {
  color: var(--t1);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.gs-cta-band p {
  color: #f87171;
  font-size: 14px;
}

/* ============================================================
   FAQ
   ============================================================ */
.gs-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gs-faq__item {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s;
}

.gs-faq__item:hover,
.gs-faq__item[open] {
  border-color: var(--r);
}

.gs-faq__item summary {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gs-faq__item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--r);
  font-weight: 400;
}

.gs-faq__item[open] summary::after {
  content: "−";
}

.gs-faq__item p {
  padding: 0 20px 16px;
  color: var(--t3);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.gs-footer {
  border-top: 1px solid var(--line);
  margin-top: 16px;
}

.gs-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 40px 0 32px;
}

.gs-footer__brand strong {
  color: var(--t1);
  font-size: 18px;
  font-weight: 800;
  display: block;
  margin-bottom: 8px;
}

.gs-footer__brand p {
  color: var(--t3);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
  max-width: 32ch;
}

.gs-footer__col h4 {
  color: var(--t1);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.gs-footer__col a {
  display: block;
  text-decoration: none;
  color: var(--t3);
  font-size: 13px;
  margin-bottom: 8px;
  transition: color .15s;
}

.gs-footer__col a:hover {
  color: var(--t1);
}

.gs-footer__bottom {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  font-size: 12px;
  color: var(--t3);
}

/* ============================================================
   ADMIN PANEL (unchanged structure, refreshed look)
   ============================================================ */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 230px;
  background: #0d1117;
  border-right: 1px solid #21262d;
  padding: 24px 16px;
  color: #e6edf3;
}

.sidebar h1 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 2px;
  color: #e6edf3;
}

.sidebar-subtitle {
  font-size: 11px;
  color: #484f58;
  margin-bottom: 20px;
}

.sidebar nav { display: grid; gap: 2px; }

.sidebar nav a {
  display: block;
  text-decoration: none;
  color: #8b949e;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all .15s;
}

.sidebar nav a:hover { background: #21262d; color: #e6edf3; }

.content { padding: 28px; background: #0d1117; min-height: 100vh; color: #c9d1d9; }
.with-sidebar { margin-left: 230px; }

.card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.stats .card h3 { color: #8b949e; font-size: 12px; font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.stats .card p { color: #e6edf3; font-size: 26px; font-weight: 800; }

.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.alert.success { background: rgba(35,134,54,0.12); color: #56d364; border: 1px solid rgba(35,134,54,0.25); }
.alert.error   { background: rgba(218,54,51,0.12); color: #ff7b72; border: 1px solid rgba(218,54,51,0.25); }
.alert.warning { background: rgba(187,128,9,0.12);  color: #e3b341; border: 1px solid rgba(187,128,9,0.25); }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px; border-bottom: 1px solid #21262d; text-align: left; }
th { color: #8b949e; font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
td { color: #c9d1d9; }
tr:hover td { background: rgba(255,255,255,0.025); }

.table-card { overflow-x: auto; }

.inline-form { display: flex; align-items: center; gap: 8px; }
.inline-form input, .inline-form select, .inline-form button { width: auto; margin: 0; }

input, select, textarea {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 10px;
  padding: 9px 12px;
  border: 1px solid #30363d;
  border-radius: 8px;
  background: #0d1117;
  color: #e6edf3;
  font-family: var(--font);
  font-size: 13px;
  transition: border-color .15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(88,166,255,0.1);
}

label { font-size: 13px; font-weight: 500; color: #8b949e; }

button {
  padding: 9px 16px;
  background: var(--r);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background .15s, transform .1s;
}

button:hover { background: var(--r2); transform: translateY(-1px); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.note-item { border: 1px solid #21262d; border-radius: 8px; padding: 10px; margin-bottom: 8px; background: #0d1117; }
.note-item p { color: #c9d1d9; font-size: 13px; }
.note-item small { color: #484f58; font-size: 12px; }
.hash { max-width: 200px; word-break: break-all; font-size: 11px; color: #484f58; }

.login-card {
  max-width: 400px;
  margin: 80px auto;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 16px;
  padding: 32px;
}

.login-card h2 { color: #e6edf3; font-size: 22px; margin-bottom: 6px; }
.login-card > p { color: #8b949e; font-size: 14px; margin-bottom: 24px; }

/* ============================================================
   HOMEPAGE DIAMOND VISUAL
   ============================================================ */

/* Combined hero visual wrapper */
.gs-hero__visual-wrap {
  position: relative;
  width: 340px;
  height: 380px;
  flex-shrink: 0;
}

/* Spinning rings backdrop */
.gs-ring-backdrop {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gs-ring-backdrop__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: spin-slow linear infinite;
}

.gs-ring-backdrop__ring--1 {
  width: 88px;
  height: 88px;
  background: rgba(225,29,46,0.06);
  border-color: rgba(225,29,46,0.35);
  animation: none;
}

.gs-ring-backdrop__ring--2 {
  width: 150px;
  height: 150px;
  border-color: rgba(225,29,46,0.2);
  border-style: solid;
  animation-duration: 11s;
}

.gs-ring-backdrop__ring--3 {
  width: 214px;
  height: 214px;
  border-color: rgba(225,29,46,0.1);
  border-style: dashed;
  animation-duration: 18s;
  animation-direction: reverse;
}

.gs-ring-backdrop__orb {
  font-size: 40px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 22px rgba(225,29,46,0.7));
  animation: float 3s ease-in-out infinite;
}

/* Floating platform labels */
.gs-hero__float {
  position: absolute;
  background: rgba(12,12,12,0.88);
  border: 1px solid;
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
  z-index: 10;
  pointer-events: none;
}

.gs-hero__float--a {
  top: 4px;
  left: -8px;
  color: #f9a8d4;
  border-color: rgba(236,72,153,0.35);
  animation-delay: 0s;
}

.gs-hero__float--b {
  top: 108px;
  right: -4px;
  color: #fca5a5;
  border-color: rgba(220,38,38,0.35);
  animation-delay: 1.1s;
}

.gs-hero__float--c {
  bottom: 108px;
  left: -4px;
  color: #86efac;
  border-color: rgba(34,197,94,0.35);
  animation-delay: 2.2s;
  font-size: 11px;
}

/* Card stack repositioned inside wrap */
.gs-hero__visual-wrap .gs-hero__card-stack {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.gs-hero__glow--2 {
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(139,0,255,0.12) 0%, transparent 65%);
  border-radius: 50%;
}

.gs-diamond-visual {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gs-diamond-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(225,29,46,0.2);
  animation: spin-slow linear infinite;
}

.gs-diamond-ring--1 {
  width: 100px;
  height: 100px;
  background: rgba(225,29,46,0.06);
  animation: none;
}

.gs-diamond-ring--2 {
  width: 170px;
  height: 170px;
  border-color: rgba(225,29,46,0.15);
  animation-duration: 12s;
}

.gs-diamond-ring--3 {
  width: 240px;
  height: 240px;
  border-color: rgba(225,29,46,0.08);
  border-style: dashed;
  animation-duration: 20s;
  animation-direction: reverse;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.gs-diamond-orb {
  font-size: 48px;
  filter: drop-shadow(0 0 24px rgba(225,29,46,0.6));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.gs-diamond-float {
  position: absolute;
  background: rgba(20,20,20,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
}

.gs-diamond-float--a { top: 20px; right: -10px; animation-delay: 0s; color: #86efac; border-color: rgba(34,197,94,0.3); }
.gs-diamond-float--b { bottom: 30px; left: -10px; animation-delay: 1s; color: #c4b5fd; border-color: rgba(139,0,255,0.3); }
.gs-diamond-float--c { bottom: 10px; right: 10px;  animation-delay: 2s; color: #fcd34d; border-color: rgba(245,158,11,0.3); font-size: 11px; }

/* Games bar */
.gs-games-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 20px;
  margin: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: wrap;
}

.gs-games-bar::-webkit-scrollbar { display: none; }

.gs-games-bar__label {
  color: var(--t3);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.gs-games-bar__items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gs-game-tag {
  background: var(--bg3);
  border: 1px solid var(--line2);
  color: var(--t2);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* How it works note */
.gs-how__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 16px;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: 10px;
  font-size: 13px;
  color: #86efac;
}

/* Diamond product card badge */
.gs-diamond-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 4px;
}

.gs-diamond-badge__icon {
  font-size: 44px;
  filter: drop-shadow(0 0 16px rgba(255,255,255,0.3));
  animation: float 3s ease-in-out infinite;
}

.gs-diamond-badge__amount {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.gs-diamond-badge__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}

.gs-product__platform {
  position: absolute;
  bottom: 10px;
  right: 10px;
  opacity: 0.5;
}

/* Product card overlay label */
.gs-product__overlay-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
}

/* Platforms bar */
.gs-platforms {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 20px;
  margin: 14px 0;
  flex-wrap: wrap;
}

.gs-platforms__label {
  color: var(--t3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.gs-platforms__list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gs-platform-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid;
  white-space: nowrap;
  transition: transform .15s;
  cursor: default;
}

.gs-platform-tag:hover { transform: translateY(-1px); }

.gs-platform-tag--tiktok { background: rgba(0,0,0,0.4);        color: #fff;     border-color: rgba(255,255,255,0.15); }
.gs-platform-tag--bigo   { background: rgba(220,38,38,0.12);   color: #fca5a5;  border-color: rgba(220,38,38,0.3); }
.gs-platform-tag--likee  { background: rgba(234,179,8,0.1);    color: #fde047;  border-color: rgba(234,179,8,0.3); }
.gs-platform-tag--tango  { background: rgba(59,130,246,0.1);   color: #93c5fd;  border-color: rgba(59,130,246,0.3); }
.gs-platform-tag--yalla  { background: rgba(168,85,247,0.1);   color: #d8b4fe;  border-color: rgba(168,85,247,0.3); }
.gs-platform-tag--uplive { background: rgba(20,184,166,0.1);   color: #5eead4;  border-color: rgba(20,184,166,0.3); }
.gs-platform-tag--more   { background: transparent;             color: #52525b;  border-color: #2e2e2e; font-style: italic; }

/* Navigation header category bar */
.gs-catnav { display: none; }

/* ============================================================
   ADMIN EXTENDED STYLES
   ============================================================ */

/* Active nav */
.sidebar nav a.nav-active {
  background: rgba(225,29,46,0.12);
  color: #fff;
  border-left: 2px solid var(--r);
  padding-left: 10px;
}

/* Page header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 12px;
}

.page-header h2 {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.page-sub {
  color: #52525b;
  font-size: 13px;
  margin: 0;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
}

.badge--green  { background: rgba(34,197,94,0.14);  color: #86efac; border: 1px solid rgba(34,197,94,0.25); }
.badge--orange { background: rgba(245,158,11,0.14); color: #fcd34d; border: 1px solid rgba(245,158,11,0.25); }
.badge--red    { background: rgba(239,68,68,0.14);  color: #fca5a5; border: 1px solid rgba(239,68,68,0.25); }
.badge--gray   { background: rgba(113,113,122,0.14);color: #a1a1aa; border: 1px solid rgba(113,113,122,0.25); }
.badge--gp     { background: rgba(1,168,42,0.14);   color: #86efac; border: 1px solid rgba(1,168,42,0.25); }
.badge--it     { background: rgba(139,0,255,0.14);  color: #d8b4fe; border: 1px solid rgba(139,0,255,0.25); }

/* Danger small button */
.btn-danger-sm {
  padding: 4px 10px;
  background: rgba(239,68,68,0.12);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background .15s;
}
.btn-danger-sm:hover { background: rgba(239,68,68,0.25); }

/* Detail table */
.detail-table { width: 100%; }
.detail-table td { padding: 7px 0; border-bottom: 1px solid #1a1a1a; font-size: 13px; }
.detail-table td:first-child { color: #71717a; width: 140px; }
.detail-table tr:last-child td { border-bottom: none; }

/* Stock breakdown */
.stock-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stock-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
}

.stock-pill--gp { border-color: rgba(1,168,42,0.3); }
.stock-pill--it { border-color: rgba(139,0,255,0.3); }

.stock-pill__type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}
.stock-pill--gp .stock-pill__type { color: #86efac; }
.stock-pill--it .stock-pill__type { color: #d8b4fe; }

.stock-pill__denom { color: #fff; font-weight: 700; }
.stock-pill__count { color: #71717a; font-size: 12px; }
.stock-pill__val   { color: #a1a1aa; font-size: 12px; }

/* Preview card (payment detail) */
.preview-card {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
}

.preview-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #161616;
  border-bottom: 1px solid #222;
  font-size: 13px;
  font-weight: 600;
  color: #a1a1aa;
}

.preview-card__rows { padding: 8px 0; }

.preview-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 13px;
  color: #d4d4d8;
  border-bottom: 1px solid #1a1a1a;
}
.preview-row:last-child { border-bottom: none; }

.preview-card__footer {
  padding: 12px 16px;
  background: #161616;
  border-top: 1px solid #222;
}

.preview-totals {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.preview-totals > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
}

.preview-totals strong {
  font-size: 16px;
  font-weight: 700;
}

/* Tab bar */
.tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.tab-btn {
  background: #111;
  border: 1px solid #222;
  color: #71717a;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all .15s;
}

.tab-btn:hover { color: #fff; border-color: #444; }
.tab-btn--active { background: var(--r); border-color: var(--r); color: #fff; }

/* Action cards (dashboard) */
.action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #111;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  transition: all .2s;
}

.action-card:hover {
  border-color: var(--r);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(225,29,46,0.1);
}

.action-card--gp { border-left: 3px solid rgba(1,168,42,0.5); }
.action-card--red { border-left: 3px solid rgba(225,29,46,0.5); }

.action-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(225,29,46,0.12);
  color: #e11d2e;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  flex-shrink: 0;
}

.action-card strong { display: block; color: #fff; font-size: 14px; font-weight: 700; }
.action-card span   { font-size: 12px; color: #71717a; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .gs-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gs-steps { grid-template-columns: 1fr; }
  .gs-step__arrow { display: none; }
  .gs-trust__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gs-trust__inner article:nth-child(2) { border-right: none; }
  .gs-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .gs-hero__inner { grid-template-columns: 1fr; padding: 32px 24px; }
  .gs-hero__visual { display: none; }
  .gs-hero__visual-wrap { display: none; }
  .gs-hero__title { font-size: 36px; }
  .gs-statsbar__inner { grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px; }
  .gs-statsbar__div { display: none; }
  .gs-products { grid-template-columns: 1fr; }
  .gs-faq { grid-template-columns: 1fr; }
  .gs-nav { display: none; }
  .gs-cta-band__inner { flex-direction: column; align-items: flex-start; }
  .gs-trust__inner { grid-template-columns: 1fr; }
  .gs-trust__inner article { border-right: none; border-bottom: 1px solid var(--line); }
  .gs-trust__inner article:last-child { border-bottom: none; }
  .gs-footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .gs-section__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sidebar { position: static; width: 100%; }
  .with-sidebar { margin-left: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .gs-custom-amount__card { padding: 18px !important; }
  .gs-ca-presets { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ============================================================
   CUSTOM AMOUNT SECTION
   ============================================================ */
.gs-custom-amount {
  background: linear-gradient(180deg, rgba(224,36,58,.04) 0%, transparent 100%);
}
.gs-custom-amount__card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.gs-ca-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.gs-ca-tab {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px;
  background: transparent; border: none; color: var(--t3); cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.gs-ca-tab img { filter: grayscale(100%) brightness(.7); transition: filter .2s; }
.gs-ca-tab:hover { color: var(--t2); }
.gs-ca-tab.gs-ca-tab--active {
  color: var(--t1);
  border-bottom-color: var(--r);
  background: var(--bg2);
}
.gs-ca-tab.gs-ca-tab--active img { filter: none; }
.gs-ca-body { padding: 24px; }
.gs-ca-label {
  display: block; font-size: 13px; color: var(--t3);
  margin-bottom: 8px; font-weight: 500;
}
.gs-ca-input-wrap {
  position: relative;
  margin-bottom: 16px;
}
.gs-ca-currency {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 700; color: var(--t3); pointer-events: none;
}
.gs-ca-input {
  width: 100%;
  padding: 18px 18px 18px 44px;
  font-size: 28px; font-weight: 700;
  background: var(--bg);
  color: var(--t1);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  transition: all .15s;
}
.gs-ca-input::-webkit-outer-spin-button,
.gs-ca-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gs-ca-input:focus {
  outline: none;
  border-color: var(--r);
  box-shadow: 0 0 0 3px var(--r-glow);
}
.gs-ca-presets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.gs-ca-preset {
  padding: 10px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--t2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.gs-ca-preset:hover {
  border-color: var(--line2);
  color: var(--t1);
  background: var(--bg3);
}
.gs-ca-preset.gs-ca-preset--active {
  border-color: var(--r);
  color: var(--r);
  background: rgba(224,36,58,.08);
}

/* ============================================================
   ADMIN TOPBAR (global search)
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,17,23,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin: -24px -24px 20px -24px;
  padding-left: 24px;
  padding-right: 24px;
}
.topbar__search {
  position: relative;
  max-width: 720px;
}
.topbar__search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.topbar__search input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--t1);
  font-family: inherit;
  font-size: 13px;
  transition: border-color .15s, box-shadow .15s;
}
.topbar__search input:focus {
  outline: none;
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(88,166,255,.15);
  background: var(--bg);
}
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar__search { flex: 1; }
.topbar__hint {
  font-size: 11px;
  color: var(--t3);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: help;
  white-space: nowrap;
  user-select: none;
}
.topbar__hint:hover {
  color: var(--t2);
  border-color: var(--line2);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 0;
}
.pagination .gs-btn { padding: 6px 12px; font-size: 12px; }

/* Tablo satirlarinda hover efekti */
.table-card table tbody tr:hover {
  background: rgba(88,166,255,.04);
}
.table-card table tbody tr {
  transition: background .12s;
}

/* Sayfalama bilgisi sticky header altinda kalmasin diye */
.page-header {
  align-items: center;
}

/* ============================================================
   COMMAND PALETTE (Cmd+K)
   ============================================================ */
#cmdk-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 100px;
}
.cmdk-modal {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 12px; width: 90%; max-width: 600px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  overflow: hidden;
}
#cmdk-input {
  width: 100%; padding: 16px 20px; font-size: 15px;
  background: var(--bg2); border: none; border-bottom: 1px solid var(--line);
  color: var(--t1); font-family: inherit; outline: none;
}
#cmdk-list { max-height: 50vh; overflow-y: auto; }
.cmdk-item {
  display: block; padding: 10px 20px; color: var(--t2);
  text-decoration: none; font-size: 14px;
  border-bottom: 1px solid var(--bg);
}
.cmdk-item.active, .cmdk-item:hover {
  background: rgba(88,166,255,.1); color: var(--t1);
}
.cmdk-hint {
  padding: 8px 20px; font-size: 11px; color: var(--t3);
  border-top: 1px solid var(--line); margin: 0;
}

/* ============================================================
   LIGHT THEME
   ============================================================ */
[data-theme="light"] {
  --r: #d11f33;
  --r2: #b01a2c;
  --r-glow: rgba(209,31,51,.18);
  --bg: #f6f8fa;
  --bg2: #ffffff;
  --bg3: #f0f3f6;
  --line: #d0d7de;
  --line2: #afb8c1;
  --t1: #1f2328;
  --t2: #424a53;
  --t3: #656d76;
}
[data-theme="light"] body { background: var(--bg); color: var(--t2); }
[data-theme="light"] .sidebar { background: var(--bg2); border-right: 1px solid var(--line); }
[data-theme="light"] .sidebar h1 { color: var(--t1); }
[data-theme="light"] .sidebar nav a { color: var(--t2); }
[data-theme="light"] .sidebar nav a:hover, [data-theme="light"] .sidebar nav a.nav-active { background: var(--bg3); color: var(--t1); }
[data-theme="light"] .card { background: var(--bg2); border-color: var(--line); }
[data-theme="light"] table th { background: var(--bg3); color: var(--t2); }
[data-theme="light"] table td { border-bottom-color: var(--line); }
[data-theme="light"] .table-card table tbody tr:hover { background: rgba(88,166,255,.06); }
[data-theme="light"] input, [data-theme="light"] select, [data-theme="light"] textarea {
  background: var(--bg2); color: var(--t1); border-color: var(--line);
}
[data-theme="light"] .topbar { background: rgba(255,255,255,.85); border-bottom-color: var(--line); }
[data-theme="light"] .topbar__search input { background: var(--bg3); color: var(--t1); border-color: var(--line); }
[data-theme="light"] .topbar__hint { background: var(--bg3); color: var(--t2); border-color: var(--line); }
[data-theme="light"] .gs-btn--outline { color: var(--t2); border-color: var(--line); background: var(--bg2); }
[data-theme="light"] .gs-btn--outline:hover { background: var(--bg3); color: var(--t1); }
[data-theme="light"] .badge--gray { background: var(--bg3); color: var(--t2); }

/* ============================================================
   MOBILE RESPONSIVE — sidebar hamburger
   ============================================================ */
@media (max-width: 900px) {
  .sidebar {
    position: fixed; top: 0; left: -240px; bottom: 0;
    width: 240px; z-index: 200;
    transition: left .25s ease;
    overflow-y: auto;
  }
  .sidebar.open { left: 0; }
  .with-sidebar { margin-left: 0 !important; }
  .topbar {
    margin-left: 0 !important;
  }
  .mobile-menu-btn {
    display: flex !important; align-items: center; justify-content: center;
    width: 36px; height: 36px; background: var(--bg2); border: 1px solid var(--line);
    border-radius: 6px; color: var(--t2); cursor: pointer; font-size: 16px;
    margin-right: 8px;
  }
  .stats { grid-template-columns: 1fr 1fr !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
  table { font-size: 11px; }
  th, td { padding: 6px 8px !important; }
  .page-header { flex-direction: column; align-items: flex-start !important; gap: 10px; }
  .page-header h2 { font-size: 18px; }
}
.mobile-menu-btn { display: none; }

/* PDF print stilleri */
@media print {
  .sidebar, .topbar, .page-header > a, .gs-btn, .pagination, form, .no-print { display: none !important; }
  body, .with-sidebar { background: white !important; color: black !important; margin: 0; padding: 0; }
  .card { border: 1px solid #ccc !important; box-shadow: none !important; page-break-inside: avoid; }
  table { font-size: 10px; }
}

/* ============================================================
   FAZ 3 — MOBILE RESPONSIVE + UX UPGRADES
   ============================================================ */

/* Mobile sidebar (drawer) */
@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    bottom: 0;
    width: 240px;
    transition: left 0.25s ease;
    z-index: 200;
    box-shadow: 2px 0 16px rgba(0,0,0,.5);
  }
  .sidebar.open { left: 0; }
  .with-sidebar { margin-left: 0 !important; padding: 12px !important; }
  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: var(--r); color: #fff;
    border: none; border-radius: 8px;
    font-size: 20px; cursor: pointer;
    position: fixed; top: 12px; left: 12px; z-index: 199;
  }
  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 150;
  }
  .sidebar-overlay.show { display: block; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stats { grid-template-columns: 1fr 1fr !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
  table { font-size: 11px; }
  .card { padding: 14px !important; }
}

@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr !important; }
  h2 { font-size: 18px !important; }
}

/* Toast notification */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
}
.toast {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--t2);
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  animation: toast-slide 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.toast--success { border-color: #56d364; background: rgba(86,211,100,.1); color: #56d364; }
.toast--error { border-color: #ff7b72; background: rgba(255,123,114,.1); color: #ff7b72; }
.toast--warn { border-color: #e3b341; background: rgba(227,179,65,.1); color: #e3b341; }
.toast--info { border-color: #58a6ff; background: rgba(88,166,255,.1); color: #58a6ff; }
.toast__close {
  background: none; border: none; color: inherit; cursor: pointer;
  margin-left: auto; padding: 0; font-size: 16px; opacity: 0.6;
}
.toast__close:hover { opacity: 1; }
@keyframes toast-slide {
  from { transform: translateX(420px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.toast.fade-out { animation: toast-fade 0.3s ease forwards; }
@keyframes toast-fade {
  to { transform: translateX(420px); opacity: 0; }
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner--lg { width: 32px; height: 32px; border-width: 3px; }
.loading-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 9998; backdrop-filter: blur(2px);
}
.loading-overlay.hidden { display: none; }

/* Inline editable cell */
.inline-edit {
  cursor: text;
  border: 1px dashed transparent;
  padding: 2px 4px;
  border-radius: 3px;
  transition: border 0.15s;
}
.inline-edit:hover { border-color: var(--line2); background: var(--bg3); }
.inline-edit.editing { border-color: #58a6ff; background: var(--bg); outline: none; }
.inline-edit.saving { opacity: 0.5; }
.inline-edit.saved { border-color: #56d364; }
.inline-edit.error { border-color: #ff7b72; }

/* Notifications dropdown */
.notif-bell {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--t2);
  font-size: 16px;
}
.notif-bell:hover { background: var(--bg3); }
.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--r);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  padding: 2px 5px;
  min-width: 16px;
  text-align: center;
  font-weight: 700;
}
.notif-dropdown {
  position: absolute;
  top: 100%; right: 0; margin-top: 4px;
  width: 360px; max-height: 480px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  z-index: 250;
  overflow-y: auto;
  display: none;
}
.notif-dropdown.open { display: block; }
.notif-item {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.notif-item:hover { background: var(--bg3); }
.notif-item.unread { background: rgba(88,166,255,.05); border-left: 3px solid #58a6ff; }
.notif-item__time { font-size: 11px; color: var(--t3); margin-top: 4px; }

/* Modal (generic) */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  display: none;
  align-items: center; justify-content: center;
  z-index: 9000;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 500px; width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
}
.modal__header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal__body { padding: 20px; }
.modal__footer { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }

/* Form validation visual */
input:invalid:not(:placeholder-shown), textarea:invalid:not(:placeholder-shown) {
  border-color: #ff7b72 !important;
}
input:valid:not(:placeholder-shown), textarea:valid:not(:placeholder-shown) {
  border-color: rgba(86,211,100,.5);
}

/* Better tables on mobile */
@media (max-width: 700px) {
  .responsive-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .responsive-table table { min-width: 600px; }
}
