/* ===== KIRO TAJ — фирменный тёмно-синий стиль ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0d0d0d;
  --bg2: #0f1729;
  --card: #16213e;
  --card2: #1a1a2e;
  --accent: #6366f1;
  --accent2: #38bdf8;
  --green: #22c55e;
  --red: #ef4444;
  --white: #ffffff;
  --grey: #9aa4b8;
  --light: #e2e8f0;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 640px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 23, 41, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(99,102,241,0.2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.logo-badge {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,0.5);
}
.nav { display: flex; gap: 22px; }
.nav a { color: var(--grey); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--white); }
.lang-switch { display: flex; gap: 4px; }
.lang-btn {
  width: 34px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; background: rgba(255,255,255,0.05);
  border: 1px solid transparent; transition: all .2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.12); }
.lang-btn.active { border-color: var(--accent); background: rgba(99,102,241,0.2); }
@media (max-width: 720px) { .nav { display: none; } }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 12px;
  font-weight: 700; font-size: 15px; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s; text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4338ca); color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.6); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--white); border: 1px solid rgba(255,255,255,0.15); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 16px; font-size: 16px; }
.btn-small { padding: 8px 16px; font-size: 13px; background: rgba(255,255,255,0.1); color: #fff; }

/* ===== Hero ===== */
.hero { position: relative; padding: 90px 0 80px; overflow: hidden; text-align: center; }
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(99,102,241,0.25), transparent 60%),
              linear-gradient(145deg, #1a1a2e, #16213e 50%, #0f3460);
  z-index: -1;
}
.hero-badge {
  display: inline-block; padding: 7px 18px; border-radius: 20px;
  background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.4);
  color: var(--accent2); font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.hero-title { font-size: 46px; font-weight: 800; line-height: 1.15; margin-bottom: 18px; }
.hero-subtitle { color: var(--grey); font-size: 17px; max-width: 620px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 600px) { .hero-title { font-size: 32px; } }

/* ===== Sections ===== */
.section { padding: 70px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(15,23,41,0.6)); }
.center-section { min-height: 70vh; display: flex; align-items: center; }
.section-title { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 10px; }
.section-subtitle { color: var(--grey); text-align: center; font-size: 16px; margin-bottom: 40px; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cards, .cards-3 { grid-template-columns: 1fr; } }
.card {
  background: linear-gradient(145deg, var(--card2), var(--card));
  border: 1px solid rgba(99,102,241,0.2); border-radius: 20px; padding: 30px;
  position: relative;
}
.product-card { border-top: 3px solid var(--accent); }
.card-badge {
  position: absolute; top: 18px; right: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 12px;
  text-transform: uppercase; letter-spacing: .5px;
}
.card-title { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.card-credits { color: var(--accent2); font-weight: 700; font-size: 15px; margin-bottom: 18px; }
.card-features { list-style: none; margin-bottom: 22px; }
.card-features li { color: var(--light); font-size: 14px; padding: 6px 0 6px 26px; position: relative; }
.card-features li::before { content: '⚡'; position: absolute; left: 0; }
.card-price { margin-bottom: 20px; display: flex; align-items: baseline; gap: 8px; }
.price { font-size: 38px; font-weight: 800; }
.old-price { color: var(--grey); text-decoration: line-through; font-size: 18px; }
.price-per { color: var(--grey); font-size: 14px; }
.wholesale-note { text-align: center; color: var(--accent2); margin-top: 34px; font-size: 15px; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; padding: 24px 16px; background: rgba(22,33,62,0.5); border-radius: 16px; border: 1px solid rgba(99,102,241,0.15); }
.step-num {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;
}
.step h4 { font-size: 16px; margin-bottom: 8px; }
.step p { color: var(--grey); font-size: 13px; }

/* ===== Feature cards ===== */
.feature-card { text-align: center; }
.feature-icon { font-size: 40px; margin-bottom: 14px; }
.feature-card h4 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--grey); font-size: 14px; }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid rgba(99,102,241,0.2); border-radius: 14px; padding: 18px 22px; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '＋'; float: right; color: var(--accent2); }
.faq-item[open] summary::after { content: '－'; }
.faq-item p { color: var(--grey); margin-top: 12px; font-size: 14px; }

/* ===== Order / Account ===== */
.order-card, .account-card { text-align: center; max-width: 520px; margin: 0 auto; }
.order-icon { font-size: 46px; margin-bottom: 16px; }
.order-form { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.code-input {
  width: 100%; padding: 16px; border-radius: 12px; font-size: 18px; text-align: center;
  letter-spacing: 2px; text-transform: uppercase;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(99,102,241,0.4); color: #fff;
}
.code-input:focus { outline: none; border-color: var(--accent2); }
.acc-badge {
  display: inline-block; background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.4);
  color: #4ade80; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 16px;
}
.acc-product { color: var(--accent2); font-weight: 700; margin-bottom: 24px; }
.data-box { margin-top: 14px; text-align: left; }
.data-pre {
  background: #0b1220; border: 1px solid rgba(99,102,241,0.3); border-radius: 12px;
  padding: 16px; font-size: 11px; color: #7dd3fc; overflow-x: auto; white-space: pre-wrap;
  word-break: break-all; max-height: 320px; overflow-y: auto;
}
.data-box .btn-small { margin-top: 10px; }
.instructions { text-align: left; margin-top: 28px; background: rgba(22,33,62,0.5); border-radius: 14px; padding: 22px; }
.instructions h3 { font-size: 17px; margin-bottom: 14px; }
.instructions ol { padding-left: 20px; }
.instructions li { color: var(--light); font-size: 14px; padding: 5px 0; }
.instructions a { color: var(--accent2); }

/* ===== Alerts ===== */
.alert { padding: 14px 18px; border-radius: 12px; font-size: 14px; margin: 16px 0; text-align: left; }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.35); color: #fca5a5; }
.alert-warn { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); color: #fca5a5; margin-top: 22px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid rgba(99,102,241,0.2); padding: 34px 0; margin-top: 40px; background: rgba(15,23,41,0.6); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--grey); font-size: 14px; }
.footer-links a:hover { color: var(--accent2); }
.footer-copy { color: #4a5568; font-size: 13px; }

/* ===== Admin ===== */
.admin-wrap { max-width: 960px; margin: 40px auto; padding: 0 20px; }
.admin-login-card { max-width: 380px; margin: 80px auto; }
.form-group { margin-bottom: 16px; text-align: left; }
.form-group label { display: block; font-size: 13px; color: var(--grey); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px; border-radius: 10px; background: rgba(0,0,0,0.3);
  border: 1px solid rgba(99,102,241,0.35); color: #fff; font-size: 14px; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent2); }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-table th { color: var(--grey); font-weight: 600; }
.admin-table code { color: var(--accent2); background: rgba(99,102,241,0.12); padding: 2px 8px; border-radius: 6px; }
.admin-tabs { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-tab { padding: 10px 20px; border-radius: 10px; background: rgba(255,255,255,0.05); color: var(--grey); font-weight: 600; }
.admin-tab.active { background: rgba(99,102,241,0.2); color: #fff; border: 1px solid var(--accent); }
.qr-preview { text-align: center; padding: 20px; }
.qr-preview img { width: 220px; height: 220px; border-radius: 14px; background: #fff; padding: 10px; }
.badge-status { padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.status-used { background: rgba(34,197,94,0.15); color: #4ade80; }
.status-new { background: rgba(99,102,241,0.15); color: var(--accent2); }

/* ===== Header auth + right block ===== */
.header-right { display: flex; align-items: center; gap: 10px; }
.auth-link { color: var(--grey); font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 10px; transition: all .2s; }
.auth-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.auth-reg { background: linear-gradient(135deg, var(--accent), #4338ca); color: #fff; box-shadow: 0 4px 14px rgba(99,102,241,0.4); }
.auth-reg:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.6); }
.auth-cabinet { color: var(--accent2); }
@media (max-width: 720px){ .header-right .lang-switch { display: none; } }

/* ===== Auth pages (modern) ===== */
.auth-wrap {
  min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; position: relative; overflow: hidden;
}
.auth-wrap::before {
  content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.25), transparent 70%);
  top: -150px; right: -100px; filter: blur(40px);
}
.auth-wrap::after {
  content: ''; position: absolute; width: 450px; height: 450px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.18), transparent 70%);
  bottom: -150px; left: -100px; filter: blur(40px);
}
.auth-box {
  position: relative; z-index: 2; width: 100%; max-width: 440px;
  background: rgba(22,33,62,0.55); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 26px;
  padding: 44px 40px; box-shadow: 0 24px 70px rgba(0,0,0,0.55), 0 0 40px rgba(99,102,241,0.15);
  text-align: center;
}
.auth-logo {
  width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800;
  color: #fff; box-shadow: 0 10px 30px rgba(99,102,241,0.5);
}
.auth-title { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-sub { color: var(--grey); font-size: 14px; margin-bottom: 28px; }
.auth-form { text-align: left; }
.auth-field { position: relative; margin-bottom: 16px; }
.auth-field .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 17px; opacity: .6; }
.auth-field input {
  width: 100%; padding: 15px 16px 15px 46px; border-radius: 14px;
  background: rgba(0,0,0,0.3); border: 1.5px solid rgba(255,255,255,0.1); color: #fff;
  font-size: 15px; transition: all .2s;
}
.auth-field input:focus { outline: none; border-color: var(--accent2); background: rgba(0,0,0,0.45); box-shadow: 0 0 0 3px rgba(56,189,248,0.12); }
.auth-field input::placeholder { color: #64748b; }
.auth-submit {
  width: 100%; padding: 16px; border: none; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #4338ca); color: #fff; font-size: 16px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(99,102,241,0.45); transition: all .2s; margin-top: 6px;
}
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(99,102,241,0.6); }
.auth-switch { margin-top: 22px; color: var(--grey); font-size: 14px; }
.auth-switch a { color: var(--accent2); font-weight: 700; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #64748b; font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }

/* ===== Cabinet (modern) ===== */
.cab-hero {
  position: relative; overflow: hidden;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, #1e2a52 0%, #16213e 55%, #0f3460 100%);
  border: 1px solid rgba(99,102,241,0.3); border-radius: 26px; padding: 34px 38px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.4);
}
.cab-hero::before {
  content: ''; position: absolute; top: -60%; right: -10%; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.35), transparent 70%); filter: blur(30px);
}
.cab-hero-left { display: flex; align-items: center; gap: 20px; position: relative; z-index: 2; }
.cab-avatar {
  width: 76px; height: 76px; border-radius: 22px; background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; color: #fff;
  box-shadow: 0 10px 28px rgba(99,102,241,0.55); flex-shrink: 0;
}
.cab-hello { color: #a5b4d6; font-size: 15px; }
.cab-name { color: #fff; font-size: 26px; font-weight: 800; line-height: 1.2; }
.cab-admin-badge { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: #fbbf24;
  background: rgba(251,191,36,0.14); border: 1px solid rgba(251,191,36,0.35); padding: 5px 12px; border-radius: 12px; transition: all .2s; }
.cab-admin-badge:hover { background: rgba(251,191,36,0.24); }
.cab-balance-box {
  position: relative; z-index: 2; text-align: center;
  background: rgba(0,0,0,0.28); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 20px 32px; min-width: 200px;
}
.cab-balance-label { color: #a5b4d6; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.cab-balance-val { color: #fff; font-size: 36px; font-weight: 800; margin: 6px 0 14px;
  background: linear-gradient(135deg, #fff, #a5b4d6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.cab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px){ .cab-grid { grid-template-columns: 1fr; } .cab-hero { flex-direction: column; align-items: stretch; text-align: center; } .cab-hero-left { flex-direction: column; text-align: center; } .cab-balance-box { min-width: 0; } }
.cab-panel {
  background: rgba(22,33,62,0.5); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 22px; padding: 28px;
  transition: border-color .2s;
}
.cab-panel:hover { border-color: rgba(99,102,241,0.35); }
.cab-panel h3 { font-size: 19px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.cab-muted { color: var(--grey); font-size: 14px; margin-bottom: 18px; }
.cab-activate-form { display: flex; gap: 10px; flex-wrap: wrap; }
.cab-activate-form input { flex: 1; min-width: 180px; padding: 15px; border-radius: 14px; background: rgba(0,0,0,0.35);
  border: 1.5px solid rgba(99,102,241,0.4); color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: 2px; text-align: center; }
.cab-activate-form input:focus { outline: none; border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(56,189,248,0.12); }

/* stat cards в кабинете чуть ярче */
.feature-card { transition: transform .2s, border-color .2s; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,0.4); }

.alert-ok { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.35); color: #4ade80; padding: 14px 18px; border-radius: 14px; margin: 16px 0; }

/* ===== Buy buttons (site + telegram) ===== */
.buy-buttons { display: flex; flex-direction: column; gap: 10px; }
.btn-tg { background: linear-gradient(135deg, #2AABEE, #229ED9); color: #fff; box-shadow: 0 4px 16px rgba(42,171,238,0.35); }
.btn-tg:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(42,171,238,0.5); }
