/**
 * Rongdhonu.net - Modern ISP Management System
 * Premium Design System & UI Components
 * © Tarek Rahaman
 */

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

:root {
    /* Color Palette - Deep Obsidian Tech */
    --bg-app: #070B14;
    --bg-surface: #0F172A;
    --bg-surface-elevated: #162038;
    --bg-card: rgba(18, 26, 47, 0.75);
    --bg-card-hover: rgba(24, 34, 60, 0.9);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(99, 102, 241, 0.35);
    --border-glass: rgba(255, 255, 255, 0.12);

    /* Brand Primary & Accents */
    --primary: #6366F1;
    --primary-light: #818CF8;
    --primary-dark: #4F46E5;
    --primary-glow: rgba(99, 102, 241, 0.25);

    --cyan-fiber: #06B6D4;
    --cyan-glow: rgba(6, 182, 212, 0.25);

    --success: #10B981;
    --success-bg: rgba(16, 185, 129, 0.12);
    --success-border: rgba(16, 185, 129, 0.3);

    --warning: #F59E0B;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --warning-border: rgba(245, 158, 11, 0.3);

    --danger: #EF4444;
    --danger-bg: rgba(239, 68, 68, 0.12);
    --danger-border: rgba(239, 68, 68, 0.3);

    --info: #3B82F6;
    --info-bg: rgba(59, 130, 246, 0.12);

    /* Text Colors */
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    --text-inverse: #0F172A;

    /* Metrics & Spacing */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 25px -5px var(--primary-glow);
    --shadow-dropdown: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);

    --sidebar-width: 260px;
    --sidebar-collapsed-width: 76px;
    --header-height: 70px;
    --transition-base: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Core Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-app);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary);
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Layout Architecture */
.app-container {
    display: flex;
    min-height: 100vh;
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: var(--sidebar-width);
    min-width: 0;
    transition: margin-left 0.25s ease;
}

@media (max-width: 1024px) {
    .main-wrapper {
        margin-left: 0;
    }
}

/* Header / Top Navbar */
.app-header {
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.menu-toggle-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.4rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

@media (max-width: 1024px) {
    .menu-toggle-btn {
        display: inline-flex;
    }
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.breadcrumb-nav a {
    color: var(--text-muted);
}
.breadcrumb-nav a:hover {
    color: var(--text-main);
}
.breadcrumb-separator {
    color: var(--text-dim);
}

/* Sidebar Styles */
.app-sidebar {
    width: var(--sidebar-width);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-subtle);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease;
}

@media (max-width: 1024px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    .app-sidebar.show {
        transform: translateX(0);
    }
}

/* Sidebar Off-canvas Backdrop for Mobile/Tablet */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 45;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.sidebar-close-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background 0.15s ease;
}

.sidebar-close-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1024px) {
    .sidebar-close-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    text-decoration: none;
}

.brand-icon-box {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--cyan-fiber));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

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

.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FFFFFF 30%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    padding: 0.75rem 0.85rem 0.35rem;
    margin-top: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition-base);
    position: relative;
}

.nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke-width: 1.8;
    transition: color 0.15s ease;
}

.nav-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(2px);
}

.nav-link.active {
    color: #FFFFFF;
    background: rgba(99, 102, 241, 0.12);
    border-left: 3px solid var(--primary);
    font-weight: 600;
}

.nav-link.active svg {
    color: var(--primary-light);
}

.nav-badge {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-subtle);
    background: rgba(10, 15, 29, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-developer {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-align: center;
}

.sidebar-developer span {
    color: var(--primary-light);
    font-weight: 600;
}

/* Main Content Area */
.app-content {
    flex: 1;
    padding: 2rem;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .app-content {
        padding: 1.25rem;
    }
}

.page-header, .rd-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.rd-header-left, .page-header-left {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.rd-header-icon-box, .header-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(79, 70, 229, 0.35));
    border: 1px solid rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: var(--primary-light);
}

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

.page-title, .rd-page-title {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    line-height: 1.2;
    min-width: 0;
    overflow-wrap: break-word;
}

.page-subtitle, .page-desc, .rd-page-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .page-header, .rd-page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    .rd-header-left, .page-header-left {
        width: 100%;
        min-width: 0;
    }
    .rd-header-actions, .header-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem;
    }
    .page-title, .rd-page-title {
        font-size: 1.35rem;
    }
}

/* Footer */
.app-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-dim);
    background: rgba(15, 23, 42, 0.4);
    flex-wrap: wrap;
    gap: 1rem;
}

/* Premium Card Components */
.rd-card, .card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.rd-card::before, .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.rd-card-header, .card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: transparent;
}

.rd-card-title, .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0;
}

.rd-card-body, .card-body {
    padding: 1.5rem;
}

.rd-card-footer, .card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    background: rgba(10, 15, 29, 0.3);
}

/* Dashboard Section Header */
.dashboard-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dashboard-section-header:first-of-type {
    margin-top: 0.5rem;
}

.dashboard-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}

.dashboard-section-subtitle {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* Stat Card */
.stat-grid, .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1280px) {
    .stat-grid, .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .stat-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
}

.rd-stat-card, .stat-card {
    background: linear-gradient(180deg, rgba(22, 32, 54, 0.75) 0%, rgba(13, 20, 36, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.35rem 1.45rem;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 145px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px -4px rgba(0, 0, 0, 0.5);
}

.rd-stat-card::before, .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.rd-stat-card:hover, .stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 16px 32px -6px rgba(0, 0, 0, 0.6), 0 0 25px -5px var(--primary-glow);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.stat-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-icon, .stat-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stat-icon.primary, .stat-icon-wrapper.text-primary { background: rgba(99, 102, 241, 0.12); color: var(--primary-light); border: 1px solid rgba(99, 102, 241, 0.2); }
.stat-icon.cyan, .stat-icon-wrapper.text-cyan { background: rgba(6, 182, 212, 0.12); color: var(--cyan-fiber); border: 1px solid rgba(6, 182, 212, 0.2); }
.stat-icon.success, .stat-icon-wrapper.text-success { background: rgba(16, 185, 129, 0.12); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.stat-icon.warning, .stat-icon-wrapper.text-warning { background: rgba(245, 158, 11, 0.12); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.2); }
.stat-icon.danger, .stat-icon-wrapper.text-danger { background: rgba(239, 68, 68, 0.12); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }
.stat-icon-wrapper.text-info { background: rgba(59, 130, 246, 0.12); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }

.stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    line-height: 1.15;
    margin-bottom: 0.4rem;
}

.stat-subtext, .stat-footer {
    font-size: 0.78rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

/* Status Badges */
.rd-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.badge-success, .badge-approved { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.badge-warning, .badge-pending { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-border); }
.badge-danger, .badge-rejected { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }
.badge-info { background: var(--info-bg); color: #60A5FA; border: 1px solid rgba(96, 165, 250, 0.3); }
.badge-neutral { background: rgba(148, 163, 184, 0.1); color: var(--text-muted); border: 1px solid rgba(148, 163, 184, 0.2); }

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: pulseGlow 2s infinite;
}

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

/* Buttons */
.rd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.15rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1.25;
}

.rd-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.rd-btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.rd-btn-outline, .rd-btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.rd-btn-outline:hover, .rd-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.rd-btn-danger {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger);
}

.rd-btn-danger:hover {
    background: var(--danger);
    color: #FFFFFF;
}

.rd-btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

/* Forms & Inputs */
/* Forms & Inputs */
.rd-form-group, .form-group {
    margin-bottom: 1.25rem;
}

.rd-label, .form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.rd-input, .rd-select, .rd-textarea,
.form-control, .form-select,
input[type="text"]:not([class]),
input[type="email"]:not([class]),
input[type="password"]:not([class]),
input[type="number"]:not([class]),
input[type="date"]:not([class]),
input[type="month"]:not([class]),
input[type="search"]:not([class]),
select:not([class]),
textarea:not([class]) {
    width: 100%;
    padding: 0.7rem 0.95rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition-base);
    box-sizing: border-box;
}

.form-control-sm, .form-select-sm, .rd-input-sm {
    padding: 0.45rem 0.75rem !important;
    font-size: 0.82rem !important;
    border-radius: var(--radius-sm) !important;
}

.rd-input:focus, .rd-select:focus, .rd-textarea:focus,
.form-control:focus, .form-select:focus,
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-main);
}

.rd-input::placeholder, .rd-textarea::placeholder,
.form-control::placeholder, textarea::placeholder, input::placeholder {
    color: var(--text-dim);
}

input[type="date"], input[type="month"] {
    color-scheme: dark;
}

select.form-select, select.rd-select, select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 14px 10px;
    padding-right: 2.25rem;
    appearance: none;
    -webkit-appearance: none;
}

select option {
    background: #0f172a;
    color: #f8fafc;
}

/* Checkboxes & Radios */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    min-height: 1.5rem;
}

.form-check-input, input[type="checkbox"], input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.6);
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    transition: var(--transition-base);
    flex-shrink: 0;
}

input[type="radio"], .form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input:checked, input[type="checkbox"]:checked, input[type="radio"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:checked::after, input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="radio"]:checked::after, .form-check-input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.form-check-label {
    font-size: 0.88rem;
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
}

/* Validation states */
.is-invalid, .form-control.is-invalid, .form-select.is-invalid, .rd-input.is-invalid {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 1px var(--danger) !important;
}

.invalid-feedback {
    display: block;
    color: #f87171;
    font-size: 0.78rem;
    margin-top: 0.35rem;
    font-weight: 500;
}

/* Data Tables */
.rd-table-wrapper, .rd-table-responsive, .table-responsive {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-md);
    -webkit-overflow-scrolling: touch;
    min-width: 0;
}

.rd-table, table.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
    margin-bottom: 0;
}

.rd-table th, table.table th {
    background: rgba(15, 23, 42, 0.6);
    padding: 0.9rem 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.rd-table td, table.table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-main);
    vertical-align: middle;
}

.rd-table tbody tr, table.table tbody tr {
    transition: var(--transition-base);
}

.rd-table tbody tr:hover, table.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Buttons compatibility */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #FFFFFF !important;
    border: 1px solid transparent;
}
.btn-secondary, .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-main) !important;
}
.btn-danger {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger) !important;
}
.btn-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success) !important;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.15rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    line-height: 1.25;
}
.btn-sm {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.8rem !important;
    border-radius: var(--radius-sm) !important;
}

/* Common Layout Utilities */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 2rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.ms-auto { margin-left: auto !important; }
.p-0 { padding: 0 !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 2rem !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-start { text-align: left !important; }
.w-100 { width: 100% !important; }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.font-medium { font-weight: 500 !important; }
.text-xs { font-size: 0.75rem !important; }
.text-sm { font-size: 0.85rem !important; }
.text-base { font-size: 0.95rem !important; }
.text-lg { font-size: 1.15rem !important; }
.text-xl { font-size: 1.35rem !important; }
.text-muted { color: var(--text-muted) !important; }
.text-dim { color: var(--text-dim) !important; }
.text-main { color: var(--text-main) !important; }
.text-primary { color: var(--primary-light) !important; }
.text-danger { color: #f87171 !important; }
.text-cyan { color: var(--cyan-fiber) !important; }

/* Grid and Column Layout Helpers */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}
.row > * {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}
.g-2 { margin-right: -0.5rem; margin-left: -0.5rem; }
.g-2 > * { padding-right: 0.5rem; padding-left: 0.5rem; }
.g-3 { margin-right: -0.75rem; margin-left: -0.75rem; }
.g-3 > * { padding-right: 0.75rem; padding-left: 0.75rem; }
.g-4 { margin-right: -1rem; margin-left: -1rem; }
.g-4 > * { padding-right: 1rem; padding-left: 1rem; }

@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 auto; width: 25%; }
    .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
    .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
    .col-md-9 { flex: 0 0 auto; width: 75%; }
    .col-md-12 { flex: 0 0 auto; width: 100%; }
}
.max-w-3xl { max-width: 860px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Tabs */
.rd-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.rd-tab-item {
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-base);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.rd-tab-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.rd-tab-item.active {
    color: #FFFFFF;
    background: rgba(99, 102, 241, 0.1);
    border-bottom-color: var(--primary);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 420px;
    width: calc(100% - 3rem);
}

.rd-toast {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--bg-surface-elevated);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-dropdown);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--text-main);
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.rd-toast.toast-success { border-left: 4px solid var(--success); }
.rd-toast.toast-error { border-left: 4px solid var(--danger); }
.rd-toast.toast-info { border-left: 4px solid var(--primary); }

/* Empty States */
.rd-empty-state {
    padding: 3.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.empty-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 450px;
    margin-bottom: 1.5rem;
}

/* User Profile Dropdown Pill */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-base);
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--cyan-fiber));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.user-name {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
}

.user-role {
    font-size: 0.68rem;
    color: var(--primary-light);
    font-weight: 500;
}

/* Dashboard Operational & Network Telemetry Widget */
.dashboard-network-widget {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.dashboard-network-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.4), transparent);
}

.dashboard-telemetry-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(10, 15, 29, 0.4);
    border-top: 1px solid var(--border-subtle);
}

@media (max-width: 900px) {
    .dashboard-telemetry-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .dashboard-telemetry-strip {
        grid-template-columns: 1fr;
    }
}

.telemetry-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.telemetry-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.telemetry-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.telemetry-info {
    min-width: 0;
}

.telemetry-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.telemetry-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Stat Card Row with Sparkline */
.stat-card-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.35rem 0 0.4rem;
}

/* Real Analytics Grid (Donut Distribution & Saturation Lanes) */
.dashboard-analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .dashboard-analytics-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.donut-chart-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0.75rem 0;
}

.donut-relative {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.donut-relative svg {
    transform: rotate(-90deg);
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
    min-width: 160px;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.donut-legend-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.donut-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.saturation-lane {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.saturation-lane:last-child {
    border-bottom: none;
}

.saturation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.84rem;
}

.saturation-track {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.saturation-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dashboard Lower Information Cards Grid (Balanced 2-Col on Desktop, 1-Col on Mobile) */
.dashboard-lower-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .dashboard-lower-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.dashboard-lower-grid .rd-card {
    display: flex;
    flex-direction: column;
    height: 440px;
    min-height: 440px;
    min-width: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(22, 31, 51, 0.96) 0%, rgba(15, 23, 38, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 24px rgba(99, 102, 241, 0.02), 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
    overflow: hidden;
}

.dashboard-lower-grid .rd-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 30px rgba(99, 102, 241, 0.04), 0 16px 36px -6px rgba(0, 0, 0, 0.65), 0 0 16px rgba(99, 102, 241, 0.12);
}

.dashboard-lower-grid .rd-card-header {
    padding: 1rem 1.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.015);
}

.dashboard-lower-grid .rd-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    letter-spacing: -0.01em;
}

.dashboard-lower-grid .rd-card-title span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-title-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-title-icon.primary {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary-light);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.card-title-icon.cyan {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--cyan-fiber);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.card-title-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.card-title-icon.emerald {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.dashboard-card-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.65rem 1.15rem;
}

.dashboard-card-scroll::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.dashboard-card-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-card-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.dashboard-card-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* 1. Customer Activity Rows */
.customer-activity-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.75rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    transition: background 0.2s ease, transform 0.2s ease;
}

.customer-activity-row:last-child {
    border-bottom: none;
}

.customer-activity-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.customer-avatar-box {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(6, 182, 212, 0.25) 100%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.customer-details {
    flex: 1;
    min-width: 0;
}

.customer-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.customer-name-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.customer-name-link:hover {
    color: var(--primary-light);
}

.customer-view-btn {
    padding: 0.18rem 0.5rem;
    font-size: 0.72rem;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
}

.customer-meta-line {
    font-size: 0.74rem;
    color: var(--text-dim);
    margin-top: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.customer-code {
    font-family: var(--font-mono);
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.74rem;
}

.customer-pkg-pill {
    color: var(--cyan-fiber);
    font-size: 0.72rem;
    font-weight: 600;
}

.customer-area-text {
    color: var(--text-dim);
    font-size: 0.72rem;
}

.meta-separator {
    color: rgba(255, 255, 255, 0.2);
}

.customer-tags-line {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
    flex-wrap: wrap;
}

.tag-pill {
    font-size: 0.68rem;
    padding: 0.12rem 0.45rem;
}

/* 2. Coverage Zones Rows */
.zone-distribution-row {
    padding: 0.75rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.zone-distribution-row:last-child {
    border-bottom: none;
}

.zone-distribution-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

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

.zone-identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.zone-icon-box {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-fiber);
    flex-shrink: 0;
}

.zone-names {
    min-width: 0;
}

.zone-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zone-meta {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.zone-code {
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.zone-stat-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.count-pill {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.18rem 0.5rem;
    font-weight: 700;
}

.zone-pct {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
}

.zone-progress-track {
    width: 100%;
    height: 4px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 0.55rem;
    overflow: hidden;
}

.zone-progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3. Bandwidth Plans Rows */
.plan-analytics-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.plan-analytics-row:last-child {
    border-bottom: none;
}

.plan-analytics-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.plan-speed-badge {
    width: 40px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-mono);
}

.plan-speed-val {
    font-size: 0.9rem;
}

.plan-speed-unit {
    font-size: 0.65rem;
    margin-left: 1px;
}

.plan-info {
    flex: 1;
    min-width: 0;
}

.plan-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.plan-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plan-specs {
    font-size: 0.74rem;
    margin-top: 0.18rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.plan-speed-text {
    color: var(--cyan-fiber);
    font-weight: 600;
}

.plan-price-text {
    color: var(--primary-light);
    font-weight: 700;
}

.plan-users-pill {
    flex-shrink: 0;
}

.plan-subscribers-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.18rem 0.5rem;
    font-weight: 700;
}

.plan-progress-track {
    width: 100%;
    height: 3px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 0.45rem;
    overflow: hidden;
}

.plan-progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 4. Live Operational Audit Trail Rows */
.dashboard-timeline-feed {
    position: relative;
    padding: 0.3rem 0.15rem;
}

.timeline-feed-item {
    position: relative;
    display: flex;
    gap: 0.85rem;
    padding-bottom: 0.85rem;
    transition: background 0.2s ease;
}

.timeline-feed-item:last-child {
    padding-bottom: 0.15rem;
}

.timeline-indicator {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 14px;
    flex-shrink: 0;
    padding-top: 0.35rem;
}

.timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: var(--cyan-fiber);
    box-shadow: 0 0 8px var(--cyan-fiber);
    z-index: 2;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-feed-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 12px var(--cyan-fiber);
}

.timeline-feed-item.is-latest .timeline-dot.latest-dot {
    background: #10B981;
    box-shadow: 0 0 10px #10B981;
    transform: scale(1.2);
}

.timeline-connector {
    position: absolute;
    top: 14px;
    bottom: -6px;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.timeline-feed-item:last-child .timeline-connector {
    display: none;
}

.timeline-feed-body {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 0.55rem 0.75rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.timeline-feed-body.latest-body {
    background: rgba(6, 182, 212, 0.035);
    border-color: rgba(6, 182, 212, 0.2);
}

.timeline-feed-item:hover .timeline-feed-body {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

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

.timeline-action-icon {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-fiber);
    flex-shrink: 0;
}

.timeline-actor {
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-ip {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    flex-shrink: 0;
}

.timeline-feed-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.timeline-event-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 0.12rem 0.45rem;
}

.timeline-timestamp {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Backward compatibility classes */
.dashboard-record-item {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-base);
}

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

.dashboard-record-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.dashboard-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-base);
}

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

.dashboard-list-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   Admin Customer Registration - Premium SaaS Design System
   ========================================================================== */

.subscriber-registration-header {
    position: relative;
    background: linear-gradient(135deg, rgba(22, 32, 59, 0.7) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    overflow: hidden;
}

.subscriber-registration-header::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 15%;
    width: 320px;
    height: 120px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

.subscriber-registration-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.92fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .subscriber-registration-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

.reg-card {
    background: linear-gradient(180deg, rgba(20, 30, 54, 0.75) 0%, rgba(13, 20, 38, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.reg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.reg-card-header {
    padding: 1.35rem 1.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.4);
    gap: 1rem;
}

.reg-card-title-group {
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.reg-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.reg-icon-blue {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: #ffffff;
}

.reg-icon-cyan {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: #ffffff;
}

.reg-icon-amber {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: #ffffff;
}

.reg-icon-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #ffffff;
}

.reg-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
}

.reg-card-subtitle {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 0.2rem;
}

.reg-card-body {
    padding: 1.85rem;
}

/* 2-column internal field grid with comfortable breathing room */
.reg-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.35rem;
}

@media (max-width: 680px) {
    .reg-fields-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .reg-col-span-2 {
        grid-column: span 1 !important;
    }
}

.reg-col-span-2 {
    grid-column: span 2;
}

/* Form Groups & Clean Inputs */
.reg-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reg-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.reg-req {
    color: #f87171;
    font-weight: 700;
    margin-left: 0.25rem;
}

.reg-hint {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-weight: 400;
}

.reg-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.reg-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.reg-password-toggle-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition-base);
}

.reg-password-toggle-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.reg-password-toggle-btn:focus-visible {
    outline: none;
    color: var(--primary-light);
    box-shadow: 0 0 0 2px var(--primary);
}

.reg-input {
    width: 100%;
    height: 46px;
    padding: 0.7rem 1rem;
    background: rgba(12, 19, 36, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    color-scheme: dark;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.reg-input.font-mono {
    font-family: var(--font-mono);
}

.reg-input:focus, select.reg-input:focus {
    outline: none;
    border-color: #818cf8;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.reg-input.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.reg-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(12, 19, 36, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    resize: vertical;
    min-height: 84px;
    line-height: 1.5;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.reg-textarea:focus {
    outline: none;
    border-color: #818cf8;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.reg-textarea.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.reg-error-msg {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #f87171;
    margin-top: 0.3rem;
    font-weight: 500;
}

/* Portal Account Toggle Card */
.reg-portal-card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.reg-portal-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    background: rgba(18, 27, 49, 0.8);
}

/* Connection Overview / Registration Summary Card */
.reg-summary-card {
    background: linear-gradient(135deg, rgba(20, 30, 56, 0.85) 0%, rgba(14, 22, 40, 0.95) 100%);
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.65rem;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.reg-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.reg-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.reg-summary-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.reg-summary-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
    margin-bottom: 1.25rem;
}

.reg-summary-kpi-item {
    background: rgba(10, 16, 31, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.reg-summary-kpi-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.reg-summary-kpi-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.reg-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.84rem;
}

.reg-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.reg-summary-row:last-child {
    border-bottom: none;
}

.reg-summary-row-label {
    color: var(--text-muted);
}

.reg-summary-row-val {
    font-weight: 600;
    color: var(--text-main);
}

/* Submit CTA Button */
.reg-submit-btn {
    width: 100%;
    height: 48px;
    padding: 0 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    cursor: pointer;
    box-shadow: 0 4px 18px -2px rgba(99, 102, 241, 0.45);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.reg-submit-btn:hover {
    background: linear-gradient(135deg, #7175f3 0%, #5850ec 100%);
    box-shadow: 0 6px 22px -2px rgba(99, 102, 241, 0.55);
    transform: translateY(-1px);
}

.reg-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px -2px rgba(99, 102, 241, 0.35);
}

/* ==========================================================================
   Admin Packages Management - Premium SaaS Design System
   ========================================================================== */

.pkg-header-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(22, 32, 59, 0.7) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    overflow: hidden;
}

.pkg-header-banner::before {
    content: '';
    position: absolute;
    top: -40px;
    right: 25%;
    width: 320px;
    height: 120px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.pkg-create-btn {
    padding: 0.7rem 1.35rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 4px 18px -2px rgba(99, 102, 241, 0.45);
    transition: all 0.2s ease;
    text-decoration: none;
}

.pkg-create-btn:hover {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    box-shadow: 0 6px 24px -2px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
    color: #ffffff;
}

.pkg-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 960px) {
    .pkg-stats-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .pkg-stats-strip {
        grid-template-columns: 1fr;
    }
}

.pkg-stat-card {
    background: linear-gradient(180deg, rgba(20, 29, 52, 0.75) 0%, rgba(13, 20, 38, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.pkg-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.pkg-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pkg-stat-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.pkg-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-top: 0.1rem;
}

.pkg-filter-bar {
    background: linear-gradient(180deg, rgba(20, 29, 52, 0.8) 0%, rgba(13, 20, 38, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.pkg-filter-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    flex-wrap: wrap;
}

.pkg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.pkg-card {
    background: linear-gradient(180deg, rgba(20, 29, 52, 0.8) 0%, rgba(13, 20, 38, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 35px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pkg-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(99, 102, 241, 0.2);
}

.pkg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.pkg-card.is-popular {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 14px 35px -8px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(99, 102, 241, 0.3);
}

.pkg-card.is-popular::before {
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.8), transparent);
    height: 2px;
}

.pkg-card.is-inactive {
    opacity: 0.76;
    border-style: dashed;
}

.pkg-card.is-inactive:hover {
    opacity: 0.95;
}

.pkg-card-top {
    padding: 1.15rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    background: rgba(15, 23, 42, 0.35);
}

.pkg-card-badge-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.pkg-card-body {
    padding: 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    flex: 1;
}

.pkg-speed-hero {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pkg-speed-number {
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--cyan-fiber);
    font-family: var(--font-sans);
}

.pkg-speed-unit {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.pkg-price-unit {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    font-family: var(--font-mono);
}

.pkg-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    font-size: 0.78rem;
    background: rgba(11, 17, 33, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.9rem;
}

.pkg-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.pkg-meta-label {
    color: var(--text-dim);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.pkg-meta-val {
    color: var(--text-main);
    font-weight: 600;
}

.pkg-card-footer {
    padding: 0.9rem 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 15, 29, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

/* ==========================================================================
   Admin Payment Verification — Premium SaaS Design System
   ========================================================================== */

/* Payment method channel badge colors */
.pay-method-bkash   { background: rgba(228, 0, 124, 0.15); color: #f472b6; border: 1px solid rgba(228, 0, 124, 0.35); }
.pay-method-nagad   { background: rgba(246, 131, 27, 0.15); color: #fb923c; border: 1px solid rgba(246, 131, 27, 0.35); }
.pay-method-rocket  { background: rgba(138, 43, 226, 0.15); color: #c084fc; border: 1px solid rgba(138, 43, 226, 0.35); }
.pay-method-bank    { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.35); }
.pay-method-cash    { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

/* Payment status badges — extends rd-badge */
.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 10px -2px rgba(245, 158, 11, 0.25);
}
.badge-approved {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 10px -2px rgba(16, 185, 129, 0.2);
}
.badge-rejected {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 10px -2px rgba(239, 68, 68, 0.15);
}

/* Payment table row hover state */
.pay-table-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.18s ease;
}
.pay-table-row:hover {
    background: rgba(99, 102, 241, 0.06);
}
.pay-table-row:last-child {
    border-bottom: none;
}

/* Payment detail info row */
.pay-detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    font-size: 0.87rem;
    gap: 1rem;
}
.pay-detail-row:last-child { border-bottom: none; }
.pay-detail-label { color: var(--text-dim); font-weight: 500; white-space: nowrap; }
.pay-detail-value { color: var(--text-main); font-weight: 600; text-align: right; }

/* Action panels: approve / reject */
.pay-action-panel {
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(11, 17, 33, 0.6);
    flex: 1;
    min-width: 0;
}
.pay-action-panel.approve-panel {
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 20px -5px rgba(16, 185, 129, 0.15);
}
.pay-action-panel.reject-panel {
    border-color: rgba(239, 68, 68, 0.25);
    box-shadow: 0 0 20px -5px rgba(239, 68, 68, 0.1);
}

/* Screenshot preview container */
.pay-screenshot-container {
    background: rgba(8, 12, 24, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    text-align: center;
}
.pay-screenshot-container img {
    max-height: 340px;
    width: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* Avatar initials circle for subscriber */
.pay-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(79, 70, 229, 0.4) 100%);
    border: 1px solid rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-light);
    flex-shrink: 0;
}

/* Verification outcome banner */
.pay-outcome-banner {
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.pay-outcome-banner.approved {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.pay-outcome-banner.rejected {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.pay-outcome-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Payment table amount column */
.pay-amount-cell {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--text-main);
    white-space: nowrap;
}

/* Payment index grid layout */
.pay-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 1024px) {
    .pay-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Approve/Reject actions row */
.pay-actions-row {
    display: flex;
    gap: 1rem;
}
@media (max-width: 640px) {
    .pay-actions-row {
        flex-direction: column;
    }
}

/* Success/danger action buttons */
.rd-btn-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.rd-btn-success:hover {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    transform: translateY(-1px);
    color: #ffffff;
}
.rd-btn-reject {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}
.rd-btn-reject:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
    transform: translateY(-1px);
    color: #fca5a5;
}

/* Billing & Payment Details Layout System */
.pay-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
}

@media (max-width: 992px) {
    .pay-detail-grid {
        grid-template-columns: 1fr;
    }
}

.pay-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.88rem;
}

.pay-detail-row:last-child {
    border-bottom: none;
}

.pay-detail-label {
    color: var(--text-muted);
    font-weight: 500;
}

.pay-detail-value {
    color: var(--text-main);
    font-weight: 600;
    text-align: right;
}

.pay-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(79, 70, 229, 0.45) 100%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.pay-table-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   GLOBAL SCOPED PAGINATION SYSTEM (PREVENTS OVERSIZED SVG / GIANT ICONS)
   ========================================================================== */
nav[role="navigation"] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

@media (min-width: 640px) {
    nav[role="navigation"] {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Scope SVG icons strictly inside pagination components to prevent blowout */
nav[role="navigation"] svg,
.pagination svg,
.pagination-wrapper svg,
.page-link svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

.w-5, .h-5 {
    width: 1.125rem !important;
    height: 1.125rem !important;
}

/* Pagination container and items */
nav[role="navigation"] div.hidden.sm\:flex-1,
nav[role="navigation"] .sm\:flex-1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
    flex-wrap: wrap;
}

nav[role="navigation"] a,
nav[role="navigation"] span[aria-disabled="true"] > span,
nav[role="navigation"] span[aria-current="page"] > span,
.pagination a,
.pagination span.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1;
    color: var(--text-muted) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--border-subtle) !important;
    padding: 0.45rem 0.75rem !important;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition-base);
    min-width: 32px;
    height: 32px;
    box-sizing: border-box;
}

nav[role="navigation"] a:hover,
.pagination a:hover {
    color: #ffffff !important;
    background: rgba(99, 102, 241, 0.15) !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
}

nav[role="navigation"] span[aria-current="page"] > span,
.pagination .active span,
.pagination .active a {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

nav[role="navigation"] span[aria-disabled="true"] > span {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
}

nav[role="navigation"] p {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin: 0;
}

nav[role="navigation"] p span {
    color: var(--text-main);
    font-weight: 600;
}

/* ==========================================================================
   TOPBAR RESPONSIVENESS & MOBILE DRAWER INTEGRATION
   ========================================================================== */
@media (max-width: 768px) {
    .app-header {
        padding: 0 1rem;
        height: 60px;
    }
    .header-left, .header-right {
        gap: 0.5rem;
    }
    .user-info {
        display: none !important;
    }
    .user-menu-btn {
        padding: 0.25rem;
        background: transparent;
        border-color: transparent;
    }
    .breadcrumb-nav .breadcrumb-home,
    .breadcrumb-nav .breadcrumb-separator {
        display: none !important;
    }
}

@media (max-width: 520px) {
    .mikrotik-status-text {
        display: none !important;
    }
    .app-header .rd-badge {
        padding: 0.35rem;
    }
}

/* ==========================================================================
   GLOBAL RESPONSIVE GRID & LAYOUT UTILITIES
   ========================================================================== */
.rd-grid-responsive {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

@media (min-width: 1025px) {
    .rd-grid-2col {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .rd-grid-sms-row1 {
        grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    }
    .rd-grid-sms-row2 {
        grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
    }
    .rd-grid-backup {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
    }
}

/* Form controls responsive safety */
input, select, textarea {
    max-width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   MODAL RESPONSIVENESS (MOBILE VIEWPORT & TOUCH SAFEGUARDS)
   ========================================================================== */
[id$="Modal"], [id*="modal"], .modal-dialog, .billing-modal-backdrop, .inc-modal-backdrop {
    box-sizing: border-box;
}

@media (max-width: 640px) {
    [id$="Modal"] > div,
    [id*="modal"] > div,
    .billing-modal-content,
    .inc-modal-box {
        width: 100% !important;
        max-width: calc(100vw - 2rem) !important;
        max-height: calc(100vh - 3rem) !important;
        overflow-y: auto !important;
        margin: 1rem auto !important;
    }
}

/* ==========================================================================
   LIVE BANDWIDTH MONITORING & SUBSCRIBER AVATAR (Phase 8)
   ========================================================================== */

/* Subscriber Auto-Generated Initials Avatar */
.sub-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--avatar-bg, #6366f1);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-mono, monospace);
    letter-spacing: 0.04em;
    user-select: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

/* Live Bandwidth Card Layout */
.lbw-card {
    position: relative;
    overflow: hidden;
}

.lbw-gauges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.lbw-gauge {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md, 8px);
    min-width: 0;
}

.lbw-gauge-icon {
    color: var(--cyan-fiber, #06b6d4);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.lbw-gauge-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dim, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lbw-gauge-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--cyan-fiber, #06b6d4);
    font-family: var(--font-mono, monospace);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lbw-gauge-value-up {
    color: #a78bfa;
}

.lbw-gauge-bar-wrap {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    margin-top: 0.45rem;
    overflow: hidden;
    width: 100%;
}

.lbw-gauge-bar {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease;
}

.lbw-gauge-bar-down {
    background: linear-gradient(90deg, #06b6d4, #38bdf8);
}

.lbw-gauge-bar-up {
    background: linear-gradient(90deg, #a78bfa, #c4b5fd);
}

.lbw-session-info {
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.15rem;
    min-width: 0;
    overflow: hidden;
}

.lbw-session-info > div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lbw-si-label {
    color: var(--text-dim, #94a3b8);
    font-weight: 600;
    margin-right: 0.35rem;
}

.lbw-si-val {
    color: var(--text-main, #f8fafc);
    font-family: var(--font-mono, monospace);
    font-size: 0.78rem;
}

.lbw-chart-wrap {
    background: rgba(10, 15, 28, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md, 8px);
    padding: 1rem 1.25rem;
    position: relative;
    overflow: hidden;
}

.lbw-status-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 28, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    backdrop-filter: blur(4px);
    z-index: 5;
    padding: 1.5rem;
    text-align: center;
}

.lbw-overlay-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.lbw-overlay-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main, #f8fafc);
}

.lbw-overlay-desc {
    font-size: 0.82rem;
    color: var(--text-muted, #94a3b8);
    max-width: 440px;
    line-height: 1.4;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS FOR MONITORING & DASHBOARDS
   1920px, 1440px, 1366px, 1024px, 768px, 430px, 390px, 360px
   ========================================================================== */

@media (max-width: 1024px) {
    .lbw-gauges {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
    .lbw-gauges > .lbw-gauge:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .lbw-gauges {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .lbw-gauges > .lbw-gauge:last-child {
        grid-column: span 1;
    }
    .lbw-gauge {
        padding: 0.75rem 0.85rem;
    }
    .lbw-gauge-value {
        font-size: 1.15rem;
    }
    .sub-avatar {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    .lbw-chart-wrap {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .lbw-gauge-value {
        font-size: 1.05rem;
    }
    .lbw-session-info {
        font-size: 0.75rem;
    }
    .lbw-si-val {
        font-size: 0.72rem;
    }
    .lbw-overlay-desc {
        font-size: 0.75rem;
    }
    .sub-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.82rem;
    }
}

@media (max-width: 390px) {
    .lbw-gauge {
        padding: 0.65rem 0.75rem;
        gap: 0.6rem;
    }
    .lbw-gauge-value {
        font-size: 0.98rem;
    }
    .lbw-gauge-label {
        font-size: 0.68rem;
    }
    .lbw-overlay-title {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   ENTERPRISE SAAS SUBSCRIBER PROFILE REDESIGN (PHASE 9)
   Standardized Avatar, Hero Header, KPI Row, Tabbed Hub, Quick Actions
   ========================================================================== */

/* 1. Standardized Reusable Subscriber Avatar */
.saas-avatar-centered-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -58px; /* Overlap centered at bottom edge of 200px cover */
    position: relative;
    z-index: 5;
    width: 100%;
}

.saas-subscriber-avatar {
    width: 116px;
    height: 116px;
    min-width: 116px;
    min-height: 116px;
    max-width: 116px;
    max-height: 116px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    background: #0f172a;
    border: 4px solid var(--bg-surface-elevated, #162038);
    box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.65), 0 0 24px -2px rgba(99, 102, 241, 0.35);
    user-select: none;
}

.saas-subscriber-avatar img,
.saas-subscriber-avatar .saas-avatar-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    display: block !important;
    pointer-events: none;
}

/* 2. SaaS Profile Hero with Premium Cover Banner */
.saas-profile-hero,
.saas-profile-header-card {
    background: var(--bg-card, rgba(18, 26, 47, 0.85));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl, 20px);
    overflow: hidden;
    margin-bottom: 1.75rem;
    position: relative;
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.6), 0 0 24px -4px rgba(99, 102, 241, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.saas-profile-cover {
    width: 100%;
    height: 200px;
    background-color: #0b132b;
    background-image: url('../images/profile-cover-dark.svg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 1.25rem 1.75rem;
}

.saas-profile-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 11, 20, 0.25) 0%, rgba(15, 23, 42, 0.75) 100%);
    pointer-events: none;
}

.saas-cover-top-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.saas-cover-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
}

.saas-cover-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.saas-cover-breadcrumbs a:hover {
    color: var(--text-main);
}

.saas-cover-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.saas-cover-actions .rd-btn {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Centered Customer Identity Body */
.saas-identity-centered-body {
    padding: 0.65rem 2rem 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.saas-centered-name {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0.25rem 0 0.35rem;
}

.saas-centered-code {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--primary-light);
    font-weight: 700;
    background: rgba(99, 102, 241, 0.12);
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(99, 102, 241, 0.28);
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.saas-centered-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.saas-centered-submeta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.saas-centered-submeta strong {
    color: var(--text-main);
    font-weight: 600;
}

/* 3. Top KPI Summary Row */
.saas-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.saas-kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg, 14px);
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.saas-kpi-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.saas-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--kpi-accent, rgba(99, 102, 241, 0.5));
}

.saas-kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.saas-kpi-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

.saas-kpi-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--kpi-icon-bg, rgba(99, 102, 241, 0.12));
    color: var(--kpi-accent, var(--primary-light));
    flex-shrink: 0;
}

.saas-kpi-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.saas-kpi-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 4. Compact Network Telemetry & Live Connection Status Panel */
.saas-network-panel {
    background: var(--bg-card);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: var(--radius-lg, 14px);
    margin-bottom: 1.75rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    position: relative;
}

.saas-network-panel-header {
    padding: 1rem 1.35rem;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.saas-network-panel-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.saas-network-panel-body {
    padding: 1.25rem 1.35rem;
    position: relative;
}

/* 5. Main 2-Column Responsive Layout */
.saas-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 68%) minmax(0, 32%);
    gap: 1.75rem;
    align-items: flex-start;
}

.saas-main-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.saas-side-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

/* 6. Premium Tabbed Navigation System */
.saas-tabs-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.saas-tabs-nav {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.5rem 0.75rem;
    gap: 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.saas-tabs-nav::-webkit-scrollbar {
    display: none;
}

.saas-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-md, 8px);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-base);
    user-select: none;
    text-decoration: none;
}

.saas-tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.saas-tab-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(79, 70, 229, 0.35));
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 12px rgba(99, 102, 241, 0.2);
}

.saas-tab-btn .saas-tab-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.saas-tab-btn.active .saas-tab-badge {
    background: rgba(99, 102, 241, 0.5);
    color: #ffffff;
}

.saas-tab-content {
    padding: 1.75rem;
}

.saas-tab-pane {
    display: none;
}

.saas-tab-pane.active {
    display: block;
    animation: saasFadeIn 0.25s ease-out forwards;
}

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

/* 7. Definition Grids & Key-Value Components */
.saas-def-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.75rem;
}

.saas-def-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
}

.saas-def-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.saas-def-label {
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

.saas-def-val {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
    word-break: break-word;
}

.saas-def-val strong {
    font-weight: 700;
}

.saas-section-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 1.5rem 0;
}

/* 8. Modern Cards in Side Column */
.saas-side-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg, 14px);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.saas-side-card-header {
    padding: 1rem 1.35rem;
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.saas-side-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.saas-side-card-body {
    padding: 1.25rem 1.35rem;
}

/* 9. Danger Zone Card */
.saas-danger-card {
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-lg, 14px);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.08);
}

.saas-danger-header {
    padding: 0.9rem 1.25rem;
    background: rgba(239, 68, 68, 0.08);
    border-bottom: 1px solid rgba(239, 68, 68, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.saas-danger-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--danger);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.saas-danger-body {
    padding: 1.15rem 1.25rem;
}

/* 10. Responsive Breakpoints */
@media (max-width: 1440px) {
    .saas-kpi-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.85rem;
    }
    .saas-kpi-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 1200px) {
    .saas-profile-layout {
        grid-template-columns: minmax(0, 62%) minmax(0, 38%);
    }
    .saas-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .saas-kpi-grid > .saas-kpi-card:nth-child(4),
    .saas-kpi-grid > .saas-kpi-card:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 1024px) {
    .saas-profile-layout {
        grid-template-columns: 1fr;
    }
    .saas-profile-cover {
        height: 175px;
        padding: 1rem 1.25rem;
    }
    .saas-avatar-centered-wrap {
        margin-top: -45px;
    }
    .saas-subscriber-avatar {
        width: 90px;
        height: 90px;
        min-width: 90px;
        min-height: 90px;
        max-width: 90px;
        max-height: 90px;
    }
    .saas-centered-name {
        font-size: 1.55rem;
    }
}

@media (max-width: 768px) {
    .saas-cover-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .saas-cover-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .saas-cover-actions .rd-btn {
        flex: 1;
        justify-content: center;
    }
    .saas-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .saas-kpi-grid > .saas-kpi-card:last-child {
        grid-column: span 2;
    }
    .saas-def-grid-2,
    .saas-def-grid-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .saas-tab-content {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .saas-profile-cover {
        height: 150px;
        padding: 0.85rem 1rem;
    }
    .saas-avatar-centered-wrap {
        margin-top: -39px;
    }
    .saas-subscriber-avatar {
        width: 78px;
        height: 78px;
        min-width: 78px;
        min-height: 78px;
        max-width: 78px;
        max-height: 78px;
    }
    .saas-centered-name {
        font-size: 1.35rem;
    }
    .saas-identity-centered-body {
        padding: 0.5rem 1rem 1.25rem;
    }
    .saas-kpi-grid {
        grid-template-columns: 1fr;
    }
    .saas-kpi-grid > .saas-kpi-card:last-child {
        grid-column: span 1;
    }
    .saas-tab-btn {
        padding: 0.55rem 0.85rem;
        font-size: 0.8rem;
    }
}





