@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@700;800&display=swap');

 [hidden] { display: none !important; }

/* =========================================================
   PUBLYTICS MODERN SAAS DASHBOARD - ADVANCED CSS
   ========================================================= */

:root {
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --primary-light: #e0f2fe;
    --bg-main: #edf2f7;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(226, 232, 240, 0.8);
    
    /* Claymorphism Design System Tokens */
    --clay-card-bg: linear-gradient(145deg, #ffffff, #f5f8fc);
    --clay-shadow: 8px 14px 28px -4px rgba(15, 23, 42, 0.07), 2px 4px 8px -2px rgba(15, 23, 42, 0.03);
    --clay-shadow-hover: 12px 20px 36px -6px rgba(15, 23, 42, 0.12), 4px 8px 14px -3px rgba(15, 23, 42, 0.05);
    --clay-inset: inset 2px 2px 4px rgba(255, 255, 255, 0.95), inset -2px -2px 4px rgba(148, 163, 184, 0.14);
    --clay-inset-deep: inset 2.5px 2.5px 5px rgba(148, 163, 184, 0.22), inset -2.5px -2.5px 5px rgba(255, 255, 255, 0.9);
    --clay-border: 1px solid rgba(255, 255, 255, 0.7);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
}

* { 
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
    font-family: "DM Sans", "Segoe UI", sans-serif; 
}
        
body { 
    display: flex; 
    height: 100vh; 
    background: radial-gradient(circle at 90% 5%, #e0f0ff 0%, #edf3f8 40%, #e6edf5 100%); 
    color: var(--text-dark); 
    overflow: hidden;
}

/* =========================================================
   SIDEBAR STYLING - CLAYMORPHIC
   ========================================================= */
.sidebar { 
    width: 268px; 
    background: linear-gradient(175deg, #ffffff 0%, #f7fafc 100%); 
    border-right: 1px solid rgba(226, 232, 240, 0.9); 
    padding: 24px 16px 18px; 
    flex-shrink: 0; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    position: relative;
    z-index: 10;
    box-shadow: 4px 0 20px rgba(15, 23, 42, 0.03);
    transition: all 0.3s ease;
}

.sidebar .brand { 
    font-family: "Manrope", sans-serif;
    font-size: 21px; 
    font-weight: 800; 
    color: var(--primary); 
    padding: 0 10px 20px 10px; 
    border-bottom: 1px solid rgba(226, 232, 240, 0.8); 
    margin-bottom: 18px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    letter-spacing: -0.5px;
}

.nav-group-header {
    padding: 10px 14px;
    color: #475569;
    cursor: pointer;
    font-size: 12px; 
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-sm);
    margin-bottom: 5px; 
    user-select: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-group-header:hover, .nav-group-header.active { 
    background: var(--clay-card-bg); 
    color: var(--primary); 
    box-shadow: var(--clay-shadow), var(--clay-inset);
    transform: translateY(-1px);
}

.arrow { 
    font-size: 10px; 
    transition: transform 0.25s ease; 
    color: #94a3b8; 
}

.nav-group.open .arrow { 
    transform: rotate(180deg); 
}

.sub-menu { 
    display: none; 
    padding-left: 12px; 
    margin-top: 3px;
    margin-bottom: 4px;
}

.nav-group.open .sub-menu { 
    display: block; 
}

.sub-item {
    padding: 8px 12px;
    color: #64748b;
    font-size: 11.5px; 
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    margin-bottom: 3px;
    display: block;
    transition: all 0.18s ease;
    text-decoration: none;
}

.sub-item:hover, .sub-item.active { 
    background: #ffffff; 
    color: var(--primary); 
    font-weight: 700; 
    padding-left: 15px;
    box-shadow: 2px 4px 10px rgba(2, 132, 199, 0.08), inset 1.5px 1.5px 3px #fff;
    border-left: 3px solid var(--primary);
}

/* User Profile Footer (Sidebar) */
.user-profile {
    padding: 12px 14px;
    border: var(--clay-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--clay-card-bg);
    margin-top: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--clay-shadow), var(--clay-inset);
    cursor: pointer;
    transition: all 0.22s ease;
}

.user-profile:hover { 
    box-shadow: var(--clay-shadow-hover), var(--clay-inset);
    transform: translateY(-2px);
}

.user-avatar { 
    width: 34px; 
    height: 34px; 
    background: linear-gradient(135deg, var(--primary), #0284c7); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #fff; 
    font-weight: 700; 
    font-size: 13px;
    flex-shrink: 0; 
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
}

.role-badge { 
    font-size: 10px; 
    background: var(--primary-light); 
    color: var(--primary); 
    padding: 3px 8px; 
    border-radius: 12px; 
    font-weight: 700; 
    text-transform: uppercase;
}

/* =========================================================
   MAIN CONTENT AREA
   ========================================================= */
.content { 
    flex-grow: 1; 
    padding: 28px 34px 42px; 
    overflow-y: auto; 
    position: relative;
    z-index: 1;
}

.page-section { display: none; }
.page-section.active { display: block; animation: fadeIn 0.25s ease-in-out; }

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

/* Top Bar Navbar */
.top-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    min-height: 48px;
    margin-bottom: 24px; 
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(203, 213, 225, .72);
    gap: 12px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.site-selector-container {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.site-selector-label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
    flex-shrink: 0;
}

.site-select-dropdown {
    min-width: 140px;
    max-width: 240px;
}

/* Custom Site Dropdown Component */
.custom-site-dropdown-wrapper {
    position: relative;
    display: inline-block;
    min-width: 170px;
    max-width: 280px;
}

.custom-site-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    background: #ffffff;
    color: #0369a1;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 7px 12px;
    border-radius: var(--radius-sm, 8px);
    font-size: 13px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-site-trigger:hover,
.custom-site-trigger:focus,
.custom-site-dropdown-wrapper.open .custom-site-trigger {
    border-color: #0284c7;
    box-shadow: inset 1px 1px 3px rgba(2, 132, 199, 0.15), 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.site-trigger-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    flex: 1;
}

.site-trigger-arrow {
    font-size: 10px;
    color: #0284c7;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-site-dropdown-wrapper.open .site-trigger-arrow {
    transform: rotate(180deg);
}

.custom-site-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 240px;
    max-width: 340px;
    max-height: 320px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #cbd5e1;
    padding: 6px;
    z-index: 1000;
}

.custom-site-dropdown-wrapper.open .custom-site-menu {
    display: block;
}

.custom-site-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background 0.15s ease;
    cursor: pointer;
}

.custom-site-item:hover {
    background: #f0f9ff;
}

.custom-site-item.active {
    background: #e0f2fe;
}

.custom-site-name {
    flex: 1;
    font-size: 13px;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    font-weight: 500;
}

.custom-site-item.active .custom-site-name {
    color: #0284c7;
    font-weight: 700;
}

.site-item-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: #ef4444;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
    line-height: 1;
}

.site-item-delete-btn:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
    transform: scale(1.1);
}

.top-controls { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

/* Custom Nav Dropdowns (Metric & Timeframe) */
.custom-nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-nav-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.custom-nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #0369a1;
    border: 1px solid rgba(226, 232, 240, 0.95);
    padding: 7px 12px;
    border-radius: var(--radius-sm, 8px);
    font-size: 12.5px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.custom-nav-trigger:hover,
.custom-nav-trigger:focus,
.custom-nav-dropdown-wrapper.open .custom-nav-trigger {
    border-color: #0284c7;
    color: #0284c7;
    box-shadow: inset 1px 1px 3px rgba(2, 132, 199, 0.12), 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.nav-trigger-icon {
    font-size: 13px;
    line-height: 1;
}

.nav-trigger-text {
    font-size: 12.5px;
    color: #0f172a;
    font-weight: 600;
}

.nav-trigger-arrow {
    font-size: 9px;
    color: #0284c7;
    transition: transform 0.2s ease;
}

.custom-nav-dropdown-wrapper.open .nav-trigger-arrow {
    transform: rotate(180deg);
}

.custom-nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    min-width: 170px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.14), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    border: 1px solid #cbd5e1;
    padding: 6px;
    z-index: 1000;
}

.custom-nav-dropdown-wrapper.open .custom-nav-menu {
    display: block;
    animation: fadeInNavMenu 0.16s ease-out;
}

@keyframes fadeInNavMenu {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.custom-nav-item:hover {
    background: #f0f9ff;
}

.custom-nav-item.active {
    background: #e0f2fe;
}

.nav-item-clean-text {
    font-size: 12.5px;
    color: #1e293b;
    font-weight: 500;
    white-space: nowrap;
}

.custom-nav-item.active .nav-item-clean-text {
    color: #0284c7;
    font-weight: 700;
}

.nav-item-check {
    font-size: 12px;
    color: #0284c7;
    font-weight: 800;
    opacity: 0;
    margin-left: 12px;
}

.custom-nav-item.active .nav-item-check {
    opacity: 1;
}

/* Custom Entries Dropdown (Sources page) */
.custom-entries-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.custom-entries-wrapper {
    position: relative;
    display: inline-block;
}

.custom-entries-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #0369a1;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: all 0.15s ease;
}

.custom-entries-trigger:hover,
.custom-entries-wrapper.open .custom-entries-trigger {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.entries-arrow {
    font-size: 8px;
    color: #0284c7;
    transition: transform 0.2s ease;
}

.custom-entries-wrapper.open .entries-arrow {
    transform: rotate(180deg);
}

.custom-entries-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 130px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.12);
    padding: 5px;
    z-index: 1000;
}

.custom-entries-wrapper.open .custom-entries-menu {
    display: block;
}

.custom-entries-item {
    padding: 7px 10px;
    font-size: 12px;
    color: #1e293b;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.12s ease;
}

.custom-entries-item:hover {
    background: #f0f9ff;
    color: #0284c7;
}

.custom-entries-item.active {
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 700;
}

.top-right-nav { 
    display: flex; 
    align-items: center; 
    gap: 10px;
    position: relative; 
}

/* Profile Dropdown Navbar */
.profile-dropdown-container { 
    position: relative; 
    display: inline-block; 
    z-index: 100;
}

.profile-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.profile-trigger:hover { 
    transform: scale(1.05);
}

.profile-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 44px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 240px;
    z-index: 1000;
    padding: 8px 0;
}

.profile-dropdown-menu.show { display: block !important; animation: fadeIn 0.15s ease-out; }
.dropdown-header { padding: 10px 16px; font-weight: 600; font-size: 13px; color: var(--text-dark); }
.dropdown-divider { height: 1px; background: var(--border-color); margin: 6px 0; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 12px;
    color: #334155;
    text-decoration: none;
    transition: background 0.15s ease;
    cursor: pointer;
}

.dropdown-item:hover { background: var(--bg-main); color: var(--primary); }
.logout-item { color: #ef4444; font-weight: 600; }
.logout-item:hover { background: #fef2f2; color: #dc2626; }

/* Form Controls & Buttons - Claymorphic */
.custom-select, input[type="text"], input[type="password"], input[type="search"], select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230284c7' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") no-repeat right 12px center / 12px auto;
    color: #0369a1;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 8px 30px 8px 13px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    box-shadow: var(--clay-inset-deep);
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select:hover, .custom-select:focus, input:focus { 
    border-color: #0284c7; 
    box-shadow: inset 1px 1px 3px rgba(2, 132, 199, 0.2), 0 0 0 3px rgba(2, 132, 199, 0.15);
}
input[type="date"] { accent-color: #0284c7; }

.btn-primary {
    background: linear-gradient(145deg, #0ea5e9, #0284c7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 4px 6px 14px rgba(2, 132, 199, 0.32), inset 1px 1px 2px rgba(255, 255, 255, 0.5), inset -1px -1px 2px rgba(15, 23, 42, 0.15);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover { 
    background: linear-gradient(145deg, #38bdf8, #0369a1);
    transform: translateY(-1.5px);
    box-shadow: 6px 10px 20px rgba(2, 132, 199, 0.42), inset 1px 1px 2px rgba(255, 255, 255, 0.6);
}

.btn-primary:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 2px 3px 8px rgba(2, 132, 199, 0.25);
}

.btn-secondary { 
    background: var(--clay-card-bg); 
    color: #475569; 
    border: var(--clay-border); 
    padding: 9px 18px; 
    border-radius: var(--radius-sm); 
    font-size: 12px; 
    font-weight: 700;
    cursor: pointer; 
    box-shadow: var(--clay-shadow), var(--clay-inset);
    transition: all 0.2s ease;
}

.btn-secondary:hover { 
    color: var(--text-dark); 
    box-shadow: var(--clay-shadow-hover), var(--clay-inset);
    transform: translateY(-1.5px);
}

/* =========================================================
   CARDS & TABLES - CLAYMORPHIC
   ========================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-bottom: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }

.card { 
    background: var(--clay-card-bg); 
    border: var(--clay-border); 
    padding: 22px; 
    border-radius: var(--radius-md); 
    box-shadow: var(--clay-shadow), var(--clay-inset); 
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover { 
    box-shadow: var(--clay-shadow-hover), var(--clay-inset); 
    transform: translateY(-2.5px);
}

.card h4 { margin: 0; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.card .val { font-size: 30px; font-weight: 800; margin-top: 8px; color: var(--text-dark); font-family: "Manrope", sans-serif; }

.table-card { 
    background: var(--clay-card-bg); 
    border: var(--clay-border); 
    border-radius: var(--radius-md); 
    overflow: hidden; 
    box-shadow: var(--clay-shadow), var(--clay-inset); 
    margin-bottom: 25px; 
}

.table-header { 
    padding: 16px 22px; 
    border-bottom: 1px solid rgba(226, 232, 240, 0.8); 
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.table-header h4 { margin: 0; font-size: 14px; font-weight: 800; color: #1e293b; }
.table-subtitle { display: block; margin-top: 3px; color: #94a3b8; font-size: 11.5px; }

.realtime-page-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.realtime-page-heading h2 { margin: 3px 0 5px; font-size: 26px; font-weight: 800; letter-spacing: -0.5px; color: #0f172a; }
.realtime-page-heading p { color: var(--text-muted); font-size: 13px; }
.eyebrow { color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.live-indicator { display: flex; align-items: center; gap: 7px; color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 20px; padding: 7px 12px; font-size: 11px; font-weight: 700; box-shadow: inset 1px 1px 2px #fff; }
.live-indicator span { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; }
.realtime-kpis { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.realtime-kpi { min-height: 112px; padding: 18px 20px; background: var(--clay-card-bg); border: var(--clay-border); border-radius: var(--radius-md); box-shadow: var(--clay-shadow), var(--clay-inset); }
.realtime-kpi-highlight { background: linear-gradient(145deg, #e0f2fe, #f0f9ff); border-color: #bae6fd; }
.kpi-label, .kpi-note { display: block; color: var(--text-muted); font-size: 11px; font-weight: 600; }
.realtime-kpi strong { display: block; margin: 8px 0 4px; color: var(--text-dark); font-size: 27px; line-height: 1; font-family: "Manrope", sans-serif; }
.realtime-kpi-highlight strong { color: var(--primary); }
.refresh-label { color: #94a3b8; font-size: 11px; }

/* =========================================================
   VISITOR JOURNEY & CLICK FLOW - CLAYMORPHIC STYLES
   ========================================================= */
.journey-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.journey-tabs-nav {
    display: inline-flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: var(--radius-md);
    box-shadow: var(--clay-inset-deep);
    gap: 4px;
}

.journey-tab-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.journey-tab-btn.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 2px 4px 10px rgba(15, 23, 42, 0.08), inset 1.5px 1.5px 3px #ffffff;
}

.journey-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    box-shadow: var(--clay-inset-deep);
}

.journey-search-box input {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-size: 12.5px;
    width: 220px;
}

/* Multi-stage Path Pipeline Visualizer */
.journey-pipeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.journey-stage-col {
    background: var(--clay-card-bg);
    border: var(--clay-border);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--clay-shadow), var(--clay-inset);
    display: flex;
    flex-direction: column;
}

.journey-stage-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.journey-flow-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.journey-flow-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 2px 4px 10px rgba(15, 23, 42, 0.04), inset 1px 1px 2px #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.journey-flow-card:hover {
    transform: translateY(-2px);
    box-shadow: 4px 8px 16px rgba(15, 23, 42, 0.08);
    border-color: #bae6fd;
}

.journey-path-text {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.journey-path-vol {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    background: #e0f2fe;
    padding: 3px 8px;
    border-radius: 8px;
}

/* Step Chips in Sessions Table */
.journey-step-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 4px;
    margin-bottom: 2px;
    box-shadow: inset 1px 1px 2px #fff;
}

.journey-step-arrow {
    color: #94a3b8;
    font-weight: 800;
    font-size: 10px;
    margin-right: 4px;
}

.visitor-inspect-btn {
    background: linear-gradient(145deg, #ffffff, #f0f9ff);
    color: #0284c7;
    border: 1px solid #bae6fd;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 2px 3px 6px rgba(2, 132, 199, 0.1), inset 1px 1px 2px #fff;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.visitor-inspect-btn:hover {
    background: #0284c7;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 3px 5px 12px rgba(2, 132, 199, 0.25);
}

/* Visitor Journey Modal Timeline */
.journey-modal-content {
    max-width: 680px;
    width: 92%;
    background: var(--clay-card-bg);
    border: var(--clay-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), var(--clay-inset);
    padding: 26px;
}

.journey-visitor-meta-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 22px;
    box-shadow: 2px 6px 16px rgba(15, 23, 42, 0.04), inset 1px 1px 2px #fff;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.journey-meta-item small {
    display: block;
    color: #94a3b8;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.journey-meta-item strong {
    font-size: 13px;
    color: #0f172a;
    font-weight: 700;
}

.journey-timeline {
    position: relative;
    padding-left: 28px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 8px;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: linear-gradient(180deg, #0284c7, #38bdf8, #22c55e);
    border-radius: 3px;
}

.journey-timeline-step {
    position: relative;
    margin-bottom: 20px;
}

.journey-node-icon {
    position: absolute;
    left: -28px;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 2.5px solid #0284c7;
    display: grid;
    place-items: center;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2), inset 1px 1px 2px #fff;
    z-index: 2;
}

.journey-node-icon.node-click { border-color: #f59e0b; color: #d97706; }
.journey-node-icon.node-event { border-color: #8b5cf6; color: #7c3aed; }
.journey-node-icon.node-exit { border-color: #ef4444; color: #dc2626; }

.journey-step-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 2px 4px 10px rgba(15, 23, 42, 0.04), inset 1px 1px 2px #fff;
}

.journey-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.journey-step-tag {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: #0284c7;
    background: #e0f2fe;
    padding: 2px 8px;
    border-radius: 6px;
}

.journey-step-time {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.journey-step-main {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    word-break: break-all;
}

.journey-step-sub {
    margin-top: 4px;
    font-size: 11.5px;
    color: #64748b;
}
.realtime-source-card { margin-bottom: 20px; }
.realtime-source-secondary { margin-bottom: 0; }
#realtime_sources {
    max-width: 1220px;
    margin: 0 auto;
    width: min(1220px, calc(100% - 24px));
}
#realtime_sources > * {
    margin-left: auto;
    margin-right: auto;
}
.source-view-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--border-color); background: #fff; }
.entries-control { display: inline-flex; align-items: center; gap: 6px; color: #6b7c8f; font-size: 11px; font-weight: 600; }.entries-control select { padding: 8px 28px 8px 10px; border: 1px solid #cbd8e5; border-radius: 7px; color: #176b91; background: #fff; font-size: 11px; }
.source-breakdown-tabs { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 0 auto; }.source-breakdown { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid #d9e2ec; border-radius: 999px; color: #26384a; background: #fff; font-size: 11px; font-weight: 700; cursor: pointer; transition: all 0.2s ease; }.source-breakdown:hover { border-color: #8ecdf7; box-shadow: 0 4px 12px rgba(2,132,199,.08); }.source-breakdown i { width: 10px; height: 10px; border: 1px solid #cbd5e1; border-radius: 50%; background: #fff; }.source-breakdown.active { border-color: #0284c7; color: #0875a8; background: linear-gradient(180deg, #f0f9ff, #ffffff); box-shadow: 0 0 0 1px #0284c7; }.source-breakdown.active i { border-color: #0284c7; background: #0284c7; box-shadow: inset 0 0 0 2px #fff; }.source-extra-column.hidden { display: none; }
.sources-live-hero { min-height: 270px; display: flex; flex-direction: column; justify-content: center; gap: 28px; margin-bottom: 20px; padding: 28px 34px 24px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: var(--shadow-md); text-align: center; }
.sources-live-number > span { color: #273444; font-size: 17px; }
.sources-live-number strong { display: block; margin: 10px 0 8px; color: #1e293b; font-family: "Manrope", sans-serif; font-size: 64px; line-height: 1; }
.sources-live-number b { display: block; color: #273444; font-size: 16px; }
.hero-users-icon { display: inline-grid; width: 22px; height: 22px; margin-right: 5px; place-items: center; border-radius: 50%; background: #26384a; color: #fff; font-size: 9px; vertical-align: 2px; }
.device-split { width: 100%; max-width: 760px; margin: 0 auto; }
.device-split-label { display: flex; justify-content: space-between; margin-bottom: 10px; color: #526273; font-size: 11px; }
.device-split-label span { display: flex; align-items: center; gap: 6px; }
.device-split-label b { color: #26384a; }
.device-dot { width: 9px; height: 9px; border-radius: 50%; background: #116c9e; }.device-dot.desktop { background: #49a9d7; }.device-dot.tablet { background: #a12ab2; }
.device-split-bar { display: flex; height: 18px; overflow: hidden; border-radius: 10px; background: #e6edf3; }.device-split-bar i { display: block; min-width: 0; transition: width .4s ease; }.device-split-bar i.mobile { width: 0; background: #116c9e; }.device-split-bar i.desktop { width: 0; background: #49a9d7; }.device-split-bar i.tablet { width: 0; background: #a12ab2; }
.sources-chart-card { margin-bottom: 20px; padding: 0 20px 16px; overflow: hidden; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: var(--shadow-md); }
.chart-card-heading { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 10px; }.chart-card-heading h4 { margin: 0; color: #273444; font-size: 17px; }.sources-chart-wrap { height: 230px; }
.realtime-empty { color: #94a3b8; text-align: center; padding: 20px !important; }
.country-name { display: inline-flex; align-items: center; gap: 9px; min-width: max-content; font-weight: 600; }
.country-flag { display: inline-block; width: 24px; height: 18px; flex: 0 0 24px; object-fit: cover; border: 1px solid rgba(15, 23, 42, .12); border-radius: 3px; background: #f1f5f9; box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
.country-flag-fallback { width: 24px; height: 18px; border: 0; background: transparent; box-shadow: none; font-size: 17px; line-height: 18px; text-align: center; }
.country-dot { width: 8px; height: 8px; border-radius: 50%; background: #6366f1; box-shadow: 0 0 0 3px #eef2ff; }
.country-share { display: flex; align-items: center; gap: 10px; min-width: 150px; color: var(--text-muted); font-size: 12px; }
.country-share > div { flex: 1; height: 6px; overflow: hidden; border-radius: 5px; background: #eef2ff; }
.country-share i { display: block; height: 100%; border-radius: inherit; background: #6366f1; }
.realtime-overview-hero { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(420px, 1.8fr); gap: 14px; margin-bottom: 20px; }
.realtime-visitor-card { min-height: 218px; padding: 22px; border: 1px solid #bae6fd; border-radius: var(--radius-md); background: linear-gradient(145deg, #e0f2fe, #f0f9ff); box-shadow: var(--shadow-sm); }
.visitor-card-top { display: flex; align-items: center; justify-content: space-between; }
.realtime-visitor-card strong { display: block; margin: 24px 0 8px; color: var(--primary); font-size: 56px; line-height: 1; }
.realtime-visitor-card > span { color: #0369a1; font-size: 11px; }
.visitor-pulse { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px #dcfce7; }
.visitor-sparkline { display: flex; align-items: end; gap: 5px; height: 32px; margin-top: 22px; }
.visitor-sparkline i { display: block; width: 10px; height: 42%; border-radius: 3px 3px 0 0; background: #38bdf8; }
.visitor-sparkline i:nth-child(2), .visitor-sparkline i:nth-child(6) { height: 68%; }
.visitor-sparkline i:nth-child(3), .visitor-sparkline i:nth-child(7) { height: 50%; }
.visitor-sparkline i:nth-child(4) { height: 92%; background: var(--primary); }
.visitor-sparkline i:nth-child(5) { height: 78%; }
.realtime-chart-card { min-height: 218px; overflow: hidden; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--card-bg); box-shadow: var(--shadow-sm); }
.realtime-chart-wrap { height: 155px; padding: 12px 20px 16px; }
.chart-legend { color: var(--text-muted); font-size: 11px; }
.chart-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: var(--primary); }
.realtime-overview-kpis { grid-template-columns: repeat(3, 1fr); }
.realtime-overview-tables { margin-bottom: 0; }
.realtime-country-hero, .realtime-country-hero-3d { 
    display: grid; 
    grid-template-columns: 280px 1fr; 
    gap: 16px; 
    margin-bottom: 20px; 
}

@media (max-width: 960px) {
    .realtime-country-hero, .realtime-country-hero-3d {
        grid-template-columns: 1fr;
    }
}

.realtime-country-summary { 
    min-height: 220px; 
    padding: 22px; 
    border: 1px solid #bae6fd; 
    border-radius: var(--radius-md); 
    background: linear-gradient(145deg, #e0f2fe, #f0f9ff); 
    box-shadow: var(--shadow-sm); 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.realtime-country-summary strong { display: block; margin: 16px 0 6px; color: var(--primary); font-size: 52px; line-height: 1; }
.realtime-country-summary > span { color: #0369a1; font-size: 11.5px; }
.country-summary-line { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(2, 132, 199, .18); color: #0369a1; font-size: 12px; }
.country-summary-line b { color: var(--primary); }

.country-summary-extra {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(2, 132, 199, 0.22);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11.5px;
    color: #0369a1;
}

.summary-extra-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.summary-extra-row strong {
    font-size: 12.5px;
    color: #0f172a;
    margin: 0 !important;
}

/* Live Audience World Map Card (Light Theme, Clean Flat World Map) */
.realtime-3d-map-card.light-world-map-card,
.realtime-3d-map-card {
    background: #ffffff;
    border: 1px solid #bae6fd;
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
    color: #0f172a;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    position: relative;
}

.rt-3d-map-header.light-map-header,
.rt-3d-map-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 18px 24px 14px;
    border-bottom: 1px solid #e0f2fe;
    background: #ffffff;
}

.rt-3d-title-group {
    display: flex;
    flex-direction: column;
}

.rt-3d-map-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.rt-3d-map-container.light-map-container,
.rt-3d-map-container {
    position: relative;
    flex: 1;
    min-height: 340px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    cursor: grab;
    overflow: hidden;
}

.rt-3d-map-container:active {
    cursor: grabbing;
}

.rt-3d-world-map-viewport {
    width: 100%;
    height: 100%;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.rt-3d-world-map-viewport svg {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 420px;
}

.globe-sphere-atmosphere {
    display: none;
}

.globe-ocean {
    fill: #f0f9ff;
    transition: fill 0.3s ease;
}

.globe-graticule {
    fill: none;
    stroke: rgba(2, 132, 199, 0.08);
    stroke-width: 0.5;
}

.globe-country {
    stroke: #ffffff;
    stroke-width: 0.65;
    cursor: pointer;
    transition: fill 0.2s ease, opacity 0.2s ease;
}

.globe-country:hover {
    stroke: #0284c7;
    stroke-width: 1.4;
    opacity: 0.95;
    filter: drop-shadow(0 2px 4px rgba(2, 132, 199, 0.2));
}

.globe-hotspot-ring {
    fill: none;
    stroke: #0284c7;
    stroke-width: 1.5;
    opacity: 0.8;
    animation: pulseRing 1.8s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
}

.globe-hotspot-dot {
    fill: #0284c7;
    stroke: #ffffff;
    stroke-width: 1.5;
}

@keyframes pulseRing {
    0% { r: 3; opacity: 1; }
    100% { r: 12; opacity: 0; }
}

/* Tooltip (Clean Light Theme) */
.globe-3d-tooltip {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.15), 0 2px 6px rgba(0, 0, 0, 0.06);
    color: #0f172a;
    font-size: 12px;
    display: none;
    min-width: 145px;
}

.globe-3d-tooltip .tooltip-country {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 5px;
    color: #0f172a;
}

.globe-3d-tooltip .tooltip-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    color: #64748b;
}

.globe-3d-tooltip .tooltip-stat strong {
    color: #0284c7;
    font-weight: 700;
}

.realtime-country-kpis { grid-template-columns: repeat(3, 1fr); }
.realtime-country-table-card { margin-bottom: 0; }
.dashboard-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.dashboard-heading h2 { margin: 4px 0 5px; color: #172b4d; font-family: "Manrope", sans-serif; font-size: 25px; }
.dashboard-heading p { color: var(--text-muted); font-size: 13px; }
.dashboard-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #bbf7d0; border-radius: 20px; color: #15803d; background: #f0fdf4; font-size: 11px; font-weight: 700; white-space: nowrap; }.dashboard-status i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; }
.overview-hero-grid { display: grid; grid-template-columns: minmax(235px, .72fr) minmax(420px, 1.8fr); gap: 16px; margin-bottom: 16px; }
.overview-live-card { min-height: 236px; padding: 24px; border: 1px solid #b9e3f8; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #0d6f9f, #14547c); box-shadow: 0 12px 28px rgba(16,91,128,.18); }
.overview-live-top { display: flex; justify-content: space-between; align-items: center; color: #d9f2ff; font-size: 12px; font-weight: 700; }.overview-live-top i { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.18); }
.overview-live-card strong { display: block; margin: 25px 0 5px; font-family: "Manrope", sans-serif; font-size: 58px; line-height: 1; }.overview-live-card p { margin: 0; color: #b9e5f8; font-size: 11px; }.overview-live-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 30px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.2); color: #b9e5f8; font-size: 10px; }.overview-live-foot b { color: #fff; }
.overview-chart-panel, .overview-world-panel { overflow: hidden; border: 1px solid var(--border-color); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }.overview-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 20px 10px; }.overview-panel-heading h4 { margin: 0; color: #26384a; font-size: 15px; }.overview-panel-heading span { display: block; margin-top: 4px; color: #94a3b8; font-size: 11px; }.overview-panel-heading a, .table-link { color: #0c719f; font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }.overview-panel-heading a b { font-size: 15px; }.overview-chart-wrap { height: 180px; padding: 4px 20px 14px; }
.overview-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }.overview-stat { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 15px; border: 1px solid var(--border-color); border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); }.stat-icon { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 9px; font-size: 17px; font-weight: 800; }.stat-icon.blue { color: #096ca0; background: #e0f2fe; }.stat-icon.green { color: #15803d; background: #dcfce7; }.stat-icon.orange { color: #c2410c; background: #ffedd5; }.stat-icon.violet { color: #6d28d9; background: #ede9fe; }.overview-stat small, .overview-stat em { display: block; color: #8190a0; font-size: 10px; font-style: normal; }.overview-stat strong { display: block; overflow: hidden; margin: 3px 0; color: #172b4d; font-size: 20px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.overview-section-label { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; color: #26384a; font-size: 14px; font-weight: 800; }.overview-section-label small { color: #94a3b8; font-size: 10px; font-weight: 500; }
.overview-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }.overview-shortcut { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 13px; border: 1px solid var(--border-color); border-radius: 10px; color: inherit; background: #fff; box-shadow: var(--shadow-sm); text-decoration: none; transition: .2s; }.overview-shortcut:hover { border-color: #93c5fd; box-shadow: var(--shadow-md); transform: translateY(-2px); }.overview-shortcut > span:nth-child(2) { min-width: 0; flex: 1; }.overview-shortcut b, .overview-shortcut small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.overview-shortcut b { color: #26384a; font-size: 12px; }.overview-shortcut small { margin-top: 3px; color: #94a3b8; font-size: 10px; }.overview-shortcut > strong { color: #0d6f9f; font-size: 19px; }.shortcut-icon { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 9px; font-size: 16px; font-weight: 800; }.shortcut-icon.source { color: #0369a1; background: #e0f2fe; }.shortcut-icon.country { color: #15803d; background: #dcfce7; }.shortcut-icon.pages { color: #c2410c; background: #ffedd5; }.shortcut-icon.events { color: #be185d; background: #fce7f3; }.shortcut-icon.devices { color: #6d28d9; background: #ede9fe; }.shortcut-icon.browsers { color: #0f766e; background: #ccfbf1; }
.overview-bottom-grid { display: grid; grid-template-columns: minmax(300px, 1.2fr) minmax(340px, 1fr); gap: 16px; }.overview-world-panel { min-height: 320px; }.world-visual { position: relative; height: 230px; overflow: hidden; margin: 0 16px; border-radius: 9px; background: linear-gradient(140deg, #f0f9ff, #eef2ff); }.world-grid { position: absolute; inset: 0; opacity: .45; background-image: linear-gradient(rgba(14,116,144,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(14,116,144,.13) 1px, transparent 1px); background-size: 24px 24px; transform: perspective(200px) rotateX(45deg) scale(1.35); transform-origin: bottom; }.world-land { position: absolute; display: block; border: 1px solid rgba(14,116,144,.12); border-radius: 45% 55% 48% 52%; background: rgba(45,150,182,.16); transform: rotate(-18deg); }.land-one { width: 130px; height: 65px; left: 11%; top: 33%; }.land-two { width: 170px; height: 82px; left: 42%; top: 26%; transform: rotate(10deg); }.land-three { width: 85px; height: 48px; right: 8%; bottom: 22%; transform: rotate(-8deg); }.world-pulse { position: absolute; width: 9px; height: 9px; border: 3px solid #fff; border-radius: 50%; background: #0ea5e9; box-shadow: 0 0 0 5px rgba(14,165,233,.18); }.pulse-one { left: 28%; top: 46%; }.pulse-two { left: 58%; top: 39%; background: #22c55e; box-shadow: 0 0 0 5px rgba(34,197,94,.18); }.pulse-three { right: 22%; bottom: 34%; background: #f97316; box-shadow: 0 0 0 5px rgba(249,115,22,.18); }.world-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #8190a0; font-size: 11px; }.world-legend { display: flex; justify-content: space-between; padding: 11px 20px 15px; color: #8190a0; font-size: 10px; }.world-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: #0ea5e9; }
.world-map-svg { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }.world-map-svg:active { cursor: grabbing; }.world-map-country { stroke: #fff; stroke-width: .45; transition: opacity .2s, fill .2s; }.world-map-country:hover { opacity: .75; stroke: #075985; stroke-width: 1; }.world-map-tooltip { position: absolute; z-index: 2; padding: 7px 9px; border: 1px solid #dbeafe; border-radius: 6px; color: #0f172a; background: #fff; box-shadow: 0 5px 18px rgba(15,23,42,.14); font-size: 11px; pointer-events: none; white-space: nowrap; }
.user-management-modal { overflow: hidden; }.user-management-modal #systemUserList { overflow-x: hidden !important; overflow-y: auto; }.user-management-modal #systemUserList table { width: 100% !important; min-width: 0 !important; table-layout: fixed; }.user-management-modal #systemUserList th, .user-management-modal #systemUserList td { overflow-wrap: anywhere; white-space: normal; }.user-management-modal #systemUserList th:nth-child(1), .user-management-modal #systemUserList td:nth-child(1) { width: 30%; }.user-management-modal #systemUserList th:nth-child(2), .user-management-modal #systemUserList td:nth-child(2) { width: 14%; }.user-management-modal #systemUserList th:nth-child(3), .user-management-modal #systemUserList td:nth-child(3) { width: 14%; }.user-management-modal #systemUserList th:nth-child(4), .user-management-modal #systemUserList td:nth-child(4) { width: 17%; }.user-management-modal #systemUserList th:nth-child(5), .user-management-modal #systemUserList td:nth-child(5) { width: 25%; }.user-management-modal #systemUserList button { white-space: normal; }
.user-management-modal #systemUserList td:last-child { display: table-cell; white-space: nowrap; }.user-management-modal #systemUserList th:first-child, .user-management-modal #systemUserList td:first-child { width: 22%; }.user-management-modal #systemUserList th:nth-child(2), .user-management-modal #systemUserList td:nth-child(2) { width: 11%; }.user-management-modal #systemUserList th:nth-child(3), .user-management-modal #systemUserList td:nth-child(3) { width: 11%; }.user-management-modal #systemUserList th:nth-child(4), .user-management-modal #systemUserList td:nth-child(4) { width: 16%; color: #475569; font-weight: 700; }.user-management-modal #systemUserList th:last-child, .user-management-modal #systemUserList td:last-child { width: 40%; }.user-action-btn { display: inline-block; margin: 1px; padding: 3px 5px; border: 1px solid; border-radius: 4px; background: #fff; font-size: 9px; line-height: 1.2; cursor: pointer; white-space: nowrap !important; }.user-action-approve { color: #15803d; border-color: #bbf7d0; }.user-action-reject, .user-action-delete { color: #dc2626; border-color: #fecaca; }.user-action-password { color: #0369a1; border-color: #bae6fd; }.password-modal-content { width: min(420px, 92vw); }.password-target-user { margin: -4px 0 18px; color: #64748b; font-size: 12px; }
.overview-data-table { margin-bottom: 0; }.overview-data-table .table-responsive { max-height: 268px; }
.realtime-overview-source-card { display: flex; flex-direction: column; overflow: hidden; }.realtime-overview-source-card .table-responsive { flex: 1; }.realtime-sources-link { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; color: #0c719f; background: #f1f5f9; font-size: 12px; font-weight: 700; text-decoration: none; }.realtime-sources-link b { font-size: 20px; line-height: 12px; }
.acq-header-container { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.acq-header-container h2 { color: #26384a; font-family: "Manrope", sans-serif; font-size: 22px !important; }
.acq-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acq-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: 9px; background: rgba(255,255,255,.72); }
#acquisition_section .table-card { border-radius: 10px; }
#acquisition_section table { min-width: 820px; }
#acquisition_section th { background: #116c9e; color: #fff; border-color: #116c9e; font-size: 11px; }
#acquisition_section th:first-child { min-width: 230px; }
#acquisition_section td:first-child { color: #176b91; }
#acquisition_section td:first-child strong { font-weight: 700; }
#acquisition_section tr:hover td { background: #f0f8fc; }

table { width: 100%; border-collapse: collapse; background: var(--card-bg); }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
th, td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--border-color); font-size: 13px; }
th { background: #f8fafc; color: var(--text-muted); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 0.5px; padding-top: 13px; padding-bottom: 13px; }
td { height: 49px; }
tr:hover td { background: #f8fafc; }
tr:last-child td { border-bottom: none; }

/* =========================================================
   CUSTOM CENTER / TOP POP-UP NOTIFICATION (TOAST)
   ========================================================= */
.toast-container {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 300px;
    max-width: 450px;
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-left: 5px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.toast-error { border-left-color: #ef4444; }
.toast.toast-success { border-left-color: #10b981; }
.toast.toast-warning { border-left-color: #f59e0b; }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal Popup */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(15, 23, 42, 0.5); 
    backdrop-filter: blur(4px);
    justify-content: center; 
    align-items: center; 
    z-index: 2000; 
}

.modal-content { 
    background: white; 
    padding: 28px; 
    border-radius: var(--radius-lg); 
    width: 480px; 
    max-width: 90%;
    box-shadow: var(--shadow-lg); 
    animation: modalSlide 0.25s ease-out;
}

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

.modal-content h3 { margin-top: 0; font-size: 18px; color: var(--text-dark); font-weight: 700; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.form-group input { 
    width: 100%; 
    padding: 10px 14px; 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-sm); 
    font-size: 13px; 
    outline: none; 
    transition: border 0.2s;
}

.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

/* Device Stats Bar */
.device-stats-container { margin-top: 20px; padding: 18px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.device-icons { display: flex; justify-content: space-around; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 12px; }
.progress-bar-container { display: flex; width: 100%; height: 12px; background: #f1f5f9; border-radius: 6px; overflow: hidden; }
.bar-mobile { background: #0284c7; transition: width 1.2s ease; }
.bar-desktop { background: #38bdf8; transition: width 1.2s ease; }
.bar-tablet { background: #818cf8; transition: width 1.2s ease; }

/* =========================================================
   RESPONSIVE MOBILE STYLES
   ========================================================= */
.mobile-menu-toggle { display: none; background: #ffffff; border: 1px solid var(--border-color); font-size: 18px; padding: 6px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.mobile-close-btn { display: none; background: transparent; border: none; font-size: 20px; color: var(--text-muted); cursor: pointer; }
.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(2px); z-index: 99; }
.sidebar-overlay.active { display: block; }

@media (max-width: 1024px) {
    .mobile-brand-lockup { display: inline-flex; }
    .top-bar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
    .mobile-brand-lockup .brand-mark { width: 27px; height: 27px; border-radius: 8px; }
    .mobile-brand-lockup .brand-word { font-size: 16px; }
    .journey-pipeline { display: flex; flex-direction: column; width: 100%; gap: 16px; }
}

@media screen and (max-width: 768px) {
    .mobile-menu-toggle { display: inline-block; }
    .mobile-close-btn { display: block; }
    
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 260px;
        z-index: 100;
        box-shadow: var(--shadow-lg);
    }

    .sidebar.mobile-active { left: 0; }
    .content { margin-left: 0 !important; padding: 16px !important; width: 100% !important; }
    .top-bar { flex-direction: column; align-items: stretch; gap: 10px; }
    .top-bar-left { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 6px; min-width: 0; }
    .top-right-nav { display: flex; align-items: center; justify-content: flex-end; width: 100%; gap: 8px; }
    .top-controls { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
    .top-controls .custom-nav-dropdown-wrapper { flex: 1; min-width: 0; }
    .top-controls .custom-nav-trigger { width: 100%; justify-content: space-between; padding: 7px 9px; font-size: 11.5px; }
    .profile-dropdown-container { flex-shrink: 0; display: inline-flex; align-items: center; margin-left: 2px; }
    .profile-trigger { min-width: 0; padding: 2px; }
    .user-directory-desktop { display: none !important; }
    .user-directory-mobile { display: flex !important; }
    .grid-2, .grid-3 { grid-template-columns: 1fr !important; }
    .realtime-kpis { grid-template-columns: 1fr; }
    .source-view-controls { 
        display: flex !important; 
        flex-direction: column !important; 
        align-items: stretch !important; 
        gap: 12px !important; 
        padding: 12px 14px !important; 
    }
    .source-breakdown-tabs { 
        order: 1 !important; 
        display: flex !important; 
        flex-direction: row !important; 
        flex-wrap: nowrap !important; 
        overflow-x: auto !important; 
        -webkit-overflow-scrolling: touch !important; 
        width: 100% !important; 
        justify-content: flex-start !important; 
        gap: 8px !important; 
        padding-bottom: 4px !important; 
        scrollbar-width: none !important; 
    }
    .source-breakdown-tabs::-webkit-scrollbar { 
        display: none !important; 
    }
    .source-breakdown { 
        flex: 0 0 auto !important; 
        white-space: nowrap !important; 
        justify-content: center !important; 
        padding: 7px 13px !important; 
        font-size: 11.5px !important; 
    }
    .entries-control { 
        order: 2 !important; 
        display: flex !important; 
        width: 100% !important; 
        justify-content: space-between !important; 
        align-items: center !important; 
        padding-top: 6px !important; 
        border-top: 1px dashed #e2e8f0 !important; 
    }
    .journey-pipeline { 
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        grid-template-columns: 1fr !important; 
        gap: 16px !important; 
    }
    .journey-stage-col { 
        width: 100% !important; 
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .journey-flow-card {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        gap: 10px !important;
    }
    .journey-path-text {
        max-width: none !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .journey-header-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .journey-tabs-nav {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    .journey-tab-btn {
        width: 100% !important;
        justify-content: center !important;
    }
    .realtime-overview-hero { grid-template-columns: 1fr; }
    .realtime-overview-kpis { grid-template-columns: 1fr; }
    .realtime-country-hero { grid-template-columns: 1fr; }
    .realtime-country-kpis { grid-template-columns: 1fr; }
    .acq-header-container, .acq-toolbar { align-items: stretch; flex-direction: column; }
    .acq-controls { justify-content: flex-start; }
    .realtime-page-heading { gap: 12px; }
    .realtime-page-heading h2 { font-size: 22px; }
    .refresh-label { display: none; }
}
.brand-lockup, .mobile-brand-lockup { display: inline-flex; align-items: center; gap: 9px; }
.brand-word { color: #0f172a; letter-spacing: -0.8px; }
.brand-word span { color: #38bdf8; }
.brand-mark { position: relative; display: inline-flex; align-items: end; gap: 3px; width: 30px; height: 30px; padding: 4px 5px; overflow: hidden; border-radius: 9px; background: linear-gradient(145deg, #075985, #0f4c70); box-shadow: 0 5px 12px rgba(7,89,133,.22); }
.brand-mark i { display: block; width: 4px; border-radius: 2px 2px 1px 1px; background: #f8fafc; }
.brand-mark i:nth-child(1) { height: 7px; background: #fb923c; }.brand-mark i:nth-child(2) { height: 14px; background: #e0f2fe; }.brand-mark i:nth-child(3) { height: 21px; background: #7dd3fc; }
.brand-mark b { position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: #facc15; box-shadow: 0 0 0 3px rgba(250,204,21,.18); }
.mobile-brand-lockup { display: none; font-family: "Manrope", sans-serif; font-size: 17px; font-weight: 800; }
.world-country-list { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 5px; width: 130px; }.world-country-list > span { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 7px; border: 1px solid rgba(255,255,255,.8); border-radius: 6px; color: #174a68; background: rgba(255,255,255,.76); font-size: 10px; font-weight: 700; box-shadow: 0 3px 8px rgba(30,64,90,.06); }.world-country-list .country-name { min-width: 0; gap: 4px; overflow: hidden; font-size: 10px; }.world-country-list .country-name span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.world-country-list .country-flag { width: 18px; height: 13px; flex-basis: 18px; }.world-country-list b { flex: 0 0 auto; color: #0e7490; }

/* =========================================================
   REFINED SITE ATTACHMENT & TRACKING SCRIPT MODAL STYLES
   ========================================================= */
.site-modal-content {
    max-width: 660px !important;
    width: min(660px, 95vw) !important;
    max-height: 88vh;
    overflow-y: auto;
    padding: 26px 28px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.28) !important;
}

.site-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.site-modal-title {
    font-family: "Manrope", sans-serif;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--text-dark) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
}

.site-modal-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin: 4px 0 0 0;
    line-height: 1.4;
}

.modal-close-btn {
    border: none;
    background: #f1f5f9;
    color: #64748b;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.site-modal-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 18px;
    padding-bottom: 2px;
}

.site-modal-tab {
    background: transparent;
    border: none;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -4px;
    transition: all 0.2s ease;
}

.site-modal-tab:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.site-modal-tab.active {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    background: var(--primary-light);
}

.site-modal-tab-pane {
    animation: fadeIn 0.2s ease-in-out;
}

.vercel-host-banner {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.script-snippet-container {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.snippet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    gap: 8px;
}

.snippet-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-dots {
    display: flex;
    gap: 5px;
}

.terminal-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-dots i:nth-child(1) { background: #ef4444; }
.terminal-dots i:nth-child(2) { background: #f59e0b; }
.terminal-dots i:nth-child(3) { background: #10b981; }

.snippet-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.snippet-body {
    padding: 14px 16px;
    background: #0b1329;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.snippet-code-text {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px !important;
    line-height: 1.65;
    color: #f8fafc !important; /* Extremely bright, crisp white text */
    letter-spacing: 0.2px;
}

.copy-snippet-btn {
    position: static;
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.copy-snippet-btn:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.45);
}

.copy-snippet-btn.copied {
    background: #16a34a;
}

.platform-guides-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
}

.platform-tabs-nav {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid #cbd5e1;
    margin-bottom: 12px;
    overflow-x: auto;
}

.install-tab-btn {
    background: none;
    border: none;
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.install-tab-btn.active, .install-tab-btn:hover {
    color: #0284c7;
    border-bottom: 2px solid #0284c7;
}

.install-tab-content ol {
    margin: 0;
    padding-left: 20px;
    font-size: 12px;
    color: #334155;
    line-height: 1.65;
}

.live-status-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 9px 12px;
    border-radius: 8px;
    font-weight: 500;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
    flex-shrink: 0;
}

/* DEVELOPER API & INTEGRATION - CLAYMORPHIC STYLES */
.api-key-item {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 4px 8px 20px rgba(15, 23, 42, 0.05), inset 1.5px 1.5px 3px #ffffff;
    transition: all 0.2s ease;
    flex-wrap: wrap;
    gap: 12px;
}
.api-key-item:hover {
    box-shadow: 6px 12px 24px rgba(15, 23, 42, 0.08), inset 1.5px 1.5px 3px #ffffff;
    border-color: #cbd5e1;
}
.api-key-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.8);
}
.api-key-code-display {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12.5px;
    background: #f1f5f9;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-weight: 600;
    letter-spacing: 0.5px;
    user-select: all;
}
.api-code-block {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12.5px;
    line-height: 1.6;
    overflow-x: auto;
    position: relative;
    border: 1px solid #1e293b;
    box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.5);
}
.api-snippet-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 12px;
    padding-bottom: 4px;
}
.api-snippet-tab {
    background: var(--clay-card-bg);
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    box-shadow: 2px 4px 10px rgba(15, 23, 42, 0.04), inset 1px 1px 2px #fff;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.api-snippet-tab.active, .api-snippet-tab:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}
.sandbox-response-box {
    background: #1e293b;
    color: #38bdf8;
    border-radius: 12px;
    padding: 16px;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.5;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #334155;
    box-shadow: inset 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* =========================================================
   TOP-TIER CLAYMORPHIC LOADING ANIMATIONS & SKELETON LOADERS
   ========================================================= */

/* Top Global Progress Bar */
.top-loader-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3.5px;
    z-index: 999999;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.22s ease;
    background: rgba(2, 132, 199, 0.08);
}

.top-loader-bar.active {
    opacity: 1;
}

.top-loader-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #38bdf8, #0284c7, #6366f1, #38bdf8);
    background-size: 200% 100%;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.95), 0 0 6px rgba(2, 132, 199, 0.85);
    transition: width 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    animation: gradientShift 1.5s linear infinite;
    position: relative;
}

.top-loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85));
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

@keyframes gradientShift {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Shimmer Skeleton Animations */
@keyframes shimmerAnim {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-shimmer {
    background: linear-gradient(90deg, #f1f5f9 15%, #e2e8f0 50%, #f1f5f9 85%) !important;
    background-size: 200% 100% !important;
    animation: shimmerAnim 1.2s ease-in-out infinite !important;
    border-radius: 6px;
    color: transparent !important;
    user-select: none !important;
    border: none !important;
    pointer-events: none !important;
}

.skeleton-text {
    display: inline-block;
    height: 1.1em;
    min-width: 60px;
    vertical-align: middle;
}

.skeleton-number {
    display: inline-block;
    height: 1.4em;
    min-width: 48px;
    vertical-align: middle;
}

/* Sync Loading Indicator Pill */
.sync-loading-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 20px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0369a1;
    font-size: 11.5px;
    font-weight: 700;
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.12);
}

.sync-loading-indicator.active {
    opacity: 1;
    transform: scale(1);
}

.sync-spinner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0284c7;
    box-shadow: 0 0 8px #0284c7;
    animation: pulseDot 0.8s infinite alternate;
}

@keyframes pulseDot {
    0% { transform: scale(0.65); opacity: 0.45; }
    100% { transform: scale(1.35); opacity: 1; }
}

/* Loading State for Sections & Cards */
.section-data-loading {
    opacity: 0.65;
    pointer-events: none;
    filter: blur(0.5px);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

/* Smooth Fade In When Data Arrives */
@keyframes fadeInData {
    from {
        opacity: 0.35;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-data {
    animation: fadeInData 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Skeleton Table Rows */
.skeleton-row td {
    position: relative;
    overflow: hidden;
    padding: 12px 14px !important;
}

.skeleton-row td::after {
    content: '';
    display: block;
    height: 15px;
    background: linear-gradient(90deg, #f1f5f9 15%, #e2e8f0 50%, #f1f5f9 85%);
    background-size: 200% 100%;
    animation: shimmerAnim 1.2s ease-in-out infinite;
    border-radius: 5px;
    width: 75%;
}

.skeleton-row td:nth-child(2)::after {
    width: 45%;
}

.skeleton-row td:nth-child(3)::after {
    width: 60%;
}

/* Chart Canvas Loading Placeholder Overlay */
.chart-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: var(--radius-md, 12px);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    gap: 10px;
}

.chart-loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.clay-mini-spinner {
    width: 32px;
    height: 32px;
    border: 3.5px solid rgba(2, 132, 199, 0.16);
    border-top-color: #0284c7;
    border-right-color: #38bdf8;
    border-radius: 50%;
    animation: miniSpin 0.75s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

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

/* ==========================================================================
   PUBLICTIC-STYLE MAIN DASHBOARD (OVERVIEW) & NAVBAR DATE PICKER
   ========================================================================== */

/* Navbar Date Picker Dropdown */
#dashboard-date-controls {
    display: flex;
    align-items: center;
}

.date-picker-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.date-picker-trigger:hover {
    border-color: #0284c7;
    color: #0284c7;
    background: #f8fafc;
}

.date-icon-calendar {
    font-size: 14px;
}

.date-picker-menu {
    min-width: 260px;
    padding: 6px;
}

.date-menu-presets {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date-menu-custom-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 6px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.date-menu-custom-trigger:hover,
.date-menu-custom-trigger.expanded {
    background: #f0f9ff;
    border-color: #0284c7;
    color: #0284c7;
}

.date-menu-custom-trigger .custom-toggle-arrow {
    font-size: 9px;
    transition: transform 0.2s ease;
}

.date-menu-custom-trigger.expanded .custom-toggle-arrow {
    transform: rotate(180deg);
}

.date-menu-custom-panel {
    display: none;
    margin-top: 6px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    animation: fadeInNavMenu 0.16s ease-out;
}

.date-menu-custom-panel.open {
    display: block;
}

.date-custom-inputs {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.date-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.date-input-group label {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.date-picker-input {
    width: 100%;
    padding: 6px 8px;
    font-size: 11px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0f172a;
    background: #ffffff;
    font-family: inherit;
}

.date-picker-input:focus {
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.btn-date-apply {
    width: 100%;
    padding: 7px 12px;
    font-size: 11.5px;
    font-weight: 700;
    color: #ffffff;
    background: #0284c7;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-date-apply:hover {
    background: #0369a1;
}

/* Custom Interactive In-Menu Calendar Widget */
.custom-inline-calendar {
    margin-bottom: 9px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    user-select: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.inline-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    padding: 0 4px;
}

.inline-cal-month-label {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
}

.btn-cal-nav {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    font-weight: 700;
    transition: all 0.15s ease;
    line-height: 1;
    padding: 0;
}

.btn-cal-nav:hover {
    background: #e2e8f0;
    color: #0284c7;
    border-color: #0284c7;
}

.inline-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 4px;
}

.inline-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.1s ease;
    border: 1px solid transparent;
}

.cal-day-cell:hover:not(.empty) {
    background: #f0f9ff;
    color: #0284c7;
    border-color: #bae6fd;
}

.cal-day-cell.empty {
    cursor: default;
}

.cal-day-cell.selected-start {
    background: #0284c7 !important;
    color: #ffffff !important;
    font-weight: 800;
    border-radius: 5px 0 0 5px !important;
}

.cal-day-cell.selected-end {
    background: #0284c7 !important;
    color: #ffffff !important;
    font-weight: 800;
    border-radius: 0 5px 5px 0 !important;
}

.cal-day-cell.selected-single {
    background: #0284c7 !important;
    color: #ffffff !important;
    font-weight: 800;
    border-radius: 5px !important;
}

.cal-day-cell.in-range {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border-radius: 0 !important;
}

.cal-day-cell.today-marker {
    border-color: #0284c7;
}

/* 6-Hour Acquisition Batch Consolidation Info Banner */
.acq-batch-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 8px 14px;
    margin-bottom: 12px;
    font-size: 11.5px;
    color: #0369a1;
}

.acq-batch-status-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.acq-batch-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0284c7;
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7);
    animation: batchPulse 2s infinite;
}

@keyframes batchPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(2, 132, 199, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.acq-batch-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10.5px;
    border: 1px solid #bae6fd;
}

/* Dashboard Hero: Chart Card + Active Visitors Card */
.publictic-dashboard-hero {
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 960px) {
    .publictic-dashboard-hero {
        grid-template-columns: 1fr;
    }
}

.publictic-chart-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.publictic-metric-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 640px) {
    .publictic-metric-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
}

.publictic-metric-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 14px 18px;
    text-align: left;
    cursor: pointer;
    transition: all 0.18s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    outline: none;
}

.publictic-metric-tab:not(:last-child) {
    border-right: 1px solid #f1f5f9;
}

.publictic-metric-tab:hover {
    background: #f8fafc;
}

.publictic-metric-tab.active {
    background: #f0f9ff;
    border-bottom-color: #0284c7;
}

.metric-tab-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    transition: color 0.15s ease;
}

.publictic-metric-tab.active .metric-tab-label {
    color: #0284c7;
}

.metric-tab-val {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.publictic-chart-body {
    height: 290px;
    padding: 18px 20px 14px;
    position: relative;
}

/* Active Visitors Now Card */
.publictic-active-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.active-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-dot-pulse {
    width: 9px;
    height: 9px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: livePulseGlow 2s infinite;
}

@keyframes livePulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.active-card-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
}

.active-card-count {
    margin: 14px 0 4px;
}

.active-card-count strong {
    font-size: 48px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.03em;
}

.active-card-sub {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 14px;
}

.active-card-sparkline {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 28px;
    margin-bottom: 18px;
}

.active-card-sparkline i {
    flex: 1;
    background: #bae6fd;
    border-radius: 2px;
    height: 35%;
    transition: height 0.3s ease, background 0.3s ease;
}

.active-card-sparkline i:nth-child(2) { height: 60%; }
.active-card-sparkline i:nth-child(4) { height: 85%; background: #0284c7; }
.active-card-sparkline i:nth-child(6) { height: 50%; }
.active-card-sparkline i:nth-child(8) { height: 75%; background: #38bdf8; }

.btn-rt-sources {
    width: 100%;
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease;
    cursor: pointer;
}

.btn-rt-sources:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

/* Grids: 3-column middle & 2-column bottom */
.publictic-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .publictic-grid-3 {
        grid-template-columns: 1fr;
    }
}

.publictic-grid-2 {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 960px) {
    .publictic-grid-2 {
        grid-template-columns: 1fr;
    }
}

.publictic-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.publictic-card-header {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.publictic-card-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.publictic-card-sub {
    font-size: 11px;
    color: #64748b;
    display: block;
    margin-top: 1px;
}

.publictic-col-badge {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #0284c7;
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    padding: 3px 8px;
    border-radius: 6px;
}

.publictic-card-body {
    padding: 14px 18px;
    flex: 1;
}

.publictic-card-footer {
    padding: 10px 18px;
    border-top: 1px solid #f1f5f9;
    background: #fcfcfc;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.publictic-card-footer a {
    font-size: 12px;
    font-weight: 700;
    color: #0284c7;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}

.publictic-card-footer a:hover {
    color: #0369a1;
    text-decoration: underline;
}

/* Tables */
.publictic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.publictic-table th {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.publictic-table td {
    padding: 9px 0;
    border-bottom: 1px solid #f8fafc;
    color: #1e293b;
    vertical-align: middle;
}

.publictic-table tr:last-child td {
    border-bottom: none;
}

.publictic-table td strong {
    font-weight: 700;
    color: #0f172a;
}

.publictic-table td.empty-state {
    text-align: center;
    color: #94a3b8;
    padding: 24px 0;
    font-style: italic;
}

.table-row-bar-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 4px;
}

.table-row-bar {
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    background: rgba(2, 132, 199, 0.08);
    border-radius: 4px;
    z-index: 0;
    pointer-events: none;
}

.table-row-text {
    position: relative;
    z-index: 1;
    word-break: break-all;
}

/* Device Breakdown */
.device-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.device-chart-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
}

.device-breakdown-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.device-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    padding: 4px 6px;
    border-radius: 6px;
    background: #f8fafc;
}

.device-row span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #475569;
}

.device-row .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.device-row .dot.desktop { background: #0284c7; }
.device-row .dot.mobile { background: #10b981; }
.device-row .dot.tablet { background: #f59e0b; }
.device-row strong { color: #0f172a; font-weight: 700; }

/* =========================================================
   PUBLYTICS ACQUISITION SUITE (Source/Medium, Pages, UTMs)
   ========================================================= */
.acq-publictic-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.acq-page-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.acq-title-badge-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.acq-page-heading-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.acq-dim-pill {
    font-size: 11px;
    font-weight: 700;
    color: #0284c7;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.acq-topbar-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.acq-date-dropdown-wrapper {
    position: relative;
}

.acq-date-dropdown-wrapper .date-picker-trigger {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.15s ease;
}

.acq-date-dropdown-wrapper .date-picker-trigger:hover {
    border-color: #0284c7;
    background: #f8fafc;
}

.acq-date-dropdown-wrapper .custom-nav-menu {
    right: 0;
    top: calc(100% + 4px);
    z-index: 1050;
}

@media (max-width: 768px) {
    .acq-date-dropdown-wrapper .custom-nav-menu {
        right: auto;
        left: 0;
        min-width: 280px;
        max-width: calc(100vw - 32px);
    }
}

/* Acquisition Metric Tabs above Chart */
.acq-chart-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.acq-metric-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid #e2e8f0;
    background: #fafafa;
}

.acq-metric-tab {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    background: transparent;
    border: none;
    border-right: 1px solid #e2e8f0;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s ease;
}

.acq-metric-tab:last-child {
    border-right: none;
}

.acq-metric-tab:hover {
    background: #f1f5f9;
}

.acq-metric-tab.active {
    background: #ffffff;
    border-bottom-color: #0284c7;
}

.acq-metric-tab .tab-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.acq-metric-tab.active .tab-title {
    color: #0284c7;
}

.acq-metric-tab .tab-value {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.acq-chart-canvas-box {
    position: relative;
    height: 280px;
    padding: 16px 20px 12px;
}

/* Active Metrics Bar & Search Bar */
.acq-filter-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.acq-active-metrics-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.acq-active-metrics-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 4px;
}

.acq-metric-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 7px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}

.acq-metric-chip:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.acq-metric-chip.active {
    background: #f0f9ff;
    border-color: #0284c7;
    color: #0284c7;
    font-weight: 700;
}

.acq-metric-chip .chip-check {
    display: inline-block;
    width: 13px;
    height: 13px;
    line-height: 11px;
    text-align: center;
    border-radius: 3px;
    font-size: 10px;
    background: #e2e8f0;
    color: transparent;
    transition: all 0.15s ease;
}

.acq-metric-chip.active .chip-check {
    background: #0284c7;
    color: #ffffff;
}

/* Publytics Search & Actions Row */
.acq-search-actions-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
}

.acq-search-box {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 220px;
    flex: 1;
    max-width: 380px;
}

.acq-search-icon {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acq-search-input {
    width: 100%;
    padding: 8px 12px 8px 34px !important;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 12.5px;
    color: #0f172a;
    outline: none;
    transition: all 0.15s ease;
}

.acq-search-input:focus {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.acq-export-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.acq-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.acq-table-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.acq-table-card thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 18px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.acq-table-card thead th:hover {
    background: #f1f5f9;
}

.acq-table-card tbody td {
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

.acq-table-card tbody tr:last-child td {
    border-bottom: none;
}

.acq-table-card tbody tr:hover td {
    background: #f0f9ff;
}

.acq-row-title {
    font-weight: 700;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    word-break: break-all;
}

.acq-num-val {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #0f172a;
}

/* =========================================================
   PUBLYTICS ACQUISITION PAGINATION & ENTRIES PER PAGE (Screenshot 1)
   ========================================================= */
.acq-pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 22px 24px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.acq-pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    position: relative;
}

.acq-page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto;
}

.acq-page-num-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    user-select: none;
}

.acq-page-num-btn:hover:not(.active) {
    background: #f1f5f9;
    color: #0284c7;
}

.acq-page-num-btn.active {
    background: transparent;
    color: #0284c7;
    position: relative;
    font-weight: 800;
}

.acq-page-num-btn.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #0284c7;
    border-radius: 2px;
}

.btn-acq-page-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.btn-acq-page-nav:hover:not(:disabled) {
    color: #0284c7;
    background: #f0f9ff;
}

.btn-acq-page-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#acqNextBtn {
    margin-left: auto;
}

#acqPrevBtn {
    margin-right: auto;
}

.acq-entries-per-page-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.acq-entries-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.acq-entries-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.acq-entries-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 30px 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
}

.acq-entries-select:focus,
.acq-entries-select:hover {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.acq-entries-select-arrow {
    position: absolute;
    right: 11px;
    font-size: 9px;
    color: #64748b;
    pointer-events: none;
}

.acq-pagination-info {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
    user-select: none;
    text-align: center;
}

@media (max-width: 860px) {
    .acq-metric-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    .acq-metric-tab {
        border-right: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
    }
    .acq-metric-tab:nth-child(2) {
        border-right: none;
    }
    .acq-filter-action-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px 12px;
    }
    .acq-search-actions-wrap {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    /* Compact Search Bar for mobile preview */
    .acq-search-box {
        flex: 0 1 200px !important;
        max-width: 220px !important;
        min-width: 120px !important;
        width: auto !important;
    }
    .acq-search-input {
        width: 100% !important;
        box-sizing: border-box !important;
        height: 32px !important;
        font-size: 11.5px !important;
        padding: 4px 8px 4px 26px !important;
        border-radius: 6px !important;
        background: #f8fafc !important;
        text-overflow: ellipsis;
    }
    .acq-search-icon {
        left: 8px !important;
        font-size: 10.5px !important;
    }
    .acq-export-btn {
        flex-shrink: 0;
        height: 32px !important;
        padding: 4px 10px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
        white-space: nowrap;
    }
    .acq-pagination-container {
        padding: 16px 12px !important;
        gap: 10px !important;
    }
    .acq-pagination-controls {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
        width: 100% !important;
    }
    #acqNextBtn, #acqPrevBtn {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 4px 10px !important;
        font-size: 12px !important;
    }
    .acq-page-num-btn {
        min-width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        padding: 0 6px !important;
    }
    .acq-pagination-info {
        font-size: 11px !important;
    }
    .acq-entries-label {
        font-size: 10px !important;
    }
    .acq-entries-select {
        height: 30px !important;
        padding: 4px 24px 4px 10px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .acq-search-box {
        flex: 1 !important;
        max-width: 180px !important;
        min-width: 110px !important;
    }
    .acq-search-input {
        font-size: 11px !important;
        padding: 4px 6px 4px 24px !important;
    }
    .acq-search-icon {
        left: 7px !important;
        font-size: 10px !important;
    }
    .acq-export-btn {
        padding: 4px 8px !important;
        font-size: 10.5px !important;
    }
}

