/* ====================================================================
   PLAYIT.GG / NEXUSPLAY SERVERS DASHBOARD STYLES (1:1 with Screenshot)
   ==================================================================== */
:root {
    --dash-bg-page: #060b13;
    --dash-bg-navbar: #0b1320;
    --dash-bg-card: #0c1626;
    --dash-bg-card-inner: #070e1a;
    --dash-border-card: #19283e;
    --dash-border-subtle: rgba(255, 255, 255, 0.08);
    --dash-text-main: #f8fafc;
    --dash-text-muted: #7e8d9f;
    --dash-text-dim: #4b5a6d;
    --dash-accent-orange: #d44a1b;
    --dash-accent-orange-hover: #e25b29;
    --dash-accent-cyan: #38bdf8;
    --dash-alert-red: #7a1f1d;
    --dash-font-pixel: 'Press Start 2P', monospace;
    --dash-font-mono: 'JetBrains Mono', monospace;
}

/* Header Navbar - Restored compact layout with NexusPlay logo and bordered profile */
.dash-header {
    background-color: var(--dash-bg-navbar);
    border-bottom: 1px solid var(--dash-border-subtle);
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dash-header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.dash-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    padding-right: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-logo img {
    height: 28px;
    width: auto;
    max-height: 30px;
    object-fit: contain;
}

.dash-logo span {
    color: #ffffff;
}

.dash-logo span.accent {
    color: #ff5500;
}

.dash-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dash-nav-tab {
    font-size: 0.88rem;
    font-weight: 500;
    color: #cbd5e1;
    padding: 6px 14px;
    border-radius: 4px;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.dash-nav-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.dash-nav-tab.active {
    background-color: #d44a1b;
    color: #ffffff;
    font-weight: 600;
}

.dash-nav-tab.active:hover {
    background-color: #e25b29;
}

.dash-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Discord Header Button (matching play.html) */
.discord-btn {
    color: #5865F2;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.discord-btn:hover {
    color: #ffffff;
    transform: scale(1.1);
}

/* Lofi Radio Player Header Button (matching play.html) */
.lofi-player {
    position: relative;
    display: flex;
    align-items: center;
}

.lofi-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    outline: none;
}

.lofi-btn:hover {
    background: rgba(255, 85, 0, 0.15);
    border-color: #ff5500;
    color: #ffffff;
    transform: scale(1.05);
}

.lofi-btn.playing {
    background: rgba(255, 85, 0, 0.25);
    border-color: #ff5500;
    color: #ff5500;
    animation: lofiPulse 2s infinite;
}

@keyframes lofiPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 85, 0, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(255, 85, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 85, 0, 0); }
}

.lofi-popup {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(15, 17, 26, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 85, 0, 0.3);
    border-radius: 20px;
    padding: 8px 16px 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 195px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 85, 0, 0.15);
}

.lofi-popup::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    width: 100%;
    height: 16px;
}

.lofi-player:hover .lofi-popup,
.lofi-popup:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.lofi-vol-ic {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.lofi-lbl {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lofi-lbl.playing {
    color: #ff5500;
}

.lofi-slider {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(to right, #ff5500 30%, rgba(255, 255, 255, 0.15) 30%);
    outline: none;
    cursor: pointer;
}

.lofi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5500;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 85, 0, 0.6);
}

.lofi-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5500;
    border: none;
    cursor: pointer;
}

/* Profile Dropdown Context Menu (1:1 with play.html Screenshots 1 & 2) */
.profile-dropdown-wrapper {
    position: relative;
}

.profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 3px 12px 3px 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid #ff5500;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.profile-trigger:hover,
.profile-trigger.active {
    background: rgba(255, 85, 0, 0.12);
    border-color: #ff7700;
    box-shadow: 0 0 12px rgba(255, 85, 0, 0.35);
}

.avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #000000;
    border: 2px solid #eab308;
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-username {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.profile-chevron {
    font-size: 0.65rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.profile-trigger.active .profile-chevron {
    transform: rotate(180deg);
}

/* Profile Context Menu */
.profile-context-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 230px;
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 20px rgba(255, 85, 0, 0.15);
    z-index: 10000;
    animation: menuSlideDown 0.18s ease-out;
}

.profile-context-menu.show {
    display: block;
}

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

.profile-menu-header {
    padding: 8px 12px 6px;
}

.profile-menu-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 2px;
}

.profile-menu-status {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.online-dot {
    color: #22c55e;
    font-size: 0.5rem;
}

.profile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 6px 0;
}

.profile-menu-section-label {
    padding: 6px 12px 4px;
    font-size: 0.66rem;
    font-weight: 700;
    color: #ff5500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.86rem;
    font-weight: 500;
    border-radius: 6px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    box-sizing: border-box;
    text-decoration: none;
    font-family: inherit;
}

.profile-menu-item:hover {
    background: rgba(255, 85, 0, 0.14);
    color: #ffffff;
}

.profile-menu-item i {
    font-size: 0.9rem;
    color: #ff5500;
    width: 18px;
    text-align: center;
}

.profile-menu-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.profile-menu-item.logout-item:hover i {
    color: #f87171;
}

/* Profile Settings Modal Overlay */
.profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.profile-modal-card {
    background: #0b121e;
    border: 1px solid #1e293b;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.profile-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.profile-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease;
}

.profile-modal-close:hover {
    color: #ffffff;
}

.profile-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-modal-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-modal-input {
    background: #070c14;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.15s ease;
}

.profile-modal-input:focus {
    border-color: #ff5500;
}

.profile-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #090e18;
}

.profile-modal-cancel-btn {
    background: transparent;
    border: 1px solid #334155;
    color: #cbd5e1;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.profile-modal-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.profile-modal-save-btn {
    background: linear-gradient(135deg, #ff5500 0%, #ff7700 100%);
    border: none;
    color: #ffffff;
    padding: 7px 18px;
    border-radius: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 85, 0, 0.4);
    transition: filter 0.15s ease;
}

.profile-modal-save-btn:hover {
    filter: brightness(1.15);
}

/* Red Verification Banner */
.dash-alert-banner {
    background-color: var(--dash-alert-red);
    color: #ffffff;
    font-size: 0.84rem;
    padding: 9px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    width: 100%;
}

.dash-alert-banner a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

.dash-alert-banner a:hover {
    color: #fed7aa;
}

.dash-alert-close {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    cursor: pointer;
}

.dash-alert-close:hover {
    color: #fff;
}

/* Main Container */
.dash-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 28px 24px 60px;
    flex: 1;
}

.dash-page-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 22px;
    letter-spacing: -0.3px;
    text-align: left;
}

/* Filter Card */
.dash-filter-card {
    background-color: var(--dash-bg-card);
    border: 1px solid var(--dash-border-card);
    border-radius: 6px;
    padding: 16px 20px 20px;
    margin-bottom: 20px;
    text-align: left;
}

.dash-filter-upgrade {
    margin-bottom: 14px;
}

.dash-filter-upgrade a {
    color: var(--dash-accent-cyan);
    font-size: 0.86rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.15s ease;
    text-decoration: none;
}

.dash-filter-upgrade a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.dash-filters-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1.2fr 1.4fr;
    gap: 16px;
    align-items: start;
}

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

.dash-filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-filter-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--dash-text-muted);
    white-space: nowrap;
}

.dash-filter-select-box {
    position: relative;
    background: #08101c;
    border: 1px solid #1c2c44;
    border-radius: 4px;
    padding: 0;
    display: flex;
    align-items: center;
    color: #e2e8f0;
    font-size: 0.82rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dash-filter-select-box:hover {
    border-color: #2b4164;
}

.dash-filter-select-box:focus-within {
    border: 1.5px solid #00b4d8;
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.2);
}

.dash-filter-select-box.disabled {
    background: #060b13;
    border-color: #121c2d;
    cursor: not-allowed;
    opacity: 0.6;
    padding: 6px 10px;
    justify-content: space-between;
}

.dash-filter-select-box select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #08101c;
    color: #e2e8f0;
    border: none;
    border-radius: 4px;
    padding: 6px 30px 6px 10px;
    font-size: 0.82rem;
    font-weight: 500;
    outline: none;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    /* Custom single chevron matching site aesthetic */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.dash-filter-select-box select:focus {
    background-color: #08101c;
    color: #ffffff;
}

/* Dark mode styling for dropdown options popup */
.dash-filter-select-box select option {
    background-color: #0b1e36;
    color: #8da4c0;
    padding: 8px 12px;
    font-size: 0.82rem;
}

.dash-filter-select-box select option:checked,
.dash-filter-select-box select option:hover,
.dash-filter-select-box select option:focus {
    background-color: #82b4f8 !important;
    color: #061426 !important;
    font-weight: 600;
}

.dash-filter-select-box i {
    font-size: 0.7rem;
    color: var(--dash-text-muted);
    pointer-events: none;
    margin-left: 6px;
}

.dash-filter-muted-val {
    font-size: 0.82rem;
    color: var(--dash-text-dim);
    padding: 2px 0;
    font-family: var(--dash-font-mono);
}

/* Subtabs */
.dash-subtabs {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
    border-bottom: 1px solid transparent;
}

.dash-subtab-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--dash-text-muted);
    padding-bottom: 6px;
    cursor: pointer;
    transition: color 0.15s ease;
    position: relative;
}

.dash-subtab-link:hover {
    color: #cbd5e1;
}

.dash-subtab-link.active {
    color: var(--dash-accent-cyan);
    font-weight: 600;
}

.dash-subtab-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--dash-accent-cyan);
    border-radius: 2px;
}

/* Big Bandwidth Card & Chart */
.dash-card {
    background-color: var(--dash-bg-card);
    border: 1px solid var(--dash-border-card);
    border-radius: 6px;
    padding: 18px 20px 22px;
    margin-bottom: 20px;
    text-align: left;
}

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

.dash-card-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: #ffffff;
}

.dash-chart-wrapper {
    background-color: var(--dash-bg-card-inner);
    border: 1px solid #162438;
    border-radius: 4px;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.dash-chart-action-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #201f3b;
    border: 1px solid #3c3b6e;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 5;
}

.dash-chart-action-btn:hover {
    background: #312e81;
    color: #ffffff;
}

/* Bottom Metric Cards */
.dash-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .dash-bottom-grid {
        grid-template-columns: 1fr;
    }
}

.dash-metric-card {
    background-color: var(--dash-bg-card);
    border: 1px solid var(--dash-border-card);
    border-radius: 6px;
    padding: 18px 20px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.dash-metric-card .dash-card-title {
    margin-bottom: 8px;
}

.dash-metric-empty {
    font-size: 0.8rem;
    color: var(--dash-text-dim);
    font-family: var(--dash-font-mono);
}

/* Tab Sections */
.tab-section {
    display: none;
}

.tab-section.active {
    display: block;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 12px;
}

.dash-table th {
    text-align: left;
    padding: 10px 14px;
    background: #08101c;
    color: var(--dash-text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--dash-border-card);
}

.dash-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
}

.dash-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.74rem;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ====================================================================
   SETUP TAB STYLES (1:1 with playit.gg/account/setup)
   ==================================================================== */
.dash-setup-search-input {
    width: 100%;
    background-color: #071322;
    border: 1px solid #1d4ed8;
    color: #ffffff;
    font-size: 0.92rem;
    padding: 12px 16px;
    border-radius: 4px;
    outline: none;
    font-family: inherit;
    margin-bottom: 2px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dash-setup-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.dash-setup-search-input::placeholder {
    color: #4b5a6d;
}

.dash-action-list {
    background-color: var(--dash-bg-card);
    border: 1px solid var(--dash-border-card);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 2px;
}

.dash-action-row {
    padding: 14px 18px;
    border-bottom: 1px solid var(--dash-border-card);
    display: flex;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.dash-action-row:last-child {
    border-bottom: none;
}

.dash-action-row:hover {
    background-color: rgba(255, 255, 255, 0.035);
}

.dash-action-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-action-desc {
    font-size: 0.84rem;
    color: var(--dash-text-muted);
}

/* ====================================================================
   AGENTS TAB STYLES (1:1 with playit.gg/account/agents)
   ==================================================================== */
.dash-agents-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.dash-agent-card {
    background-color: var(--dash-bg-card);
    border: 1px solid var(--dash-border-card);
    border-radius: 4px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}

.dash-agent-card:hover {
    background-color: #0e1b2f;
    border-color: #233754;
}

.dash-agent-icon-box {
    width: 38px;
    height: 38px;
    background: #070e1a;
    border: 1px solid #1e293b;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--dash-font-mono);
    font-size: 0.65rem;
    color: #cbd5e1;
    flex-shrink: 0;
    flex-direction: column;
    line-height: 1.1;
}

.dash-agent-icon-box.question {
    background: #14283b;
    border-color: #1e3a5f;
    color: #60a5fa;
    font-size: 1.15rem;
    font-weight: 700;
}

.dash-agent-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.dash-agent-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

.dash-agent-status-text {
    font-size: 0.82rem;
    color: var(--dash-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dash-agent-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.dash-agent-status-dot.green {
    background-color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.dash-agent-status-dot.orange {
    background-color: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.dash-add-agent-btn {
    width: 100%;
    background-color: #3b82f6;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 11px 18px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    transition: background-color 0.15s ease;
}

.dash-add-agent-btn:hover {
    background-color: #2563eb;
}

/* ====================================================================
   TUNNELS TAB STYLES (1:1 with playit.gg/account/tunnels)
   ==================================================================== */
.dash-tunnels-empty-container {
    width: 100%;
    max-width: 520px;
    margin: 48px auto 0;
    background-color: var(--dash-bg-card);
    border: 1px solid var(--dash-border-card);
    border-radius: 6px;
    padding: 44px 32px 38px;
    text-align: center;
}

.dash-tunnels-empty-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #cbd5e1;
    color: #0b1320;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.dash-tunnels-empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.dash-tunnels-empty-desc {
    color: var(--dash-text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 380px;
    margin: 0 auto 24px;
}

.dash-create-tunnel-btn {
    background-color: #ff5500;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 11px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.dash-create-tunnel-btn:hover {
    background-color: #e04a00;
    box-shadow: 0 0 16px rgba(255, 85, 0, 0.45);
}

/* ====================================================================
   PREMIUM TAB STYLES (1:1 with playit.gg Unlock Premium)
   ==================================================================== */
.dash-premium-top-badge {
    color: #38bdf8;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.dash-premium-main-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    line-height: 1.2;
}

.dash-premium-subtitle {
    font-size: 0.94rem;
    color: var(--dash-text-muted);
    margin-bottom: 30px;
}

.dash-premium-section-tag {
    color: #38bdf8;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dash-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 36px;
}

@media (max-width: 768px) {
    .dash-pricing-grid {
        grid-template-columns: 1fr;
    }
}

.dash-pricing-card {
    background-color: var(--dash-bg-card);
    border: 1px solid var(--dash-border-card);
    border-radius: 6px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.dash-pricing-card.highlight {
    border-color: #0d9488;
    box-shadow: 0 0 20px rgba(13, 148, 136, 0.15);
}

.dash-save-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background-color: #0d9488;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.dash-plan-type-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--dash-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dash-plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 8px 0 4px;
}

.dash-plan-note {
    font-size: 0.85rem;
    color: var(--dash-text-muted);
    margin-bottom: 22px;
}

.dash-plan-btn-monthly {
    width: 100%;
    background-color: #3b82f6;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 11px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.15s ease;
    text-decoration: none;
    display: block;
}

.dash-plan-btn-monthly:hover {
    background-color: #2563eb;
}

.dash-plan-btn-annual {
    width: 100%;
    background-color: #0d9488;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 11px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.15s ease;
    text-decoration: none;
}

.dash-plan-btn-annual:hover {
    background-color: #0f766e;
}

/* Feature Showcase Grid */
.dash-features-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 860px) {
    .dash-features-grid-2x2 {
        grid-template-columns: 1fr;
    }
}

.dash-feature-card-large {
    background-color: var(--dash-bg-card);
    border: 1px solid var(--dash-border-card);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.dash-feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
}

.dash-feature-preview-box {
    background-color: #070e1a;
    border: 1px solid #14243b;
    border-radius: 4px;
    height: 165px;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-feature-desc {
    font-size: 0.85rem;
    color: var(--dash-text-muted);
    line-height: 1.5;
}

/* 4 Compact Features */
.dash-features-grid-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

@media (max-width: 860px) {
    .dash-features-grid-compact {
        grid-template-columns: 1fr;
    }
}

.dash-feature-card-compact {
    background-color: var(--dash-bg-card);
    border: 1px solid var(--dash-border-card);
    border-radius: 6px;
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.dash-feature-compact-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.dash-feature-compact-content h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.dash-feature-compact-content p {
    font-size: 0.82rem;
    color: var(--dash-text-muted);
    line-height: 1.45;
}


@media (max-width: 768px) {
    .dash-header {
        padding: 8px 12px;
        height: auto;
        min-height: 52px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .dash-header-left {
        gap: 8px;
        flex-wrap: wrap;
    }
    .dash-nav-tab {
        font-size: 0.78rem;
        padding: 5px 8px;
    }
    .dash-profile-btn {
        font-size: 0.58rem;
        padding: 6px 12px;
    }
}

/* ====================================================================
   NEW TUNNEL VIEW (SCREENSHOT 1) - Setup Tab
   ==================================================================== */
.tunnel-setup-card {
    background-color: var(--dash-bg-card);
    border: 1px solid var(--dash-border-card);
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.tunnel-setup-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.tunnel-assigned-agent-box {
    background: #070e1a;
    border: 1px solid #192a40;
    border-radius: 4px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tunnel-assigned-icon {
    width: 36px;
    height: 36px;
    background: #000000;
    border: 1px solid #24354d;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--dash-font-mono);
    color: #e2e8f0;
    font-size: 0.58rem;
    line-height: 1.1;
    font-weight: 700;
}

.tunnel-assigned-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

.tunnel-name-input-container {
    background: #070e1a;
    border: 1px solid #14283f;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.tunnel-name-input {
    width: 100%;
    box-sizing: border-box;
    background: #081424;
    border: 1px solid #1d4ed8;
    border-radius: 4px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tunnel-name-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.tunnel-name-input::placeholder {
    color: #475569;
}

.btn-tunnel-next {
    margin-top: 14px;
    background: #152238;
    color: #64748b;
    border: 1px solid #1f3352;
    padding: 7px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: not-allowed;
    transition: all 0.15s ease;
}

.btn-tunnel-next.active {
    background: #ff5500;
    color: #ffffff;
    border-color: #ff5500;
    cursor: pointer;
}

.btn-tunnel-next.active:hover {
    background: #e04a00;
}

.tunnel-step-locked {
    background-color: var(--dash-bg-card);
    border: 1px solid var(--dash-border-card);
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.tunnel-step-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.tunnel-step-muted {
    font-size: 0.88rem;
    color: #64748b;
}

/* ====================================================================
   YOUR AGENT VIEW (SCREENSHOT 2) - Agents Tab
   ==================================================================== */
.agent-header-card {
    background-color: var(--dash-bg-card);
    border: 1px solid var(--dash-border-card);
    border-radius: 4px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.agent-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.agent-header-icon {
    width: 44px;
    height: 44px;
    background: #000000;
    border: 1px solid #23364f;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--dash-font-mono);
    color: #e2e8f0;
    font-size: 0.65rem;
    line-height: 1.15;
    font-weight: 700;
}

.agent-header-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.agent-header-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.agent-header-desc {
    font-size: 0.85rem;
    color: #64748b;
}

.agent-list-icon-btn {
    width: 36px;
    height: 36px;
    background: #2563eb;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.agent-list-icon-btn:hover {
    background: #1d4ed8;
}

.agent-connected-banner {
    background-color: #2e7d32;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 4px;
    margin-bottom: 22px;
}

.agent-chart-card {
    background-color: var(--dash-bg-card);
    border: 1px solid var(--dash-border-card);
    border-radius: 4px;
    padding: 16px 20px 20px;
    margin-bottom: 22px;
}

.agent-chart-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.agent-chart-canvas-wrapper {
    background-color: #070e1a;
    border: 1px solid #14243b;
    border-radius: 4px;
    height: 110px;
    position: relative;
    overflow: hidden;
}

.agent-chart-canvas-wrapper canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.latency-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #d97706;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    font-family: var(--dash-font-mono);
}

.agent-details-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 6px;
    align-items: stretch;
}

@media (max-width: 860px) {
    .agent-details-two-col {
        grid-template-columns: 1fr;
    }
}

.agent-map-box {
    background-color: #070e1a;
    border: 1px solid #15273f;
    border-radius: 4px;
    width: 100%;
    height: 100%;
    min-height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
}

.agent-map-svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.agent-map-diamond-pin {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #f97316;
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.8);
    pointer-events: none;
    z-index: 10;
}

.agent-config-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agent-select-card {
    background-color: var(--dash-bg-card);
    border: 1px solid var(--dash-border-card);
    border-radius: 4px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agent-select-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.agent-select-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.agent-select-subtitle {
    font-size: 0.78rem;
    color: #64748b;
}

.agent-select-dropdown {
    position: relative;
    background: #081424;
    border: 1px solid #1e3a5f;
    border-radius: 4px;
    padding: 0;
    color: #cbd5e1;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.agent-select-dropdown:hover {
    border-color: #38bdf8;
}

.agent-select-dropdown select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #081424;
    color: #e2e8f0;
    border: none;
    border-radius: 4px;
    padding: 8px 36px 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    outline: none;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    /* Custom single chevron matching site aesthetic */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.agent-select-dropdown select:focus {
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

/* Dark mode styling for dropdown options list */
.agent-select-dropdown select option {
    background-color: #0d2342;
    color: #f1f5f9;
    padding: 10px 14px;
    font-size: 0.88rem;
}

.agent-select-dropdown select option:hover,
.agent-select-dropdown select option:focus,
.agent-select-dropdown select option:checked {
    background-color: #1d4ed8;
    color: #ffffff;
}

.agent-telemetry-table-card {
    background-color: var(--dash-bg-card);
    border: 1px solid var(--dash-border-card);
    border-radius: 4px;
    padding: 6px 18px;
}

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

.agent-telemetry-row:last-child {
    border-bottom: none;
}

.agent-telemetry-label {
    color: #64748b;
}

.agent-telemetry-val {
    color: #ffffff;
    font-weight: 700;
    text-align: right;
}

.agent-telemetry-val.mono {
    font-family: var(--dash-font-mono);
    color: #38bdf8;
    font-weight: 600;
}

/* ========================================================
   ANALYTICS SUBTABS: ROUTING, CLIENT HISTORY, ACTIVE CONNECTIONS
   ======================================================== */
.dash-subtab-content {
    display: none;
}

.dash-subtab-content.active {
    display: block;
}

/* Subtab 2: Routing (Screenshot 2) */
.dash-routing-two-col {
    display: grid;
    grid-template-columns: 58% 42%;
    gap: 16px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .dash-routing-two-col {
        grid-template-columns: 1fr;
    }
}

.dash-routing-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-routing-map-card {
    background-color: #071426;
    border: 1px solid #10243e;
    border-radius: 4px;
    overflow: hidden;
    height: 290px;
}

.dash-world-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.dash-world-svg-large {
    width: 100%;
    height: 360px;
    display: block;
}

.dash-routing-notice {
    background-color: #071324;
    border: 1px solid #10243e;
    border-radius: 4px;
    padding: 12px 16px;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.4;
}

.dash-routing-right {
    background-color: #071324;
    border: 1px solid #10243e;
    border-radius: 4px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    min-height: 350px;
}

.dash-routing-empty-text {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Subtab 3: Client History (Screenshot 3) */
.dash-client-history-top-chart {
    background-color: #07101d;
    border: 1px solid #10243e;
    border-radius: 4px;
    height: 110px;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}

.dash-client-history-top-chart canvas,
.dash-chart-wrapper canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.dash-client-history-map-wrapper {
    position: relative;
    background-color: #050d18;
    border: 1px solid #10243e;
    border-radius: 4px;
    overflow: hidden;
    height: 360px;
}

.dash-client-history-lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 5;
    background: rgba(5, 13, 24, 0.7);
    padding: 20px 30px;
    border-radius: 8px;
    backdrop-filter: blur(2px);
}

.dash-client-history-gem-icon {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.5));
}

.dash-client-history-lock-title {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.dash-client-history-upgrade-btn {
    background: linear-gradient(135deg, #155e75 0%, #0891b2 100%);
    border: 1px solid #22d3ee;
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 4px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.dash-client-history-upgrade-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

/* Subtab 4: Active Connections (Screenshot 4) */
.dash-active-connections-map-card {
    background-color: #071426;
    border: 1px solid #10243e;
    border-radius: 4px;
    overflow: hidden;
    height: 360px;
    margin-top: 16px;
}

/* Sort Rows & Empty Messages (Screenshots 3 & 4) */
.dash-client-sort-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 16px;
    font-size: 0.84rem;
    color: #475569;
}

.dash-sort-label {
    color: #64748b;
    font-weight: 600;
    margin-right: 2px;
}

.dash-sort-link {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.dash-sort-link:hover {
    color: #94a3b8;
}

.dash-sort-link.active {
    color: #0284c7;
    font-weight: 600;
}

.dash-analytics-empty-message {
    color: #475569;
    font-size: 0.88rem;
    text-align: center;
    padding: 44px 16px;
}

#subtabActive-connections .dash-analytics-empty-message {
    border: 1px solid #10243e;
    background-color: #071324;
    border-radius: 4px;
    padding: 36px 20px;
}

/* ========================================================
   ACCOUNT / SERVER SETTINGS SCREEN (Screenshot 1)
   ======================================================== */
.dash-account-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 10px;
}

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

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

.dash-account-card {
    background-color: #071324;
    border: 1px solid #10243e;
    border-radius: 4px;
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    min-height: 160px;
}

.dash-account-card-title {
    color: #38bdf8;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
}

.dash-account-link {
    color: #cbd5e1;
    font-size: 0.88rem;
    padding: 6px 0;
    text-decoration: none;
    display: block;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: color 0.15s ease, padding 0.15s ease, border-color 0.15s ease;
}

.dash-account-link:hover,
.dash-account-link.active {
    border-left-color: #ff5500;
    padding-left: 8px;
    color: #ff5500;
    font-weight: 600;
}

/* ====================================================================
   Settings Dedicated Detail View (1:1 with Screenshot 1)
   ==================================================================== */
.settings-detail-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-top: 10px;
}

@media (max-width: 860px) {
    .settings-detail-layout {
        flex-direction: column;
        gap: 20px;
    }
}

.settings-sidebar {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

@media (max-width: 860px) {
    .settings-sidebar {
        width: 100%;
    }
}

.settings-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #38bdf8;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0 14px 0;
    transition: color 0.15s ease;
}

.settings-back-btn:hover {
    color: #ff5500;
}

.settings-nav-category {
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
    user-select: none;
}

.settings-nav-category:hover {
    color: #ffffff;
}

.settings-nav-category.active {
    background: #9a3412;
    color: #ffffff;
    border-right: 3px solid #ff5500;
    border-radius: 4px 0 0 4px;
}

.settings-nav-sublist {
    margin: 6px 0 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-nav-sublink {
    color: #94a3b8;
    font-size: 0.88rem;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    display: block;
}

.settings-nav-sublink:hover {
    color: #ffffff;
}

.settings-nav-sublink.active {
    color: #ffffff;
    font-weight: 500;
    border: 1px solid #ffffff;
    background: transparent;
}

.settings-nav-item {
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 14px;
    cursor: pointer;
    transition: color 0.15s ease;
    display: block;
    text-decoration: none;
}

.settings-nav-item:hover {
    color: #ff5500;
}

.settings-content-panel {
    flex: 1;
    min-width: 0;
    max-width: 860px;
}

.settings-detail-card {
    background: #081324;
    border: 1px solid #132742;
    border-radius: 6px;
    padding: 30px 34px;
}

.settings-detail-title {
    color: #ffffff;
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.settings-notice-banner {
    background: #7c2d12;
    border: 1px solid #c2410c;
    border-radius: 4px;
    padding: 14px 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.settings-notice-banner i {
    color: #ffffff;
    font-size: 1.15rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.settings-notice-text {
    color: #ffffff;
    font-size: 0.88rem;
    line-height: 1.5;
    font-weight: 400;
}

.settings-subcard {
    background: #050d1a;
    border: 1px solid #0f223b;
    border-radius: 4px;
    padding: 22px 26px;
    margin-bottom: 20px;
}

.settings-subcard-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.settings-subcard-desc {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 18px 0;
}

.settings-field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.settings-input {
    width: 100%;
    box-sizing: border-box;
    background: #071324;
    border: 1px solid #163456;
    border-radius: 4px;
    padding: 11px 14px;
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 18px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s ease;
}

.settings-input:focus {
    border-color: #38bdf8;
}

.settings-btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: #ff5500;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: center;
}

.settings-btn-primary:hover {
    background: #e04a00;
}

.settings-btn-full {
    width: 100%;
}

.settings-current-email-box {
    background: #042738;
    border: 1px solid #085a7a;
    border-radius: 4px;
    padding: 14px 18px;
    color: #38bdf8;
    font-size: 0.92rem;
    margin-bottom: 22px;
}

.settings-current-email-box strong {
    color: #ffffff;
    font-weight: 700;
}

.settings-card-flat {
    background: #050c18;
    border: 1px solid #10223a;
    border-radius: 4px;
    padding: 22px 26px;
    margin-bottom: 20px;
}

.settings-card-desc {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 18px 0;
}

.settings-btn-blue {
    display: inline-block;
    padding: 10px 22px;
    background: #2563eb;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: center;
}

.settings-btn-blue:hover {
    background: #1d4ed8;
}

.settings-btn-danger {
    display: inline-block;
    padding: 12px 24px;
    background: #dc2626;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: center;
}

.settings-btn-danger:hover {
    background: #b91c1c;
}

.settings-feedback-box {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-feedback-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.settings-feedback-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.settings-feedback-info {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.settings-back-link {
    color: #94a3b8;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.settings-back-link:hover {
    color: #ffffff;
}

.settings-code-box {
    background: #030a16;
    border: 1px solid #0b1f35;
    border-radius: 4px;
    padding: 12px 16px;
    font-family: var(--dash-font-mono, monospace);
    font-size: 0.88rem;
    color: #f1f5f9;
    margin: 12px 0 16px 0;
    line-height: 1.6;
    user-select: all;
}

.gateway-selector-box {
    border: 1px solid #132742;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    height: 350px;
    background: #071324;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .gateway-selector-box {
        flex-direction: column;
        height: auto;
    }
}

.gateway-region-list {
    width: 44%;
    border-right: 1px solid #132742;
    overflow-y: auto;
    background: #06101e;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gateway-region-list::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

@media (max-width: 768px) {
    .gateway-region-list {
        width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid #132742;
    }
}

.gateway-region-item {
    padding: 12px 16px;
    border-bottom: 1px solid #0d1d33;
    cursor: pointer;
    transition: background 0.15s ease;
}

.gateway-region-item:hover {
    background: #0e223f;
}

.gateway-region-item.active {
    background: #ff5500 !important;
}

.gateway-region-item.active .gateway-region-title {
    color: #ffffff !important;
}

.gateway-region-item.active .gateway-region-sub {
    color: rgba(255, 255, 255, 0.85) !important;
}

.gateway-region-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.gateway-region-sub {
    color: #64748b;
    font-size: 0.78rem;
}

.gateway-map-area {
    flex: 1;
    position: relative;
    background: #040c17;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-btn-muted {
    display: inline-block;
    padding: 10px 22px;
    background: #1e293b;
    border: none;
    border-radius: 4px;
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: not-allowed;
    text-align: center;
    transition: all 0.15s ease;
}

.settings-btn-muted.active {
    background: #ff5500;
    color: #ffffff;
    cursor: pointer;
}

.settings-btn-muted.active:hover {
    background: #e04a00;
}

/* Create Firewall: Rules Textarea & Format Guide (Screenshot 1) */
.firewall-rules-textarea {
    width: 100%;
    background: #071526;
    border: 1px solid #132b4a;
    border-radius: 4px;
    padding: 14px 16px;
    color: #cbd5e1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.88rem;
    line-height: 1.55;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.firewall-rules-textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 1px #38bdf8;
}

.rule-format-card {
    border: 1px solid #132b4a;
    border-radius: 4px;
    padding: 18px 20px;
    background: #071324;
    margin-top: 18px;
}

.rule-format-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    padding: 8px 0;
    border-bottom: 1px solid #0d1e36;
    font-size: 0.85rem;
    color: #94a3b8;
    align-items: center;
}

.rule-format-label {
    font-weight: 600;
    color: #64748b;
}

.rule-code-tag {
    display: inline-block;
    padding: 2px 7px;
    background: #0c1d36;
    border: 1px solid #1c3d69;
    border-radius: 3px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    color: #38bdf8;
    margin: 1px 2px;
}

/* Billing: Payment Method Glowing Card (Screenshot 4) */
.billing-payment-card {
    border: 2px solid #ea580c;
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(234, 88, 12, 0.22) 0%, rgba(7, 19, 36, 0.95) 100px, #071324 100%);
    padding: 24px;
    position: relative;
}

.billing-payment-inner {
    background: #040c17;
    border: 1px solid #132742;
    border-radius: 4px;
    padding: 40px 20px;
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

@keyframes spinOrange {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.orange-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(234, 88, 12, 0.25);
    border-top-color: #ea580c;
    border-radius: 50%;
    animation: spinOrange 0.8s linear infinite;
}

/* Seamless scrollbars: keep scrollable but hide scrollbar completely */
#gatewaysListContainer,
.hide-scrollbar {
    overflow-x: auto;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

#gatewaysListContainer::-webkit-scrollbar,
.hide-scrollbar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Icon-only delete button (the icon is the button) */
.gateway-icon-delete-btn {
    background: transparent !important;
    border: none !important;
    color: #ef4444 !important;
    font-size: 1.15rem !important;
    cursor: pointer !important;
    padding: 6px 8px !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.15s ease, transform 0.15s ease, filter 0.15s ease !important;
    outline: none !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.gateway-icon-delete-btn:hover {
    color: #f87171 !important;
    transform: scale(1.22) !important;
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.5)) !important;
}

.gateway-icon-delete-btn:active {
    transform: scale(0.92) !important;
}

