/* Page-scoped styles extracted from resources/views/pages/affiliate.blade.php */

        .affiliate-page {
            --aff-bg: #060a1a;
            --aff-card: #0d142d;
            --aff-card-2: #101a38;
            --aff-line: #2a3767;
            --aff-text: #0b1226;
            --aff-muted: #475569;
            --aff-brand: #6f8cff;
            --aff-accent: #74e5ff;
            background: transparent;
            color: #0b1226 !important;
        }

        .affiliate-page .section { padding: 68px 0; }

        .aff-hero {
            position: relative;
            overflow: hidden;
            padding: 56px 0 72px;
            background: transparent !important;
            border-bottom: 0;
        }

        .aff-hero::before,
        .aff-hero::after {
            content: none !important;
            display: none !important;
        }

        .aff-hero__inner,
        .affiliate-page .container {
            position: relative;
            z-index: 1;
        }

        .aff-breadcrumb a,
        .aff-breadcrumb span,
        .aff-breadcrumb i {
            color: #c8d3ff;
            font-size: .9rem;
        }

        .aff-hero__content {
            margin-top: 22px;
            display: grid;
            grid-template-columns: 1.3fr .9fr;
            gap: 22px;
            align-items: start;
        }

        .aff-kicker {
            display: inline-block;
            letter-spacing: .16em;
            font-size: .72rem;
            text-transform: uppercase;
            color: #0b1226;
            margin-bottom: 14px;
            font-weight: 700;
        }

        .aff-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; margin: 0 0 16px; }
        .aff-hero p,
        .aff-section-head p,
        .aff-tier-card p,
        .aff-rule-card p,
        .aff-step-card p,
        .aff-accordion p,
        .aff-callout p { color: var(--aff-muted); line-height: 1.65; }

        .aff-hero__callout,
        .aff-card,
        .aff-map-card,
        .aff-tier-card,
        .aff-step-card,
        .aff-rule-card,
        .aff-callout,
        .aff-accordion details {
            border: 1px solid rgba(133, 157, 255, .25);
            border-radius: 20px;
            background: rgba(255,255,255,.92);
            box-shadow: 0 15px 32px rgba(2, 6, 20, .36);
        }

        .aff-hero__callout { padding: 24px; }
        .aff-hero__callout ul { margin: 0 0 18px; padding-left: 18px; color: #334155; }
        .aff-hero__callout li { margin-bottom: 8px; }

        .aff-section-head { margin-bottom: 28px; }
        .aff-section-head h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 10px; }

        .aff-map-card { padding: 14px; position: relative; overflow: hidden; }
        .aff-map-svg { width: 100%; height: auto; display: block; }
        .aff-map-line { cursor: pointer; transition: opacity .25s ease; }
        .aff-map-line circle { fill: #eaf1ff; stroke: #8ccfff; stroke-width: 2; }
        .aff-map-line text { fill: #0b1226; font-size: 20px; font-weight: 600; }
        .aff-map-line.is-dim { opacity: .28; }
        .aff-map-line.is-active path { stroke-width: 6; }

        .aff-tooltip {
            position: absolute;
            pointer-events: none;
            opacity: 0;
            transform: translate(-50%, calc(-100% - 12px));
            background: #ffffff;
            border: 1px solid #6f8cff;
            color: #0b1226;
            padding: 8px 10px;
            border-radius: 10px;
            font-size: .86rem;
            transition: opacity .18s ease;
            white-space: nowrap;
        }

        .aff-ladder-grid {
            display: grid;
            grid-template-columns: repeat(5, minmax(180px, 1fr));
            gap: 14px;
            align-items: stretch;
        }

        .aff-tier-card {
            padding: 26px 24px;
            position: relative;
            transition: transform .25s ease, border-color .25s ease;
            line-height: 1.65;
        }
        .aff-tier-card:hover { transform: translateY(-5px); border-color: rgba(129, 205, 255, .8); }
        .aff-tier-card:nth-child(1) { min-height: 320px; }
        .aff-tier-card:nth-child(2) { min-height: 354px; }
        .aff-tier-card:nth-child(3) { min-height: 388px; }
        .aff-tier-card:nth-child(4) { min-height: 422px; }
        .aff-tier-card:nth-child(5) { min-height: 456px; }
        .aff-tier-card--highlight { background: rgba(248, 251, 255, .98); border-color: rgba(125, 221, 255, .72); }
        .aff-tier-rank { font-size: .78rem; letter-spacing: .14em; color: #1d4ed8; font-weight: 700; }
        .aff-tier-card h3 { margin: 8px 0 12px; line-height: 1.35; }
        .aff-tier-card ul { padding-left: 20px; margin-bottom: 0; color: #334155; line-height: 1.6; }
        .aff-tier-card li { margin-bottom: 8px; }
        .aff-tier-card li:last-child { margin-bottom: 0; }

        .affiliate-page .aff-chart-layout {
            display: grid;
            grid-template-columns: minmax(260px, .95fr) minmax(480px, 1.95fr);
            gap: 16px;
            align-items: stretch;
        }

        .affiliate-page .aff-card { padding: 20px; }
        .affiliate-page .aff-chart-controls input[type="range"] {
            width: 100%;
            margin-top: 10px;
            appearance: none;
            -webkit-appearance: none;
            height: 6px;
            border-radius: 999px;
            border: 0;
            background: linear-gradient(90deg, #6f8cff 0%, #6f8cff var(--range-progress, 0%), #dbe4f4 var(--range-progress, 0%), #dbe4f4 100%);
            cursor: pointer;
        }

        .affiliate-page .aff-chart-controls input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #ffffff;
            border: 2px solid #5f7cff;
            box-shadow: 0 4px 10px rgba(15, 23, 42, .15);
            transition: transform .2s ease, box-shadow .2s ease;
        }

        .affiliate-page .aff-chart-controls input[type="range"]::-moz-range-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #ffffff;
            border: 2px solid #5f7cff;
            box-shadow: 0 4px 10px rgba(15, 23, 42, .15);
            transition: transform .2s ease, box-shadow .2s ease;
        }

        .affiliate-page .aff-chart-controls input[type="range"]:hover::-webkit-slider-thumb,
        .affiliate-page .aff-chart-controls input[type="range"]:focus-visible::-webkit-slider-thumb,
        .affiliate-page .aff-chart-controls input[type="range"]:hover::-moz-range-thumb,
        .affiliate-page .aff-chart-controls input[type="range"]:focus-visible::-moz-range-thumb {
            transform: scale(1.08);
            box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
        }

        .affiliate-page .aff-chart-controls input[type="range"]:focus-visible {
            outline: 0;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, .22);
        }

        .affiliate-page .aff-chart-controls input[type="range"]::-moz-range-track {
            height: 6px;
            border-radius: 999px;
            background: transparent;
        }

        .affiliate-page .aff-label { font-weight: 600; font-size: .94rem; color: #1f2937; }
        .affiliate-page .aff-slider-group + .aff-slider-group { margin-top: 14px; }
        .affiliate-page .aff-slider-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; }
        .affiliate-page .aff-slider-head strong { color: #1e3a8a; font-size: .9rem; font-weight: 700; min-width: 38px; text-align: right; }
        .affiliate-page .aff-depth-note { margin: 14px 0 10px; color: #475569; font-size: .86rem; line-height: 1.5; }
        .affiliate-page .aff-price-note {
            margin: 0;
            color: #334155;
            font-size: .88rem;
            border: 1px solid rgba(148, 163, 184, .35);
            border-radius: 12px;
            background: rgba(248, 250, 252, .9);
            padding: 9px 11px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }
        .affiliate-page .aff-price-note strong { color: #0f172a; font-size: .93rem; }

        .affiliate-page .aff-segment {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
            gap: 6px;
            margin-top: 8px;
            padding: 4px;
            border-radius: 999px;
            border: 1px solid rgba(148, 163, 184, .34);
            background: #eef4ff;
        }

        .affiliate-page .aff-segment button {
            appearance: none;
            -webkit-appearance: none;
            border: 1px solid #7aa2ff;
            background: #ffffff;
            border-radius: 999px;
            color: #1d4ed8;
            font-size: .84rem;
            font-weight: 600;
            padding: 8px 10px;
            cursor: pointer;
            transition: all .2s ease;
            line-height: 1.2;
        }

        .affiliate-page .aff-segment button:hover { background: #f2f7ff; }
        .affiliate-page .aff-segment button:focus-visible {
            outline: none;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, .25);
        }

        .affiliate-page .aff-segment button.is-active {
            background: linear-gradient(145deg, #4f7bff, #3c6cff);
            border-color: #3d68f4;
            color: #fff;
            box-shadow: 0 7px 14px rgba(79, 128, 255, .22);
        }

        .affiliate-page .aff-graph-card {
            display: flex;
            flex-direction: column;
            gap: 14px;
            align-items: stretch;
        }

        .affiliate-page .aff-overview {
            border-radius: 14px;
            background: linear-gradient(135deg, rgba(111, 140, 255, .1), rgba(79, 217, 255, .14));
            padding: 12px 14px;
            border: 1px solid rgba(148, 163, 184, .25);
        }

        .affiliate-page .aff-graph-panel {
            width: 100%;
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(210px, .4fr);
            gap: 16px;
            align-items: stretch;
            min-height: 330px;
        }

        .affiliate-page .aff-chart-visuals {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .affiliate-page .aff-chart-visuals h3 {
            margin: 0;
            font-size: 1rem;
            color: #0b1226;
        }

        .affiliate-page .aff-bars {
            display: flex;
            align-items: stretch;
            gap: 10px;
            height: 275px;
            min-height: 275px;
            flex: 1;
        }

        .affiliate-page .aff-bar-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            gap: 6px;
            align-items: center;
        }

        .affiliate-page .aff-bar-item strong { font-size: .82rem; color: #1f2937; }
        .affiliate-page .aff-bar-value { font-size: .72rem; color: #334155; text-align: center; font-weight: 600; }

        .affiliate-page .aff-bar-track {
            height: 240px;
            min-height: 240px;
            display: flex;
            align-items: flex-end;
            border-radius: 12px;
            background: linear-gradient(180deg, rgba(148,163,184,.1), rgba(148,163,184,.22));
            padding: 6px;
            width: 100%;
        }

        .affiliate-page .aff-bar {
            width: 100%;
            border-radius: 10px 10px 7px 7px;
            min-height: 10px;
            transition: height .25s ease;
            box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
        }

        .affiliate-page .aff-chart-side {
            border-left: 1px solid rgba(148,163,184,.35);
            padding-left: 14px;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 10px;
        }

        .affiliate-page .aff-total-label { margin: 0; font-size: .82rem; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
        .affiliate-page .aff-total-value { margin: 4px 0 0; font-size: 1.55rem; font-weight: 700; color: #0b1226; text-align: left; }

        .affiliate-page .aff-donut { width: 190px; height: 190px; overflow: visible; margin: 0 auto; }
        .affiliate-page .aff-donut-legend { width: 100%; display: grid; gap: 5px; }
        .affiliate-page .aff-donut-legend-item { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; font-size: .78rem; color: #334155; }
        .affiliate-page .aff-donut-legend-item span { width: 10px; height: 10px; border-radius: 3px; display: block; }
        .affiliate-page .aff-donut-legend-item strong { font-weight: 600; }
        .affiliate-page .aff-donut-legend-item em { font-style: normal; color: #64748b; font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }

        .affiliate-page .aff-kpi {
            margin-top: 2px;
            color: #334155;
            line-height: 1.45;
            font-size: .9rem;
            border-top: 1px solid rgba(148,163,184,.35);
            padding-top: 12px;
            display: grid;
            gap: 7px;
        }
        .affiliate-page .aff-kpi-row { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
        .affiliate-page .aff-kpi-row strong { color: #0f172a; font-weight: 700; }
        .affiliate-page .aff-kpi-row strong::after { content: ':'; margin-left: 1px; }
        .affiliate-page .aff-kpi-row span { color: #334155; }

        .aff-timeline {
            display: grid;
            grid-template-columns: repeat(4, minmax(180px, 1fr));
            gap: 14px;
            position: relative;
        }

        .aff-timeline::before {
            content: '';
            position: absolute;
            left: 6%;
            right: 6%;
            top: 22px;
            height: 2px;
            background: linear-gradient(90deg, rgba(124,148,255,.25), rgba(109,220,255,.75), rgba(124,148,255,.25));
            z-index: 0;
        }

        .aff-step-card { padding: 18px; position: relative; z-index: 1; }
        .aff-step-dot {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            background: linear-gradient(120deg, #7be4ff, #6f8cff);
            color: #061029;
            margin-bottom: 10px;
        }

        .aff-compliance-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(240px, 1fr));
            gap: 14px;
        }

        .aff-rule-card { padding: 18px; }
        .aff-rule-card i { color: #7fddff; font-size: 1.15rem; margin-bottom: 8px; }

        .aff-accordion details {
            padding: 16px 18px;
            margin-bottom: 10px;
            transition: transform .22s ease, border-color .22s ease;
        }

        .aff-accordion details:hover { transform: translateY(-2px); border-color: rgba(125, 205, 255, .74); }

        .aff-accordion summary {
            list-style: none;
            cursor: pointer;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            gap: 10px;
        }

        .aff-accordion summary::-webkit-details-marker { display: none; }
        .aff-accordion summary::after {
            content: '+';
            color: #0b1226;
            font-size: 1.2rem;
            line-height: 1;
        }

        .aff-accordion details[open] summary::after { content: '−'; }
        .aff-accordion details p { margin: 10px 0 0; }

        .aff-callout { padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
        .aff-callout__actions { display: flex; gap: 10px; flex-wrap: wrap; }

        @media (max-width: 1199px) {
            .aff-ladder-grid { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
            .aff-tier-card:nth-child(n) { min-height: auto; }
            .affiliate-page .aff-chart-layout { grid-template-columns: 1fr; }
            .affiliate-page .aff-graph-panel { grid-template-columns: 1fr; min-height: auto; }
            .affiliate-page .aff-chart-side { border-left: 0; border-top: 1px solid rgba(148,163,184,.35); padding-left: 0; padding-top: 12px; }
            .affiliate-page .aff-bars { height: 250px; min-height: 250px; }
            .affiliate-page .aff-chart-side { align-items: center; }
            .affiliate-page .aff-donut-legend { max-width: 280px; }
            .aff-timeline { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
            .aff-timeline::before { display: none; }
        }

        @media (max-width: 900px) {
            .aff-hero__content { grid-template-columns: 1fr; }
            .aff-map-line text { font-size: 15px; }
            .aff-compliance-grid,
            .aff-ladder-grid,
            .aff-timeline { grid-template-columns: 1fr; }
            .aff-callout { flex-direction: column; align-items: flex-start; }
            .affiliate-page .aff-bars { height: 220px; min-height: 220px; }
            .affiliate-page .aff-bar-track { height: 190px; min-height: 190px; }
        }


        .affiliate-page .section,
        .affiliate-page .section-muted,
        .affiliate-page .page-header {
            background: transparent !important;
        }

        .affiliate-page .text-white,
        .affiliate-page .text-light,
        .affiliate-page [class*="text-white"],
        .affiliate-page [class*="text-light"] {
            color: #0b1226 !important;
        }

        .affiliate-page .page-header,
        .affiliate-page .page-header * {
            color: #0b1226 !important;
        }

        .affiliate-page a {
            color: #1d4ed8;
        }

        .affiliate-page .aff-hero__callout .btn.btn-primary,
        .affiliate-page .aff-callout__actions .btn.btn-primary {
            color: #ffffff !important;
        }

        .affiliate-page .aff-callout__actions .btn.btn-primary {
            pointer-events: auto;
        }
