:root {
  --bg: #050506;
  --bg-soft: #09090b;
  --panel: rgba(14, 14, 17, .72);
  --panel-strong: rgba(20, 20, 24, .9);
  --panel-subtle: rgba(255, 255, 255, .035);
  --text: #f5f3f4;
  --muted: #8f8a8d;
  --muted-2: #696568;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --accent: #e49ac8;
  --accent-strong: #f0a8d5;
  --accent-dark: #5a2848;
  --green: #58e0a0;
  --red: #ff657d;
  --amber: #ffd071;
  --radius: 30px;
  --radius-sm: 18px;
  --shadow: 0 30px 90px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
body::selection { background: rgba(228, 154, 200, .28); color: #fff; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.shell { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }

/* Ambient background */
.ambient-scene { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: -3; background: #050506; }
.ambient-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 90%);
}
.ambient-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .18; }
.orb-one { width: 700px; height: 700px; right: -190px; top: 0; background: #8d345f; }
.orb-two { width: 520px; height: 520px; left: 18%; top: 55%; background: #3f1733; opacity: .13; }
.petal-field { position: absolute; inset: 0; }
.petal {
  position: absolute;
  width: var(--size, 8px); height: calc(var(--size, 8px) * .58);
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, rgba(255,255,255,.5), rgba(228,154,200,.16));
  opacity: var(--opacity, .22);
  transform: rotate(var(--rotate, 30deg));
  animation: petalFloat var(--duration, 18s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes petalFloat {
  0% { translate: 0 -10vh; rotate: 0deg; }
  50% { translate: 40px 55vh; rotate: 150deg; }
  100% { translate: -35px 115vh; rotate: 300deg; }
}
.cursor-glow {
  position: fixed; z-index: -1; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(228,154,200,.08), transparent 68%);
  translate: -50% -50%; pointer-events: none; transition: opacity .2s;
}
.cursor-trail-layer { position: fixed; inset: 0; pointer-events: none; z-index: 999; }
.cursor-trail-dot { position: absolute; left: 0; top: 0; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.45); }

/* Header */
.site-header {
  position: sticky; top: 16px; z-index: 80;
  min-height: 64px; margin-top: 16px; padding: 10px 12px 10px 18px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
  border: 1px solid var(--line); border-radius: 24px;
  background: rgba(7, 7, 8, .72); backdrop-filter: blur(24px) saturate(130%);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.04em; font-size: 20px; width: max-content; }
.brand-symbol, .brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid rgba(228,154,200,.25); background: rgba(228,154,200,.08);
  color: var(--accent); font-family: Georgia, serif; font-style: italic;
}
.brand-dot { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-capsule { padding: 5px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.025); }
.nav a { padding: 9px 13px; border-radius: 12px; color: var(--muted); font-size: 13px; font-weight: 600; transition: .2s ease; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.plain-link { border: 0; background: transparent; color: var(--muted); padding: 10px 12px; font-weight: 600; }
.plain-link:hover { color: var(--text); }
.burger { display: none; justify-self: end; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: rgba(255,255,255,.05); }

/* Shared UI */
.glass-panel, .modal-card, .account-shell, .admin-card, .admin-login-box {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(24,24,28,.82), rgba(10,10,12,.68));
  backdrop-filter: blur(28px) saturate(125%);
  box-shadow: var(--shadow);
}
.btn {
  min-height: 48px; padding: 0 22px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #f2f0f1; color: #111113; font-weight: 800; transition: .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 35px rgba(255,255,255,.1); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn-small { min-height: 42px; padding-inline: 17px; border-radius: 13px; font-size: 13px; }
.btn-full { width: 100%; }
.btn-ghost, .btn-soft { color: var(--text); background: rgba(255,255,255,.045); border-color: var(--line-strong); }
.btn-ghost:hover, .btn-soft:hover { background: rgba(255,255,255,.09); }
.mini-btn {
  min-height: 36px; padding: 0 13px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.055); color: var(--text); font-weight: 700; font-size: 12px;
}
.mini-btn:hover { border-color: var(--line-strong); background: rgba(255,255,255,.09); }
.mini-btn.danger, .danger { color: #ffb7c3; border-color: rgba(255,101,125,.35); background: rgba(255,101,125,.08); }
.eyebrow, .section-kicker {
  display: inline-flex; align-items: center; gap: 10px; color: var(--accent); text-transform: uppercase;
  letter-spacing: .15em; font-size: 11px; font-weight: 800;
}
.eyebrow > span, .section-kicker::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .65; }
.overline { color: var(--muted-2); font-size: 10px; letter-spacing: .2em; font-weight: 700; }
.muted, .empty-text { color: var(--muted); line-height: 1.7; }

/* Hero */
.hero { min-height: 760px; padding: 110px 0 90px; display: grid; grid-template-columns: 1.15fr .72fr; gap: 76px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero h1, .section-intro h2, .usage-card h2, .rules h2, .modal-card h2 {
  margin: 22px 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; line-height: .98;
}
.hero h1 { font-size: clamp(56px, 6.4vw, 92px); max-width: 900px; }
.hero h1 em, .section-intro h2 em, .usage-card h2 em { font-weight: 400; color: #fff; }
.hero-text { max-width: 700px; margin: 0; color: #a19ca0; font-size: 18px; line-height: 1.7; }
.hero-text b { color: #ddd9db; }
.hero-actions { margin: 34px 0 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 12px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.hero-console { position: relative; overflow: hidden; border-radius: 34px; padding: 28px; }
.hero-console::before { content: ""; position: absolute; inset: -50% -30% auto; height: 300px; background: radial-gradient(circle, rgba(228,154,200,.18), transparent 65%); }
.console-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.console-head h2 { margin: 6px 0 0; font-size: 23px; letter-spacing: -.04em; }
.live-status { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 999px; border: 1px solid rgba(88,224,160,.2); color: #a9f5cf; background: rgba(88,224,160,.07); font-size: 11px; font-weight: 700; }
.live-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.stock-number { position: relative; padding: 34px 0 24px; display: flex; align-items: end; gap: 16px; border-bottom: 1px solid var(--line); }
.stock-number strong { font-size: 78px; line-height: .8; letter-spacing: -.08em; font-family: Georgia, serif; font-weight: 400; }
.stock-number span { color: var(--muted); font-size: 12px; padding-bottom: 6px; }
.console-lines { position: relative; padding: 18px 0; display: grid; gap: 12px; }
.console-lines div { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.console-lines b { color: #ddd9db; font-weight: 600; text-align: right; }
.upload-status { position: relative; margin: 3px 0 20px; padding: 15px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.upload-status small { display: block; color: var(--muted-2); margin-bottom: 4px; }
.upload-status strong { font-size: 12px; }
.pulse-ring { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 7px rgba(228,154,200,.08), 0 0 18px rgba(228,154,200,.5); }

.quick-stats { margin-top: -8px; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.quick-stats article { padding: 28px 22px; border-right: 1px solid var(--line); }
.quick-stats article:last-child { border-right: 0; }
.quick-stats strong { display: block; font-family: Georgia, serif; font-size: 34px; font-weight: 400; letter-spacing: -.04em; }
.quick-stats span { color: var(--muted); font-size: 12px; }

/* Sections */
.section { padding: 120px 0; }
.section-intro { max-width: 780px; margin-bottom: 54px; }
.section-intro.compact { max-width: 650px; }
.section-intro h2, .usage-card h2, .rules h2 { font-size: clamp(45px, 5vw, 70px); }
.section-intro p, .usage-card p, .rules p { max-width: 680px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.row-intro { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.row-intro > div:first-child { max-width: 760px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: rgba(255,255,255,.012); }
.feature-card { min-height: 230px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: .25s ease; }
.feature-card:nth-child(3n) { border-right: 0; }
.feature-card:nth-last-child(-n+3) { border-bottom: 0; }
.feature-card:hover { background: rgba(228,154,200,.045); }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--accent); font-size: 22px; }
.feature-card h3 { margin: 24px 0 10px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 13px; }

.workflow-section { padding-top: 60px; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.workflow-grid article { min-height: 210px; padding: 25px; display: flex; gap: 20px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.018); }
.workflow-grid > article > span { color: var(--accent); font-family: Georgia, serif; font-size: 27px; }
.workflow-grid h3 { margin: 4px 0 12px; }
.workflow-grid p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 13px; }

.availability-chip { min-width: 210px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 18px; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.025); }
.availability-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 15px var(--green); }
.availability-chip span { color: var(--muted); font-size: 12px; }
.availability-chip b { color: var(--text); }
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan-card { position: relative; min-height: 480px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; display: flex; flex-direction: column; background: rgba(255,255,255,.018); transition: .25s ease; overflow: hidden; }
.plan-card:hover { transform: translateY(-5px); border-color: rgba(228,154,200,.28); background: rgba(228,154,200,.025); }
.plan-card.popular { border-color: rgba(228,154,200,.55); box-shadow: inset 0 0 0 1px rgba(228,154,200,.1), 0 30px 70px rgba(79,28,59,.16); }
.plan-card.popular::before { content: "Популярный"; position: absolute; top: 20px; right: 20px; padding: 7px 10px; border-radius: 999px; background: rgba(228,154,200,.14); color: var(--accent); font-size: 10px; font-weight: 800; }
.plan-card h3 { margin: 14px 0 8px; font-size: 21px; }
.plan-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.plan-price { margin: 22px 0; }
.plan-price strong { display: block; font-family: Georgia, serif; font-size: 43px; font-weight: 400; letter-spacing: -.05em; }
.plan-price span { color: var(--muted); font-size: 12px; }
.plan-card ul { margin: 0 0 26px; padding: 0; display: grid; gap: 12px; list-style: none; }
.plan-card li { position: relative; padding-left: 22px; color: #b6b1b4; font-size: 12px; }
.plan-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.plan-card .btn { margin-top: auto; }

.usage-card { padding: 52px; border-radius: 32px; display: grid; grid-template-columns: 1.05fr .75fr; gap: 50px; align-items: center; }
.port-stack { display: grid; gap: 12px; }
.port-stack article { padding: 22px; border: 1px solid var(--line); border-radius: 20px; display: grid; grid-template-columns: 1fr auto; align-items: center; background: rgba(255,255,255,.025); }
.port-stack span { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.port-stack strong { grid-row: 1 / span 2; grid-column: 2; font-family: Georgia, serif; font-size: 38px; font-weight: 400; }
.port-stack small { color: var(--muted); margin-top: 6px; }

/* Account */
.account-section { padding-top: 80px; }
.account-shell { min-height: 440px; border-radius: 32px; overflow: hidden; }
.account-content { padding: 24px; min-height: 440px; }
.account-empty { min-height: 390px; display: grid; place-items: center; align-content: center; text-align: center; padding: 30px; }
.account-empty-icon { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid rgba(228,154,200,.25); border-radius: 21px; background: rgba(228,154,200,.08); color: var(--accent); font-family: Georgia, serif; font-size: 32px; }
.account-empty h3 { margin: 20px 0 8px; font-size: 25px; }
.account-empty p { max-width: 440px; color: var(--muted); line-height: 1.7; }
.account-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding: 4px 2px 10px; }
.user-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 14px; }
.user-box article { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); }
.user-box span { color: var(--muted); font-size: 11px; }
.user-box strong { display: block; margin-top: 8px; font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.cabinet-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 8px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.02); scrollbar-width: none; }
.cabinet-tabs::-webkit-scrollbar { display: none; }
.cabinet-tabs .mini-btn { white-space: nowrap; border-color: transparent; background: transparent; color: var(--muted); }
.cabinet-tabs .mini-btn.active { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.06); }
.cabinet-panel { padding-top: 16px; }
.cabinet-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 12px; }
.cabinet-card { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.022); }
.highlight-card { background: radial-gradient(circle at top right, rgba(228,154,200,.12), transparent 45%), rgba(255,255,255,.026); }
.highlight-card h3 { margin: 16px 0; font-family: Georgia, serif; font-size: 42px; font-weight: 400; letter-spacing: -.05em; }
.cabinet-card p { color: var(--muted); line-height: 1.7; font-size: 13px; }
.settings-form { display: grid; gap: 13px; }
.two-col-form { grid-template-columns: repeat(2, 1fr); }
.two-col-form .btn-full, .two-col-form .form-message { grid-column: 1 / -1; }
.proxy-list-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.table-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.port-help { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 15px; }
.port-help span { padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 11px; }
.owned-proxy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.owned-proxy-card { padding: 17px; border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 9px; background: rgba(255,255,255,.02); }
.owned-proxy-card > div { display: flex; justify-content: space-between; gap: 12px; }
.owned-proxy-card code, .proxy-list { padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: #08080a; color: #ddd9db; overflow-wrap: anywhere; white-space: pre-wrap; }
.owned-proxy-card small { color: var(--muted); }
.partner-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.partner-stats article { padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.partner-stats strong { display: block; font-size: 20px; }
.partner-stats span { color: var(--muted); font-size: 10px; }
.ref-link-box { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.support-links { display: grid; align-content: center; gap: 10px; }

/* FAQ and footer */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
details { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.018); }
details summary { cursor: pointer; font-weight: 700; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--accent); }
details[open] summary::after { content: "−"; }
details p { margin: 14px 0 0; color: var(--muted); line-height: 1.7; font-size: 13px; }
.rules { border-top: 1px solid var(--line); }
.rules p { max-width: 900px; }
.footer { padding: 42px 0 60px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: end; color: var(--muted); font-size: 12px; }
.footer div { display: grid; gap: 5px; }
.footer strong { color: var(--text); font-size: 18px; }

/* Forms and modals */
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 14px; outline: none;
  background: rgba(255,255,255,.04); color: var(--text); padding: 13px 14px;
}
select { color-scheme: dark; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(228,154,200,.4); box-shadow: 0 0 0 4px rgba(228,154,200,.07); }
label { color: var(--muted); font-size: 12px; font-weight: 700; }
label input, label select, label textarea { margin-top: 7px; }
.modal { position: fixed; inset: 0; z-index: 150; display: none; place-items: center; padding: 18px; background: rgba(0,0,0,.72); backdrop-filter: blur(12px); }
.modal.open { display: grid; }
.modal-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 36px); overflow: auto; padding: 30px; border-radius: 27px; }
.large-modal { width: min(760px, 100%); }
.modal-card h2 { font-size: 42px; margin: 16px 0 10px; }
.modal-card > p { color: var(--muted); line-height: 1.65; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.055); color: var(--text); font-size: 24px; line-height: 1; display: grid; place-items: center; }
.modal-close:hover { background: rgba(255,255,255,.11); transform: rotate(3deg); }
.buy-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin-top: 20px; }
.auth-form { grid-template-columns: 1fr; }
.auth-alert, .wide-field, .total-box, .buy-form > .btn-full, .captcha-widget { grid-column: 1 / -1; }
.auth-alert { padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; color: #b9b4b7; background: rgba(255,255,255,.025); font-size: 12px; }
.total-box { padding: 15px 16px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(255,255,255,.035); }
.total-box span { color: var(--muted); }
.total-box strong { font-size: 20px; }
.order-result { margin-top: 16px; padding: 17px; border-radius: 18px; border: 1px solid rgba(88,224,160,.22); background: rgba(88,224,160,.055); }
.order-result h3 { margin-top: 0; }
.auth-switch { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.captcha-widget { display: grid; gap: 10px; }
.human-check { width: 100%; min-height: 68px; padding: 13px 15px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); color: var(--text); text-align: left; }
.human-check-box { width: 24px; height: 24px; border: 2px solid rgba(255,255,255,.35); border-radius: 7px; position: relative; }
.human-check.loading .human-check-box::after { content: ""; position: absolute; inset: 4px; border: 2px solid transparent; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.human-check.verified .human-check-box { border-color: var(--green); background: rgba(88,224,160,.12); }
.human-check.verified .human-check-box::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--green); font-weight: 900; }
.human-check-copy { display: grid; gap: 4px; }
.human-check-copy small { color: var(--muted); }
.captcha-challenge { padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: #09090b; }
.captcha-image-row { display: grid; grid-template-columns: 1fr 42px; gap: 8px; margin-bottom: 10px; }
.captcha-image-row img { width: 100%; min-height: 72px; object-fit: cover; border-radius: 11px; border: 1px solid var(--line); }
.captcha-reload { border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.05); color: var(--text); font-size: 20px; }
@keyframes spin { to { rotate: 360deg; } }
.form-message { padding: 11px 13px; border-radius: 12px; background: rgba(88,224,160,.08); color: #b4f7d4; }
.form-message.error { background: rgba(255,101,125,.08); color: #ffc2cc; }

/* Toast */
.toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 300; width: min(390px, calc(100vw - 32px));
  padding: 15px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 18px;
  background: rgba(15,15,18,.92); backdrop-filter: blur(22px); box-shadow: 0 24px 70px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none; transition: .24s ease;
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; border: 1px solid rgba(228,154,200,.22); background: rgba(228,154,200,.08); color: var(--accent); font-weight: 900; }
.toast strong { display: block; margin-bottom: 3px; font-size: 13px; }
.toast p { margin: 0; color: var(--muted); line-height: 1.45; font-size: 12px; }
.toast.error { border-color: rgba(255,101,125,.32); }
.toast.error .toast-icon { color: #ff91a3; border-color: rgba(255,101,125,.25); background: rgba(255,101,125,.08); }
.toast.success { border-color: rgba(88,224,160,.28); }
.toast.success .toast-icon { color: var(--green); border-color: rgba(88,224,160,.22); background: rgba(88,224,160,.08); }
.toast.stock { border-color: rgba(255,208,113,.3); }
.toast.stock .toast-icon { color: var(--amber); border-color: rgba(255,208,113,.22); background: rgba(255,208,113,.08); }

/* Tables and statuses */
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 17px; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 12px; }
th { color: var(--muted-2); text-transform: uppercase; letter-spacing: .1em; font-size: 9px; }
td code { color: #d7d2d5; }
.status-pill { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.06); color: #c3bec1; font-size: 10px; font-weight: 800; }
.status-active, .status-free { color: #a9f4ce; background: rgba(88,224,160,.09); }
.status-pending_payment, .status-balance_processing, .status-manual_processing { color: #ffe0a0; background: rgba(255,208,113,.08); }
.status-canceled, .status-expired { color: #ffb4c0; background: rgba(255,101,125,.08); }
.check-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: rgba(255,255,255,.05); }
.check-icon.ok { color: var(--green); background: rgba(88,224,160,.08); }

/* Admin */
.admin-body { background: #050506; }
.admin-body .site-header { width: min(1400px, calc(100% - 32px)); }
.admin-layout { width: min(1400px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0 80px; }
.admin-hero { display: grid; grid-template-columns: 1fr 360px; gap: 16px; align-items: end; margin-bottom: 16px; }
.admin-hero h1 { margin: 12px 0 0; font-family: Georgia, serif; font-size: 62px; font-weight: 400; letter-spacing: -.05em; }
.admin-login-box { padding: 20px; border-radius: 22px; }
.admin-password { color: var(--muted); font-size: 12px; font-weight: 700; }
.admin-protected { transition: opacity .2s; }
body:not(.admin-unlocked) .admin-protected { opacity: .25; pointer-events: none; filter: blur(1px); }
.admin-stats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin: 16px 0; }
.admin-stats article { padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.02); }
.admin-stats strong { display: block; font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.admin-stats span { color: var(--muted); font-size: 10px; }
.admin-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; margin: 14px 0; }
.admin-card { padding: 22px; border-radius: 22px; }
.admin-card-head { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.admin-card h2 { margin: 0 0 12px; }
.admin-form { display: grid; gap: 12px; }
.admin-controls { display: grid; grid-template-columns: 1fr 190px 170px; gap: 9px; margin: 13px 0; }
.balance-form { display: grid; grid-template-columns: 1fr 140px 180px 150px auto; gap: 9px; margin: 12px 0; }
.issue-form { display: grid; grid-template-columns: 1fr 140px 120px 120px auto; gap: 9px; margin-top: 12px; }
.api-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.api-form { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 8px; }
.api-result { min-height: 90px; white-space: pre-wrap; overflow: auto; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: #08080a; color: #cfcace; }
.api-status { color: var(--muted); }

/* Responsive */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr .8fr; gap: 35px; }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: repeat(4, 1fr); }
  .balance-form, .issue-form { grid-template-columns: repeat(2, 1fr); }
  .balance-form > :last-child, .issue-form > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 12px; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 20px; background: rgba(8,8,10,.95); backdrop-filter: blur(20px); }
  body.menu-open .nav { display: flex; }
  .nav a { text-align: center; }
  .header-actions { display: none; }
  .burger { display: block; }
  .hero { min-height: auto; padding: 90px 0 70px; grid-template-columns: 1fr; }
  .hero-console { max-width: 620px; }
  .quick-stats { grid-template-columns: repeat(2, 1fr); }
  .quick-stats article:nth-child(2) { border-right: 0; }
  .quick-stats article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .feature-card:nth-child(2n) { border-right: 0; }
  .feature-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .feature-card:nth-last-child(-n+2) { border-bottom: 0; }
  .workflow-grid, .usage-card, .cabinet-split, .admin-hero, .admin-grid { grid-template-columns: 1fr; }
  .row-intro { align-items: flex-start; flex-direction: column; }
  .footer { grid-template-columns: 1fr; }
  .admin-controls, .api-form { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 1240px); }
  .site-header { top: 8px; margin-top: 8px; min-height: 58px; border-radius: 19px; padding: 8px 9px 8px 13px; }
  .brand { font-size: 17px; }
  .brand-symbol { width: 32px; height: 32px; }
  .hero { padding: 70px 0 55px; }
  .hero h1 { font-size: clamp(46px, 15vw, 66px); }
  .hero-text { font-size: 15px; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { display: grid; gap: 10px; }
  .hero-console { padding: 21px; border-radius: 25px; }
  .stock-number strong { font-size: 62px; }
  .quick-stats article { padding: 21px 14px; }
  .quick-stats strong { font-size: 27px; }
  .section { padding: 78px 0; }
  .section-intro { margin-bottom: 35px; }
  .section-intro h2, .usage-card h2, .rules h2 { font-size: 45px; }
  .feature-grid, .plans-grid, .faq-grid, .owned-proxy-grid, .user-box, .workflow-grid { grid-template-columns: 1fr; }
  .feature-card { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .feature-card:last-child { border-bottom: 0 !important; }
  .plan-card { min-height: 430px; }
  .usage-card { padding: 27px; border-radius: 25px; }
  .account-content { padding: 12px; }
  .account-shell { border-radius: 24px; }
  .two-col-form, .buy-form, .partner-stats { grid-template-columns: 1fr; }
  .auth-alert, .wide-field, .total-box, .buy-form > .btn-full, .captcha-widget, .two-col-form .btn-full, .two-col-form .form-message { grid-column: auto; }
  .modal { padding: 8px; align-items: end; }
  .modal-card { max-height: calc(100vh - 16px); padding: 23px 18px 20px; border-radius: 24px; }
  .modal-card h2 { font-size: 37px; padding-right: 32px; }
  .modal-close { top: 12px; right: 12px; }
  .toast { right: 12px; bottom: 12px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .balance-form, .issue-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .cursor-trail-layer { display: none; }
}

/* ProxyOne cabinet dashboard */
.account-dashboard { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 14px; min-height: 390px; }
.dashboard-sidebar { padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(5,5,7,.42); display: flex; flex-direction: column; gap: 14px; }
.dashboard-profile { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.dashboard-avatar { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: rgba(228,154,200,.1); border: 1px solid rgba(228,154,200,.2); color: var(--accent); font-family: Georgia, serif; font-size: 21px; }
.dashboard-profile div { min-width: 0; }
.dashboard-profile strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.dashboard-profile small { color: var(--muted); font-size: 10px; }
.dashboard-balance-card { padding: 18px; border: 1px solid var(--line); border-radius: 19px; background: radial-gradient(circle at top right, rgba(228,154,200,.14), transparent 60%), rgba(255,255,255,.025); }
.dashboard-balance-card > span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.dashboard-balance-card > strong { display: block; margin: 12px 0 16px; font-family: Georgia, serif; font-size: 38px; font-weight: 400; letter-spacing: -.05em; }
.dashboard-mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.dashboard-mini-stats article { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.018); }
.dashboard-mini-stats article:last-child { grid-column: 1 / -1; }
.dashboard-mini-stats span { display: block; color: var(--muted); font-size: 9px; }
.dashboard-mini-stats strong { display: block; margin-top: 5px; font-size: 18px; }
.dashboard-sidebar > .btn { margin-top: auto; }
.dashboard-workspace { min-width: 0; padding: 8px 4px 4px; }
.dashboard-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 6px 16px; }
.dashboard-head h3 { margin: 10px 0 0; font-size: 25px; letter-spacing: -.04em; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel-title h3 { margin: 0; }
.panel-title span { color: var(--muted); font-size: 11px; }

@media (max-width: 860px) {
  .account-dashboard { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .dashboard-profile, .dashboard-sidebar > .btn { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .dashboard-sidebar { grid-template-columns: 1fr; padding: 14px; }
  .dashboard-profile, .dashboard-sidebar > .btn { grid-column: auto; }
  .dashboard-head { align-items: flex-start; }
}

/* Proxy renewal workflow */
.fixed-period-card {
  min-height: 73px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  display: grid;
  align-content: center;
  gap: 3px;
}
.fixed-period-card span,
.fixed-period-card small { color: var(--muted); font-size: 10px; }
.fixed-period-card strong { color: var(--text); font-size: 14px; }
.fixed-period-card.compact { min-height: 48px; padding: 9px 12px; }

.proxy-list-head > div:first-child { min-width: 0; }
.proxy-list-head h3 { margin: 0 0 5px; }
.proxy-list-head p { margin: 0; max-width: 720px; font-size: 11px; }
.renew-proxy-btn { width: 100%; margin-top: 3px; justify-content: center; border-color: rgba(228,154,200,.25); background: rgba(228,154,200,.08); color: #f5d5e8; }
.renew-proxy-btn:hover:not(:disabled) { background: rgba(228,154,200,.14); }
.renew-proxy-btn:disabled { opacity: .62; cursor: wait; }
.renewal-state { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 11px; line-height: 1.45; }
.renewal-pending { color: #ffe0a0; border-color: rgba(255,208,113,.22); background: rgba(255,208,113,.06); }
.renewal-approved { color: #a9f4ce; border-color: rgba(88,224,160,.22); background: rgba(88,224,160,.06); }
.renewal-rejected { color: #ffc0ca; border-color: rgba(255,101,125,.22); background: rgba(255,101,125,.06); }

.status-pending { color: #ffe0a0; background: rgba(255,208,113,.08); }
.status-approved { color: #a9f4ce; background: rgba(88,224,160,.09); }
.status-rejected { color: #ffb4c0; background: rgba(255,101,125,.08); }

.renewal-admin-card { margin: 14px 0; border-color: rgba(228,154,200,.22); background: radial-gradient(circle at top right, rgba(228,154,200,.07), transparent 38%), rgba(255,255,255,.018); }
.renewal-summary { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: rgba(255,255,255,.02); font-size: 12px; }
.renewal-summary strong { color: var(--accent); font-size: 20px; margin-right: 5px; }
.renewal-actions { min-width: 210px; display: grid; gap: 7px; }
.renewal-actions .mini-btn { width: 100%; white-space: normal; line-height: 1.35; }
.success-action { color: #a9f4ce !important; border-color: rgba(88,224,160,.2) !important; background: rgba(88,224,160,.06) !important; }
.renewal-row-pending { background: rgba(255,208,113,.015); }
.renewal-row-approved { background: rgba(88,224,160,.012); }
.renewal-row-rejected { background: rgba(255,101,125,.012); }

.admin-stats { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.issue-form { grid-template-columns: minmax(220px, 1fr) 180px 100px 140px auto; }

@media (max-width: 1100px) {
  .admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .proxy-list-head { align-items: flex-start; flex-direction: column; }
  .proxy-list-head .table-actions { width: 100%; }
  .proxy-list-head .table-actions .mini-btn { flex: 1; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
