/* Client report styles — Gravity Projex. Loaded via inc/assets.php per-template loader. */
        /* ============================================================
           RESET & TOKENS
           ============================================================ */
        :root {
            --space:     #060912;
            --panel:     #101828;
            --border:    rgba(255,255,255,.07);
            --cyan:      #00e5c8;
            --cyan-dim:  rgba(0,229,200,.12);
            --magenta:   #b44af5;
            --amber:     #f5a623;
            --text:      #e8edf7;
            --muted:     #7a8aaa;
            --font-head: 'Syne', sans-serif;
            --font-body: 'DM Sans', sans-serif;
        }

        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; }

        /* Override any WordPress / theme body classes */
        body.client-report-page {
            background: var(--space) !important;
            color: var(--text) !important;
            font-family: var(--font-body) !important;
            font-size: 14px !important;
            line-height: 1.6 !important;
            overflow-x: hidden !important;
        }

        /* ============================================================
           STAR FIELD BACKGROUND
           ============================================================ */
        #cr-stars {
            position: fixed;
            inset: 0;
            z-index: 0;
            pointer-events: none;
            background:
                radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,229,200,.08) 0%, transparent 60%),
                radial-gradient(ellipse 60% 40% at 90% 100%, rgba(180,74,245,.07) 0%, transparent 55%);
        }
        #cr-stars canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

        /* ============================================================
           PRINT / SAVE PDF BUTTON
           ============================================================ */
        .cr-print-fab {
            position: fixed;
            bottom: 28px;
            right: 28px;
            z-index: 999;
            display: flex;
            align-items: center;
            gap: 9px;
            background: var(--cyan);
            color: #060912;
            font-family: var(--font-head);
            font-size: 13px;
            font-weight: 700;
            letter-spacing: .04em;
            padding: 12px 20px;
            border-radius: 100px;
            border: none;
            cursor: pointer;
            box-shadow: 0 0 28px rgba(0,229,200,.4), 0 4px 20px rgba(0,0,0,.4);
            transition: transform .2s, box-shadow .2s;
        }
        .cr-print-fab:hover {
            transform: translateY(-3px);
            box-shadow: 0 0 40px rgba(0,229,200,.6), 0 8px 28px rgba(0,0,0,.5);
        }
        .cr-print-fab svg { width: 15px; height: 15px; flex-shrink: 0; }

        /* ============================================================
           CONTENT WRAPPER — full width
           ============================================================ */
        .cr-outer {
            position: relative;
            z-index: 1;
        }

        /* This is the .wrap class from the HTML mockups — now truly full-width */
        .wrap {
            position: relative;
            z-index: 1;
            max-width: 1280px;
            width: 100%;
            margin: 0 auto;
            padding: 0 48px 120px;
        }

        /* WordPress editor content reset */
        .cr-content { width: 100%; }
        .cr-content > * { max-width: none !important; }

        /* ============================================================
           COVER SECTION
           ============================================================ */
        .cover {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 60px 0 80px;
        }
        .logo-mark {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 56px;
            animation: fadeDown .6s ease both;
            text-decoration: none;
        }
        .logo-mark .logo-text {
            display: flex;
            flex-direction: column;
            line-height: 1.2;
        }
        .logo-mark .logo-gravity {
            font-family: var(--font-head);
            font-size: 17px;
            font-weight: 800;
            letter-spacing: .04em;
            background: linear-gradient(to right, #fff, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .logo-mark .logo-projex {
            font-size: 10px;
            font-weight: 300;
            letter-spacing: .2em;
            color: #64748b;
        }
        .cover-title {
            font-family: var(--font-head); font-size: clamp(40px,6.5vw,76px);
            font-weight: 800; line-height: 1.03; letter-spacing: -.02em;
            margin-bottom: 22px; animation: fadeDown .6s .2s ease both;
        }
        .cover-title .accent { color: var(--cyan); }
        .cover-meta {
            display: flex; gap: 10px; flex-wrap: wrap;
            margin-bottom: 44px; animation: fadeDown .6s .3s ease both;
        }
        .meta-pill {
            background: var(--cyan-dim); border: 1px solid rgba(0,229,200,.2);
            border-radius: 100px; padding: 6px 16px; font-size: 12px;
            font-weight: 500; color: var(--cyan); letter-spacing: .03em;
        }
        .cover-divider {
            width: 100%; height: 1px;
            background: linear-gradient(90deg, var(--cyan), transparent);
            margin-bottom: 44px; animation: expandX .8s .4s ease both; transform-origin: left;
        }
        .cover-client-block {
            display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
            animation: fadeUp .6s .5s ease both;
        }
        .cblock-label {
            font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
            color: var(--muted); margin-bottom: 5px;
        }
        .cblock-value { font-family: var(--font-head); font-size: 16px; font-weight: 700; }

        /* ============================================================
           SECTIONS
           ============================================================ */
        .section { margin-top: 72px; }
        .section-header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; }
        .section-num {
            font-family: var(--font-head); font-size: 11px; font-weight: 600;
            letter-spacing: .15em; color: var(--cyan); background: var(--cyan-dim);
            border: 1px solid rgba(0,229,200,.2); padding: 3px 10px; border-radius: 4px;
        }
        .section-title { font-family: var(--font-head); font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
        .section-divider { flex: 1; height: 1px; background: var(--border); }

        /* ============================================================
           CARDS
           ============================================================ */
        .card {
            background: var(--panel); border: 1px solid var(--border);
            border-radius: 14px; padding: 26px;
            position: relative; overflow: hidden;
            transition: border-color .3s, transform .3s;
            min-width: 0; /* critical: prevents grid blowout */
        }
        .card:hover { border-color: rgba(0,229,200,.25); transform: translateY(-2px); }
        .card::before {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(135deg, rgba(0,229,200,.03) 0%, transparent 60%);
            pointer-events: none;
        }

        /* ============================================================
           SNAPSHOT GRID — 5 columns (URL column removed)
           ============================================================ */
        .snapshot-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr); /* was 6, URL col removed */
            gap: 0;
            background: var(--panel);
            border: 1px solid var(--border);
            border-radius: 14px;
            overflow: hidden;
        }
        .snap-cell {
            padding: 18px 16px;
            border-right: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
        }
        /* 5-col rules — last cell in each row has no right border */
        .snap-cell:nth-child(5n)   { border-right: none; }
        /* last row (cells 6–10 if 2 rows) has no bottom border */
        .snap-cell:nth-last-child(-n+5) { border-bottom: none; }

        .snap-header {
            background: rgba(0,229,200,.06); font-size: 10px; letter-spacing: .12em;
            text-transform: uppercase; color: var(--cyan); font-weight: 600; padding: 14px 16px;
        }
        .snap-value { font-family: var(--font-head); font-size: 16px; font-weight: 800; margin-top: 4px; }

        /* ============================================================
           KPI GRID
           ============================================================ */
        .kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
        .kpi-card { padding: 22px; }
        .kpi-icon {
            width: 34px; height: 34px; border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            margin-bottom: 14px; font-size: 15px;
        }
        .kpi-icon.teal    { background: rgba(0,229,200,.12); }
        .kpi-icon.purple  { background: rgba(180,74,245,.12); }
        .kpi-icon.amber   { background: rgba(245,166,35,.12); }
        .kpi-icon.red     { background: rgba(239,68,68,.12); }
        .kpi-icon.blue    { background: rgba(59,158,255,.12); }
        .kpi-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
        .kpi-value { font-family: var(--font-head); font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1; margin-bottom: 8px; }
        .kpi-sub   { font-size: 11px; color: var(--muted); margin-top: 3px; }

        .delta {
            display: inline-flex; align-items: center; gap: 3px;
            font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 100px;
        }
        .delta.up      { background: rgba(0,229,200,.1);  color: var(--cyan);  }
        .delta.down    { background: rgba(239,68,68,.1);  color: #ef4444;      }
        .delta.neutral { background: rgba(255,255,255,.06); color: var(--muted); }

        .star-badge {
            display: inline-flex; align-items: center; gap: 4px; font-size: 11px;
            font-weight: 700; padding: 3px 9px; border-radius: 100px;
            background: rgba(0,229,200,.12); color: var(--cyan);
        }

        /* ============================================================
           MoM BAND
           ============================================================ */
        .mom-band {
            display: grid; grid-template-columns: repeat(4,1fr); gap: 14px;
            background: rgba(255,255,255,.02); border: 1px solid var(--border);
            border-radius: 12px; padding: 18px;
        }
        .mom-cell { text-align: center; }
        .mom-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
        .mom-val   { font-family: var(--font-head); font-size: 14px; font-weight: 700; }
        .mom-arrow { font-size: 11px; font-weight: 600; margin-top: 3px; }
        .arrow-up   { color: var(--cyan); }
        .arrow-down { color: #ef4444; }
        .arrow-flat { color: var(--muted); }

        /* ============================================================
           HIGHLIGHT CARDS
           ============================================================ */
        .highlight-card {
            background: linear-gradient(135deg, rgba(0,229,200,.09), rgba(180,74,245,.06));
            border: 1px solid rgba(0,229,200,.22); border-radius: 14px;
            padding: 24px; display: flex; align-items: flex-start; gap: 16px;
        }
        .highlight-icon  { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
        .highlight-body .h-title { font-family: var(--font-head); font-size: 14px; font-weight: 800; margin-bottom: 5px; color: var(--cyan); }
        .highlight-body .h-text  { font-size: 12px; color: var(--muted); line-height: 1.6; }

        /* ============================================================
           GRID LAYOUTS
           ============================================================ */
        .two-col   { display: grid; grid-template-columns: 1fr 1fr;     gap: 18px; }
        .three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }

        /* Prevent grid children from overflowing — fixes "sessions by channel" cutoff */
        .two-col   > *, .three-col > * { min-width: 0; overflow: hidden; }

        /* ============================================================
           CHART
           ============================================================ */
        .chart-wrap { position: relative; height: 240px; }

        /* ============================================================
           TABLES — sessions by channel overflow fix
           ============================================================ */
        table { width: 100%; border-collapse: collapse; table-layout: auto; }
        thead th {
            font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
            color: var(--muted); font-weight: 500; padding: 0 8px 13px;
            text-align: left; border-bottom: 1px solid var(--border);
            white-space: nowrap;
        }
        tbody tr { transition: background .2s; }
        tbody tr:hover { background: rgba(255,255,255,.025); }
        tbody td { padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 13px; }
        tbody tr:last-child td { border-bottom: none; }
        td.num  { font-family: var(--font-head); font-weight: 700; }
        td.url  { color: var(--muted); font-size: 11px; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        td.rank { font-family: var(--font-head); font-size: 11px; font-weight: 700; color: var(--muted); width: 28px; }

        /* Source badges in traffic table */
        .src-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; }
        .src-dot   { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

        /* Scrollable table wrapper for very narrow containers */
        .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

        /* ============================================================
           BARS
           ============================================================ */
        .bar-track { height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; margin-top: 5px; }
        .bar-fill  { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--magenta)); }
        .b-low  { color: var(--cyan); }
        .b-mid  { color: var(--amber); }
        .b-high { color: #ef4444; }

        /* ============================================================
           INSIGHT / OPPORTUNITY CALLOUTS
           ============================================================ */
        .insight {
            background: linear-gradient(135deg, rgba(0,229,200,.06), rgba(180,74,245,.04));
            border: 1px solid rgba(0,229,200,.15); border-left: 3px solid var(--cyan);
            border-radius: 10px; padding: 16px 20px; margin-top: 14px;
            font-size: 13px; line-height: 1.65;
        }
        .insight strong { color: var(--cyan); font-weight: 600; }
        .opportunity {
            background: linear-gradient(135deg, rgba(245,166,35,.06), rgba(180,74,245,.04));
            border: 1px solid rgba(245,166,35,.25); border-left: 3px solid var(--amber);
            border-radius: 10px; padding: 16px 20px; margin-top: 14px;
            font-size: 13px; line-height: 1.65;
        }
        .opportunity strong { color: var(--amber); font-weight: 600; }
        .opp-tag {
            display: inline-block; background: rgba(245,166,35,.15); color: var(--amber);
            font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
            padding: 2px 8px; border-radius: 4px; margin-bottom: 6px;
        }

        /* ============================================================
           GOALS & GEO ROWS
           ============================================================ */
        .goal-row {
            display: flex; align-items: center; gap: 14px;
            padding: 12px 0; border-bottom: 1px solid var(--border);
        }
        .goal-row:last-child { border-bottom: none; }
        .goal-name  { flex: 1; font-size: 13px; }
        .goal-count { font-family: var(--font-head); font-weight: 700; font-size: 17px; min-width: 52px; text-align: right; }
        .goal-rate  { font-size: 12px; color: var(--muted); min-width: 46px; text-align: right; }
        .goal-bar-wrap { flex: 2; min-width: 0; }

        .geo-row { display: flex; align-items: center; gap: 13px; padding: 10px 0; border-bottom: 1px solid var(--border); }
        .geo-row:last-child { border-bottom: none; }
        .geo-flag     { font-size: 18px; }
        .geo-name     { flex: 1; font-size: 13px; }
        .geo-sessions { font-family: var(--font-head); font-weight: 700; font-size: 14px; }
        .geo-pct      { font-size: 11px; color: var(--muted); min-width: 36px; text-align: right; }

        /* ============================================================
           KEYWORD ROWS
           ============================================================ */
        .kw-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
        .kw-row:last-child { border-bottom: none; }
        .kw-term     { flex: 1; font-size: 13px; font-family: var(--font-head); font-weight: 600; }
        .kw-clicks   { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--cyan); }
        .kw-bar-wrap { flex: 2; min-width: 0; }

        /* ============================================================
           SUMMARY CARD
           ============================================================ */
        .summary-card {
            background: linear-gradient(135deg, rgba(0,229,200,.07), rgba(180,74,245,.05));
            border: 1px solid rgba(0,229,200,.18); border-radius: 14px; padding: 30px;
        }
        .summary-title { font-family: var(--font-head); font-size: 15px; font-weight: 800; margin-bottom: 14px; color: var(--cyan); }
        .summary-card p { font-size: 13px; line-height: 1.75; margin-bottom: 11px; }
        .summary-card p:last-child { margin-bottom: 0; }

        /* ============================================================
           RECOMMENDATIONS
           ============================================================ */
        .rec-item {
            display: flex; gap: 14px; padding: 17px 0;
            border-bottom: 1px solid var(--border); align-items: flex-start;
        }
        .rec-item:last-child { border-bottom: none; }
        .rec-num {
            width: 27px; height: 27px; border-radius: 50%; background: var(--cyan-dim);
            border: 1px solid rgba(0,229,200,.3); display: flex; align-items: center;
            justify-content: center; font-family: var(--font-head); font-size: 11px;
            font-weight: 700; color: var(--cyan); flex-shrink: 0; margin-top: 2px;
        }
        .rec-body  { flex: 1; }
        .rec-title { font-family: var(--font-head); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
        .rec-desc  { font-size: 12px; color: var(--muted); line-height: 1.6; }

        /* ============================================================
           REPORT FOOTER (inside content, not the site footer)
           ============================================================ */
        .footer {
            margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--border);
            display: flex; align-items: center; justify-content: space-between;
            gap: 20px; flex-wrap: wrap;
        }
        .footer-brand     { font-family: var(--font-head); font-size: 13px; font-weight: 700; }
        .footer-brand em  { color: var(--cyan); font-style: normal; }
        .footer-info      { font-size: 11px; color: var(--muted); text-align: right; line-height: 1.7; }

        /* ============================================================
           ANIMATIONS
           ============================================================ */
        @keyframes fadeDown  { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
        @keyframes fadeUp    { from { opacity: 0; transform: translateY(16px); }  to { opacity: 1; transform: none; } }
        @keyframes expandX   { from { transform: scaleX(0); } to { transform: scaleX(1); } }

        /* ============================================================
           RESPONSIVE
           ============================================================ */
        @media (max-width: 1024px) {
            .wrap { padding: 0 32px 100px; }
        }
        @media (max-width: 768px) {
            .wrap { padding: 0 20px 80px; }
            .kpi-grid    { grid-template-columns: 1fr 1fr; }
            .two-col, .three-col { grid-template-columns: 1fr; }
            .cover-client-block  { grid-template-columns: 1fr; gap: 14px; }
            .snapshot-grid       { grid-template-columns: 1fr 1fr; }
            .mom-band            { grid-template-columns: 1fr 1fr; }
        }
        @media (max-width: 480px) {
            .kpi-grid    { grid-template-columns: 1fr; }
            .kpi-value   { font-size: 26px; }
            .snapshot-grid { grid-template-columns: 1fr; }
        }

        /* ============================================================
           PRINT / SAVE AS PDF
           White background, hide stars & FAB, respect full width.
           ============================================================ */
        @media print {
            @page { margin: 12mm 10mm; size: A4; }

            body.client-report-page {
                background: #fff !important;
                color: #111 !important;
                font-size: 11px !important;
            }

            /* Hide all interactive / decorative elements */
            #cr-stars,
            .cr-print-fab,
            .card::before,
            canvas#starCanvas,
            .cr-site-footer { display: none !important; }

            /* Reset CSS variables to light mode */
            :root {
                --space:    #fff;
                --panel:    #f9fafb;
                --border:   #e2e8f0;
                --text:     #1a202c;
                --muted:    #64748b;
                --cyan:     #007a6e;
                --cyan-dim: rgba(0,122,110,.08);
                --magenta:  #7c3aed;
                --amber:    #b45309;
            }

            .wrap { padding: 0 !important; max-width: 100% !important; }
            .cover { min-height: auto !important; page-break-after: always; padding: 28px 0 36px !important; }
            .cover-title { font-size: 44px !important; }
            .section { margin-top: 36px !important; page-break-inside: avoid; }
            .card { box-shadow: none !important; transform: none !important; border: 1px solid var(--border) !important; }
            .card:hover { transform: none !important; }
            .kpi-grid   { grid-template-columns: repeat(4,1fr) !important; gap: 8px !important; }
            .two-col    { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
            .three-col  { grid-template-columns: 1fr 1fr 1fr !important; gap: 12px !important; }
            .chart-wrap { height: 150px !important; }
            .kpi-value  { font-size: 24px !important; }
            .summary-card, .insight, .opportunity,
            .snapshot-grid, .highlight-card, .mom-band {
                background: var(--panel) !important;
                border: 1px solid var(--border) !important;
            }
        }