        /* Analytics Dashboard Styles */

        .nav-links a.active {
            color: var(--color-gold);
        }

        /* Analytics Hero - Two Column Layout with Integrated Form */
        .analytics-hero {
            padding: 40px 0 60px;
            background: linear-gradient(180deg, var(--color-white) 0%, var(--color-off-white) 100%);
        }

        .analytics-hero-content {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 60px;
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .analytics-hero-text {
            flex: 0 1 500px;
        }

        .analytics-hero-text .section-label {
            display: inline-block;
            font-size: 0.85rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--color-gold);
            margin-bottom: 16px;
            text-align: left;
        }

        .analytics-hero-text h1 {
            font-size: 2.8rem;
            font-weight: 600;
            margin-bottom: 20px;
            color: var(--color-black);
            line-height: 1.2;
        }

        .analytics-hero-text > p {
            font-size: 1.15rem;
            color: var(--color-dark-gray);
            line-height: 1.7;
            margin-bottom: 10px;
            text-align: left;
        }

        /* Integrated Lookup Form in Hero */
        .hero-lookup-form {
            margin-top: 25px;
        }

        .hero-input-group {
            display: flex;
            gap: 12px;
        }

        .hero-input-group input {
            flex: 1;
            padding: 14px 18px;
            border: 2px solid var(--color-gray);
            border-radius: var(--radius-md);
            font-size: 1rem;
            font-family: inherit;
            transition: border-color 0.2s ease;
        }

        .hero-input-group input:focus {
            outline: none;
            border-color: var(--color-gold);
        }

        .hero-input-group input::placeholder {
            color: var(--color-dark-gray);
        }

        .hero-hint {
            font-size: 0.85rem;
            color: var(--color-dark-gray);
            margin-top: 12px;
        }

        /* Hero Visual */
        .analytics-hero-visual {
            flex: 0 1 450px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .analytics-hero-visual svg {
            width: 100%;
            max-width: 340px;
            height: auto;
            filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
        }

        /* Dashboard Section - Always visible */
        .analytics-dashboard {
            padding: 0 0 80px;
            display: block;
        }

        /* Placeholder/Empty State Styling - greyed out sample data */
        .empty-state .stat-value {
            color: var(--color-gray) !important;
        }

        .empty-state .stat-value.highlight {
            color: var(--color-gray) !important;
        }

        .placeholder-row td {
            color: var(--color-gray) !important;
        }

        .empty-state .os-legend-item span {
            color: var(--color-gray);
        }

        .empty-state .percent-change {
            color: var(--color-gray) !important;
            background: var(--color-light-gray) !important;
        }

        .empty-state .percent-change svg {
            stroke: var(--color-gray) !important;
        }

        /* Info Tooltip Icons */
        .info-tooltip {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            margin-right: 6px;
            font-size: 11px;
            font-weight: 700;
            color: var(--color-gold);
            background: var(--color-white);
            border: 2px solid var(--color-gold);
            border-radius: 50%;
            cursor: help;
            transition: all 0.2s ease;
            vertical-align: middle;
        }

        .info-tooltip:hover {
            color: var(--color-white);
            background: var(--color-gold);
        }

        .info-tooltip::after {
            content: attr(data-tooltip);
            position: absolute;
            top: calc(100% + 8px);
            left: 50%;
            transform: translateX(-50%);
            padding: 12px 16px;
            background: var(--color-black);
            color: var(--color-white);
            font-size: 0.85rem;
            font-weight: 400;
            line-height: 1.5;
            white-space: normal;
            width: max-content;
            max-width: 300px;
            border-radius: var(--radius-sm);
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
            z-index: 1000;
            pointer-events: none;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .info-tooltip::before {
            content: '';
            position: absolute;
            top: calc(100% + 2px);
            left: 50%;
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-bottom-color: var(--color-black);
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
            z-index: 1000;
        }

        .info-tooltip:hover::after,
        .info-tooltip:hover::before {
            opacity: 1;
            visibility: visible;
        }

        /* Dashboard Header */
        .dashboard-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .dashboard-title {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .dashboard-title h2 {
            font-size: 1.5rem;
            font-weight: 600;
        }

        .dashboard-title .campaign-id-display {
            font-size: 0.9rem;
            color: var(--color-dark-gray);
        }

        .last-updated {
            font-size: 0.85rem;
            color: var(--color-dark-gray);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .last-updated::before {
            content: '';
            width: 8px;
            height: 8px;
            background: var(--color-gold);
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

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

        /* Top Stats Row - Above Map */
        .top-stats-row {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
        }

        .stat-card {
            background: var(--color-white);
            border: 1px solid var(--color-gray);
            border-radius: var(--radius-lg);
            padding: 24px 28px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            border-left: 4px solid transparent;
        }

        .stat-card:first-child {
            border-left-color: var(--color-gold);
        }

        .stat-card .stat-label {
            font-size: 0.85rem;
            color: var(--color-dark-gray);
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .stat-card .stat-value {
            font-size: 2.25rem;
            font-weight: 700;
            line-height: 1.1;
            min-width: 2ch;
            text-align: right;
        }

        .stat-card .stat-value.highlight {
            color: var(--color-gold);
        }

        /* Full Width Map Container */
        .map-full-width {
            margin-bottom: 25px;
            border: 1px solid var(--color-gray);
            border-radius: var(--radius-lg);
            overflow: hidden;
            background: var(--color-white);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }

        .map-main-area {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        .location-details-toggle {
            text-align: center;
            padding: 8px 16px;
            border-top: 1px solid var(--color-light-gray);
        }

        .location-details-toggle button {
            background: none;
            border: none;
            color: var(--color-gold);
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            padding: 4px 12px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .location-details-toggle button:hover {
            text-decoration: underline;
        }

        .map-container-large {
            position: relative;
            height: 500px;
        }

        .map-container-large #world-map {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            height: 100%;
            width: 100%;
        }

        /* Below Map Row - Top Cities Left, OS Right */
        .below-map-row {
            display: grid;
            grid-template-columns: 3fr 2fr;
            gap: 25px;
            margin-bottom: 25px;
        }

        /* Top Cities Card */
        .cities-card {
            background: var(--color-white);
            border: 1px solid var(--color-gray);
            border-radius: var(--radius-lg);
            padding: 28px;
            display: flex;
            flex-direction: column;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }

        .cities-card-title {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--color-black);
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .cities-card .chart-container.bar-vertical {
            flex: 1;
            min-height: 200px;
        }

        /* OS Distribution Card */
        .os-card {
            background: var(--color-white);
            border: 1px solid var(--color-gray);
            border-radius: var(--radius-lg);
            padding: 28px;
            display: flex;
            flex-direction: column;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            overflow: visible;
        }

        .os-card-title {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--color-black);
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .os-card .chart-container.donut {
            height: 160px;
            flex: 1;
            padding: 10px 20px;
            box-sizing: border-box;
            overflow: visible;
        }

        .os-legend.compact {
            gap: 15px;
            margin-top: 10px;
            font-size: 0.8rem;
        }

        /* Bottom Dashboard Section - Full Width Cards */
        .dashboard-bottom {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        .dashboard-card {
            background: var(--color-white);
            border: 1px solid var(--color-gray);
            border-radius: var(--radius-lg);
            padding: 28px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }

        .stat-label {
            font-size: 0.85rem;
            color: var(--color-dark-gray);
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .stat-value {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--color-black);
            line-height: 1;
        }

        .stat-value.highlight {
            color: var(--color-gold);
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .card-header h3 {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--color-black);
        }

        /* Time Toggle */
        .time-toggle {
            display: flex;
            background: var(--color-light-gray);
            border-radius: var(--radius-sm);
            padding: 3px;
        }

        .time-toggle button {
            padding: 6px 12px;
            font-size: 0.8rem;
            font-weight: 600;
            border: none;
            background: transparent;
            color: var(--color-dark-gray);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: inherit;
        }

        .time-toggle button.active {
            background: var(--color-gold);
            color: var(--color-white);
        }

        .time-toggle button:hover:not(.active) {
            color: var(--color-black);
        }

        /* Percent Change Indicator */
        .percent-change {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: 0.85rem;
            font-weight: 600;
            padding: 4px 8px;
            border-radius: var(--radius-sm);
        }

        .percent-change.positive {
            color: var(--color-gold);
            background: rgba(255, 149, 5, 0.1);
        }

        .percent-change.negative {
            color: var(--color-salmon);
            background: rgba(224, 120, 95, 0.1);
        }

        .percent-change svg {
            width: 12px;
            height: 12px;
        }

        /* Chart Containers */
        .chart-container {
            position: relative;
            height: 280px;
        }

        .chart-container.donut {
            height: 220px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .chart-container.bar-horizontal {
            height: 200px;
        }

        /* OS Legend */
        .os-legend {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-top: 20px;
        }

        .os-legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
        }

        .os-legend-color {
            width: 12px;
            height: 12px;
            border-radius: 3px;
        }

        .os-legend-color.ios {
            background: var(--color-gold);
        }

        .os-legend-color.android {
            background: var(--color-black);
        }

        .os-legend-color.other {
            background: #888888;
        }

        /* Map Container */
        .map-container-large {
            position: relative;
            background: var(--color-light-gray);
        }

        #world-map {
            height: 100%;
            width: 100%;
            z-index: 1;
        }

        .map-controls {
            position: absolute;
            top: 15px;
            right: 15px;
            display: flex;
            flex-direction: column;
            gap: 5px;
            z-index: 1000;
        }

        .map-controls button {
            width: 32px;
            height: 32px;
            background: var(--color-white);
            border: 1px solid var(--color-gray);
            border-radius: var(--radius-sm);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--color-black);
            transition: all 0.2s ease;
            font-family: inherit;
        }

        .map-controls button:hover {
            background: var(--color-light-gray);
            border-color: var(--color-gold);
        }

        /* Leaflet custom styles */
        .leaflet-container {
            font-family: var(--font-primary);
        }

        /* Leaflet popup - dark theme to match site tooltips */
        .leaflet-popup-content-wrapper {
            background: var(--color-black);
            color: var(--color-white);
            border-radius: var(--radius-sm);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            font-family: var(--font-primary);
        }

        .leaflet-popup-content {
            margin: 0;
            font-size: 0.9rem;
        }

        .leaflet-popup-tip {
            background: var(--color-black);
        }

        .leaflet-popup-close-button {
            display: none !important;
        }

        .scan-marker {
            background: var(--color-gold);
            border: 2px solid var(--color-white);
            border-radius: 50%;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }

        /* Map Breadcrumb */
        .map-breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            background: var(--color-off-white);
            border-bottom: 1px solid var(--color-gray);
            font-size: 0.9rem;
        }

        .map-breadcrumb a {
            color: var(--color-gold);
            text-decoration: none;
            font-weight: 500;
        }

        .map-breadcrumb a:hover {
            text-decoration: underline;
        }

        .map-breadcrumb .breadcrumb-separator {
            color: var(--color-dark-gray);
        }

        .map-breadcrumb #selectedStateName {
            font-weight: 600;
            color: var(--color-black);
        }

        .map-breadcrumb .breadcrumb-close {
            margin-left: auto;
            background: none;
            border: none;
            font-size: 1.2rem;
            color: var(--color-dark-gray);
            cursor: pointer;
            padding: 2px 6px;
            border-radius: 4px;
        }

        .map-breadcrumb .breadcrumb-close:hover {
            background: var(--color-gray);
            color: var(--color-black);
        }

        /* Map Legend */
        .map-legend {
            position: absolute;
            bottom: 15px;
            right: 15px;
            background: rgba(255, 255, 255, 0.95);
            padding: 10px 12px;
            border-radius: var(--radius-sm);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            z-index: 1000;
            font-size: 0.75rem;
        }

        .map-legend .legend-title {
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--color-black);
            font-size: 0.8rem;
        }

        .map-legend .legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 4px;
            color: var(--color-dark-gray);
        }

        .map-legend .legend-item:last-child {
            margin-bottom: 0;
        }

        .map-legend .legend-color {
            width: 18px;
            height: 12px;
            border-radius: 2px;
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        /* State hover info - dark theme */
        .state-info {
            padding: 12px 16px;
            text-align: left;
        }

        .state-info strong {
            display: block;
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 6px;
            color: var(--color-white);
        }

        .state-info .scan-count {
            color: var(--color-gold);
            font-size: 1.1rem;
            font-weight: 700;
        }

        .state-info .drill-hint {
            font-size: 0.75rem;
            color: var(--color-white);
            margin-top: 8px;
            font-style: italic;
            opacity: 0.7;
        }

        /* Heat map tooltip (Zoho style) */
        .heat-tooltip {
            background: white !important;
            border: 1px solid #ccc !important;
            border-radius: 4px !important;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
            padding: 0 !important;
            font-family: inherit !important;
        }

        .heat-tooltip .leaflet-tooltip-content {
            margin: 0;
        }

        .leaflet-tooltip-top.heat-tooltip::before {
            border-top-color: #ccc !important;
        }

        /* QR Performance Table */
        .table-container {
            overflow-x: auto;
        }

        .performance-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.9rem;
        }

        .performance-table th,
        .performance-table td {
            padding: 14px 16px;
            text-align: left;
            border-bottom: 1px solid var(--color-gray);
        }

        .performance-table th {
            background: var(--color-light-gray);
            font-weight: 600;
            color: var(--color-black);
            cursor: pointer;
            user-select: none;
            white-space: nowrap;
            transition: background 0.2s ease;
        }

        .performance-table th:hover {
            background: var(--color-gray);
        }

        .performance-table th .sort-icon {
            display: inline-block;
            margin-left: 6px;
            opacity: 0.4;
            transition: opacity 0.2s ease;
        }

        .performance-table th.sorted .sort-icon {
            opacity: 1;
            color: var(--color-gold);
        }

        .performance-table tbody tr:hover {
            background: var(--color-off-white);
        }

        .performance-table td {
            color: var(--color-text);
        }

        .campaign-id-cell {
            font-family: monospace;
            font-weight: 500;
        }

        /* Loading State */
        .loading-spinner {
            display: none;
            width: 24px;
            height: 24px;
            border: 3px solid var(--color-gray);
            border-top-color: var(--color-gold);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        .loading-spinner.visible {
            display: inline-block;
        }

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

        /* Error State */
        .error-message {
            display: none;
            background: rgba(244, 67, 54, 0.1);
            border: 1px solid rgba(244, 67, 54, 0.3);
            border-radius: var(--radius-md);
            padding: 15px 20px;
            color: #c62828;
            font-size: 0.9rem;
            margin-top: 15px;
        }

        .error-message.visible {
            display: block;
        }

        /* Empty State Styling */
        .empty-placeholder {
            color: var(--color-dark-gray);
            font-size: 0.9rem;
        }

        .dashboard-card.empty-state,
        .stat-card.empty-state,
        .os-card.empty-state,
        .cities-card.empty-state {
            opacity: 0.6;
        }

        .chart-empty-message {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: var(--color-dark-gray);
            font-size: 0.9rem;
            text-align: center;
        }

        .map-empty-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 500;
            pointer-events: none;
        }

        .map-empty-overlay.hidden {
            display: none;
        }

        .map-empty-content {
            text-align: center;
            padding: 30px 40px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: var(--radius-lg);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }

        .map-empty-content svg {
            width: 48px;
            height: 48px;
            stroke: var(--color-gold);
            margin-bottom: 15px;
        }

        .map-empty-content p {
            color: var(--color-text);
            font-size: 0.95rem;
            font-weight: 500;
        }

        /* No Campaign Section - Hidden by default */
        .no-campaign {
            padding: 60px 0 100px;
            display: none;
        }

        .no-campaign-content {
            max-width: 500px;
            margin: 0 auto;
            text-align: center;
        }

        .no-campaign-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 25px;
            background: var(--color-light-gray);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .no-campaign-icon svg {
            width: 40px;
            height: 40px;
            stroke: var(--color-dark-gray);
        }

        .no-campaign-content h2 {
            font-size: 1.5rem;
            margin-bottom: 15px;
        }

        .no-campaign-content p {
            color: var(--color-dark-gray);
            margin-bottom: 25px;
        }

        /* Dashboard CTA */
        .dashboard-cta {
            text-align: center;
            padding: 30px 20px;
            margin-top: 20px;
            background: var(--color-off-white);
            border-radius: var(--radius-lg);
            border: 1px dashed var(--color-gray);
        }

        .dashboard-cta p {
            color: var(--color-dark-gray);
            font-size: 0.95rem;
            margin: 0;
        }

        .dashboard-cta a {
            color: var(--color-gold);
            font-weight: 600;
            text-decoration: none;
        }

        .dashboard-cta a:hover {
            text-decoration: underline;
        }

        .dashboard-cta.hidden {
            display: none;
        }

        /* Responsive Styles */
        @media (max-width: 1024px) {
            .analytics-hero {
                padding: 10px 0 20px;
            }

            .analytics-hero-content {
                flex-direction: column;
                gap: 24px;
            }

            .analytics-hero-text {
                flex: 0 1 auto;
                text-align: center;
            }

            .analytics-hero-text .section-label,
            .analytics-hero-text h1,
            .analytics-hero-text > p {
                text-align: center;
            }

            .hero-lookup-form {
                max-width: 500px;
                margin: 25px auto 0;
            }

            .hero-hint {
                text-align: center;
            }

            .analytics-hero-visual {
                order: -1;
                flex: 0 0 auto;
            }

            .analytics-hero-visual svg {
                max-width: 380px;
            }

            .map-container-large {
                height: 400px;
            }

            .below-map-row {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .analytics-hero-text h1 {
                font-size: 1.8rem;
                margin-bottom: 14px;
            }

            .analytics-hero-text > p {
                font-size: 1rem;
            }

            .hero-input-group {
                flex-direction: column;
            }

            .analytics-hero-visual svg {
                max-width: 300px;
            }

            .top-stats-row {
                flex-direction: column;
                gap: 12px;
            }

            .stat-card {
                padding: 16px 20px;
            }

            .stat-card .stat-value {
                font-size: 1.6rem;
            }

            .dashboard-header {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }

            .map-main-area > div:first-child {
                flex-wrap: wrap;
                gap: 6px;
            }

            .map-main-area > div:first-child span {
                margin-left: 0 !important;
                font-size: 0.7rem !important;
            }

            .card-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }

            .map-container-large {
                height: 300px;
            }

            .performance-table {
                font-size: 0.8rem;
            }

            .performance-table th,
            .performance-table td {
                padding: 10px 12px;
            }

            .table-container {
                -webkit-overflow-scrolling: touch;
            }

            .chart-container {
                height: 220px;
            }

            .cities-card,
            .os-card {
                overflow: hidden;
                max-width: 100%;
                box-sizing: border-box;
            }

            .cities-card .chart-container.bar-vertical,
            .os-card .chart-container.donut {
                max-width: 100%;
                overflow: hidden;
            }

            .chart-container.donut {
                height: 180px;
            }

            .chart-container.bar-horizontal {
                height: 160px;
            }

            .info-tooltip::after {
                max-width: min(300px, calc(100vw - 40px));
            }

            .map-controls button {
                width: 40px;
                height: 40px;
            }

            .os-legend {
                gap: 15px;
                flex-wrap: wrap;
            }
        }

        @media (max-width: 480px) {
            .analytics-hero {
                padding: 8px 0 16px;
            }

            .analytics-hero-content {
                gap: 16px;
            }

            .analytics-hero-text h1 {
                font-size: 1.5rem;
            }

            .analytics-hero-visual svg {
                max-width: 260px;
            }

            .map-container-large {
                height: 250px;
            }

            .stat-card .stat-value {
                font-size: 1.4rem;
            }

            .dashboard-card {
                padding: 16px;
            }
        }

        /* Print Styles */
        @media print {
            @page {
                margin: 0.3in;
            }

            /* Shrink page to fit print width using zoom (not transform:scale).
               Zoom actually changes layout dimensions so page breaks work correctly. */
            body {
                zoom: 0.55 !important;
            }

            /* Hide interactive elements that don't work on paper */
            .map-controls,
            .location-details-toggle,
            .map-legend,
            .time-toggle,
            .loading-spinner,
            #samplingNotice,
            .dashboard-cta,
            .info-tooltip,
            .map-breadcrumb .breadcrumb-close,
            .leaflet-control-attribution,
            .error-message,
            .no-campaign,
            .nav-links,
            .btn-primary {
                display: none !important;
            }

            /* Remove shadows for cleaner print */
            .stat-card,
            .map-full-width,
            .cities-card,
            .os-card,
            .dashboard-card {
                box-shadow: none !important;
                border: 1px solid #ccc !important;
            }

            /* Hide entire hero section in print — it's just the search form */
            .analytics-hero {
                display: none !important;
            }

            /* Prevent page breaks inside cards */
            .stat-card,
            .cities-card,
            .os-card,
            .dashboard-card,
            .below-map-row,
            .map-full-width {
                break-inside: avoid;
            }
        }
