/* ==========================================================================
   tGroup Telecom - ISP Client Portal
   Design System: Lumina Network Suite (Photonic Cyber-Glassmorphism)
   Standard CSS Architecture — Zero External Framework Dependencies
   ========================================================================== */

:root {
    /* Foundations & Surfaces */
    --bg-canvas: #090D16;
    --bg-surface: #0f131d;
    --bg-surface-lowest: #0a0e17;
    --bg-surface-low: #171c25;
    --bg-surface-container: #1b2029;
    --bg-surface-high: #262a34;
    --bg-surface-highest: #31353f;
    --bg-surface-bright: #353944;

    /* Photonic Accents & Signal Core */
    --cyan-primary: #00f2fe;
    --cyan-light: #e0fdff;
    --cyan-secondary: #4cd7f6;
    --cyan-fiber: #06b6d4;
    --cyan-tertiary: #38bdf8;
    --cyan-dim: #00dce6;

    /* Telemetry Status Colors */
    --emerald-status: #10b981;
    --emerald-bg: rgba(16, 185, 129, 0.12);
    --emerald-border: rgba(16, 185, 129, 0.3);
    
    --amber-status: #f59e0b;
    --amber-bg: rgba(245, 158, 11, 0.12);
    --amber-border: rgba(245, 158, 11, 0.3);

    --error-status: #ef4444;
    --error-light: #ffb4ab;
    --error-container: #93000a;
    --error-bg: rgba(239, 68, 68, 0.12);
    --error-border: rgba(239, 68, 68, 0.3);

    /* Text Tiers */
    --text-primary: #dfe2f0;
    --text-white: #ffffff;
    --text-muted: #b9cacb;
    --text-dim: #849495;

    /* Borders & Glass */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-cyan: rgba(56, 189, 248, 0.2);
    --glass-lumina-bg: radial-gradient(120% 120% at 50% 0%, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
    --glass-subtle-bg: rgba(27, 32, 41, 0.85);

    /* Typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Radii */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Container Max Width */
    --max-content-width: 1100px;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    background-color: #040711;
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    background-color: transparent !important;
    background-image: none !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Base Starfield and Atmospheric Radiance (from TakchGroup Website) */
#universe-bg-layer,
.universe-bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background-color: #040711;
    background-image: 
        radial-gradient(circle at 50% 10%, rgba(0, 229, 255, 0.12) 0%, rgba(14, 116, 144, 0.08) 28%, transparent 55%),
        radial-gradient(circle at 85% 25%, rgba(168, 85, 247, 0.15) 0%, rgba(147, 51, 234, 0.06) 35%, transparent 60%),
        radial-gradient(circle at 15% 70%, rgba(56, 189, 248, 0.09) 0%, transparent 48%),
        radial-gradient(circle at 80% 85%, rgba(99, 102, 241, 0.08) 0%, transparent 45%),
        radial-gradient(1.2px 1.2px at 15% 15%, rgba(255, 255, 255, 0.75) 1px, transparent 0),
        radial-gradient(1.5px 1.5px at 38% 70%, rgba(147, 197, 253, 0.65) 1px, transparent 0),
        radial-gradient(1.2px 1.2px at 68% 22%, rgba(233, 213, 255, 0.7) 1px, transparent 0),
        radial-gradient(1.8px 1.8px at 84% 80%, rgba(255, 255, 255, 0.6) 1px, transparent 0),
        radial-gradient(1.4px 1.4px at 92% 12%, rgba(56, 189, 248, 0.75) 1px, transparent 0);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 540px 540px, 540px 540px, 540px 540px, 540px 540px, 540px 540px;
    background-attachment: fixed;
}

/* Background Canvas Layer (from TakchGroup Website) */
#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0.65;
    display: block !important;
}

.lumina-main {
    position: relative;
    z-index: 10;
}

.lumina-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Material Symbols Integration */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Utility Typography Classes */
.font-mono { font-family: var(--font-mono); }
.font-sans { font-family: var(--font-sans); }

/* Common Glass & Card Surfaces */
.glass-lumina {
    background: var(--glass-lumina-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
}

.glass-card {
    background: rgba(27, 32, 41, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
}

.neon-glow-cyan {
    box-shadow: 0 0 35px -5px rgba(6, 182, 212, 0.25);
}

/* Pulse Animations */
@keyframes pulse-subtle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.95); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.6); }
    70% { box-shadow: 0 0 0 6px rgba(0, 242, 254, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

.pulse-dot {
    animation: pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==========================================================================
   Header Navigation Bar
   ========================================================================== */
.lumina-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding-top: env(safe-area-inset-top, 0px);
}

.lumina-header-inner {
    max-width: var(--max-content-width);
    margin: 0 auto;
    height: 64px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo-squircle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--cyan-primary) 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #070b14;
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.35);
}

.brand-text-col {
    display: flex;
    flex-direction: column;
}

.brand-super {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan-secondary);
    line-height: 1.1;
}

.brand-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-white);
    line-height: 1.2;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.session-beacon-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-full);
    color: var(--emerald-status);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.session-beacon-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald-status);
}

.btn-icon-lumina {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon-lumina:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-white);
}

/* Standalone Floating Refresh Button */
.floating-refresh-btn {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 100;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 242, 254, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 12px rgba(0, 242, 254, 0.15);
    color: var(--cyan-primary, #00f2fe);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-refresh-btn:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(0, 242, 254, 0.6);
    color: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6), 0 0 18px rgba(0, 242, 254, 0.35);
    transform: translateY(-2px);
}

.floating-refresh-btn:active {
    transform: translateY(0px) scale(0.95);
}

@media (max-width: 640px) {
    .floating-refresh-btn {
        top: 1rem;
        right: 1rem;
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }
}

/* ==========================================================================
   Main Application Layout
   ========================================================================== */
.lumina-main {
    flex: 1;
    width: 100%;
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 1.25rem 10px 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ==========================================================================
   Subscriber Identity Hero Card
   ========================================================================== */
.subscriber-hero-card {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.subscriber-session-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cyan-secondary);
}

.subscriber-greeting {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
    margin-top: 0.125rem;
}

.subscriber-meta-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.375rem;
}

.tenure-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.subscriber-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: none;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.6);
    color: #34d399;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.status-pill-icon {
    font-size: 1.05rem !important;
}

.status-active, .status-success {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.6) !important;
    color: #34d399 !important;
}

.status-warning, .status-suspended {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.6) !important;
    color: #fbbf24 !important;
}

.status-danger, .status-expired {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
    color: #f87171 !important;
}

/* Subscribed Plan Box (Option 1: Amethyst & Cyan HUD Pod + Glowing Days Badge) */
.hero-package-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, rgba(124, 119, 255, 0.09), rgba(0, 242, 254, 0.04));
    border: 1px dashed rgba(124, 119, 255, 0.45);
    box-shadow: none;
    margin: 0;
}

.package-info-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.package-icon-bolt {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.35);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-primary, #00f2fe);
    flex-shrink: 0;
}

.package-icon-bolt .material-symbols-outlined {
    font-size: 1.25rem;
}

.package-name-title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.package-renewal-date-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.15rem;
}

.renewal-calendar-icon {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.55);
}

.package-renewal-text {
    font-size: 0.6875rem;
    color: #94a3b8;
    white-space: nowrap;
}

.package-divider {
    display: none;
}

.package-badge-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 0.5rem;
    padding: 0.28rem 0.6rem;
}

.days-remaining-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.days-remaining-num {
    font-size: 0.9rem;
    font-weight: 800;
    color: #00f2fe;
    line-height: 1.15;
    white-space: nowrap;
}

.days-remaining-label {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.15;
    margin-top: 1px;
}

/* Hero Card Subscriber Details List Layout (Matching Reference Design) */
.hero-details-list {
    display: flex;
    flex-direction: column;
    margin-top: 0;
}

.hero-detail-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.3rem 0.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.hero-detail-row:last-of-type {
    border-bottom: none;
}

.hero-row-icon {
    color: var(--cyan-primary, #00f2fe);
    font-size: 1rem !important;
    opacity: 0.75;
    flex-shrink: 0;
}

.hero-row-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    margin-right: auto;
    white-space: nowrap;
}

.hero-row-val-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-row-val {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #f1f5f9;
    text-align: right;
    white-space: nowrap;
}

.hero-row-sub-since {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #94a3b8;
}

.hero-detail-val-accent {
    color: var(--cyan-primary, #00f2fe);
    font-weight: 700;
}

/* SMS Badge Tag beside Primary Mobile (Pill Tag in Cyan/Green) */
.sms-badge-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-full, 9999px);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.6);
    color: #10b981;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.pricing-standard-mode {
    display: flex;
    align-items: center;
}

/* Special VIP Discount Mode Styling */
.pricing-discount-mode {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(0, 242, 254, 0.08));
    border: 1px dashed rgba(0, 242, 254, 0.45);
    border-radius: var(--radius-md, 0.5rem);
    padding: 0.75rem 0.9rem;
    position: relative;
    overflow: hidden;
}

@media (max-width: 480px) {
    .pricing-discount-mode {
        padding: 0.65rem 0.75rem;
        gap: 0.5rem;
    }

    .discount-price-row {
        gap: 0.35rem;
        flex-wrap: nowrap;
    }

    .price-savings-badge {
        padding: 0.2rem 0.45rem;
        font-size: 0.6875rem;
    }
}

@media (max-width: 360px) {
    .pricing-discount-mode {
        padding: 0.55rem 0.6rem;
    }

    .discount-price-row {
        gap: 0.25rem;
    }

    .price-box-label {
        font-size: 0.5rem;
    }

    .price-strikethrough,
    .price-special-val {
        font-size: 0.95rem;
    }

    .price-savings-badge {
        padding: 0.15rem 0.35rem;
        font-size: 0.625rem;
    }
}

.discount-badge-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.discount-sparkle-icon {
    color: #ffd700;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.discount-header-title {
    font-size: clamp(0.625rem, 3.2vw, 0.75rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #00f2fe;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discount-tag-pill {
    margin-left: auto;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full, 9999px);
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: clamp(0.6rem, 2.8vw, 0.6875rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
    white-space: nowrap;
    flex-shrink: 0;
}

.discount-price-row {
    display: flex;
    align-items: center;
    gap: clamp(0.35rem, 1.8vw, 0.85rem);
    flex-wrap: nowrap;
    min-width: 0;
}

.price-box-original, .price-box-special {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    min-width: 0;
}

.price-box-label {
    font-size: clamp(0.55rem, 1.6vw, 0.625rem);
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.price-strikethrough {
    font-size: clamp(1.05rem, 3.2vw, 1.25rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: line-through;
    text-decoration-color: #ef4444;
    text-decoration-thickness: 2px;
    white-space: nowrap;
    line-height: 1.1;
}

.price-arrow-divider {
    color: rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.price-arrow-divider .material-symbols-outlined {
    font-size: clamp(1rem, 3vw, 1.25rem);
}

.price-special-val {
    font-size: clamp(1.05rem, 3.5vw, 1.25rem);
    font-weight: 800;
    color: #10b981;
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
    white-space: nowrap;
    line-height: 1.1;
}

.price-savings-badge {
    margin-left: auto;
    padding: 0.22rem clamp(0.35rem, 1.2vw, 0.6rem);
    border-radius: var(--radius-md, 0.375rem);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: clamp(0.6875rem, 2vw, 0.75rem);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.days-left-pill {
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    background: var(--bg-surface-highest);
    color: var(--cyan-secondary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.days-left-pill.urgent {
    background: var(--error-bg);
    color: var(--error-status);
    border: 1px solid var(--error-border);
}

/* ==========================================================================
   Live Bandwidth Telemetry Card
   ========================================================================== */
.telemetry-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.telemetry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.telemetry-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-ring-wrap {
    position: relative;
    width: 8px;
    height: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring-ping {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--cyan-primary);
    opacity: 0.75;
    animation: pulse-subtle 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-ring-core {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan-primary);
}

.telemetry-title-text {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-white);
}

.telemetry-snmp-tag {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-lowest);
    color: var(--text-muted);
    border: 1px solid var(--border-glass);
}

/* Dual Metric Readouts */
.telemetry-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.metric-box {
    padding: 0.875rem;
    border-radius: var(--radius-lg);
    background: var(--bg-surface-low);
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.metric-box.dl-box {
    border-color: rgba(0, 242, 254, 0.2);
    background: linear-gradient(180deg, rgba(0, 242, 254, 0.05) 0%, rgba(15, 19, 29, 0.6) 100%);
}

.metric-box.ul-box {
    border-color: rgba(192, 132, 252, 0.2);
    background: linear-gradient(180deg, rgba(192, 132, 252, 0.05) 0%, rgba(15, 19, 29, 0.6) 100%);
}

.metric-top-label {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.metric-top-label #val-dl-cap,
.metric-top-label #val-ul-cap {
    position: absolute;
    right: 0;
}

.metric-top-label.dl-label { color: var(--cyan-primary); }
.metric-top-label.ul-label { color: #c084fc; }

.metric-value-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    width: 100%;
    gap: 0.25rem;
}

.metric-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.03em;
    line-height: 1;
}

.metric-unit {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cyan-secondary);
}

.metric-box.dl-box .metric-unit {
    color: var(--cyan-primary);
}

.metric-box.ul-box .metric-unit {
    color: #c084fc;
}

.metric-secondary-sub {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-align: center;
    width: 100%;
}

.metric-peak-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 3px 9px;
    margin-top: 0.4rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-family: var(--font-mono, monospace);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.03em;
    user-select: none;
    transition: all 0.25s ease;
}

.metric-peak-pill.dl-peak-pill {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.24);
    color: #00f2fe;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.12);
}

.metric-peak-pill.ul-peak-pill {
    background: rgba(192, 132, 252, 0.08);
    border: 1px solid rgba(192, 132, 252, 0.24);
    color: #c084fc;
    box-shadow: 0 0 8px rgba(192, 132, 252, 0.12);
}

.metric-peak-pill .metric-peak-tag {
    opacity: 0.75;
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-peak-pill .metric-peak-value {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* 24-Segment LED Velocity Meter */
.velocity-meter-wrapper {
    padding: 0.5rem 0.25rem 0.75rem;
    border-radius: var(--radius-lg);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.velocity-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.velocity-header-title {
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.velocity-peak-pill {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--cyan-primary);
}

.led-grid-24 {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 3px;
    height: 14px;
    padding: 2px 0;
}

.led-segment {
    height: 100%;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.led-segment.lit {
    box-shadow: 0 0 6px currentColor;
}

.velocity-scale-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-dim);
}

/* Oscilloscope Streaming Waveform Container */
.oscilloscope-container {
    position: relative;
    width: 100%;
    height: 128px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface-lowest);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.oscilloscope-legend-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.oscilloscope-legend-items {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.oscilloscope-legend-tag {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.oscilloscope-legend-tag.dl-tag { color: var(--cyan-primary); }
.oscilloscope-legend-tag.ul-tag { color: #c084fc; }

.oscilloscope-legend-line {
    width: 8px;
    height: 2px;
    border-radius: 1px;
}

.oscilloscope-canvas-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.oscilloscope-canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Floating Real-Time Oscilloscope (Borderless & Transparent Duplicate Chart) */
.floating-oscilloscope {
    position: relative;
    width: 100%;
    height: 140px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible;
}

.floating-oscilloscope .oscilloscope-legend-bar {
    transform: translateY(-18px);
    margin-bottom: -10px;
}

/* ==========================================================================
   Quota & Limits Section
   ========================================================================== */
.quota-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

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

.quota-header-left {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #cbd5e1;
}

.quota-header-left .material-symbols-outlined {
    font-size: 1rem !important;
}

.quota-badge-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cyan-primary);
}

.quota-value-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.quota-main-digits {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

#val-today-total {
    color: #00f2fe;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

#val-free-night-total {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

#val-quota-traffic-total {
    color: #c084fc;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.2);
}

.quota-main-digits .q-unit {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #94a3b8;
    text-shadow: none;
}

.quota-limit-caption {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: rgba(165, 180, 252, 0.75);
    white-space: nowrap;
}

#val-today-remaining-text,
#val-quota-remaining-text,
.quota-remaining-pill {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: #00f2fe;
    background: linear-gradient(135deg, rgba(124, 119, 255, 0.10), rgba(0, 242, 254, 0.05));
    border: 1px dashed rgba(124, 119, 255, 0.45);
    padding: 0.12rem 0.45rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.progress-track-lumina {
    width: 100%;
    height: 6px;
    min-height: 6px;
    max-height: 6px;
    border: none;
    box-sizing: border-box;
    border-radius: var(--radius-full);
    background: var(--bg-surface-highest);
    overflow: hidden;
    position: relative;
}

.progress-fill-lumina {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--cyan-primary) 0%, #2563eb 100%);
    transition: width 0.4s ease;
}

.progress-fill-lumina.warning {
    background: linear-gradient(90deg, var(--amber-status) 0%, #ea580c 100%);
}

.progress-fill-lumina.danger {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

/* Dual Stacked Bar for Free Night vs Charged */
.stacked-split-track-wrap {
    position: relative;
    width: 100%;
    overflow: visible;
}

.stacked-split-track {
    width: 100%;
    height: 6px;
    min-height: 6px;
    max-height: 6px;
    border: none;
    box-sizing: border-box;
    border-radius: var(--radius-full);
    background: rgba(10, 15, 26, 0.85);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    position: relative;
    z-index: 1;
}

.stacked-segment-free {
    height: 100%;
    background: linear-gradient(90deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
    transition: width 0.4s ease;
}

.stacked-segment-charged {
    height: 100%;
    background: linear-gradient(90deg, #0284c7 0%, #00c6ff 50%, #38bdf8 100%);
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.35);
    transition: width 0.4s ease;
}

/* Variant 3: Vertical Laser Notch Marker */
.stacked-laser-notch {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
    transition: left 0.4s ease, opacity 0.3s ease;
}

/* Laser Flare Vertical Beam */
.stacked-laser-notch .laser-flare-beam {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.5px;
    height: 22px;
    background: linear-gradient(180deg, 
        rgba(56, 189, 248, 0) 0%, 
        rgba(255, 255, 255, 0.95) 50%, 
        rgba(56, 189, 248, 0) 100%
    );
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.95);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
    pointer-events: none;
}

/* Laser Capsule Core */
.stacked-laser-notch .laser-capsule-core {
    position: relative;
    width: 4px;
    height: 13px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 6px rgba(255, 255, 255, 1),
        0 0 12px rgba(56, 189, 248, 0.95),
        0 0 20px rgba(0, 242, 254, 0.6),
        inset 0 0 2px rgba(255, 255, 255, 0.9);
    pointer-events: none;
    z-index: 2;
}

.stacked-legend-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.legend-dot-free {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.7);
    margin-right: 5px;
    vertical-align: middle;
}

.legend-dot-charged {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.7);
    margin-right: 5px;
    vertical-align: middle;
}

/* Smart Advisory Guidance Box */
.smart-advisory-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface-low);
    border: 1px solid var(--border-glass);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.smart-advisory-icon {
    color: var(--cyan-primary);
    font-size: 18px;
    margin-top: 1px;
}

.smart-advisory-title {
    font-weight: 700;
    color: var(--text-white);
    display: block;
    margin-bottom: 2px;
}

/* Infinite Allowance (Unlimited Plan Display) */
.unlimited-badge-core {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(0, 242, 254, 0.15);
    border: 1px solid rgba(0, 242, 254, 0.35);
    color: var(--cyan-primary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==========================================================================
   Historical Traffic Analytics (Highcharts Integration)
   ========================================================================== */
.history-analytics-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.history-period-switch {
    display: flex;
    align-items: center;
    background: var(--bg-surface-lowest);
    padding: 2px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

.period-btn {
    background: none;
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.period-btn.active {
    background: var(--bg-surface-high);
    color: var(--cyan-primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Historical Traffic Analytics Summary Badges */
.traffic-history-badges-row {
    display: flex;
    align-items: stretch;
    gap: 0.625rem;
    width: 100%;
    flex-wrap: wrap;
}

.traffic-stat-badge {
    flex: 1 1 0;
    min-width: 110px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    background: rgba(8, 14, 27, 0.72);
    border: 1px solid rgba(0, 242, 254, 0.22);
    border-radius: var(--radius-md, 8px);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.traffic-stat-badge:hover {
    background: rgba(13, 22, 42, 0.85);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.traffic-stat-badge:active {
    transform: translateY(0);
}

.traffic-stat-badge.inactive {
    opacity: 0.35;
    filter: grayscale(45%);
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.traffic-stat-badge.inactive:hover {
    opacity: 0.75;
    filter: grayscale(20%);
    transform: translateY(-1px);
}

.badge-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-icon-wrap .material-symbols-outlined {
    font-size: 1.5rem;
}

.badge-data-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.15;
}

.badge-data-wrap .badge-value {
    font-family: var(--font-mono, monospace);
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.badge-data-wrap .badge-label {
    font-family: var(--font-sans, system-ui, sans-serif);
    font-size: 0.6875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.9;
    letter-spacing: 0.01em;
}

/* 1. Download: Cyan (Matching Screenshot) */
.badge-download {
    border-color: rgba(0, 242, 254, 0.28);
}
.badge-download:hover {
    border-color: rgba(0, 242, 254, 0.6);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}
.badge-download .badge-icon-wrap,
.badge-download .badge-value,
.badge-download .badge-label {
    color: #00f2fe;
}
.badge-download .badge-icon-wrap {
    filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.5));
}

/* 2. Upload: Violet/Purple (Matching Screenshot) */
.badge-upload {
    border-color: rgba(192, 132, 252, 0.28);
}
.badge-upload:hover {
    border-color: rgba(192, 132, 252, 0.6);
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.25);
}
.badge-upload .badge-icon-wrap,
.badge-upload .badge-value,
.badge-upload .badge-label {
    color: #c084fc;
}
.badge-upload .badge-icon-wrap {
    filter: drop-shadow(0 0 5px rgba(192, 132, 252, 0.5));
}

/* 3. Free Night: Amber/Gold (Matching Screenshot) */
.badge-free {
    border-color: rgba(251, 191, 36, 0.28);
}
.badge-free:hover {
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
}
.badge-free .badge-icon-wrap,
.badge-free .badge-value,
.badge-free .badge-label {
    color: #fbbf24;
}
.badge-free .badge-icon-wrap {
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.5));
}

/* 4. Paid: Electric Blue / Cyan */
.badge-paid {
    border-color: rgba(0, 198, 255, 0.28);
}
.badge-paid:hover {
    border-color: rgba(0, 198, 255, 0.6);
    box-shadow: 0 0 12px rgba(0, 198, 255, 0.25);
}
.badge-paid .badge-icon-wrap,
.badge-paid .badge-value,
.badge-paid .badge-label {
    color: #00c6ff;
}
.badge-paid .badge-icon-wrap {
    filter: drop-shadow(0 0 5px rgba(0, 198, 255, 0.5));
}

/* 5. Total: Radiant Violet-Magenta */
.badge-total {
    border-color: rgba(232, 121, 249, 0.28);
}
.badge-total:hover {
    border-color: rgba(232, 121, 249, 0.6);
    box-shadow: 0 0 12px rgba(232, 121, 249, 0.25);
}
.badge-total .badge-icon-wrap,
.badge-total .badge-value,
.badge-total .badge-label {
    color: #e879f9;
}
.badge-total .badge-icon-wrap {
    filter: drop-shadow(0 0 5px rgba(232, 121, 249, 0.5));
}

/* Light Theme Adjustments */
[data-theme="light"] .traffic-stat-badge {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .badge-download .badge-value,
[data-theme="light"] .badge-download .badge-label {
    color: #0891b2;
}
[data-theme="light"] .badge-upload .badge-value,
[data-theme="light"] .badge-upload .badge-label {
    color: #7c3aed;
}
[data-theme="light"] .badge-free .badge-value,
[data-theme="light"] .badge-free .badge-label {
    color: #d97706;
}
[data-theme="light"] .badge-paid .badge-value,
[data-theme="light"] .badge-paid .badge-label {
    color: #0284c7;
}
[data-theme="light"] .badge-total .badge-value,
[data-theme="light"] .badge-total .badge-label {
    color: #9333ea;
}

@media (max-width: 640px) {
    .traffic-history-badges-row {
        gap: 0.5rem;
    }
    .traffic-stat-badge {
        min-width: calc(50% - 0.25rem);
        flex: 1 1 calc(50% - 0.25rem);
        padding: 0.45rem 0.65rem;
    }
    .badge-data-wrap .badge-value {
        font-size: 0.85rem;
    }
    .badge-data-wrap .badge-label {
        font-size: 0.65rem;
    }
}

.chart-viewport-wrap {
    width: 100%;
    height: 380px;
    min-height: 380px;
    position: relative;
    overflow: visible !important;
}

#trafficHistoryChartContainer,
#trafficHistoryChartContainer.highcharts-container,
#trafficHistoryChartContainer .highcharts-container,
#trafficHistoryChartContainer svg {
    overflow: visible !important;
}

/* Interactive History Legend Capsule (Screenshot Style) */
.history-legend-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
}

.history-legend-capsule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding: 0.35rem 1.15rem;
    border-radius: 9999px;
    background: rgba(13, 19, 34, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 242, 254, 0.28);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 12px rgba(0, 242, 254, 0.12);
}

.legend-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 2px 6px;
    border-radius: 9999px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    opacity: 0.38;
    filter: grayscale(40%);
}

.legend-chip:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.legend-chip.active {
    opacity: 1;
    filter: none;
}

.legend-chip.active .legend-label {
    color: #ffffff;
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.22s ease;
}

.dot-total {
    background: linear-gradient(135deg, #00f2fe, #a855f7);
}
.legend-chip.active .dot-total {
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.9);
}

.dot-paid {
    background: #00c6ff;
}
.legend-chip.active .dot-paid {
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.9);
}

.dot-free,
.dot-freenight {
    background: #fbbf24;
}
.legend-chip.active .dot-free,
.legend-chip.active .dot-freenight {
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.9);
}

.dot-download {
    background: linear-gradient(135deg, #00f2fe, #a855f7);
}
.legend-chip.active .dot-download {
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.9);
}

.dot-upload {
    background: #a855f7;
}
.legend-chip.active .dot-upload {
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.9);
}

.dot-paid-free {
    background: linear-gradient(135deg, #fbbf24 50%, #00c6ff 50%);
}
.legend-chip.active .dot-paid-free {
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.9);
}

.dot-dl-ul {
    background: linear-gradient(135deg, #a855f7 50%, #00f2fe 50%);
}
.legend-chip.active .dot-dl-ul {
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.9);
}

/* Highcharts Limit Line Pill Badge */
.chart-limit-pill {
    background: #fbbf24 !important;
    color: #000000 !important;
    font-family: var(--font-mono, 'JetBrains Mono', monospace) !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    padding: 2px 7px !important;
    border-radius: 9999px !important;
    border: none !important;
    outline: none !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 1px 6px rgba(251, 191, 36, 0.45) !important;
    user-select: none !important;
    position: relative !important;
    z-index: 99999 !important;
}

foreignObject:has(.chart-limit-pill),
.highcharts-label:has(.chart-limit-pill),
.highcharts-plot-line-label {
    z-index: 99999 !important;
    overflow: visible !important;
}

@media (max-width: 640px) {
    .history-legend-capsule {
        gap: 0.5rem;
        padding: 0.35rem 0.75rem;
    }
    .legend-chip {
        font-size: 0.6875rem;
        gap: 4px;
        padding: 2px 4px;
    }
}

/* ==========================================================================
   Invoicing & Payments Section (Concept B: High-Density Ledger Strip)
   ========================================================================== */
.invoicing-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.invoicing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.invoicing-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.invoicing-header-icon {
    color: var(--cyan-secondary);
    font-size: 20px;
}

.invoicing-title-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.01em;
}

/* Unpaid Invoices Notification Bell */
.invoice-bell-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin-left: 2px;
}

.invoice-bell-btn.hidden,
.hidden {
    display: none !important;
}

.invoice-bell-btn:hover {
    background: rgba(239, 68, 68, 0.28);
    border-color: #ef4444;
    transform: scale(1.05);
}

.invoice-bell-icon {
    font-size: 16px;
    animation: bellRing 3s ease-in-out infinite;
    transform-origin: top center;
}

@keyframes bellRing {
    0%, 80%, 100% { transform: rotate(0deg); }
    84% { transform: rotate(14deg); }
    88% { transform: rotate(-12deg); }
    92% { transform: rotate(8deg); }
    96% { transform: rotate(-6deg); }
}

.invoice-bell-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
    animation: bellDotPulse 2s infinite;
}

@keyframes bellDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.invoice-bell-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ef4444;
    color: #ffffff;
    font-family: var(--font-sans), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.625rem;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    border: 1.5px solid var(--bg-surface-high, #121826);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* Controls Bar: Filters & Date Range */
.invoice-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    flex-wrap: wrap;
    padding: 0.35rem 0.5rem;
    background: rgba(15, 19, 29, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.invoice-filter-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.invoice-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.invoice-filter-pill:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.06);
}

.invoice-filter-pill.active {
    color: var(--cyan-primary);
    background: rgba(0, 242, 254, 0.12);
    border-color: rgba(0, 242, 254, 0.3);
    font-weight: 700;
}

.invoice-filter-pill.filter-unpaid.has-unpaid {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.invoice-filter-pill.filter-unpaid.active {
    color: #f87171;
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.45);
}

.invoice-filter-count {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
}

.invoice-date-range-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(22, 27, 40, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.15rem 0.5rem;
}

.invoice-range-icon {
    font-size: 14px;
    color: var(--cyan-secondary);
}

.invoice-date-range-select {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.15rem 0.25rem;
}

.invoice-date-range-select option {
    background: #0f131d;
    color: var(--text-white);
}

/* Invoice Ledger Container */
.invoice-ledger-container {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.invoice-ledger-container .invoice-row-divider {
    display: none !important;
}

/* Glowing Divider Between Invoice Rows (Custom Line Design) */
.invoice-row-divider {
    width: 88%;
    max-width: calc(100% - 24px);
    height: 1px;
    margin: 0.35rem auto;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 242, 254, 0.15) 15%, 
        rgba(0, 242, 254, 0.75) 50%, 
        rgba(0, 242, 254, 0.15) 85%, 
        transparent 100%
    );
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
    flex-shrink: 0;
    pointer-events: none;
}

[data-theme="light"] .invoice-row-divider {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(2, 132, 199, 0.15) 15%, 
        rgba(2, 132, 199, 0.70) 50%, 
        rgba(2, 132, 199, 0.15) 85%, 
        transparent 100%
    );
    box-shadow: 0 0 6px rgba(2, 132, 199, 0.25);
}

/* Unified Telemetry & Quota Card Compact Section Spacing */
.unified-telemetry-quota-card {
    padding: 0.85rem 1.15rem !important;
    gap: 0.35rem !important;
}

.unified-telemetry-quota-card .telemetry-card,
.unified-telemetry-quota-card .quota-card {
    padding: 0.15rem 0 !important;
    margin: 0 !important;
}

.unified-telemetry-quota-card .telemetry-card {
    gap: 0.35rem !important;
}

.unified-telemetry-quota-card .quota-card {
    gap: 0.35rem !important;
}

.unified-telemetry-quota-card .invoice-row-divider {
    width: 98% !important;
    max-width: 100% !important;
    margin: 0.2rem auto !important;
    opacity: 0.75;
}

.unified-telemetry-quota-card .metric-box {
    padding: 0.25rem 0.5rem !important;
}

.unified-telemetry-quota-card .telemetry-metrics-grid {
    gap: 0.5rem !important;
}

.unified-telemetry-quota-card .quota-main-digits {
    font-size: 1.05rem !important;
    line-height: 1.15 !important;
}

.unified-telemetry-quota-card .smart-advisory-box {
    padding: 0.35rem 0.6rem !important;
    margin-top: 0.15rem !important;
}

/* Concept B Strip Card - Amethyst & Cyan Dual-Tone Dashed Border Styling */
.payment-card {
    background: linear-gradient(135deg, rgba(124, 119, 255, 0.07), rgba(0, 242, 254, 0.03));
    border: 1px dashed rgba(124, 119, 255, 0.50);
    border-radius: var(--radius-md, 0.5rem);
    padding: 0.6rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.payment-card:hover {
    border-color: rgba(0, 242, 254, 0.7);
    background: linear-gradient(135deg, rgba(124, 119, 255, 0.12), rgba(0, 242, 254, 0.07));
    box-shadow: 0 4px 14px rgba(124, 119, 255, 0.15);
    transform: translateY(-1px);
}

.payment-card.is-expanded {
    background: linear-gradient(135deg, rgba(124, 119, 255, 0.18), rgba(0, 242, 254, 0.12));
    border-color: rgba(0, 242, 254, 0.85);
    box-shadow: 0 4px 18px rgba(0, 242, 254, 0.2);
}

/* Main 2-Row Structured Card Strip (Suggestion 1) */
.payment-card-main-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    padding: 0.15rem 0;
}

.payment-card.can-collapse .payment-card-main-row {
    cursor: pointer;
}

.payment-row-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
}

.payment-line-left {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex-shrink: 0;
}

.payment-line-right {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* Date in Row */
.payment-row-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.payment-row-date .material-symbols-outlined {
    font-size: 13px;
    color: var(--cyan-secondary);
    opacity: 0.85;
}

/* Price in Row */
.payment-row-price {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 800;
    color: #4ade80;
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

[data-theme="light"] .payment-row-price {
    color: #16a34a;
}

.payment-row-price.is-special-discount {
    color: #38bdf8;
}

[data-theme="light"] .payment-row-price.is-special-discount {
    color: #0284c7;
}

/* Special Discount Tag */
.payment-discount-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.65625rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    white-space: nowrap;
    flex-shrink: 0;
}

.payment-discount-tag .material-symbols-outlined {
    font-size: 11px;
}

[data-theme="light"] .payment-discount-tag {
    color: #0369a1;
    background: rgba(3, 105, 161, 0.08);
    border-color: rgba(3, 105, 161, 0.22);
}

/* Legacy helpers preserved for backward compatibility */
.payment-strip-left {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    flex: 1 1 auto;
}

.payment-strip-icon-box {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    background: rgba(0, 242, 254, 0.1);
    color: var(--cyan-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-strip-icon-box .material-symbols-outlined {
    font-size: 15px;
}

.payment-card-plan {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.payment-card-timeline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    flex-shrink: 0;
}

.payment-card-timeline .timeline-sep {
    color: var(--cyan-secondary);
    font-size: 0.6875rem;
    opacity: 0.75;
}

.payment-card-timeline .timeline-exp {
    color: var(--cyan-secondary);
    font-weight: 600;
}

.payment-strip-right {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

/* Expand Chevron */
.invoice-expand-chevron {
    color: var(--text-dim);
    font-size: 18px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
    flex-shrink: 0;
}

.payment-card:hover .invoice-expand-chevron {
    color: var(--cyan-primary);
}

.payment-card.is-expanded .invoice-expand-chevron {
    transform: rotate(180deg);
    color: var(--cyan-primary);
}

/* Status Badges */
.pr-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 0.65625rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.pr-badge-status.status-paid {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.pr-badge-status.status-paid.status-paid-48h,
.pr-badge-status.status-paid-48h {
    background: rgba(250, 204, 21, 0.16);
    color: #fde047;
    border: 1px solid rgba(250, 204, 21, 0.4);
}

.pr-badge-status.status-unpaid {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.pr-badge-status.status-free {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.pr-badge-cycle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0.18rem 0.45rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.65625rem;
    font-weight: 600;
    height: 24px;
    min-height: 24px;
    box-sizing: border-box;
    color: var(--cyan-secondary);
    background: rgba(76, 215, 246, 0.1);
    border: 1px solid rgba(76, 215, 246, 0.25);
    flex-shrink: 0;
}

.pr-badge-cycle.cycle-48h {
    color: #facc15;
    background: rgba(250, 204, 21, 0.12);
    border-color: rgba(250, 204, 21, 0.35);
}

.pr-badge-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0.18rem 0.45rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.65625rem;
    font-weight: 600;
    height: 24px;
    min-height: 24px;
    box-sizing: border-box;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    flex-shrink: 0;
}

.pr-badge-method.method-whish {
    color: #ffffff;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.whish-badge-logo {
    height: 13.5px;
    width: auto;
    display: block;
    vertical-align: middle;
}

.pr-badge-method.method-office {
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.3);
}

.pr-badge-method.method-collector {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.12);
    border-color: rgba(167, 139, 250, 0.3);
}

/* Collapsible Detailed Drawer */
.payment-card-drawer {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    animation: drawerFadeIn 0.25s ease-out;
}

.payment-card.is-expanded .payment-card-drawer {
    display: flex;
}

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

.payment-drawer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.625rem;
    background: rgba(15, 19, 29, 0.6);
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.payment-drawer-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-drawer-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.payment-drawer-label .material-symbols-outlined {
    font-size: 13px;
    color: var(--cyan-secondary);
}

.payment-drawer-val {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-white);
}

.payment-drawer-val.highlight {
    color: var(--cyan-primary);
}

.payment-drawer-val.days-highlight {
    color: #38bdf8;
    font-weight: 700;
}

/* Drawer Action Bar */
.payment-drawer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.btn-print-invoice {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-white);
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-print-invoice:hover {
    background: rgba(0, 242, 254, 0.25);
    border-color: var(--cyan-primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
    transform: translateY(-1px);
}

.btn-print-invoice .material-symbols-outlined {
    font-size: 15px;
    color: var(--cyan-primary);
}

/* Inline Thermal Receipt Ticket System */
.receipt-action-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.25rem 0 0.5rem;
}

.btn-receipt-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-white);
    background: rgba(124, 119, 255, 0.12);
    border: 1px solid rgba(124, 119, 255, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-receipt-action:hover {
    transform: translateY(-1px);
}

.btn-receipt-action.btn-receipt-share {
    background: rgba(0, 242, 254, 0.12);
    border-color: rgba(0, 242, 254, 0.4);
    color: #e0f2fe;
}
.btn-receipt-action.btn-receipt-share:hover {
    background: rgba(0, 242, 254, 0.22);
    border-color: var(--cyan-primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.btn-receipt-action.btn-receipt-save {
    background: linear-gradient(135deg, rgba(124, 119, 255, 0.2), rgba(0, 242, 254, 0.15));
    border-color: rgba(124, 119, 255, 0.5);
    color: #ffffff;
}
.btn-receipt-action.btn-receipt-save:hover {
    background: linear-gradient(135deg, rgba(124, 119, 255, 0.35), rgba(0, 242, 254, 0.25));
    border-color: #a78bfa;
    box-shadow: 0 0 12px rgba(124, 119, 255, 0.4);
}

.btn-receipt-action.btn-receipt-print {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
}
.btn-receipt-action.btn-receipt-print:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #ffffff;
}

.btn-receipt-action .material-symbols-outlined {
    font-size: 14px;
}

/* Authentic Thermal Paper Ticket */
.inline-receipt-paper {
    width: 100%;
    max-width: 360px;
    margin: 0.25rem auto 0.5rem;
    background: #ffffff;
    color: #111827;
    padding: 1.15rem 1.1rem;
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
    font-family: 'Courier Prime', 'JetBrains Mono', Courier, monospace;
    font-size: 12px;
    line-height: 1.35;
    position: relative;
    box-sizing: border-box;
}

.irp-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.irp-logo-img {
    max-width: 165px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 0.35rem;
    object-fit: contain;
}

.irp-company-info {
    font-family: var(--font-sans);
    font-size: 10.5px;
    color: #4b5563;
    line-height: 1.4;
    text-align: center;
}

.irp-dashed-line {
    border: none;
    border-top: 1.5px dashed #4b5563;
    margin: 0.6rem 0;
}

.irp-solid-line {
    border: none;
    border-top: 1.5px solid #111827;
    margin: 0.45rem 0;
}

.irp-double-line {
    border: none;
    border-top: 3px double #111827;
    margin: 0.5rem 0;
}

.irp-title-row {
    text-align: center;
    margin: 0.35rem 0;
}

.irp-title {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: #111827;
    text-transform: uppercase;
}

.irp-status-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 1px 7px;
    border-radius: 3px;
    margin-top: 2px;
    text-transform: uppercase;
}

.irp-badge-paid {
    color: #15803d;
    border: 1.5px solid #16a34a;
    background: rgba(22, 163, 74, 0.08);
}

.irp-badge-unpaid {
    color: #dc2626;
    border: 1.5px solid #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.irp-badge-48h {
    color: #b45309;
    border: 1.5px solid #d97706;
    background: rgba(245, 158, 11, 0.12);
    font-size: 10.5px;
    padding: 2.5px 10px;
    border-radius: 4px;
    margin-top: 4px;
    letter-spacing: 0.06em;
}

.irp-meta-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.15rem 0;
}

.irp-meta-table td {
    padding: 1.5px 0;
    vertical-align: top;
}

.irp-meta-table td.irp-meta-lbl {
    color: #4b5563;
    width: 38%;
    font-weight: 600;
}

.irp-meta-table td.irp-meta-val {
    text-align: right;
    color: #111827;
    font-weight: 700;
}

.irp-items-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.15rem 0;
}

.irp-items-table th {
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #4b5563;
    padding: 2.5px 0;
    font-family: var(--font-sans);
}

.irp-items-table td {
    padding: 3.5px 0;
    font-weight: 700;
    color: #111827;
    vertical-align: top;
}

.irp-item-title {
    font-weight: 700;
}

.irp-item-sub {
    font-size: 9.5px;
    color: #4b5563;
    font-weight: 500;
    margin-top: 1px;
}

.irp-totals-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.15rem 0;
}

.irp-totals-table td {
    padding: 2px 0;
}

.irp-totals-table td.irp-tot-lbl {
    text-align: right;
    padding-right: 0.75rem;
    font-weight: 600;
    color: #4b5563;
}

.irp-totals-table td.irp-tot-val {
    text-align: right;
    font-weight: 700;
    width: 42%;
    color: #111827;
}

.irp-totals-table tr.irp-tot-bold td {
    font-size: 13.5px;
    font-weight: 800;
    color: #111827;
}

.irp-totals-table tr.irp-discount-row td {
    color: #15803d;
}

.irp-savings-banner {
    margin: 0.45rem 0 0.2rem;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    background: rgba(22, 163, 74, 0.08);
    border: 1px dashed #16a34a;
    color: #15803d;
    text-align: center;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.irp-grace-banner {
    margin: 0.5rem 0 0.35rem;
    padding: 0.6rem 0.75rem;
    border-radius: 5px;
    background: rgba(245, 158, 11, 0.08);
    border: 1.5px dashed #d97706;
    color: #92400e;
    text-align: center;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.015em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: var(--font-sans);
}

.irp-section-hdr {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #374151;
    margin: 0.35rem 0 0.25rem;
}

.irp-pending-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.15rem 0 0.25rem;
}

.irp-pending-table td {
    padding: 3px 0;
    vertical-align: top;
}

.irp-pending-table td.irp-pend-desc {
    color: #111827;
    font-weight: 700;
}

.irp-pending-table .irp-pend-title {
    display: block;
    line-height: 1.3;
}

.irp-pending-table .irp-pend-date {
    display: block;
    font-size: 9.5px;
    color: #6b7280;
    font-weight: 500;
    margin-top: 1px;
}

.irp-pending-table td.irp-pend-price {
    text-align: right;
    font-weight: 700;
    color: #dc2626;
    white-space: nowrap;
    width: 38%;
}

.irp-val-red {
    color: #dc2626 !important;
}

.irp-totals-table tr.irp-pending-subtotal td {
    font-size: 11.5px;
    font-weight: 700;
    color: #374151;
}

.irp-totals-table tr.irp-pending-subtotal td.irp-tot-val {
    color: #dc2626;
}

.irp-totals-table tr.irp-balance-row td {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.02em;
    padding: 4px 0;
}

.irp-footer {
    text-align: center;
    margin-top: 0.65rem;
    font-family: var(--font-sans);
}

.irp-barcode-svg {
    width: 70%;
    max-width: 200px;
    height: 32px;
    margin: 0.25rem auto 0;
    display: block;
}

.irp-barcode-num {
    font-family: 'Courier Prime', monospace;
    font-size: 9.5px;
    letter-spacing: 0.14em;
    color: #6b7280;
    margin-top: 2px;
}

.irp-thanks {
    font-size: 11px;
    font-weight: 700;
    color: #111827;
    margin: 0.35rem 0 0.15rem;
}

.irp-subtext {
    font-size: 9.5px;
    color: #6b7280;
    line-height: 1.35;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .invoicing-card {
        padding: 0.875rem 0.55rem;
    }

    .payment-card {
        padding: 0.45rem 0.4rem;
    }

    .payment-card-main-row {
        gap: 0.35rem;
        padding: 0.05rem 0;
    }

    .payment-line-left {
        gap: 0.35rem;
    }

    .payment-line-right {
        gap: 0.35rem;
    }

    .payment-row-date {
        font-size: 0.6875rem;
        gap: 3px;
    }

    .payment-row-price {
        font-size: 0.8125rem;
    }

    .payment-discount-tag {
        font-size: 0.6rem;
        padding: 0.1rem 0.35rem;
        gap: 2px;
    }

    .payment-discount-tag .material-symbols-outlined {
        font-size: 11px;
    }

    .pr-badge-status {
        padding: 0.15rem 0.4rem;
        font-size: 0.625rem;
    }

    .pr-badge-cycle {
        padding: 0.15rem 0.35rem;
        font-size: 0.625rem;
        height: 22px;
        min-height: 22px;
    }

    .pr-badge-method {
        padding: 0.15rem 0.35rem;
        font-size: 0.625rem;
        height: 22px;
        min-height: 22px;
    }

    .whish-badge-logo {
        height: 12px;
    }

    .invoice-expand-chevron {
        font-size: 18px;
        margin-left: 1px;
    }

    .payment-strip-left {
        width: 100%;
        justify-content: space-between;
    }

    .payment-card-timeline {
        order: 2;
        font-size: 0.71875rem;
    }

    .payment-strip-right {
        order: 3;
        margin-left: auto;
    }
}

/* Light theme overrides for Concept B */
[data-theme="light"] .payment-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(2, 132, 199, 0.05));
    border: 1px dashed rgba(2, 132, 199, 0.45);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .payment-card:hover {
    border-color: #0284c7;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(2, 132, 199, 0.1));
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

[data-theme="light"] .payment-card.is-expanded {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(2, 132, 199, 0.12));
    border-color: #0284c7;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.18);
}

[data-theme="light"] .payment-card-plan {
    color: #0f172a;
}

[data-theme="light"] .payment-drawer-grid {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .payment-drawer-val {
    color: #0f172a;
}

[data-theme="light"] .invoice-controls-bar {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .invoice-date-range-wrap {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .invoice-date-range-select option {
    background: #ffffff;
    color: #0f172a;
}

[data-theme="light"] .btn-print-invoice {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

[data-theme="light"] .btn-print-invoice .material-symbols-outlined {
    color: #ffffff;
}

[data-theme="light"] .pr-badge-method.method-whish {
    color: #0f172a;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
}

[data-theme="light"] .pr-badge-status.status-paid.status-paid-48h,
[data-theme="light"] .pr-badge-status.status-paid-48h {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* ==========================================================================
   Subscriber-Facing Connection Health Diagnostics Card
   ========================================================================== */
.diagnostics-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.diagnostics-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.diagnostics-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface-low);
    font-size: 0.8125rem;
}

.diagnostics-label {
    color: var(--text-muted);
}

.diagnostics-val {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-white);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.diagnostics-val.optimal {
    color: var(--cyan-primary);
}

/* ==========================================================================
   Continuous Single-Page Portal Sections
   ========================================================================== */
.portal-section,
.spa-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

/* ==========================================================================
   Application States: Loading Skeleton, Off-Network, System Error
   ========================================================================== */
.state-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.state-container.hidden {
    display: none !important;
}

/* Loading Skeleton (Option 3: Modern Telecom HUD) */
.hud-handshake-bar {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.08);
}

.hud-handshake-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hud-handshake-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-primary);
}

.hud-handshake-icon .material-symbols-outlined {
    font-size: 20px;
}

.hud-handshake-title {
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--cyan-primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: block;
}

.hud-handshake-desc {
    font-size: 0.78rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-top: 2px;
}

.hud-live-chip {
    font-size: 0.68rem;
    font-family: 'JetBrains Mono', monospace;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--emerald-bg);
    border: 1px solid var(--emerald-border);
    color: #4ade80;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hud-live-chip::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
    animation: hudPulse 1.4s infinite;
}

@keyframes hudPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.8); }
}

.hud-skeleton-card {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.skeleton-shimmer {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(0, 242, 254, 0.09) 50%, rgba(255, 255, 255, 0.02) 75%);
    background-size: 200% 100%;
    animation: pulseShimmer 1.8s infinite;
    border-radius: 8px;
}

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

/* Loading Skeleton (Legacy compatibility) */
.skeleton-pulse {
    background: var(--bg-surface-highest);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.skeleton-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    animation: pulse-subtle 1.8s infinite;
}

/* Off-Network View */
.off-network-card {
    padding: 2rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.radar-sweep-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

@keyframes spin-beam {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radar-beam {
    transform-origin: 80px 80px;
    animation: spin-beam 4s linear infinite;
}

.off-network-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.off-network-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 420px;
    line-height: 1.6;
}

.detected-ip-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 380px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--bg-surface-lowest);
    border: 1px solid var(--border-glass);
}

.detected-ip-val {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cyan-primary);
}

/* Off-Network Showcase & Subscription CTA Styles */
.subscribe-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
    max-width: 520px;
    text-align: left;
    margin: 0.25rem 0;
}

@media (max-width: 540px) {
    .subscribe-features-grid {
        grid-template-columns: 1fr;
    }
}

.sub-feature-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    transition: transform 0.2s, border-color 0.2s;
}

.sub-feature-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.3);
}

.sub-feature-chip span.material-symbols-outlined {
    font-size: 22px;
    flex-shrink: 0;
}

.sub-feature-chip div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sub-feature-chip strong {
    font-size: 0.8125rem;
    color: #ffffff;
    font-weight: 700;
}

.sub-feature-chip span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.cta-actions-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    max-width: 480px;
    margin: 0.25rem 0;
}

.btn-subscribe-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-subscribe-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-subscribe-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    padding: 0.8rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-subscribe-call:hover {
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(59, 130, 246, 0.5);
    color: #93c5fd;
    transform: translateY(-1px);
}

.btn-subscribe-web {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-subscribe-web:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateY(-1px);
}

.pin-login-preview-box {
    width: 100%;
    max-width: 480px;
    padding: 1.15rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

/* System Error View */
.error-card-lumina {
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: var(--error-container);
    border: 1px solid var(--error-border);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-primary-lumina {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--cyan-primary) 0%, #0284c7 100%);
    color: #070b14;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
    transition: all 0.2s ease;
}

.btn-primary-lumina:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (min-width: 768px) {
    .lumina-main {
        padding: 2rem 10px 6rem;
        gap: 1.5rem;
    }

    .telemetry-metrics-grid {
        gap: 1.25rem;
    }

    .metric-number {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .lumina-main {
        padding: 2.5rem 10px 6rem;
    }
}

/* Connection Universe Hero Component visibility */
.connection-universe-core {
    display: flex;
}

/* ==========================================================================
   Customer Support & Contact Hub (Borderless Floating Section)
   ========================================================================== */
.support-hub-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0.25rem 0.25rem;
    margin-top: 0.5rem;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.support-hub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.support-hub-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.support-hub-icon {
    color: var(--cyan-primary, #00f2fe);
    font-size: 19px;
}

.support-hub-title {
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-white, #ffffff);
    margin: 0;
}

/* 2-Block Working Hours & Live Status Card */
.support-schedule-bar {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.75rem 0.95rem;
    border-radius: var(--radius-md, 0.5rem);
    background: rgba(15, 23, 42, 0.45);
    border: 1px dashed rgba(124, 119, 255, 0.28);
}

.support-service-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.support-service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.support-service-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-white, #ffffff);
}

.support-service-icon {
    font-size: 16px;
    color: var(--cyan-primary, #00f2fe);
    flex-shrink: 0;
}

.support-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.16rem 0.55rem;
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Office Physical Status Badge */
.support-status-badge.badge-office.is-open {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.support-status-badge.badge-office.is-closed {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

/* Support Live Telephony/WhatsApp Badge */
.support-status-badge.badge-support.is-online {
    background: rgba(0, 242, 254, 0.14);
    border: 1px solid rgba(0, 242, 254, 0.45);
    color: #00f2fe;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.support-status-badge.badge-support.is-offline {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #94a3b8;
}

.support-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.support-status-badge.badge-office.is-open .support-status-dot {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    animation: supportPulse 2s infinite ease-in-out;
}

.support-status-badge.badge-office.is-closed .support-status-dot {
    background: #f59e0b;
    box-shadow: 0 0 5px rgba(245, 158, 11, 0.6);
}

.support-status-badge.badge-support.is-online .support-status-dot {
    background: #00f2fe;
    box-shadow: 0 0 6px #00f2fe;
    animation: supportPulse 2s infinite ease-in-out;
}

.support-status-badge.badge-support.is-offline .support-status-dot {
    background: #64748b;
}

@keyframes supportPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

.support-service-timing {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.4;
    padding-left: 1.45rem;
}

.support-timing-sep {
    margin: 0 0.35rem;
    opacity: 0.4;
}

.support-timing-off {
    color: #64748b;
}

.support-timing-dual {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.support-timing-dual .timing-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.support-timing-dual .timing-days {
    color: #cbd5e1;
    font-weight: 600;
    min-width: 85px;
}

.support-timing-dual .timing-hours {
    color: #94a3b8;
}

.support-schedule-divider {
    width: 100%;
    height: 1px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    margin: 0.15rem 0;
}

/* 3-Column Action Buttons Grid */
.support-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.support-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.7rem 0.5rem;
    border-radius: var(--radius-md, 0.5rem);
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.support-action-btn:hover {
    transform: translateY(-2px);
}

.support-action-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.1rem;
}

.support-action-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary, #cbd5e1);
    white-space: nowrap;
}

.support-action-number {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--text-white, #ffffff);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* WhatsApp Button Variant */
.support-btn-whatsapp {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(5, 150, 105, 0.06));
    border: 1px dashed rgba(16, 185, 129, 0.5);
}
.support-btn-whatsapp:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(5, 150, 105, 0.12));
    border-color: #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.22);
}
.support-btn-whatsapp .support-action-icon-wrap {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
}

/* Mobile Call Button Variant */
.support-btn-mobile {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.12), rgba(56, 189, 248, 0.05));
    border: 1px dashed rgba(0, 242, 254, 0.45);
}
.support-btn-mobile:hover {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.22), rgba(56, 189, 248, 0.12));
    border-color: #00f2fe;
    box-shadow: 0 4px 16px rgba(0, 242, 254, 0.2);
}
.support-btn-mobile .support-action-icon-wrap {
    background: rgba(0, 242, 254, 0.16);
    color: #00f2fe;
}

/* Landline Call Button Variant */
.support-btn-landline {
    background: linear-gradient(135deg, rgba(124, 119, 255, 0.14), rgba(168, 85, 247, 0.06));
    border: 1px dashed rgba(124, 119, 255, 0.5);
}
.support-btn-landline:hover {
    background: linear-gradient(135deg, rgba(124, 119, 255, 0.24), rgba(168, 85, 247, 0.14));
    border-color: #a78bfa;
    box-shadow: 0 4px 16px rgba(124, 119, 255, 0.22);
}
.support-btn-landline .support-action-icon-wrap {
    background: rgba(124, 119, 255, 0.18);
    color: #a78bfa;
}

/* Website Link Bar */
.support-website-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-md, 0.5rem);
    background: linear-gradient(135deg, rgba(124, 119, 255, 0.07), rgba(0, 242, 254, 0.03));
    border: 1px dashed rgba(124, 119, 255, 0.4);
    text-decoration: none;
    transition: all 0.2s ease;
}

.support-website-link:hover {
    background: linear-gradient(135deg, rgba(124, 119, 255, 0.14), rgba(0, 242, 254, 0.08));
    border-color: rgba(0, 242, 254, 0.7);
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.12);
    transform: translateY(-1px);
}

.support-website-left {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary, #cbd5e1);
}

.support-website-left .material-symbols-outlined {
    font-size: 16px;
    color: var(--cyan-primary, #00f2fe);
}

.support-website-right {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--cyan-primary, #00f2fe);
}

.support-website-right .material-symbols-outlined {
    font-size: 14px;
    opacity: 0.85;
}

@media (max-width: 420px) {
    .support-hub-header {
        gap: 0.35rem;
    }
    .support-hub-title {
        font-size: 0.70rem;
    }
    .support-header-badges {
        gap: 0.25rem;
    }
    .support-status-badge {
        font-size: 0.58rem;
        padding: 0.12rem 0.38rem;
        gap: 0.25rem;
    }
    .support-status-dot {
        width: 5px;
        height: 5px;
    }
    .support-actions-grid {
        gap: 0.45rem;
    }
    .support-action-btn {
        padding: 0.6rem 0.35rem;
    }
    .support-action-label {
        font-size: 0.6rem;
    }
    .support-action-number {
        font-size: 0.75rem;
    }
    .support-schedule-bar {
        font-size: 0.71875rem;
        padding: 0.55rem 0.7rem;
    }
    .support-schedule-hours {
        font-size: 0.71875rem;
    }
}

/* ==========================================================================
   Floating Back-to-Top HUD Button (#btn-scroll-top)
   ========================================================================== */
.floating-scroll-top-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(11, 16, 33, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px dashed rgba(124, 119, 255, 0.55);
    color: var(--cyan-primary, #00f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 990;
    padding: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), 0 0 14px rgba(124, 119, 255, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.28s,
                border-color 0.2s ease,
                box-shadow 0.2s ease,
                background 0.2s ease;
}

.floating-scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.floating-scroll-top-btn:hover {
    background: rgba(17, 25, 48, 0.95);
    border-color: rgba(0, 242, 254, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 18px rgba(0, 242, 254, 0.35);
    transform: translateY(-3px) scale(1.04);
}

.floating-scroll-top-btn:active {
    transform: translateY(0) scale(0.96);
}

.floating-scroll-top-ring {
    position: absolute;
    inset: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    transform: rotate(-90deg);
    pointer-events: none;
}

.floating-scroll-top-icon {
    font-size: 21px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.floating-scroll-top-btn:hover .floating-scroll-top-icon {
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .floating-scroll-top-btn {
        bottom: 1.15rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
    .floating-scroll-top-icon {
        font-size: 19px;
    }
}




