/**
 * Tribexs Sovereign Cloud Panel - Master Stylesheet
 * Brand: Tribexs (tribexs.com) | Corporate Identity: Aara Technologies Limited
 * Palette: Coral Orange (#f25822), Flame Red (#e30613), Emerald Green (#00a651), Obsidian Dark (#0f141c)
 * 100% International Standard English
 */

:root {
    --primary: #f25822;
    --primary-hover: #d94511;
    --primary-glow: rgba(242, 88, 34, 0.25);
    --accent: #e30613;
    --success: #00a651;
    --success-glow: rgba(0, 166, 81, 0.2);
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0284c7;

    /* Light Mode (Default Surfaces) */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-input: #f8fafc;
    --border: #e2e8f0;
    --border-focus: #f25822;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --sidebar-width: 270px;
    --header-height: 64px;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
    --bg-body: #0a0d13;
    --bg-surface: #111620;
    --bg-card: #161c28;
    --bg-card-hover: #1c2434;
    --bg-input: #0d121a;
    --border: #222c3d;
    --border-focus: #f25822;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-stack);
    font-size: 13.5px;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* App Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Top Navbar */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 0 0;
    z-index: 100;
}

.brand-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100%;
    padding: 0 16px;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--bg-surface);
}

.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.mobile-nav-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-text-short {
    display: none;
}
.btn-text-full {
    display: inline;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    z-index: 1040;
}

.brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.brand-logo {
    height: 44px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.brand-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary-glow);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(242, 88, 34, 0.3);
}

.nav-center-telemetry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 20px;
}

.telemetry-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--bg-input);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 11.5px;
    font-family: var(--font-mono);
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}
.pill-dot.warn { background: var(--warning); box-shadow: 0 0 8px var(--warning); }
.pill-dot.danger { background: var(--danger); box-shadow: 0 0 8px var(--danger); }

/* Header Search Container */
.header-search-container {
    position: relative;
    margin-left: 8px;
}
.header-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 5px 12px;
    width: 240px;
    transition: all 0.2s ease;
}
.header-search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
    width: 300px;
}
.header-search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 12.5px;
    width: 100%;
}
.header-search-bar svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    max-height: 320px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}
.search-results-dropdown.open {
    display: block;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    transition: background 0.15s;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.search-result-item .item-cat {
    font-size: 10.5px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
}

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

/* Dual Interface Switcher (WHM vs cPanel) */
.view-mode-switcher {
    display: flex;
    background: var(--bg-input);
    padding: 3px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.view-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.view-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.theme-toggle-btn {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: rgba(0, 166, 81, 0.1);
    border: 1px solid rgba(0, 166, 81, 0.3);
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
}

/* User Menu Dropdown (Submenu with Logout) */
.user-dropdown-wrapper {
    position: relative;
}
.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    overflow: hidden;
}
.user-dropdown-menu.open {
    display: block;
}
.user-dropdown-header {
    padding: 14px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-dropdown-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
}
.user-dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-dropdown-meta {
    overflow: hidden;
}
.user-dropdown-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-dropdown-email {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.user-dropdown-body {
    padding: 6px 0;
}
.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.user-dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--primary);
}
.user-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}
.user-dropdown-item.logout {
    color: #ef4444;
}
.user-dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.08);
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    padding: 14px 10px;
    overflow-y: auto;
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-search-box {
    margin-bottom: 12px;
    padding: 0 4px;
}
.sidebar-search-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    color: var(--text-primary);
    font-size: 12px;
    outline: none;
}
.sidebar-search-input:focus {
    border-color: var(--primary);
}

.sidebar-menu-group {
    margin-bottom: 4px;
}

.nav-group-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 8px 10px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}
.nav-group-title:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}
.group-chevron {
    font-size: 10px;
    transition: transform 0.2s ease;
    opacity: 0.7;
    transform: rotate(-90deg); /* Default collapsed */
}
.sidebar-menu-group.open .group-chevron {
    transform: rotate(0deg); /* Downward when open */
}
.sidebar-menu-group .group-links {
    display: none; /* Submenus hidden by default */
}
.sidebar-menu-group.open .group-links {
    display: flex; /* Shown only when group has .open */
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 6px;
}
.sidebar-nav.group-links .nav-link {
    padding: 6.5px 10px 6.5px 16px;
    font-size: 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7.5px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    transition: all 0.15s ease;
    cursor: pointer;
}

.nav-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--primary-glow);
    color: var(--primary);
    font-weight: 600;
    border-left: 3px solid var(--primary);
}

.nav-link svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.sidebar-tier-box {
    background: var(--bg-input);
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 11px;
}
.sidebar-tier-box .tier-title {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
}
.sidebar-tier-box .tier-sub {
    color: var(--text-muted);
    margin-top: 2px;
}

/* Main Content Area */
.main-wrapper {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    flex: 1;
    padding: 20px 24px;
    max-width: calc(100vw - var(--sidebar-width));
}

/* Two Column Layout Container (CCPanel Style) */
.dashboard-two-column-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.dashboard-main-col {
    flex: 1;
    min-width: 0;
}
.dashboard-side-col {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Top Horizontal 8-Card Bar (CCPanel Style) */
.top-info-cards-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.info-bar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.2s;
}
.info-bar-card:hover {
    border-color: var(--border-focus);
}
.info-bar-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.info-bar-meta {
    min-width: 0;
}
.info-bar-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.info-bar-val {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Statistics Side Card (Matching CCPanel Screenshot) */
.side-stats-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: var(--shadow);
}
.side-stats-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}
.stat-row {
    margin-bottom: 12px;
}
.stat-row-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
}
.stat-row-label {
    color: var(--text-secondary);
}
.stat-row-val {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
}
.stat-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

/* Server Information Side Card */
.server-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: var(--shadow);
}
.server-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}
.server-info-row:last-child {
    border-bottom: none;
}

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

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-subtitle {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7.5px 14px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 10px var(--primary-glow);
}
.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
}

.btn-success {
    background: var(--success);
    color: #ffffff;
    box-shadow: 0 2px 10px var(--success-glow);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
    background: var(--danger);
    color: #ffffff;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 11.5px;
}

/* Grid & Cards */
.grid-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s;
}
.metric-card:hover {
    border-color: var(--border-focus);
}

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

.metric-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.metric-footer {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
}
.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}
.progress-fill.success { background: var(--success); }
.progress-fill.warn { background: var(--warning); }
.progress-fill.danger { background: var(--danger); }

/* Tables */
.card-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    width: 100%;
}

.table-header-bar {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.table-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.card-table > table,
.table-responsive > table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    text-align: left;
}

th {
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 12.5px;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-success {
    background: rgba(0, 166, 81, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 166, 81, 0.3);
}
.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-primary {
    background: var(--primary-glow);
    color: var(--primary);
    border: 1px solid rgba(242, 88, 34, 0.3);
}

/* ================= cPanel Iconic App Grid ================= */
.cpanel-category-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px 18px;
    margin-bottom: 20px;
}
.cpanel-category-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cpanel-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}
.cpanel-app-item {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-secondary);
}
.cpanel-app-item:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.cpanel-app-icon {
    font-size: 24px;
    margin-bottom: 6px;
    color: var(--primary);
}
.cpanel-app-title {
    font-size: 11.5px;
    font-weight: 600;
}

/* Tab Panels */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

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

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

.modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-title {
    font-size: 15px;
    font-weight: 700;
}
.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}
.modal-close:hover { color: var(--text-primary); }

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}
.form-label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 12.5px;
    outline: none;
    transition: border-color 0.2s;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: var(--bg-card);
}

/* File Manager UI */
.file-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-input);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12.5px;
    margin-bottom: 16px;
}
.breadcrumb-crumb {
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
}

/* Code Editor Textarea */
.code-editor {
    width: 100%;
    height: 380px;
    background: #080b0f;
    color: #4ade80;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.6;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    resize: vertical;
    outline: none;
}

/* Terminal Console View */
.terminal-window {
    background: #080c12;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.terminal-header {
    background: #111722;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}
.terminal-circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
}
.terminal-circle:nth-child(2) { background: #f59e0b; }
.terminal-circle:nth-child(3) { background: #10b981; }

.terminal-body {
    padding: 16px 20px;
    min-height: 320px;
    max-height: 480px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: #4ade80;
    line-height: 1.6;
    white-space: pre-wrap;
}
.terminal-prompt {
    color: var(--primary);
    font-weight: bold;
}
.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #0e141f;
    border-top: 1px solid var(--border);
}
.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 12.5px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
}
.toast {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    animation: slideIn 0.3s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.danger { border-left-color: var(--danger); }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   TRIBEXS RESPONSIVE SUITE & DEVICE-FRIENDLY ADAPTIVE SYSTEM
   Strictly engineered for:
   - Ultra-Wide Screens (> 1440px)
   - Standard Laptops & Desktop (1150px - 1440px)
   - Narrow Laptops & Landscape Tablets (992px - 1149px)
   - Tablets & Small Screens (768px - 991px)
   - Mobile Phones (480px - 767px)
   - Small Mobile Devices (< 480px)
   ========================================================================== */

/* 1. Large Laptops & Desktops (max-width: 1366px) */
@media (max-width: 1366px) {
    .header-search-bar {
        width: 180px;
    }
    .header-search-bar:focus-within {
        width: 220px;
    }
    .telemetry-pill {
        padding: 4px 8px;
        font-size: 11px;
    }
    .dashboard-side-col {
        width: 300px;
    }
    .top-info-cards-bar {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    .info-bar-card {
        padding: 10px 12px;
        gap: 10px;
    }
    .info-bar-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
}

/* 2. Standard Laptops / Small Desktops (max-width: 1200px) */
@media (max-width: 1200px) {
    #navPillRam {
        display: none;
    }
    .header-search-bar {
        width: 150px;
    }
    .header-search-bar:focus-within {
        width: 180px;
    }
    .btn-text-full {
        display: none;
    }
    .btn-text-short {
        display: inline;
    }
    .view-btn {
        padding: 6px 10px;
    }
    .dashboard-two-column-layout {
        gap: 18px;
    }
    .dashboard-side-col {
        width: 280px;
    }
    .cpanel-apps-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }
}

/* 3. Tablets / Narrow Displays (max-width: 1024px) */
@media (max-width: 1024px) {
    .top-navbar {
        padding: 0 14px;
    }
    .mobile-nav-toggle {
        display: inline-flex;
    }
    .brand-section {
        width: auto;
        min-width: auto;
        border-right: none;
        padding: 0;
        gap: 10px;
        justify-content: flex-start;
    }
    .brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.brand-logo {
        height: 36px;
        max-width: 180px;
        margin: 0;
    }
    .nav-center-telemetry {
        padding-left: 10px;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 270px;
        height: 100vh;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.7);
        padding-top: var(--header-height);
        overflow-y: auto;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-overlay.active {
        display: block;
    }
    .main-wrapper {
        margin-left: 0;
        max-width: 100vw;
        width: 100%;
        padding: 16px;
    }

    /* Stack Two-Column Dashboard vertically on tablets and mobile */
    .dashboard-two-column-layout {
        flex-direction: column;
        gap: 20px;
    }
    .dashboard-main-col {
        width: 100%;
        min-width: 0;
    }
    .dashboard-side-col {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .top-info-cards-bar {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

/* 4. Small Tablets & Landscape Phones (max-width: 860px) */
@media (max-width: 860px) {
    .nav-center-telemetry .telemetry-pill {
        display: none;
    }
    .header-search-container {
        margin-left: 0;
        flex: 1;
        max-width: 180px;
    }
    .header-search-bar {
        width: 100%;
    }
    .header-search-bar:focus-within {
        width: 100%;
    }
    .top-info-cards-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-side-col {
        grid-template-columns: 1fr;
    }
}

/* 5. Mobile Phones (max-width: 640px) */
@media (max-width: 640px) {
    .top-navbar {
        padding: 0 10px;
        height: 54px;
        gap: 6px;
    }
    :root {
        --header-height: 54px;
    }
    .brand-tag {
        display: none;
    }
    .brand-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.brand-logo {
        height: 32px;
        max-width: 150px;
    }
    .header-search-container {
        max-width: 120px;
    }
    .header-search-bar {
        padding: 4px 8px;
    }
    .header-search-bar input {
        font-size: 11.5px;
    }
    .nav-actions {
        gap: 4px;
    }
    .view-btn {
        padding: 5px 7px;
        font-size: 11px;
    }
    .view-btn span {
        display: none;
    }
    .theme-toggle-btn {
        width: 32px;
        height: 32px;
    }
    .user-badge {
        padding: 4px 6px;
    }
    .user-badge .user-name-text {
        display: none;
    }

    /* Main Container Padding */
    .main-wrapper {
        padding: 12px 10px;
    }

    /* Top Info Bar 2-column on mobile */
    .top-info-cards-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 14px;
    }
    .info-bar-card {
        padding: 8px 10px;
        gap: 8px;
    }
    .info-bar-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .info-bar-label {
        font-size: 9.5px;
    }
    .info-bar-val {
        font-size: 12px;
    }

    /* App items: 3 to 4 items per row, touch-friendly */
    .cpanel-apps-grid {
        grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
        gap: 8px;
    }
    .cpanel-app-item {
        padding: 10px 4px;
    }
    .cpanel-app-icon {
        font-size: 20px;
        margin-bottom: 4px;
    }
    .cpanel-app-title {
        font-size: 10.5px;
        line-height: 1.25;
    }
    .cpanel-category-section {
        padding: 12px 12px 14px;
        margin-bottom: 14px;
    }
    .cpanel-category-title {
        font-size: 12.5px;
        margin-bottom: 10px;
    }

    /* Cards, Tables & Modals on mobile */
    .card-table {
        margin-bottom: 14px;
    }
    .table-header-bar {
        padding: 10px 12px;
    }
    .table-title {
        font-size: 13px;
    }
    th, td {
        padding: 8px 10px;
        font-size: 11.5px;
    }

    .modal-box {
        width: 95%;
        margin: 10px;
    }
    .modal-header {
        padding: 12px 16px;
    }
    .modal-body {
        padding: 14px 16px;
    }
    .modal-footer {
        padding: 10px 16px;
        flex-wrap: wrap;
    }

    /* Terminal window on mobile */
    .terminal-body {
        min-height: 220px;
        max-height: 320px;
        padding: 12px;
        font-size: 11.5px;
    }
    .terminal-input-row {
        padding: 8px 12px;
    }

    /* Page Header */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-header .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 6. Ultra-Small Devices (max-width: 380px) */
@media (max-width: 380px) {
    .brand-info {
        display: none;
    }
    .cpanel-apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .top-info-cards-bar {
        grid-template-columns: 1fr;
    }
}

/* 7. Super Admin Profile & 2FA Modal Styles */
.modal-box-lg {
    max-width: 680px;
}
.profile-modal-header-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}
.profile-avatar-lg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(242, 88, 34, 0.3);
}
.profile-subtabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
    padding: 0 16px;
    gap: 8px;
}
.profile-subtab-btn {
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}
.profile-subtab-btn:hover {
    color: var(--text-primary);
}
.profile-subtab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.profile-subtab-panel {
    display: none;
    padding: 20px;
}
.profile-subtab-panel.active {
    display: block;
    animation: fadeIn 0.15s ease-in-out;
}
.secret-key-box {
    background: var(--bg-input);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.backup-codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.backup-code-item {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Domain Management Grid & Two-Panel Layout */
.domain-management-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    align-items: start;
}
@media (max-width: 1080px) {
    .domain-management-grid {
        grid-template-columns: 1fr;
    }
}

.domain-create-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.domain-create-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.input-prefix-group {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    overflow: hidden;
}

.input-prefix-addon {
    padding: 8px 12px;
    background: var(--bg-surface);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12.5px;
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    user-select: none;
    white-space: nowrap;
}

.input-prefix-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 12px;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    width: 100%;
}

.input-prefix-input:focus {
    outline: none;
}

/* Modern Toggle Switch (Force HTTPS) */
.switch-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
    margin: 0;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .25s;
    border-radius: 20px;
}
.switch-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .25s;
    border-radius: 50%;
}
input:checked + .switch-slider {
    background-color: var(--primary);
}
input:checked + .switch-slider:before {
    transform: translateX(18px);
}
.switch-status-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.php-version-dropdown {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
}
.php-version-dropdown:focus {
    border-color: var(--primary);
    outline: none;
}

/* DNS Record Type Filter Pills */
.btn-filter-pill {
    padding: 3.5px 10px;
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-filter-pill:hover {
    color: var(--text-primary);
    border-color: var(--primary);
}
.btn-filter-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ==========================================================================
   CCPanel Reference: Web File Manager (Image 1)
   ========================================================================== */
.fm-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
.fm-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fm-main-icon {
    font-size: 20px;
}
.fm-page-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}
.fm-search-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.fm-search-label, .fm-for-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
.fm-scope-select {
    padding: 4px 8px;
    font-size: 12px;
    height: 30px;
    border-radius: var(--radius-sm);
    width: auto;
}
.fm-search-input {
    padding: 4px 8px;
    font-size: 12px;
    height: 30px;
    border-radius: var(--radius-sm);
    width: 140px;
}
.fm-btn-go, .fm-btn-settings {
    padding: 4px 10px;
    font-size: 12px;
    height: 30px;
    font-weight: 600;
}
.fm-toolbar-row {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    padding: 6px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.fm-toolbar-primary {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-bottom: none;
}
.fm-toolbar-secondary {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    margin-bottom: 14px;
    background: var(--bg-surface);
}
.fm-tool-btn, .fm-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
}
.fm-tool-btn:hover, .fm-nav-btn:hover {
    background: var(--bg-surface);
    border-color: var(--border);
}
.fm-btn-danger:hover {
    color: #e53935;
}
.fm-split-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    min-height: 480px;
    overflow: hidden;
}
@media (max-width: 900px) {
    .fm-split-container {
        grid-template-columns: 1fr;
    }
    .fm-tree-pane {
        display: none;
    }
}
.fm-tree-pane {
    border-right: 1px solid var(--border);
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
}
.fm-tree-header {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.fm-tree-path-input {
    font-size: 11px;
    padding: 2px 6px;
    height: 24px;
    font-family: var(--font-mono);
}
.fm-collapse-tree-btn {
    width: 100%;
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
}
.fm-tree-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 6px;
    font-size: 12px;
}
.fm-tree-node {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    border-radius: 4px;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fm-tree-node:hover {
    background: rgba(0, 188, 212, 0.08);
}
.fm-tree-node.active {
    background: rgba(0, 188, 212, 0.15);
    color: #00bcd4;
    font-weight: 600;
}
.fm-table-pane {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.fm-table-wrapper {
    flex: 1;
    overflow-y: auto;
    margin: 0;
}
.fm-files-table {
    margin: 0;
    width: 100%;
}
.fm-files-table th {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 2;
    font-size: 11.5px;
}
.fm-file-row {
    cursor: pointer;
    user-select: none;
}
.fm-file-row:hover {
    background: rgba(0, 188, 212, 0.04);
}
.fm-file-row.selected {
    background: rgba(0, 188, 212, 0.14) !important;
}
.fm-status-footer {
    padding: 6px 12px;
    font-size: 11.5px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
}

/* ==========================================================================
   CCPanel Reference: Database Management Suite (Images 2 - 7)
   ========================================================================== */
.db-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}
.db-engine-selector-box {
    display: flex;
    align-items: center;
    gap: 8px;
}
.db-page-icon {
    font-size: 22px;
    color: #00bcd4;
}
.db-page-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}
.db-engine-select {
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    width: auto;
    min-width: 120px;
    height: 36px;
}
.db-nav-pills-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.db-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.db-pill-btn:hover {
    border-color: #00bcd4;
    color: var(--text-primary);
}
.db-pill-btn.active {
    background: #00bcd4;
    color: #ffffff;
    border-color: #00bcd4;
    box-shadow: 0 2px 6px rgba(0, 188, 212, 0.35);
}
.db-action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.db-action-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.db-card-icon {
    font-size: 18px;
    color: #00bcd4;
}
.db-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}
.priv-chk-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}
.priv-chk-label input[type="checkbox"] {
    cursor: pointer;
}

/* ==========================================================================
   Professional IDE & High-Resolution Image Viewer Modals
   ========================================================================== */
.modal-ide-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transition: all 0.2s ease-in-out;
}

.modal-ide-box.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    z-index: 10050 !important;
    margin: 0 !important;
}

.ide-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.ide-toolbar-controls select {
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    outline: none;
    cursor: pointer;
}

.ide-toolbar-controls select:focus {
    border-color: var(--primary);
}

.ide-body {
    background: #141414;
}

#aceEditorInstance {
    font-family: 'Fira Code', 'JetBrains Mono', 'Consolas', 'Courier New', monospace !important;
    letter-spacing: 0.2px;
}

.ide-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
}

.ace-status-info span {
    padding: 2px 6px;
    background: var(--bg-input);
    border-radius: 3px;
    border: 1px solid var(--border);
}

/* Dedicated Image Viewer */
.modal-img-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.modal-img-box .btn-group button {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border);
    font-size: 11.5px;
    font-weight: 500;
}

.modal-img-box .btn-group button:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

/* ==========================================================================
   Professional File Manager Context Menu (cPanel & CCPanel Style)
   ========================================================================== */
.fm-context-menu {
    position: fixed;
    z-index: 10090;
    min-width: 215px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.45), 0 8px 10px -6px rgba(0, 0, 0, 0.35);
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-primary);
    backdrop-filter: blur(8px);
    user-select: none;
    animation: ctxFadeIn 0.12s ease-out;
}

@keyframes ctxFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.fm-context-header {
    padding: 6px 14px 4px 14px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fm-context-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.fm-context-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    cursor: pointer;
    transition: background 0.1s ease, color 0.1s ease;
    font-weight: 500;
}

.fm-context-item:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.fm-context-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.fm-context-item .ctx-icon {
    font-size: 15px;
    width: 20px;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.fm-context-item .ctx-text {
    flex: 1;
}

.fm-context-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

/* ==========================================================================
   Multi-Selection & Drag-and-Drop File Manager Styling
   ========================================================================== */
.fm-file-row {
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
    transition: background-color 0.1s ease, border-color 0.1s ease, opacity 0.15s ease;
}

.fm-file-row.selected {
    background-color: rgba(0, 188, 212, 0.14) !important;
    border-left: 3px solid #00bcd4 !important;
}

.fm-file-row.dragging {
    opacity: 0.45 !important;
    background-color: rgba(0, 188, 212, 0.08) !important;
}

.drag-over-folder {
    background-color: rgba(0, 188, 212, 0.22) !important;
    outline: 2px dashed #00bcd4 !important;
    outline-offset: -2px;
}

.tree-node-row.drag-over-tree {
    background-color: rgba(0, 188, 212, 0.28) !important;
    outline: 1.5px dashed #00bcd4 !important;
}

.breadcrumb-crumb.drag-over-breadcrumb {
    background-color: rgba(0, 188, 212, 0.3) !important;
    outline: 1.5px dashed #00bcd4 !important;
    border-radius: 3px;
    padding: 1px 6px;
}

/* ==========================================================================
   Enterprise Account Import & Migration Engine Styling (CCPanel/cPanel Native)
   ========================================================================== */
.mig-container {
    max-width: 820px;
    margin: 0;
    padding-bottom: 40px;
}

.mig-page-category {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.mig-page-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.mig-page-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.mig-page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.mig-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.mig-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px 0;
}

.mig-card-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.mig-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.mig-form-row-ssh {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.mig-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.mig-input {
    width: 100%;
    height: 42px;
    padding: 8px 14px;
    font-size: 13.5px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mig-input:focus {
    border-color: #0070f3;
    box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.15);
}

.mig-btn-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.mig-btn-check {
    padding: 9px 24px;
    border: 1.5px solid #0070f3;
    background: transparent;
    color: #0070f3;
    font-weight: 600;
    font-size: 13.5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mig-btn-check:hover {
    background: rgba(0, 112, 243, 0.08);
}

.mig-btn-transfer {
    padding: 9px 24px;
    border: 1px solid transparent;
    background: #0090ff;
    background: linear-gradient(135deg, #0070f3 0%, #0090ff 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 13.5px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 112, 243, 0.25);
    transition: all 0.15s ease;
}

.mig-btn-transfer:hover {
    background: linear-gradient(135deg, #0060df 0%, #0080ef 100%);
    box-shadow: 0 4px 12px rgba(0, 112, 243, 0.35);
}

.mig-toggle-key {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #0070f3;
    text-decoration: none;
    margin-top: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}

.mig-toggle-key:hover {
    text-decoration: underline;
}

.mig-key-area {
    margin-bottom: 16px;
    animation: fadeIn 0.2s ease-out;
}

.mig-key-area textarea {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.4;
    resize: vertical;
}

.mig-feedback-box {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    animation: fadeIn 0.2s ease-out;
}

.mig-feedback-box.success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.mig-feedback-box.warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.mig-feedback-box.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Remote Account Discovery Drawer */
.mig-accounts-container {
    margin-top: 24px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    animation: fadeIn 0.2s ease-out;
}

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

.mig-accounts-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.mig-account-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.mig-account-card:hover {
    border-color: #0070f3;
    background: var(--bg-hover);
}

.mig-account-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mig-account-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 112, 243, 0.15);
    color: #0070f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.mig-account-details h5 {
    margin: 0 0 3px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.mig-account-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.mig-badge-pill {
    display: inline-block;
    padding: 2px 7px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

/* Modal Migration Progress */
.modal-mig-dialog {
    max-width: 680px;
    width: 95%;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.mig-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.mig-modal-header h3 {
    margin: 0 0 4px 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.mig-progress-track {
    width: 100%;
    height: 10px;
    background: var(--bg-surface);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    margin: 16px 0 6px 0;
}

.mig-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0070f3, #00bcd4);
    border-radius: 5px;
    transition: width 0.3s ease;
    background-size: 30px 30px;
    background-image: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    animation: progressStripe 1s linear infinite;
}

@keyframes progressStripe {
    0% { background-position: 0 0; }
    100% { background-position: 30px 0; }
}

.mig-steps-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 18px 0;
}

.mig-step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.mig-step-item.pending {
    opacity: 0.55;
}

.mig-step-item.in_progress {
    background: rgba(0, 112, 243, 0.08);
    border-color: rgba(0, 112, 243, 0.3);
    color: #0070f3;
    font-weight: 600;
}

.mig-step-item.completed {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.mig-step-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.mig-console-log {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: #c9d1d9;
    height: 130px;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.45;
}

/* ==========================================================================
   Enterprise Email Suite Styling (CCPanel & cPanel High-Fidelity UI)
   ========================================================================== */
.email-domain-selector-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.email-domain-selector-bar label {
    font-weight: 600;
    color: var(--text-primary);
}

.email-domain-select {
    padding: 7px 32px 7px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    min-width: 180px;
}

.email-domain-select:focus {
    border-color: #0070f3;
}

.email-grid-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1024px) {
    .email-grid-layout {
        grid-template-columns: 1fr;
    }
}

.email-box-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.email-box-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.email-empty-box {
    padding: 42px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.mail-app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0 12px 0;
}

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

.mail-app-col {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-muted);
}

.mail-app-col strong {
    color: var(--text-primary);
}

.mail-app-col-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.email-stats-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.email-stat-col {
    text-align: center;
}

.email-stat-val {
    font-size: 26px;
    font-weight: 800;
    color: #0070f3;
    line-height: 1;
}

.email-stat-lbl {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.email-input-group-domain {
    display: flex;
    align-items: stretch;
}

.email-input-group-domain input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}

.email-domain-addon {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-left: none;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 0 12px;
    font-size: 13.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    font-weight: 500;
    white-space: nowrap;
}

/* Deliverability Record Styles */
.deliv-record-card {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 20px;
}

.deliv-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.deliv-record-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
}

.deliv-valid-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.deliv-field-row {
    margin-top: 10px;
}

.deliv-field-inner {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-surface);
}

.deliv-field-label {
    padding: 8px 12px;
    background: var(--bg-input);
    border-right: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    width: 68px;
    display: flex;
    align-items: center;
    user-select: none;
}

.deliv-field-val {
    flex: 1;
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-primary);
    word-break: break-all;
    user-select: all;
    line-height: 1.5;
}

.deliv-copy-btn {
    padding: 0 14px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--border);
    color: #0070f3;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s ease;
}

.deliv-copy-btn:hover {
    background: rgba(0, 112, 243, 0.08);
}

.deliv-hint-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Email Routing Option Cards */
.routing-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

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

.routing-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.routing-card:hover {
    border-color: #0070f3;
}

.routing-card.active {
    border-color: #0070f3;
    background: rgba(0, 112, 243, 0.04);
    box-shadow: 0 4px 14px rgba(0, 112, 243, 0.12);
}

.routing-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(0, 112, 243, 0.1);
    color: #0070f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}

.routing-card-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.routing-active-pill {
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
}

.routing-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Webmail Hero UI */
.webmail-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 48px 24px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.webmail-hero-icon {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: rgba(0, 112, 243, 0.12);
    color: #0070f3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 16px;
}

.webmail-hero-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.webmail-hero-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 20px 0;
}

/* Dedicated Webmail Modal (CCPanel Dark Style - Screenshot 11) */
.modal-webmail-dialog {
    max-width: 440px;
    width: 90%;
    background: #192231;
    border: 1px solid #2b394f;
    border-radius: 14px;
    padding: 38px 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    color: #ffffff;
    text-align: center;
}

.webmail-login-logo {
    font-size: 32px;
    font-weight: 900;
    font-style: italic;
    color: #0070f3;
    letter-spacing: -0.5px;
    margin-bottom: 28px;
}

.webmail-input-box {
    display: flex;
    align-items: center;
    background: #111722;
    border: 1px solid #2b394f;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.webmail-input-icon {
    padding: 10px 14px;
    color: #64748b;
    font-size: 15px;
}

.webmail-login-input {
    flex: 1;
    height: 42px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    padding-right: 12px;
}

.webmail-btn-login {
    width: 100%;
    height: 44px;
    background: #0070f3;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.15s ease;
}

.webmail-btn-login:hover {
    background: #0060df;
}



/* OTA System Updates & Notification Badge */
@keyframes pulseUpdate {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(242, 88, 34, 0.4); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 8px rgba(242, 88, 34, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(242, 88, 34, 0); }
}
.update-notice-pill {
    transition: all 0.2s ease;
}
.update-notice-pill:hover {
    background: rgba(242, 88, 34, 0.22) !important;
    transform: translateY(-1px);
}
