/*
 * AlwaysViral design system
 * Bootstrap 5 provides the grid/utilities; everything visual comes from the
 * tokens below. Dark mode: [data-bs-theme="dark"] on <html> (set by theme.js
 * from the user's choice or the OS preference).
 */

/* ---------- Tokens ---------- */
:root,
[data-bs-theme="light"] {
  --av-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --av-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --av-brand: #6d4aff;
  --av-brand-600: #5a37f0;
  --av-brand-50: #f2efff;
  --av-brand-100: #e4ddff;
  --av-accent: #ff4d8d;
  --av-gradient: linear-gradient(135deg, #6d4aff 0%, #b34bff 55%, #ff4d8d 100%);

  --av-bg: #f6f7fb;
  --av-surface: #ffffff;
  --av-surface-2: #f9fafc;
  --av-surface-hover: #f3f4f8;
  --av-border: #e6e8f0;
  --av-border-strong: #d3d7e3;
  --av-text: #141826;
  --av-text-2: #4a5168;
  --av-text-3: #7b8299;
  --av-shadow-sm: 0 1px 2px rgba(20, 24, 38, .06);
  --av-shadow: 0 1px 3px rgba(20, 24, 38, .06), 0 6px 16px -6px rgba(20, 24, 38, .08);
  --av-shadow-lg: 0 18px 40px -12px rgba(20, 24, 38, .22);

  --av-success: #0f9f60;  --av-success-bg: #e7f7ef;
  --av-warning: #b86e00;  --av-warning-bg: #fff4e0;
  --av-danger:  #d92d20;  --av-danger-bg:  #fdecea;
  --av-info:    #1f74d6;  --av-info-bg:    #e8f2fe;
  --av-primary-bg: var(--av-brand-50);
  --av-neutral: #5d6478;  --av-neutral-bg: #eef0f5;

  --av-sidebar-bg: #0f1222;
  --av-sidebar-text: #aab0c6;
  --av-sidebar-text-strong: #ffffff;
  --av-sidebar-hover: rgba(255, 255, 255, .06);
  --av-sidebar-active: rgba(109, 74, 255, .22);
  --av-sidebar-section: #6c7391;

  --av-radius-sm: 8px;
  --av-radius: 12px;
  --av-radius-lg: 16px;
  --av-sidebar-w: 264px;
  --av-topbar-h: 64px;

  --bs-body-font-family: var(--av-font);
  --bs-body-bg: var(--av-bg);
  --bs-body-color: var(--av-text);
  --bs-border-color: var(--av-border);
  --bs-primary: var(--av-brand);
  --bs-primary-rgb: 109, 74, 255;
  --bs-link-color: var(--av-brand);
  --bs-link-hover-color: var(--av-brand-600);
  --bs-link-color-rgb: 109, 74, 255;
  --bs-secondary-color: var(--av-text-3);
  --bs-emphasis-color: var(--av-text);
  color-scheme: light;
}

[data-bs-theme="dark"] {
  --av-brand: #8b70ff;
  --av-brand-600: #a08aff;
  --av-brand-50: rgba(139, 112, 255, .14);
  --av-brand-100: rgba(139, 112, 255, .24);

  --av-bg: #0b0d17;
  --av-surface: #131627;
  --av-surface-2: #171a2e;
  --av-surface-hover: #1c2036;
  --av-border: #252a42;
  --av-border-strong: #33395a;
  --av-text: #eceefa;
  --av-text-2: #b7bcd3;
  --av-text-3: #8a90ab;
  --av-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --av-shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 8px 20px -8px rgba(0, 0, 0, .5);
  --av-shadow-lg: 0 18px 40px -12px rgba(0, 0, 0, .7);

  --av-success: #3ccf8e;  --av-success-bg: rgba(60, 207, 142, .12);
  --av-warning: #f6b54a;  --av-warning-bg: rgba(246, 181, 74, .12);
  --av-danger:  #ff6b61;  --av-danger-bg:  rgba(255, 107, 97, .12);
  --av-info:    #5ea8ff;  --av-info-bg:    rgba(94, 168, 255, .12);
  --av-neutral: #a3a9c2;  --av-neutral-bg: rgba(163, 169, 194, .12);

  --av-sidebar-bg: #090b14;

  --bs-body-bg: var(--av-bg);
  --bs-body-color: var(--av-text);
  --bs-border-color: var(--av-border);
  --bs-primary-rgb: 139, 112, 255;
  --bs-link-color: var(--av-brand);
  --bs-link-color-rgb: 139, 112, 255;
  --bs-secondary-color: var(--av-text-3);
  --bs-emphasis-color: var(--av-text);
  color-scheme: dark;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--av-font);
  font-size: 0.9375rem;
  line-height: 1.55;
  background: var(--av-bg);
  color: var(--av-text);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, h4, h5, h6 { color: var(--av-text); font-weight: 650; letter-spacing: -0.015em; }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-2 { color: var(--av-text-2) !important; }
.text-3 { color: var(--av-text-3) !important; }
.tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--av-font-mono); font-size: .85em; }
:focus-visible { outline: 2px solid var(--av-brand); outline-offset: 2px; }
::selection { background: var(--av-brand-100); }
.visually-hidden-focusable:focus { position: fixed; top: 8px; left: 8px; z-index: 2000; padding: 8px 12px; background: var(--av-surface); border-radius: var(--av-radius-sm); box-shadow: var(--av-shadow); }

/* ---------- App shell ---------- */
.av-shell { min-height: 100vh; }
.av-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--av-sidebar-w);
  background: var(--av-sidebar-bg); color: var(--av-sidebar-text);
  display: flex; flex-direction: column; z-index: 1040;
  transition: transform .22s ease;
}
.av-sidebar__brand { display: flex; align-items: center; gap: 10px; height: var(--av-topbar-h); padding: 0 20px; color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.av-sidebar__brand:hover { text-decoration: none; color: #fff; }
.av-logo { width: 32px; height: 32px; border-radius: 9px; background: var(--av-gradient); display: grid; place-items: center; color: #fff; font-size: .9rem; box-shadow: 0 6px 16px -6px rgba(179, 75, 255, .8); }
.av-sidebar__brand small { font-weight: 600; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--av-sidebar-section); margin-left: 2px; }
.av-sidebar__nav { flex: 1; overflow-y: auto; padding: 8px 12px 24px; scrollbar-width: thin; }
.av-nav-section { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--av-sidebar-section); padding: 18px 12px 6px; }
.av-nav-link {
  display: flex; align-items: center; gap: 11px; padding: 8px 12px; margin: 1px 0;
  color: var(--av-sidebar-text); border-radius: 9px; font-size: .9rem; font-weight: 500;
}
.av-nav-link i { width: 18px; text-align: center; font-size: .92rem; opacity: .85; }
.av-nav-link:hover { background: var(--av-sidebar-hover); color: var(--av-sidebar-text-strong); text-decoration: none; }
.av-nav-link.active { background: var(--av-sidebar-active); color: var(--av-sidebar-text-strong); }
.av-nav-link.active i { color: #b7a6ff; opacity: 1; }
.av-nav-link .av-nav-tag { margin-left: auto; font-size: .64rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--av-sidebar-section); }
.av-sidebar__footer { padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .78rem; color: var(--av-sidebar-section); }

.av-main { margin-left: var(--av-sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.av-topbar {
  position: sticky; top: 0; z-index: 1030; height: var(--av-topbar-h);
  display: flex; align-items: center; gap: 12px; padding: 0 28px;
  background: color-mix(in srgb, var(--av-bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--av-border);
}
.av-topbar__title { font-weight: 650; font-size: 1rem; margin: 0; }
.av-topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.av-content { padding: 28px; flex: 1; width: 100%; max-width: 1440px; }
.av-footer { padding: 20px 28px; font-size: .8rem; color: var(--av-text-3); }

.av-icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--av-border); background: var(--av-surface); color: var(--av-text-2);
}
.av-icon-btn:hover { background: var(--av-surface-hover); color: var(--av-text); }
.av-menu-toggle { display: none; }
.av-avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: .78rem; color: #fff; background: var(--av-gradient); flex: none; }
.av-avatar--lg { width: 52px; height: 52px; font-size: 1.05rem; }
.av-user-btn { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--av-border); background: var(--av-surface); color: var(--av-text); }
.av-user-btn:hover { background: var(--av-surface-hover); }
.av-user-btn .av-user-name { font-size: .85rem; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-backdrop { display: none; }

@media (max-width: 991.98px) {
  .av-sidebar { transform: translateX(-100%); box-shadow: var(--av-shadow-lg); }
  body.av-sidebar-open .av-sidebar { transform: none; }
  body.av-sidebar-open .av-backdrop { display: block; position: fixed; inset: 0; background: rgba(9, 11, 20, .55); z-index: 1035; }
  .av-main { margin-left: 0; }
  .av-menu-toggle { display: inline-grid; }
  .av-topbar { padding: 0 16px; }
  .av-content { padding: 20px 16px; }
  .av-user-btn .av-user-name { display: none; }
}

/* ---------- Page header ---------- */
.av-page-header { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.av-page-header h1 { font-size: 1.6rem; margin: 0; }
.av-page-header p { margin: 4px 0 0; color: var(--av-text-2); }
.av-page-header__actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.av-breadcrumb { font-size: .8rem; color: var(--av-text-3); margin-bottom: 6px; }
.av-breadcrumb a { color: var(--av-text-3); }

/* ---------- Cards ---------- */
.av-card { background: var(--av-surface); border: 1px solid var(--av-border); border-radius: var(--av-radius-lg); box-shadow: var(--av-shadow-sm); }
.av-card + .av-card { margin-top: 0; }
.av-card__header { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--av-border); }
.av-card__header h2, .av-card__header h3 { font-size: 1rem; margin: 0; }
.av-card__header p { margin: 2px 0 0; font-size: .82rem; color: var(--av-text-3); }
.av-card__header .av-card__actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.av-card__body { padding: 22px; }
.av-card__footer { padding: 14px 22px; border-top: 1px solid var(--av-border); background: var(--av-surface-2); border-radius: 0 0 var(--av-radius-lg) var(--av-radius-lg); font-size: .85rem; color: var(--av-text-3); }
.av-card--flush .av-card__body { padding: 0; }
.av-card--highlight { position: relative; overflow: hidden; }
.av-card--highlight::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--av-gradient); }

/* ---------- Stats ---------- */
.av-stat { background: var(--av-surface); border: 1px solid var(--av-border); border-radius: var(--av-radius-lg); padding: 18px 20px; height: 100%; box-shadow: var(--av-shadow-sm); }
.av-stat__label { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--av-text-3); }
.av-stat__icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: .82rem; background: var(--av-brand-50); color: var(--av-brand); }
.av-stat__value { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; margin-top: 10px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.av-stat__value--muted { color: var(--av-text-3); font-weight: 600; }
.av-stat__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: .8rem; color: var(--av-text-3); }
.av-delta { font-weight: 650; font-variant-numeric: tabular-nums; }
.av-delta--up { color: var(--av-success); }
.av-delta--down { color: var(--av-danger); }
.av-delta--flat { color: var(--av-text-3); }

/* ---------- Badges ---------- */
.av-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 650; line-height: 1.4; white-space: nowrap; border: 1px solid transparent; }
.av-badge i { font-size: .68rem; }
.av-badge--success { color: var(--av-success); background: var(--av-success-bg); }
.av-badge--warning { color: var(--av-warning); background: var(--av-warning-bg); }
.av-badge--danger  { color: var(--av-danger);  background: var(--av-danger-bg); }
.av-badge--info    { color: var(--av-info);    background: var(--av-info-bg); }
.av-badge--primary { color: var(--av-brand);   background: var(--av-primary-bg); }
.av-badge--neutral { color: var(--av-neutral); background: var(--av-neutral-bg); }
.av-badge--outline { background: transparent; border-color: var(--av-border-strong); color: var(--av-text-2); }
.av-badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.av-badge--demo { color: #8a5a00; background: repeating-linear-gradient(45deg, #fff3cd, #fff3cd 6px, #ffe9a8 6px, #ffe9a8 12px); }
[data-bs-theme="dark"] .av-badge--demo { color: #ffd479; background: repeating-linear-gradient(45deg, rgba(255, 212, 121, .12), rgba(255, 212, 121, .12) 6px, rgba(255, 212, 121, .2) 6px, rgba(255, 212, 121, .2) 12px); }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; font-size: .875rem; border-radius: 10px; padding: .55rem 1rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .35rem .7rem; font-size: .8rem; border-radius: 8px; }
.btn-lg { padding: .75rem 1.25rem; font-size: .95rem; }
.btn-primary { --bs-btn-bg: var(--av-brand); --bs-btn-border-color: var(--av-brand); --bs-btn-hover-bg: var(--av-brand-600); --bs-btn-hover-border-color: var(--av-brand-600); --bs-btn-active-bg: var(--av-brand-600); --bs-btn-active-border-color: var(--av-brand-600); --bs-btn-disabled-bg: var(--av-brand); --bs-btn-disabled-border-color: var(--av-brand); box-shadow: 0 1px 2px rgba(20, 24, 38, .1), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-gradient { color: #fff; background: var(--av-gradient); border: 0; box-shadow: 0 8px 18px -8px rgba(179, 75, 255, .7); }
.btn-gradient:hover { color: #fff; filter: brightness(1.06); }
.btn-secondary, .btn-light { --bs-btn-color: var(--av-text); --bs-btn-bg: var(--av-surface); --bs-btn-border-color: var(--av-border-strong); --bs-btn-hover-color: var(--av-text); --bs-btn-hover-bg: var(--av-surface-hover); --bs-btn-hover-border-color: var(--av-border-strong); --bs-btn-active-color: var(--av-text); --bs-btn-active-bg: var(--av-surface-hover); --bs-btn-active-border-color: var(--av-border-strong); box-shadow: var(--av-shadow-sm); }
.btn-ghost { color: var(--av-text-2); background: transparent; border: 1px solid transparent; }
.btn-ghost:hover { background: var(--av-surface-hover); color: var(--av-text); }
.btn-danger { --bs-btn-bg: var(--av-danger); --bs-btn-border-color: var(--av-danger); }
.btn-outline-danger { --bs-btn-color: var(--av-danger); --bs-btn-border-color: color-mix(in srgb, var(--av-danger) 40%, transparent); --bs-btn-hover-bg: var(--av-danger); --bs-btn-hover-border-color: var(--av-danger); }
.btn .av-spinner { display: none; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .av-spinner { display: inline-block; }
.btn.is-loading .btn-icon { display: none; }

/* ---------- Forms ---------- */
.form-label { font-size: .82rem; font-weight: 600; color: var(--av-text-2); margin-bottom: 6px; }
.form-control, .form-select {
  border-radius: 10px; border-color: var(--av-border-strong); background-color: var(--av-surface); color: var(--av-text);
  padding: .6rem .8rem; font-size: .9rem; box-shadow: var(--av-shadow-sm);
}
.form-select { padding-right: 2.25rem; }
.form-select-sm, .form-control-sm { padding-top: .4rem; padding-bottom: .4rem; font-size: .82rem; }
.form-select-sm { padding-right: 2rem; }
.form-control::placeholder { color: var(--av-text-3); }
.form-control:focus, .form-select:focus { border-color: var(--av-brand); box-shadow: 0 0 0 4px var(--av-brand-100); background-color: var(--av-surface); color: var(--av-text); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--av-danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 4px var(--av-danger-bg); }
.invalid-feedback { color: var(--av-danger); font-size: .8rem; font-weight: 500; }
.form-text { color: var(--av-text-3); font-size: .78rem; }
.form-check-input:checked { background-color: var(--av-brand); border-color: var(--av-brand); }
.form-check-input:focus { box-shadow: 0 0 0 4px var(--av-brand-100); border-color: var(--av-brand); }
.av-form-section + .av-form-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--av-border); }
.av-input-group { position: relative; }
.av-input-group > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--av-text-3); font-size: .85rem; }
.av-input-group > .form-control { padding-left: 36px; }

/* ---------- Tables ---------- */
.av-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.av-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .875rem; }
.av-table th { position: sticky; top: 0; background: var(--av-surface-2); color: var(--av-text-3); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--av-border); white-space: nowrap; }
.av-table td { padding: 13px 16px; border-bottom: 1px solid var(--av-border); vertical-align: middle; color: var(--av-text); }
.av-table tbody tr:last-child td { border-bottom: 0; }
.av-table tbody tr:hover td { background: var(--av-surface-hover); }
.av-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.av-table .nowrap { white-space: nowrap; }
.av-table a.av-row-link { color: var(--av-text); font-weight: 600; }
.av-table__sub { display: block; font-size: .78rem; color: var(--av-text-3); }

/* ---------- Progress ---------- */
.av-progress { height: 10px; border-radius: 999px; background: var(--av-neutral-bg); overflow: hidden; position: relative; }
.av-progress__bar { height: 100%; width: 0; border-radius: 999px; background: var(--av-gradient); transition: width .6s ease; }
.av-progress--sm { height: 6px; }
.av-progress__marker { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--av-text); opacity: .45; border-radius: 2px; }
.av-progress-legend { display: flex; justify-content: space-between; font-size: .78rem; color: var(--av-text-3); margin-top: 6px; }

/* ---------- Alerts ---------- */
.av-alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--av-radius); border: 1px solid transparent; font-size: .875rem; margin-bottom: 20px; }
.av-alert i { margin-top: 3px; }
.av-alert--success { background: var(--av-success-bg); color: var(--av-success); border-color: color-mix(in srgb, var(--av-success) 25%, transparent); }
.av-alert--danger { background: var(--av-danger-bg); color: var(--av-danger); border-color: color-mix(in srgb, var(--av-danger) 25%, transparent); }
.av-alert--warning { background: var(--av-warning-bg); color: var(--av-warning); border-color: color-mix(in srgb, var(--av-warning) 25%, transparent); }
.av-alert--info { background: var(--av-info-bg); color: var(--av-info); border-color: color-mix(in srgb, var(--av-info) 25%, transparent); }
.av-alert__body { flex: 1; color: var(--av-text); }
.av-alert__close { background: none; border: 0; color: inherit; opacity: .7; padding: 0 2px; }
.av-alert__close:hover { opacity: 1; }

/* ---------- Empty & loading states ---------- */
.av-empty { text-align: center; padding: 48px 24px; }
.av-empty__icon { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--av-brand-50); color: var(--av-brand); font-size: 1.3rem; }
.av-empty h3 { font-size: 1.05rem; margin-bottom: 6px; }
.av-empty p { color: var(--av-text-2); max-width: 460px; margin: 0 auto; font-size: .9rem; }
.av-empty .btn { margin-top: 18px; }
.av-empty--compact { padding: 28px 16px; }
.av-skeleton { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--av-neutral-bg) 0%, var(--av-surface-hover) 50%, var(--av-neutral-bg) 100%); background-size: 200% 100%; animation: av-shimmer 1.3s infinite linear; min-height: 12px; }
@keyframes av-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.av-spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: av-spin .7s linear infinite; }
@keyframes av-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .av-skeleton, .av-spinner { animation: none; } .av-progress__bar { transition: none; } }

/* ---------- Charts ---------- */
.av-chart { position: relative; height: 280px; }
.av-chart--sm { height: 200px; }
.av-chart canvas { width: 100% !important; height: 100% !important; }

/* ---------- Activity timeline ---------- */
.av-timeline { list-style: none; margin: 0; padding: 0; }
.av-timeline li { position: relative; display: flex; gap: 14px; padding: 0 0 18px; }
.av-timeline li:last-child { padding-bottom: 0; }
.av-timeline li::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--av-border); }
.av-timeline li:last-child::before { display: none; }
.av-timeline__icon { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: .78rem; background: var(--av-neutral-bg); color: var(--av-neutral); }
.av-timeline__icon--primary { background: var(--av-primary-bg); color: var(--av-brand); }
.av-timeline__icon--success { background: var(--av-success-bg); color: var(--av-success); }
.av-timeline__icon--warning { background: var(--av-warning-bg); color: var(--av-warning); }
.av-timeline__body { flex: 1; min-width: 0; }
.av-timeline__title { font-size: .875rem; color: var(--av-text); }
.av-timeline__meta { font-size: .76rem; color: var(--av-text-3); margin-top: 2px; }

/* ---------- Key/value lists ---------- */
.av-kv { display: grid; grid-template-columns: minmax(140px, 40%) 1fr; gap: 10px 16px; margin: 0; font-size: .875rem; }
.av-kv dt { color: var(--av-text-3); font-weight: 500; }
.av-kv dd { margin: 0; color: var(--av-text); font-variant-numeric: tabular-nums; }

/* Growth metric grid: one tile per growth concept */
.av-metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); background: var(--av-surface); border-radius: var(--av-radius); overflow: hidden; border: 1px solid var(--av-border); }
.av-metric { background: var(--av-surface); padding: 14px 16px; box-shadow: 1px 0 0 var(--av-border), 0 1px 0 var(--av-border); }
.av-metric__label { font-size: .74rem; font-weight: 600; color: var(--av-text-3); display: flex; align-items: center; gap: 6px; }
.av-metric__value { font-size: 1.2rem; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.av-metric__note { font-size: .72rem; color: var(--av-text-3); margin-top: 2px; }

/* ---------- Tabs / segmented filters ---------- */
.av-segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--av-neutral-bg); }
.av-segmented a { padding: 6px 12px; border-radius: 9px; font-size: .82rem; font-weight: 600; color: var(--av-text-2); }
.av-segmented a:hover { color: var(--av-text); text-decoration: none; }
.av-segmented a.active { background: var(--av-surface); color: var(--av-text); box-shadow: var(--av-shadow-sm); }

/* ---------- Modals & dropdowns ---------- */
.modal-content { background: var(--av-surface); border: 1px solid var(--av-border); border-radius: var(--av-radius-lg); box-shadow: var(--av-shadow-lg); }
.modal-header, .modal-footer { border-color: var(--av-border); padding: 16px 22px; }
.modal-body { padding: 22px; }
.modal-title { font-size: 1.05rem; font-weight: 650; }
.dropdown-menu { background: var(--av-surface); border: 1px solid var(--av-border); border-radius: var(--av-radius); box-shadow: var(--av-shadow-lg); padding: 6px; font-size: .875rem; }
.dropdown-item { border-radius: 8px; padding: 8px 10px; color: var(--av-text); display: flex; gap: 10px; align-items: center; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--av-surface-hover); color: var(--av-text); }
.dropdown-item i { width: 16px; color: var(--av-text-3); }
.dropdown-header { color: var(--av-text-3); font-size: .78rem; }
.dropdown-divider { border-color: var(--av-border); }

/* ---------- Pagination ---------- */
.av-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--av-text-3); }
.av-pagination .btn { min-width: 36px; }

/* ---------- Auth pages ---------- */
.av-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.av-auth__panel { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.av-auth__card { width: 100%; max-width: 420px; }
.av-auth__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--av-text); margin-bottom: 32px; }
.av-auth__brand:hover { text-decoration: none; color: var(--av-text); }
.av-auth h1 { font-size: 1.65rem; margin-bottom: 6px; }
.av-auth__lead { color: var(--av-text-2); margin-bottom: 28px; }
.av-auth__aside {
  position: relative; overflow: hidden; color: #fff; padding: 56px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(1200px 600px at 110% -10%, rgba(255, 77, 141, .55), transparent 60%),
              radial-gradient(900px 500px at -20% 110%, rgba(109, 74, 255, .7), transparent 60%),
              #0f1222;
}
.av-auth__aside h2 { color: #fff; font-size: 2rem; line-height: 1.2; max-width: 460px; }
.av-auth__aside p { color: rgba(255, 255, 255, .72); max-width: 440px; }
.av-auth__points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.av-auth__points li { display: flex; gap: 10px; align-items: center; color: rgba(255, 255, 255, .86); font-size: .92rem; }
.av-auth__points i { color: #c8b8ff; }
.av-auth--admin .av-auth__aside { background: radial-gradient(900px 500px at 110% -10%, rgba(109, 74, 255, .45), transparent 60%), #090b14; }
@media (max-width: 991.98px) {
  .av-auth { grid-template-columns: 1fr; }
  .av-auth__aside { display: none; }
}

/* ---------- Error pages ---------- */
.av-error { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.av-error__code { font-size: 4.5rem; font-weight: 800; letter-spacing: -0.05em; background: var(--av-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* ---------- Misc ---------- */
.av-divider { height: 1px; background: var(--av-border); margin: 20px 0; }
.av-platform { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.av-platform__icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: .85rem; flex: none; }
.av-platform__icon--instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.av-platform__icon--tiktok { background: #111; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.av-banner-demo { display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-radius: var(--av-radius); margin-bottom: 20px; font-size: .85rem; border: 1px dashed #d4a72c; color: var(--av-text); background: var(--av-warning-bg); }
.av-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .78rem; color: var(--av-text-3); }
.av-help { color: var(--av-text-3); cursor: help; }
.av-note { background: var(--av-surface-2); border: 1px solid var(--av-border); border-radius: var(--av-radius); padding: 12px 14px; font-size: .86rem; }
.av-note + .av-note { margin-top: 10px; }
.av-note__meta { font-size: .75rem; color: var(--av-text-3); margin-top: 6px; }
.av-pace-message { font-size: .92rem; font-weight: 600; }
.av-section-title { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--av-text-3); margin: 0 0 12px; }
.av-matrix td.av-matrix__cell { text-align: center; }
.av-matrix .fa-check { color: var(--av-success); }
.av-matrix .fa-minus { color: var(--av-border-strong); }

/* Compact stacked list (used for audit history in narrow columns) */
.av-list { list-style: none; margin: 0; padding: 0; }
.av-list li { padding: 12px 22px; border-bottom: 1px solid var(--av-border); font-size: .84rem; }
.av-list li:last-child { border-bottom: 0; }
.av-list__meta { font-size: .75rem; color: var(--av-text-3); margin-top: 2px; word-break: break-word; }

/* ---------- Store & checkout (Phase 2) ---------- */
.av-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; padding: 0; list-style: none; }
.av-steps li { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--av-text-3); }
.av-steps li + li::before { content: ""; width: 24px; height: 1px; background: var(--av-border-strong); margin-right: 4px; }
.av-steps__dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; background: var(--av-neutral-bg); color: var(--av-text-3); }
.av-steps li.is-done .av-steps__dot { background: var(--av-success-bg); color: var(--av-success); }
.av-steps li.is-current { color: var(--av-text); }
.av-steps li.is-current .av-steps__dot { background: var(--av-brand); color: #fff; }

.av-service-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.av-service-head h2 { font-size: 1.25rem; margin: 0; }
.av-service-head p { margin: 2px 0 0; color: var(--av-text-2); font-size: .9rem; }

.av-plan { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--av-surface); border: 1px solid var(--av-border); border-radius: var(--av-radius-lg); padding: 22px; box-shadow: var(--av-shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s; }
.av-plan:hover { border-color: var(--av-brand-100); box-shadow: var(--av-shadow); transform: translateY(-2px); }
.av-plan--featured { border-color: var(--av-brand); box-shadow: 0 0 0 3px var(--av-brand-50), var(--av-shadow); }
.av-plan__ribbon { position: absolute; top: -11px; left: 22px; background: var(--av-gradient); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.av-plan__name { font-size: .85rem; font-weight: 700; color: var(--av-text-2); text-transform: uppercase; letter-spacing: .05em; }
.av-plan__target { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 2px; line-height: 1.1; }
.av-plan__target small { font-size: .9rem; font-weight: 600; color: var(--av-text-3); letter-spacing: 0; }
.av-plan__price { font-size: 1.35rem; font-weight: 700; margin-top: 14px; font-variant-numeric: tabular-nums; }
.av-plan__price small { font-size: .82rem; color: var(--av-text-3); font-weight: 500; }
.av-plan__meta { font-size: .82rem; color: var(--av-text-3); margin-top: 2px; }
.av-plan .btn { margin-top: auto; }
.av-plan__spacer { flex: 1; min-height: 16px; }

.av-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .88rem; color: var(--av-text-2); }
.av-checklist li { display: flex; gap: 10px; align-items: flex-start; }
.av-checklist i { color: var(--av-success); margin-top: 4px; font-size: .8rem; }

.av-option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.av-option { position: relative; }
.av-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.av-option span { display: block; padding: 12px 14px; border: 1px solid var(--av-border-strong); border-radius: 12px; background: var(--av-surface); font-size: .85rem; font-weight: 600; text-align: center; transition: all .15s; }
.av-option span small { display: block; font-weight: 500; color: var(--av-text-3); font-size: .75rem; margin-top: 2px; }
.av-option input:checked + span { border-color: var(--av-brand); box-shadow: 0 0 0 3px var(--av-brand-100); color: var(--av-brand); }
.av-option input:focus-visible + span { outline: 2px solid var(--av-brand); outline-offset: 2px; }
.av-option a { display: block; text-decoration: none; color: inherit; }
.av-option a:hover span { border-color: var(--av-brand-100); }
.av-option--active span { border-color: var(--av-brand); box-shadow: 0 0 0 3px var(--av-brand-100); color: var(--av-brand); }

.av-summary { position: sticky; top: calc(var(--av-topbar-h) + 20px); }
.av-summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .9rem; color: var(--av-text-2); font-variant-numeric: tabular-nums; }
.av-summary__row strong { color: var(--av-text); font-weight: 600; }
.av-summary__row--discount strong { color: var(--av-success); }
.av-summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--av-border); }
.av-summary__total span { font-weight: 600; }
.av-summary__total strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.av-summary__product { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--av-border); }
.av-trust { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .78rem; color: var(--av-text-3); margin-top: 12px; }
.av-coupon { display: flex; gap: 8px; }
.av-coupon .form-control { text-transform: uppercase; }

.av-result { text-align: center; max-width: 560px; margin: 24px auto; }
.av-result__icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; font-size: 1.8rem; }
.av-result__icon--success { background: var(--av-success-bg); color: var(--av-success); }
.av-result__icon--pending { background: var(--av-info-bg); color: var(--av-info); }
.av-result__icon--neutral { background: var(--av-neutral-bg); color: var(--av-neutral); }
.av-result h1 { font-size: 1.6rem; }
.av-result p { color: var(--av-text-2); }

.av-receipt { font-variant-numeric: tabular-nums; }
.av-receipt__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.av-receipt__number { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.av-receipt__line { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--av-border); }
.av-receipt__line:last-child { border-bottom: 0; }
.av-platform__icon--lg { width: 44px; height: 44px; border-radius: 12px; font-size: 1.2rem; }
.av-totals { max-width: 340px; }

/* ---- Social connections (Phase 3) ------------------------------------- */
.av-capabilities { list-style: none; padding: 0; margin: 0 0 .75rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .35rem .75rem; }
.av-capabilities li { display: flex; align-items: center; gap: .45rem; font-size: .875rem; }
.av-capabilities li .text-3 { margin-left: auto; }
.av-capabilities li.is-available i { color: var(--av-success); }
.av-capabilities li.is-unavailable { color: var(--av-text-2); }
.av-capabilities li.is-unavailable i { color: var(--av-text-3); }

/* ---- Analytics (Phase 4) ---------------------------------------------- */
.av-post-cell { max-width: 420px; white-space: normal; }

/* ---- Notifications & support (Phase 5) -------------------------------- */
.av-bell { position: relative; }
.av-bell__count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--av-danger, #dc2626); color: #fff; font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center; }
.av-notification { display: flex; gap: .85rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--av-border); }
.av-notification:last-child { border-bottom: 0; }
.av-notification.is-unread { background: var(--av-primary-bg); }
.av-notification__icon { flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--av-neutral-bg); color: var(--av-text-2); }
.av-notification__body { flex: 1; min-width: 0; }
.av-notification__title { font-weight: 600; }
.av-notification__text { color: var(--av-text-2); font-size: .9rem; white-space: pre-line; }
.av-notification__meta { color: var(--av-text-3); font-size: .78rem; margin-top: .25rem; }
.av-message { border: 1px solid var(--av-border); border-radius: 12px; padding: 1rem 1.15rem; margin-bottom: .85rem; background: var(--av-surface); }
.av-message--staff { border-color: var(--av-brand); }
.av-message--internal { background: var(--av-warning-bg); border-style: dashed; }
.av-message__meta { font-size: .8rem; color: var(--av-text-3); margin-bottom: .4rem; }
.av-message__body { white-space: pre-wrap; overflow-wrap: anywhere; }
.av-help h2 { font-size: 1.05rem; margin-top: 1.5rem; }
.av-help details { border-bottom: 1px solid var(--av-border); padding: .75rem 0; }
.av-help summary { cursor: pointer; font-weight: 600; }
.av-help details p { margin: .5rem 0 0; color: var(--av-text-2); }

/* ---- Manual payment methods (store modal + /app/pay) ---------------------- */
.av-pay-alt { margin-top: 12px; text-align: center; font-size: .85rem; color: var(--av-text-3); }
.av-pay-alt a { font-weight: 600; }
.av-pay-due { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 16px; margin-bottom: 16px; border: 1px solid var(--av-border); border-radius: var(--av-radius); }
.av-pay-due strong { font-size: 1.25rem; }
.av-pay-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.av-pay-tabs .nav-link { white-space: nowrap; }
.av-pay-panes { padding: 16px 0; }
.av-pay-subtabs { flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.av-pay-subtabs .nav-link { padding: 4px 12px; font-size: .85rem; }
.av-pay-coins { display: grid; gap: 16px; margin-bottom: 12px; }
.av-pay-coin { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.av-pay-coin img { flex: 0 0 auto; width: 150px; height: 150px; border-radius: 8px; background: #fff; padding: 6px; border: 1px solid var(--av-border); }
.av-pay-coin__body { flex: 1 1 auto; min-width: 0; }
.av-pay-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--av-border); }
.av-pay-row__text { display: flex; flex-direction: column; min-width: 0; }
.av-pay-row__label { font-size: .75rem; color: var(--av-text-3); }
.av-pay-row__value { overflow-wrap: anywhere; font-size: .9rem; }
.av-copy { flex: 0 0 auto; display: inline-flex; gap: 6px; align-items: center; }
.av-copy.is-copied { color: var(--av-success, #1a7f37); }
.av-pay-steps { margin: 12px 0; padding-left: 1.25rem; }
.av-pay-steps li { margin-bottom: 4px; }
.av-pay-amber { padding: 12px 16px; border-radius: var(--av-radius); background: var(--av-warning-bg); color: var(--av-text); border: 1px solid color-mix(in srgb, var(--av-warning) 35%, transparent); }
.av-pay-amber .fw-semibold { color: var(--av-warning); margin-bottom: 4px; }
.av-pay-amber ol { padding-left: 1.25rem; }
.av-pay-confirm { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--av-border); }
.av-visually-hidden-input { position: fixed; top: -1000px; left: -1000px; opacity: 0; }
@media (max-width: 575.98px) {
  .av-pay-coin { flex-direction: column; }
  .av-pay-coin img { width: 130px; height: 130px; }
}
.av-pay-ref-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-report-brand__logo { max-height: 56px; max-width: 220px; }

/* ---- Workspaces (Phase 7) ------------------------------------------------- */
.av-ws-switch { padding: 0 16px 8px; }
.av-ws-switch__label { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--av-sidebar-section); margin-bottom: 4px; }
.av-ws-switch__row { display: flex; gap: 6px; }
.av-ws-switch__row .form-select { min-width: 0; }
.av-ws-banner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 14px; margin-bottom: 16px; border-radius: var(--av-radius); border: 1px solid var(--av-border); background: var(--av-surface-2); font-size: .9rem; }
.av-card--active { border-color: var(--av-primary, #6d28d9); }

/* ---------- Public site (home, legal) ---------- */
.av-site { background: var(--av-surface); }
.av-site section[id] { scroll-margin-top: 84px; }
.av-text-gradient { background: var(--av-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.av-site-header { position: sticky; top: 0; z-index: 1030; background: color-mix(in srgb, var(--av-surface) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.av-site-header.is-scrolled { border-bottom-color: var(--av-border); box-shadow: var(--av-shadow-sm); }
.av-site-header__inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.av-site-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: var(--av-text); text-decoration: none; }
.av-site-brand:hover { color: var(--av-text); }
.av-site-nav { display: flex; gap: 1.75rem; margin-left: 1rem; }
.av-site-nav a { color: var(--av-text-2); font-weight: 500; text-decoration: none; }
.av-site-nav a:hover { color: var(--av-brand); }
.av-site-header__actions { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.av-site-login { color: var(--av-text); font-weight: 600; text-decoration: none; }
.av-site-menu-btn { display: none; }
@media (max-width: 991.98px) {
  .av-site-menu-btn { display: inline-grid; }
  .av-site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: .5rem 1rem 1rem; background: var(--av-surface); border-bottom: 1px solid var(--av-border); box-shadow: var(--av-shadow); }
  .av-site-nav.is-open { display: flex; }
  .av-site-nav a { padding: .75rem .25rem; border-bottom: 1px solid var(--av-border); }
  .av-site-login { display: none; }
}

.av-hero { padding: 4.5rem 0 5rem; background: radial-gradient(1000px 420px at 85% -10%, var(--av-brand-100), transparent 70%), radial-gradient(700px 360px at -10% 20%, rgba(255, 77, 141, .10), transparent 70%); }
.av-hero__eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px; background: var(--av-brand-50); color: var(--av-brand); font-weight: 600; font-size: .85rem; }
.av-hero__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 1.1rem 0 1rem; }
.av-hero__lead { font-size: 1.12rem; color: var(--av-text-2); max-width: 36rem; }
.av-hero__platforms { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 1.5rem; }
.av-platform-cta { display: inline-flex; align-items: center; gap: .8rem; padding: .85rem 1.4rem; border-radius: var(--av-radius); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; box-shadow: var(--av-shadow-lg); transition: transform .15s; }
.av-platform-cta:hover { color: #fff; transform: translateY(-2px); }
.av-platform-cta i { font-size: 1.6rem; }
.av-platform-cta small { display: block; font-weight: 500; font-size: .72rem; opacity: .85; line-height: 1; }
.av-platform-cta--instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); }
.av-platform-cta--tiktok { background: #111; }
[data-bs-theme="dark"] .av-platform-cta--tiktok { background: #000; outline: 1px solid var(--av-border-strong); }
.av-hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--av-text-2); font-size: .92rem; }
.av-hero__trust i { color: var(--av-success); margin-right: .35rem; }

.av-hero-card { background: var(--av-surface); border: 1px solid var(--av-border); border-radius: 20px; padding: 1.5rem; box-shadow: var(--av-shadow-lg); }
.av-hero-card__head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.25rem; }
.av-hero-card__head small { display: block; color: var(--av-text-3); }
.av-hero-card__head .av-badge { margin-left: auto; }
.av-hero-card__avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.3rem; background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); }
.av-hero-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.25rem; }
.av-hero-card__stats div { background: var(--av-surface-2); border: 1px solid var(--av-border); border-radius: var(--av-radius); padding: .75rem; }
.av-hero-card__stats small { display: block; color: var(--av-text-3); font-size: .75rem; }
.av-hero-card__stats strong { font-size: 1.25rem; }
.av-hero-bar { height: 10px; border-radius: 999px; background: var(--av-neutral-bg); margin-top: .4rem; overflow: hidden; }
.av-hero-bar__fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--av-gradient); transition: width .8s ease; }
.av-hero-card__chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin: 1.5rem 0 1rem; }
.av-hero-col { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--av-brand), var(--av-brand-100)); }
.av-hero-col--18 { height: 18%; } .av-hero-col--26 { height: 26%; } .av-hero-col--31 { height: 31%; } .av-hero-col--38 { height: 38%; }
.av-hero-col--44 { height: 44%; } .av-hero-col--52 { height: 52%; } .av-hero-col--58 { height: 58%; } .av-hero-col--63 { height: 63%; }
.av-hero-col--71 { height: 71%; } .av-hero-col--76 { height: 76%; } .av-hero-col--84 { height: 84%; } .av-hero-col--92 { height: 92%; }
.av-hero-card__note { margin: 0; font-size: .78rem; color: var(--av-text-3); }

.av-section { padding: 5rem 0; }
.av-section--tinted { background: var(--av-bg); }
.av-section__head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.av-section__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
.av-section__head p { color: var(--av-text-2); font-size: 1.05rem; margin: 0; }
.av-section__kicker { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--av-brand); margin-bottom: .6rem; }

.av-step, .av-feature { height: 100%; background: var(--av-surface); border: 1px solid var(--av-border); border-radius: var(--av-radius-lg); padding: 1.75rem; position: relative; transition: transform .15s, box-shadow .15s; }
.av-step:hover, .av-feature:hover { transform: translateY(-3px); box-shadow: var(--av-shadow-lg); }
.av-step__num { position: absolute; top: 1.25rem; right: 1.5rem; font-size: 2.5rem; font-weight: 800; color: var(--av-brand-100); line-height: 1; }
.av-step__icon, .av-feature__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: var(--av-gradient); margin-bottom: 1.1rem; }
.av-step h3, .av-feature h3 { font-size: 1.15rem; font-weight: 700; }
.av-step p, .av-feature p { color: var(--av-text-2); margin: 0; }

.av-pricing-tabs { justify-content: center; gap: .5rem; margin-bottom: 2.5rem; }
.av-pricing-tabs .nav-link { border-radius: 999px; padding: .6rem 1.4rem; font-weight: 600; color: var(--av-text-2); background: var(--av-surface); border: 1px solid var(--av-border); }
.av-pricing-tabs .nav-link.active { color: #fff; background: var(--av-gradient); border-color: transparent; }
.av-pricing-service { margin-bottom: 3rem; }
.av-pricing-service > h3 { font-size: 1.3rem; font-weight: 700; text-align: center; }
.av-pricing-service__desc { text-align: center; color: var(--av-text-2); max-width: 40rem; margin: 0 auto 1.5rem; }
.av-plan { height: 100%; display: flex; flex-direction: column; background: var(--av-surface); border: 1px solid var(--av-border); border-radius: 20px; padding: 2rem 1.75rem; position: relative; transition: transform .15s, box-shadow .15s; }
.av-plan:hover { transform: translateY(-4px); box-shadow: var(--av-shadow-lg); }
.av-plan--featured { border: 2px solid var(--av-brand); box-shadow: var(--av-shadow-lg); }
.av-plan__ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--av-gradient); color: #fff; font-size: .75rem; font-weight: 700; padding: .3rem .9rem; border-radius: 999px; white-space: nowrap; }
.av-plan h4 { font-size: 1.05rem; font-weight: 700; color: var(--av-text-2); }
.av-plan__target { font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.av-plan__target span { font-size: 1rem; font-weight: 600; color: var(--av-text-3); }
.av-plan__price { font-size: 1.6rem; font-weight: 700; color: var(--av-brand); margin: .5rem 0 1.25rem; }
.av-plan__price small { font-size: .85rem; color: var(--av-text-3); font-weight: 500; }
.av-plan__features { list-style: none; padding: 0; margin: 0 0 1.75rem; flex: 1; }
.av-plan__features li { padding: .35rem 0; color: var(--av-text-2); }
.av-plan__features i { color: var(--av-success); width: 1.4rem; }
.av-pricing-note { text-align: center; color: var(--av-text-3); font-size: .88rem; margin: 0; }
.av-pricing-empty { text-align: center; padding: 2.5rem; border: 1px dashed var(--av-border-strong); border-radius: var(--av-radius-lg); color: var(--av-text-2); background: var(--av-surface); }

.av-faq-wrap { max-width: 52rem; }
.av-faq__item { background: var(--av-surface); border: 1px solid var(--av-border); border-radius: var(--av-radius); margin-bottom: .75rem; }
.av-faq__item summary { list-style: none; cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.av-faq__item summary::-webkit-details-marker { display: none; }
.av-faq__item summary i { color: var(--av-brand); transition: transform .2s; }
.av-faq__item[open] summary i { transform: rotate(45deg); }
.av-faq__item p { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--av-text-2); }

.av-cta { text-align: center; color: #fff; background: var(--av-gradient); border-radius: 24px; padding: 3.5rem 1.5rem; box-shadow: var(--av-shadow-lg); }
.av-cta h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
.av-cta p { opacity: .9; font-size: 1.1rem; margin-bottom: 1.75rem; }
.av-cta .btn-light { font-weight: 700; color: var(--av-brand-600); }
.av-cta__link { display: block; margin-top: 1rem; color: #fff; opacity: .9; }
.av-cta__link:hover { color: #fff; opacity: 1; }

.av-legal .container { max-width: 50rem; }
.av-legal h1 { font-weight: 800; }
.av-legal h2 { font-size: 1.25rem; font-weight: 700; margin-top: 2rem; }
.av-legal p, .av-legal li { color: var(--av-text-2); }
.av-legal__updated { color: var(--av-text-3); }

.av-site-footer { background: var(--av-sidebar-bg); color: var(--av-sidebar-text); padding: 4rem 0 2rem; }
.av-site-footer .av-site-brand { color: #fff; }
.av-site-footer__blurb { margin-top: 1rem; max-width: 22rem; }
.av-site-footer h3 { color: #fff; font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.av-site-footer a:not(.av-site-brand) { display: block; color: var(--av-sidebar-text); text-decoration: none; padding: .25rem 0; }
.av-site-footer a:not(.av-site-brand):hover { color: #fff; }
.av-site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; color: var(--av-sidebar-section); }
.av-site-header__actions .btn { white-space: nowrap; }
@media (max-width: 575.98px) {
  .av-site-header__inner { gap: .75rem; }
  .av-site-header__actions { gap: .4rem; }
  .av-site-header__actions .btn { padding: .4rem .75rem; font-size: .9rem; }
  .av-site-brand { font-size: 1.05rem; }
}
