:root {
  --ink: #35545e;
  --ink-soft: #526b73;
  --muted: #8a9a9e;
  --line: #e8edef;
  --line-strong: #cbd7da;
  --surface: #ffffff;
  --soft: #f5f7f8;
  --soft-warm: #f1f5f4;
  --accent: #b1cc49;
  --accent-strong: #8eaf2b;
  --accent-soft: #edf5d5;
  --success: #16a36a;
  --danger: #d92d20;
  --shadow-sm: 0 4px 16px rgba(53, 84, 94, .07);
  --shadow: 0 18px 50px rgba(53, 84, 94, .1);
  --shadow-accent: 0 20px 50px rgba(142, 175, 43, .18);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
body:before { content: ""; position: fixed; inset: 0 0 auto; height: 480px; z-index: -1; pointer-events: none; background: radial-gradient(circle at 84% 2%, rgba(237, 245, 213, .8), transparent 34%), linear-gradient(180deg, #fff 0%, #fff 80%); }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(228, 231, 236, .84); background: rgba(255, 255, 255, .88); backdrop-filter: blur(18px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px 12px 12px 5px; transform: rotate(-10deg); background: linear-gradient(135deg, #ffd875, var(--accent-strong)); box-shadow: 0 8px 18px rgba(229, 154, 22, .24); }
.brand-mark span { width: 11px; height: 11px; display: block; border-radius: 50%; background: var(--ink); opacity: .88; }
.brand-copy { display: grid; line-height: 1; gap: 4px; }
.brand-copy strong, .footer-brand { font-size: 20px; letter-spacing: -.04em; }
.brand-copy strong span, .footer-brand span { color: var(--accent-strong); }
.brand-copy small { color: var(--muted); font-size: 9px; letter-spacing: .03em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--ink-soft); font-size: 13px; font-weight: 700; text-decoration: none; transition: color .18s ease; }
.main-nav a:hover { color: var(--ink); }
.main-nav form { margin: 0; }
.nav-dashboard { color: var(--ink) !important; }
.language-switcher { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); }
.language-switcher a { padding: 3px 6px; border-radius: 6px; color: var(--muted); font-size: 10px; }
.language-switcher a.active { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); }
.site-footer { margin-top: 96px; padding: 54px 0 22px; border-top: 1px solid var(--line); background: #fcfcfd; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; }
.footer-brand { font-weight: 900; }
.footer-grid p { max-width: 260px; margin: 15px 0 0; color: var(--muted); font-size: 13px; }
.footer-grid h3 { margin: 0 0 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.footer-grid a:not(.footer-brand) { display: block; width: fit-content; margin: 9px 0; color: var(--ink-soft); font-size: 13px; text-decoration: none; }
.footer-grid a:hover { color: var(--accent-strong); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 42px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* Shared controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 11px 17px; border: 1px solid transparent; border-radius: 11px; font-size: 13px; font-weight: 800; line-height: 1; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #201706; background: linear-gradient(135deg, #ffd875, var(--accent)); box-shadow: 0 8px 20px rgba(229, 154, 22, .18); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(229, 154, 22, .26); }
.btn-dark { color: #fff; background: var(--ink); box-shadow: 0 8px 20px rgba(16, 24, 40, .12); }
.btn-dark:hover { background: #1d2939; }
.btn-quiet { color: var(--ink-soft); border-color: var(--line); background: var(--surface); }
.btn-quiet:hover { border-color: var(--line-strong); background: var(--soft); }
.btn-yandex { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-yandex:before { content: "Я"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: #fc3f1d; font-weight: 900; }
.btn-danger-quiet { color: var(--danger); border-color: #f2c7c3; background: #fff8f7; }
.btn-small { min-height: 35px; padding: 8px 12px; font-size: 12px; }
.btn-large { min-height: 50px; padding: 14px 21px; font-size: 14px; }
.full { width: 100%; }
.eyebrow { width: fit-content; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--accent-strong); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 4px var(--accent-soft); }
.eyebrow-dark { color: #ffd875; }
.section { padding: 104px 0; }
.section-soft { background: var(--soft); }
.section-heading h2, .dashboard-section-title h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.055em; line-height: 1.05; }
.section-heading.centered { text-align: center; margin: 0 auto 48px; }
.section-heading.centered .eyebrow { margin-left: auto; margin-right: auto; }
.section-heading p { color: var(--muted); }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.split-heading > p { max-width: 330px; margin: 0 0 3px; font-size: 14px; }
.section-note { display: flex; gap: 9px; align-items: flex-start; max-width: 680px; margin: 20px auto 0; color: var(--muted); text-align: center; font-size: 12px; }
.section-note span { color: var(--accent-strong); font-size: 16px; line-height: 1; }
.field-label { display: block; margin: 14px 0 7px; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.field-label span { color: var(--muted); font-weight: 500; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: 0; padding: 12px 13px; color: var(--ink); background: var(--surface); transition: border .18s ease, box-shadow .18s ease; }
input:focus, textarea:focus, select:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 4px rgba(245, 184, 61, .18); }
textarea { resize: vertical; }
.alert { padding: 13px 15px; border: 1px solid; border-radius: 11px; font-size: 13px; }
.alert-success { color: #087443; border-color: #b9e7d2; background: #f0fbf6; }
.alert-warning { color: #875a08; border-color: #f2d68c; background: #fff9e8; }
.alert-danger { color: #a3261c; border-color: #f3c1bc; background: #fff7f6; }
.empty-state { padding: 42px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; background: rgba(255, 255, 255, .65); }
.empty-state h3 { margin: 12px 0 18px; color: var(--ink); font-size: 17px; }
.empty-icon { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto; border-radius: 14px; color: var(--accent-strong); background: var(--accent-soft); font-size: 24px; }

/* Homepage */
.hero-section { padding: 90px 0 110px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr); align-items: center; gap: 70px; }
.hero-copy h1 { max-width: 670px; margin: 0 0 23px; font-size: clamp(45px, 6.8vw, 80px); letter-spacing: -.075em; line-height: .96; }
.hero-lead { max-width: 575px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 15px 22px; margin-top: 28px; color: var(--muted); font-size: 11px; font-weight: 700; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-icon { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; color: var(--accent-strong); background: var(--accent-soft); font-style: normal; font-size: 11px; }
.hero-visual { min-height: 470px; position: relative; display: grid; place-items: center; }
.hero-visual:before { content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 226, 145, .62), rgba(255, 226, 145, 0) 66%); }
.hero-orbit { position: absolute; border: 1px solid rgba(245, 184, 61, .28); border-radius: 50%; transform: rotate(-24deg); }
.hero-orbit-one { width: 430px; height: 220px; }
.hero-orbit-two { width: 350px; height: 190px; transform: rotate(54deg); }
.connection-card { position: relative; width: min(340px, 90%); padding: 26px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 28px; background: rgba(255, 255, 255, .9); box-shadow: 0 28px 80px rgba(16, 24, 40, .16); backdrop-filter: blur(18px); }
.connection-top, .connection-label, .connection-stats, .connection-stats div { display: flex; align-items: center; }
.connection-top { justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 800; }
.connection-label { gap: 7px; color: var(--ink); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px #ddf7eb; }
.connection-menu { letter-spacing: 2px; }
.connection-ring { display: grid; place-items: center; width: 178px; height: 178px; margin: 28px auto 22px; border: 1px solid #f5d88f; border-radius: 50%; background: radial-gradient(circle, #fffdf6 45%, #fff3ce 46%, #fff9ea 64%, transparent 65%); box-shadow: 0 0 0 15px rgba(255, 242, 207, .58), 0 0 0 30px rgba(255, 242, 207, .25); }
.connection-ring div { display: grid; text-align: center; }
.connection-ring strong { color: var(--accent-strong); font-size: 34px; letter-spacing: -.07em; line-height: 1; }
.connection-ring span { color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.connection-card h2 { margin: 0; text-align: center; font-size: 20px; letter-spacing: -.04em; }
.connection-card > p { margin: 4px 0 22px; color: var(--muted); text-align: center; font-size: 12px; }
.connection-stats { justify-content: space-between; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.connection-stats div { flex-direction: column; align-items: flex-start; gap: 3px; }
.connection-stats span { color: var(--muted); font-size: 10px; }
.connection-stats b { font-size: 12px; }
.connection-bar { height: 5px; margin-top: 21px; overflow: hidden; border-radius: 10px; background: #f1f3f5; }
.connection-bar span { display: block; width: 72%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { position: relative; min-height: 235px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.step-number { position: absolute; top: 24px; right: 26px; color: #d0d5dd; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.step-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 31px; border-radius: 13px; color: var(--accent-strong); background: var(--accent-soft); font-size: 20px; }
.step-card h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.03em; }
.step-card p { max-width: 260px; margin: 0; color: var(--muted); font-size: 13px; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan-card { position: relative; overflow: hidden; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.plan-card:hover { border-color: #f2d285; box-shadow: var(--shadow-accent); }
.plan-featured { border: 2px solid var(--accent); box-shadow: var(--shadow-accent); }
.plan-ribbon { position: absolute; top: 0; right: 0; padding: 7px 13px; border-bottom-left-radius: 12px; color: #6d4903; background: var(--accent-soft); font-size: 10px; font-weight: 900; }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan-head h3 { margin: 0; font-size: 16px; }
.plan-check { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: #7e5409; background: var(--accent-soft); font-size: 11px; }
.plan-price { display: flex; align-items: baseline; gap: 5px; margin-top: 28px; }
.plan-price strong { font-size: 43px; letter-spacing: -.065em; line-height: 1; }
.plan-price span { color: var(--muted); font-size: 15px; }
.plan-meta { display: flex; gap: 10px; margin-top: 13px; color: var(--muted); font-size: 12px; }
.plan-meta span + span { padding-left: 10px; border-left: 1px solid var(--line); }
.plan-divider { height: 1px; margin: 23px 0 0; background: var(--line); }
.buy-form { display: grid; gap: 1px; }
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; }
.faq-list details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 800; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--accent-strong); font-size: 22px; font-weight: 400; line-height: 1; transition: transform .2s; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { max-width: 680px; margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.final-cta-section { padding: 75px 0; background: var(--ink); }
.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 25px; color: #fff; }
.final-cta h2 { max-width: 620px; margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.06em; line-height: 1.02; }
.final-cta p { margin: 12px 0 0; color: #98a2b3; }

/* Dashboard */
.dashboard-page { padding: 62px 0 0; }
.dashboard-header { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 38px; }
.dashboard-header h1 { margin: 0; font-size: clamp(32px, 5vw, 53px); letter-spacing: -.07em; line-height: 1; }
.dashboard-header p { margin: 13px 0 0; color: var(--muted); font-size: 14px; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wave { font-size: .58em; vertical-align: middle; }
.dashboard-content { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 35px; align-items: start; }
.dashboard-main { min-width: 0; }
.dashboard-section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.dashboard-section-title h2 { font-size: 23px; letter-spacing: -.045em; }
.section-counter { display: grid; place-items: center; min-width: 23px; height: 23px; padding: 0 7px; border-radius: 8px; color: #875a08; background: var(--accent-soft); font-size: 11px; font-weight: 900; }
.subscription-list { display: grid; gap: 16px; margin-bottom: 49px; }
.subscription-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.subscription-active { border-color: #edc15d; box-shadow: var(--shadow-accent); }
.subscription-top, .subscription-top > div { display: flex; justify-content: space-between; gap: 20px; }
.subscription-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 800; }
.subscription-status i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #98a2b3; }
.status-active { color: #078151; }
.status-active i { background: var(--success); box-shadow: 0 0 0 4px #e0f7ec; }
.subscription-top h3 { margin: 9px 0 0; font-size: 22px; letter-spacing: -.04em; }
.subscription-price { color: var(--ink-soft); font-size: 18px; font-weight: 900; }
.subscription-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 17px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.subscription-details div { display: grid; gap: 4px; }
.subscription-details span { color: var(--muted); font-size: 11px; }
.subscription-details strong { font-size: 13px; }
.auto-badge { display: inline-flex; align-items: center; gap: 5px; color: #087443; font-size: 11px; font-weight: 800; }
.auto-badge span { font-size: 17px; }
.auto-badge b { color: var(--muted); font-weight: 600; }
.auto-badge-muted { color: var(--muted); }
.config-box { margin-top: 20px; padding: 17px; border-radius: 15px; background: var(--soft-warm); }
.config-box-top { display: flex; justify-content: space-between; gap: 12px; }
.config-box-top strong { font-size: 13px; }
.config-box-top p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.config-ready { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #078151; background: #dff7eb; font-size: 12px; }
.config-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.config-actions .btn { min-height: 38px; font-size: 12px; }
.dashboard-plans { grid-template-columns: repeat(3, 1fr); }
.compact-plan { padding: 20px; }
.compact-plan .plan-price { margin-top: 20px; }
.compact-plan .plan-price strong { font-size: 32px; }
.instruction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 50px; }
.instruction-card { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.instruction-card summary { display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none; font-size: 12px; font-weight: 800; }
.instruction-card summary::-webkit-details-marker { display: none; }
.instruction-card summary b { margin-left: auto; color: var(--accent-strong); font-size: 18px; font-weight: 400; }
.instruction-card[open] summary b { transform: rotate(45deg); }
.instruction-card p { margin: 14px 0 2px; color: var(--muted); font-size: 12px; }
.instruction-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--accent-strong); background: var(--accent-soft); font-size: 15px; }
.dashboard-sidebar { display: grid; gap: 13px; }
.side-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.user-side-card { display: grid; justify-items: center; text-align: center; }
.side-avatar { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px; border-radius: 17px; color: #704b04; background: var(--accent-soft); font-size: 20px; font-weight: 900; }
.user-side-card > strong { max-width: 230px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.user-side-card > span:not(.side-avatar) { margin-top: 4px; color: var(--muted); font-size: 11px; }
.side-links { width: 100%; margin-top: 18px; border-top: 1px solid var(--line); }
.side-links a { display: flex; justify-content: space-between; padding: 12px 0 0; color: var(--ink-soft); font-size: 12px; font-weight: 800; text-decoration: none; }
.side-links a span, .text-link span { color: var(--accent-strong); }
.side-card-heading { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.side-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--accent-strong); background: var(--accent-soft); font-weight: 900; }
.side-card > p { margin: 12px 0; color: var(--muted); font-size: 12px; }
.text-link { color: var(--ink); font-size: 12px; font-weight: 900; text-decoration: none; }
.payments-section { margin-top: 4px; }
.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 690px; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); color: var(--ink-soft); text-align: left; font-size: 12px; vertical-align: middle; }
th { color: var(--muted); background: var(--soft); font-size: 10px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.table-status { color: var(--muted); }
.table-status-ok { color: #078151; font-weight: 800; }
.table-empty { padding: 30px; color: var(--muted); text-align: center; }

/* Auth */
.auth-page { padding: 75px 0 0; }
.auth-shell { display: grid; grid-template-columns: .8fr 1fr; width: min(880px, calc(100% - 48px)); min-height: 570px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); background: var(--surface); }
.auth-aside { position: relative; overflow: hidden; padding: 30px; color: #fff; background: var(--ink); }
.auth-aside:after { content: ""; position: absolute; right: -90px; bottom: -100px; width: 290px; height: 290px; border: 1px solid rgba(255, 216, 117, .34); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255, 216, 117, .08), 0 0 0 80px rgba(255, 216, 117, .04); }
.auth-back { position: relative; z-index: 1; color: #d0d5dd; font-size: 12px; font-weight: 800; text-decoration: none; }
.auth-back:hover { color: #fff; }
.dark-back { display: inline-block; margin-bottom: 24px; color: var(--muted); }
.auth-aside-content { position: relative; z-index: 1; max-width: 260px; margin-top: 125px; }
.auth-mark { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 22px; border-radius: 14px; color: #241b08; background: var(--accent); font-size: 21px; }
.auth-aside h2 { margin: 0; color: #fff; font-size: 34px; letter-spacing: -.065em; line-height: 1; }
.auth-aside p { margin: 15px 0 0; color: #98a2b3; font-size: 13px; }
.auth-benefits { display: grid; gap: 10px; margin-top: 28px; color: #fef3c7; font-size: 12px; font-weight: 800; }
.auth-form-card { align-self: center; width: min(390px, calc(100% - 48px)); margin: 0 auto; padding: 35px 0; }
.auth-page-simple .auth-form-card { width: min(420px, calc(100% - 48px)); padding: 38px; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); background: var(--surface); }
.auth-form-card h1 { margin: 0; font-size: 31px; letter-spacing: -.06em; line-height: 1; }
.auth-lead { margin: 12px 0 26px; color: var(--muted); font-size: 13px; }
.auth-form { display: grid; gap: 15px; }
.auth-form label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.auth-form label small { margin-top: -3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.auth-form input { margin: 0; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0; color: var(--muted); font-size: 11px; }
.auth-divider:before, .auth-divider:after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 23px; color: var(--muted); font-size: 11px; }
.auth-links a, .legal-note a, .auth-bottom-link a { color: var(--accent-strong); font-weight: 800; text-decoration: none; }
.legal-note { margin: 18px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.auth-bottom-link { margin: 21px 0 0; text-align: center; font-size: 12px; }

/* Support, rewards and security */
.support-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 30px; align-items: start; }
.support-new-card { padding: 24px; }
.support-new-card h2 { margin: 18px 0 7px; font-size: 20px; letter-spacing: -.04em; }
.support-new-card > p { margin: 0 0 22px; color: var(--muted); font-size: 12px; }
.stack-form { display: grid; gap: 13px; }
.stack-form label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.stack-form input, .stack-form textarea { margin: 0; }
.support-history .dashboard-section-title { margin-bottom: 15px; }
.ticket-card { margin-bottom: 13px; padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ticket-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.ticket-number { color: var(--accent-strong); font-size: 10px; font-weight: 900; }
.ticket-head h3 { margin: 3px 0 0; font-size: 14px; }
.ticket-status { padding: 5px 8px; border-radius: 20px; color: #087443; background: #ecfaf3; font-size: 10px; font-weight: 900; white-space: nowrap; }
.ticket-closed { color: var(--muted); background: var(--soft); }
.chat-box { display: grid; gap: 8px; max-height: 420px; margin-top: 16px; padding: 8px; overflow: auto; border-radius: 12px; background: var(--soft); }
.chat-msg { max-width: 86%; padding: 10px 12px; border-radius: 12px; font-size: 12px; }
.client-msg { justify-self: start; border: 1px solid var(--line); background: var(--surface); }
.admin-msg { justify-self: end; color: #fff; background: var(--ink); }
.chat-author { margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 800; }
.admin-msg .chat-author { color: #98a2b3; }
.chat-body { white-space: pre-wrap; }
.reply-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 10px; align-items: end; }
.reply-form textarea { margin: 0; }
.referral-layout, .security-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; }
.referral-hero-card { padding: 32px; border-radius: var(--radius); color: #fff; background: var(--ink); box-shadow: var(--shadow); }
.referral-icon, .security-lock { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 15px; color: #251b08; background: var(--accent); font-size: 23px; }
.referral-hero-card h2, .security-info h2 { margin: 27px 0 7px; font-size: 28px; letter-spacing: -.06em; }
.referral-hero-card p { max-width: 420px; margin: 0 0 25px; color: #98a2b3; font-size: 13px; }
.copy-field { display: flex; gap: 8px; max-width: 590px; }
.copy-field input { color: #fff; border-color: #344054; background: #1d2939; }
.copy-field .btn { white-space: nowrap; }
.referral-stats { display: flex; gap: 50px; margin-top: 31px; }
.referral-stats div { display: grid; gap: 5px; }
.referral-stats span { color: #98a2b3; font-size: 11px; }
.referral-stats strong { color: #fff; font-size: 18px; }
.side-card-heading { display: flex; align-items: center; gap: 9px; }
.rewards-list { margin-top: 17px; }
.reward-row { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.reward-row:last-child { border-bottom: 0; }
.reward-row b { color: #087443; }
.empty-inline { margin-top: 19px; color: var(--muted); font-size: 12px; }
.security-info { padding: 28px; }
.security-info h2 { margin-top: 22px; }
.security-info p { color: var(--muted); font-size: 13px; }
.security-info ul { display: grid; gap: 9px; margin: 22px 0 0; padding: 0; color: var(--ink-soft); list-style: none; font-size: 12px; font-weight: 800; }
.security-form-card { width: auto; margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* Legal pages */
.legal-page { padding: 62px 0 0; }
.legal-container { max-width: 800px; }
.legal-container h1 { margin: 0; font-size: clamp(36px, 5vw, 58px); letter-spacing: -.075em; line-height: 1; }
.legal-updated { color: var(--muted); font-size: 12px; }
.legal-notice { margin: 26px 0; padding: 15px 17px; border: 1px solid #f2d68c; border-radius: 12px; color: #76530c; background: #fff9e8; font-size: 12px; }
.legal-content { margin: 35px 0 30px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.legal-content h2 { margin: 26px 0 8px; font-size: 17px; letter-spacing: -.03em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }

/* Legacy admin/error compatibility */
.top { display: flex; justify-content: space-between; align-items: center; }
.dash { padding: 52px 6vw; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; padding: 20px 0; }
.card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.glow-card { position: relative; }
.card h3 { margin-top: 0; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 20px; font-size: 11px; font-weight: 900; }
.pill.ok { color: #087443; border: 1px solid #b9e7d2; background: #f0fbf6; }
.muted-pill { color: var(--muted); border: 1px solid var(--line); background: var(--soft); }
.tablewrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.admin-form, .buy-form { display: grid; gap: 10px; }
.admin-form { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.check { display: flex !important; align-items: center; gap: 8px; }
.check input { width: auto; }
.small-note, .hint { color: var(--muted); font-size: 12px; }
.links-row a { color: var(--accent-strong); font-weight: 800; }
.inline-form { display: flex; gap: 8px; align-items: end; }
.admin-form input, .admin-form select, .admin-form textarea, .inline-form select { margin-top: 6px; }
.support-admin-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.ticket { margin-bottom: 14px; }
.narrow-card { max-width: 560px; }
.tablemini { display: grid; gap: 8px; }
.mini-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.auth { max-width: 500px; margin: 62px auto; }

@media (max-width: 920px) {
  .main-nav { gap: 13px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow, .hero-actions { margin-left: auto; margin-right: auto; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .trust-row { justify-content: center; }
  .hero-visual { min-height: 400px; }
  .dashboard-content { grid-template-columns: 1fr; }
  .dashboard-sidebar { grid-template-columns: repeat(3, 1fr); }
  .user-side-card { grid-column: span 1; }
  .referral-layout, .security-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 30px, 560px); }
  .header-inner { min-height: 68px; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 68px; left: 15px; right: 15px; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 255, 255, .98); box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 11px; }
  .main-nav form { padding: 0 11px 5px; }
  .main-nav form .btn { width: 100%; }
  .language-switcher { align-self: flex-start; margin: 5px 11px; }
  .hero-section { padding: 58px 0 65px; }
  .hero-copy h1 { font-size: clamp(43px, 15vw, 67px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; width: min(100%, 330px); }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 340px; }
  .hero-orbit-one { width: 320px; height: 175px; }
  .hero-orbit-two { width: 280px; height: 150px; }
  .connection-card { width: min(315px, 94%); padding: 21px; }
  .connection-ring { width: 145px; height: 145px; margin-top: 23px; }
  .steps-grid, .plans-grid, .instruction-grid, .faq-layout, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .split-heading { display: block; }
  .split-heading > p { margin-top: 16px; }
  .final-cta { display: block; }
  .final-cta .btn { margin-top: 24px; }
  .dashboard-page { padding-top: 38px; }
  .dashboard-header { display: block; }
  .dashboard-actions { margin-top: 20px; }
  .dashboard-sidebar { grid-template-columns: 1fr; }
  .subscription-top { display: block; }
  .subscription-price { margin-top: 14px; }
  .subscription-details { grid-template-columns: 1fr 1fr; }
  .subscription-details div:last-child { grid-column: span 2; }
  .config-actions { display: grid; grid-template-columns: 1fr; }
  .reply-form { grid-template-columns: 1fr; }
  .copy-field { display: grid; }
  .referral-stats { gap: 25px; }
  .auth-page { padding-top: 30px; }
  .auth-shell { display: block; width: min(100% - 30px, 500px); min-height: 0; }
  .auth-aside { min-height: 220px; }
  .auth-aside-content { margin-top: 48px; }
  .auth-aside h2 { font-size: 27px; }
  .auth-form-card { width: min(100% - 42px, 390px); padding: 35px 0; }
  .auth-page-simple .auth-form-card { width: calc(100% - 30px); padding: 25px; }
  .legal-content { padding: 22px; }
  .footer-grid { gap: 27px; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 4px; }
}

@media (max-width: 480px) {
  body { overflow-x: hidden; }
  .container { width: calc(100% - 24px); }
  .dashboard-page { padding-top: 28px; }
  .dashboard-header h1 { font-size: 34px; overflow-wrap: anywhere; }
  .dashboard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .dashboard-actions .btn { width: 100%; padding-left: 9px; padding-right: 9px; font-size: 11px; }
  .subscription-card { padding: 17px; border-radius: 16px; }
  .subscription-top h3 { max-width: 220px; font-size: 19px; overflow-wrap: anywhere; }
  .subscription-price { font-size: 16px; }
  .subscription-details { grid-template-columns: 1fr; gap: 11px; margin-top: 19px; }
  .subscription-details div:last-child { grid-column: auto; }
  .subscription-details div { grid-template-columns: minmax(105px, 1fr) 1fr; align-items: center; }
  .subscription-details strong { text-align: right; }
  .auto-badge { flex-wrap: wrap; line-height: 1.35; }
  .config-box { padding: 14px; }
  .config-box-top p { max-width: 210px; }
  .config-actions { gap: 7px; }
  .config-actions .btn { width: 100%; min-height: 46px; }
  .instruction-card { padding: 14px; }
  .table-card { border-radius: 14px; }
  .table-wrap { margin: 0; }
  .support-layout { gap: 18px; }
  .ticket-head { display: block; }
  .ticket-status { display: inline-flex; margin-top: 9px; }
  .referral-hero-card { padding: 23px; }
  .referral-stats { flex-wrap: wrap; margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition: none !important; }
}

/* Corporate reference skin: white space, deep teal panels and lime accents. */
.brand-mark { width: 39px; height: 39px; transform: none; border-radius: 50% 50% 50% 10px; color: var(--accent); background: var(--ink); box-shadow: 0 8px 18px rgba(53, 84, 94, .18); }
.brand-mark span { width: 18px; height: 18px; border: 3px solid var(--accent); background: transparent; }
.brand-copy strong, .footer-brand { letter-spacing: -.055em; }
.main-nav { gap: 18px; }
.main-nav a { font-size: 12px; }
.nav-login { color: var(--ink) !important; }
.btn { border-radius: 14px; }
.btn-primary { color: #fff; background: var(--ink); box-shadow: 0 8px 20px rgba(53, 84, 94, .18); }
.btn-primary:hover { background: #28454f; box-shadow: 0 12px 28px rgba(53, 84, 94, .25); }
.btn-accent { color: #24352e; background: var(--accent); box-shadow: 0 8px 20px rgba(142, 175, 43, .2); }
.btn-accent:hover { background: #c1d85e; box-shadow: 0 12px 28px rgba(142, 175, 43, .28); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .06); }
.btn-outline-light:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .12); }
.eyebrow { letter-spacing: .13em; }
.hero-section { padding: 40px 0 82px; }
.reference-hero-grid { grid-template-columns: minmax(0, 1.7fr) minmax(280px, .72fr); gap: 16px; align-items: stretch; }
.hero-spotlight { min-height: 390px; padding: 42px 42px 35px; border-radius: 0 28px 28px 28px; color: #fff; background: var(--ink); box-shadow: 0 18px 45px rgba(53, 84, 94, .14); }
.hero-spotlight h1 { max-width: 740px; margin-bottom: 18px; color: #fff; font-size: clamp(44px, 6vw, 75px); }
.hero-spotlight .hero-lead { max-width: 620px; color: rgba(255, 255, 255, .72); font-size: 16px; line-height: 1.58; }
.eyebrow-light { color: #dceab9; }
.eyebrow-light .eyebrow-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(177, 204, 73, .2); }
.hero-spotlight .hero-actions { margin-top: 26px; }
.access-pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.access-pill-row span { padding: 8px 11px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .08); font-size: 10px; font-weight: 800; }
.hero-info-card { padding: 32px 28px; border-radius: 28px 28px 28px 0; background: var(--soft); box-shadow: var(--shadow-sm); }
.hero-info-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 21px; border-radius: 15px; color: #2c3e36; background: var(--accent); font-size: 22px; font-weight: 900; }
.hero-info-card h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.06em; line-height: 1.06; }
.hero-info-card > p { margin: 10px 0 25px; color: var(--muted); font-size: 13px; }
.hero-info-list { display: grid; gap: 15px; padding-top: 17px; border-top: 1px solid var(--line-strong); }
.hero-info-list div { display: grid; grid-template-columns: 24px 1fr; column-gap: 8px; align-items: baseline; }
.hero-info-list span { grid-row: span 2; color: var(--accent-strong); font-size: 10px; font-weight: 900; }
.hero-info-list strong { font-size: 12px; }
.hero-info-list small { color: var(--muted); font-size: 10px; }
.hero-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.hero-tile { position: relative; min-height: 128px; padding: 19px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-sm); }
.hero-tile:after { content: ""; position: absolute; right: -25px; bottom: -32px; width: 90px; height: 90px; border-radius: 50%; background: var(--accent-soft); }
.hero-tile-number { display: block; margin-bottom: 22px; color: var(--accent-strong); font-size: 10px; font-weight: 900; }
.hero-tile strong { display: block; max-width: 150px; font-size: 13px; line-height: 1.2; }
.hero-tile small { display: block; max-width: 170px; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.section-soft { background: var(--soft); }
.step-card { border-radius: 15px; box-shadow: none; }
.step-icon { border-radius: 11px; color: var(--ink); background: var(--accent-soft); }
.plans-grid.single-plan { grid-template-columns: minmax(0, 820px); justify-content: center; }
.plan-corporate { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 35px; padding: 34px; border: 2px solid var(--accent); border-radius: 24px; box-shadow: var(--shadow-accent); }
.plan-corporate:hover { border-color: var(--accent-strong); }
.plan-corporate .plan-head h3 { font-size: 22px; }
.plan-corporate .plan-price { margin-top: 34px; }
.plan-corporate .plan-price strong { color: var(--ink); font-size: 40px; }
.plan-corporate .plan-price strong span { color: var(--muted); font-size: 16px; }
.plan-corporate-action { display: flex; flex-direction: column; justify-content: center; padding-left: 30px; border-left: 1px solid var(--line); }
.plan-free-badge { width: fit-content; margin-bottom: 15px; padding: 7px 10px; border-radius: 9px; color: #5d7417; background: var(--accent-soft); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.plan-corporate-action small { display: block; margin-top: 13px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.final-cta-section { background: var(--ink); }
.faq-list details { border-color: var(--line-strong); }
.faq-list summary span { color: var(--accent-strong); }
.site-footer { position: relative; margin-top: 110px; padding: 92px 0 22px; border-top: 0; color: #fff; background: var(--ink); }
.site-footer:before { content: ""; position: absolute; top: -43px; left: 0; right: 0; height: 44px; background: var(--ink); clip-path: polygon(0 100%, 4% 0, 100% 0, 100% 100%); }
.footer-grid p, .footer-grid h3, .footer-bottom, .footer-grid a:not(.footer-brand) { color: rgba(255, 255, 255, .65); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-color: rgba(255, 255, 255, .14); }
.auth-name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-form-card .alert { margin-bottom: 15px; }
.side-avatar { color: #395044; background: var(--accent-soft); }
.brand-logo { display: block; width: 92px; height: 54px; object-fit: contain; border-radius: 3px; background: #fff; }
.footer-logo { display: block; width: 88px; height: 52px; object-fit: contain; border-radius: 3px; background: #fff; }
.auth-logo { display: block; width: 132px; height: 78px; margin-bottom: 22px; object-fit: contain; border-radius: 3px; background: #fff; }
.status-disabled { color: var(--danger); }
.status-disabled i { background: var(--danger); box-shadow: 0 0 0 4px #fff0ee; }
.subscription-details-simple { grid-template-columns: repeat(2, 1fr); }
.key-disabled-alert { margin-top: 20px; }
.key-disabled-alert .text-link { margin-left: 5px; color: var(--danger); }
.routing-section { margin-top: 50px; }
.routing-card { padding: 22px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--soft-warm); }
.routing-card p { max-width: 760px; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.routing-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.routing-button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); background: var(--surface); font-size: 12px; font-weight: 900; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.routing-button:hover { transform: translateY(-1px); border-color: var(--accent-strong); box-shadow: var(--shadow-sm); }
.routing-button span { color: var(--accent-strong); font-size: 16px; }
.status-pill { display: inline-flex; margin-right: 7px; padding: 4px 7px; border-radius: 999px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.status-pill-ok { color: #087443; background: #e4f7ec; }
.status-pill-danger { color: var(--danger); background: #fff0ee; }
.btn-success-quiet { color: #087443; border-color: #b9e7d2; background: #f0fbf6; }
.key-status-cell { min-width: 155px; }

@media (max-width: 920px) {
  .hero-spotlight { padding: 34px; }
  .hero-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .hero-section { padding: 24px 0 58px; }
  .reference-hero-grid { grid-template-columns: 1fr; }
  .hero-spotlight { min-height: 0; padding: 30px 24px 25px; border-radius: 0 22px 22px 22px; }
  .hero-spotlight h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero-info-card { border-radius: 22px 22px 22px 0; }
  .hero-tiles { grid-template-columns: 1fr 1fr; }
  .hero-tile { min-height: 118px; padding: 15px; }
  .access-pill-row span { font-size: 9px; }
  .plan-corporate { grid-template-columns: 1fr; gap: 23px; padding: 24px; }
  .plan-corporate-action { padding-top: 22px; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .auth-name-grid { grid-template-columns: 1fr; }
  .brand-logo { width: 76px; height: 48px; }
  .footer-logo { width: 76px; height: 46px; }
  .routing-buttons { grid-template-columns: 1fr 1fr; }
  .routing-card { padding: 17px; }
  .site-footer { margin-top: 84px; padding-top: 70px; }
}

/* Admin workspace */
.admin-page { min-height: 100vh; padding: 52px 0 90px; background: linear-gradient(180deg, #f8faf9 0%, #fff 42%); }
.admin-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 30px; }
.admin-header h1 { margin: 0; color: var(--ink); font-size: clamp(34px, 5vw, 58px); letter-spacing: -.07em; line-height: 1; }
.admin-header p { max-width: 560px; margin: 13px 0 0; color: var(--muted); font-size: 14px; }
.admin-header-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: end; gap: 8px; }
.admin-user-label { margin-right: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.admin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.admin-kpi { display: grid; gap: 5px; min-height: 132px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.admin-kpi:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.admin-kpi span { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.admin-kpi strong { font-size: 34px; letter-spacing: -.06em; }
.admin-kpi small { color: var(--muted); font-size: 11px; }
.admin-kpi-accent { border-color: var(--accent); background: var(--accent-soft); }
.admin-nav { position: sticky; top: 76px; z-index: 10; display: flex; gap: 5px; margin-top: 18px; padding: 6px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm); backdrop-filter: blur(16px); }
.admin-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 13px; border-radius: 10px; color: var(--ink-soft); font-size: 12px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.admin-nav a:hover { color: var(--ink); background: var(--soft); }
.admin-nav b { display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; color: #fff; background: var(--danger); font-size: 10px; }
.admin-section { scroll-margin-top: 112px; margin-top: 62px; }
.admin-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 18px; }
.admin-section-heading .eyebrow { margin-bottom: 9px; }
.admin-section-heading h2 { margin: 0; color: var(--ink); font-size: clamp(25px, 3vw, 35px); letter-spacing: -.06em; line-height: 1; }
.admin-section-heading p { max-width: 620px; margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.admin-section-count { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 12px; color: #53670e; background: var(--accent-soft); font-size: 14px; font-weight: 900; }
.admin-panel { padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.admin-table-panel { padding: 0; overflow: hidden; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 15px 17px; border-bottom: 1px solid var(--line); color: var(--ink-soft); text-align: left; font-size: 12px; vertical-align: middle; }
.admin-table th { color: var(--muted); background: #fbfcfc; font-size: 10px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.admin-table tbody tr:hover { background: #fbfdfb; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table td strong { color: var(--ink); }
.admin-table td input, .admin-table td select { min-width: 120px; padding: 9px 10px; font-size: 12px; }
.admin-users-table { min-width: 760px; }
.admin-subscriptions-table { min-width: 980px; }
.admin-user-cell { display: flex; align-items: center; gap: 11px; min-width: 230px; }
.admin-user-cell > div { display: grid; gap: 2px; }
.admin-user-cell strong { font-size: 13px; }
.admin-user-cell small, .admin-table-note { display: block; color: var(--muted); font-size: 10px; line-height: 1.4; }
.admin-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 13px; color: #53670e; background: var(--accent-soft); font-size: 14px; font-weight: 900; }
.admin-badge { display: inline-flex; align-items: center; width: fit-content; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.admin-badge-ok { color: #087443; background: #e4f7ec; }
.admin-badge-danger { color: var(--danger); background: #fff0ee; }
.admin-badge-muted { color: var(--muted); background: var(--soft); }
.admin-badge-dark { color: #fff; background: var(--ink); }
.admin-key-button { margin-top: 8px; }
.admin-empty { padding: 32px !important; color: var(--muted) !important; text-align: center !important; }
.admin-form-registry { display: none; }
.admin-support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-ticket { display: grid; gap: 15px; }
.admin-ticket-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.admin-ticket-number { color: var(--accent-strong); font-size: 11px; font-weight: 900; }
.admin-ticket h3 { margin: 4px 0 0; color: var(--ink); font-size: 17px; letter-spacing: -.035em; }
.admin-chat-box { display: grid; gap: 8px; max-height: 280px; overflow: auto; padding: 10px; border-radius: 13px; background: var(--soft); }
.admin-chat-message { padding: 11px 12px; border-radius: 11px; background: #fff; }
.admin-chat-message.is-admin { color: #fff; background: var(--ink); }
.admin-chat-message small { color: var(--muted); font-size: 10px; }
.admin-chat-message.is-admin small { color: rgba(255, 255, 255, .62); }
.admin-chat-message p { margin: 5px 0 0; font-size: 12px; white-space: pre-wrap; }
.admin-reply-form { display: grid; gap: 9px; }
.admin-reply-form textarea { min-height: 80px; }
.admin-reply-form > div { display: flex; gap: 8px; }
.admin-reply-form select { min-width: 0; flex: 1; }
.admin-form-panel { max-width: 760px; }
.admin-form-stack { display: grid; gap: 14px; }
.admin-form-stack label, .admin-form-grid label { display: grid; gap: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.admin-form-stack input, .admin-form-stack textarea, .admin-form-stack select { margin: 0; }
.admin-settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.admin-panel-title { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.admin-panel-title h3 { margin: 0; color: var(--ink); font-size: 17px; letter-spacing: -.04em; }
.admin-panel-hint { color: var(--muted); font-size: 10px; text-align: right; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; align-items: end; }
.admin-form-grid label:first-of-type { grid-column: span 2; }
.admin-form-grid button { width: fit-content; }
.admin-check { display: flex !important; align-items: center; grid-template-columns: auto 1fr; gap: 8px !important; min-height: 44px; }
.admin-check input { width: auto; }
.admin-simple-list { display: grid; gap: 9px; margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-simple-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-simple-list span:first-child { display: grid; gap: 2px; }
.admin-simple-list strong { color: var(--ink); font-size: 12px; }
.admin-simple-list small { color: var(--muted); font-size: 10px; }
.admin-edit-list { display: grid; gap: 10px; margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-edit-row { display: grid; grid-template-columns: 1.1fr 1.6fr .55fr .65fr .8fr auto auto; gap: 7px; align-items: center; }
.admin-edit-row input { min-width: 0; padding: 9px 10px; font-size: 11px; }
.admin-edit-row .admin-check { min-height: 36px; font-size: 10px; }
.admin-payments-section { margin-bottom: 35px; }

@media (max-width: 920px) {
  .admin-kpis { grid-template-columns: repeat(2, 1fr); }
  .admin-settings-grid, .admin-support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .admin-page { padding-top: 30px; }
  .admin-header { display: block; }
  .admin-header-actions { justify-content: start; margin-top: 22px; }
  .admin-user-label { width: 100%; margin: 0 0 3px; }
  .admin-kpis { gap: 8px; }
  .admin-kpi { min-height: 112px; padding: 15px; }
  .admin-kpi strong { font-size: 28px; }
  .admin-section { margin-top: 44px; }
  .admin-section-heading { align-items: start; }
  .admin-panel { padding: 16px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid label:first-of-type { grid-column: auto; }
  .admin-edit-row { grid-template-columns: 1fr 1fr; }
  .admin-edit-row input:first-of-type { grid-column: span 2; }
  .admin-reply-form > div { display: grid; }
}
