/* ================================================================
   PNB Reputation Intelligence Dashboard - Premium Stylesheet
   Enterprise Banking Intelligence Platform — Salesforce Lightning Style
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* PNB Corporate Palette - Refined Premium */
    --pnb-maroon: #7A1B2D;
    --pnb-maroon-dark: #2D0A13;
    --pnb-maroon-light: #9B2D42;
    --pnb-maroon-glow: rgba(122, 27, 45, 0.15);
    --pnb-gold: #D4A54A;
    --pnb-gold-light: #F0C96E;
    --pnb-gold-muted: #BF9440;
    --pnb-gold-glow: rgba(212, 165, 74, 0.2);
    --pnb-white: #FFFFFF;
    --pnb-offwhite: #F7F8FC;
    --pnb-cream: #FBF7F0;
    --pnb-grey-50: #FAFBFD;
    --pnb-grey-100: #F1F3F9;
    --pnb-grey-200: #E8EAF0;
    --pnb-grey-300: #D1D5E0;
    --pnb-grey-400: #A0A8BE;
    --pnb-grey-500: #7A829A;
    --pnb-grey-600: #5C6478;
    --pnb-grey-700: #3F4555;
    --pnb-grey-800: #2A2F3D;
    --pnb-grey-900: #1A1D28;
    --pnb-text: #1E2132;
    --pnb-text-muted: #6B7294;
    --pnb-border: #E2E5EF;
    --pnb-border-light: #EDEEF5;

    /* Status Colors - Modern */
    --status-positive: #00A76F;
    --status-positive-bg: #E6F9F1;
    --status-warning: #FFAB00;
    --status-warning-bg: #FFF8E6;
    --status-negative: #FF4842;
    --status-negative-bg: #FFF0EF;
    --status-info: #3366FF;
    --status-info-bg: #EBF0FF;
    --status-neutral: #8892A7;
    --status-neutral-bg: #F4F5FA;

    /* Layout */
    --topnav-height: 58px;
    --sidebar-width: 240px;
    --content-max-width: 1560px;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    /* Shadows - Layered depth */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.12);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-card-hover: 0 8px 25px -5px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-glow-maroon: 0 0 20px rgba(122,27,45,0.15);
    --shadow-glow-gold: 0 0 20px rgba(212,165,74,0.2);

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'cv02','cv03','cv04','cv11';
}

body {
    font-family: var(--font-primary);
    color: var(--pnb-text);
    background: var(--pnb-offwhite);
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

a { color: var(--pnb-maroon); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--pnb-maroon-light); }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--pnb-grey-900);
    letter-spacing: -0.025em;
}

::selection {
    background: var(--pnb-maroon);
    color: var(--pnb-white);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--pnb-grey-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--pnb-grey-400); }

/* ---- Layout Shell (legacy, keep for backward compat) ---- */
.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---- Top Navigation Bar (legacy - hidden in new layout) ---- */
.topnav { display: none; }

    background: linear-gradient(135deg, var(--pnb-maroon-dark) 0%, #3D1020 50%, var(--pnb-maroon-dark) 100%);
    color: var(--pnb-white);
    display: flex;
    align-items: center;
    height: var(--topnav-height);
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 4px 20px rgba(0,0,0,0.25);
    gap: 0;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.topnav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 32px;
    flex-shrink: 0;
}

.topnav-brand img {
    height: 36px;
    width: auto;
    background: white;
    border-radius: 8px;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.topnav-logo-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--pnb-gold-light);
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.topnav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.topnav-links::-webkit-scrollbar { display: none; }

.topnav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    position: relative;
    letter-spacing: 0;
}

.topnav-link:hover {
    background: rgba(255,255,255,0.08);
    color: var(--pnb-white);
}

.topnav-link.active {
    color: var(--pnb-gold-light);
    background: rgba(255,255,255,0.1);
    font-weight: 600;
}

.topnav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: linear-gradient(90deg, var(--pnb-gold), var(--pnb-gold-light));
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(212,165,74,0.4);
}

.topnav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
    flex-shrink: 0;
}

.topnav-sync-status {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-weight: 500;
}

.topnav-hamburger {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 18px;
    cursor: pointer;
    color: var(--pnb-white);
    line-height: 1;
}

.topnav-hamburger:hover {
    background: rgba(255,255,255,0.1);
}

/* ---- Main Content ---- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--topnav-height));
    background: var(--pnb-offwhite);
}

.topbar-sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--status-positive);
    box-shadow: 0 0 6px rgba(0,167,111,0.4);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.topbar-sync-dot.stale { background: var(--status-warning); box-shadow: 0 0 6px rgba(255,171,0,0.4); }
.topbar-sync-dot.error { background: var(--status-negative); box-shadow: 0 0 6px rgba(255,72,66,0.4); }

/* ---- Page Content ---- */
.content-area {
    flex: 1;
    padding: 32px 40px;
    max-width: var(--content-max-width);
    width: 100%;
    margin: 0 auto;
}

.page-content {
    flex: 1;
    padding: 32px 40px;
    max-width: var(--content-max-width);
}

/* ---- Page Section Visibility ---- */
.page-section {
    display: none;
    animation: fadeInPage 0.3s ease;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-section.active {
    display: block;
}

.page-header {
    margin-bottom: 28px;
}

.page-header h1, .page-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--pnb-grey-900);
    letter-spacing: -0.03em;
}

.page-header-sub {
    font-size: 15px;
    color: var(--pnb-text-muted);
    margin-top: 4px;
    font-weight: 400;
}

/* ---- Stat Cards Grid ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--pnb-white);
    border: 1px solid var(--pnb-border);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pnb-maroon), var(--pnb-gold));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    border-color: var(--pnb-grey-300);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card-label {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pnb-text-muted);
    margin-bottom: 10px;
}

.stat-card-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--pnb-grey-900);
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-card-value.gold { color: var(--pnb-gold); }
.stat-card-value.positive { color: var(--status-positive); }
.stat-card-value.negative { color: var(--status-negative); }
.stat-card-value.small { font-size: 28px; }

.stat-card-detail {
    font-size: 13px;
    color: var(--pnb-text-muted);
    margin-top: 8px;
    font-weight: 500;
}

.stat-card-detail .trend-up { color: var(--status-positive); font-weight: 700; }
.stat-card-detail .trend-down { color: var(--status-negative); font-weight: 700; }

.stat-card-bar {
    margin-top: 14px;
    height: 6px;
    background: var(--pnb-grey-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.stat-card-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--pnb-gold), var(--pnb-gold-light));
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Cards & Panels ---- */
.card {
    background: var(--pnb-white);
    border: 1px solid var(--pnb-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 20px 28px;
    border-bottom: 1px solid var(--pnb-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--pnb-grey-800);
    letter-spacing: -0.01em;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 28px;
}

.card-body-compact { padding: 14px 24px; }

.card-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--pnb-border-light);
    font-size: 13px;
    color: var(--pnb-text-muted);
    background: var(--pnb-grey-50);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* Two-column layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.content-grid-wide {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* ---- Tables ---- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead th {
    background: var(--pnb-grey-50);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pnb-text-muted);
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--pnb-border);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.data-table thead th:hover {
    background: var(--pnb-grey-100);
    color: var(--pnb-grey-700);
}

.data-table tbody tr {
    border-bottom: 1px solid var(--pnb-border-light);
    transition: background 0.15s ease;
}

.data-table tbody tr:hover {
    background: var(--pnb-grey-50);
}

.data-table tbody td {
    padding: 14px 18px;
    vertical-align: middle;
    color: var(--pnb-grey-700);
}

.data-table .col-actions {
    display: flex;
    gap: 6px;
}

/* ---- Badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.01em;
}

.badge-positive { background: var(--status-positive-bg); color: var(--status-positive); }
.badge-negative { background: var(--status-negative-bg); color: var(--status-negative); }
.badge-warning  { background: var(--status-warning-bg); color: var(--status-warning); }
.badge-info     { background: var(--status-info-bg); color: var(--status-info); }
.badge-neutral  { background: var(--status-neutral-bg); color: var(--status-neutral); }
.badge-maroon   { background: var(--pnb-maroon-glow); color: var(--pnb-maroon); }
.badge-gold     { background: var(--pnb-gold-glow); color: var(--pnb-gold-muted); }

/* ---- Rating Stars ---- */
.rating-display {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-stars {
    color: var(--pnb-gold);
    font-size: 16px;
    letter-spacing: 2px;
}

.rating-value {
    font-weight: 800;
    font-size: 16px;
    color: var(--pnb-grey-800);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-primary);
    letter-spacing: 0;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pnb-maroon), var(--pnb-maroon-light));
    color: var(--pnb-white);
    border-color: var(--pnb-maroon);
    box-shadow: 0 1px 3px rgba(122,27,45,0.25);
}
.btn-primary:hover { 
    background: linear-gradient(135deg, var(--pnb-maroon-light), var(--pnb-maroon)); 
    box-shadow: 0 4px 12px rgba(122,27,45,0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--pnb-white);
    color: var(--pnb-grey-700);
    border-color: var(--pnb-grey-300);
    box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { 
    background: var(--pnb-grey-50); 
    border-color: var(--pnb-grey-400); 
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--pnb-gold), var(--pnb-gold-light));
    color: var(--pnb-white);
    border-color: var(--pnb-gold);
    box-shadow: 0 1px 3px rgba(212,165,74,0.3);
}
.btn-gold:hover { 
    box-shadow: 0 4px 12px rgba(212,165,74,0.35); 
    transform: translateY(-1px);
}

.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 6px; }
.btn-icon { padding: 7px 9px; }

/* ---- Filter Bar ---- */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    background: var(--pnb-white);
    padding: 18px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--pnb-border);
    box-shadow: var(--shadow-xs);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--pnb-text-muted);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.filter-select, .filter-input {
    padding: 10px 16px;
    border: 1px solid var(--pnb-grey-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-primary);
    color: var(--pnb-text);
    background: var(--pnb-grey-50);
    min-width: 150px;
    transition: all 0.2s ease;
}

.filter-select:focus, .filter-input:focus {
    outline: none;
    border-color: var(--pnb-maroon);
    box-shadow: 0 0 0 3px var(--pnb-maroon-glow);
    background: var(--pnb-white);
}

.search-box {
    position: relative;
    min-width: 240px;
}

.search-box input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    border: 1px solid var(--pnb-grey-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-primary);
}

.search-box input:focus {
    outline: none;
    border-color: var(--pnb-maroon);
    box-shadow: 0 0 0 3px var(--pnb-maroon-glow);
    background: var(--pnb-white);
}

.search-box::before {
    content: '⌕';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pnb-grey-400);
    font-size: 16px;
}

/* ---- Pagination ---- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 14px;
    color: var(--pnb-text-muted);
}

.pagination-info { font-size: 13px; font-weight: 500; }

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-btn {
    padding: 7px 14px;
    border: 1px solid var(--pnb-grey-200);
    border-radius: var(--radius-sm);
    background: var(--pnb-white);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--pnb-grey-700);
    transition: all 0.2s ease;
}

.pagination-btn:hover { 
    background: var(--pnb-grey-50); 
    border-color: var(--pnb-grey-300);
    transform: translateY(-1px);
}
.pagination-btn.active { 
    background: linear-gradient(135deg, var(--pnb-maroon), var(--pnb-maroon-light)); 
    color: white; 
    border-color: var(--pnb-maroon); 
    box-shadow: 0 2px 6px rgba(122,27,45,0.25);
}
.pagination-btn:disabled { opacity: 0.35; cursor: default; transform: none; }

/* ---- Alert / Insight Cards ---- */
.insight-card {
    border-left: 4px solid var(--pnb-gold);
    background: linear-gradient(135deg, var(--pnb-cream) 0%, var(--pnb-white) 100%);
    padding: 18px 22px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insight-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.insight-card.critical { border-left-color: var(--status-negative); background: linear-gradient(135deg, var(--status-negative-bg) 0%, var(--pnb-white) 100%); }
.insight-card.warning { border-left-color: var(--status-warning); background: linear-gradient(135deg, var(--status-warning-bg) 0%, var(--pnb-white) 100%); }
.insight-card.info { border-left-color: var(--status-info); background: linear-gradient(135deg, var(--status-info-bg) 0%, var(--pnb-white) 100%); }

.insight-card-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--pnb-grey-800);
}

.insight-card-body {
    font-size: 13px;
    color: var(--pnb-grey-600);
    line-height: 1.6;
}

.insight-card-meta {
    font-size: 12px;
    color: var(--pnb-grey-400);
    margin-top: 10px;
    font-weight: 500;
}

/* ---- Executive Summary Panel ---- */
.exec-summary {
    background: linear-gradient(135deg, var(--pnb-maroon-dark) 0%, var(--pnb-maroon) 50%, #4A1528 100%);
    color: var(--pnb-white);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.exec-summary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,165,74,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.exec-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    position: relative;
}

.exec-summary-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--pnb-gold-light);
    letter-spacing: -0.02em;
}

.exec-summary-badge {
    background: rgba(255,255,255,0.12);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.exec-summary-text {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 20px;
}

.exec-summary-actions {
    list-style: none;
    padding: 0;
}

.exec-summary-actions li {
    padding: 6px 0;
    font-size: 14px;
    opacity: 0.85;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.exec-summary-actions li::before {
    content: '▸';
    color: var(--pnb-gold-light);
    font-weight: bold;
}

/* ---- Sentiment Bar ---- */
.sentiment-bar {
    display: flex;
    height: 10px;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--pnb-grey-100);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}

.sentiment-bar-positive { background: linear-gradient(90deg, #00A76F, #5BE49B); }
.sentiment-bar-neutral  { background: linear-gradient(90deg, var(--pnb-grey-400), var(--pnb-grey-300)); }
.sentiment-bar-negative { background: linear-gradient(90deg, #FF4842, #FF867A); }
.sentiment-bar-mixed    { background: linear-gradient(90deg, #FFAB00, #FFD666); }

.sentiment-legend {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--pnb-text-muted);
    font-weight: 500;
}

.sentiment-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sentiment-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

/* ---- Score Circle ---- */
.score-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 4px solid var(--pnb-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--pnb-maroon);
    background: linear-gradient(135deg, var(--pnb-white), var(--pnb-cream));
    box-shadow: 0 0 0 6px var(--pnb-gold-glow), var(--shadow-sm);
}

.score-circle.small { width: 58px; height: 58px; font-size: 18px; border-width: 3px; }

/* ---- Branch Drawer / Modal ---- */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,15,25,0.5);
    z-index: 200;
    display: none;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.drawer-overlay.open { display: block; animation: fadeIn 0.2s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.drawer, .branch-drawer {
    position: fixed;
    top: 0;
    right: -580px;
    width: 580px;
    height: 100vh;
    background: var(--pnb-white);
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
    z-index: 201;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer.open, .branch-drawer.open { right: 0; }

.drawer-header {
    padding: 26px 32px;
    border-bottom: 1px solid var(--pnb-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--pnb-grey-50), var(--pnb-white));
    position: sticky;
    top: 0;
    z-index: 10;
}

.drawer-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--pnb-maroon-dark);
    letter-spacing: -0.02em;
}

.drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--pnb-grey-200);
    background: var(--pnb-white);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pnb-grey-500);
    transition: all 0.2s ease;
}

.drawer-close:hover { 
    background: var(--status-negative-bg); 
    border-color: var(--status-negative);
    color: var(--status-negative);
}

.drawer-body { padding: 26px 32px; }

.drawer-section {
    margin-bottom: 28px;
}

.drawer-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pnb-text-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--pnb-border-light);
}

/* ---- Review Card ---- */
.review-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--pnb-border-light);
}

.review-item:last-child { border-bottom: none; }

.review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--pnb-text-muted);
    font-weight: 500;
}

.review-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--pnb-grey-700);
}

.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.review-tag {
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    background: var(--pnb-grey-100);
    color: var(--pnb-grey-600);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.review-tag.fraud { background: var(--status-negative-bg); color: var(--status-negative); }
.review-tag.digital { background: var(--status-info-bg); color: var(--status-info); }
.review-tag.staff { background: var(--status-warning-bg); color: var(--status-warning); }

/* ---- Competitor Card ---- */
.competitor-card {
    background: var(--pnb-white);
    border: 1px solid var(--pnb-border);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.competitor-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.competitor-rank {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--pnb-grey-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    color: var(--pnb-grey-600);
}

.competitor-rank.top { 
    background: linear-gradient(135deg, var(--pnb-gold), var(--pnb-gold-light)); 
    color: white; 
    box-shadow: 0 2px 8px rgba(212,165,74,0.3);
}

.competitor-info { flex: 1; }
.competitor-name { font-weight: 700; font-size: 14px; }
.competitor-metrics { font-size: 13px; color: var(--pnb-text-muted); margin-top: 2px; }

/* ---- Chart Container ---- */
.chart-container {
    position: relative;
    width: 100%;
    height: 280px;
}

.chart-container.small { height: 200px; }

/* ---- Tabs ---- */
.tab-nav {
    display: flex;
    border-bottom: 2px solid var(--pnb-border);
    margin-bottom: 20px;
    gap: 2px;
}

.tab-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pnb-text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-btn:hover { 
    color: var(--pnb-maroon); 
    background: var(--pnb-grey-50);
}

.tab-btn.active {
    color: var(--pnb-maroon);
    border-bottom-color: var(--pnb-maroon);
    font-weight: 700;
    background: var(--pnb-white);
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---- Loading ---- */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px;
    color: var(--pnb-text-muted);
    font-size: 14px;
    gap: 12px;
    font-weight: 500;
}

.spinner {
    width: 26px;
    height: 26px;
    border: 3px solid var(--pnb-grey-200);
    border-top-color: var(--pnb-maroon);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 56px 24px;
    color: var(--pnb-text-muted);
}

.empty-state-icon { font-size: 44px; margin-bottom: 16px; opacity: 0.5; }
.empty-state-text { font-size: 15px; font-weight: 500; }

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .content-grid { grid-template-columns: 1fr; }
    .content-grid-wide { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .topnav-links {
        display: none;
        position: absolute;
        top: var(--topnav-height);
        left: 0;
        right: 0;
        background: var(--pnb-maroon-dark);
        flex-direction: column;
        padding: 10px 14px;
        gap: 2px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.25);
        z-index: 99;
        backdrop-filter: blur(20px);
    }
    .topnav-links.open {
        display: flex;
    }
    .topnav-link {
        padding: 12px 18px;
        border-radius: var(--radius-sm);
        border-bottom: none;
    }
    .topnav-link.active {
        border-bottom: none;
        background: rgba(255,255,255,0.12);
    }
    .topnav-link.active::after { display: none; }
    .topnav-hamburger { display: block; }
    .topnav-right .btn { display: none; }
    .topnav-sync-status { display: none; }
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .drawer, .branch-drawer { width: 100%; right: -100%; }
    .content-area { padding: 20px; }
}

/* ---- Print ---- */
@media print {
    .topnav, .filter-bar, .btn, .pagination { display: none !important; }
    .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
    .exec-summary { background: var(--pnb-maroon) !important; -webkit-print-color-adjust: exact; }
    body { background: white; }
}

/* ---- System Status Page ---- */
.status-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.status-service-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--pnb-border);
    background: var(--pnb-grey-50);
    transition: all 0.2s ease;
}

.status-service-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.status-service-card.status-positive { border-left: 4px solid var(--status-positive); }
.status-service-card.status-negative { border-left: 4px solid var(--status-negative); }
.status-service-card.status-warning  { border-left: 4px solid var(--status-warning); }
.status-service-card.status-neutral  { border-left: 4px solid var(--pnb-grey-300); }

.status-service-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 44px;
    text-align: center;
}

.status-service-info { flex: 1; min-width: 0; }

.status-service-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--pnb-grey-800);
    margin-bottom: 3px;
}

.status-service-detail {
    font-size: 12px;
    color: var(--pnb-text-muted);
    word-break: break-all;
}

.status-service-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.status-latency {
    font-size: 12px;
    font-weight: 600;
    color: var(--pnb-text-muted);
    font-family: var(--font-mono);
}

.status-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--status-warning);
    margin-right: 6px;
    animation: pulse-dot 1.5s infinite;
    vertical-align: middle;
}

.status-cron-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.status-cron-card {
    padding: 20px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--pnb-border);
    background: var(--pnb-white);
    transition: box-shadow 0.2s ease;
}

.status-cron-card:hover {
    box-shadow: var(--shadow-sm);
}

.status-cron-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.status-cron-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--pnb-grey-800);
}

.status-cron-desc {
    font-size: 13px;
    color: var(--pnb-text-muted);
    margin-top: 2px;
}

.status-cron-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 12px;
}

.status-cron-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-meta-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pnb-text-muted);
}

.status-cron-meta-item span:last-child {
    font-size: 13px;
    font-weight: 600;
    color: var(--pnb-grey-700);
}

.status-running-time {
    color: var(--status-warning) !important;
    font-family: var(--font-mono);
}

.status-cron-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--pnb-border-light);
}

.status-stat {
    font-size: 13px;
    color: var(--pnb-text-muted);
}

.status-stat-num {
    font-weight: 800;
    color: var(--pnb-grey-700);
    margin-right: 3px;
}

.status-stat-num.positive { color: var(--status-positive); }
.status-stat-num.negative { color: var(--status-negative); }

.status-error-detail {
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--status-negative-bg);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--status-negative);
    font-family: var(--font-mono);
    word-break: break-word;
}

.status-log-viewer {
    max-height: 360px;
    overflow-y: auto;
    background: var(--pnb-grey-900);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.7;
}

.status-log-line {
    color: rgba(255,255,255,0.7);
    white-space: pre-wrap;
    word-break: break-all;
}

.status-log-line.log-error { color: #FF6B6B; }
.status-log-line.log-warn  { color: #FFD93D; }
.status-log-line.log-info  { color: #74C0FC; }

/* ---- Login Page ---- */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--pnb-offwhite) 0%, #E8E4F0 100%);
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--pnb-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.8);
}

.login-header {
    background: linear-gradient(135deg, var(--pnb-maroon-dark) 0%, var(--pnb-maroon) 50%, #4A1528 100%);
    color: var(--pnb-white);
    padding: 40px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212,165,74,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.login-logo-text {
    font-size: 34px;
    font-weight: 900;
    color: var(--pnb-gold-light);
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
}

.login-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--pnb-white);
    margin: 0;
    position: relative;
}

.login-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    margin-top: 6px;
    position: relative;
}

.login-body {
    padding: 36px;
}

.login-field {
    margin-bottom: 20px;
}

.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--pnb-grey-700);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.login-field input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--pnb-grey-200);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font-primary);
    box-sizing: border-box;
    transition: all 0.2s ease;
    background: var(--pnb-grey-50);
}

.login-field input:focus {
    outline: none;
    border-color: var(--pnb-maroon);
    box-shadow: 0 0 0 3px var(--pnb-maroon-glow);
    background: var(--pnb-white);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--pnb-maroon), var(--pnb-maroon-light));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    font-family: var(--font-primary);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(122,27,45,0.3);
    letter-spacing: 0.02em;
}

.login-btn:hover { 
    background: linear-gradient(135deg, var(--pnb-maroon-light), var(--pnb-maroon)); 
    box-shadow: 0 6px 20px rgba(122,27,45,0.4);
    transform: translateY(-1px);
}

.login-error {
    background: var(--status-negative-bg);
    color: var(--status-negative);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 18px;
    font-weight: 500;
    border: 1px solid rgba(255,72,66,0.15);
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: var(--pnb-white);
    border: 1px solid var(--pnb-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 44px;
}

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 12px; font-weight: 700; color: var(--pnb-grey-700); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.form-control { width: 100%; padding: 11px 14px; border: 1.5px solid var(--pnb-grey-200); border-radius: var(--radius-sm); font-size: 13px; font-family: var(--font-primary); box-sizing: border-box; background: var(--pnb-grey-50); transition: all 0.2s ease; }
.form-control:focus { outline: none; border-color: var(--pnb-maroon); box-shadow: 0 0 0 3px var(--pnb-maroon-glow); background: var(--pnb-white); }


/* ================================================================
   SALESFORCE LIGHTNING — NEW LAYOUT SYSTEM
   ================================================================ */

/* ---- App Layout (Sidebar + Main) ---- */
.app-layout {
    display: flex;
    min-height: 100vh;
    background: #F4F6F9;
}

/* ---- Sidebar ---- */
.app-sidebar {
    width: 240px;
    min-height: 100vh;
    background: linear-gradient(180deg, #1B0A12 0%, #2D0A13 40%, #1B0A12 100%);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 150;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s ease;
    overflow: hidden;
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
}

.app-sidebar.collapsed {
    width: 60px;
}

.app-sidebar.collapsed .sidebar-brand-text,
.app-sidebar.collapsed .sni-label,
.app-sidebar.collapsed .sni-badge,
.app-sidebar.collapsed .sidebar-nav-section-label,
.app-sidebar.collapsed .sidebar-sync-indicator span:last-child {
    display: none;
}

.app-sidebar.collapsed .sidebar-brand {
    justify-content: center;
    padding: 18px 0;
}

.app-sidebar.collapsed .sidebar-nav-item {
    justify-content: center;
    padding: 12px;
}

/* Brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}

.sidebar-brand-logo {
    height: 36px;
    width: 36px;
    border-radius: 8px;
    background: white;
    padding: 3px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-brand-monogram {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--pnb-gold), var(--pnb-gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    color: var(--pnb-maroon-dark);
    letter-spacing: 0.5px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(212,165,74,0.35);
}

.sidebar-brand-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--pnb-gold-light);
    line-height: 1.3;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.sidebar-brand-tag {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 1px;
}

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 12px 10px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar { display: none; }

.sidebar-nav-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.25);
    padding: 6px 10px 4px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,0.58);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    text-decoration: none;
    white-space: nowrap;
    margin-bottom: 2px;
    position: relative;
    overflow: hidden;
}

.sidebar-nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
}

.sidebar-nav-item.active {
    background: linear-gradient(135deg, rgba(212,165,74,0.2), rgba(212,165,74,0.08));
    color: var(--pnb-gold-light);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--pnb-gold);
}

.sidebar-nav-item.active .sni-icon {
    color: var(--pnb-gold-light);
}

.sni-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.85;
}

.sni-label {
    flex: 1;
}

.sni-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(0,167,111,0.25);
    color: #5BE49B;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(0,167,111,0.3);
}

.sni-badge-new {
    background: rgba(51,102,255,0.25);
    color: #84B2FF;
    border-color: rgba(51,102,255,0.3);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.sidebar-sync-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.38);
    font-weight: 500;
}

/* ---- App Main ---- */
.app-main {
    flex: 1;
    margin-left: 240px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-main.sidebar-collapsed {
    margin-left: 60px;
}

/* ---- App Header Bar ---- */
.app-header {
    height: 58px;
    background: var(--pnb-white);
    border-bottom: 1px solid var(--pnb-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.app-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--pnb-border);
    background: var(--pnb-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pnb-grey-600);
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    background: var(--pnb-grey-50);
    border-color: var(--pnb-grey-300);
    color: var(--pnb-maroon);
}

.app-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
}

.bc-root {
    color: var(--pnb-text-muted);
    font-weight: 500;
}

.bc-sep {
    color: var(--pnb-grey-300);
    font-size: 16px;
}

.bc-current {
    color: var(--pnb-grey-800);
    font-weight: 700;
}

.app-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--pnb-grey-50);
    border: 1px solid var(--pnb-border);
    border-radius: 8px;
    padding: 7px 14px;
    transition: all 0.2s ease;
}

.header-search-box:focus-within {
    border-color: var(--pnb-maroon);
    box-shadow: 0 0 0 3px var(--pnb-maroon-glow);
    background: var(--pnb-white);
}

.header-search-box .hs-icon {
    color: var(--pnb-grey-400);
    flex-shrink: 0;
}

.header-search-box input {
    border: none;
    background: transparent;
    font-size: 13.5px;
    color: var(--pnb-text);
    font-family: var(--font-primary);
    width: 200px;
    outline: none;
}

.header-search-box input::placeholder {
    color: var(--pnb-grey-400);
}

.header-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--pnb-border);
    background: var(--pnb-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pnb-grey-500);
    transition: all 0.15s ease;
}

.header-icon-btn:hover {
    background: var(--pnb-grey-50);
    color: var(--pnb-maroon);
    border-color: var(--pnb-grey-300);
}

.header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pnb-maroon), var(--pnb-maroon-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(122,27,45,0.25);
}

/* ---- Main Content Area ---- */
.main-content {
    flex: 1;
    overflow-y: auto;
}

.content-area {
    padding: 28px 32px 40px;
    max-width: 1560px;
}

/* ---- Page Hero Header ---- */
.page-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pnb-border-light);
}

.page-hero-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--pnb-grey-900);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.page-hero-sub {
    font-size: 14px;
    color: var(--pnb-text-muted);
    margin-top: 4px;
    font-weight: 400;
}

.page-hero-meta {
    font-size: 12.5px;
    color: var(--pnb-grey-400);
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
    margin-bottom: 2px;
}

/* ---- KPI Grid (Salesforce-style tiles) ---- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 0;
}

.kpi-tile {
    background: var(--pnb-white);
    border: 1px solid var(--pnb-border);
    border-radius: 12px;
    padding: 20px 22px 18px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    cursor: default;
}

.kpi-tile::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--kpi-accent, linear-gradient(90deg, var(--pnb-maroon), var(--pnb-gold)));
    border-radius: 3px 3px 0 0;
}

.kpi-tile:hover {
    box-shadow: 0 8px 24px -4px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.kpi-tile-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pnb-text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kpi-tile-value {
    font-size: 34px;
    font-weight: 800;
    color: var(--pnb-grey-900);
    letter-spacing: -0.04em;
    line-height: 1;
}

.kpi-tile-value.gold { color: var(--pnb-gold-muted); }
.kpi-tile-value.positive { color: var(--status-positive); }
.kpi-tile-value.negative { color: var(--status-negative); }

.kpi-tile-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.kpi-tile-detail {
    font-size: 12px;
    color: var(--pnb-text-muted);
    font-weight: 500;
}

.kpi-tile-trend {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.kpi-tile-trend.up { background: var(--status-positive-bg); color: var(--status-positive); }
.kpi-tile-trend.down { background: var(--status-negative-bg); color: var(--status-negative); }
.kpi-tile-trend.neutral { background: var(--pnb-grey-100); color: var(--pnb-grey-500); }

.kpi-tile-bar {
    margin-top: 12px;
    height: 4px;
    background: var(--pnb-grey-100);
    border-radius: 4px;
    overflow: hidden;
}

.kpi-tile-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pnb-maroon), var(--pnb-gold));
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- SF Card ---- */
.sf-card {
    background: var(--pnb-white);
    border: 1px solid var(--pnb-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease;
}

.sf-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.sf-card-header {
    padding: 16px 22px;
    border-bottom: 1px solid var(--pnb-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sf-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--pnb-grey-800);
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: -0.01em;
}

.sf-card-title svg {
    color: var(--pnb-grey-400);
    flex-shrink: 0;
}

.sf-card-meta {
    font-size: 11.5px;
    color: var(--pnb-grey-400);
    font-weight: 500;
}

.sf-card-body {
    padding: 22px;
}

.sf-count-badge {
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    background: var(--pnb-maroon);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
}

/* ---- SF 2-col grid ---- */
.sf-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sf-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

/* ---- SF Filter Bar ---- */
.sf-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 18px;
    background: var(--pnb-white);
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid var(--pnb-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    flex-wrap: wrap;
}

.sf-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sf-filter-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--pnb-text-muted);
}

.sf-select, .sf-input {
    padding: 8px 14px;
    border: 1.5px solid var(--pnb-grey-200);
    border-radius: 8px;
    font-size: 13.5px;
    font-family: var(--font-primary);
    color: var(--pnb-text);
    background: var(--pnb-grey-50);
    min-width: 140px;
    transition: all 0.18s ease;
    height: 38px;
}

.sf-input { min-width: 220px; }

.sf-select:focus, .sf-input:focus {
    outline: none;
    border-color: var(--pnb-maroon);
    box-shadow: 0 0 0 3px var(--pnb-maroon-glow);
    background: var(--pnb-white);
}

/* ---- Executive Summary (new style) ---- */
.exec-summary-banner {
    background: linear-gradient(135deg, #1B0A12 0%, #3D1020 50%, #1B0A12 100%);
    border-radius: 14px;
    padding: 32px 36px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.exec-summary-banner::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(212,165,74,0.1) 0%, transparent 65%);
    pointer-events: none;
}

.exec-summary-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: 10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(122,27,45,0.3) 0%, transparent 65%);
    pointer-events: none;
}

.esb-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--pnb-gold);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.esb-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--pnb-gold-light);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    line-height: 1.3;
    position: relative;
}

.esb-text {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255,255,255,0.82);
    position: relative;
}

.esb-actions {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.esb-actions li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.78);
    background: rgba(255,255,255,0.06);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.07);
    backdrop-filter: blur(4px);
}

.esb-actions li::before {
    content: '▶';
    color: var(--pnb-gold);
    font-size: 9px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ---- Alert Cards (new) ---- */
.alert-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pnb-border-light);
    align-items: flex-start;
}

.alert-item:last-child { border-bottom: none; }

.alert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.alert-dot-critical { background: var(--status-negative); box-shadow: 0 0 6px rgba(255,72,66,0.5); }
.alert-dot-warning  { background: var(--status-warning); }
.alert-dot-info     { background: var(--status-info); }

.alert-body { flex: 1; min-width: 0; }
.alert-title { font-size: 13px; font-weight: 700; color: var(--pnb-grey-800); }
.alert-detail { font-size: 12px; color: var(--pnb-grey-500); margin-top: 2px; line-height: 1.5; }
.alert-meta { font-size: 11px; color: var(--pnb-grey-400); margin-top: 4px; }

/* ---- GMB Intelligence Cards ---- */
.gmb-coverage-bar {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--pnb-grey-100);
    margin: 12px 0 8px;
}

.gmb-coverage-fill {
    background: linear-gradient(90deg, #00A76F, #5BE49B);
    transition: width 1s ease;
}

.gmb-listing-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--pnb-border);
    border-radius: 10px;
    background: var(--pnb-white);
    margin-bottom: 10px;
    transition: all 0.18s ease;
    cursor: pointer;
}

.gmb-listing-card:hover {
    border-color: var(--pnb-maroon);
    box-shadow: 0 4px 12px rgba(122,27,45,0.08);
    transform: translateX(3px);
}

.gmb-listing-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4285F4 0%, #34A853 50%, #FBBC04 75%, #EA4335 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.gmb-listing-info { flex: 1; min-width: 0; }
.gmb-listing-name { font-size: 14px; font-weight: 700; color: var(--pnb-grey-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gmb-listing-meta { font-size: 12px; color: var(--pnb-text-muted); margin-top: 2px; }

.gmb-health-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.gmb-health-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--pnb-maroon);
    line-height: 1;
}

.gmb-health-label {
    font-size: 10px;
    color: var(--pnb-grey-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ---- Roadmap Timeline ---- */
.roadmap-header-banner {
    background: linear-gradient(135deg, #0F3460 0%, #1A1A2E 100%);
    border-radius: 14px;
    padding: 28px 32px;
    color: white;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.roadmap-header-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: 5%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(51,102,255,0.15) 0%, transparent 65%);
}

.rhb-eyebrow {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #84B2FF;
    margin-bottom: 8px;
}

.rhb-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.rhb-stats {
    display: flex;
    gap: 32px;
    margin-top: 16px;
}

.rhb-stat { display: flex; flex-direction: column; gap: 2px; }
.rhb-stat-val { font-size: 28px; font-weight: 800; color: #84B2FF; line-height: 1; }
.rhb-stat-label { font-size: 11px; color: rgba(255,255,255,0.5); font-weight: 500; }

/* Progress Path */
.roadmap-progress-path {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 28px;
    position: relative;
}

.roadmap-progress-path::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 12%;
    right: 12%;
    height: 3px;
    background: var(--pnb-border);
    z-index: 0;
}

.rpp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    cursor: default;
}

.rpp-node {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--pnb-border);
    background: var(--pnb-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.rpp-step.completed .rpp-node {
    background: linear-gradient(135deg, var(--status-positive), #5BE49B);
    border-color: var(--status-positive);
    color: white;
    box-shadow: 0 4px 14px rgba(0,167,111,0.3);
}

.rpp-step.active .rpp-node {
    background: linear-gradient(135deg, var(--pnb-maroon), var(--pnb-maroon-light));
    border-color: var(--pnb-maroon);
    color: white;
    box-shadow: 0 4px 14px rgba(122,27,45,0.35);
    animation: pulse-node 2s infinite;
}

@keyframes pulse-node {
    0%, 100% { box-shadow: 0 4px 14px rgba(122,27,45,0.35); }
    50% { box-shadow: 0 4px 24px rgba(122,27,45,0.55); }
}

.rpp-step.upcoming .rpp-node {
    background: var(--pnb-grey-100);
    border-color: var(--pnb-grey-200);
    color: var(--pnb-grey-400);
}

.rpp-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--pnb-grey-700);
    text-align: center;
}

.rpp-sub {
    font-size: 11px;
    color: var(--pnb-text-muted);
    text-align: center;
    line-height: 1.4;
}

/* Roadmap Timeline Milestones */
.roadmap-timeline {
    position: relative;
    padding-left: 28px;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--pnb-maroon) 0%, var(--pnb-gold) 50%, var(--pnb-grey-200) 100%);
}

.rm-milestone {
    position: relative;
    margin-bottom: 28px;
    padding: 20px 24px;
    background: var(--pnb-white);
    border: 1px solid var(--pnb-border);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.rm-milestone::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--pnb-white);
    background: var(--rm-color, var(--pnb-maroon));
    box-shadow: 0 0 0 3px var(--rm-color, var(--pnb-maroon));
    opacity: 0.7;
}

.rm-milestone.completed { border-left: 4px solid var(--status-positive); }
.rm-milestone.active    { border-left: 4px solid var(--pnb-maroon); box-shadow: 0 4px 16px rgba(122,27,45,0.08); }
.rm-milestone.upcoming  { border-left: 4px solid var(--pnb-grey-200); opacity: 0.85; }

.rm-milestone:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); transform: translateX(4px); }

.rm-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.rm-quarter {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pnb-text-muted);
    margin-bottom: 4px;
}

.rm-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--pnb-grey-900);
    letter-spacing: -0.02em;
}

.rm-status-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rm-status-tag.completed { background: var(--status-positive-bg); color: var(--status-positive); }
.rm-status-tag.active    { background: rgba(122,27,45,0.1); color: var(--pnb-maroon); }
.rm-status-tag.upcoming  { background: var(--pnb-grey-100); color: var(--pnb-grey-500); }

.rm-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.rm-kpi {
    background: var(--pnb-grey-50);
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid var(--pnb-border-light);
}

.rm-kpi-label { font-size: 10px; font-weight: 700; color: var(--pnb-text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.rm-kpi-val { font-size: 18px; font-weight: 800; color: var(--pnb-grey-800); margin-top: 4px; }
.rm-kpi-target { font-size: 11px; color: var(--pnb-text-muted); margin-top: 2px; }

.rm-progress-bar {
    margin: 14px 0 4px;
    height: 6px;
    background: var(--pnb-grey-100);
    border-radius: 3px;
    overflow: hidden;
}

.rm-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.rm-actions-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rm-action-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--pnb-grey-700);
    padding: 8px 12px;
    border-radius: 7px;
    background: var(--pnb-grey-50);
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.rm-action-item:hover { border-color: var(--pnb-border); background: var(--pnb-white); }

.rm-action-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
    margin-top: 1px;
}

.rm-action-icon.done    { background: var(--status-positive-bg); color: var(--status-positive); }
.rm-action-icon.pending { background: var(--pnb-maroon-glow); color: var(--pnb-maroon); }
.rm-action-icon.planned { background: var(--pnb-grey-100); color: var(--pnb-grey-500); }

/* Insights Rich Cards */
.insight-rich-card {
    background: var(--pnb-white);
    border: 1px solid var(--pnb-border);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 14px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.insight-rich-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--irc-color, var(--pnb-gold));
}

.insight-rich-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); transform: translateY(-1px); }

.insight-rich-card.critical { --irc-color: var(--status-negative); }
.insight-rich-card.high     { --irc-color: var(--status-warning); }
.insight-rich-card.medium   { --irc-color: var(--pnb-gold); }
.insight-rich-card.low      { --irc-color: var(--status-info); }

.irc-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.irc-title  { font-size: 15px; font-weight: 700; color: var(--pnb-grey-900); line-height: 1.4; }
.irc-badge  { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.irc-badge.critical { background: var(--status-negative-bg); color: var(--status-negative); }
.irc-badge.high     { background: var(--status-warning-bg);  color: var(--status-warning); }
.irc-badge.medium   { background: var(--pnb-gold-glow);      color: var(--pnb-gold-muted); }
.irc-badge.low      { background: var(--status-info-bg);     color: var(--status-info); }
.irc-body  { font-size: 13.5px; color: var(--pnb-grey-600); line-height: 1.65; }
.irc-meta  { font-size: 11.5px; color: var(--pnb-grey-400); margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.irc-meta-item { display: flex; align-items: center; gap: 4px; }

/* Action Items List */
.action-list-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--pnb-border-light);
    align-items: flex-start;
}

.action-list-item:last-child { border-bottom: none; }

.action-rank {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--pnb-grey-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--pnb-grey-600);
    flex-shrink: 0;
}

.action-rank.top3 {
    background: linear-gradient(135deg, var(--pnb-gold), var(--pnb-gold-light));
    color: var(--pnb-maroon-dark);
}

.action-body { flex: 1; }
.action-title  { font-size: 14px; font-weight: 700; color: var(--pnb-grey-800); }
.action-detail { font-size: 12.5px; color: var(--pnb-grey-500); margin-top: 3px; line-height: 1.5; }

.action-impact {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--pnb-text-muted);
}

/* Responsive for new layout */
@media (max-width: 1200px) {
    .sf-grid-2 { grid-template-columns: 1fr; }
    .sf-grid-3 { grid-template-columns: 1fr 1fr; }
    .roadmap-progress-path { grid-template-columns: 1fr 1fr; }
    .esb-actions { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .app-sidebar {
        transform: translateX(-100%);
        width: 260px !important;
        z-index: 300;
    }
    .app-sidebar.mobile-open { transform: translateX(0); box-shadow: 6px 0 32px rgba(0,0,0,0.45); }
    .app-main { margin-left: 0 !important; }
    .sf-grid-2 { grid-template-columns: 1fr; }
    .sf-grid-3 { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .header-search-box { display: none; }
    .content-area { padding: 16px 12px 40px; }
    .app-header { padding: 0 16px; }
    .roadmap-timeline { grid-template-columns: 1fr; }
    .rm-kpis { grid-template-columns: 1fr 1fr; }
    .roadmap-progress-path { grid-template-columns: repeat(2, 1fr); }
    /* Table horizontal scroll on tablet */
    .data-table-wrap, .sf-card-body > .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table { min-width: 600px; }
}

/* Mobile overlay backdrop */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 299;
    backdrop-filter: blur(2px);
}
.sidebar-backdrop.active { display: block; }

@media (max-width: 600px) {
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .page-hero { flex-direction: column; align-items: flex-start; gap: 6px; }
    .page-hero-title { font-size: 20px; }
    .rm-kpis { grid-template-columns: 1fr 1fr; }
    .rhb-stats { gap: 12px; flex-wrap: wrap; }
    .rhb-stat-val { font-size: 22px !important; }
    .sf-card-header { flex-direction: column; align-items: flex-start; gap: 6px; }
    .app-breadcrumb { display: none; }
    .sidebar-brand-name { font-size: 13px; }
    .sidebar-brand-tag { font-size: 10px; }
    .kpi-tile-value { font-size: 24px; }
    .rm-milestone { padding: 16px; }
    .exec-summary-banner { padding: 20px 18px; }
    .esb-title { font-size: 18px; }
    .roadmap-header-banner { padding: 22px 18px; }
    .rhb-title { font-size: 20px; }
    /* Tables always scroll horizontally on mobile */
    .sf-card-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table { min-width: 520px; font-size: 12px; }
    table th, table td { padding: 8px 10px; white-space: nowrap; }
    /* Review cards stack nicely */
    .review-card { padding: 12px; }
    .review-header { flex-wrap: wrap; gap: 6px; }
    .review-meta { flex-wrap: wrap; gap: 4px; font-size: 11px; }
    /* Filter bar stacks */
    .sf-filter-bar { flex-direction: column; gap: 10px; }
    .sf-filter-group { width: 100%; }
    .sf-select, .sf-input { width: 100%; min-width: unset; }
    /* Sentiment grid 1 col */
    #sentiment-chart > div:last-child { grid-template-columns: 1fr 1fr !important; }
    /* GMB coverage banner text */
    .gmb-coverage-bar { font-size: 12px; }
    /* Insight cards */
    .insight-rich-card { padding: 14px; }
    .irc-header { flex-wrap: wrap; gap: 6px; }
    /* Competitor table */
    .competitor-rank { width: 28px; height: 28px; font-size: 12px; }
    /* Action list */
    .action-list-item { gap: 10px; }
    .action-rank { width: 26px; height: 26px; font-size: 12px; }
}

@media (max-width: 400px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .rm-kpis { grid-template-columns: 1fr; }
    table { min-width: 400px; font-size: 11px; }
    .rhb-stats { flex-direction: column; gap: 8px; }
}

