/* Chat Ranger 3D — фронтенд. Светлая тема, акценты бренда Ranger 3D. */
:root {
  --bg: #f5f7fa;
  --bg-2: #ffffff;
  --bg-3: #eef1f6;
  --border: #d8dde6;
  --text: #1a1f2c;
  --muted: #5c6575;
  --accent: #ED3237;
  --accent-2: #D62828;
  --accent-ink: #fff;
  --accent-secondary: #336699;
  --accent-secondary-2: #2A5580;
  --danger: #d73a3a;
  --danger-bg: #fdecec;
  --ok: #2a9d5c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20,30,50,.10);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: var(--accent-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.site-main { flex: 1 0 auto; }
#userLogin[hidden], #userDashboard[hidden], #adminLogin[hidden], #adminDashboard[hidden] { display: none !important; }
.privacy-card { margin-bottom: 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: .15s;
  text-decoration: none; background: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-3); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-link { background: none; color: var(--muted); border: none; padding: 8px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { padding: 9px; border-radius: 50%; }
.btn-icon svg { display: block; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: rgba(255,255,255,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; }
.main-nav { display: flex; gap: 20px; justify-self: center; }
.main-nav a { color: var(--muted); font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--text); text-decoration: none; }
.auth-actions { display: flex; gap: 10px; align-items: center; }

/* Hero */
.hero { padding: 96px 0 64px; overflow: hidden; position: relative; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(237,50,55,.10) 0%, transparent 35%),
    radial-gradient(circle at 85% 20%, rgba(51,102,153,.10) 0%, transparent 35%),
    radial-gradient(circle at 50% 90%, rgba(237,50,55,.06) 0%, transparent 40%);
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  animation: orbFloat 10s ease-in-out infinite;
}
.hero-orb.red { width: 260px; height: 260px; background: rgba(237,50,55,.22); top: 10%; right: 15%; animation-delay: 0s; }
.hero-orb.blue { width: 200px; height: 200px; background: rgba(51,102,153,.22); bottom: 15%; right: 35%; animation-delay: -5s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 30px) scale(1.08); }
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: 48px; margin: 0 0 18px; letter-spacing: -.8px; line-height: 1.1; }
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 14px; }
.hero-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; font-size: 13px; color: var(--muted); font-weight: 500;
  box-shadow: var(--shadow);
}
.hero-trial {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 18px 0 0; padding: 10px 16px;
  background: rgba(237,50,55,.08); border: 1px solid rgba(237,50,55,.25);
  border-radius: 999px; color: var(--text); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: .15s;
}
.hero-trial:hover {
  background: rgba(237,50,55,.14); border-color: rgba(237,50,55,.35); text-decoration: none;
}
.hero-trial[hidden] { display: none !important; }
.hero-trial-badge { font-size: 16px; }
.hero-trial .badge-pro {
  display: inline-flex; align-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
  padding: 2px 7px; border-radius: 20px; vertical-align: middle;
}
.hero-art { position: relative; display: flex; justify-content: center; min-height: 420px; }
.hero-mockup { position: relative; width: 340px; z-index: 2; }
.hero-window {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(20,30,50,.14); overflow: hidden;
  animation: mockupFloat 6s ease-in-out infinite;
}
@keyframes mockupFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-win-header {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--border); background: var(--bg-3);
}
.hero-win-dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-win-dot.red { background: var(--accent); }
.hero-win-dot.yellow { background: #f5b041; }
.hero-win-dot.green { background: var(--ok); }
.hero-win-title { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.hero-win-body { padding: 16px; }
.hero-account-list { display: flex; flex-direction: column; gap: 10px; }
.hero-account {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2);
  transition: .2s;
}
.hero-account.active { border-color: var(--accent-secondary); box-shadow: 0 0 0 1px var(--accent-secondary); }
.hero-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; }
.hero-account-info { flex: 1; }
.hero-account-name { font-weight: 600; font-size: 14px; }
.hero-account-status { font-size: 12px; color: var(--muted); }
.hero-chat-preview { margin-top: 14px; padding: 12px; background: var(--bg-3); border-radius: 12px; }
.hero-chat-bubble { display: inline-block; background: #fff; border: 1px solid var(--border); border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: 13px; color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.hero-chat-ai { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--accent-secondary); font-weight: 600; }
.hero-float-card {
  position: absolute; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
  animation: cardFloat 5s ease-in-out infinite;
  z-index: 3;
}
.hero-float-card svg { color: var(--accent); }
.hero-float-card.one { top: 30px; right: -20px; animation-delay: 0s; }
.hero-float-card.two { bottom: 60px; left: -30px; animation-delay: -2.5s; }
.hero-float-card.three { bottom: 10px; right: 10px; animation-delay: -1.2s; }
@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dot-blue { background: var(--accent-secondary); box-shadow: 0 0 8px var(--accent-secondary); }

/* Goals */
.goals { padding: 80px 0; }
.goals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.goal-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; padding: 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  opacity: 0; transform: translateY(24px);
  display: flex; flex-direction: column;
}
.goal-card.is-visible { opacity: 1; transform: translateY(0); }
.goal-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20,30,50,.12); border-color: var(--accent-secondary); }
.goal-icon { font-size: 36px; margin-bottom: 14px; }
.goal-card h3 { margin: 0 0 8px; font-size: 18px; }
.goal-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1; }
.goal-link { font-weight: 600; font-size: 14px; color: var(--accent-secondary); }
.goal-link:hover { color: var(--accent); }

/* Features */
.features { padding: 80px 0; }
.section-title { text-align: center; font-size: 30px; margin: 0 0 34px; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(170px, auto); gap: 18px; }
.bento-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; padding: 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  opacity: 0; transform: translateY(24px);
  display: flex; flex-direction: column;
}
.bento-card.is-visible { opacity: 1; transform: translateY(0); }
.bento-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20,30,50,.12); border-color: var(--accent-secondary); }
.bento-card.bento-large { grid-row: span 2; }
.bento-icon { font-size: 32px; margin-bottom: 12px; transition: transform .3s; }
.bento-card:hover .bento-icon { transform: scale(1.15) rotate(-4deg); }
.bento-card h3 { margin: 0 0 8px; font-size: 18px; }
.bento-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.bento-channels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.channel-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--bg-3); border: 1px solid var(--border);
}
.channel-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.channel-pill.whatsapp::before { background: #25D366; }
.channel-pill.telegram::before { background: #229ED9; }
.channel-pill.instagram::before { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.channel-pill.facebook::before { background: #1877F2; }
.channel-pill.mercadolivre::before { background: #FFE600; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

/* Stats */
.stats { padding: 52px 0; margin: 8px 0; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px;
  text-align: center; transition: transform .25s, box-shadow .25s;
  opacity: 0; transform: translateY(24px);
}
.stat-card.is-visible { opacity: 1; transform: translateY(0); }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-number { font-size: 38px; font-weight: 800; line-height: 1; color: var(--accent); }
.stat-label { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* Scroll reveal base */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* CTA band */
.cta-band { margin: 56px 0; }
.cta-band-inner { background: linear-gradient(135deg, #fff, var(--bg-3)); border: 1px solid var(--border); border-radius: 18px; padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; font-size: 24px; }
.cta-band p { margin: 0; color: var(--muted); }

/* Generic pages */
.page-narrow { max-width: 760px; padding-top: 48px; padding-bottom: 60px; }
.page-title { font-size: 32px; margin: 0 0 8px; }
.page-sub { color: var(--muted); margin: 0 0 28px; }
.page-center { text-align: center; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plans .plan-card { display: flex; flex-direction: column; height: 100%; }
.page-header { max-width: 760px; margin: 0 auto 30px; text-align: center; padding-top: 48px; }
.plan-loading { color: var(--muted); grid-column: 1 / -1; text-align: center; padding: 30px; }
.plan-card { position: relative; background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan-badge { align-self: flex-start; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--accent-secondary); font-weight: 700; margin-bottom: 12px; }
.plan-title { margin: 0 0 12px; font-size: 20px; }
.plan-discount { align-self: flex-start; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; }
.plan-old { color: var(--muted); text-decoration: line-through; font-size: 18px; margin-bottom: 2px; }
.plan-price { font-size: 40px; font-weight: 800; }
.plan-cur { font-size: 20px; color: var(--muted); margin-right: 4px; }
.super-cents { font-size: 0.45em; vertical-align: super; line-height: 0; font-weight: 700; margin-left: 0.02em; }
.compare-price .super-cents { font-size: 0.45em; color: inherit; font-weight: 700; }
.plan-period { color: var(--muted); margin-bottom: 18px; }
.plan-perks { list-style: none; padding: 0; margin: 0 0 22px; }
.plan-perks li { padding: 7px 0 7px 26px; position: relative; color: var(--muted); }
.plan-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan-buy { margin-top: auto; }
.plan-free .plan-price { margin-top: auto; }
.plans-note { margin-top: 26px; color: var(--muted); font-size: 14px; text-align: center; }

/* Forms */
.auth-page { display: flex; justify-content: center; }
.auth-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; padding: 34px; width: 100%; max-width: 420px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 14px; color: var(--muted); }
.field input, .field textarea, .field select {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-size: 15px; font-family: inherit;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-secondary); }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c6575' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
  cursor: pointer;
}
.hint { color: var(--muted); font-size: 12px; }
.form-msg { font-size: 14px; min-height: 0; }
.form-msg.error { color: var(--danger); }
.form-msg.ok { color: var(--ok); }
.auth-links { display: flex; justify-content: space-between; margin-top: 20px; font-size: 14px; flex-wrap: wrap; gap: 8px; }

/* Account */
.account-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.card-title { margin: 0 0 16px; font-size: 18px; }
.account-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.account-row:last-of-type { border-bottom: none; }
.account-label { color: var(--muted); }
.account-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.badge { background: var(--bg-3); color: var(--muted); padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.badge-pro { background: var(--accent); color: var(--accent-ink); }
.badge-warn { background: #f6e2b3; color: #8a5a00; }
.muted { color: var(--muted); font-size: 14px; }
.danger-zone { border-color: var(--danger); }
.danger-zone .card-title { color: var(--danger); }

/* Checkout */
.checkout-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout-plans[hidden], .checkout-pay[hidden] { display: none !important; }
.checkout-plan-btn { display: flex; flex-direction: column; gap: 4px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 22px; cursor: pointer; color: var(--text); text-align: left; transition: .15s; }
.checkout-plan-btn:hover { border-color: var(--accent-secondary); transform: translateY(-2px); }
.cp-title { font-weight: 700; font-size: 17px; }
.cp-discount { align-self: flex-start; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 20px; }
.cp-old { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.cp-price { font-size: 26px; font-weight: 800; color: var(--accent-secondary); }
.cp-period { color: var(--muted); font-size: 14px; }
.summary-old { color: var(--muted); }
.summary-disc { color: var(--accent); font-size: 14px; font-weight: 700; }
.checkout-summary { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.summary-price { margin-left: auto; font-size: 20px; font-weight: 800; color: var(--accent-secondary); }
.pay-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.pay-tab { flex: 1; padding: 12px; border: 1px solid var(--border); background: var(--bg-2); color: var(--muted); border-radius: 10px; cursor: pointer; font-weight: 600; }
.pay-tab.active { border-color: var(--accent-secondary); color: var(--text); background: var(--bg-3); }
.pay-panel { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.pix-result { margin-top: 18px; text-align: center; }
.pix-qr { width: 220px; height: 220px; background: #fff; border-radius: 12px; padding: 8px; }
.pix-status { margin-top: 14px; padding: 10px; border-radius: 10px; background: var(--bg-3); color: var(--muted); }
.pix-status.error, .pay-status.error { color: var(--danger); }
.pay-status { margin-top: 12px; color: var(--muted); }
.checkout-success { text-align: center; padding: 50px 20px; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 40px; display: flex; align-items: center; justify-content: center; }

/* Download page */
.btn-sm { padding: 7px 14px; font-size: 13px; }
.download-hero { display: flex; gap: 24px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #fff, var(--bg-3)); border: 1px solid var(--border); border-radius: 18px; padding: 30px; flex-wrap: wrap; }
.download-main { display: flex; flex-direction: column; gap: 14px; }
.dl-version { color: var(--muted); font-weight: 600; }
.dl-btn { align-self: flex-start; }
.dl-meta { display: flex; gap: 8px; color: var(--muted); font-size: 14px; }
.dl-hash { color: var(--muted); font-size: 12px; line-height: 1.4; word-break: break-all; }
.dl-hash span { font-weight: 600; }
.dl-hash code { background: rgba(0,0,0,.05); padding: 2px 5px; border-radius: 5px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.dl-hash-full { width: 100%; margin-top: 10px; }
.download-counter { text-align: center; min-width: 160px; }
.dl-count { font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; }
.dl-count-label { color: var(--muted); font-size: 13px; margin-top: 6px; }
.download-notes { margin-top: 28px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.notes-body { color: var(--muted); font-size: 15px; }
.download-older { margin-top: 28px; }
.ver-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.ver-table th, .ver-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); }
.ver-table th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .3px; }
.ver-table .version-disabled { opacity: .65; }
.ver-table .dl-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ver-table .btn.disabled { background: var(--bg-3); color: var(--muted); border-color: var(--border); cursor: not-allowed; }
.version-hidden.hidden { display: none; }
.versions-toggle-row td { text-align: center; border-bottom: none; padding-top: 8px; }
.versions-toggle { background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 10px; padding: 8px 18px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: .15s; }
.versions-toggle:hover { background: var(--bg-3); color: var(--text); }
.version-info-btn { min-width: 46px; justify-content: center; }

/* Блок release notes с разворачиваемой историей изменений */
.download-notes { position: relative; max-height: none; overflow: visible; }
.download-notes.expanded { max-height: 70vh; overflow-y: auto; }
.notes-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.notes-header .card-title { margin: 0; }
.notes-toggle { background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 10px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: .15s; }
.notes-toggle:hover { background: var(--bg-3); color: var(--text); }
.notes-toggle .toggle-icon { display: inline-block; transition: transform .2s ease; }
.download-notes.expanded .notes-toggle .toggle-icon { transform: rotate(180deg); }
.notes-history { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.notes-history h3 { margin: 0 0 12px; font-size: 18px; }
.notes-history-text { color: var(--muted); font-size: 15px; line-height: 1.6; }
.notes-history.hidden, .notes-current.hidden { display: none; }

/* Модалка с информацией о версии */
.version-info-body { max-height: 60vh; overflow-y: auto; color: var(--muted); font-size: 15px; line-height: 1.6; }
.badge-sm { font-size: 11px; padding: 2px 7px; }
.download-hash { margin-top: 26px; color: var(--muted); font-size: 12px; word-break: break-all; }
.download-hash code { background: var(--bg-3); padding: 2px 6px; border-radius: 6px; }

/* Trust bar */
.trust-bar { padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.trust-bar-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 500; }
.trust-item svg { color: var(--accent-secondary); flex-shrink: 0; }

/* Channel cloud */
.channel-cloud { padding: 80px 0; text-align: center; }
.channel-cloud-sub { max-width: 620px; margin: -18px auto 32px; color: var(--muted); font-size: 17px; }
.channel-orbit {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease;
}
.channel-orbit.is-visible { opacity: 1; transform: translateY(0); }
.channel-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--bg-2); border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.channel-badge:hover { transform: translateY(-3px); border-color: var(--accent-secondary); }
.channel-badge::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--muted);
}
.channel-badge.whatsapp::before { background: #25D366; }
.channel-badge.telegram::before { background: #229ED9; }
.channel-badge.instagram::before { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.channel-badge.facebook::before { background: #1877F2; }
.channel-badge.mercadolivre::before { background: #FFE600; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.channel-badge.chatmax::before { background: var(--accent-secondary); }
.channel-badge.tiktok::before { background: #000; }
.channel-badge.gmail::before { background: #EA4335; }
.channel-badge.olx::before { background: #6E0AD6; }
.channel-badge.webapps::before { background: var(--accent); }

/* Roles */
.roles { padding: 84px 0; }
.roles-sub { text-align: center; max-width: 620px; margin: -18px auto 34px; color: var(--muted); font-size: 17px; }
.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.role-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; padding: 26px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  opacity: 0; transform: translateY(24px);
}
.role-card.is-visible { opacity: 1; transform: translateY(0); }
.role-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent-secondary); }
.role-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(51,102,153,.10); color: var(--accent-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.role-card h3 { margin: 0 0 8px; font-size: 17px; }
.role-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Industries */
.industries { padding: 84px 0; }
.industries-sub { text-align: center; max-width: 620px; margin: -18px auto 34px; color: var(--muted); font-size: 17px; }
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.industry-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; padding: 26px;
  text-align: center; transition: transform .25s, box-shadow .25s, border-color .25s;
  opacity: 0; transform: translateY(24px);
}
.industry-card.is-visible { opacity: 1; transform: translateY(0); }
.industry-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent-secondary); }
.industry-icon { font-size: 38px; margin-bottom: 14px; transition: transform .3s; }
.industry-card:hover .industry-icon { transform: scale(1.15); }
.industry-card h3 { margin: 0; font-size: 16px; }

/* Checklist section */
.checklist-section { padding: 84px 0; }
.checklist-inner {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 24px; padding: 44px;
  opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease;
}
.checklist-inner.is-visible { opacity: 1; transform: translateY(0); }
.checklist-title { text-align: center; font-size: 28px; margin: 0 0 10px; }
.checklist-sub { text-align: center; color: var(--muted); font-size: 17px; margin: 0 0 34px; }
.checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.checklist-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.checklist-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text); }
.checklist-check {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.checklist-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
  background: var(--accent-secondary); color: #fff; padding: 2px 8px; border-radius: 20px; margin-left: 6px;
}
.checklist-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* Reliability — dark band, breaks up the light sections around it */
.reliability {
  padding: 88px 0; margin: 32px 0;
  background: linear-gradient(135deg, #1a2a3d 0%, #243b52 50%, #1a2a3d 100%);
  color: #fff;
}
.reliability .section-title { color: #fff; }
.reliability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reliability-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 28px;
  transition: transform .25s, background .25s, border-color .25s;
  opacity: 0; transform: translateY(24px);
}
.reliability-card.is-visible { opacity: 1; transform: translateY(0); }
.reliability-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }
.reliability-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(255,255,255,.12); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.reliability-card h3 { margin: 0 0 8px; font-size: 18px; color: #fff; }
.reliability-card p { margin: 0; color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.55; }

/* Pain points */
.pain-points { padding: 80px 0; }
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pain-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; padding: 26px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  opacity: 0; transform: translateY(24px);
}
.pain-card.is-visible { opacity: 1; transform: translateY(0); }
.pain-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.pain-icon { font-size: 34px; margin-bottom: 12px; }
.pain-card h3 { margin: 0 0 8px; font-size: 17px; }
.pain-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Testimonials */
.testimonials { padding: 84px 0; margin: 8px 0; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 26px;
  transition: transform .25s, box-shadow .25s;
  opacity: 0; transform: translateY(24px);
  display: flex; flex-direction: column;
}
.testimonial-card.is-visible { opacity: 1; transform: translateY(0); }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testimonial-stars { color: #f5b041; font-size: 18px; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-text { margin: 0 0 20px; color: var(--text); font-size: 15px; line-height: 1.6; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author span { display: block; font-size: 13px; color: var(--muted); }

/* Case stat (used inside merged testimonial cards) */
.case-stat {
  font-size: 52px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 16px;
}

/* Support section */
.support-section { padding: 84px 0; background: linear-gradient(135deg, #fff, var(--bg-3)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.support-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.support-copy h2 { font-size: 32px; margin: 0 0 14px; }
.support-copy p { color: var(--muted); font-size: 17px; margin: 0 0 24px; }
.support-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.support-visual { display: flex; justify-content: center; }
.support-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px;
  padding: 24px; width: 100%; max-width: 340px; box-shadow: var(--shadow);
}
.support-avatar {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #fff; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.support-chat { display: flex; flex-direction: column; gap: 10px; }
.support-bubble {
  padding: 12px 16px; border-radius: 16px; font-size: 14px; max-width: 90%;
  background: var(--bg-3); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px;
}
.support-bubble-reply { background: var(--accent-secondary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; border-bottom-left-radius: 16px; }

/* Feature highlight sections */
.highlight-section { padding: 84px 0; }
.highlight-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.highlight-reverse .highlight-inner { direction: rtl; }
.highlight-reverse .highlight-copy, .highlight-reverse .highlight-visual { direction: ltr; }
.highlight-tag {
  display: inline-block; background: rgba(51,102,153,.10); color: var(--accent-secondary);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 6px 12px; border-radius: 20px; margin-bottom: 14px;
}
.highlight-copy h2 { font-size: 32px; margin: 0 0 14px; }
.highlight-copy p { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
.highlight-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.highlight-list li { padding-left: 26px; position: relative; color: var(--text); }
.highlight-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.highlight-visual { display: flex; justify-content: center; }
.highlight-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px;
  padding: 24px; width: 100%; max-width: 380px; box-shadow: var(--shadow);
}
.highlight-chat { display: flex; flex-direction: column; gap: 10px; }
.highlight-bubble { padding: 12px 16px; border-radius: 16px; font-size: 14px; max-width: 85%; }
.highlight-bubble.user { background: var(--bg-3); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.highlight-bubble.ai { background: var(--accent-secondary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.highlight-ai-badge { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.highlight-accounts { display: flex; flex-direction: column; gap: 12px; }
.h-account { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.h-account span { flex: 1; font-weight: 500; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-chip { background: var(--bg-3); border: 1px solid var(--border); border-radius: 20px; padding: 8px 14px; font-size: 13px; color: var(--text); }
.kb-list { display: flex; flex-direction: column; gap: 12px; }
.kb-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 12px; font-size: 14px; font-weight: 500; }
.kb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-secondary); }

/* ba-check / ba-x (used as list markers in the compare section) */
.ba-x { color: var(--danger); font-weight: 700; }
.ba-check { color: var(--ok); font-weight: 700; }

/* How it works */
.how-it-works { padding: 88px 0; background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 34px; }
.step-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; padding: 28px; text-align: center; transition: transform .25s, box-shadow .25s; }
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-number {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.step-card h3 { margin: 0 0 10px; font-size: 18px; }
.step-card p { margin: 0; color: var(--muted); font-size: 14px; }
.steps-cta { text-align: center; }

/* Compare */
.compare { padding: 84px 0; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 0 auto; }
.compare-card { position: relative; background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; }
.compare-pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.compare-badge { position: absolute; top: -12px; right: 18px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 5px 12px; border-radius: 20px; }
.compare-card h3 { margin: 0 0 6px; font-size: 22px; }
.compare-price { font-size: 36px; font-weight: 800; margin: 0 0 18px; color: var(--text); }
.compare-price span { font-size: 16px; color: var(--muted); font-weight: 500; }
.compare-list { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.compare-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }

/* Final CTA */
.final-cta { padding: 96px 0; }
.final-cta-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.final-cta h2 { font-size: 32px; margin: 0 0 10px; }
.final-cta p { color: var(--muted); font-size: 17px; margin: 0 0 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #fff; margin-top: 40px; }
.footer-inner { padding: 30px 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.footer-nav { display: flex; gap: 18px; }
.footer-nav a { color: var(--muted); font-size: 14px; }
.footer-copy { margin-left: auto; color: var(--muted); font-size: 13px; }

/* Responsive */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: auto; margin-bottom: 20px; }
  .hero h1 { font-size: 36px; }
  .hero-mockup { transform: scale(.92); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .highlight-inner { grid-template-columns: 1fr; gap: 30px; }
  .highlight-reverse .highlight-inner { direction: ltr; }
  .highlight-visual { order: -1; }
  .compare-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .trust-bar-inner { justify-content: center; }
  .goals-grid { grid-template-columns: 1fr 1fr; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-card.bento-large { grid-row: auto; }
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .support-inner { grid-template-columns: 1fr; gap: 30px; }
  .support-visual { order: -1; }
  .roles-grid { grid-template-columns: 1fr 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .reliability-grid { grid-template-columns: 1fr 1fr; }
  .checklist-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .bento-grid, .plans, .checkout-plans, .stats-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .footer-copy { margin-left: 0; width: 100%; }
  .hero h1 { font-size: 30px; }
  .hero-mockup { transform: scale(.85); }
  .hero-float-card.one { right: -10px; }
  .hero-float-card.two { left: -10px; }
  .hero-float-card.three { right: 0; }
  .highlight-copy h2 { font-size: 26px; }
  .compare-grid { grid-template-columns: 1fr; }
  .trust-item span { display: none; }
  .page-header { padding-top: 32px; }
  .pain-grid { grid-template-columns: 1fr; }
  .goals-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .support-actions .btn { width: 100%; }
  .roles-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .channel-orbit { gap: 8px; }
  .channel-badge { padding: 8px 14px; font-size: 13px; }
  .reliability-grid { grid-template-columns: 1fr; }
  .checklist-inner { padding: 28px 22px; }
  .checklist-title { font-size: 24px; }
  .checklist-cta .btn { width: 100%; }
}

/* --- FAQ accordion --- */
.faq { padding: 64px 0 84px; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: .15s;
}
.faq-question:hover { background: var(--bg-3); }
.faq-question[aria-expanded="true"] { color: var(--accent); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-icon { transition: .2s; flex-shrink: 0; }
.faq-answer { padding: 0 22px 18px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.faq-answer p { margin: 0; }

/* --- Личный кабинет /user/ --- */
.user-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 60px;
  align-items: start;
}
.user-login-card {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding-top: 20px;
}
.user-sidebar {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.user-menu {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.user-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
}
.user-menu a:last-child { border-bottom: none; }
.user-menu a:hover { background: var(--bg-3); text-decoration: none; }
.user-menu a.active { background: var(--accent); color: var(--accent-ink); }
.user-menu a.active svg { stroke: currentColor; }
.user-content { min-width: 0; }
.user-header { margin-bottom: 22px; }
.user-header .page-title { margin-bottom: 4px; }
.user-header .page-sub { margin: 0; }
.user-cards { display: flex; flex-direction: column; gap: 18px; }
.user-welcome {
  display: flex;
  align-items: center;
  gap: 16px;
}
.user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--accent-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-welcome-info h2 { margin: 0 0 4px; font-size: 20px; }
.user-welcome-info p { margin: 0; }
.user-shortcuts { display: flex; gap: 10px; flex-wrap: wrap; }
.user-empty {
  text-align: center;
  padding: 30px 20px;
  color: var(--muted);
}
.user-empty svg { margin-bottom: 10px; opacity: .6; }
.user-empty p { margin: 0; }
#userLogin[hidden], #userDashboard[hidden] { display: none !important; }

@media (max-width: 760px) {
  .user-layout { grid-template-columns: 1fr; padding-top: 24px; }
  .user-sidebar { position: static; }
  .user-menu {
    display: flex;
    flex-wrap: wrap;
    border-radius: 12px;
  }
  .user-menu a {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    border-bottom: none;
    border-right: 1px solid var(--border);
    padding: 12px;
  }
  .user-menu a span { display: none; }
  .user-menu a:last-child { border-right: none; }
  .user-welcome { flex-direction: column; text-align: center; }
  .user-shortcuts { flex-direction: column; }
  .user-shortcuts .btn { width: 100%; }
}

/* --- Редактор синхронизированных настроек в кабинете --- */
.settings-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.settings-toolbar .form-msg { margin: 0; }
.settings-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.settings-tabs .stab { background: none; border: none; padding: 8px 14px; cursor: pointer; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.settings-tabs .stab.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.spanel[hidden] { display: none; }
.set-item { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.set-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.set-item-head .set-title { flex: 1; font-weight: 600; }
.set-item-head .set-tag { width: 120px; }
.set-inp { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; box-sizing: border-box; background: var(--bg); color: var(--text); }
textarea.set-inp { resize: vertical; }
.set-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 10px; }
.set-grid .field { margin: 0; }
.set-grid .field span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.set-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.set-media { font-size: 12px; color: var(--muted); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-add { margin-top: 4px; }
@media (max-width: 560px) { .set-grid { grid-template-columns: 1fr; } }

/* Admin panel */
.admin-layout { display: flex; gap: 24px; padding: 40px 0; min-height: 70vh; }
.admin-login-card { width: 100%; max-width: 420px; margin: 0 auto; }
.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}
.admin-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.admin-brand img { width: 32px; height: 32px; }
.admin-menu { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--text); font-weight: 500; text-decoration: none;
}
.admin-menu a:hover, .admin-menu a.active { background: var(--bg-3); color: var(--accent-secondary); }
.admin-content { flex: 1; min-width: 0; }
.admin-header { margin-bottom: 24px; }
.admin-header .page-title { margin-bottom: 4px; }
.admin-header .page-sub { margin: 0; color: var(--muted); }

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.admin-stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}
.admin-stat-value { font-size: 28px; font-weight: 800; color: var(--accent-secondary); }
.admin-stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}
.admin-card .card-title { margin: 0 0 16px; font-size: 18px; }
.admin-toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.admin-search { margin-left: auto; margin-bottom: 0; }
.admin-search input { min-width: 240px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-3); }
.admin-table code { background: var(--bg-3); padding: 2px 6px; border-radius: 4px; font-size: 12px; }

.admin-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
  background: var(--bg-3); color: var(--muted);
}
.admin-badge-pro { background: var(--accent); color: var(--accent-ink); }
.admin-badge-free { background: var(--bg-3); color: var(--muted); }
.admin-badge-info { background: #e3f2fd; color: #1565c0; }
.admin-badge-update { background: #fff3e0; color: #e65100; }
.admin-badge-warning { background: #ffebee; color: #c62828; }
.admin-badge-urgent { background: #ED3237; color: #fff; }

.admin-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }

.admin-list { display: flex; flex-direction: column; gap: 8px; }
.admin-list-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.admin-list-item:last-child { border-bottom: none; }
.admin-list-item span:first-child { color: var(--text); font-weight: 500; }
.admin-list-item span:last-child { color: var(--muted); }

.admin-modal {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0;
  background: var(--bg-2);
  box-shadow: var(--shadow);
  max-width: 560px;
  width: 90%;
}
.admin-modal::backdrop { background: rgba(20,30,50,.35); }
.admin-modal-form { padding: 24px; }
.admin-modal-form .card-title { margin: 0 0 18px; }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.admin-checkbox { display: flex; align-items: center; gap: 8px; }
.admin-checkbox input { width: auto; }

.plan-features-row td { padding-top: 0; border-bottom: none; }
.plan-features-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.plan-features-list li { margin: 3px 0; }
.feature-yes::marker { color: var(--ok); content: '+ '; }
.feature-no::marker { color: var(--danger); content: '− '; }

.flex-days-row { display: flex; align-items: center; gap: 12px; margin: 16px 0 10px; }
.flex-days-row input[type="range"] { flex: 1; min-width: 0; }
.flex-days-row input[type="number"] { width: 70px; }
.flex-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.flex-preset { background: var(--bg-3); border: 1px solid var(--border); border-radius: 20px; padding: 6px 12px; font-size: 13px; color: var(--text); cursor: pointer; transition: .15s; font-family: inherit; }
.flex-preset:hover { border-color: var(--accent-secondary); }
.flex-preset.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
@media (min-width: 961px) {
  .plan-flex-wide { grid-column: span 2; }
}
.admin-checkbox-row { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.admin-checkbox-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }
.admin-checkbox-row span { color: var(--text); font-size: 15px; }
.admin-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.admin-detail-section { margin-bottom: 18px; }
.admin-detail-section p { margin: 6px 0; }
.admin-subscription { display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.admin-subscription-text { font-size: 13px; font-weight: 600; color: var(--text); }
.admin-subscription-expires { font-size: 11px; color: var(--muted); }
.admin-license-code { background: var(--bg-3); padding: 2px 6px; border-radius: 4px; font-size: 11px; font-family: monospace; }
.admin-progress { height: 6px; background: var(--bg-3); border-radius: 10px; overflow: hidden; }
.admin-progress-bar { height: 100%; border-radius: 10px; transition: width .3s; }
.admin-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-detail-list { list-style: none; padding: 0; margin: 0; }
.admin-detail-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.admin-detail-list li:last-child { border-bottom: none; }

.admin-code-list {
  width: 100%;
  font-family: monospace;
  font-size: 13px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-3);
  resize: vertical;
}
.admin-editor {
  min-height: 160px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.admin-editor .ql-toolbar { border-bottom: 1px solid var(--border); background: var(--bg-3); }
.admin-editor .ql-container { border: none; font-size: 15px; background: var(--bg); }
.admin-editor .ql-editor { min-height: 120px; padding: 12px 14px; color: var(--text); }
.admin-editor .ql-editor.ql-blank::before { color: var(--muted); }
.admin-editor .ql-stroke { stroke: var(--text); }
.admin-editor .ql-fill { fill: var(--text); }
.admin-editor .ql-picker { color: var(--text); }

@media (max-width: 860px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; position: static; }
  .admin-grid-2 { grid-template-columns: 1fr; }
  .admin-form-row { grid-template-columns: 1fr; }
  .admin-search { margin-left: 0; width: 100%; }
  .admin-search input { width: 100%; }
}
