/* ============================================================
   TRIANON VPN — style.css
   Palette: #0a0a0a / #c9a84c / #141414
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ---------- TOKENS ---------- */
:root {
  --bg:          #0a0a0a;
  --surface:     #141414;
  --surface-2:   #1c1c1c;
  --accent:      #c9a84c;
  --accent-h:    #d4b85a;
  --accent-soft: #2a2312;
  --text:        #f0efe8;
  --text-2:      #8a8a8a;
  --border:      #2a2a2a;
  --success:     #7a9a4a;
  --error:       #a04040;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --r:    6px;
  --r-l:  14px;
  --max-w: 1100px;
  --t: 0.22s ease;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-h); }

img { display: block; max-width: 100%; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-2); line-height: 1.7; }

.accent { color: var(--accent); }
.text-center { text-align: center; }

/* ---------- LAYOUT ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ---------- GOLD DIVIDER ---------- */
.divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 20px auto;
  border-radius: 2px;
}
.divider.left { margin-left: 0; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--t);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}
.btn-primary:hover {
  background: var(--accent-h);
  color: #0a0a0a;
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-soft);
  color: var(--accent-h);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 9px 20px; font-size: 0.875rem; }
.btn-full { width: 100%; justify-content: center; }

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 28px;
  transition: border-color var(--t), box-shadow var(--t);
}
.card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.card.highlighted {
  border-color: var(--accent);
  background: linear-gradient(145deg, #1a1608, var(--surface));
}

/* ---------- BADGE ---------- */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.badge-gold {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(201, 168, 76, 0.3);
}
.badge-success {
  background: rgba(122, 154, 74, 0.15);
  color: var(--success);
}
.badge-error {
  background: rgba(160, 64, 64, 0.15);
  color: var(--error);
}

/* ---------- FORM ELEMENTS ---------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 0.875rem;
  color: var(--text-2);
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  width: 100%;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}
input::placeholder, textarea::placeholder { color: var(--text-2); opacity: 0.6; }

/* ---------- ALERTS ---------- */
.alert {
  padding: 14px 18px;
  border-radius: var(--r);
  font-size: 0.9rem;
  border-left: 3px solid;
}
.alert-success { background: rgba(122,154,74,0.1); border-color: var(--success); color: #a8c878; }
.alert-error   { background: rgba(160,64,64,0.1);  border-color: var(--error);   color: #c88888; }
.alert-info    { background: var(--accent-soft);    border-color: var(--accent);  color: var(--accent); }

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.nav-logo img { width: 32px; height: 32px; }
.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--t);
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--t);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero h1 { margin-bottom: 20px; }
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-2);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trial-note {
  font-size: 0.82rem;
  color: var(--text-2);
}
.hero-trial-note strong { color: var(--accent); }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--text-2); }

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-shield {
  position: relative;
  width: 280px;
  height: 280px;
}

.shield-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 3s ease-in-out infinite;
}

.shield-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 50%;
  animation: rotate-ring 20s linear infinite;
}
.shield-ring::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.shield-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shield-logo img { width: 120px; height: 120px; }

.shield-protocols {
  position: absolute;
  top: 50%;
  right: -80px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.protocol-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 5px 12px;
  font-size: 0.75rem;
  color: var(--text-2);
  white-space: nowrap;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.05); }
}
@keyframes rotate-ring {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---------- HOW IT WORKS ---------- */
.how-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header p { max-width: 520px; margin: 12px auto 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  gap: 16px;
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.step-item h4 { color: var(--text); font-family: var(--font-display); font-size: 1.05rem; }
.step-item p  { font-size: 0.875rem; }

/* ---------- PRICING ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.plan-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  transform: translateY(-3px);
}
.plan-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, #1c1608 0%, var(--surface) 60%);
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0a0a0a;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-header { display: flex; flex-direction: column; gap: 8px; }

.plan-icon {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
}

.plan-desc { font-size: 0.875rem; color: var(--text-2); }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.price-currency { font-size: 1.1rem; color: var(--accent); align-self: flex-start; padding-top: 4px; }
.price-period   { font-size: 0.85rem; color: var(--text-2); }

.plan-devices {
  font-size: 0.82rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.plan-devices::before { content: '📱'; font-size: 0.9rem; }

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-2);
}
.plan-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(201,168,76,0.4);
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3.5L3.8 6.5L9 1' stroke='%23c9a84c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.plan-trial-note {
  font-size: 0.78rem;
  color: var(--text-2);
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.plan-trial-note strong { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq-item.open { border-color: rgba(201,168,76,0.3); }

.faq-question {
  width: 100%;
  background: var(--surface);
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background var(--t);
}
.faq-question:hover { background: var(--surface-2); }

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform var(--t);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer-inner {
  padding: 0 24px 20px;
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ---------- REFERRAL / CTA BANNER ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--surface) 0%, #1a1507 100%);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--r-l);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p  { margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.875rem;
  margin-top: 12px;
  max-width: 260px;
}

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--text-2);
  font-size: 0.875rem;
  transition: color var(--t);
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-2);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- AUTH PAGE ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
}

.auth-page::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.auth-logo img { width: 36px; height: 36px; }

.auth-title {
  text-align: center;
  margin-bottom: 8px;
  font-size: 1.6rem;
}
.auth-subtitle {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 32px;
}

.auth-form { display: flex; flex-direction: column; gap: 20px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-2);
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-telegram-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t);
  width: 100%;
  font-family: var(--font-body);
}
.auth-telegram-btn:hover {
  border-color: #2AABEE;
  color: #2AABEE;
}

.auth-footer-text {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-2);
  margin-top: 24px;
}
.auth-footer-text a { color: var(--accent); }

/* Magic link sent state */
.magic-sent {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}
.magic-sent-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

/* ---------- CABINET PAGE ---------- */
.cabinet-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  min-height: calc(100vh - 64px);
  padding: 32px 0;
}

.cabinet-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-user {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 20px;
  margin-bottom: 8px;
  text-align: center;
}
.sidebar-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
  margin: 0 auto 12px;
}
.sidebar-name {
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.sidebar-email { font-size: 0.8rem; color: var(--text-2); }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--r);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--t);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}
.sidebar-link:hover,
.sidebar-link.active {
  background: var(--surface);
  color: var(--text);
}
.sidebar-link.active { color: var(--accent); border-left: 2px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; }

.cabinet-content { display: flex; flex-direction: column; gap: 24px; }

.cabinet-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 28px;
}
.cabinet-section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Subscription status block */
.sub-status-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sub-info { display: flex; flex-direction: column; gap: 4px; }
.sub-plan { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.sub-expires { font-size: 0.82rem; color: var(--text-2); }

.sub-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 12px;
}
.sub-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-h));
  border-radius: 2px;
  transition: width 1s ease;
}

/* Config cards */
.configs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.config-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--t);
}
.config-card:hover { border-color: rgba(201,168,76,0.3); }
.config-device { font-size: 0.875rem; font-weight: 500; }
.config-protocol {
  font-size: 0.75rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.config-protocol::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}
.config-actions { display: flex; gap: 8px; }

/* QR area */
.qr-placeholder {
  width: 120px;
  height: 120px;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-2);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--t);
}
.qr-placeholder:hover { border-color: var(--accent); }

/* Referral */
.ref-link-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-2);
  font-family: monospace;
  word-break: break-all;
}

.ref-bonuses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.ref-bonus-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ref-bonus-count { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.ref-bonus-label { font-size: 0.78rem; color: var(--text-2); }
.ref-bonus-reward { font-size: 0.82rem; font-weight: 500; color: var(--success); }

/* Payments table */
.payments-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.payments-table th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.payments-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.payments-table tr:last-child td { border-bottom: none; }
.payments-table tr:hover td { background: var(--surface-2); }

/* ---------- LOADING / SPINNER ---------- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.page-loader.hidden { opacity: 0; pointer-events: none; }

/* ---------- TOAST ---------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9998;
}
.toast {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 18px;
  font-size: 0.875rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: toast-in 0.25s ease;
  max-width: 320px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--error); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- UTILS ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.hidden  { display: none !important; }
.mt-4    { margin-top: 16px; }
.mt-6    { margin-top: 24px; }
.mt-8    { margin-top: 32px; }
.gap-12  { gap: 12px; }
.flex    { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-full  { width: 100%; }
.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
  section { padding: 56px 0; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-lead  { max-width: 100%; }
  .hero-cta   { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }

  .steps-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps-grid::before { display: none; }

  .plans-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .cabinet-layout { grid-template-columns: 1fr; }
  .cabinet-sidebar { display: none; }

  .ref-bonuses { grid-template-columns: 1fr; }

  .auth-card { padding: 32px 24px; }

  .cta-banner { padding: 40px 24px; }

  .nav-links { display: none; }
  .nav-burger { display: block; }
}

@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .configs-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .toast-container { left: 16px; right: 16px; bottom: 16px; }
}

.service-item svg {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  flex-shrink: 0;
}

.services-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 32px !important;
}
.service-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
}

.how-tab {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  color: var(--text-2) !important;
}
.how-tab.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #0a0a0a !important;
}
.how-tabs {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
}

.how-tabs {
  width: fit-content !important;
  max-width: 320px !important;
  margin: 0 auto 40px !important;
  padding: 4px !important;
  border-radius: 8px !important;
}
