/* ==========================================================================
   VirtuRoll Design System
   Obsidian Dark & Apple Clean Light Dual Theme + Advanced Glassmorphism
   Dynamic Island Toasts + Responsive Touch-Cards Transformation
   ========================================================================== */

:root {
    /* Fonts with zero-latency local fallbacks */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
    --font-fa: 'Vazirmatn', -apple-system, Tahoma, "Segoe UI", system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Theme: Obsidian Dark (Default) */
    --bg-base: #090a0f;
    --bg-surface: rgba(18, 20, 29, 0.75);
    --bg-surface-elevated: rgba(28, 32, 48, 0.65);
    --bg-surface-active: rgba(38, 44, 68, 0.7);
    --bg-glass-input: rgba(14, 16, 24, 0.6);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.35);
    --border-glass: rgba(255, 255, 255, 0.12);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Neon Gradients & Accents */
    --accent-indigo: #6366f1;
    --accent-violet: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    --accent-amber: #f59e0b;

    --gradient-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition-snappy: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Theme: Apple Clean Light */
[data-theme="light"] {
    --bg-base: #f5f6fa;
    --bg-surface: rgba(255, 255, 255, 0.8);
    --bg-surface-elevated: rgba(255, 255, 255, 0.95);
    --bg-surface-active: rgba(240, 243, 250, 0.9);
    --bg-glass-input: rgba(245, 247, 252, 0.8);

    --border-subtle: rgba(0, 0, 0, 0.07);
    --border-glow: rgba(99, 102, 241, 0.4);
    --border-glass: rgba(0, 0, 0, 0.1);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    --shadow-glass: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

/* RTL Typography Adaptation */
[dir="rtl"] {
    font-family: var(--font-fa);
}
[dir="ltr"] {
    font-family: var(--font-sans);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    position: relative;
}

/* Subtle Animated Ambient Background Glow */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.08) 50%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    bottom: -15%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

/* Numbers & Metrics in Mono */
.num-mono {
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Dynamic Island / Apple Capsule Notification
   ========================================================================== */
.dynamic-island-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.dynamic-island-toast {
    pointer-events: auto;
    min-width: 320px;
    max-width: 500px;
    background: rgba(15, 17, 26, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 10px 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(-40px) scale(0.9);
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .dynamic-island-toast {
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.dynamic-island-toast.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dynamic-island-toast.exit {
    opacity: 0;
    transform: translateY(-30px) scale(0.85);
    filter: blur(6px);
}

.toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.toast-icon.success { background: rgba(16, 185, 129, 0.2); color: var(--accent-emerald); }
.toast-icon.error { background: rgba(244, 63, 94, 0.2); color: var(--accent-rose); }
.toast-icon.info { background: rgba(99, 102, 241, 0.2); color: var(--accent-indigo); }

.toast-text {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 500;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--gradient-brand);
    width: 100%;
    transform-origin: left;
}
[dir="rtl"] .toast-progress {
    transform-origin: right;
}

/* ==========================================================================
   App Layout
   ========================================================================== */
.sidebar {
    width: 270px;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-subtle);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    transition: var(--transition-snappy);
    z-index: 100;
}

[dir="rtl"] .sidebar {
    border-right: none;
    border-left: 1px solid var(--border-subtle);
}

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

/* Header & Controls */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

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

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    color: white;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 30px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: var(--transition-snappy);
    border: 1px solid transparent;
}

.nav-link:hover, .nav-link.active {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border-color: var(--border-glass);
}
.nav-link.active {
    color: var(--accent-indigo);
    border-color: var(--border-glow);
}

.sidebar-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Glass Select & Buttons */
.glass-select, .glass-btn, .glass-input {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 9px 14px;
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition-snappy);
    backdrop-filter: blur(12px);
}

.glass-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.glass-btn:hover {
    background: var(--bg-surface-active);
    border-color: var(--border-glow);
    transform: translateY(-1px);
}

.glass-btn-primary {
    background: var(--gradient-brand);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}
.glass-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* ==========================================================================
   Dashboard Metric Cards
   ========================================================================== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.metric-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-snappy);
    box-shadow: var(--shadow-glass);
}

.metric-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.metric-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.metric-title {
    font-size: 0.84rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.metric-icon-box {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
}

.metric-val {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.2;
}

.metric-unit {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 4px;
}
[dir="rtl"] .metric-unit {
    margin-left: 0;
    margin-right: 4px;
}

/* ==========================================================================
   VPS Table & Card Responsive Engine
   ========================================================================== */
.table-container {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-glass);
}

.table-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 260px;
    max-width: 400px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding-left: 38px;
}
[dir="rtl"] .search-box input {
    padding-left: 14px;
    padding-right: 38px;
}

.search-box-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
[dir="rtl"] .search-box-icon {
    left: auto;
    right: 14px;
}

.vps-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
[dir="rtl"] .vps-table {
    text-align: right;
}

.vps-table th {
    padding: 12px 16px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
    font-weight: 600;
}

.vps-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    vertical-align: middle;
}

.vps-table tr:hover td {
    background: var(--bg-surface-elevated);
}

/* Progress bar inside table */
.progress-track {
    width: 100px;
    height: 6px;
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 6px;
}
.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    transition: width 0.4s ease;
}

/* Badge */
.badge-tag {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   MOBILE-FIRST TRANSFORMATION (< 868px)
   Tables automatically morph into discrete touch cards
   ========================================================================== */
@media (max-width: 868px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        padding: 16px;
    }

    .main-content {
        padding: 16px;
    }

    .vps-table thead {
        display: none; /* Hide standard headers */
    }

    .vps-table, .vps-table tbody, .vps-table tr, .vps-table td {
        display: block;
        width: 100%;
    }

    .vps-table tr {
        background: var(--bg-surface-elevated);
        border: 1px solid var(--border-glass);
        border-radius: var(--radius-md);
        margin-bottom: 16px;
        padding: 16px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

    .vps-table td {
        padding: 8px 0;
        border-bottom: 1px dashed var(--border-subtle);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .vps-table td:last-child {
        border-bottom: none;
        padding-top: 12px;
        justify-content: flex-end;
    }

    .vps-table td::before {
        content: attr(data-label);
        font-size: 0.8rem;
        color: var(--text-muted);
        font-weight: 600;
    }
}

/* Modal Window */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 28px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-glass);
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

/* Authentication Overlay View */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-base);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ==========================================================================
   Header Enhancements: Clock, Theme Pill, Custom Glass Language Dropdown
   ========================================================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 8px 14px;
    font-size: 0.84rem;
    color: var(--text-primary);
    backdrop-filter: blur(16px);
    transition: var(--transition-snappy);
    cursor: default;
    user-select: none;
}

.pill-badge.clickable {
    cursor: pointer;
}
.pill-badge.clickable:hover {
    background: var(--bg-surface-active);
    border-color: var(--border-glow);
}

.lang-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 230px;
    background: rgba(18, 20, 29, 0.95);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-subtle);
    padding: 12px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 6px;
    animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
[dir="rtl"] .lang-menu-dropdown {
    right: auto;
    left: 0;
}
.lang-menu-dropdown.show {
    display: flex;
}

.lang-dropdown-header {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 4px 8px 8px 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-snappy);
    text-decoration: none;
    user-select: none;
}
.lang-item:hover, .lang-item.active {
    background: var(--bg-surface-active);
    color: var(--text-primary);
}
.lang-item.active {
    border: 1px solid var(--border-glow);
}

.lang-flag-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    padding: 3px 6px;
    color: var(--text-primary);
}

.lang-text-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.lang-main-title {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
}
.lang-sub-title {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.lang-check {
    color: var(--accent-cyan);
    font-weight: 800;
    font-size: 0.95rem;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.breadcrumbs .crumb-current {
    color: var(--text-primary);
    font-weight: 600;
}

/* Mobile Hamburger Toggle */
.mobile-menu-btn {
    display: none;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 8px;
    color: var(--text-primary);
    cursor: pointer;
}

/* ==========================================================================
   Hardware Telemetry Grid (CPU, RAM, Swap, Disk, Uptime) - Image 6
   ========================================================================== */
.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.telemetry-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    transition: var(--transition-snappy);
    box-shadow: var(--shadow-glass);
}
.telemetry-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.telemetry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.telemetry-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    text-transform: uppercase;
}
.telemetry-pct {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.telemetry-bar {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 12px;
}
.telemetry-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.telemetry-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* Service Summary Row */
.service-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}
.summary-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-glass);
}
.summary-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   Settings Tab Cards (Images 1, 2, 3)
   ========================================================================== */
.settings-section-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-glass);
}

.settings-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}
.settings-title-group h3 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.settings-title-group p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Modern iOS Style Glass Toggle Switch */
.glass-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.glass-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    transition: 0.3s;
    border: 1px solid var(--border-glass);
}
.slider-toggle::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-switch input:checked + .slider-toggle {
    background: var(--accent-indigo);
}
.glass-switch input:checked + .slider-toggle::before {
    transform: translateX(19px);
}

/* Settings Form Grids */
.settings-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}
.field-hint {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Backup Cards Row (Image 3) */
.backup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 10px;
}
.backup-action-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 18px;
    cursor: pointer;
    transition: var(--transition-snappy);
    text-align: left;
}
[dir="rtl"] .backup-action-card {
    text-align: right;
}
.backup-action-card:hover {
    background: var(--bg-surface-active);
    border-color: var(--border-glow);
    transform: translateY(-2px);
}
.backup-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.backup-card-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   Mobile Responsive Drawer (< 1024px)
   ========================================================================== */
.mobile-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 999;
}
.mobile-backdrop.open {
    display: block;
}

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: inline-flex;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: none;
    }
    [dir="rtl"] .sidebar {
        left: auto;
        right: 0;
        transform: translateX(100%);
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    }
    .telemetry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-summary-grid {
        grid-template-columns: 1fr;
    }
    .backup-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .telemetry-grid {
        grid-template-columns: 1fr;
    }
    .settings-form-grid {
        grid-template-columns: 1fr;
    }
    .header-actions {
        gap: 6px;
    }
    .pill-badge {
        padding: 6px 10px;
        font-size: 0.78rem;
    }
}
