@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --bg: #0d1017;
  --bg-soft: #111621;
  --surface: #171c26;
  --surface-2: #1c2330;
  --surface-3: #232c3c;
  --border: rgba(199, 215, 241, .12);
  --border-strong: rgba(226, 184, 98, .3);
  --text: #f4f6fb;
  --muted: #929bad;
  --muted-2: #697386;
  --gold: #e0b760;
  --gold-soft: #f3d78f;
  --gold-deep: #ad7c2e;
  --blue: #70a5ff;
  --green: #4fd39c;
  --red: #ff6f7f;
  --orange: #f4ad55;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 20px 55px rgba(0, 0, 0, .26);
  --sidebar: 270px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(900px 480px at 8% -8%, rgba(224,183,96,.09), transparent 65%), radial-gradient(850px 500px at 105% 7%, rgba(72,122,211,.1), transparent 62%); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
.icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.gold-text { color: var(--gold-soft); background: linear-gradient(135deg, #fae3a4, #c89135); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.muted { color: var(--muted); }
.text-danger { color: var(--red); }
.text-success { color: var(--green); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* Buttons */
.button { border: 1px solid var(--border); border-radius: 10px; padding: 10px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 13px; cursor: pointer; transition: .18s ease; white-space: nowrap; }
.button:hover { transform: translateY(-1px); border-color: rgba(224,183,96,.35); background: var(--surface-3); }
.button:disabled { opacity: .48; pointer-events: none; }
.button-primary { color: #1b160d; border-color: transparent; background: linear-gradient(135deg, #f2d78f, #c58d32); box-shadow: 0 10px 28px rgba(201,143,47,.18); }
.button-primary:hover { background: linear-gradient(135deg, #ffe7a6, #d59a3a); filter: brightness(1.03); }
.button-outline { background: transparent; }
.button-danger { color: var(--red); border-color: rgba(255,111,127,.3); background: rgba(255,111,127,.06); }
.button-success { color: var(--green); border-color: rgba(79,211,156,.28); background: rgba(79,211,156,.06); }
.button-sm { padding: 8px 12px; font-size: 12px; border-radius: 9px; }
.button-lg { padding: 13px 20px; font-size: 14px; }
.button-link { border: 0; background: none; color: var(--gold); padding: 4px; cursor: pointer; }
.icon-button { width: 38px; height: 38px; padding: 0; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; }

/* Public site */
.public-body { overflow-x: hidden; }
.public-nav { height: 74px; display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: auto; padding: 0 24px; border-bottom: 1px solid rgba(255,255,255,.03); }
.public-nav .brand { padding: 0; border: 0; }
.public-nav-links { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 13px; }
.public-nav-links a:hover { color: var(--text); }
.public-actions { display: flex; align-items: center; gap: 10px; }
.public-container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero { min-height: 690px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 72px; padding: 70px 0 90px; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; color: var(--gold-soft); border: 1px solid rgba(224,183,96,.22); background: rgba(224,183,96,.05); border-radius: 999px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.hero-pill i, .status-dot i { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 13px rgba(224,183,96,.8); }
.hero h1 { margin: 22px 0 20px; font: 700 clamp(46px, 6vw, 76px)/1.02 'Playfair Display', serif; letter-spacing: -.04em; }
.hero-copy > p { max-width: 640px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-buttons { display: flex; gap: 12px; margin-top: 30px; }
.trust-row { display: flex; gap: 26px; margin-top: 38px; color: var(--muted); font-size: 12px; }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.trust-row i { color: var(--green); font-style: normal; }
.dashboard-preview { position: relative; border: 1px solid rgba(224,183,96,.2); border-radius: 24px; padding: 12px; background: linear-gradient(155deg, rgba(36,43,56,.93), rgba(17,21,30,.95)); box-shadow: 0 40px 90px rgba(0,0,0,.42), 0 0 60px rgba(224,183,96,.06); transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); }
.dashboard-preview::after { content: ''; position: absolute; inset: 20% -10% -12%; z-index: -1; background: rgba(224,183,96,.08); filter: blur(60px); }
.preview-top { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border-bottom: 1px solid var(--border); }
.preview-top i { width: 8px; height: 8px; border-radius: 50%; background: #394253; }
.preview-body { padding: 22px; }
.preview-label { color: var(--muted); font-size: 10px; letter-spacing: .2em; }
.preview-body h3 { margin: 8px 0 20px; font: 600 26px 'Playfair Display', serif; }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.preview-stat { padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.025); }
.preview-stat small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.preview-stat strong { display: block; margin-top: 5px; font-size: 23px; }
.preview-table { margin-top: 14px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.preview-row { display: grid; grid-template-columns: 1fr 1.5fr .65fr; padding: 11px 13px; border-top: 1px solid var(--border); color: #b8c0ce; font-size: 9px; }
.preview-row:first-child { border-top: 0; color: var(--muted-2); text-transform: uppercase; }
.preview-row .link { color: var(--gold); font-family: monospace; }
.section { padding: 92px 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-header .eyebrow { justify-content: center; }
.section-header h2 { margin: 10px 0 14px; font: 600 clamp(34px, 4vw, 50px) 'Playfair Display', serif; }
.section-header p { margin: 0; color: var(--muted); line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { padding: 28px; min-height: 230px; }
.feature-card .feature-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--gold); background: rgba(224,183,96,.08); border: 1px solid rgba(224,183,96,.16); }
.feature-card h3 { margin: 20px 0 10px; font-size: 16px; }
.feature-card p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 18px; }
.price-card { position: relative; padding: 30px; }
.price-card.featured { border-color: rgba(224,183,96,.45); transform: translateY(-10px); box-shadow: 0 25px 70px rgba(192,136,44,.1); }
.popular-tag { position: absolute; top: -12px; right: 20px; padding: 5px 10px; border-radius: 999px; color: #18130b; background: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.price-card h3 { margin: 0; font: 600 22px 'Playfair Display', serif; }
.price { margin: 16px 0; font-size: 35px; font-weight: 700; }
.price small { font-size: 12px; color: var(--muted); font-weight: 400; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 26px; }
.price-card li { padding: 9px 0; color: var(--muted); font-size: 13px; }
.price-card li::before { content: '✓'; color: var(--green); margin-right: 9px; }
.public-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }

/* Brand and auth */
.brand { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 16px 14px 18px; border-bottom: 1px solid var(--border); }
.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; color: #1d170b; border-radius: 12px; background: linear-gradient(135deg, #f5dfa2, #c3882c); font: 700 18px 'Playfair Display', serif; box-shadow: 0 8px 23px rgba(205,146,49,.22); }
.brand strong { display: block; font: 600 16px 'Playfair Display', serif; }
.brand small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 8px; letter-spacing: .18em; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 34px 20px; }
.auth-box { width: min(430px, 100%); }
.auth-brand { display: flex; justify-content: center; border: 0; margin-bottom: 25px; text-align: left; }
.auth-card { padding: 30px; }
.auth-card h1 { margin: 0; text-align: center; font: 600 31px 'Playfair Display', serif; }
.auth-card > p { margin: 9px 0 25px; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.6; }
.auth-links { margin-top: 20px; text-align: center; color: var(--muted); font-size: 12px; }
.auth-links a { color: var(--gold); }

/* App shell */
.app-layout { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--sidebar); display: flex; flex-direction: column; border-right: 1px solid var(--border); background: rgba(16,20,29,.96); backdrop-filter: blur(18px); }
.nav { flex: 1; overflow-y: auto; padding: 13px 11px; scrollbar-width: thin; }
.nav-label { margin: 12px 11px 8px; color: var(--muted-2); font-size: 9px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.nav-label-spaced { margin-top: 27px; }
.nav-link { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; margin: 3px 0; border: 1px solid transparent; border-radius: 10px; color: #9aa4b5; background: none; font-size: 12px; cursor: pointer; transition: .16s ease; }
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.035); }
.nav-link.active { color: var(--gold-soft); border-color: rgba(224,183,96,.18); background: rgba(224,183,96,.075); }
.nav-link.active .icon { filter: drop-shadow(0 0 8px rgba(224,183,96,.4)); }
.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 9px; }
.avatar { width: 33px; height: 33px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--gold-soft); border: 1px solid rgba(224,183,96,.2); background: var(--surface-2); font-size: 12px; font-weight: 700; }
.user-chip strong, .user-chip small { display: block; max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip strong { font-size: 12px; }
.user-chip small { margin-top: 3px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.logout-link { color: var(--muted); }
.app-main { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 24px; border-bottom: 1px solid var(--border); background: rgba(13,16,23,.82); backdrop-filter: blur(18px); }
.topbar-title { flex: 1; }
.topbar-title small, .topbar-title strong { display: block; }
.topbar-title small { color: var(--muted-2); font-size: 8px; letter-spacing: .2em; }
.topbar-title strong { margin-top: 3px; font: 600 13px 'Playfair Display', serif; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.status-dot { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.status-dot i { width: 6px; height: 6px; background: var(--green); box-shadow: 0 0 12px rgba(79,211,156,.7); }
.mobile-menu { display: none; }
.content { width: min(1440px, 100%); margin: 0 auto; padding: 30px; }
.sidebar-overlay { display: none; }

/* Cards, headings, alerts */
.card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(155deg, rgba(27,33,45,.94), rgba(18,22,31,.96)); box-shadow: var(--shadow); }
.card-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 21px; border-bottom: 1px solid var(--border); }
.card-header h2, .card-header h3 { margin: 0; font: 600 18px 'Playfair Display', serif; }
.card-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.card-body { padding: 22px; }
.page-heading { min-height: 105px; display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 25px; }
.eyebrow { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 16px; height: 1px; background: var(--gold); }
.page-heading h1 { margin: 0; font: 600 clamp(30px, 4vw, 42px) 'Playfair Display', serif; letter-spacing: -.02em; }
.subtitle { max-width: 700px; margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.grid { display: grid; gap: 16px; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; }
.two-col { grid-template-columns: minmax(0, 1.55fr) minmax(285px, .65fr); }
.two-equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-card { min-height: 126px; display: flex; align-items: center; gap: 16px; padding: 20px; }
.stat-icon { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; color: var(--blue); background: rgba(112,165,255,.08); border: 1px solid rgba(112,165,255,.13); border-radius: 12px; }
.stat-icon.accent { color: var(--gold); background: rgba(224,183,96,.08); border-color: rgba(224,183,96,.17); }
.stat-card p { margin: 0; color: var(--muted); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.stat-card strong { display: block; margin-top: 6px; font-size: 28px; letter-spacing: -.03em; }
.stat-card small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 9px; }
.alert { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; padding: 12px 15px; border: 1px solid var(--border); border-radius: 11px; font-size: 12px; }
.alert button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 17px; }
.alert-success { color: #9aefd0; border-color: rgba(79,211,156,.22); background: rgba(79,211,156,.07); }
.alert-error { color: #ffadba; border-color: rgba(255,111,127,.24); background: rgba(255,111,127,.07); }
.alert-warning { color: #ffd194; border-color: rgba(244,173,85,.24); background: rgba(244,173,85,.07); }
.alert-info { color: #b7d0ff; border-color: rgba(112,165,255,.22); background: rgba(112,165,255,.07); }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: block; }
.field > span, .field-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: #b7bfcd; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.field > span small { color: var(--muted-2); font-size: 9px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.input { width: 100%; min-height: 43px; padding: 10px 12px; color: var(--text); border: 1px solid var(--border); outline: 0; border-radius: 10px; background: #111722; font-size: 12px; transition: .16s ease; }
.input::placeholder { color: #596375; }
.input:focus { border-color: rgba(224,183,96,.5); box-shadow: 0 0 0 3px rgba(224,183,96,.08); }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.6; }
select.input { appearance: auto; }
.input:disabled { opacity: .55; cursor: not-allowed; }
.input-with-prefix { display: flex; align-items: stretch; }
.input-prefix { display: flex; align-items: center; padding: 0 11px; color: var(--muted); border: 1px solid var(--border); border-right: 0; border-radius: 10px 0 0 10px; background: var(--surface-2); font-size: 11px; }
.input-with-prefix .input { border-radius: 0 10px 10px 0; }
.help { margin: 6px 0 0; color: var(--muted-2); font-size: 10px; line-height: 1.55; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 6px; }
.check-row { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.check-row input, .table-check { width: 15px; height: 15px; accent-color: var(--gold); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segment { position: relative; }
.segment input { position: absolute; opacity: 0; }
.segment span { min-height: 72px; display: flex; flex-direction: column; justify-content: center; padding: 12px; border: 1px solid var(--border); border-radius: 11px; background: #111722; cursor: pointer; }
.segment strong { font-size: 12px; }
.segment small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.segment input:checked + span { border-color: rgba(224,183,96,.47); background: rgba(224,183,96,.07); box-shadow: inset 0 0 0 1px rgba(224,183,96,.08); }
.form-section { padding: 20px 0; border-top: 1px solid var(--border); }
.form-section:first-child { padding-top: 0; border-top: 0; }
.form-section-title { margin: 0 0 15px; font: 600 16px 'Playfair Display', serif; }
.rule-list { display: grid; gap: 10px; }
.rule-row { display: grid; grid-template-columns: 42px 1fr 1.1fr 2fr 36px; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.018); }
.rule-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--gold); background: rgba(224,183,96,.08); font-size: 10px; }
.remove-rule { width: 32px; height: 32px; border: 1px solid rgba(255,111,127,.25); border-radius: 9px; color: var(--red); background: rgba(255,111,127,.04); cursor: pointer; }

/* Tables and toolbars */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.search-box { position: relative; width: min(330px, 100%); }
.search-box .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.search-box .input { padding-left: 36px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.data-table th { padding: 12px 15px; color: var(--muted-2); background: rgba(255,255,255,.012); font-size: 8px; letter-spacing: .14em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 14px 15px; border-top: 1px solid var(--border); vertical-align: middle; }
.data-table tr:hover td { background: rgba(255,255,255,.016); }
.table-link { color: var(--gold-soft); font-family: ui-monospace, monospace; }
.table-sub { display: block; max-width: 270px; margin-top: 4px; color: var(--muted-2); font-size: 9px; }
.table-actions { display: flex; justify-content: flex-end; gap: 6px; }
.table-actions form { display: inline; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.02); font-size: 8px; white-space: nowrap; text-transform: uppercase; letter-spacing: .06em; }
.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-success { color: var(--green); border-color: rgba(79,211,156,.2); background: rgba(79,211,156,.06); }
.badge-gold { color: var(--gold); border-color: rgba(224,183,96,.22); background: rgba(224,183,96,.07); }
.badge-warning { color: var(--orange); border-color: rgba(244,173,85,.22); background: rgba(244,173,85,.06); }
.badge-danger { color: var(--red); border-color: rgba(255,111,127,.22); background: rgba(255,111,127,.06); }
.bulk-bar { display: none; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 18px; border-bottom: 1px solid var(--border); background: rgba(224,183,96,.055); }
.bulk-bar.visible { display: flex; }
.bulk-actions { display: flex; gap: 7px; }
.empty-state { padding: 55px 20px; text-align: center; }
.empty-symbol { width: 52px; height: 52px; margin: 0 auto 14px; display: grid; place-items: center; color: var(--gold); border: 1px dashed rgba(224,183,96,.3); border-radius: 16px; font-size: 20px; }
.empty-state h3 { margin: 0 0 7px; font: 600 18px 'Playfair Display', serif; }
.empty-state p { max-width: 420px; margin: 0 auto 16px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.pagination { display: flex; justify-content: center; gap: 6px; padding: 18px; }
.pagination a { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); font-size: 10px; }
.pagination a.active { color: #17120b; border-color: var(--gold); background: var(--gold); }

/* Analytics */
.chart-card { padding: 20px; }
.chart-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.chart-title h3 { margin: 0; font: 600 17px 'Playfair Display', serif; }
.chart-title small { color: var(--muted); font-size: 9px; }
.bar-chart { height: 170px; display: flex; align-items: end; gap: 5px; padding-top: 10px; border-bottom: 1px solid var(--border); }
.bar-item { flex: 1; min-width: 4px; position: relative; height: var(--h); min-height: 2px; border-radius: 4px 4px 0 0; background: linear-gradient(to top, rgba(224,183,96,.32), var(--gold)); transition: .2s ease; }
.bar-item:hover { filter: brightness(1.2); }
.bar-item::after { content: attr(data-value); position: absolute; left: 50%; bottom: calc(100% + 5px); transform: translateX(-50%); display: none; padding: 3px 6px; color: var(--text); background: #080a0f; border-radius: 5px; font-size: 8px; }
.bar-item:hover::after { display: block; }
.breakdown { padding: 18px; }
.breakdown h3 { margin: 0 0 15px; font: 600 16px 'Playfair Display', serif; }
.breakdown-row { margin-top: 11px; }
.breakdown-row > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 5px; color: #bdc4d0; font-size: 9px; }
.breakdown-row > div:first-child span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-meter, .meter { height: 5px; overflow: hidden; border-radius: 999px; background: #252c38; }
.mini-meter i, .meter i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #b47d2c, var(--gold-soft)); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-row .input { width: auto; min-width: 130px; min-height: 36px; padding: 7px 10px; }
.live-indicator { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.live-indicator i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.live-indicator i::after { content: ''; position: absolute; inset: -4px; border: 1px solid var(--gold); border-radius: 50%; animation: pulse 1.7s infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* Plan, settings, misc */
.plan-card { padding: 21px; }
.plan-name { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; }
.plan-name h3 { margin: 0; font: 600 20px 'Playfair Display', serif; }
.plan-name span { color: var(--gold); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.meter-block { margin-top: 16px; }
.meter-block > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: var(--muted); font-size: 9px; }
.meter-block strong { color: #c8ced8; font-weight: 500; }
.meter { height: 6px; }
.notice { padding: 14px; color: var(--muted); border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.018); font-size: 10px; line-height: 1.65; }
.notice strong { color: var(--text); }
.domain-detail-row > td { padding: 0 15px 15px; background: rgba(255,255,255,.008); }
.domain-details { border: 1px solid var(--border); border-radius: 11px; background: rgba(10,14,22,.62); }
.domain-details > summary { padding: 12px 14px; color: var(--gold-soft); cursor: pointer; font-size: 10px; font-weight: 600; letter-spacing: .05em; }
.domain-check-message { margin: 0 14px 13px; }
.domain-dns-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 0 14px 14px; }
.domain-dns-grid > div { min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.018); }
.domain-dns-grid small,.domain-dns-grid span { display: block; color: var(--muted-2); font-size: 8px; line-height: 1.55; }
.domain-dns-grid code { display: block; margin: 6px 0 9px; overflow-wrap: anywhere; color: #c7dcff; font: 9px/1.55 ui-monospace,monospace; }
.domain-config-form { margin: 0 14px 14px; padding: 13px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.014); }
.is-hidden { display: none !important; }
.domain-danger-actions { justify-content: flex-start; padding: 0 14px 14px; }
.setup-steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.setup-steps li + li { margin-top: 7px; }
.qr-image { width: 210px; height: 210px; padding: 10px; background: #fff; border-radius: 12px; }
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; background: rgba(5,7,11,.82); backdrop-filter: blur(9px); }
.modal.open { display: grid; }
.modal-card { width: min(460px, 100%); padding: 24px; text-align: center; }
.modal-card h3 { margin: 0 0 16px; font: 600 22px 'Playfair Display', serif; }
.modal-card .button { margin-top: 14px; }
.approval-modal-card { width: min(520px, 100%); }
.approval-icon { display: inline-grid; width: 58px; height: 58px; place-items: center; margin-bottom: 13px; color: var(--gold); border: 1px solid rgba(224,183,96,.32); border-radius: 18px; background: rgba(224,183,96,.08); }
.approval-status { margin-bottom: 12px; }
.approval-modal-card h3 { margin-bottom: 8px; }
.approval-modal-card > p { margin: 0 auto 15px; max-width: 430px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.approval-account { display: grid; gap: 3px; margin: 16px 0; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.018); }
.approval-account small { color: var(--muted-2); font-size: 8px; letter-spacing: .14em; }
.approval-account strong { color: var(--gold-soft); font-size: 14px; }
.approval-account span { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.approval-help { margin-bottom: 4px !important; }
.approval-contact-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.approval-contact-actions .button { justify-content: center; }
.approval-whatsapp { color: #7ce8b2; border-color: rgba(37,211,102,.34); background: rgba(37,211,102,.09); }
.approval-telegram { color: #7dcfff; border-color: rgba(42,171,238,.34); background: rgba(42,171,238,.09); }
.approval-admin-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0; border-color: rgba(224,183,96,.25); background: rgba(224,183,96,.05); }
.approval-admin-notice .button { flex: 0 0 auto; }
.user-approval-actions { flex-wrap: wrap; min-width: 215px; }

/* Install */
.install-wrap { min-height: 100vh; padding: 35px 20px; }
.install-box { width: min(780px, 100%); margin: 0 auto; }
.install-header { margin-bottom: 22px; text-align: center; }
.install-header .brand { display: inline-flex; border: 0; }
.install-steps { display: flex; justify-content: center; gap: 8px; margin-top: 17px; }
.install-steps span { padding: 6px 10px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; font-size: 9px; }
.install-steps span.active { color: var(--gold); border-color: rgba(224,183,96,.3); background: rgba(224,183,96,.06); }
.requirements { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 18px; }
.requirement { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); font-size: 10px; }

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { gap: 35px; }
  .rule-row { grid-template-columns: 34px 1fr 1fr; }
  .rule-row .rule-target { grid-column: 2 / 4; }
  .rule-row .remove-rule { grid-column: 4; grid-row: 1; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-102%); transition: transform .22s ease; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .sidebar-overlay { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.62); }
  .app-main { margin-left: 0; }
  .mobile-menu { display: inline-grid; }
  .two-col, .two-equal { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding-top: 55px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .hero-buttons, .trust-row { justify-content: center; }
  .dashboard-preview { max-width: 610px; margin: 0 auto; transform: none; }
  .public-nav-links { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 580px; margin: auto; }
  .domain-dns-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
}

@media (max-width: 680px) {
  :root { --radius-lg: 16px; }
  .content { padding: 19px 14px 30px; }
  .topbar { padding: 0 13px; }
  .status-dot { display: none; }
  .topbar-actions .button span { display: none; }
  .page-heading { min-height: auto; align-items: flex-start; flex-direction: column; margin: 20px 0 22px; }
  .heading-actions { width: 100%; flex-wrap: wrap; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { min-height: 110px; padding: 15px; }
  .stat-icon { display: none; }
  .stat-card strong { font-size: 25px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .approval-contact-actions { grid-template-columns: 1fr; }
  .approval-admin-notice { align-items: stretch; flex-direction: column; }
  .approval-admin-notice .button { justify-content: center; }
  .segmented { grid-template-columns: 1fr; }
  .rule-row { grid-template-columns: 1fr; padding: 12px; }
  .rule-number { display: none; }
  .rule-row .rule-target, .rule-row .remove-rule { grid-column: auto; grid-row: auto; }
  .rule-row .remove-rule { width: 100%; }
  .card-header, .toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .bulk-bar { align-items: flex-start; flex-direction: column; }
  .public-container { width: min(100% - 28px, 1180px); }
  .public-nav { padding: 0 14px; }
  .public-actions .button-outline { display: none; }
  .hero { min-height: auto; padding-bottom: 55px; }
  .hero h1 { font-size: 44px; }
  .hero-buttons { flex-direction: column; }
  .trust-row { flex-wrap: wrap; gap: 12px; }
  .preview-body { padding: 14px; }
  .preview-stats { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 65px 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
  .requirements { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
  .topbar-title { display: none; }
  .topbar-actions { margin-left: auto; }
}
