/* New design tokens (ported from preview-dashboard).
           Values are HSL triplets so Tailwind opacity modifiers (bg-brand/10)
           and raw hsl(var(--token) / 0.5) both work. */
        :root {
            --card: 0 0% 100%;
            --border: 0 0% 85%;
            --foreground: 244 89% 8%;
            --muted-foreground: 222 6% 54%;
            --secondary-bg: 220 20% 96%;
            --brand: 242 100% 68%;
            --brand-foreground: 0 0% 100%;
            --text-light: 233 8% 73%;
            /* Status / accent colors used by KPI icons and badges */
            --stat-orange: 13 100% 71%;
            --stat-yellow: 42 100% 71%;
            --stat-green: 132 64% 48%;
            --stat-red: 7 86% 56%;
            --stat-blue: 218 100% 68%;
            /* Gradients */
            --gradient-brand: linear-gradient(135deg, hsl(242 100% 68%), hsl(242 100% 58%));
            --gradient-success: linear-gradient(135deg, hsl(155 65% 52%), hsl(175 70% 50%));
            --gradient-warm: linear-gradient(135deg, hsl(14 100% 67%), hsl(40 100% 62%));
            /* KPI chart gradient stops (cyan → purple → pink) */
            --chart-grad-1: 195 88% 58%;
            --chart-grad-2: 260 90% 68%;
            --chart-grad-3: 330 90% 70%;
            /* Glow */
            --glow-brand: 0 4px 30px rgba(96, 91, 255, 0.25);
        }
        .gradient-brand { background: var(--gradient-brand); }
        .gradient-success { background: var(--gradient-success); }
        .gradient-warm { background: var(--gradient-warm); }
        .gradient-text {
            background: var(--gradient-brand);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            color: transparent;
        }
        /* Soft 2-layer card shadow + subtle border, used by dashboard cards */
        .card-soft {
            box-shadow: 1px 17px 44px rgba(3, 2, 41, 0.07),
                        0 4px 7px rgba(3, 2, 41, 0.04);
            border: 1px solid hsl(220 20% 94%);
        }
        .card-hover {
            transition: transform 0.3s cubic-bezier(.4,0,.2,1),
                        box-shadow 0.3s cubic-bezier(.4,0,.2,1);
        }
        .card-hover:hover {
            transform: translateY(-2px);
            box-shadow: 0 20px 45px rgba(3, 2, 41, 0.1),
                        0 8px 14px rgba(3, 2, 41, 0.05);
        }
        .glow-brand {
            box-shadow: var(--glow-brand);
        }
        .text-kpi {
            font-size: 30px;
            font-weight: 800;
            line-height: 1;
        }
        .text-text-light { color: hsl(var(--text-light)); }
        html, body {
            font-family: 'Nunito', system-ui, -apple-system, 'Helvetica', sans-serif !important;
        }
        body {
            background-color: #f0f2f5;
            -webkit-font-smoothing: antialiased;
            /* New header (cabinet): row 1 = 56px desktop / 64px mobile, nav row ≈ 48px when auth.
               Override the inline body padding-top: 30px (legacy fixed-header offset) so the
               new taller header doesn't cover content. !important is required to beat the inline style. */
            padding-top: 104px !important;
        }
        @media (max-width: 767px) {
            body {
                /* Mobile only renders row 1 (h-16 = 64px), no nav row */
                padding-top: 64px !important;
            }
        }
        .input-focus:focus {
            box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
        }
        .animate-pulse-slow {
            animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }
        /* Select2 кастомные стили для интеграции с Tailwind */
        .select2-container--default .select2-selection--single {
            height: 42px;
            border: 1px solid #d1d5db;
            border-radius: 0.5rem;
            padding: 0.5rem 1rem;
        }
        .select2-container--default .select2-selection--single .select2-selection__rendered {
            line-height: 26px;
            padding-left: 0;
        }
        .select2-container--default .select2-selection--single .select2-selection__arrow {
            height: 40px;
        }
        .select2-container--default.select2-container--focus .select2-selection--single {
            border-color: #0284c7;
            box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
        }
        .select2-dropdown {
            border: 1px solid #d1d5db;
            border-radius: 0.5rem;
        }
        .select2-search--dropdown .select2-search__field {
            border: 1px solid #d1d5db;
            border-radius: 0.375rem;
            padding: 0.5rem;
        }
        .select2-results__option--highlighted {
            background-color: #0284c7 !important;
        }
            /* === Page wrapper ===
       Match the new design's `<main class="max-w-7xl mx-auto px-4 sm:px-6">`
       — padding is INSIDE the max-width, not outside, so the page can never be
       wider than the header.
       Sticky-footer pattern: main grows to fill any remaining viewport space
       (so the footer is glued to the bottom on short pages without leaving a
       visible gap above it), but never shrinks below its content height. */
    .dashboard-page.main-content {
        padding: 0;
        flex: 1 0 auto;
    }
    .dashboard-container {
        width: 100%;
        max-width: 80rem;          /* 1280 px — matches max-w-7xl */
        padding-left: 16px;        /* px-4 */
        padding-right: 16px;
        padding-top: 24px;         /* py-6 */
        padding-bottom: 24px;      /* py-6 — the banner-aware bottom margin lives on the footer */
    }
    @media (min-width: 640px) {
        .dashboard-container {
            padding-left: 24px;    /* sm:px-6 */
            padding-right: 24px;
        }
    }

    /* === Card primitive === */
    .dashboard-card {
        position: relative;
        overflow: hidden;
        background: hsl(var(--card));
        border-radius: 16px; /* rounded-2xl */
        border: 1px solid hsl(220 20% 94%);
        box-shadow: 1px 17px 44px rgba(3, 2, 41, 0.07),
                    0 4px 7px rgba(3, 2, 41, 0.04);
        padding: 24px;
        transition: transform 0.3s cubic-bezier(.4,0,.2,1),
                    box-shadow 0.3s cubic-bezier(.4,0,.2,1);
    }
    .dashboard-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 45px rgba(3, 2, 41, 0.1),
                    0 8px 14px rgba(3, 2, 41, 0.05);
    }
    .dashboard-card--accent {
        padding: 20px;
    }
    .dashboard-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
    }
    .dashboard-card-title {
        font-size: 16px;
        font-weight: 600;
        color: hsl(var(--foreground));
        margin-bottom: 16px;
    }
    .dashboard-card-header .dashboard-card-title {
        margin-bottom: 0;
    }
    .dashboard-link {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 14px;
        font-weight: 500;
        color: hsl(var(--brand));
        text-decoration: none;
        transition: opacity 0.2s;
    }
    .dashboard-link:hover {
        text-decoration: underline;
    }

    /* === Decorative blobs === */
    .dashboard-blob {
        position: absolute;
        width: 128px;
        height: 128px;
        border-radius: 50%;
        top: -40px;
        right: -40px;
        opacity: 0.07;
        pointer-events: none;
    }
    .dashboard-blob--brand   { background: var(--gradient-brand); }
    .dashboard-blob--success { background: var(--gradient-success); }
    .dashboard-blob--warm    { background: var(--gradient-warm); }

    /* === Stat icon (44px round, tinted) === */
    .dashboard-icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .dashboard-icon--orange {
        background: hsl(var(--stat-orange) / 0.15);
        color: hsl(var(--stat-orange));
    }
    .dashboard-icon--yellow {
        background: hsl(var(--stat-yellow) / 0.20);
        color: hsl(var(--stat-yellow));
    }
    .dashboard-icon--green {
        background: hsl(var(--stat-green) / 0.15);
        color: hsl(var(--stat-green));
    }
    .dashboard-icon--blue {
        background: hsl(var(--stat-blue) / 0.15);
        color: hsl(var(--stat-blue));
    }
    .dashboard-icon--purple {
        background: hsl(260 90% 68% / 0.15);
        color: hsl(260 90% 58%);
    }
    .dashboard-icon--frozen {
        background: hsl(218 100% 68% / 0.15);
        color: hsl(218 100% 58%);
    }
    .dashboard-blob--freeze {
        background: linear-gradient(135deg, hsl(218 100% 68%), hsl(195 100% 65%));
    }

    /* Frozen balance styling */
    .dashboard-balance-frozen {
        opacity: 0.55;
    }
    .dashboard-balance-frozen-note {
        font-size: 12px;
        color: hsl(var(--muted-foreground));
        margin-top: 10px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .dashboard-balance-frozen-note svg {
        width: 14px; height: 14px;
        color: hsl(218 100% 58%);
        flex-shrink: 0;
    }
    /* Small pill-style "Пополнить" for frozen state (less prominent than primary CTA) */
    .dashboard-cta--muted {
        background: hsl(var(--secondary-bg));
        color: hsl(var(--foreground));
        border: 1px solid hsl(var(--border));
    }
    .dashboard-cta--muted:hover {
        background: hsl(var(--border));
    }

    /* === Subscription card === */
    .dashboard-sub__desc {
        font-size: 13px;
        color: hsl(var(--muted-foreground));
        margin-top: -8px;
        margin-bottom: 14px;
        line-height: 1.45;
    }
    .dashboard-sub__hero {
        display: flex;
        align-items: baseline;
        gap: 8px;
        margin-bottom: 10px;
    }
    .dashboard-sub__hero .text-kpi { color: hsl(var(--foreground)); }
    .dashboard-sub__tariff-tag {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 12px;
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        background: hsl(260 90% 68% / 0.1);
        color: hsl(260 90% 48%);
    }
    .dashboard-sub__bar {
        height: 6px;
        background: hsl(var(--secondary-bg));
        border-radius: 9999px;
        overflow: hidden;
        margin-bottom: 14px;
    }
    .dashboard-sub__bar-fill {
        height: 100%;
        background: var(--gradient-brand);
        border-radius: 9999px;
        transition: width .6s cubic-bezier(.4,0,.2,1);
    }
    .dashboard-sub__section {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px dashed hsl(var(--border));
    }
    .dashboard-sub__section + .dashboard-sub__section { /* second+ section */ }
    .dashboard-sub__section-label {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: hsl(var(--muted-foreground));
        margin-bottom: 8px;
    }
    .dashboard-sub__micro {
        font-size: 12px;
        color: hsl(var(--muted-foreground));
        margin-top: 8px;
    }
    .dashboard-sub__hero-small {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 10px;
        font-size: 13px;
        color: hsl(var(--foreground));
    }
    .dashboard-sub__hero-small strong {
        font-size: 22px;
        font-weight: 800;
        color: hsl(var(--foreground));
        line-height: 1;
    }
    .dashboard-sub__date {
        font-size: 12px;
        color: hsl(var(--muted-foreground));
    }
    .dashboard-sub__btn-secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        background: #fff;
        color: hsl(var(--brand));
        border: 1px solid hsl(var(--brand) / 0.3);
        font-size: 13px;
        font-weight: 600;
        padding: 9px 16px;
        border-radius: 10px;
        cursor: pointer;
        transition: all .15s;
        text-decoration: none;
    }
    .dashboard-sub__btn-secondary:hover {
        background: hsl(var(--brand) / 0.05);
        border-color: hsl(var(--brand) / 0.5);
    }

    /* === Balance / bonus card layout === */
    .dashboard-card-row {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 24px;
    }
    .dashboard-card-row__left {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
    }
    .dashboard-card-label {
        font-size: 14px;
        font-weight: 500;
        color: hsl(var(--muted-foreground));
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .dashboard-cta {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        background: var(--gradient-brand);
        color: hsl(var(--brand-foreground));
        font-size: 12px;
        font-weight: 600;
        padding: 8px 18px;
        border-radius: 12px;
        text-decoration: none;
        transition: opacity 0.2s, transform 0.05s;
    }
    .dashboard-cta:hover { opacity: 0.9; }
    .dashboard-cta:active { transform: translateY(1px); }

    .dashboard-balance-value {
        position: relative;
        display: flex;
        align-items: baseline;
        gap: 8px;
    }
    .dashboard-clicks-label {
        font-size: 11px;
        font-weight: 700;
        color: hsl(var(--text-light));
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* === Chart wrapper + KPI row under chart === */
    .dashboard-chart-wrapper {
        position: relative;
        height: 260px;
        width: 100%;
        margin-bottom: 16px;
    }
    .dashboard-chart-wrapper #weeklyChart {
        width: 100%;
        height: 100%;
    }
    .dashboard-kpi-row {
        display: flex;
        gap: 32px;
        padding-top: 16px;
        margin-top: 16px;
        border-top: 1px solid hsl(var(--border));
    }
    .dashboard-kpi-label {
        font-size: 12px;
        color: hsl(var(--muted-foreground));
        margin-bottom: 4px;
    }
    /* Chart KPI value: text-2xl font-bold (24 px / 700) — matches preview-dashboard */
    .dashboard-kpi-value {
        font-size: 24px;
        font-weight: 700;
        line-height: 1.1;
    }

    /* === Recent clicks table ===
       Matches preview-dashboard: thead text-[11px] uppercase tracking-wider,
       cells px-6 py-3 / px-3 py-3, hover:bg-secondary/30, border-b last:border-0,
       table extends past card padding via -mx-6. */
    .dashboard-table-wrapper {
        margin: 0 -24px -24px;
    }
    .dashboard-table {
        width: 100%;
        font-size: 14px;
        border-collapse: collapse;
        table-layout: auto;
    }
    .dashboard-table thead tr {
        border-bottom: 1px solid hsl(var(--border));
    }
    .dashboard-table thead th {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: hsl(var(--muted-foreground));
        padding: 10px 12px; /* py-2.5 px-3 */
        text-align: left;
        white-space: nowrap;
    }
    .dashboard-table thead th:first-child {
        padding-left: 24px; /* px-6 first cell */
    }
    .dashboard-table thead th:last-child {
        padding-right: 24px; /* px-6 last cell */
    }
    .dashboard-table thead th.text-right { text-align: right; }
    .dashboard-table thead th.text-center { text-align: center; }

    .dashboard-table tbody tr {
        border-bottom: 1px solid hsl(var(--border));
        transition: background-color 0.15s;
    }
    .dashboard-table tbody tr:last-child {
        border-bottom: 0;
    }
    .dashboard-table tbody tr:hover {
        background: hsl(var(--secondary-bg) / 0.6);
    }
    .dashboard-table tbody td {
        padding: 12px; /* py-3 px-3 */
        color: hsl(var(--foreground));
        vertical-align: middle;
    }
    .dashboard-table tbody td:first-child {
        padding-left: 24px;
        padding-right: 12px;
        font-weight: 500;
        white-space: nowrap;
    }
    .dashboard-table tbody td:last-child {
        padding-right: 24px;
        padding-left: 12px;
        white-space: nowrap;
        font-size: 12px;
        color: hsl(var(--muted-foreground));
    }
    .dashboard-table .text-muted-cell {
        color: hsl(var(--muted-foreground));
        white-space: nowrap;
    }
    .dashboard-row-link {
        color: hsl(var(--foreground));
        text-decoration: none;
        font-weight: 500;
    }
    .dashboard-row-link:hover {
        color: hsl(var(--brand));
    }
    .dashboard-row-link-muted {
        color: hsl(var(--muted-foreground));
        text-decoration: none;
    }
    .dashboard-row-link-muted:hover {
        color: hsl(var(--foreground));
    }
    .dashboard-row-na {
        color: hsl(var(--muted-foreground) / 0.6);
    }

    /* === Status pills (px-6 py-2 like new design) === */
    .dashboard-status {
        display: inline-flex;
        align-items: center;
        font-size: 12px;
        font-weight: 600;
        padding: 4px 18px;
        border-radius: 9999px;
        line-height: 1.4;
    }
    .dashboard-status--ok {
        background: hsl(var(--stat-green) / 0.15);
        color: hsl(var(--stat-green));
    }
    .dashboard-status--warn {
        background: hsl(var(--stat-orange) / 0.15);
        color: hsl(var(--stat-orange));
    }
    .dashboard-status--err {
        background: hsl(var(--stat-red) / 0.15);
        color: hsl(var(--stat-red));
    }

    /* === Empty state === */
    .dashboard-empty {
        text-align: center;
        padding: 48px 0;
        color: hsl(var(--muted-foreground));
    }
    .dashboard-empty svg {
        color: hsl(var(--muted-foreground) / 0.5);
    }

    /* === Promo slider (gradient-brand cards) ===
       Gradient + glow live on the parent .dashboard-promo so dots can
       sit absolutely at the bottom over the gradient (slides themselves
       are transparent layers). */
    .dashboard-promo {
        position: relative;
        border-radius: 16px;
        overflow: hidden;
        background: var(--gradient-brand);
        box-shadow: var(--glow-brand),
                    1px 17px 44px rgba(96, 91, 255, 0.1);
    }
    .slider-container {
        position: relative;
        width: 100%;
        min-height: 192px;
    }
    .slider-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
        pointer-events: none;
    }
    .slider-slide.active {
        opacity: 1;
        pointer-events: auto;
    }
    .dashboard-promo__slide {
        /* IMPORTANT: keep .slider-slide's position: absolute — do NOT
           override it here, otherwise both slides will stack vertically. */
        background: transparent;
        color: hsl(var(--brand-foreground));
        padding: 20px 20px 36px; /* extra bottom for dots strip */
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }
    .dashboard-promo__blob {
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        pointer-events: none;
    }
    .dashboard-promo__blob--bottom {
        width: 128px;
        height: 128px;
        bottom: -24px;
        right: -24px;
    }
    .dashboard-promo__blob--top {
        width: 64px;
        height: 64px;
        top: 16px;
        right: 32px;
    }
    .dashboard-promo__head {
        position: relative;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }
    .dashboard-promo__head h3 {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
    }
    .dashboard-promo__text {
        position: relative;
        font-size: 14px; /* text-sm */
        opacity: 0.9;
        margin-bottom: 16px;
        line-height: 1.4;
    }
    .dashboard-promo__btn {
        display: block;
        width: 100%;
        text-align: center;
        background: hsl(var(--card));
        color: hsl(var(--foreground));
        font-weight: 500;
        font-size: 14px;
        padding: 10px 16px; /* py-2.5 */
        border-radius: 12px;
        text-decoration: none;
        position: relative;
        transition: background-color 0.2s;
    }
    .dashboard-promo__btn:hover {
        background: hsl(var(--secondary-bg));
    }
    /* Dots sit over the gradient at the bottom of the promo container */
    .dashboard-promo__dots {
        position: absolute;
        bottom: 12px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        z-index: 5;
    }
    .slider-dot {
        width: 8px;
        height: 8px;
        border-radius: 9999px;
        background: rgba(255, 255, 255, 0.4);
        border: 0;
        padding: 0;
        cursor: pointer;
        transition: background-color 0.2s, width 0.2s;
    }
    .slider-dot.active {
        background: #ffffff;
        width: 16px; /* w-4 active dot */
    }

    /* =========================================================
       Subscription MODAL (попап оптовой подписки)
       ========================================================= */

    .pf-modal {
        position: fixed;
        inset: 0;
        z-index: 2000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s;
    }
    .pf-modal.open {
        opacity: 1;
        pointer-events: auto;
    }
    .pf-modal__backdrop {
        position: fixed;
        inset: 0;
        background: rgba(10, 10, 30, 0.55);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    .pf-modal__dialog {
        position: relative;
        width: 100%;
        max-width: 640px;
        background: hsl(var(--card));
        border-radius: 20px;
        padding: 28px 28px 22px;
        box-shadow: 0 24px 60px rgba(3, 2, 41, 0.2), 0 8px 20px rgba(3, 2, 41, 0.08);
        border: 1px solid hsl(220 20% 94%);
        transform: translateY(12px) scale(0.98);
        transition: transform .3s cubic-bezier(.4,0,.2,1);
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }
    .pf-modal.open .pf-modal__dialog {
        transform: translateY(0) scale(1);
    }
    .pf-modal__close {
        position: absolute;
        top: 14px; right: 14px;
        width: 32px; height: 32px;
        border-radius: 50%;
        background: hsl(var(--secondary-bg));
        color: hsl(var(--muted-foreground));
        border: 0;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer;
        transition: background .15s;
        z-index: 1;
    }
    .pf-modal__close:hover { background: hsl(var(--border)); color: hsl(var(--foreground)); }
    .pf-modal__close svg { width: 16px; height: 16px; }

    .pf-modal__head {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 14px;
        padding-right: 40px;
    }
    .pf-modal__head-icon {
        width: 44px; height: 44px;
        border-radius: 12px;
        background: var(--gradient-brand);
        color: hsl(var(--brand-foreground));
        display: flex; align-items: center; justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 4px 14px rgba(96,91,255,.25);
    }
    .pf-modal__head h2 {
        font-size: 20px;
        font-weight: 700;
        line-height: 1.2;
        color: hsl(var(--foreground));
    }
    .pf-modal__head p {
        font-size: 13px;
        color: hsl(var(--muted-foreground));
        margin-top: 4px;
        line-height: 1.4;
    }
    .pf-modal__intro {
        font-size: 13px;
        line-height: 1.5;
        color: hsl(var(--foreground));
        margin-bottom: 18px;
        padding: 14px 16px;
        background: hsl(var(--secondary-bg) / 0.7);
        border-radius: 12px;
        border-left: 3px solid hsl(var(--brand));
    }
    .pf-modal__intro strong { font-weight: 700; }

    /* Callout (акцентный блок, напр. про заморозку баланса) */
    .pf-modal__callout {
        display: flex;
        gap: 12px;
        padding: 14px 16px;
        border-radius: 12px;
        margin-bottom: 18px;
        font-size: 13px;
        line-height: 1.5;
    }
    .pf-modal__callout > svg {
        width: 22px; height: 22px;
        flex-shrink: 0;
        margin-top: 1px;
    }
    .pf-modal__callout strong { font-weight: 700; color: hsl(var(--foreground)); }
    .pf-modal__callout--freeze {
        background: hsl(218 100% 68% / 0.08);
        border: 1px solid hsl(218 100% 68% / 0.22);
        color: hsl(var(--foreground));
    }
    .pf-modal__callout--freeze > svg {
        color: hsl(218 100% 58%);
    }
    .pf-modal__callout-title {
        font-weight: 700;
        color: hsl(var(--foreground));
        margin-bottom: 2px;
        display: block;
    }

    /* Discount row in summary (показывается при days ≥ 7) */
    .pf-summary__row--discount {
        color: hsl(var(--stat-green)) !important;
        font-weight: 700;
    }
    .pf-summary__row--discount span,
    .pf-summary__row--discount strong {
        color: hsl(var(--stat-green)) !important;
    }

    /* Зачёркнутая "исходная цена" перед финальной */
    .pf-summary__total-was {
        font-size: 15px;
        font-weight: 500;
        color: hsl(var(--muted-foreground));
        text-decoration: line-through;
        text-decoration-thickness: 1.5px;
        margin-right: 10px;
        vertical-align: 4px;
    }

    /* Native hint — подсказка "добавьте столько-то дней, сэкономите..." */
    .pf-hint {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        padding: 12px 14px;
        border-radius: 12px;
        margin-bottom: 18px;
        font-size: 13px;
        line-height: 1.45;
        background: hsl(42 100% 71% / 0.15);
        border-left: 3px solid hsl(var(--stat-yellow));
    }
    .pf-hint > svg {
        width: 20px; height: 20px;
        flex-shrink: 0;
        margin-top: 1px;
        color: hsl(42 100% 48%);
    }
    .pf-hint strong { font-weight: 700; }
    .pf-hint__cta {
        display: inline-block;
        margin-top: 6px;
        background: none;
        border: 0;
        padding: 3px 10px;
        border-radius: 6px;
        color: hsl(var(--brand));
        font-weight: 700;
        font-family: inherit;
        font-size: 12px;
        cursor: pointer;
        background: hsl(var(--brand) / 0.1);
        transition: background .15s;
    }
    .pf-hint__cta:hover { background: hsl(var(--brand) / 0.18); }
    .pf-hint--max {
        background: hsl(var(--stat-green) / 0.12);
        border-left-color: hsl(var(--stat-green));
    }
    .pf-hint--max > svg { color: hsl(var(--stat-green)); }

    /* Extra styling for rules — good (positive, green) and warn */
    .pf-modal__rules li.good svg { color: hsl(var(--stat-green)); }
    .pf-modal__rules li strong { font-weight: 700; }

    /* Tariff grid */
    .pf-modal__section-title {
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: hsl(var(--muted-foreground));
        margin-bottom: 10px;
    }
    .pf-tariff-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 16px;
    }
    @media (max-width: 520px) {
        .pf-tariff-grid { grid-template-columns: 1fr; }
    }
    .pf-tariff {
        position: relative;
        background: hsl(var(--card));
        border: 1.5px solid hsl(var(--border));
        border-radius: 14px;
        padding: 14px;
        cursor: pointer;
        transition: all .18s;
        text-align: left;
        font-family: inherit;
        width: 100%;
    }
    .pf-tariff:hover {
        border-color: hsl(var(--brand) / 0.4);
        background: hsl(var(--brand) / 0.03);
    }
    .pf-tariff.selected {
        border-color: hsl(var(--brand));
        background: hsl(var(--brand) / 0.06);
        box-shadow: 0 0 0 3px hsl(var(--brand) / 0.12);
    }
    .pf-tariff--disabled {
        opacity: 0.45;
        cursor: not-allowed;
        pointer-events: auto;
    }
    .pf-tariff--disabled:hover {
        border-color: hsl(var(--border));
        background: hsl(var(--card));
    }
    .pf-tariff__check {
        position: absolute;
        top: 10px; right: 10px;
        width: 20px; height: 20px;
        border-radius: 50%;
        background: hsl(var(--brand));
        color: #fff;
        display: none;
        align-items: center;
        justify-content: center;
    }
    .pf-tariff__check svg { width: 12px; height: 12px; }
    .pf-tariff.selected .pf-tariff__check { display: flex; }
    .pf-tariff__volume {
        font-size: 18px;
        font-weight: 800;
        color: hsl(var(--foreground));
        line-height: 1.1;
    }
    .pf-tariff__volume-label {
        font-size: 10px;
        font-weight: 700;
        color: hsl(var(--muted-foreground));
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-top: 3px;
    }
    .pf-tariff__price {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px dashed hsl(var(--border));
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 8px;
    }
    .pf-tariff__price-main {
        font-size: 15px;
        font-weight: 700;
        color: hsl(var(--foreground));
    }
    .pf-tariff__price-unit {
        font-size: 10px;
        font-weight: 700;
        color: hsl(var(--stat-green));
        background: hsl(var(--stat-green) / 0.12);
        padding: 3px 6px;
        border-radius: 4px;
        white-space: nowrap;
    }
    .pf-tariff__badge {
        position: absolute;
        top: -8px; left: 12px;
        font-size: 9px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        background: var(--gradient-warm);
        color: #fff;
        padding: 3px 8px;
        border-radius: 6px;
        line-height: 1;
        box-shadow: 0 2px 8px rgba(255, 107, 80, .3);
    }

    /* Days picker (выбор срока) */
    .pf-days-picker {
        margin-bottom: 18px;
    }
    .pf-days-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 10px;
    }
    .pf-days-chip {
        background: hsl(var(--card));
        border: 1.5px solid hsl(var(--border));
        border-radius: 10px;
        padding: 8px 14px;
        font-size: 13px;
        font-weight: 600;
        color: hsl(var(--foreground));
        cursor: pointer;
        transition: all .15s;
        font-family: inherit;
    }
    .pf-days-chip:hover {
        border-color: hsl(var(--brand) / 0.4);
        background: hsl(var(--brand) / 0.03);
    }
    .pf-days-chip.selected {
        border-color: hsl(var(--brand));
        background: hsl(var(--brand) / 0.08);
        color: hsl(var(--brand));
    }
    .pf-days-custom {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 13px;
    }
    .pf-days-custom__label {
        color: hsl(var(--muted-foreground));
    }
    .pf-days-custom__field {
        position: relative;
        display: inline-flex;
        align-items: center;
    }
    .pf-days-input {
        width: 88px;
        padding: 8px 42px 8px 12px;
        border: 1.5px solid hsl(var(--border));
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        color: hsl(var(--foreground));
        background: hsl(var(--card));
        font-family: inherit;
        transition: border-color .15s;
        -moz-appearance: textfield;
    }
    .pf-days-input::-webkit-outer-spin-button,
    .pf-days-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
    .pf-days-input:focus {
        outline: none;
        border-color: hsl(var(--brand));
        box-shadow: 0 0 0 3px hsl(var(--brand) / 0.12);
    }
    .pf-days-custom__suffix {
        position: absolute;
        right: 12px;
        font-size: 12px;
        color: hsl(var(--muted-foreground));
        pointer-events: none;
    }

    /* Summary (итого) */
    .pf-summary {
        padding: 16px 18px;
        background: linear-gradient(135deg, hsl(195 88% 58% / 0.05), hsl(260 90% 68% / 0.06), hsl(330 90% 70% / 0.05));
        border: 1px solid hsl(260 90% 68% / 0.2);
        border-radius: 14px;
        margin-bottom: 18px;
    }
    .pf-summary__row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        font-size: 13px;
        color: hsl(var(--muted-foreground));
        padding: 4px 0;
    }
    .pf-summary__row strong {
        color: hsl(var(--foreground));
        font-weight: 700;
    }
    .pf-summary__placeholder {
        color: hsl(var(--muted-foreground)) !important;
        font-weight: 500 !important;
        font-style: italic;
    }
    .pf-summary__total {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px dashed hsl(260 90% 68% / 0.3);
    }
    .pf-summary__total-label {
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: hsl(var(--foreground));
    }
    .pf-summary__total-value {
        font-size: 28px;
        font-weight: 800;
        line-height: 1;
        background: var(--gradient-brand);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
    }
    .pf-summary__note {
        display: flex;
        gap: 10px;
        margin-top: 12px;
        padding: 10px 12px;
        background: hsl(var(--stat-green) / 0.08);
        border-radius: 10px;
        font-size: 12.5px;
        line-height: 1.45;
        color: hsl(var(--foreground));
    }
    .pf-summary__note svg {
        flex-shrink: 0;
        width: 18px; height: 18px;
        color: hsl(var(--stat-green));
        margin-top: 1px;
    }
    .pf-summary__note strong { font-weight: 700; }
    .pf-summary__note u {
        text-decoration: underline;
        text-decoration-color: hsl(var(--stat-green));
        text-decoration-thickness: 2px;
        text-underline-offset: 2px;
    }

    /* Visual separator between "what you get" and "calculation" sections */
    .pf-summary__divider {
        height: 1px;
        border-top: 1px dashed hsl(260 90% 68% / 0.25);
        margin: 8px 0;
    }

    /* Effective per-click rate (под итогом) */
    .pf-summary__effective {
        display: flex;
        justify-content: flex-end;
        align-items: baseline;
        gap: 8px;
        margin-top: 6px;
        font-size: 12px;
        color: hsl(var(--muted-foreground));
    }
    .pf-summary__effective strong {
        color: hsl(var(--foreground));
        font-weight: 700;
    }
    .pf-summary__effective-was {
        color: hsl(var(--text-light));
        text-decoration: line-through;
        text-decoration-thickness: 1.2px;
    }

    /* Rules list */
    .pf-modal__rules {
        margin-bottom: 18px;
    }
    .pf-modal__rules ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .pf-modal__rules li {
        display: flex;
        gap: 10px;
        padding: 5px 0;
        font-size: 13px;
        color: hsl(var(--foreground));
        line-height: 1.4;
    }
    .pf-modal__rules li svg {
        flex-shrink: 0;
        width: 16px; height: 16px;
        margin-top: 2px;
        color: hsl(var(--brand));
    }
    .pf-modal__rules li.warn svg { color: hsl(var(--stat-orange)); }

    /* Методы оплаты (табы) */
    .pf-modal__payment-methods {
        margin-bottom: 18px;
    }
    .pf-methods-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .pf-method-tab {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: hsl(var(--card));
        border: 1.5px solid hsl(var(--border));
        border-radius: 10px;
        padding: 9px 14px;
        font-size: 13px;
        font-weight: 600;
        color: hsl(var(--foreground));
        cursor: pointer;
        transition: all .15s;
        font-family: inherit;
    }
    .pf-method-tab svg { width: 16px; height: 16px; }
    .pf-method-tab:hover {
        border-color: hsl(var(--brand) / 0.4);
        background: hsl(var(--brand) / 0.03);
    }
    .pf-method-tab.selected {
        border-color: hsl(var(--brand));
        background: hsl(var(--brand) / 0.08);
        color: hsl(var(--brand));
    }

    /* Actions */
    .pf-modal__actions {
        display: flex;
        gap: 10px;
        padding-top: 14px;
        border-top: 1px solid hsl(var(--border));
    }
    .pf-modal__btn {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 12px 18px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 600;
        border: 0;
        cursor: pointer;
        transition: all .15s;
        text-decoration: none;
        font-family: inherit;
    }
    .pf-modal__btn svg { width: 16px; height: 16px; }
    .pf-modal__btn--primary {
        background: var(--gradient-brand);
        color: #fff;
        box-shadow: 0 4px 14px rgba(96,91,255,.25);
    }
    .pf-modal__btn--primary:hover:not(:disabled) { opacity: .9; }
    .pf-modal__btn--primary:disabled {
        background: hsl(var(--border));
        color: hsl(var(--muted-foreground));
        box-shadow: none;
        cursor: not-allowed;
    }
    .pf-modal__btn--topup {
        background: var(--gradient-warm);
        color: #fff;
        box-shadow: 0 4px 14px rgba(255, 107, 80, .25);
    }
    .pf-modal__btn--topup:hover { opacity: .9; }
    .pf-modal__btn--ghost {
        background: hsl(var(--secondary-bg));
        color: hsl(var(--foreground));
        flex: 0 0 auto;
        padding: 12px 20px;
    }
    .pf-modal__btn--ghost:hover { background: hsl(var(--border)); }

    body.pf-modal-open { overflow: hidden; }

    /* Demo toggle (DEV ONLY — можно удалить перед деплоем) */
    .pf-demo-toggle {
        position: fixed;
        bottom: 16px; right: 16px;
        z-index: 1500;
        background: #1a1a2e;
        color: #fff;
        font-size: 11px;
        padding: 8px 12px;
        border-radius: 8px;
        border: 0;
        cursor: pointer;
        opacity: 0.65;
        box-shadow: 0 4px 14px rgba(0,0,0,0.2);
        font-family: inherit;
        font-weight: 600;
    }
    .pf-demo-toggle:hover { opacity: 1; }

@keyframes opaque {
  0% {
      opacity: 0
  }

  to {
      opacity: 1
  }
}

@keyframes resizeanim {
  0%,to {
      opacity: 0
  }
}

.apexcharts-canvas {
  position: relative;
  user-select: none
}

.apexcharts-canvas ::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 6px
}

.apexcharts-canvas ::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0,0,0,.5);
  box-shadow: 0 0 1px rgba(255,255,255,.5);
  -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5)
}

.apexcharts-inner {
  position: relative
}

.apexcharts-text tspan {
  font-family: inherit
}

.legend-mouseover-inactive {
  transition: .15s ease all;
  opacity: .2
}

.apexcharts-legend-text {
  padding-left: 15px;
  margin-left: -15px;
}

.apexcharts-series-collapsed {
  opacity: 0
}

.apexcharts-tooltip {
  border-radius: 5px;
  box-shadow: 2px 2px 6px -4px #999;
  cursor: default;
  font-size: 14px;
  left: 62px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: nowrap;
  z-index: 12;
  transition: .15s ease all
}

.apexcharts-tooltip.apexcharts-active {
  opacity: 1;
  transition: .15s ease all
}

.apexcharts-tooltip.apexcharts-theme-light {
  border: 1px solid #e3e3e3;
  background: rgba(255,255,255,.96)
}

.apexcharts-tooltip.apexcharts-theme-dark {
  color: #fff;
  background: rgba(30,30,30,.8)
}

.apexcharts-tooltip * {
  font-family: inherit
}

.apexcharts-tooltip-title {
  padding: 6px;
  font-size: 15px;
  margin-bottom: 4px
}

.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {
  background: #eceff1;
  border-bottom: 1px solid #ddd
}

.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {
  background: rgba(0,0,0,.7);
  border-bottom: 1px solid #333
}

.apexcharts-tooltip-text-goals-value,.apexcharts-tooltip-text-y-value,.apexcharts-tooltip-text-z-value {
  display: inline-block;
  margin-left: 5px;
  font-weight: 600
}

.apexcharts-tooltip-text-goals-label:empty,.apexcharts-tooltip-text-goals-value:empty,.apexcharts-tooltip-text-y-label:empty,.apexcharts-tooltip-text-y-value:empty,.apexcharts-tooltip-text-z-value:empty,.apexcharts-tooltip-title:empty {
  display: none
}

.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {
  padding: 6px 0 5px
}

.apexcharts-tooltip-goals-group,.apexcharts-tooltip-text-goals-label,.apexcharts-tooltip-text-goals-value {
  display: flex
}

.apexcharts-tooltip-text-goals-label:not(:empty),.apexcharts-tooltip-text-goals-value:not(:empty) {
  margin-top: -6px
}

.apexcharts-tooltip-marker {
  width: 12px;
  height: 12px;
  position: relative;
  top: 0;
  margin-right: 10px;
  border-radius: 50%
}

.apexcharts-tooltip-series-group {
  padding: 0 10px;
  display: none;
  text-align: left;
  justify-content: left;
  align-items: center
}

.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {
  opacity: 1
}

.apexcharts-tooltip-series-group.apexcharts-active,.apexcharts-tooltip-series-group:last-child {
  padding-bottom: 4px
}

.apexcharts-tooltip-series-group-hidden {
  opacity: 0;
  height: 0;
  line-height: 0;
  padding: 0!important
}

.apexcharts-tooltip-y-group {
  padding: 6px 0 5px
}

.apexcharts-custom-tooltip,.apexcharts-tooltip-box {
  padding: 4px 8px
}

.apexcharts-tooltip-boxPlot {
  display: flex;
  flex-direction: column-reverse
}

.apexcharts-tooltip-box>div {
  margin: 4px 0
}

.apexcharts-tooltip-box span.value {
  font-weight: 700
}

.apexcharts-tooltip-rangebar {
  padding: 5px 8px
}

.apexcharts-tooltip-rangebar .category {
  font-weight: 600;
  color: #777
}

.apexcharts-tooltip-rangebar .series-name {
  font-weight: 700;
  display: block;
  margin-bottom: 5px
}

.apexcharts-xaxistooltip,.apexcharts-yaxistooltip {
  opacity: 0;
  pointer-events: none;
  color: #373d3f;
  font-size: 13px;
  text-align: center;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
  background: #eceff1;
  border: 1px solid #90a4ae
}

.apexcharts-xaxistooltip {
  padding: 9px 10px;
  transition: .15s ease all
}

.apexcharts-xaxistooltip.apexcharts-theme-dark {
  background: rgba(0,0,0,.7);
  border: 1px solid rgba(0,0,0,.5);
  color: #fff
}

.apexcharts-xaxistooltip:after,.apexcharts-xaxistooltip:before {
  left: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none
}

.apexcharts-xaxistooltip:after {
  border-color: transparent;
  border-width: 6px;
  margin-left: -6px
}

.apexcharts-xaxistooltip:before {
  border-color: transparent;
  border-width: 7px;
  margin-left: -7px
}

.apexcharts-xaxistooltip-bottom:after,.apexcharts-xaxistooltip-bottom:before {
  bottom: 100%
}

.apexcharts-xaxistooltip-top:after,.apexcharts-xaxistooltip-top:before {
  top: 100%
}

.apexcharts-xaxistooltip-bottom:after {
  border-bottom-color: #eceff1
}

.apexcharts-xaxistooltip-bottom:before {
  border-bottom-color: #90a4ae
}

.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {
  border-bottom-color: rgba(0,0,0,.5)
}

.apexcharts-xaxistooltip-top:after {
  border-top-color: #eceff1
}

.apexcharts-xaxistooltip-top:before {
  border-top-color: #90a4ae
}

.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {
  border-top-color: rgba(0,0,0,.5)
}

.apexcharts-xaxistooltip.apexcharts-active {
  opacity: 1;
  transition: .15s ease all
}

.apexcharts-yaxistooltip {
  padding: 4px 10px
}

.apexcharts-yaxistooltip.apexcharts-theme-dark {
  background: rgba(0,0,0,.7);
  border: 1px solid rgba(0,0,0,.5);
  color: #fff
}

.apexcharts-yaxistooltip:after,.apexcharts-yaxistooltip:before {
  top: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none
}

.apexcharts-yaxistooltip:after {
  border-color: transparent;
  border-width: 6px;
  margin-top: -6px
}

.apexcharts-yaxistooltip:before {
  border-color: transparent;
  border-width: 7px;
  margin-top: -7px
}

.apexcharts-yaxistooltip-left:after,.apexcharts-yaxistooltip-left:before {
  left: 100%
}

.apexcharts-yaxistooltip-right:after,.apexcharts-yaxistooltip-right:before {
  right: 100%
}

.apexcharts-yaxistooltip-left:after {
  border-left-color: #eceff1
}

.apexcharts-yaxistooltip-left:before {
  border-left-color: #90a4ae
}

.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {
  border-left-color: rgba(0,0,0,.5)
}

.apexcharts-yaxistooltip-right:after {
  border-right-color: #eceff1
}

.apexcharts-yaxistooltip-right:before {
  border-right-color: #90a4ae
}

.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {
  border-right-color: rgba(0,0,0,.5)
}

.apexcharts-yaxistooltip.apexcharts-active {
  opacity: 1
}

.apexcharts-yaxistooltip-hidden {
  display: none
}

.apexcharts-xcrosshairs,.apexcharts-ycrosshairs {
  pointer-events: none;
  opacity: 0;
  transition: .15s ease all
}

.apexcharts-xcrosshairs.apexcharts-active,.apexcharts-ycrosshairs.apexcharts-active {
  opacity: 1;
  transition: .15s ease all
}

.apexcharts-ycrosshairs-hidden {
  opacity: 0
}

.apexcharts-selection-rect {
  cursor: move
}

.svg_select_boundingRect,.svg_select_points_rot {
  pointer-events: none;
  opacity: 0;
  visibility: hidden
}

.apexcharts-selection-rect+g .svg_select_boundingRect,.apexcharts-selection-rect+g .svg_select_points_rot {
  opacity: 0;
  visibility: hidden
}

.apexcharts-selection-rect+g .svg_select_points_l,.apexcharts-selection-rect+g .svg_select_points_r {
  cursor: ew-resize;
  opacity: 1;
  visibility: visible
}

.svg_select_points {
  fill: #efefef;
  stroke: #333;
  rx: 2
}

.apexcharts-svg.apexcharts-zoomable.hovering-zoom {
  cursor: crosshair
}

.apexcharts-svg.apexcharts-zoomable.hovering-pan {
  cursor: move
}

.apexcharts-menu-icon,.apexcharts-pan-icon,.apexcharts-reset-icon,.apexcharts-selection-icon,.apexcharts-toolbar-custom-icon,.apexcharts-zoom-icon,.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {
  cursor: pointer;
  width: 20px;
  height: 20px;
  line-height: 24px;
  color: #6e8192;
  text-align: center
}

.apexcharts-menu-icon svg,.apexcharts-reset-icon svg,.apexcharts-zoom-icon svg,.apexcharts-zoomin-icon svg,.apexcharts-zoomout-icon svg {
  fill: #6e8192
}

.apexcharts-selection-icon svg {
  fill: #444;
  transform: scale(.76)
}

.apexcharts-theme-dark .apexcharts-menu-icon svg,.apexcharts-theme-dark .apexcharts-pan-icon svg,.apexcharts-theme-dark .apexcharts-reset-icon svg,.apexcharts-theme-dark .apexcharts-selection-icon svg,.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,.apexcharts-theme-dark .apexcharts-zoom-icon svg,.apexcharts-theme-dark .apexcharts-zoomin-icon svg,.apexcharts-theme-dark .apexcharts-zoomout-icon svg {
  fill: #f3f4f5
}

.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {
  fill: #008ffb
}

.apexcharts-theme-light .apexcharts-menu-icon:hover svg,.apexcharts-theme-light .apexcharts-reset-icon:hover svg,.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {
  fill: #333
}

.apexcharts-menu-icon,.apexcharts-selection-icon {
  position: relative
}

.apexcharts-reset-icon {
  margin-left: 5px
}

.apexcharts-menu-icon,.apexcharts-reset-icon,.apexcharts-zoom-icon {
  transform: scale(.85)
}

.apexcharts-zoomin-icon,.apexcharts-zoomout-icon {
  transform: scale(.7)
}

.apexcharts-zoomout-icon {
  margin-right: 3px
}

.apexcharts-pan-icon {
  transform: scale(.62);
  position: relative;
  left: 1px;
  top: 0
}

.apexcharts-pan-icon svg {
  fill: #fff;
  stroke: #6e8192;
  stroke-width: 2
}

.apexcharts-pan-icon.apexcharts-selected svg {
  stroke: #008ffb
}

.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {
  stroke: #333
}

.apexcharts-toolbar {
  position: absolute;
  z-index: 11;
  max-width: 176px;
  text-align: right;
  border-radius: 3px;
  padding: 0 6px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.apexcharts-menu {
  background: #fff;
  position: absolute;
  top: 100%;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 3px;
  right: 10px;
  opacity: 0;
  min-width: 110px;
  transition: .15s ease all;
  pointer-events: none
}

.apexcharts-menu.apexcharts-menu-open {
  opacity: 1;
  pointer-events: all;
  transition: .15s ease all
}

.apexcharts-menu-item {
  padding: 6px 7px;
  font-size: 12px;
  cursor: pointer
}

.apexcharts-theme-light .apexcharts-menu-item:hover {
  background: #eee
}

.apexcharts-theme-dark .apexcharts-menu {
  background: rgba(0,0,0,.7);
  color: #fff
}

@media screen and (min-width:768px) {
  .apexcharts-canvas:hover .apexcharts-toolbar {
      opacity: 1
  }
}

.apexcharts-canvas .apexcharts-element-hidden,.apexcharts-datalabel.apexcharts-element-hidden,.apexcharts-hide .apexcharts-series-points {
  display: none;
}

.apexcharts-hidden-element-shown {
  opacity: 1;
  transition: 0.25s ease all;
}
.apexcharts-datalabel,.apexcharts-datalabel-label,.apexcharts-datalabel-value,.apexcharts-datalabels,.apexcharts-pie-label {
  cursor: default;
  pointer-events: none
}

.apexcharts-pie-label-delay {
  opacity: 0;
  animation-name: opaque;
  animation-duration: .3s;
  animation-fill-mode: forwards;
  animation-timing-function: ease
}

.apexcharts-radialbar-label {
  cursor: pointer;
}

.apexcharts-annotation-rect,.apexcharts-area-series .apexcharts-area,.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-gridline,.apexcharts-line,.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,.apexcharts-point-annotation-label,.apexcharts-radar-series path,.apexcharts-radar-series polygon,.apexcharts-toolbar svg,.apexcharts-tooltip .apexcharts-marker,.apexcharts-xaxis-annotation-label,.apexcharts-yaxis-annotation-label,.apexcharts-zoom-rect {
  pointer-events: none
}

.apexcharts-marker {
  transition: .15s ease all
}

.resize-triggers {
  animation: 1ms resizeanim;
  visibility: hidden;
  opacity: 0;
  height: 100%;
  width: 100%;
  overflow: hidden
}

.contract-trigger:before,.resize-triggers,.resize-triggers>div {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0
}

.resize-triggers>div {
  height: 100%;
  width: 100%;
  background: #eee;
  overflow: auto
}

.contract-trigger:before {
  overflow: hidden;
  width: 200%;
  height: 200%
}

.apexcharts-bar-goals-markers{
  pointer-events: none
}

.apexcharts-bar-shadows{
  pointer-events: none
}

.apexcharts-rangebar-goals-markers{
  pointer-events: none
}

.green-outline {
      outline: 1px solid green;
    }

    .red-outline {
      outline: 1px solid red;
    }

/* === Header shell === */
    .pf-header {
        background: hsl(var(--card));
        border-bottom: 1px solid hsl(var(--border));
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    .pf-header-wrapper {
        width: 100%;
        max-width: 80rem; /* 1280px, matches max-w-7xl */
        margin: 0 auto;
        padding: 0 16px;
    }
    @media (min-width: 640px) {
        .pf-header-wrapper { padding: 0 24px; }
    }
    .pf-header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 64px; /* h-16 — mobile */
        gap: 8px;
    }
    @media (min-width: 768px) {
        .pf-header-top { height: 56px; /* md:h-14 */ }
    }

    /* === Logo === */
    .pf-logo {
        font-size: 20px;
        font-weight: 700;
        color: hsl(var(--foreground));
        text-decoration: none;
        min-width: 0;
        transition: opacity 0.2s;
    }
    .pf-logo:hover { opacity: 0.9; }

    /* Lightning SVG → gradient brand square (w-9 h-9 mobile / w-7 h-7 desktop) */
    .pf-logo > svg {
        width: 36px;
        height: 36px;
        background: var(--gradient-brand);
        border-radius: 12px;
        padding: 8px;
        box-sizing: border-box;
        color: hsl(var(--brand-foreground));
        flex-shrink: 0;
        margin-right: 8px;
    }
    @media (min-width: 768px) {
        .pf-logo > svg {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            padding: 6px;
        }
    }

    /* "ClickPF" text label */
    .pf-logo > span {
        font-weight: 700;
        color: hsl(var(--foreground));
        font-size: 20px; /* text-xl */
        line-height: 1.1;
    }
    @media (min-width: 768px) {
        .pf-logo > span { font-size: 18px; /* md:text-lg */ }
    }
    .pf-logo > span:hover { color: hsl(var(--foreground)); }

    /* "beta" / "test domain" sup → pill badge */
    .pf-logo sup {
        display: none;
    }
    @media (min-width: 640px) {
        .pf-logo sup {
            display: inline-flex;
            align-items: center;
            background: hsl(var(--brand) / 0.1);
            color: hsl(var(--brand));
            border: 1px solid hsl(var(--brand) / 0.2);
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 10px;
            line-height: 1;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-weight: 600;
            margin-left: 8px;
            vertical-align: middle;
            top: 0;
        }
    }

    /* === Balance pill (header link to /cp/finances) === */
    .pf-header-top a[href$="/finances"] {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #ffffff;
        border: 1px solid hsl(var(--border));
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        padding: 4px 16px 4px 6px;
        border-radius: 9999px;
        font-size: 14px;
        color: hsl(var(--foreground));
        font-weight: 600;
        transition: box-shadow 0.2s;
        text-decoration: none;
    }
    .pf-header-top a[href$="/finances"]:hover {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        background: #ffffff;
    }
    /* The feather "zap" icon inside the balance pill → gradient circle */
    .pf-header-top a[href$="/finances"] > svg {
        width: 28px;
        height: 28px;
        background: linear-gradient(135deg, rgb(91, 147, 255), rgb(59, 124, 255));
        color: #ffffff;
        padding: 6px;
        border-radius: 50%;
        box-sizing: border-box;
        margin-right: 0;
        flex-shrink: 0;
    }

    /* === User dropdown trigger === */
    .pf-user-button {
        padding: 6px 8px;
        color: hsl(var(--muted-foreground));
        text-decoration: none;
        font-size: 14px;
        background: transparent;
        border: none;
        cursor: pointer;
        border-radius: 8px;
        transition: color 0.2s, background-color 0.2s;
        gap: 6px;
    }
    .pf-user-button:hover {
        background: hsl(var(--secondary-bg) / 0.6);
        color: hsl(var(--foreground));
    }

    /* === Mobile menu button === */
    #mobile-menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        border: 1px solid hsl(var(--border));
        background: transparent;
        color: hsl(var(--foreground));
        padding: 0;
        transition: background-color 0.2s;
    }
    #mobile-menu-button:hover {
        background: hsl(var(--secondary-bg));
        color: hsl(var(--foreground));
    }
    #mobile-menu-button > svg {
        width: 22px;
        height: 22px;
    }

    /* === Navigation row === */
    .pf-nav {
        display: flex;
        align-items: center;
        gap: 4px;
        padding-bottom: 8px;
        /* No fixed height — nav row sizes to its content (pill links ≈ 36px + pb-2 = 44px). */
    }
    .pf-nav-link {
        display: inline-flex;
        align-items: center;
        padding: 8px 16px;
        color: hsl(var(--muted-foreground));
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        border-radius: 12px;
        white-space: nowrap;
        transition: color 0.2s, background-color 0.2s;
        position: relative;
        background: transparent;
        border: none;
        cursor: pointer;
        line-height: 1.25;
    }
    .pf-nav-link:hover {
        color: hsl(var(--foreground));
        background: hsl(var(--secondary-bg) / 0.6);
    }
    .pf-nav-link.active {
        font-weight: 600;
        color: hsl(var(--brand));
        background: linear-gradient(to right,
            hsl(var(--brand) / 0.15),
            hsl(var(--brand) / 0.05) 60%,
            transparent);
    }
    /* Drop the old underline indicator (replaced by gradient bg above) */
    .pf-nav-link.active::after {
        display: none;
    }

    /* === User dropdown panel === */
    #user-menu {
        border-radius: 12px;
        border: 1px solid hsl(var(--border));
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
                    0 4px 10px -4px rgba(0, 0, 0, 0.05);
        background: hsl(var(--card));
        padding: 4px; /* p-1 — shadcn dropdown panel padding */
        width: 14rem;
        margin-top: 8px;
        overflow: hidden;
    }

    /* "Доступно кликов" + balance value + Пополнить + Промо-код */
    #user-menu > div:first-child {
        padding: 8px 8px 10px; /* tight balance section */
        border-bottom: 1px solid hsl(var(--border));
        margin-bottom: 4px;
    }
    #user-menu > div:first-child > div:first-child {
        margin-bottom: 8px;
    }
    #user-menu > div:first-child > div:first-child > span:first-child {
        color: hsl(var(--muted-foreground));
        font-size: 12px;
    }
    #user-menu > div:first-child > div:first-child > span:last-child {
        color: hsl(var(--brand));
        font-weight: 800;
        font-size: 18px;
    }
    /* "Пополнить" — primary gradient button */
    #user-menu > div:first-child > a:nth-of-type(1) {
        display: block;
        background: var(--gradient-brand);
        color: hsl(var(--brand-foreground));
        font-weight: 600;
        text-align: center;
        border-radius: 8px;
        padding: 6px 12px; /* py-1.5 px-3 */
        font-size: 13px;
        text-decoration: none;
        transition: opacity 0.2s, transform 0.05s;
        margin-bottom: 6px;
    }
    #user-menu > div:first-child > a:nth-of-type(1):hover {
        opacity: 0.9;
        background: var(--gradient-brand);
    }
    #user-menu > div:first-child > a:nth-of-type(1):active {
        transform: translateY(1px);
    }
    /* "Промо-код" / "Получить бонус" — outline secondary button */
    #user-menu > div:first-child > a:nth-of-type(2) {
        display: block;
        background: hsl(var(--card));
        color: hsl(var(--brand));
        border: 1px solid hsl(var(--brand));
        font-weight: 600;
        text-align: center;
        border-radius: 8px;
        padding: 5px 12px;
        font-size: 13px;
        text-decoration: none;
        transition: background-color 0.2s;
    }
    #user-menu > div:first-child > a:nth-of-type(2):hover {
        background: hsl(var(--brand) / 0.06);
    }

    /* === Subscription pill in header (рядом с балансом) === */
    .pf-sub-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        border-radius: 9999px;
        font-size: 13px;
        font-weight: 600;
        line-height: 1;
        text-decoration: none;
        transition: all .2s;
        cursor: pointer;
        border: 1px solid transparent;
        background: none;
        white-space: nowrap;
    }
    .pf-sub-pill svg { width: 14px; height: 14px; flex-shrink: 0; }
    .pf-sub-pill--active {
        background: var(--gradient-brand);
        color: hsl(var(--brand-foreground));
        box-shadow: 0 4px 14px rgba(96, 91, 255, 0.25);
    }
    .pf-sub-pill--active:hover { opacity: .9; }
    .pf-sub-pill--inactive {
        background: #fff;
        border: 1px dashed hsl(var(--brand) / 0.5);
        color: hsl(var(--brand));
    }
    .pf-sub-pill--inactive:hover {
        background: hsl(var(--brand) / 0.06);
        border-style: solid;
    }

    /* Settings / Referrals / Support / Offer links — shadcn item paddings (px-2 py-1.5) */
    #user-menu > div.py-1 {
        padding: 0;
    }
    #user-menu > div.py-1 > a {
        display: flex;
        align-items: center;
        padding: 6px 8px; /* py-1.5 px-2 */
        margin: 0;
        border-radius: 6px;
        color: hsl(var(--foreground));
        font-size: 13px;
        text-decoration: none;
        transition: background-color 0.15s;
    }
    #user-menu > div.py-1 > a:hover {
        background: hsl(var(--secondary-bg));
        color: hsl(var(--foreground));
    }
    #user-menu > div.py-1 > a > svg {
        color: hsl(var(--muted-foreground));
        flex-shrink: 0;
        width: 14px;
        height: 14px;
    }

    /* Logout section */
    #user-menu > div:last-child {
        border-top: 1px solid hsl(var(--border));
        padding-top: 4px;
        margin-top: 4px;
    }
    #user-menu > div:last-child button {
        display: flex;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 6px 8px; /* py-1.5 px-2 */
        border-radius: 6px;
        color: rgb(220 38 38);
        font-size: 13px;
        background: transparent;
        border: none;
        cursor: pointer;
        transition: background-color 0.15s;
    }
    #user-menu > div:last-child button:hover {
        background: rgb(254 226 226);
    }
    #user-menu > div:last-child button > svg {
        color: rgb(220 38 38);
        width: 14px;
        height: 14px;
    }

    /* === Admin dropdown panel — same visual treatment === */
    #admin-menu {
        border-radius: 16px;
        border: 1px solid hsl(var(--border));
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
                    0 4px 10px -4px rgba(0, 0, 0, 0.05);
        background: hsl(var(--card));
        padding: 8px;
        width: 240px;
        margin-top: 8px;
        overflow: hidden;
    }
    #admin-menu > a,
    #admin-menu > div > a {
        display: flex;
        align-items: center;
        padding: 9px 12px;
        margin: 0 4px;
        border-radius: 10px;
        color: hsl(var(--foreground));
        font-size: 14px;
        text-decoration: none;
        transition: background-color 0.15s;
    }
    #admin-menu > a:hover,
    #admin-menu > div > a:hover {
        background: hsl(var(--secondary-bg));
        color: hsl(var(--foreground));
    }
    #admin-menu > a > svg,
    #admin-menu > div > a > svg {
        color: hsl(var(--muted-foreground));
        flex-shrink: 0;
    }
    /* Section divider inside admin menu */
    #admin-menu > div.border-t {
        border-top-color: hsl(var(--border));
        margin: 8px 4px;
    }

    /* Hide mobile menu button on desktop */
    @media (min-width: 768px) {
        #mobile-menu-button { display: none; }
    }

    /* Hide desktop nav on mobile */
    @media (max-width: 767px) {
        .pf-nav { display: none !important; }
        .pf-header-top { border-bottom: none; }
    }

/* === Floating telegram banner — preview-dashboard restyle ===
       Fixed bottom-center pill, white bg + soft shadow + 1px hairline,
       fully rounded. Two slides cross-fade on the same grid cell so the
       container is always the height of the visible slide. */
    .tg-banner {
        position: fixed;
        bottom: 16px;
        left: 16px;
        right: 16px;
        z-index: 50;
        pointer-events: none;
        animation: tg-banner-in 0.5s cubic-bezier(.4,0,.2,1);
    }
    @media (min-width: 640px) {
        .tg-banner {
            bottom: 16px;
            left: 24px;
            right: 24px;
        }
    }
    @keyframes tg-banner-in {
        from { transform: translateY(140%); opacity: 0; }
        to   { transform: translateY(0);    opacity: 1; }
    }
    .tg-banner.is-closing {
        animation: tg-banner-out 0.3s cubic-bezier(.4,0,.2,1) forwards;
    }
    @keyframes tg-banner-out {
        from { transform: translateY(0);    opacity: 1; }
        to   { transform: translateY(140%); opacity: 0; }
    }

    .tg-banner__inner {
        max-width: 80rem;          /* matches max-w-7xl */
        margin: 0 auto;
        pointer-events: auto;
        background: #ffffff;
        border: 1px solid hsl(var(--border));
        border-radius: 9999px;     /* pill */
        box-shadow: 0 10px 40px -15px rgba(30, 40, 80, 0.18);
        padding: 8px 8px 8px 12px;
    }
    @media (min-width: 640px) {
        .tg-banner__inner {
            padding: 10px 12px 10px 16px;
        }
    }

    /* Slider — both slides occupy the same grid cell, cross-fade via opacity.
       The grid cell auto-sizes to the tallest slide so there's no jump. */
    .tg-banner__slider {
        display: grid;
        grid-template-areas: "stack";
        align-items: center;
    }
    .tg-banner__slide {
        grid-area: stack;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-width: 0;
    }
    .tg-banner__slide.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.5s ease-in-out, visibility 0s linear 0s;
    }

    .tg-banner__left {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        flex: 1 1 auto;
    }
    @media (min-width: 640px) {
        .tg-banner__left {
            gap: 12px;
            padding-left: 8px;
        }
    }
    .tg-banner__icon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .tg-banner__icon svg {
        width: 16px;
        height: 16px;
    }
    .tg-banner__text {
        font-size: 12px;
        font-weight: 500;
        color: hsl(var(--foreground));
        line-height: 1.3;
        margin: 0;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    @media (min-width: 640px) {
        .tg-banner__text { font-size: 14px; }
    }
    .tg-banner__text--desktop { display: none; }
    .tg-banner__text--mobile  { display: inline; }
    @media (min-width: 640px) {
        .tg-banner__text--desktop { display: inline; }
        .tg-banner__text--mobile  { display: none; }
    }
    .tg-banner__badge {
        display: none;
        align-items: center;
        font-size: 11px;
        font-weight: 700;
        color: #ffffff;
        padding: 4px 12px;
        border-radius: 9999px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    @media (min-width: 640px) {
        .tg-banner__badge { display: inline-flex; }
    }

    .tg-banner__right {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }
    @media (min-width: 640px) {
        .tg-banner__right { gap: 8px; }
    }
    .tg-banner__cta {
        background: hsl(var(--brand) / 0.1);
        color: hsl(var(--brand));
        font-weight: 600;
        font-size: 12px;
        padding: 8px 14px;
        border-radius: 9999px;
        text-decoration: none;
        transition: background-color 0.15s;
        white-space: nowrap;
    }
    @media (min-width: 640px) {
        .tg-banner__cta { font-size: 14px; padding: 8px 20px; }
    }
    .tg-banner__cta:hover {
        background: hsl(var(--brand) / 0.18);
    }
    .tg-banner__close {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: hsl(var(--stat-red) / 0.1);
        color: hsl(var(--stat-red));
        border: 0;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: background-color 0.15s;
    }
    @media (min-width: 640px) {
        .tg-banner__close { width: 36px; height: 36px; }
    }
    .tg-banner__close:hover {
        background: hsl(var(--stat-red) / 0.18);
    }

/* === Footer (preview-dashboard restyle) ===
       White card-bg, rounded top corners, soft top shadow.
       Footer is always flush with the viewport bottom; the floating
       telegram banner overlays it via position: fixed. */
    .pf-footer {
        background: hsl(var(--card));
        border-top: 0;
        border-radius: 32px 32px 0 0; /* rounded-t-[2rem] */
        box-shadow: 0 -4px 20px -8px hsl(220 40% 25% / 0.08);
        padding: 32px 0 0;
        margin-top: auto;
    }
    .pf-footer-wrapper {
        width: 100%;
        max-width: 80rem; /* max-w-7xl */
        margin: 0 auto;
        padding: 0 16px;  /* px-4 */
    }
    @media (min-width: 640px) {
        .pf-footer-wrapper { padding: 0 24px; /* sm:px-6 */ }
    }

    .pf-footer-main {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 24px; /* gap-6 */
        padding-bottom: 16px;
    }
    .pf-footer-company {
        max-width: none;
        align-self: center;
    }
    .pf-footer-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 0 !important; /* override .mb-3 from blade */
    }
    .pf-footer-logo svg {
        width: 20px;
        height: 20px;
        color: hsl(var(--brand));
    }
    .pf-footer-logo span {
        font-weight: 700;
        color: hsl(var(--foreground));
        font-size: 16px;
    }

    .pf-footer-section h4 {
        font-size: 14px;
        font-weight: 600;
        color: hsl(var(--foreground));
        margin-bottom: 12px;
    }
    .pf-footer-links-col {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .pf-footer-link {
        font-size: 14px;
        color: hsl(var(--muted-foreground));
        text-decoration: none;
        transition: color 0.15s;
    }
    .pf-footer-link:hover {
        color: hsl(var(--foreground));
    }

    .pf-footer-bottom {
        border-top: 0;
        padding: 8px 0 24px;
        text-align: center;
    }
    .pf-footer-bottom p {
        margin-bottom: 4px;
        font-size: 12px;
        color: hsl(var(--muted-foreground)) !important;
    }
    .pf-footer-bottom p:last-child {
        margin-bottom: 0;
    }

    @media (max-width: 1024px) {
        .pf-footer-main {
            grid-template-columns: 1fr 1fr;
            gap: 24px;
        }
    }
    @media (max-width: 639px) {
        .pf-footer {
            border-radius: 24px 24px 0 0;
            padding-top: 24px;
        }
        .pf-footer-main {
            grid-template-columns: 1fr;
            gap: 20px;
        }
    }

