:root {
  --bg-0: #061325;
  --bg-1: #0d1f36;
  --card: rgba(9, 24, 44, 0.82);
  --card-border: rgba(150, 196, 255, 0.16);
  --text: #ecf4ff;
  --muted: #9fb4cf;
  --primary: #00d48a;
  --primary-2: #23f5b0;
  --accent: #31a3ff;
  --warning: #ffba3a;
  --danger: #ff5b67;
  --success: #27d980;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.42);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 8% -12%, rgba(49, 163, 255, 0.3) 0%, rgba(49, 163, 255, 0) 60%),
    radial-gradient(1000px 600px at 100% 0%, rgba(0, 212, 138, 0.22) 0%, rgba(0, 212, 138, 0) 58%),
    linear-gradient(165deg, var(--bg-0) 0%, var(--bg-1) 100%);
  min-height: 100vh;
  line-height: 1.5;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.18;
}

a { color: inherit; text-decoration: none; }

.shell-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-shell-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(5, 18, 34, 0.72);
  border-bottom: 1px solid rgba(145, 193, 255, 0.14);
}

.site-shell-header .shell-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--accent), var(--primary));
  color: #031423;
  font-weight: 800;
}

.brand-text {
  letter-spacing: 0.02em;
  font-size: 1.08rem;
}

.shell-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #d7e9ff;
  font-weight: 600;
  font-size: 0.94rem;
}

.shell-nav a {
  opacity: 0.92;
  transition: opacity 0.2s, color 0.2s;
}

.shell-nav a:hover {
  opacity: 1;
  color: #fff;
}

.btn-header-cta {
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--primary), var(--primary-2));
  color: #012318;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 30px rgba(0, 212, 138, 0.28);
}

.site-main {
  padding: 36px 0 80px;
  position: relative;
  z-index: 1;
}

.breadcrumb-wrap {
  border-bottom: 1px solid rgba(145, 193, 255, 0.12);
  background: rgba(6, 18, 35, 0.65);
}

.breadcrumb-wrap .shell-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #a7c0dd;
}

.breadcrumb-wrap a {
  color: #d3e9ff;
}

.breadcrumb-wrap [aria-current='page'] {
  color: #f2f8ff;
  font-weight: 700;
}

.breadcrumb-sep {
  color: #7f9aba;
}

.hero-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
}

.hero-block,
.recharge-card,
.info-card,
.seo-card,
.checkout-panel,
.checkout-summary,
.admin-card,
.admin-login,
.legal-card,
.article-card {
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero-block {
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.hero-block::after {
  content: '';
  position: absolute;
  right: -70px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 163, 255, 0.38) 0%, rgba(49, 163, 255, 0) 70%);
}

.overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bbd8ff;
  margin-bottom: 14px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(0, 212, 138, 0.6);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 138, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(0, 212, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 138, 0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.95rem, 4vw, 3.3rem);
  line-height: 1.08;
  margin: 0 0 14px;
}

.hero-title strong {
  color: var(--primary-2);
}

.hero-desc {
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 58ch;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-list li {
  color: #dcecff;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.feature-list li::before {
  content: '>'; 
  color: var(--primary);
  font-weight: 800;
  margin-top: 1px;
}

.recharge-card {
  padding: 24px;
}

.card-title {
  font-family: var(--font-heading);
  margin: 0 0 4px;
  font-size: 1.22rem;
}

.card-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.93rem;
}

.input,
.select,
textarea {
  width: 100%;
  border: 1px solid rgba(166, 205, 255, 0.24);
  border-radius: var(--radius-md);
  background: rgba(8, 21, 39, 0.9);
  color: #f2f7ff;
  padding: 13px 14px;
  font: inherit;
}

.input:focus,
.select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(35, 245, 176, 0.65);
  box-shadow: 0 0 0 4px rgba(35, 245, 176, 0.14);
}

.form-row { margin-bottom: 14px; }
.form-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bdd8ff;
  font-weight: 700;
}

.operator-grid,
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 16px;
}

.operator-item,
.amount-item {
  position: relative;
}

.operator-item input,
.amount-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.operator-item label,
.amount-item label {
  display: block;
  cursor: pointer;
  border: 1px solid rgba(167, 205, 255, 0.22);
  border-radius: 12px;
  background: rgba(10, 25, 45, 0.86);
  padding: 12px;
  text-align: center;
  font-weight: 700;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}

.amount-item .bonus {
  margin-top: 4px;
  display: block;
  color: #b8d0ea;
  font-size: 0.72rem;
  font-weight: 600;
}

.amount-item .badge {
  margin-top: 6px;
  display: inline-block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #042016;
  background: var(--warning);
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 800;
}

.operator-item input:checked + label,
.amount-item input:checked + label {
  border-color: var(--primary-2);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(35, 245, 176, 0.2);
}

.btn-primary,
.btn-ghost,
.btn-danger,
.btn-secondary {
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  border-radius: 13px;
  transition: transform 0.16s, opacity 0.16s;
}

.btn-primary {
  width: 100%;
  padding: 14px 16px;
  color: #052116;
  background: linear-gradient(140deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 30px rgba(0, 212, 138, 0.28);
}

.btn-secondary {
  padding: 11px 14px;
  color: #e4f0ff;
  border: 1px solid rgba(157, 197, 248, 0.24);
  background: rgba(11, 30, 55, 0.86);
}

.btn-ghost {
  padding: 11px 16px;
  color: #d9ebff;
  border: 1px solid rgba(157, 197, 248, 0.26);
  background: transparent;
}

.btn-danger {
  padding: 11px 16px;
  color: #fff;
  background: linear-gradient(135deg, #ca2d3e, #ff5b67);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover,
.btn-danger:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.info-strip {
  width: min(1180px, calc(100% - 40px));
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.info-card {
  padding: 16px;
  border-radius: var(--radius-lg);
}

.info-title {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: #bcd7f6;
  letter-spacing: 0.08em;
}

.info-value {
  margin: 8px 0 0;
  font-family: var(--font-heading);
  font-size: 1.18rem;
}

.section-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 0;
  display: grid;
  gap: 18px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seo-card,
.article-card,
.legal-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.seo-card h3,
.article-card h3,
.legal-card h2,
.legal-card h3 {
  margin-top: 0;
  font-family: var(--font-heading);
}

.seo-card p,
.article-card p,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

.cta-inline {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b9ffd7;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid rgba(147, 188, 235, 0.14);
  background: rgba(4, 13, 25, 0.68);
  margin-top: 56px;
  padding-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 24px;
}

.site-footer h4 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  margin-top: 24px;
  padding: 16px;
  text-align: center;
  color: #9cb0c7;
  border-top: 1px solid rgba(146, 186, 229, 0.12);
}

.mini-muted {
  margin: 6px 0 0;
  color: #9bb0ca;
  font-size: 0.85rem;
}

/* Checkout */
.checkout-layout {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
}

.checkout-summary,
.checkout-panel {
  padding: 24px;
}

.checkout-panel .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.qr-wrap {
  margin: 12px 0 10px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(9, 21, 36, 0.95);
  border: 1px solid rgba(152, 196, 245, 0.19);
  text-align: center;
}

.qr-wrap img {
  width: min(280px, 100%);
  height: auto;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.78rem;
  background: rgba(49, 163, 255, 0.16);
  color: #c7e6ff;
}

.success-box,
.error-box,
.notice-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
}

.success-box { border: 1px solid rgba(39, 217, 128, 0.45); background: rgba(39, 217, 128, 0.15); color: #c8ffe1; }
.error-box { border: 1px solid rgba(255, 91, 103, 0.55); background: rgba(255, 91, 103, 0.14); color: #ffd8dc; }
.notice-box { border: 1px solid rgba(49, 163, 255, 0.42); background: rgba(49, 163, 255, 0.13); color: #d5edff; }

.hidden { display: none !important; }

/* Admin */
.admin-body {
  background: linear-gradient(165deg, #081224 0%, #12223f 100%);
}

.admin-wrap,
.admin-login {
  width: min(1220px, calc(100% - 36px));
  margin: 24px auto;
}

.admin-login {
  max-width: 460px;
  padding: 26px;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-card {
  padding: 16px;
  border-radius: var(--radius-lg);
}

.admin-card .k {
  margin: 0;
  color: #aac7e9;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}

.admin-card .v {
  margin: 7px 0 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.admin-block {
  margin-top: 12px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: var(--card);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid rgba(156, 198, 247, 0.14);
  vertical-align: top;
  text-align: left;
  font-size: 0.84rem;
}

th {
  color: #b9d4ef;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.2);
}

.badge.success { background: rgba(39, 217, 128, 0.12); color: #b5f8d2; border-color: rgba(39,217,128,0.28); }
.badge.info { background: rgba(49, 163, 255, 0.13); color: #cbe8ff; border-color: rgba(49,163,255,0.32); }
.badge.warn { background: rgba(255, 186, 58, 0.14); color: #ffe5af; border-color: rgba(255,186,58,0.4); }
.badge.neutral { background: rgba(190, 201, 216, 0.11); color: #dbe6f3; border-color: rgba(190,201,216,0.26); }

.admin-danger {
  margin-top: 14px;
  border: 1px solid rgba(255, 91, 103, 0.35);
  background: rgba(255, 91, 103, 0.09);
  border-radius: 14px;
  padding: 16px;
}

.admin-danger h3 {
  margin-top: 0;
  font-family: var(--font-heading);
  color: #ffc7cc;
}

/* Generic pages */
.page-container {
  width: min(980px, calc(100% - 36px));
  margin: 10px auto 0;
}

.legal-card h2,
.article-card h2 {
  font-family: var(--font-heading);
  margin-top: 0;
}

.legal-card ul,
.article-card ul {
  padding-left: 18px;
}

.cta-fixed {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--primary), var(--primary-2));
  color: #042014;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .hero-grid,
  .checkout-layout,
  .seo-grid,
  .info-strip,
  .admin-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .breadcrumb-wrap .shell-inner {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 2px;
  }

  .shell-nav {
    display: none;
  }

  .site-shell-header .shell-inner {
    min-height: 68px;
  }
}
