:root {
    /* Brand Colors - Hamster Kingdom (Master Process Map) */
    --brand-yellow: #FFE86D;
    --brand-yellow-dk: #F5C800;
    --brand-blue: #29B8E5;
    --brand-blue-dk: #1A9DC7;
    --brand-pink: #F2608A;
    --brand-pink-dk: #D94470;
    --brand-green: #2DC6A0;
    --brand-green-dk: #1A9978;
    --brand-orange: #F5A623;
    --brand-purple: #9B6CF5;
    --brand-coral: #F87171;
    --brand-teal: #0D9488;
    --brand-cream: #FFFBEF;
    --brand-dark: #2D2416;

    --bg-main: var(--brand-cream);
    --sidebar-bg: var(--brand-dark);
    --sidebar-hover: #403422;

    --primary: var(--brand-blue);
    --secondary: var(--brand-yellow);
    --accent: var(--brand-pink);

    --text-dark: var(--brand-dark);
    --text-muted: #6B7280;
    --text-light: var(--brand-cream);
    --white: #ffffff;
    --border: #e2e8f0;

    --success: var(--brand-green);
    --danger: var(--brand-coral);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.8rem;
    color: var(--primary);
}

.brand h1 {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--brand-yellow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--brand-yellow) 0%, #FFD54F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-links {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 1.5rem;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    gap: 12px;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: var(--sidebar-hover);
    color: var(--white);
}

.nav-item.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background-color: rgba(14, 162, 215, 0.1);
}

.user-profile {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.user-profile .name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white);
}

.user-profile .status {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    background-color: var(--bg-main);
    padding: 24px 32px;
}

/* Glass Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand-mascot-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mascot-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mascot-img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.mascot-wrapper:hover .mascot-img {
    transform: scale(1.1) rotate(5deg);
}

.mascot-vibe {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-blue);
    background: var(--brand-yellow);
    padding: 4px 12px;
    border-radius: 99px;
    box-shadow: 0 2px 8px rgba(255, 232, 109, 0.4);
}

/* Dashboard Filters */
.dash-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--white);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.filter-btn.active {
    background: var(--brand-blue);
    color: var(--white);
    border-color: var(--brand-blue);
    box-shadow: 0 4px 12px rgba(8, 163, 219, 0.3);
}

/* Date Range Picker Styling */
.date-picker-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
}

.date-input {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-main);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s;
}

.date-input:focus {
    border-color: var(--brand-blue);
}

.btn-apply {
    padding: 7px 16px;
    background: var(--brand-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-apply:hover {
    opacity: 0.9;
}

/* KPI Cards */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.kpi-card {
    background: var(--white);
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--border);
}

/* SLA Dashboard Extension */
.card-sla {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    border-top: 3px solid var(--brand-blue) !important;
}

.sla-status-pill {
    margin-top: 15px;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sla-status-pill.success {
    background: #f0fdf4;
    color: #10b981;
    border: 1px solid #bbf7d0;
}

.sla-status-pill.warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
}

.sla-status-pill.danger {
    background: #fff1f2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.val-mini {
    font-size: 24px;
    font-weight: 900;
    color: var(--brand-blue);
}

.lbl-mini {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Performance Growth Extension */
.card-performance {
    border-top: 3px solid var(--brand-pink) !important;
    transition: transform 0.3s ease;
}

.card-performance:hover {
    transform: translateY(-5px);
}

.baseline-comp {
    border: 1px dashed rgba(8, 163, 219, 0.3);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.performance-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
}

/* Strategy Command Center Extension */
.strategy-grid {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.action-card {
    background: var(--white);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(8, 163, 219, 0.1);
    display: flex;
    flex-direction: column;
}

.action-card.main-goal {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border: 1px solid var(--brand-blue);
    min-width: 300px;
}

.action-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s;
}

.action-row:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.cname {
    font-weight: 800;
    font-size: 14px;
    color: var(--text-main);
}

.cdetail {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.btn-mini-action {
    background: white;
    border: 1px solid var(--brand-blue);
    color: var(--brand-blue);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mini-action:hover {
    background: var(--brand-blue);
    color: white;
}

/* ROI Page Styles */
.roi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.card-tall {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.chart-container-large {
    flex: 1;
    position: relative;
    margin: 20px 0;
}

.chart-summary {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: auto;
}

.baseline-reference-box {
    margin-top: 40px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
}

.baseline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.baseline-item {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.baseline-item .b-lbl {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.baseline-item .b-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-blue);
    margin-top: 4px;
}

.kpi-card[data-color="orange"] {
    border-top-color: var(--primary);
}

.kpi-card[data-color="green"] {
    border-top-color: var(--success);
}

.kpi-card[data-color="red"] {
    border-top-color: var(--danger);
}

.kpi-card[data-color="purple"] {
    border-top-color: var(--purple);
}

.kpi-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 10px;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sidebar-bg);
    margin-bottom: 8px;
}

.kpi-trend {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.trend-up {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.trend-down {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.trend-purple {
    color: var(--purple);
    background: rgba(139, 92, 246, 0.1);
}

/* Chart Block */
.chart-block {
    background: var(--white);
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.chart-header .meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chart-body {
    display: flex;
    gap: 30px;
    align-items: center;
}

.chart-container {
    width: 300px;
    height: 200px;
}

.chart-insight {
    flex: 1;
    background: #fffbef;
    border-left: 3px solid var(--yellow);
    padding: 15px;
    border-radius: 4px;
}

.chart-insight h4 {
    font-size: 0.9rem;
    color: #854d0e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-insight p {
    font-size: 0.85rem;
    color: #713f12;
    line-height: 1.5;
}

/* Bottom Grid */
.bottom-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

/* Call List & Tickets */
.panel {
    background: var(--white);
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.panel-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.badge-orange {
    background: var(--primary);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 4px;
}

/* Call Items */
.call-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.call-item:last-child {
    border-bottom: none;
}

.call-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.call-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.call-tag {
    display: inline-block;
    padding: 2px 6px;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.7rem;
    border-radius: 4px;
    margin-top: 6px;
}

.call-actions {
    display: flex;
    gap: 10px;
}

.btn-action {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.btn-action.primary {
    background: var(--primary);
    color: white;
}

.btn-action.outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-action.success {
    background: transparent;
    color: var(--success);
}

/* Tables */
.ticket-table {
    width: 100%;
    border-collapse: collapse;
}

.ticket-table th {
    text-align: left;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.ticket-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

.status-badge.red {
    background: var(--danger);
}

.status-badge.orange {
    background: var(--primary);
}

.status-badge.yellow {
    background: var(--yellow);
}

.status-badge.green {
    background: var(--success);
}

/* CUSTOMER DETAIL PAGE */
.customer-detail-page {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
}

.header-main {
    display: flex;
    align-items: center;
    gap: 24px;
}

.avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(242, 102, 44, 0.3);
}

.customer-info h1 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--sidebar-bg);
}

.customer-info .tags {
    display: flex;
    gap: 8px;
}

.header-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-item label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-item .val {
    font-size: 18px;
    font-weight: 700;
    color: var(--sidebar-bg);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--sidebar-bg);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: var(--border);
}

.timeline-day {
    position: relative;
    margin-bottom: 32px;
}

.date-marker {
    position: relative;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 14px;
}

.date-marker::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(242, 102, 44, 0.2);
}

.day-orders {
    display: grid;
    gap: 16px;
}

.order-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.order-id {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.item-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}

.item-table th {
    font-size: 11px;
    text-align: left;
    color: var(--text-muted);
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.item-table td {
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-dark);
}

.order-total {
    text-align: right;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.order-total span {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
    margin-left: 8px;
}

/* Sidebar Sections */
.side-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--sidebar-bg);
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.contact-row i {
    color: var(--text-muted);
    width: 16px;
}

.btn-zalo {
    margin-left: auto;
    background: #0068ff;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
}

.btn-copy {
    margin-left: auto;
    background: #f1f5f9;
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
}

.task-item-mini {
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
}

.t-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.t-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* Brand Helper Classes */
.text-brand-blue {
    color: var(--brand-blue) !important;
}

.text-brand-pink {
    color: var(--brand-pink) !important;
}

.text-brand-yellow {
    color: var(--brand-yellow) !important;
}

.bg-brand-yellow {
    background-color: var(--brand-yellow) !important;
}

/* Dashboard Welcome Section */
.dash-welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.welcome-text h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--sidebar-bg);
    margin-bottom: 8px;
}

.welcome-text p {
    font-size: 16px;
    color: var(--text-muted);
}

.welcome-text b {
    color: var(--brand-blue);
}

/* Pulse Animation for Critical Alerts */
@keyframes pulseAlert {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Update Existing Component Styles for Brand-Refresh */
.brand-refresh .kpi-card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.brand-refresh .card-retention {
    border-top: 4px solid var(--brand-blue);
}

.brand-refresh .card-task {
    border-top: 4px solid var(--brand-yellow);
}

.brand-refresh .card-aov {
    border-top: 4px solid var(--brand-pink);
}

.brand-refresh .tier-label {
    color: var(--brand-blue);
    border-bottom: 2px solid var(--brand-yellow);
}

.btn-action.primary {
    background: var(--brand-blue);
    color: white;
}

.btn-action.primary:hover {
    background: #0792c4;
}

/* Global helper classes update */
.text-brand-pink {
    color: var(--brand-pink);
}

.text-brand-blue {
    color: var(--brand-blue);
}

/* Quick Action System Styles */
.quick-action-system {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-blue) 0%, #078dbb 100%);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(8, 163, 219, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(8, 163, 219, 0.6);
}

.fab-btn.active {
    transform: rotate(45deg);
    background: var(--brand-pink);
    box-shadow: 0 4px 15px rgba(250, 97, 143, 0.4);
}

.quick-menu {
    width: 280px;
    border-radius: 20px;
    bottom: 80px;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.quick-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.menu-header {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
}

.kbd-hint {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-family: monospace;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-link,
.menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid transparent;
}

.menu-link:hover,
.menu-btn:hover {
    background: var(--white);
    color: var(--brand-blue);
    transform: translateX(5px);
    border-color: rgba(8, 163, 219, 0.2);
}

.menu-link i,
.menu-btn i {
    width: 20px;
    text-align: center;
    color: var(--brand-blue);
}

.menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 5px 0;
}

.menu-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.menu-btn:active {
    transform: scale(0.98);
}

/* ============================== */
/* TAB PHÂN TÍCH (Analysis Page) */
/* ============================== */
.analysis-page {
    animation: fadeIn 0.4s ease;
}

.scorecard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.scorecard-item {
    padding: 20px;
    border-radius: 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.scorecard-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(255, 255, 255, 0.03));
    pointer-events: none;
}

.scorecard-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.detail-panel {
    margin-bottom: 24px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.actions-container .action-item {
    border-radius: 14px;
    transition: all 0.2s ease;
}

.actions-container .action-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
    .scorecard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-panel .glass-panel>div {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 600px) {
    .scorecard-grid {
        grid-template-columns: 1fr;
    }
}