@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #f0f1f6;
    --text: #161824;
    --muted: #707386;
    --border: #e2e4ec;
    --primary: #6f57f6;
    --primary-dark: #5941de;
    --primary-soft: #eeeaff;
    --chart-blue: #3e97ff;
    --chart-green: #19b77a;
    --warning: #eb8b31;
    --danger: #d54848;
    --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 10px 28px rgba(27, 31, 59, .055);
    --radius: 16px;
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #101116;
    --surface: #171920;
    --surface-2: #20232d;
    --text: #f3f4f8;
    --muted: #999dac;
    --border: #2c303b;
    --primary: #8d7aff;
    --primary-dark: #a193ff;
    --primary-soft: #292445;
    --shadow: 0 12px 35px rgba(0, 0, 0, .24);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; font: inherit; }
button, select { cursor: pointer; }
img { max-width: 100%; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.brand {
    align-items: center;
    display: inline-flex;
    font: 800 21px/1 "Manrope", sans-serif;
    gap: 10px;
    letter-spacing: -.8px;
}
.brand-dot { color: var(--primary); }
.brand-mark { display: inline-flex; height: 26px; gap: 3px; align-items: flex-end; width: 28px; }
.brand-mark i { background: var(--primary); border-radius: 4px; display: block; width: 6px; }
.brand-mark i:nth-child(1) { height: 10px; opacity: .55; }
.brand-mark i:nth-child(2) { height: 18px; opacity: .78; }
.brand-mark i:nth-child(3) { height: 26px; }
.brand-mark--small { height: 20px; width: 22px; }
.brand-mark--small i { width: 5px; }
.brand-mark--small i:nth-child(1) { height: 8px; }
.brand-mark--small i:nth-child(2) { height: 14px; }
.brand-mark--small i:nth-child(3) { height: 20px; }
.button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 10px;
    display: inline-flex;
    font-weight: 600;
    gap: 8px;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    transition: transform .18s, background .18s, border-color .18s;
}
.button:hover { transform: translateY(-1px); }
.button--large { min-height: 50px; padding-inline: 21px; }
.button--block { display: flex; width: 100%; }
.button--primary { background: var(--primary); color: #fff; box-shadow: 0 9px 22px rgba(111, 87, 246, .22); }
.button--primary:hover { background: var(--primary-dark); }
.button--dark { background: var(--text); color: var(--surface); }
.button--soft { background: var(--surface-2); border-color: var(--border); }
.button--soft:hover, .button--ghost:hover { background: var(--surface-2); }
.button--ghost { background: transparent; border-color: transparent; }
.eyebrow { color: var(--primary); display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.status-dot { background: #19b77a; border-radius: 50%; box-shadow: 0 0 0 4px rgba(25, 183, 122, .12); display: inline-block; height: 7px; width: 7px; }
.pill { align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; display: inline-flex; font-size: 12px; font-weight: 600; gap: 10px; padding: 7px 12px; }

/* Marketing */
.marketing-page { background: #f8f8fb; color: #151621; }
.marketing-nav { align-items: center; display: flex; height: 82px; justify-content: space-between; }
.marketing-nav nav { display: flex; gap: 30px; }
.marketing-nav nav a { color: #646676; font-weight: 500; }
.marketing-actions { display: flex; gap: 5px; }
.hero { align-items: center; display: grid; gap: 62px; grid-template-columns: .88fr 1.12fr; min-height: 660px; padding-block: 55px 80px; }
.hero-copy h1 { font: 800 clamp(45px, 5.2vw, 72px)/1.03 "Manrope", sans-serif; letter-spacing: -3.6px; margin: 24px 0 22px; max-width: 650px; }
.hero-copy > p { color: #696b7a; font-size: 18px; line-height: 1.65; margin: 0; max-width: 570px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.trust-row { align-items: center; color: #777988; display: flex; flex-wrap: wrap; font-size: 12px; gap: 11px; margin-top: 28px; }
.trust-row i { background: #c9cad2; border-radius: 50%; height: 3px; width: 3px; }
.hero-visual { min-width: 0; padding: 30px 0 20px 20px; position: relative; }
.preview-window { background: #fff; border: 1px solid #e4e5eb; border-radius: 18px; box-shadow: 0 30px 70px rgba(34, 36, 58, .15); overflow: hidden; transform: perspective(1500px) rotateY(-4deg) rotateX(1deg); }
.preview-head { align-items: center; background: #191a22; display: flex; gap: 6px; height: 45px; padding: 0 15px; }
.preview-head > span { background: #454750; border-radius: 50%; height: 6px; width: 6px; }
.preview-brand { margin-right: auto; transform: scale(.75); }
.preview-content { padding: 25px; }
.preview-title { align-items: flex-end; display: flex; justify-content: space-between; }
.preview-title small, .preview-title strong { display: block; }
.preview-title small { color: #898b98; font-size: 10px; }
.preview-title strong { font: 700 20px "Manrope"; margin-top: 2px; }
.preview-tag { background: #f2f0ff; border-radius: 7px; color: #6954e8; font-size: 9px; font-weight: 700; padding: 7px 9px; }
.preview-kpis { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin: 22px 0 16px; }
.preview-kpis div { background: #f7f7fa; border: 1px solid #ececf1; border-radius: 10px; padding: 12px; }
.preview-kpis small, .preview-kpis strong, .preview-kpis em { display: block; }
.preview-kpis small { color: #858795; font-size: 9px; }
.preview-kpis strong { font: 700 17px "Manrope"; margin: 7px 0 2px; }
.preview-kpis em { color: #18a86f; font-size: 8px; font-style: normal; }
.preview-chart { border: 1px solid #ececf1; border-radius: 10px; padding: 13px; }
.preview-chart > span { font-size: 10px; font-weight: 700; }
.preview-chart svg { display: block; height: 180px; margin-top: 5px; width: 100%; }
.preview-chart .area { fill: url(#area); }
.preview-chart .line { fill: none; stroke: #715aff; stroke-width: 3; }
.floating-card { backdrop-filter: blur(12px); background: rgba(255,255,255,.92); border: 1px solid #e7e7ed; border-radius: 10px; box-shadow: 0 15px 35px rgba(35, 37, 57, .14); display: flex; flex-direction: column; font-size: 9px; padding: 11px 14px; position: absolute; }
.floating-card strong { font-size: 13px; margin-top: 3px; }
.floating-card--left { bottom: 5px; left: -5px; }
.floating-card--right { right: -20px; top: 115px; }
.signal-strip { background: #171820; color: #fff; }
.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.signal-grid > div { align-items: center; border-right: 1px solid #343640; display: flex; gap: 18px; min-height: 115px; padding: 20px 32px; }
.signal-grid > div:first-child { border-left: 1px solid #343640; }
.signal-grid strong { color: #8b78ff; font: 800 24px "Manrope"; }
.signal-grid span { color: #aaaeba; }
.signal-grid b { color: white; display: block; }
.feature-section { padding-block: 120px; }
.section-heading { max-width: 650px; }
.section-heading h1, .section-heading h2 { font: 800 clamp(36px, 4vw, 52px)/1.08 "Manrope"; letter-spacing: -2.2px; margin: 12px 0 14px; }
.section-heading > p { color: #727483; font-size: 16px; margin: 0; }
.section-heading--center { margin-inline: auto; text-align: center; }
.feature-grid { display: grid; gap: 18px; grid-template-columns: 1.4fr 1fr 1fr; margin-top: 55px; }
.feature-card { background: #fff; border: 1px solid #e7e7ed; border-radius: 17px; min-height: 310px; overflow: hidden; padding: 28px; position: relative; }
.feature-card h3 { font: 700 21px "Manrope"; margin: 18px 0 8px; }
.feature-card p { color: #747685; margin: 0; max-width: 350px; }
.feature-icon { align-items: center; background: #eeeaff; border-radius: 10px; color: #6f57f6; display: flex; font-size: 20px; height: 42px; justify-content: center; width: 42px; }
.mini-bars { align-items: flex-end; bottom: 0; display: flex; gap: 9px; height: 120px; left: 28px; position: absolute; right: 28px; }
.mini-bars i { background: linear-gradient(#8d7aff, #d5ceff); border-radius: 5px 5px 0 0; flex: 1; }
.mini-bars i:nth-child(1) { height: 35%; }.mini-bars i:nth-child(2) { height: 58%; }.mini-bars i:nth-child(3) { height: 43%; }.mini-bars i:nth-child(4) { height: 78%; }.mini-bars i:nth-child(5) { height: 65%; }.mini-bars i:nth-child(6) { height: 91%; }.mini-bars i:nth-child(7) { height: 74%; }.mini-bars i:nth-child(8) { height: 100%; }
.mini-table { bottom: 27px; display: grid; gap: 7px; left: 28px; position: absolute; right: 28px; }
.mini-table i { background: #f3f3f7; border-radius: 7px; height: 25px; }
.country-pills { bottom: 32px; display: flex; gap: 8px; position: absolute; }
.country-pills span { align-items: center; background: #171820; border-radius: 50%; color: white; display: flex; font-size: 11px; font-weight: 700; height: 45px; justify-content: center; width: 45px; }
.pricing-section { background: #eeedf4; padding-block: 110px 120px; }
.billing-toggle { background: #dedde5; border-radius: 10px; display: inline-flex; margin-top: 28px; padding: 4px; }
.billing-toggle button { background: transparent; border: 0; border-radius: 7px; font-weight: 600; padding: 8px 14px; }
.billing-toggle button.is-active { background: white; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.billing-toggle button span { color: #6954e8; font-size: 10px; margin-left: 3px; }
.pricing-grid { align-items: stretch; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-top: 45px; }
.price-card { background: white; border: 1px solid #dfdfe6; border-radius: 16px; padding: 29px; position: relative; }
.price-card--featured { border-color: #6f57f6; box-shadow: 0 20px 45px rgba(67, 53, 146, .12); transform: translateY(-8px); }
.popular-label { background: #6f57f6; border-radius: 99px; color: white; font-size: 9px; font-weight: 700; letter-spacing: .08em; padding: 6px 10px; position: absolute; right: 18px; text-transform: uppercase; top: 18px; }
.price-card h3 { font: 700 23px "Manrope"; margin: 0 0 8px; }
.price-card > p { color: #777987; min-height: 42px; }
.price { align-items: baseline; display: flex; gap: 4px; margin: 28px 0 20px; }
.price > span { color: #777987; font-size: 10px; font-weight: 700; }
.price strong { font: 800 42px "Manrope"; letter-spacing: -2px; }
.price small { color: #777987; }
.price-card ul { border-top: 1px solid #ececf0; list-style: none; margin: 25px 0 0; padding: 22px 0 0; }
.price-card li { align-items: center; display: flex; gap: 10px; margin: 11px 0; }
.price-card li span { color: #19a86f; font-weight: 800; }
.marketing-footer { align-items: center; color: #777987; display: flex; font-size: 12px; justify-content: space-between; min-height: 105px; }
.pricing-page { background: #f7f7fa; color: #171820; }
.pricing-standalone { padding: 70px 0 100px; }
.pricing-standalone .pricing-grid { margin-top: 55px; }

/* App layout */
.app-shell { min-height: 100vh; }
.sidebar-checkbox { display: none; }
.sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    bottom: 0;
    display: flex;
    flex-direction: column;
    left: 0;
    padding: 25px 17px 18px;
    position: fixed;
    top: 0;
    width: 236px;
    z-index: 50;
}
.brand--app { margin: 0 10px 33px; }
.sidebar-nav { display: grid; gap: 3px; }
.nav-label { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; margin: 20px 10px 7px; text-transform: uppercase; }
.nav-item { align-items: center; border-radius: 9px; color: var(--muted); display: flex; font-weight: 500; gap: 11px; padding: 9px 11px; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.is-active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.nav-icon { align-items: center; display: inline-flex; font-size: 18px; justify-content: center; width: 20px; }
.sidebar-plan { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; margin-top: auto; padding: 14px; }
.sidebar-plan strong { font: 700 16px "Manrope"; margin: 3px 0; }
.sidebar-plan > span:not(.eyebrow) { color: var(--muted); font-size: 11px; }
.sidebar-plan a { color: var(--primary); font-size: 11px; font-weight: 700; margin-top: 10px; }
.app-main { margin-left: 236px; min-height: 100vh; }
.topbar { align-items: center; backdrop-filter: blur(12px); background: color-mix(in srgb, var(--bg) 86%, transparent); display: flex; height: 69px; justify-content: space-between; padding: 0 30px; position: sticky; top: 0; z-index: 30; }
.topbar-date { align-items: center; color: var(--muted); display: flex; font-size: 12px; gap: 10px; }
.topbar-actions { align-items: center; display: flex; gap: 9px; }
.icon-button { align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; display: inline-flex; height: 36px; justify-content: center; width: 36px; }
.menu-button { display: none; }
.profile-chip { align-items: center; display: flex; gap: 9px; margin-left: 4px; }
.profile-chip > span:first-child, .profile-chip img { align-items: center; background: var(--primary); border-radius: 9px; color: white; display: flex; font-weight: 700; height: 36px; justify-content: center; object-fit: cover; width: 36px; }
.profile-copy { display: flex; flex-direction: column; line-height: 1.2; }
.profile-copy strong { font-size: 12px; }
.profile-copy small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.content { margin: 0 auto; max-width: 1500px; padding: 23px 30px 50px; }
.page-head { align-items: flex-end; display: flex; gap: 25px; justify-content: space-between; margin-bottom: 24px; }
.page-head h1, .product-header h1 { font: 700 clamp(27px, 3vw, 36px)/1.15 "Manrope"; letter-spacing: -1.3px; margin: 5px 0 4px; }
.page-head p, .product-header p { color: var(--muted); margin: 0; }
.head-filters { align-items: flex-end; display: flex; gap: 9px; }
label > span, .product-filters label > span { color: var(--muted); display: block; font-size: 10px; font-weight: 700; margin: 0 0 5px 2px; text-transform: uppercase; }
input, select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    height: 40px;
    outline: 0;
    padding: 0 12px;
}
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.head-filters select { min-width: 145px; }
.kpi-grid { display: grid; gap: 13px; grid-template-columns: repeat(4, 1fr); }
.metric-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 17px; }
.metric-top { align-items: center; display: flex; gap: 9px; }
.metric-top small { color: var(--muted); font-size: 11px; font-weight: 600; }
.metric-icon { align-items: center; border-radius: 8px; display: flex; font-size: 16px; height: 32px; justify-content: center; width: 32px; }
.metric-icon--violet { background: var(--primary-soft); color: var(--primary); }
.metric-icon--blue { background: rgba(62,151,255,.12); color: var(--chart-blue); }
.metric-icon--green { background: rgba(25,183,122,.12); color: var(--chart-green); }
.metric-icon--orange { background: rgba(235,139,49,.12); color: var(--warning); }
.metric-card > strong { display: block; font: 700 27px "Manrope"; letter-spacing: -.8px; margin: 15px 0 2px; }
.metric-card > span { color: var(--muted); font-size: 10px; }
.dashboard-grid { display: grid; gap: 13px; grid-template-columns: minmax(0, 2.1fr) minmax(270px, .9fr); margin-top: 13px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 19px; }
.panel-head { align-items: flex-start; display: flex; gap: 15px; justify-content: space-between; }
.panel-head h2 { font: 700 15px "Manrope"; margin: 0; }
.panel-head p { color: var(--muted); font-size: 10px; margin: 3px 0 0; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; }
.legend span { align-items: center; color: var(--muted); display: inline-flex; font-size: 9px; gap: 5px; }
.legend i { border-radius: 50%; height: 6px; width: 6px; }
.legend-violet { background: var(--primary); }.legend-blue { background: var(--chart-blue); }.legend-green { background: var(--chart-green); }
.chart-wrap { height: 300px; margin-top: 12px; width: 100%; }
.chart-wrap canvas { cursor: crosshair; height: 300px; width: 100%; }
.chart-note { color: var(--muted); font-size: 10px; margin: 4px 0 0; }
.chart-tooltip { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; box-shadow: 0 10px 28px rgba(19, 23, 38, .18); color: var(--text); display: none; left: 0; min-width: 150px; padding: 9px 11px; pointer-events: none; position: fixed; top: 0; z-index: 1000; }
.chart-tooltip.is-visible { display: block; }
.chart-tooltip__title { color: var(--muted); display: block; font-size: 9px; font-weight: 700; margin-bottom: 6px; text-transform: uppercase; }
.chart-tooltip__row { align-items: center; display: grid; font-size: 10px; gap: 7px; grid-template-columns: 7px 1fr auto; padding: 2px 0; }
.chart-tooltip__row strong { font-size: 10px; margin-left: 8px; }
.chart-tooltip__swatch { border-radius: 50%; height: 7px; width: 7px; }
.chart-tooltip__swatch--primary { background: var(--primary); }
.chart-tooltip__swatch--blue { background: var(--chart-blue); }
.chart-tooltip__swatch--green { background: var(--chart-green); }
.chart-tooltip__swatch--orange { background: var(--warning); }
.plan-badge { background: var(--primary-soft); border-radius: 99px; color: var(--primary); font-size: 9px; font-weight: 700; padding: 5px 8px; }
.plan-badge--active { background: rgba(25,183,122,.12); color: var(--chart-green); }
.private-stat { border-bottom: 1px solid var(--border); display: flex; flex-direction: column; padding: 33px 3px 24px; }
.private-stat span { color: var(--muted); font-size: 10px; }
.private-stat strong { font: 700 33px "Manrope"; margin: 4px 0; }
.private-stat small { color: var(--muted); }
.split-stats { display: grid; grid-template-columns: 1fr 1fr; padding-top: 20px; }
.split-stats > div { display: flex; flex-direction: column; }
.split-stats > div + div { border-left: 1px solid var(--border); padding-left: 18px; }
.split-stats span { color: var(--muted); font-size: 10px; }
.split-stats strong { font: 700 18px "Manrope"; margin-top: 3px; }
.locked-feature { align-items: center; display: flex; flex-direction: column; padding: 32px 8px 6px; text-align: center; }
.lock-icon { align-items: center; background: var(--surface-2); border-radius: 50%; color: var(--primary); display: flex; font-size: 24px; height: 54px; justify-content: center; width: 54px; }
.locked-feature h3 { font: 700 15px "Manrope"; margin: 14px 0 5px; }
.locked-feature p { color: var(--muted); font-size: 11px; margin: 0 0 18px; max-width: 270px; }
.table-panel { margin-top: 13px; padding: 0; overflow: hidden; }
.table-panel > .panel-head { padding: 18px 19px 13px; }
.text-link { color: var(--primary); font-size: 11px; font-weight: 700; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; min-width: 850px; width: 100%; }
.products-table { min-width: 1120px; }
.products-table th:nth-child(n + 3), .products-table td:nth-child(n + 3) { white-space: nowrap; }
th { background: var(--surface-2); color: var(--muted); font-size: 9px; letter-spacing: .05em; padding: 10px 14px; text-align: left; text-transform: uppercase; }
td { border-top: 1px solid var(--border); padding: 12px 14px; vertical-align: middle; }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.product-cell { align-items: center; display: flex; gap: 10px; min-width: 245px; }
.product-thumbnail { align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; color: var(--muted); display: inline-flex; flex: 0 0 auto; justify-content: center; overflow: hidden; }
.product-thumbnail--table { height: 46px; width: 46px; }
.product-thumbnail--detail { border-radius: 14px; height: 92px; width: 92px; }
.product-thumbnail img { height: 100%; object-fit: cover; width: 100%; }
.product-thumbnail > span { font-size: 18px; opacity: .6; }
.product-thumbnail--detail > span { font-size: 30px; }
.product-name { display: flex; flex-direction: column; font-weight: 600; max-width: 290px; }
.product-name:hover { color: var(--primary); }
.product-name small, .table-sub { color: var(--muted); display: block; font-size: 9px; font-weight: 400; margin-top: 3px; }
.provider-name { align-items: center; display: inline-flex; gap: 5px; }
.provider-premium-check { align-items: center; background: var(--primary); border-radius: 50%; color: #fff; display: inline-flex; flex: 0 0 auto; font-size: 9px; font-weight: 800; height: 15px; justify-content: center; line-height: 1; width: 15px; }
.muted { color: var(--muted); }
.sparkline { cursor: crosshair; height: 34px; width: 90px; }
.sparkline--metric { display: block; margin-top: 12px; width: 100%; }
.empty-state { align-items: center; color: var(--muted); display: flex; flex-direction: column; padding: 35px; }
.row-action { align-items: center; background: var(--surface-2); border-radius: 7px; display: flex; height: 28px; justify-content: center; width: 28px; }
.row-action:hover { background: var(--primary); color: white; }
.snapshot-chip { align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; display: flex; font-size: 11px; gap: 9px; padding: 9px 12px; }
.filter-panel { margin-bottom: 13px; }
.product-filters { display: flex; flex-direction: column; gap: 17px; }
.product-filters input, .product-filters select { width: 100%; }
.search-field { margin-inline: auto; max-width: 720px; width: 100%; }
.search-field input { font-size: 14px; height: 48px; padding-inline: 16px; }
.product-filter-controls { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-filter-actions { align-items: center; display: flex; gap: 10px; justify-content: center; }
.product-filters .check-field { align-items: center; display: flex; gap: 6px; }
.product-filters .check-field input { height: 16px; width: 16px; }
.product-filters .check-field span { margin: 0; text-transform: none; }
.soft-note { background: var(--surface-2); border-radius: 7px; color: var(--muted); font-size: 9px; padding: 5px 8px; }
.pagination { align-items: center; border-top: 1px solid var(--border); color: var(--muted); display: flex; justify-content: space-between; padding: 13px 18px; }
.back-link { color: var(--muted); display: inline-block; font-size: 11px; margin-bottom: 17px; }
.product-header { align-items: end; display: flex; justify-content: space-between; margin-bottom: 23px; }
.product-header-main { align-items: center; display: flex; gap: 16px; min-width: 0; }
.product-tags { display: flex; gap: 5px; }
.product-tags span { background: var(--primary-soft); border-radius: 6px; color: var(--primary); font-size: 9px; font-weight: 700; padding: 4px 7px; }
.dashboard-grid--detail { grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr); }
.kpi-grid--detail { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.metric-card--sparkline { min-width: 0; }
.metric-card--sparkline > strong { font-size: 24px; }
.movement-list { display: grid; gap: 9px; padding-top: 16px; }
.movement-list div { align-items: center; background: var(--surface-2); border-radius: 8px; display: flex; justify-content: space-between; padding: 9px 11px; }
.movement-list span { color: var(--muted); font-size: 10px; }
.detail-panel { margin-top: 13px; }
.detail-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin: 22px 0 0; }
.detail-grid div { border-left: 2px solid var(--border); padding-left: 12px; }
.detail-grid dt { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.detail-grid dd { font-weight: 600; margin: 4px 0 0; }

/* Account and onboarding */
.account-grid { display: grid; gap: 13px; grid-template-columns: .72fr 1.28fr; }
.account-profile { align-items: center; display: flex; flex-direction: column; grid-row: span 2; padding: 32px; text-align: center; }
.avatar-large { align-items: center; background: var(--primary); border-radius: 17px; color: #fff; display: flex; font: 700 28px "Manrope"; height: 76px; justify-content: center; overflow: hidden; width: 76px; }
.avatar-large img { height: 100%; object-fit: cover; width: 100%; }
.account-profile h2 { font: 700 20px "Manrope"; margin: 16px 0 2px; }
.account-profile p { color: var(--muted); margin: 0; }
.google-badge { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; font-size: 10px; margin: 17px 0 28px; padding: 7px 10px; }
.account-plan .panel-head h2, .account-countries .panel-head h2 { font-size: 20px; margin-top: 3px; }
.entitlement-grid { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); margin: 22px 0; }
.entitlement-grid div { background: var(--surface-2); border-radius: 9px; display: flex; flex-direction: column; padding: 13px; }
.entitlement-grid strong { font: 700 17px "Manrope"; }
.entitlement-grid span { color: var(--muted); font-size: 9px; margin-top: 3px; }
.selected-country-list { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.selected-country-list > div { align-items: center; background: var(--surface-2); border-radius: 10px; display: grid; grid-template-columns: 38px 1fr; padding: 11px; }
.selected-country-list .country-code { grid-row: span 2; }
.selected-country-list small { color: var(--muted); font-size: 9px; }
.country-code { align-items: center; background: var(--text); border-radius: 50%; color: var(--surface); display: inline-flex; font-size: 10px; font-weight: 700; height: 30px; justify-content: center; width: 30px; }
.cooldown-note { color: var(--muted); font-size: 10px; margin: 14px 0 0; }
.narrow-page { margin: 0 auto; max-width: 900px; }
.country-form { padding: 22px; }
.country-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.country-option { align-items: center; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; display: flex; gap: 12px; padding: 15px; position: relative; }
.country-option:hover { background: var(--surface-2); }
.country-option input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.country-check { align-items: center; border: 1px solid var(--border); border-radius: 6px; color: transparent; display: flex; font-size: 10px; height: 21px; justify-content: center; width: 21px; }
.country-option input:checked ~ .country-check { background: var(--primary); border-color: var(--primary); color: white; }
.country-option input:checked ~ .country-code { background: var(--primary); }
.country-option > span:last-child { display: flex; flex-direction: column; }
.country-option small { color: var(--muted); font-size: 9px; }
.country-option:has(input:checked) { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.country-option:has(input:disabled) { cursor: not-allowed; opacity: .45; }
.country-form-footer { align-items: center; border-top: 1px solid var(--border); display: flex; justify-content: space-between; margin-top: 22px; padding-top: 18px; }
.country-form-footer > div { display: flex; flex-direction: column; }
.country-form-footer span { color: var(--muted); font-size: 10px; }
.notice { border-radius: 10px; margin: 0 0 18px; padding: 12px 15px; }
.notice--warning { background: rgba(235,139,49,.12); border: 1px solid rgba(235,139,49,.3); color: #ae641f; }
.notice--success { background: rgba(25,183,122,.12); border: 1px solid rgba(25,183,122,.3); color: #128459; }

/* Errors */
.error-page { align-items: center; display: flex; justify-content: center; min-height: 100vh; padding: 25px; }
.error-card { align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; max-width: 530px; padding: 45px; text-align: center; width: 100%; }
.error-symbol { align-items: center; background: var(--primary-soft); border-radius: 50%; color: var(--primary); display: flex; font-size: 38px; height: 85px; justify-content: center; margin: 34px 0 18px; width: 85px; }
.error-card h1 { font: 700 30px "Manrope"; margin: 0; }
.error-card p { color: var(--muted); margin: 10px 0 25px; }
.error-card > div { display: flex; gap: 8px; }
.sidebar-overlay { display: none; }

@media (max-width: 1180px) {
    .hero { gap: 30px; grid-template-columns: 1fr 1fr; }
    .hero-copy h1 { font-size: 54px; }
}

@media (max-width: 900px) {
    .marketing-nav nav { display: none; }
    .hero { grid-template-columns: 1fr; padding-top: 75px; }
    .hero-copy { text-align: center; }
    .hero-copy > p, .hero-copy h1 { margin-inline: auto; }
    .hero-actions, .trust-row { justify-content: center; }
    .hero-visual { margin: 0 auto; max-width: 680px; width: 100%; }
    .feature-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; margin-inline: auto; max-width: 520px; }
    .price-card--featured { transform: none; }
    .signal-grid { grid-template-columns: 1fr; padding-block: 15px; }
    .signal-grid > div, .signal-grid > div:first-child { border: 0; border-bottom: 1px solid #343640; min-height: 90px; }
    .sidebar { transform: translateX(-100%); transition: transform .2s; }
    .sidebar-checkbox:checked ~ .sidebar { transform: translateX(0); }
    .sidebar-checkbox:checked ~ .sidebar-overlay { background: rgba(0,0,0,.35); bottom: 0; display: block; left: 0; position: fixed; right: 0; top: 0; z-index: 45; }
    .app-main { margin-left: 0; }
    .menu-button { display: inline-flex; }
    .topbar-date { display: none; }
    .topbar { padding-inline: 18px; }
    .content { padding-inline: 18px; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .kpi-grid--detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .product-filter-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-grid { grid-template-columns: 1fr; }
    .account-profile { grid-row: auto; }
}

@media (max-width: 620px) {
    .container { width: min(100% - 28px, 1180px); }
    .marketing-nav { height: 70px; }
    .marketing-actions .button--ghost { display: none; }
    .hero { min-height: auto; padding: 60px 0 70px; }
    .hero-copy h1 { font-size: 42px; letter-spacing: -2px; }
    .hero-copy > p { font-size: 16px; }
    .hero-visual { padding-left: 0; }
    .floating-card { display: none; }
    .preview-content { padding: 14px; }
    .preview-kpis { gap: 5px; }
    .preview-kpis div { padding: 8px; }
    .preview-kpis strong { font-size: 13px; }
    .feature-section, .pricing-section { padding-block: 75px; }
    .section-heading h1, .section-heading h2 { font-size: 34px; letter-spacing: -1.5px; }
    .marketing-footer { align-items: flex-start; flex-direction: column; gap: 10px; justify-content: center; }
    .marketing-footer p { margin: 0; }
    .page-head, .product-header { align-items: stretch; flex-direction: column; }
    .product-header-main { align-items: flex-start; }
    .head-filters { display: grid; grid-template-columns: 1fr 1fr; }
    .head-filters label, .head-filters select { width: 100%; }
    .kpi-grid { grid-template-columns: 1fr; }
    .product-filter-controls { grid-template-columns: 1fr; }
    .product-filter-actions { align-items: stretch; flex-direction: column; }
    .product-filter-actions .check-field { justify-content: center; }
    .detail-grid, .entitlement-grid, .selected-country-list, .country-grid { grid-template-columns: 1fr; }
    .country-form-footer { align-items: stretch; flex-direction: column; gap: 16px; }
    .profile-copy { display: none; }
    .topbar { height: 60px; }
    .content { padding-top: 18px; }
}
