/* ============================================
   Pricera — Premium SaaS Design System
   ============================================ */

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #3B82F6;
    --secondary: #10B981;
    --secondary-dark: #059669;
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --text: #111827;
    --gray: #64748B;
    --gray-light: #94A3B8;
    --border: #E5E7EB;
    --danger: #EF4444;
    --warning: #F59E0B;
    --success: #10B981;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: blur(16px);

    --header-height: 72px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --dashboard-slide-height: 720px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container--wide {
    max-width: 1440px;
}

.section--wide {
    overflow: hidden;
}

/* ---- Page Loader ---- */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--background);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader span {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- Glassmorphism ---- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.04);
}

.btn--ghost {
    background: transparent;
    color: var(--gray);
    border-color: transparent;
}

.btn--ghost:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.06);
}

.btn--lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn--sm {
    padding: 8px 14px;
    font-size: 0.875rem;
}

.btn--block {
    width: 100%;
}

/* ---- Logo ---- */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text);
    letter-spacing: -0.03em;
    min-width: 0;
    max-width: 100%;
}

.logo__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logo img {
    flex-shrink: 0;
    height: 38px;
    width: auto;
}

.logo:hover {
    color: var(--text);
}

.logo__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.logo--light {
    color: #fff;
}

.logo--light .logo__icon {
    background: rgba(255, 255, 255, 0.2);
}

/* ---- Header ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* backdrop-filter on .header traps position:fixed descendants —
   keep blur off the header itself so the mobile nav stays viewport-fixed */
body.menu-open .header {
    background: var(--surface);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
    min-width: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__link {
    color: var(--gray);
    font-weight: 500;
    font-size: 0.9375rem;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.nav__link:hover {
    color: var(--text);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__actions {
    display: none;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(17, 24, 39, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.nav-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(17, 24, 39, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.sidebar-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* ---- Hero ---- */
.hero {
    padding: calc(var(--header-height) + 64px) 0 80px;
    background:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(37, 99, 235, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(16, 185, 129, 0.08), transparent),
        var(--background);
}

.hero__grid {
    display: flex;
    align-items: center;
    gap: 64px;
}

.hero__content {
    flex: 1;
    min-width: 0;
}

.hero__content h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 20px 0 16px;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 520px;
    margin-bottom: 32px;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.hero__stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hero__stats strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.hero__stats span {
    font-size: 0.875rem;
    color: var(--gray);
}

.hero__mockup {
    flex: 1;
    min-width: 0;
    max-width: 500px;
    width: 100%;
}

/* ---- Hero Live Monitor ---- */
.hero-monitor {
    width: 100%;
    min-height: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 20px;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 16px 36px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    animation: heroMonitorIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.15s;
}

@keyframes heroMonitorIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-monitor__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(248, 250, 252, 0.85);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-monitor__toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hero-monitor__live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #EF4444;
}

.hero-monitor__live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #EF4444;
    animation: heroLivePulse 1.5s ease-in-out infinite;
}

@keyframes heroLivePulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.hero-monitor__app-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-monitor__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray);
    flex-shrink: 0;
}

.hero-monitor__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.hero-monitor__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-monitor__section-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--gray);
    margin-bottom: 8px;
    line-height: 1.35;
}

.hero-monitor__kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.hero-monitor__kpi {
    padding: 10px 8px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 10px;
    text-align: center;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-monitor__kpi:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.hero-monitor__kpi-value {
    display: block;
    font-size: clamp(1.0625rem, 2vw, 1.3125rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 2px;
    font-variant-numeric: tabular-nums;
}

.hero-monitor__kpi-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--gray);
    line-height: 1.25;
}

.hero-monitor__divider {
    height: 1px;
    background: rgba(226, 232, 240, 0.9);
    flex-shrink: 0;
}

.hero-monitor__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
}

.hero-monitor__col {
    min-width: 0;
}

.hero-monitor__col--insights,
.hero-monitor__col--feed {
    padding: 10px;
    background: rgba(248, 250, 252, 0.6);
    border: 1px solid rgba(226, 232, 240, 0.75);
    border-radius: 10px;
}

.hero-monitor__insight-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-monitor__insight {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.35;
}

.hero-monitor__insight i {
    width: 14px;
    text-align: center;
    font-size: 0.6875rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.hero-monitor__insight--warn i { color: #F59E0B; }
.hero-monitor__insight--up i { color: #22C55E; }
.hero-monitor__insight--down i { color: #EF4444; }

.hero-monitor__feed-viewport {
    overflow: hidden;
    min-height: 96px;
}

.hero-monitor__feed-list {
    display: flex;
    flex-direction: column;
}

.hero-monitor__feed-item {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    font-size: 0.75rem;
    font-weight: 500;
    transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, padding 0.35s ease;
    max-height: 32px;
    overflow: hidden;
}

.hero-monitor__feed-item:last-child {
    border-bottom: none;
}

.hero-monitor__feed-item.is-exiting {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom-color: transparent;
}

.hero-monitor__feed-item.is-entering {
    opacity: 0;
    transform: translateY(12px);
}

.hero-monitor__feed-item.is-entering.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-monitor__feed-time {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--gray);
    font-variant-numeric: tabular-nums;
}

.hero-monitor__feed-retailer {
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.01em;
    font-size: 0.75rem;
}

.hero-monitor__feed-change {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.6875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hero-monitor__feed-change--up { color: #22C55E; }
.hero-monitor__feed-change--down { color: #EF4444; }

.hero-monitor__footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-monitor__footer-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-monitor__footer-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--gray);
}

.hero-monitor__footer-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.hero-monitor__countdown {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text);
}

.hero-monitor__countdown strong {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    min-width: 1.5ch;
    display: inline-block;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 100px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ---- Mockup ---- */
.mockup {
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.mockup:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.mockup__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--border);
}

.mockup__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup__dot--red { background: #EF4444; }
.mockup__dot--yellow { background: #F59E0B; }
.mockup__dot--green { background: #10B981; }

.mockup__title {
    margin-left: 8px;
    font-size: 0.8125rem;
    color: var(--gray);
    font-weight: 500;
}

.mockup__body {
    padding: 20px;
}

/* ---- KPI Cards ---- */
.kpi-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.kpi-row--4 .kpi-card {
    flex: 1;
    min-width: 140px;
}

.kpi-card {
    flex: 1;
    min-width: 120px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.kpi-card__label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kpi-card__value {
    display: block;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.kpi-card__value--down {
    color: var(--danger);
}

.kpi-card__change {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.kpi-card__change--down {
    color: var(--danger);
}

.chart-wrap {
    position: relative;
    height: 180px;
}

.chart-wrap--lg {
    height: 280px;
}

/* ---- Sections ---- */
.section {
    padding: 96px 0;
}

.section--alt {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.03) 0%, transparent 100%);
}

.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section__header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 16px 0 12px;
}

.section__header p {
    color: var(--gray);
    font-size: 1.0625rem;
}

/* ---- Features Grid ---- */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.feature-card {
    flex: 1 1 calc(33.333% - 16px);
    min-width: 280px;
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
    color: var(--primary);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.9375rem;
}

/* ---- Steps ---- */
.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.step {
    flex: 1 1 180px;
    max-width: 220px;
    text-align: center;
    padding: 24px 16px;
}

.step__number {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    font-size: 0.875rem;
    color: var(--gray);
}

/* ---- Dashboard Preview ---- */
.dashboard-preview {
    border-radius: var(--radius-xl);
    padding: 24px;
    overflow: hidden;
}

.dashboard-preview__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.9375rem;
}

.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--secondary);
}

.live-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.dashboard-preview__charts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.chart-box {
    flex: 1 1 280px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.chart-box h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 12px;
}

.chart-box canvas {
    max-height: 200px;
}

.chart-box--map {
    min-height: 220px;
}

.region-map {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(16, 185, 129, 0.05));
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.region-map__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
}

.region-map__item {
    position: absolute;
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transform: translate(-50%, -50%);
    transition: all var(--transition);
}

.region-map__item--active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---- Price Overview (Landing) ---- */
.saas-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.dashboard-carousel {
    position: relative;
}

.dashboard-carousel__viewport {
    overflow: hidden;
    border-radius: var(--radius-lg);
    height: var(--dashboard-slide-height);
}

.dashboard-carousel__track {
    display: flex;
    align-items: stretch;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-carousel__slide {
    flex: 0 0 100%;
    min-width: 0;
    height: 100%;
    opacity: 0.55;
    transform: scale(0.985);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.dashboard-carousel__slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.dashboard-carousel__slide > .price-overview,
.dashboard-carousel__slide > .presence-dashboard,
.dashboard-carousel__slide > .b2b-dashboard {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.dashboard-scroll {
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.price-overview {
    display: flex;
    gap: 24px;
    align-items: stretch;
    padding: 4px;
    flex-direction: row;
}

.price-overview__main {
    flex: 1 1 70%;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.price-overview__feed {
    flex: 0 0 30%;
    max-width: 380px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.price-overview__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.price-overview__header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.price-overview__header p {
    font-size: 0.875rem;
    color: var(--gray);
}

.price-overview__table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.market-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.market-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface);
    text-align: left;
    padding: 14px 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.market-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.market-table__row {
    transition: background var(--transition);
    cursor: pointer;
    animation: slideUpFade 0.5s ease both;
}

.market-table__row:nth-child(1) { animation-delay: 0.03s; }
.market-table__row:nth-child(2) { animation-delay: 0.06s; }
.market-table__row:nth-child(3) { animation-delay: 0.09s; }
.market-table__row:nth-child(4) { animation-delay: 0.12s; }
.market-table__row:nth-child(5) { animation-delay: 0.15s; }

.dashboard-carousel__slide.is-active .market-table__row:hover {
    background: rgba(37, 99, 235, 0.04);
}

.market-table__name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.market-table__brand {
    display: block;
    font-size: 0.8125rem;
    color: var(--gray);
}

.market-table__price {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.market-table__retailers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 4px 10px;
    background: var(--background);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.8125rem;
}

.retailer-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-dark);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.market-table__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray);
    transition: color var(--transition);
    white-space: nowrap;
}

.market-table__action:hover {
    color: var(--primary);
}

.market-table__action i {
    font-size: 0.75rem;
    transition: transform var(--transition);
}

.market-table__action:hover i {
    transform: translateX(3px);
}

.change-feed {
    padding: 12px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.change-feed__item {
    padding: 16px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition);
    animation: slideUpFade 0.5s ease both;
}

.dashboard-carousel__slide.is-active .change-feed__item:hover {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: var(--shadow-sm);
}

.change-feed__item:nth-child(1) { animation-delay: 0.05s; }
.change-feed__item:nth-child(2) { animation-delay: 0.1s; }
.change-feed__item:nth-child(3) { animation-delay: 0.15s; }
.change-feed__item:nth-child(4) { animation-delay: 0.2s; }
.change-feed__item:nth-child(5) { animation-delay: 0.25s; }

.change-feed__top {
    margin-bottom: 10px;
}

.change-feed__top strong {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.change-feed__store {
    font-size: 0.8125rem;
    color: var(--gray);
}

.change-feed__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.change-feed__prices {
    font-size: 0.8125rem;
    color: var(--text);
    font-weight: 500;
}

.change-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
}

.change-badge--down {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary-dark);
}

.change-badge--up {
    background: rgba(245, 158, 11, 0.15);
    color: #B45309;
}

.dashboard-carousel__controls {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.dashboard-carousel__tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
}

.dashboard-carousel__tab {
    padding: 10px 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 100px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all var(--transition);
}

.dashboard-carousel__tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.dashboard-carousel__tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.dashboard-carousel__dots {
    display: flex;
    gap: 8px;
}

.dashboard-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--border);
    cursor: pointer;
    transition: all var(--transition);
}

.dashboard-carousel__dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

.dashboard-carousel__timer {
    width: min(320px, 100%);
    height: 4px;
    background: var(--border);
    border-radius: 100px;
    overflow: hidden;
}

.dashboard-carousel__timer-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 100px;
    transition: width 0.1s linear;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Presence Dashboard ---- */
.presence-dashboard {
    --presence-green: #2D6A4F;
    --presence-green-light: #40916C;
    --presence-green-bg: rgba(45, 106, 79, 0.1);
    --presence-sand: #F4F1EA;
    --presence-sand-dark: #E8E2D6;
    --presence-danger: #C44536;

    background: var(--presence-sand);
    border: 1px solid var(--presence-sand-dark);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 28px;
    animation: slideUpFade 0.6s ease both;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.presence-dashboard__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--presence-sand-dark);
    flex-shrink: 0;
}

.presence-dashboard__titles h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--presence-green);
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.presence-dashboard__brand {
    font-size: 0.9375rem;
    color: #6B705C;
    font-weight: 500;
}

.presence-dashboard__header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.presence-dashboard__updated-label {
    font-size: 0.8125rem;
    color: #6B705C;
}

.presence-dashboard__refresh.is-loading i {
    animation: spin 0.8s linear infinite;
}

.presence-dashboard__refresh.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

.presence-dashboard__toolbar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.presence-dashboard__search {
    flex: 1 1 280px;
    position: relative;
}

.presence-dashboard__search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6B705C;
    font-size: 0.875rem;
}

.presence-dashboard__search input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid var(--presence-sand-dark);
    border-radius: var(--radius-md);
    background: #fff;
    font-family: var(--font);
    font-size: 0.9375rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.presence-dashboard__search input:focus {
    outline: none;
    border-color: var(--presence-green-light);
    box-shadow: 0 0 0 3px var(--presence-green-bg);
}

.presence-dashboard__filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.presence-dashboard__filter label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6B705C;
    white-space: nowrap;
}

.presence-dashboard__filter select {
    padding: 11px 36px 11px 14px;
    border: 1px solid var(--presence-sand-dark);
    border-radius: var(--radius-md);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B705C' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    font-family: var(--font);
    font-size: 0.9375rem;
    cursor: pointer;
}

.presence-dashboard__table-wrap {
    background: #fff;
    border: 1px solid var(--presence-sand-dark);
    border-radius: var(--radius-lg);
    overflow: auto;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.presence-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.presence-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #FAFAF8;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--presence-sand-dark);
    white-space: nowrap;
}

.presence-table__sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B705C;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    padding: 0;
    transition: color var(--transition);
}

.presence-table__sort:hover,
.presence-table__sort.is-active {
    color: var(--presence-green);
}

.presence-table__sort i {
    font-size: 0.6875rem;
    opacity: 0.5;
}

.presence-table__sort.is-active i {
    opacity: 1;
}

.presence-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--presence-sand-dark);
    vertical-align: middle;
}

.presence-table__row {
    transition: background var(--transition);
}

.presence-table__row:hover {
    background: var(--presence-green-bg);
}

.presence-table__row--dimmed {
    opacity: 0.55;
}

.presence-table__row--dimmed:hover {
    opacity: 0.75;
}

.presence-table__sku {
    font-weight: 700;
    color: var(--text);
    max-width: 260px;
}

.presence-table__price-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8125rem;
}

.presence-table__price-flag--yes {
    background: var(--presence-green-bg);
    color: var(--presence-green);
}

.presence-table__price-flag--no {
    background: rgba(196, 69, 54, 0.1);
    color: var(--presence-danger);
}

.presence-table__coverage {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8125rem;
}

.presence-table__coverage--zero {
    background: rgba(100, 116, 139, 0.12);
    color: var(--presence-danger);
}

.presence-table__coverage--positive {
    background: var(--presence-green-bg);
    color: var(--presence-green);
}

.presence-table__detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6B705C;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.presence-table__detail-btn:hover {
    color: var(--presence-green);
    background: var(--presence-green-bg);
}

.presence-table__detail-btn.is-open {
    color: var(--presence-green);
}

.presence-table__details-row td {
    padding: 0;
    background: #FAFAF8;
}

.presence-table__details {
    padding: 16px 20px 20px;
    animation: slideUpFade 0.3s ease both;
}

.presence-table__details h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--presence-green);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.presence-table__details-list {
    list-style: none;
    display: grid;
    gap: 8px;
}

.presence-table__details-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--presence-sand-dark);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

.presence-table__stock {
    font-weight: 600;
}

.presence-table__stock--yes {
    color: var(--presence-green);
}

.presence-table__stock--no {
    color: var(--presence-danger);
}

.presence-dashboard__cards {
    display: none;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.presence-card {
    background: #fff;
    border: 1px solid var(--presence-sand-dark);
    border-radius: var(--radius-lg);
    padding: 16px;
    animation: slideUpFade 0.4s ease both;
}

.presence-card--dimmed {
    opacity: 0.55;
}

.presence-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.presence-card__sku {
    font-weight: 700;
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.presence-card__retailer {
    font-size: 0.8125rem;
    color: #6B705C;
}

.presence-card__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.8125rem;
}

.presence-card__meta span {
    color: #6B705C;
}

.presence-card__meta strong {
    display: block;
    color: var(--text);
    margin-top: 2px;
}

.presence-card__details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--presence-sand-dark);
}

.presence-dashboard__empty {
    text-align: center;
    padding: 32px;
    color: #6B705C;
    font-size: 0.9375rem;
    flex-shrink: 0;
}

.presence-dashboard__empty[hidden] {
    display: none;
}

/* ---- B2B Price Dashboard ---- */
.b2b-dashboard {
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 28px;
    animation: slideUpFade 0.6s ease both;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.b2b-dashboard__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.b2b-dashboard__header h3 {
    font-size: 1.375rem;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.b2b-dashboard__header p {
    font-size: 0.9375rem;
    color: var(--gray);
}

.b2b-dashboard__refresh.is-loading i {
    animation: spin 0.8s linear infinite;
}

.b2b-dashboard__refresh.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

.b2b-dashboard__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.b2b-metric {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.b2b-metric__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.b2b-metric__value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

.b2b-metric__value--success {
    color: #16a34a;
}

.b2b-dashboard__product {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.b2b-dashboard__product-name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

.b2b-dashboard__product-meta {
    font-size: 0.875rem;
    color: var(--gray);
}

.b2b-dashboard__tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
}

.b2b-dashboard__tab {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
}

.b2b-dashboard__tab:hover {
    color: var(--primary);
}

.b2b-dashboard__tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.b2b-dashboard__section-head {
    margin-bottom: 16px;
    flex-shrink: 0;
}

.b2b-dashboard__section-head h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.b2b-dashboard__section-head p {
    font-size: 0.875rem;
    color: var(--gray);
}

.b2b-dashboard__filter-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: rgba(37, 99, 235, 0.06);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.b2b-dashboard__filter-hint[hidden] {
    display: none;
}

.b2b-dashboard__filter-clear {
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
}

.b2b-dashboard__table-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: auto;
    box-shadow: var(--shadow-sm);
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.b2b-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.b2b-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fafafa;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.b2b-table__sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    padding: 0;
}

.b2b-table__sort:hover,
.b2b-table__sort.is-active {
    color: var(--primary);
}

.b2b-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: #1f2937;
}

.b2b-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.b2b-table tbody tr {
    transition: background var(--transition);
}

.b2b-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.05);
}

.b2b-table__retailer-btn {
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    padding: 0;
    text-align: left;
    transition: color var(--transition);
}

.b2b-table__retailer-btn:hover,
.b2b-table__retailer-btn.is-filtered {
    color: var(--primary);
}

.b2b-table__price {
    font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
    font-weight: 600;
}

.b2b-table__promo {
    font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
    font-weight: 700;
    color: #16a34a;
}

.b2b-promo-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    vertical-align: middle;
}

.b2b-table__no-promo {
    color: var(--gray-light);
    font-size: 0.8125rem;
}

.b2b-table__change {
    font-weight: 700;
    font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
}

.b2b-table__change--down {
    color: #16a34a;
}

.b2b-table__change--up {
    color: #dc2626;
}

.b2b-dashboard__cards {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.b2b-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.b2b-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.b2b-card__retailer {
    font-weight: 700;
    font-size: 0.9375rem;
}

.b2b-card__date {
    font-size: 0.75rem;
    color: var(--gray);
}

.b2b-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.8125rem;
}

.b2b-card__grid span {
    color: var(--gray);
    display: block;
    margin-bottom: 2px;
}

.b2b-card__grid strong {
    color: #1f2937;
}

.b2b-prices-panel[hidden],
.b2b-history-panel[hidden] {
    display: none !important;
}

.b2b-prices-panel:not([hidden]) {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.b2b-history-panel:not([hidden]) {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.b2b-history__head {
    margin-bottom: 20px;
}

.b2b-history__head h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.b2b-history__head p {
    font-size: 0.875rem;
    color: var(--gray);
}

.b2b-history__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 16px;
}

.b2b-history__filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.b2b-history__filter label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.b2b-history__filter select {
    min-width: 160px;
    padding: 10px 36px 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    font-family: var(--font);
    font-size: 0.875rem;
}

.b2b-history__chart-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.b2b-history__avg-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #1f2937;
    cursor: pointer;
}

.b2b-history__avg-toggle input {
    accent-color: var(--primary);
}

.b2b-history__chart-wrap {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    min-height: 320px;
}

.b2b-history__chart-wrap canvas {
    width: 100% !important;
    height: 320px !important;
}

.b2b-history__loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-lg);
    z-index: 2;
}

.b2b-history__loader[hidden] {
    display: none;
}

.b2b-history__search {
    position: relative;
    margin-bottom: 16px;
}

.b2b-history__search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 0.875rem;
}

.b2b-history__search input {
    width: 100%;
    padding: 11px 16px 11px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    font-family: var(--font);
    font-size: 0.9375rem;
}

.b2b-history__table-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: auto;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.b2b-history-table {
    min-width: 760px;
}

.b2b-history__change {
    font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
    font-weight: 600;
    white-space: nowrap;
}

.b2b-history__change--up {
    color: #16a34a;
}

.b2b-history__change--down {
    color: #dc2626;
}

.b2b-history__change--zero {
    color: #6b7280;
}

.b2b-history__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.b2b-history-stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.b2b-history-stat__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.b2b-history-stat__value {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.b2b-history-stat__value span {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray);
    margin-top: 4px;
}

.b2b-history-stat--max .b2b-history-stat__value {
    color: #dc2626;
}

.b2b-history-stat--min .b2b-history-stat__value {
    color: #16a34a;
}

/* ---- AI Chat ---- */
.ai-chat {
    display: flex;
    flex-direction: column;
    max-width: 720px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.ai-chat__header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-weight: 600;
}

.ai-chat__header-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat__topic {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: opacity var(--transition);
}

.ai-chat__topic.is-changing {
    opacity: 0.5;
}

.ai-chat__body {
    height: 380px;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    overflow: hidden;
    flex-shrink: 0;
}

.ai-chat__messages {
    flex: 1;
    min-height: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.ai-chat__messages.is-resetting {
    opacity: 0;
    transition: opacity 0.35s ease;
}

.ai-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: aiMessageIn 0.45s ease both;
}

@keyframes aiMessageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-message--user {
    flex-direction: row-reverse;
}

.ai-message__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.ai-message--user .ai-message__avatar {
    background: var(--primary);
    color: #fff;
}

.ai-message--bot .ai-message__avatar {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary);
}

.ai-message__bubble {
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    max-width: 85%;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.ai-message--user .ai-message__bubble {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ai-message--bot .ai-message__bubble {
    background: var(--background);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.ai-message__bubble p + p {
    margin-top: 8px;
}

.ai-message__bubble--typing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 14px 18px;
    min-width: 56px;
}

.ai-message__bubble--typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gray);
    animation: aiTypingDot 1.2s infinite ease-in-out;
}

.ai-message__bubble--typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-message__bubble--typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes aiTypingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.ai-chat__typing {
    flex-shrink: 0;
    padding: 0 24px 16px;
    background: var(--surface);
}

.ai-chat__typing[hidden] {
    display: none;
}

.ai-chat__themes {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px 16px;
    background: var(--background);
    border-top: 1px solid var(--border);
}

.ai-chat__theme-dot {
    width: 8px;
    height: 8px;
    border: none;
    padding: 0;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all var(--transition);
}

.ai-chat__theme-dot.active {
    background: var(--primary);
    width: 22px;
    border-radius: 4px;
}

.ai-chat__input {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--background);
}

.ai-chat__input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.9375rem;
    background: var(--surface);
}

/* ---- Benefits ---- */
.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.benefit-card {
    flex: 1 1 calc(25% - 18px);
    min-width: 220px;
    padding: 32px 24px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.benefit-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.benefit-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.benefit-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 0.875rem;
    color: var(--gray);
}

/* ---- Pricing ---- */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: stretch;
    justify-content: center;
}

.pricing-card {
    flex: 1 1 300px;
    max-width: 360px;
    padding: 40px 32px;
    border-radius: var(--radius-xl);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
    border: 2px solid var(--primary);
    transform: scale(1.04);
    box-shadow: var(--shadow-xl);
}

.pricing-card--featured:hover {
    transform: scale(1.04) translateY(-4px);
}

.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-card__price {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.pricing-card__price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray);
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9375rem;
    color: var(--gray);
}

.pricing-card li i {
    color: var(--secondary);
    font-size: 0.875rem;
}

/* ---- Testimonials ---- */
.testimonials {
    max-width: 720px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials__track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 40px;
    border-radius: var(--radius-xl);
    text-align: center;
}

.testimonial-card__stars {
    color: #F59E0B;
    margin-bottom: 20px;
    font-size: 0.875rem;
}

.testimonial-card p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-card__author strong {
    display: block;
    font-size: 0.9375rem;
}

.testimonial-card__author span {
    font-size: 0.8125rem;
    color: var(--gray);
}

.testimonials__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.testimonials__btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: all var(--transition);
}

.testimonials__btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.04);
}

.testimonials__dots {
    display: flex;
    gap: 8px;
}

.testimonials__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition);
}

.testimonials__dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* ---- CTA ---- */
.cta {
    padding: 64px 0 96px;
}

.cta__inner {
    text-align: center;
    padding: 64px 40px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.08));
}

.cta__inner h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.cta__inner p {
    color: var(--gray);
    margin-bottom: 28px;
    font-size: 1.0625rem;
}

/* ---- Footer ---- */
.footer {
    background: var(--text);
    color: #fff;
    padding-top: 64px;
}

.footer__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    padding-bottom: 48px;
}

.footer__brand {
    flex: 1 1 280px;
}

.footer__brand p {
    margin-top: 16px;
    color: var(--gray-light);
    font-size: 0.9375rem;
    max-width: 280px;
}

.footer__brand .logo {
    color: #fff;
}

.footer__col {
    flex: 1 1 160px;
}

.footer__col h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    color: var(--gray-light);
}

.footer__col ul {
    list-style: none;
}

.footer__col li {
    margin-bottom: 10px;
}

.footer__col a {
    color: #CBD5E1;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition);
}

.footer__col a:hover {
    color: #fff;
}

.footer__messenger-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    display: block;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

.footer__bottom p {
    font-size: 0.875rem;
    color: var(--gray-light);
}

/* ---- Auth Pages ---- */
.auth-page {
    min-height: 100vh;
}

.auth-layout {
    display: flex;
    min-height: 100vh;
}

.auth-layout__visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background:
        radial-gradient(ellipse 80% 80% at 20% 50%, rgba(37, 99, 235, 0.2), transparent),
        linear-gradient(135deg, #1E3A8A, #2563EB);
}

.auth-visual {
    max-width: 420px;
    padding: 48px;
    border-radius: var(--radius-xl);
    color: #fff;
}

.auth-visual h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 32px 0 12px;
}

.auth-visual p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
}

.auth-visual__list {
    list-style: none;
}

.auth-visual__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
}

.auth-visual__list i {
    color: var(--secondary);
}

.auth-layout__form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: var(--background);
}

.auth-form {
    width: 100%;
    max-width: 420px;
}

.auth-form__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 32px;
}

.auth-form h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-form__subtitle {
    color: var(--gray);
    margin-bottom: 32px;
}

.auth-form__footer {
    text-align: center;
    margin-top: 24px;
    color: var(--gray);
    font-size: 0.9375rem;
}

/* ---- Forms ---- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.9375rem;
    background: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray);
}

.checkbox input {
    width: auto;
    accent-color: var(--primary);
}

/* ---- Flash Messages ---- */
.flash-messages {
    margin-bottom: 24px;
}

.flash-messages--dashboard {
    padding: 0 32px;
    margin-top: 16px;
}

.flash {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.flash--success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-dark);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.flash--error {
    background: rgba(239, 68, 68, 0.1);
    color: #B91C1C;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.flash--warning {
    background: rgba(245, 158, 11, 0.1);
    color: #B45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.flash--info {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-dark);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

/* ---- Dashboard Layout ---- */
.dashboard-page {
    overflow: hidden;
}

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    border-right: 1px solid var(--border);
    background: var(--surface);
    transition: transform var(--transition);
}

.sidebar__nav {
    flex: 1;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--gray);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all var(--transition);
}

.sidebar__link:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--primary);
}

.sidebar__link--active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.sidebar__footer {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.sidebar__user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    margin-bottom: 8px;
}

.sidebar__avatar {
    width: 36px;
    height: 36px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar__user strong {
    display: block;
    font-size: 0.8125rem;
    word-break: break-all;
}

.sidebar__user span {
    font-size: 0.75rem;
    color: var(--gray);
}

.sidebar__logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    color: var(--gray);
    font-size: 0.875rem;
}

.sidebar__logout:hover {
    color: var(--danger);
}

.dashboard-main {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    background: var(--background);
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 32px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.dashboard-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
}

.dashboard-header p {
    font-size: 0.875rem;
    color: var(--gray);
}

.dashboard-header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.burger--sidebar {
    display: none;
}

.dashboard-content {
    padding: 32px;
}

.dashboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
}

.dashboard-grid > .panel {
    flex: 1 1 calc(50% - 12px);
    min-width: 300px;
}

.dashboard-grid--2 > .panel {
    flex: 1 1 calc(60% - 12px);
}

.dashboard-grid--2 > .panel-stack {
    flex: 1 1 calc(40% - 12px);
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.panel {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}

.panel__header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.panel__link {
    font-size: 0.8125rem;
    color: var(--gray);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.panel .chart-wrap {
    padding: 16px 24px 24px;
}

/* ---- Data Table ---- */
.table-wrap {
    overflow-x: auto;
    padding: 0 24px 24px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--gray);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.data-table tbody tr {
    transition: background var(--transition);
}

.data-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.03);
}

.data-table code {
    font-size: 0.8125rem;
    background: var(--background);
    padding: 2px 6px;
    border-radius: 4px;
}

.text-down { color: var(--danger); }
.text-up { color: var(--secondary); }

.tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    background: var(--background);
    color: var(--gray);
}

.tag--promo {
    background: rgba(245, 158, 11, 0.15);
    color: #B45309;
}

/* ---- Alert & Change Lists ---- */
.alert-list,
.change-list {
    list-style: none;
    padding: 0 24px 24px;
}

.alert-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.alert-item:last-child {
    border-bottom: none;
}

.alert-item__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8125rem;
}

.alert-item--high .alert-item__icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.alert-item--medium .alert-item__icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.alert-item--low .alert-item__icon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.alert-item p {
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.alert-item code {
    font-size: 0.75rem;
    color: var(--gray);
}

.change-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.change-item:last-child {
    border-bottom: none;
}

.change-item__info {
    flex: 1;
    min-width: 120px;
}

.change-item__info strong {
    display: block;
    font-size: 0.875rem;
}

.change-item__info span {
    font-size: 0.75rem;
    color: var(--gray);
}

.change-item__prices {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
}

.change-item__old {
    color: var(--gray);
    text-decoration: line-through;
}

.change-item__new {
    font-weight: 600;
}

.change-item__pct {
    font-weight: 700;
    font-size: 0.8125rem;
    min-width: 50px;
    text-align: right;
}

/* ---- Analytics Showcase ---- */
.section__header--wide {
    max-width: 780px;
}

.analytics-showcase {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 50% at 15% 20%, rgba(37, 99, 235, 0.1), transparent),
        radial-gradient(ellipse 60% 45% at 85% 75%, rgba(16, 185, 129, 0.08), transparent),
        linear-gradient(180deg, rgba(37, 99, 235, 0.04) 0%, var(--background) 55%);
}

.analytics-showcase__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 40%, rgba(37, 99, 235, 0.06), transparent 55%);
}

.analytics-showcase__lead {
    font-size: 1.0625rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.analytics-showcase__sub {
    font-size: 0.9375rem;
    color: var(--gray-light);
    line-height: 1.65;
}

.analytics-showcase__main {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(240px, 360px);
    gap: 36px;
    align-items: center;
    justify-content: center;
    margin-bottom: 56px;
}

.analytics-showcase__phone-col {
    display: flex;
    justify-content: center;
}

.analytics-showcase__cards-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
}

/* Phone mockup — realistic proportions */
.analytics-phone {
    position: relative;
    width: 100%;
    max-width: 268px;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.analytics-phone:hover {
    transform: scale(1.025) translateY(-3px);
}

.analytics-phone__glow {
    position: absolute;
    inset: 12% 8% -4%;
    background: radial-gradient(ellipse 70% 60% at 50% 60%, rgba(37, 99, 235, 0.32), transparent 70%);
    filter: blur(24px);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.analytics-phone.is-live .analytics-phone__glow,
.analytics-phone:hover .analytics-phone__glow {
    opacity: 1;
}

.analytics-phone__frame {
    position: relative;
    z-index: 1;
    padding: 10px;
    background: linear-gradient(145deg, #1f2937 0%, #111827 50%, #0f172a 100%);
    border-radius: 36px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 20px 40px rgba(15, 23, 42, 0.22),
        0 6px 14px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.analytics-phone__bezel {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: #0b1220;
}

.analytics-phone__notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 22px;
    background: #0b1220;
    border-radius: 0 0 14px 14px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analytics-phone__speaker {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 100px;
}

.analytics-phone__side-btn {
    position: absolute;
    background: linear-gradient(180deg, #374151, #1f2937);
    border-radius: 2px;
}

.analytics-phone__side-btn--vol {
    left: -3px;
    top: 88px;
    width: 3px;
    height: 48px;
}

.analytics-phone__side-btn--power {
    right: -3px;
    top: 120px;
    width: 3px;
    height: 56px;
}

.analytics-phone__screen {
    background: #f3f4f6;
    height: 500px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.7s ease 0.2s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.analytics-phone__screen.is-on {
    opacity: 1;
    transform: scale(1);
}

.analytics-phone__status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 4px;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text);
    background: #fff;
    flex-shrink: 0;
}

.analytics-phone__status-icons {
    display: flex;
    gap: 5px;
    font-size: 0.5625rem;
    color: var(--text);
}

.analytics-phone__app-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: linear-gradient(135deg, #5B21B6, #7C3AED);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.analytics-phone__back,
.analytics-phone__menu {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.analytics-phone__channel {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.analytics-phone__channel-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.analytics-phone__channel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.analytics-phone__channel-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.analytics-phone__channel-name {
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.analytics-phone__channel-meta {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.75);
}

.analytics-phone__feed-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(180deg, rgba(124, 58, 237, 0.04) 0%, transparent 12%),
        #eef2f7;
    min-height: 0;
}

.analytics-phone__feed-viewport::before,
.analytics-phone__feed-viewport::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 18px;
    z-index: 2;
    pointer-events: none;
}

.analytics-phone__feed-viewport::before {
    top: 0;
    background: linear-gradient(180deg, #eef2f7, transparent);
}

.analytics-phone__feed-viewport::after {
    bottom: 0;
    background: linear-gradient(0deg, #eef2f7, transparent);
}

.analytics-phone__feed-track {
    will-change: transform;
}

.analytics-phone__composer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #fff;
    border-top: 1px solid var(--border);
    color: var(--gray-light);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.analytics-phone__composer-input {
    flex: 1;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 100px;
    color: var(--gray-light);
}

.analytics-phone__composer i {
    margin-left: 8px;
    color: var(--gray);
}

/* One article per "page" — vertical article flip */
.analytics-msg {
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 12px 10px;
    transition: opacity 0.35s ease;
}

.analytics-msg__slide {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.analytics-msg.is-active .analytics-msg__bubble {
    box-shadow:
        0 4px 16px rgba(37, 99, 235, 0.12),
        0 0 0 1px rgba(37, 99, 235, 0.08);
    animation: analyticsArticleIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes analyticsArticleIn {
    from {
        opacity: 0.55;
        transform: translateY(10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.analytics-msg__bubble {
    background: #fff;
    border-radius: 14px 14px 14px 4px;
    padding: 12px 13px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: box-shadow 0.4s ease;
    max-height: 100%;
    overflow: hidden;
}

.analytics-msg__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.analytics-msg__emoji {
    font-size: 1rem;
    line-height: 1;
}

.analytics-msg__title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.analytics-msg__body {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text);
}

.analytics-msg__row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 0;
}

.analytics-msg__label {
    color: var(--gray);
    font-weight: 500;
}

.analytics-msg__value {
    font-weight: 600;
    text-align: right;
}

.analytics-msg__section-title {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--gray);
    margin: 8px 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.analytics-msg__list {
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
}

.analytics-msg__list li {
    position: relative;
    padding-left: 12px;
    margin-bottom: 2px;
}

.analytics-msg__list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.analytics-msg__product {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

.analytics-msg__product strong {
    font-size: 0.8125rem;
}

.analytics-msg__product span {
    color: var(--gray);
    font-size: 0.6875rem;
}

.analytics-msg__product-detail {
    font-weight: 500;
    color: var(--text) !important;
}

.analytics-msg__metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    margin-bottom: 8px;
}

.analytics-msg__metric {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.analytics-msg__metric-label {
    font-size: 0.625rem;
    color: var(--gray);
    font-weight: 500;
}

.analytics-msg__metric-value {
    font-size: 0.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.analytics-msg__metric-value--up {
    color: var(--danger);
}

.analytics-msg__metric-value--down {
    color: var(--success);
}

.analytics-msg__ai {
    margin-top: 8px;
    padding: 8px 10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(16, 185, 129, 0.06));
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.analytics-msg__ai-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.analytics-msg__ai p {
    font-size: 0.6875rem;
    line-height: 1.45;
    color: var(--text);
    margin: 0;
}

.analytics-msg__period {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 6px;
}

.analytics-msg__stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.analytics-msg__stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.analytics-msg__stat-icon {
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.analytics-msg__stat--up { color: var(--danger); }
.analytics-msg__stat--down { color: var(--success); }

.analytics-msg__highlight {
    padding: 8px 10px;
    background: rgba(37, 99, 235, 0.06);
    border-radius: var(--radius-sm);
}

.analytics-msg__highlight-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.analytics-msg__highlight p {
    font-size: 0.6875rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

.analytics-msg__competitor {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.analytics-msg__competitor strong {
    font-size: 0.875rem;
}

.analytics-msg__competitor span {
    font-size: 0.6875rem;
    color: var(--gray);
}

.analytics-msg__time {
    display: block;
    font-size: 0.625rem;
    color: var(--gray-light);
    margin-top: 6px;
    padding-left: 4px;
}

/* Compact preview cards */
.analytics-preview-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    cursor: pointer;
}

.analytics-preview-card:hover,
.analytics-preview-card.is-active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 18px rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.22);
}

.analytics-preview-card.is-active {
    background: rgba(255, 255, 255, 0.92);
}

.analytics-preview-card__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8125rem;
}

.analytics-preview-card__icon--ceo {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.05));
    color: var(--primary);
}

.analytics-preview-card__icon--sku {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: var(--secondary);
}

.analytics-preview-card__icon--brand {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    color: var(--warning);
}

.analytics-preview-card__icon--competitor {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.04));
    color: var(--danger);
}

.analytics-preview-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.analytics-preview-card__type {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.analytics-preview-card__time {
    font-size: 0.6875rem;
    color: var(--gray-light);
    font-weight: 500;
}

/* Pipeline */
.analytics-showcase__pipeline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    max-width: 920px;
    margin: 0 auto 28px;
    padding: 28px 32px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.analytics-pipeline__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    min-width: 72px;
}

.analytics-pipeline__step span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    max-width: 100px;
    line-height: 1.3;
}

.analytics-pipeline__step--highlight span {
    color: var(--primary);
    font-weight: 700;
    max-width: 140px;
}

.analytics-pipeline__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 1rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.analytics-pipeline__step--highlight .analytics-pipeline__icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.analytics-pipeline__step:hover .analytics-pipeline__icon {
    transform: translateY(-2px);
}

.analytics-pipeline__arrow {
    color: var(--gray-light);
    font-size: 0.625rem;
    opacity: 0.6;
}

/* Channels CTA */
.analytics-showcase__channels {
    text-align: center;
}

.analytics-showcase__channels-label {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.analytics-showcase__channels-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.analytics-showcase__channel-btn {
    min-width: 160px;
    padding: 14px 28px;
    font-size: 1rem;
}

.analytics-showcase__channel-btn img {
    width: 18px;
    height: 18px;
}

.analytics-showcase__channel-btn--tg {
    border-color: #229ED9;
    color: #229ED9;
}

.analytics-showcase__channel-btn--tg:hover {
    background: rgba(34, 158, 217, 0.08);
    border-color: #229ED9;
    color: #1d8bc0;
}

.analytics-showcase__channel-btn.btn--primary {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.analytics-showcase__channel-btn.btn--primary:hover {
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.fade-in--delay-1 { transition-delay: 0.1s; }
.fade-in--delay-2 { transition-delay: 0.2s; }
.fade-in--delay-3 { transition-delay: 0.3s; }

/* ---- Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in--delay {
    transition-delay: 0.15s;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    :root {
        --dashboard-slide-height: 680px;
    }

    .hero__grid {
        flex-direction: column;
        text-align: center;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .hero__mockup {
        max-width: 100%;
        width: 100%;
    }

    .hero-monitor {
        min-height: auto;
    }

    .pricing-card--featured {
        transform: none;
    }

    .pricing-card--featured:hover {
        transform: translateY(-4px);
    }

    .auth-layout__visual {
        display: none;
    }

    .dashboard-grid > .panel,
    .dashboard-grid--2 > .panel,
    .dashboard-grid--2 > .panel-stack {
        flex: 1 1 100%;
    }

    .price-overview {
        gap: 20px;
    }

    .price-overview__main {
        flex: 1 1 60%;
    }

    .price-overview__feed {
        flex: 1 1 40%;
        max-width: none;
    }

    .analytics-showcase__main {
        grid-template-columns: 1fr;
        gap: 28px;
        justify-items: center;
    }

    .analytics-showcase__phone-col {
        order: 1;
    }

    .analytics-showcase__cards-col {
        order: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        max-width: 480px;
        width: 100%;
    }

    .analytics-showcase__pipeline {
        gap: 10px 8px;
        padding: 24px 20px;
    }

    .analytics-pipeline__step span {
        max-width: 80px;
        font-size: 0.6875rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
        --dashboard-slide-height: 620px;
    }

    html {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    .section {
        padding: 64px 0;
    }

    .section__header {
        margin-bottom: 40px;
    }

    .hero {
        padding: calc(var(--header-height) + 32px) 0 48px;
    }

    .hero__grid {
        gap: 32px;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__buttons .btn {
        width: 100%;
    }

    .hero__stats {
        gap: 20px;
        justify-content: space-around;
        width: 100%;
    }

    .hero__stats > div {
        flex: 1 1 calc(50% - 10px);
        min-width: 120px;
    }

    .hero-monitor__toolbar {
        padding: 10px 14px;
    }

    .hero-monitor__body {
        padding: 12px;
    }

    .hero-monitor__columns {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-monitor__kpi-value {
        font-size: 1.125rem;
    }

    .mockup__body {
        padding: 14px;
    }

    .kpi-row {
        gap: 8px;
    }

    .kpi-card {
        padding: 12px;
    }

    .kpi-card__value {
        font-size: 1.125rem;
    }

    .feature-card {
        flex: 1 1 100%;
        min-width: 0;
        padding: 24px;
    }

    .benefit-card {
        flex: 1 1 calc(50% - 12px);
        min-width: 0;
        padding: 24px 16px;
    }

    .steps {
        gap: 16px;
    }

    .step {
        flex: 1 1 calc(50% - 8px);
        max-width: none;
        padding: 16px 8px;
    }

    .dashboard-preview {
        padding: 16px;
    }

    .dashboard-preview__toolbar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .chart-box {
        flex: 1 1 100%;
        min-width: 0;
        padding: 16px;
    }

    .price-overview {
        flex-direction: column;
        gap: 16px;
    }

    .price-overview__main,
    .price-overview__feed {
        flex: 1 1 0;
        max-width: none;
        min-height: 130px;
    }

    .price-overview__table-wrap,
    .change-feed {
        overflow-x: auto;
        overflow-y: auto;
    }

    .price-overview__header {
        padding: 20px 16px 16px;
    }

    .market-table th,
    .market-table td {
        padding: 12px 14px;
    }

    .market-table {
        min-width: 640px;
    }

    .dashboard-carousel__tab {
        padding: 8px 14px;
        font-size: 0.8125rem;
        flex-shrink: 0;
    }

    .dashboard-carousel__tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        margin: 0 -4px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .dashboard-carousel__tabs::-webkit-scrollbar {
        display: none;
    }

    .dashboard-carousel__timer {
        width: min(100%, 320px);
    }

    .cta__inner .btn {
        width: 100%;
    }

    .analytics-showcase__cards-col {
        grid-template-columns: 1fr;
        max-width: 280px;
    }

    .analytics-phone {
        max-width: 250px;
    }

    .analytics-phone__screen {
        height: 460px;
    }

    .analytics-showcase__pipeline {
        flex-direction: column;
        gap: 4px;
        padding: 20px 16px;
    }

    .analytics-pipeline__arrow {
        transform: rotate(90deg);
    }

    .analytics-pipeline__step span {
        max-width: none;
    }

    .analytics-showcase__channel-btn {
        width: 100%;
        max-width: 280px;
    }

    .presence-dashboard {
        padding: 12px;
    }

    .presence-dashboard__header {
        flex-direction: column;
        margin-bottom: 16px;
        padding-bottom: 14px;
    }

    .presence-dashboard__header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .presence-dashboard__table-wrap {
        display: none;
    }

    .presence-dashboard__cards {
        display: flex;
    }

    .presence-dashboard__toolbar {
        flex-direction: column;
        margin-bottom: 12px;
    }

    .presence-dashboard__filter {
        width: 100%;
    }

    .presence-dashboard__filter select {
        flex: 1;
    }

    .b2b-history__filters {
        flex-direction: column;
        align-items: stretch;
    }

    .b2b-history__filter select {
        width: 100%;
    }

    .b2b-history__stats {
        grid-template-columns: 1fr;
    }

    .b2b-table {
        min-width: 640px;
    }

    .b2b-dashboard {
        padding: 12px;
    }

    .b2b-dashboard__header {
        margin-bottom: 12px;
        gap: 10px;
    }

    .b2b-dashboard__header h3 {
        font-size: 1.125rem;
    }

    .b2b-dashboard__metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 12px;
    }

    .b2b-dashboard__metrics .b2b-metric:last-child {
        grid-column: 1 / -1;
    }

    .b2b-metric {
        padding: 12px 14px;
    }

    .b2b-dashboard__product {
        margin-bottom: 12px;
        padding: 14px 16px;
    }

    .b2b-dashboard__tabs {
        margin-bottom: 12px;
    }

    .b2b-history__chart-wrap {
        padding: 12px;
        min-height: 220px;
    }

    .b2b-history__chart-wrap canvas {
        height: 200px !important;
    }

    .ai-chat__header {
        padding: 14px 16px;
        align-items: flex-start;
    }

    .ai-chat__topic {
        width: 100%;
        text-align: center;
        font-size: 0.6875rem;
    }

    .ai-chat__themes {
        padding: 10px 12px 14px;
    }

    .container--wide,
    .dashboard-carousel,
    .dashboard-carousel__controls {
        min-width: 0;
        max-width: 100%;
    }

    .price-overview__header {
        flex-wrap: wrap;
        padding: 16px;
        gap: 12px;
    }

    .price-overview__header > div {
        min-width: 0;
    }

    .presence-dashboard__search {
        flex: 1 1 100%;
    }

    .presence-dashboard__titles h3 {
        font-size: 1.25rem;
    }

    .b2b-dashboard__product-name {
        overflow-wrap: anywhere;
    }

    .b2b-dashboard__filter-hint {
        flex-wrap: wrap;
    }

    .hero__mockup {
        width: 100%;
        max-width: 100%;
    }

    .mockup {
        max-width: 100%;
    }

    .chart-wrap {
        height: 160px;
    }

    .chart-wrap--lg {
        height: 220px;
    }

    .ai-chat__body {
        height: 320px;
    }

    .ai-chat__messages {
        padding: 16px;
    }

    .ai-message__bubble {
        max-width: 92%;
        padding: 12px 14px;
        font-size: 0.875rem;
    }

    .ai-chat__input {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .ai-chat__input input {
        min-width: 0;
        flex: 1 1 100%;
    }

    .ai-chat__input .btn {
        flex: 1 1 auto;
    }

    .pricing-card {
        flex: 1 1 100%;
        max-width: none;
        padding: 32px 24px;
    }

    .testimonial-card {
        padding: 24px 16px;
    }

    .testimonial-card p {
        font-size: 1rem;
    }

    .cta {
        padding: 48px 0 64px;
    }

    .cta__inner {
        padding: 40px 20px;
    }

    .footer {
        padding-top: 48px;
    }

    .footer__grid {
        gap: 32px;
    }

    .footer__brand,
    .footer__col {
        flex: 1 1 100%;
    }

    .auth-layout__form {
        padding: 24px 16px;
        align-items: flex-start;
        padding-top: 32px;
    }

    .auth-form__back {
        margin-bottom: 24px;
    }

    .form-group input,
    .ai-chat__input input {
        font-size: 16px;
    }

    .btn {
        min-height: 44px;
    }

    .nav-overlay {
        display: block;
        z-index: 1090;
    }

    .header {
        z-index: 1100;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        height: calc(100dvh - var(--header-height));
        bottom: auto;
        z-index: 1101;
        background: var(--surface);
        flex-direction: column;
        align-items: stretch;
        padding: 24px 16px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
        gap: 4px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(100%);
        opacity: 1;
        visibility: hidden;
        pointer-events: none;
        transition: transform var(--transition), visibility var(--transition);
    }

    .nav.open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .nav__link {
        padding: 14px 0;
        font-size: 1rem;
    }

    .nav__link::after {
        display: none;
    }

    .nav__actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: auto;
        padding-top: 20px;
        border-top: 1px solid var(--border);
    }

    .burger {
        display: flex;
        order: 3;
        margin-left: 4px;
    }

    .header__inner {
        gap: 12px;
    }

    .header__actions {
        display: none;
    }

    .logo {
        font-size: 1.125rem;
        flex: 1;
        min-width: 0;
    }

    .logo img {
        height: 32px;
    }

    .sidebar-overlay {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1001;
        width: min(280px, 85vw);
        transform: translateX(-100%);
        box-shadow: var(--shadow-xl);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .burger--sidebar {
        display: flex;
        flex-shrink: 0;
    }

    .dashboard-content {
        padding: 16px;
    }

    .dashboard-header {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 12px;
    }

    .dashboard-header > div:nth-child(2) {
        flex: 1;
        min-width: 0;
    }

    .dashboard-header h1 {
        font-size: 1.25rem;
    }

    .dashboard-header__actions {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }

    .dashboard-header__actions .btn {
        flex: 1;
    }

    .flash-messages--dashboard {
        padding: 0 16px;
    }

    .dashboard-grid,
    .dashboard-grid--2 {
        gap: 16px;
        margin-top: 16px;
    }

    .dashboard-grid > .panel,
    .dashboard-grid--2 > .panel,
    .dashboard-grid--2 > .panel-stack {
        flex: 1 1 100%;
        min-width: 0;
    }

    .panel__header {
        flex-wrap: wrap;
        gap: 8px;
        padding: 16px 16px 0;
    }

    .panel .chart-wrap {
        padding: 12px 16px 16px;
    }

    .table-wrap {
        padding: 0 16px 16px;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 560px;
    }

    .alert-list,
    .change-list {
        padding: 0 16px 16px;
    }

    .change-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .change-item__prices {
        width: 100%;
    }

    .change-item__pct {
        text-align: left;
    }

    .kpi-row--4 .kpi-card {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }
}

@media (max-width: 480px) {
    :root {
        --dashboard-slide-height: 560px;
    }

    html {
        font-size: 14px;
    }

    .hero__stats {
        gap: 16px;
    }

    .hero__stats > div {
        flex: 1 1 100%;
        text-align: center;
    }

    .hero-monitor__kpis {
        grid-template-columns: 1fr;
    }

    .hero-monitor__columns {
        grid-template-columns: 1fr;
    }

    .hero-monitor__kpi {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 12px 14px;
    }

    .hero-monitor__kpi-value {
        margin-bottom: 0;
        font-size: 1.375rem;
    }

    .hero-monitor__feed-item {
        grid-template-columns: 38px 1fr auto;
        gap: 8px;
        font-size: 0.8125rem;
    }

    .benefit-card {
        flex: 1 1 100%;
    }

    .step {
        flex: 1 1 100%;
    }

    .kpi-row:not(.kpi-row--4) .kpi-card {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
    }

    .btn--lg {
        padding: 12px 20px;
        font-size: 0.9375rem;
    }

    .b2b-dashboard__table-wrap {
        display: none;
    }

    .b2b-dashboard__cards {
        display: flex;
    }

    .b2b-dashboard__metrics .b2b-metric:last-child {
        grid-column: 1 / -1;
    }

    .b2b-history__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .b2b-history__table-wrap {
        display: none;
    }

    .b2b-history__chart-wrap canvas {
        height: 240px !important;
    }

    .presence-dashboard__header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .presence-dashboard__header-actions .btn {
        width: 100%;
    }

    .b2b-dashboard__header .btn {
        width: 100%;
    }

    .footer__bottom {
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }
}
