@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/11.1.0/sweetalert2.min.css');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css");

:root {
    --bg-main: #080f1d;
    --bg-secondary: #101e32;
    --bg-card: rgba(16, 30, 50, 0.96);
    --bg-card-solid: #101e32;
    --bg-input: #080f1d;
    --bg-input-focus: #101e32;
    --border-color: #233d5a;
    --border-card: #233d5a;
    --border-red-glow: 0 0 35px rgba(56, 169, 255, 0.12), 0 20px 45px rgba(0, 0, 0, 0.65);
    --accent-red: #38a9ff;
    --accent-red-hover: #22d3ee;
    --accent-red-gradient: linear-gradient(90deg, #38a9ff 0%, #22d3ee 100%);
    --accent-red-btn: linear-gradient(135deg, #38a9ff 0%, #22d3ee 100%);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #93a9c2;
}

* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: #080f1d !important;
    color: var(--text-secondary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Ambient cyber background decoration */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 10% 20%, rgba(56, 169, 255, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 30%, rgba(56, 169, 255, 0.05) 0%, transparent 45%),
        linear-gradient(135deg, rgba(8, 15, 29, 0.98) 0%, #080f1d 100%);
    pointer-events: none;
    z-index: -2;
}

/* Diagonal subtle ambient lines */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        linear-gradient(115deg, transparent 40%, rgba(56, 169, 255, 0.03) 45%, transparent 50%),
        linear-gradient(245deg, transparent 40%, rgba(56, 169, 255, 0.03) 45%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* -------------------------------------------------------------
   Top Navigation Bar
   ------------------------------------------------------------- */
.cyber-navbar {
    background: #080f1d !important;
    border-bottom: 1px solid #233d5a;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 6px;
    filter: none !important;
    box-shadow: none !important;
    transition: transform 0.2s ease;
}

.brand-wrapper:hover .brand-logo-img {
    transform: scale(1.05);
    filter: none !important;
    box-shadow: none !important;
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-transform: uppercase;
}

.brand-text .brand-accent {
    color: var(--accent-red);
}

.nav-v-divider {
    width: 1px;
    height: 26px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 20px;
}

.cyber-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cyber-nav-item {
    position: relative;
}

.cyber-nav-link {
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 4px;
    transition: color 0.2s ease;
}

.cyber-nav-link:hover {
    color: #ffffff;
}

.cyber-nav-link.active {
    color: #ffffff;
    font-weight: 600;
}

.cyber-nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-red);
    border-radius: 4px;
    box-shadow: 0 0 12px var(--accent-red);
}

/* Right Section of Navbar */
.nav-right-cluster {
    display: flex;
    align-items: center;
}

.saldo-pill {
    background: rgba(16, 30, 50, 0.85);
    border: 1px solid #233d5a;
    border-radius: 12px;
    padding: 7px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.saldo-icon {
    color: #93a9c2;
    font-size: 18px;
    display: flex;
    align-items: center;
}

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

.saldo-label {
    font-size: 10.5px;
    font-weight: 500;
    color: #93a9c2;
    letter-spacing: 0.3px;
}

.saldo-amount {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 10px;
    transition: background 0.2s;
}

.user-profile-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.user-status-dot {
    width: 9px;
    height: 9px;
    background: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-red);
    display: inline-block;
}

/* -------------------------------------------------------------
   Center Content Card (Create License)
   ------------------------------------------------------------- */
.cyber-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    box-shadow: var(--border-red-glow);
    padding: 32px 36px 36px 36px;
    max-width: 840px;
    margin: 45px auto 60px auto;
    position: relative;
    backdrop-filter: blur(14px);
}

.cyber-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 6px;
}

.cyber-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cyber-title-indicator {
    width: 3.5px;
    height: 22px;
    background: var(--accent-red);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-red);
}

.cyber-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.3px;
}

.cyber-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cyber-icon-btn {
    width: 40px;
    height: 40px;
    background: rgba(16, 30, 50, 0.85);
    border: 1px solid #233d5a;
    border-radius: 10px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
}

.cyber-icon-btn:hover {
    color: #ffffff;
    border-color: var(--accent-red);
    background: rgba(56, 169, 255, 0.1);
    box-shadow: 0 0 12px rgba(56, 169, 255, 0.25);
}

/* -------------------------------------------------------------
   Form Controls
   ------------------------------------------------------------- */
.cyber-label {
    font-size: 13.5px;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 9px;
    display: block;
}

.cyber-input, .cyber-select {
    width: 100%;
    height: 48px;
    background-color: var(--bg-input) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    padding: 10px 16px !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.cyber-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    cursor: pointer;
}

.cyber-select option {
    background-color: #101e32 !important;
    color: #ffffff !important;
    padding: 10px;
}

.cyber-input:focus, .cyber-select:focus {
    background-color: var(--bg-input-focus) !important;
    border-color: rgba(56, 169, 255, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(56, 169, 255, 0.16) !important;
}

.cyber-input[readonly] {
    background-color: rgba(16, 30, 50, 0.7) !important;
    color: #93a9c2 !important;
    cursor: not-allowed;
}

/* Custom Checkbox */
.cyber-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    user-select: none;
}

.cyber-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background-color: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.2);
    accent-color: var(--accent-red);
    cursor: pointer;
}

/* Generate Button */
.cyber-btn-primary {
    background: var(--accent-red-btn) !important;
    color: #080f1d !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 36px !important;
    height: 46px !important;
    box-shadow: 0 4px 20px rgba(56, 169, 255, 0.45) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.cyber-btn-primary:hover {
    filter: brightness(1.12);
    box-shadow: 0 6px 25px rgba(56, 169, 255, 0.6) !important;
    transform: translateY(-1px);
    color: #080f1d !important;
}

.cyber-btn-primary:active {
    transform: translateY(1px);
}

/* -------------------------------------------------------------
   Dropdown Menu
   ------------------------------------------------------------- */
.cyber-dropdown {
    background: #080f1d !important;
    border: 1px solid #233d5a !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85) !important;
    padding: 8px !important;
}

.cyber-dropdown .dropdown-item {
    color: #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-size: 13.5px !important;
    transition: background 0.15s ease !important;
}

.cyber-dropdown .dropdown-item:hover {
    background: rgba(56, 169, 255, 0.12) !important;
    color: #ffffff !important;
}

.cyber-dropdown .dropdown-divider {
    border-color: #233d5a !important;
    margin: 6px 0 !important;
}

/* -------------------------------------------------------------
   Tables & DataTables
   ------------------------------------------------------------- */
.table {
    color: #cbd5e1 !important;
    border-color: #233d5a !important;
}

.table th {
    background-color: #101e32 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-bottom: 2px solid rgba(56, 169, 255, 0.4) !important;
    font-size: 13.5px !important;
    padding: 14px 12px !important;
}

.table td {
    background-color: transparent !important;
    color: #cbd5e1 !important;
    border-color: #233d5a !important;
    vertical-align: middle !important;
    font-size: 13.5px !important;
    padding: 12px !important;
}

.table-hover tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    background-color: var(--bg-input) !important;
    border: 1px solid var(--border-color) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    outline: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--accent-red) !important;
    color: #080f1d !important;
    border: none !important;
    border-radius: 6px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(56, 169, 255, 0.2) !important;
    color: #ffffff !important;
    border: none !important;
}

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.cyber-footer {
    padding: 24px 0;
    text-align: left;
    color: #93a9c2;
    font-size: 12.5px;
    border-top: 1px solid #233d5a;
    margin-top: auto;
}

.cyber-footer .footer-brand {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 500;
}

/* ===== Mobile bottom navigation bar ===== */
.volt-bottom-nav { display: none; }
@media (max-width: 991.98px) {
    .volt-bottom-nav {
        display: flex;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
        background: rgba(8, 15, 29, 0.97);
        -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
        border-top: 1px solid rgba(56, 169, 255, 0.2);
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.55);
        padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
        justify-content: space-around; align-items: stretch;
    }
    .volt-bottom-nav .vbn-item {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
        color: #93a9c2; text-decoration: none; font-size: 10px; font-weight: 600;
        padding: 5px 2px; border-radius: 10px; letter-spacing: .2px;
        transition: color .15s, background .15s;
    }
    .volt-bottom-nav .vbn-item i { font-size: 19px; line-height: 1; }
    .volt-bottom-nav .vbn-item.active { color: #38a9ff; background: rgba(56, 169, 255, 0.08); }
    .volt-bottom-nav .vbn-item.active i { filter: drop-shadow(0 0 6px rgba(56, 169, 255, .55)); }
    .volt-bottom-nav .vbn-item:active { background: rgba(255, 255, 255, 0.04); }
    .volt-bottom-nav .vbn-logout { color: #93a9c2; }
    .volt-bottom-nav .vbn-logout:active { color: #22d3ee; }
    /* Room so the bar never covers page content */
    body.app-authenticated .cyber-main-wrap { padding-bottom: 84px !important; }
}

/* ===== Compact account balance on phones (keep it visible everywhere) ===== */
@media (max-width: 575.98px) {
    .cyber-navbar .brand-text { display: none !important; }
    .saldo-pill { padding: 5px 11px !important; }
    .saldo-pill .saldo-label { display: none !important; }
    .saldo-pill .saldo-amount { font-size: 13px !important; }
}

/* SweetAlert2 dark override */
.swal2-popup {
    background: #080f1d !important;
    border: 1px solid var(--border-card) !important;
    color: #ffffff !important;
    border-radius: 16px !important;
}

.swal2-title {
    color: #ffffff !important;
}

/* -------------------------------------------------------------
   PWF License Server Dark UI Style (Identical to reference)
   ------------------------------------------------------------- */
.pwf-page-wrap {
    padding: 12px 0 30px 0;
    max-width: 100%;
}

.pwf-header-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.pwf-breadcrumb {
    font-size: 12px;
    color: #93a9c2;
    margin-bottom: 4px;
}

.pwf-breadcrumb a {
    color: #38a9ff;
    text-decoration: none;
    font-weight: 500;
}

.pwf-breadcrumb a:hover {
    text-decoration: underline;
}

.pwf-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.pwf-header-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Header Action Buttons — unified dark-outline style with accent icons */
.pwf-btn-gen,
.pwf-btn-import,
.pwf-btn-export,
.pwf-btn-unfreeze-all,
.pwf-btn-resethwids,
.pwf-btn-revoke {
    background-color: #101e32 !important;
    color: #e6edf3 !important;
    border: 1px solid #233d5a !important;
    border-radius: 7px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    padding: 6px 14px !important;
    height: 33px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pwf-btn-gen:hover,
.pwf-btn-import:hover,
.pwf-btn-export:hover,
.pwf-btn-unfreeze-all:hover,
.pwf-btn-resethwids:hover,
.pwf-btn-revoke:hover {
    background-color: #101e32 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
}

/* Accent icon colors keep each button recognizable while the shells stay unified */
.pwf-btn-gen i          { color: #10b981; }
.pwf-btn-import i       { color: #3b82f6; }
.pwf-btn-export i       { color: #a78bfa; }
.pwf-btn-unfreeze-all i { color: #06b6d4; }
.pwf-btn-resethwids i   { color: #f59e0b; }
.pwf-btn-revoke i       { color: #ef4444; }

/* On hover the border picks up each button's accent */
.pwf-btn-gen:hover          { border-color: rgba(16, 185, 129, 0.55) !important; }
.pwf-btn-import:hover       { border-color: rgba(59, 130, 246, 0.55) !important; }
.pwf-btn-export:hover       { border-color: rgba(167, 139, 250, 0.55) !important; }
.pwf-btn-unfreeze-all:hover { border-color: rgba(6, 182, 212, 0.55) !important; }
.pwf-btn-resethwids:hover   { border-color: rgba(245, 158, 11, 0.55) !important; }
.pwf-btn-revoke:hover       { border-color: rgba(239, 68, 68, 0.55) !important; }

/* Alert Banner for Frozen Keys */
.pwf-alert-banner {
    background: linear-gradient(90deg, #07191d 0%, #0c2328 100%);
    border: 1px solid #134e56;
    border-radius: 9px;
    padding: 12px 18px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pwf-alert-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pwf-alert-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.pwf-alert-title {
    font-size: 13.5px;
    color: #f1f5f9;
    margin-bottom: 2px;
}

.pwf-btn-show-them {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    padding: 2px 7px;
    margin-left: 6px;
    font-weight: 500;
}
.pwf-btn-show-them:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.pwf-alert-sub {
    font-size: 12px;
    color: #93a9c2;
}

.pwf-alert-since {
    font-size: 11px;
    color: #93a9c2;
    margin-top: 2px;
}

.pwf-alert-right .pwf-btn-unfreeze-inline {
    background-color: #06b6d4 !important;
    color: #000000 !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 12.5px !important;
    padding: 6px 16px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.pwf-alert-right .pwf-btn-unfreeze-inline:hover {
    background-color: #22d3ee !important;
}

/* 7 Metric Cards in Row */
.pwf-stats-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

@media (max-width: 1200px) {
    .pwf-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 768px) {
    .pwf-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pwf-stat-card {
    background: linear-gradient(135deg, rgba(16, 30, 50, 0.98) 0%, #080f1d 100%);
    border: 1px solid #233d5a;
    border-radius: 8px;
    padding: 12px 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 86px;
}

.pwf-stat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pwf-stat-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #93a9c2;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.pwf-stat-icon-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.pwf-icon-total {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}
.pwf-icon-active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.pwf-icon-unused {
    background: rgba(148, 163, 184, 0.12);
    color: #93a9c2;
}
.pwf-icon-expired {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}
.pwf-icon-banned {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
.pwf-icon-paused {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}
.pwf-icon-logins {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

.pwf-stat-val {
    font-size: 23px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin: 4px 0 2px 0;
}

.pwf-stat-sub {
    font-size: 11px;
    color: #93a9c2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pwf-stat-sub.text-green-pct {
    color: #10b981;
    font-weight: 600;
}

/* Filter Bar */
.pwf-filter-row {
    background: linear-gradient(180deg, rgba(16, 30, 50, 0.98) 0%, #080f1d 100%);
    border: 1px solid #233d5a;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.pwf-filter-controls {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.pwf-select, .pwf-input {
    background-color: #080f1d !important;
    border: 1px solid #233d5a !important;
    color: #e6edf3 !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    height: 32px;
    padding: 0 10px;
    outline: none;
}
.pwf-select:focus, .pwf-input:focus {
    border-color: #38a9ff !important;
    box-shadow: 0 0 0 2px rgba(56, 169, 255, 0.15) !important;
}

textarea.pwf-input {
    height: auto !important;
    min-height: 120px;
    padding: 10px !important;
}

.pwf-input-search {
    min-width: 190px;
}

.pwf-btn-clear {
    background: transparent;
    border: 1px solid #233d5a;
    color: #c9d1d9;
    border-radius: 6px;
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.pwf-btn-clear:hover {
    background: #233d5a;
    color: #fff;
}

.pwf-filter-pager {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pwf-pager-info {
    font-size: 12px;
    color: #93a9c2;
}

/* PWF Table Container */
.pwf-table-card {
    background: linear-gradient(180deg, rgba(16, 30, 50, 0.98) 0%, #080f1d 100%);
    border: 1px solid #233d5a;
    border-radius: 8px;
    overflow: hidden;
}

.pwf-table {
    width: 100% !important;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.pwf-table thead th {
    background-color: #080f1d !important;
    color: #93a9c2 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid #233d5a !important;
    padding: 10px 12px !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

.pwf-table tbody td {
    background-color: transparent !important;
    border-bottom: 1px solid #233d5a !important;
    color: #c9d1d9 !important;
    font-size: 12.5px !important;
    padding: 9px 12px !important;
    vertical-align: middle !important;
}

.pwf-table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

/* Pill Badges */
.pwf-badge {
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2.5px 8px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pwf-badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pwf-badge-unused {
    background: #101e32;
    color: #93a9c2;
    border: 1px solid #233d5a;
}

.pwf-badge-paused {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.pwf-badge-expired {
    background: rgba(180, 83, 9, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(180, 83, 9, 0.4);
}

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

/* Date Formats */
.pwf-date-top {
    font-size: 12.5px;
    color: #e6edf3;
    font-weight: 500;
    line-height: 1.2;
}
.pwf-date-sub {
    font-size: 11px;
    color: #93a9c2;
    margin-top: 1px;
}

/* Action Buttons */
.pwf-actions-wrap {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.pwf-action-sq {
    width: 29px;
    height: 29px;
    border-radius: 8px;
    background: #101e32;
    border: 1px solid #233d5a;
    color: #93a9c2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s;
    padding: 0;
}
.pwf-action-sq:hover {
    background: #101e32;
    color: #f0f6fc;
    border-color: #233d5a;
    transform: translateY(-1px);
}
.pwf-action-sq.text-danger:hover {
    color: #ef4444 !important;
    border-color: #ef4444 !important;
}
.pwf-action-sq.text-info:hover {
    color: #06b6d4 !important;
    border-color: #06b6d4 !important;
}

/* Per-action accent colors — recognizable at a glance, full colour on hover */
.pwf-act-view i   { color: #3b82f6; }
.pwf-act-edit i   { color: #f59e0b; }
.pwf-act-copy i   { color: #22c55e; }
.pwf-act-freeze i { color: #06b6d4; }
.pwf-act-more i   { color: #93a9c2; }
.pwf-act-view:hover   { border-color: rgba(59, 130, 246, 0.6) !important; color: #3b82f6 !important; }
.pwf-act-edit:hover   { border-color: rgba(245, 158, 11, 0.6) !important; color: #f59e0b !important; }
.pwf-act-copy:hover   { border-color: rgba(34, 197, 94, 0.6) !important; color: #22c55e !important; }
.pwf-act-freeze:hover { border-color: rgba(6, 182, 212, 0.6) !important; color: #06b6d4 !important; }
.pwf-act-more:hover   { border-color: #233d5a !important; color: #f0f6fc !important; }

/* Copy Button next to Key */
.pwf-key-copy {
    background: transparent;
    border: none;
    color: #93a9c2;
    padding: 2px 4px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
}
.pwf-key-copy:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* DataTables pagination override to match PWF */
.pwf-table-card .dataTables_wrapper .dataTables_paginate {
    padding: 10px 14px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}
.pwf-table-card .dataTables_wrapper .dataTables_paginate .paginate_button {
    background: #233d5a !important;
    border: 1px solid #233d5a !important;
    color: #c9d1d9 !important;
    border-radius: 5px !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    margin: 0 2px !important;
    cursor: pointer !important;
}
.pwf-table-card .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #38a9ff !important;
    border-color: #38a9ff !important;
    color: #080f1d !important;
    font-weight: 700 !important;
}
.pwf-table-card .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #101e32 !important;
    color: #ffffff !important;
}
.pwf-table-card .dataTables_wrapper .dataTables_info {
    padding: 12px 16px;
    color: #93a9c2;
    font-size: 12px;
}

/* =============================================================
   NOVA - Dark Blue UI
   ============================================================= */

/* Overall Shell Layout */
.cyber-app-shell {
    display: flex;
    min-height: calc(100vh - 65px);
    width: 100%;
    position: relative;
}

/* Left Cyber Floating Sidebar */
.cyber-sidebar {
    width: 230px;
    min-width: 230px;
    background: #080f1d !important;
    border: 1px solid #233d5a;
    border-radius: 16px;
    margin: 20px 0 20px 24px;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cyber-side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #93a9c2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.cyber-side-link i {
    font-size: 17px;
    transition: color 0.2s;
}

.cyber-side-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.cyber-side-link.active {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(56, 169, 255, 0.18) 0%, rgba(56, 169, 255, 0.03) 100%) !important;
    border: 1px solid #38a9ff !important;
    box-shadow: 0 0 16px rgba(56, 169, 255, 0.25) !important;
}

.cyber-side-link.active i {
    color: #38a9ff !important;
}

/* Sidebar Footer & Slashes */
.sidebar-bottom-block {
    position: relative;
    padding-top: 120px;
}

.sidebar-cyber-slashes {
    display: none !important;
}

.slash-thick {
    display: inline-block;
    background: linear-gradient(180deg, #38a9ff 0%, rgba(56, 169, 255, 0.05) 90%, transparent 100%);
    transform: skewX(-26deg);
    border-radius: 4px;
    box-shadow: none;
}

.sidebar-cyber-slashes .slash-thick {
    width: 6px;
    height: 68px;
}

.sidebar-cyber-slashes .s2 {
    height: 84px;
    opacity: 0.8;
}

.sidebar-cyber-slashes .s3 {
    height: 52px;
    opacity: 0.55;
}

.sidebar-brand-copy {
    font-size: 11px;
    color: #93a9c2;
    position: relative;
    z-index: 2;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.4px;
    font-weight: 500;
}

.sidebar-brand-copy .footer-brand {
    color: var(--accent-red);
    font-weight: 700;
}

/* Main Content Wrapper */
.cyber-main-wrap {
    flex: 1;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}

.cyber-page-content {
    flex: 1;
}

.cyber-page-footer {
    margin-top: 30px;
    padding-top: 15px;
    font-size: 12px;
    color: #93a9c2;
    position: relative;
}

.page-corner-decor-slashes {
    display: none !important;
}

.page-corner-decor-slashes .slash-thick {
    width: 7px;
    height: 44px;
    background: linear-gradient(180deg, #38a9ff 0%, rgba(56, 169, 255, 0.08) 100%);
    transform: skewX(-26deg);
    box-shadow: none;
}

/* Blue Vertical Title Indicator Bar */
.cyber-title-bar {
    width: 5px;
    height: 38px;
    background: #38a9ff;
    border-radius: 6px;
    box-shadow: 0 0 14px #38a9ff, 0 0 28px rgba(56, 169, 255, 0.6);
    flex-shrink: 0;
    animation: neonBarPulse 2.5s ease-in-out infinite alternate;
}

.cyber-title-bar.sm {
    width: 4px;
    height: 22px;
    box-shadow: 0 0 10px #38a9ff;
}

@keyframes neonBarPulse {
    0% {
        box-shadow: 0 0 10px #38a9ff, 0 0 20px rgba(56, 169, 255, 0.4);
    }
    100% {
        box-shadow: 0 0 18px #38a9ff, 0 0 35px rgba(56, 169, 255, 0.85);
    }
}

/* Top IP Capsule Badge */
.cyber-ip-badge {
    background: rgba(16, 30, 50, 0.95);
    border: 1px solid #233d5a;
    border-radius: 30px;
    padding: 7px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.ip-glow-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981, 0 0 18px rgba(16, 185, 129, 0.7);
    animation: pulseDot 2s infinite;
}

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

.ip-text {
    font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
}

/* 5 Stat Cards Grid */
.cyber-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1400px) {
    .cyber-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 576px) {
    .cyber-stats-grid {
        grid-template-columns: 1fr;
    }
}

.cyber-stat-card {
    background: linear-gradient(135deg, rgba(16, 30, 50, 0.98) 0%, #080f1d 100%);
    border: 1px solid #233d5a;
    border-radius: 14px;
    padding: 22px 24px 18px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(56, 169, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cyber-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 169, 255, 0.4);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(56, 169, 255, 0.18);
}

.stat-top-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ring-red {
    border: 1.5px solid #38a9ff;
    color: #38a9ff;
    background: rgba(56, 169, 255, 0.08);
    box-shadow: 0 0 14px rgba(56, 169, 255, 0.3);
}

.ring-white {
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.stat-meta {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #93a9c2;
    margin-bottom: 2px;
}

.stat-number-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
}

.stat-subtext {
    font-size: 12px;
    color: #93a9c2;
    font-weight: 500;
}

.stat-glow-bar {
    height: 3px;
    width: 60px;
    border-radius: 3px;
    margin-top: 14px;
}

.bar-red {
    background: #38a9ff;
    box-shadow: 0 0 10px #38a9ff, 0 0 18px rgba(56, 169, 255, 0.6);
}

.bar-white {
    background: #ffffff;
    opacity: 0.65;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Quick Server Operations Card */
.cyber-section-card {
    background: linear-gradient(180deg, rgba(16, 30, 50, 0.98) 0%, #080f1d 100%);
    border: 1px solid #233d5a;
    border-radius: 16px;
    padding: 22px 28px;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* Button Variants */
.btn-cyber-primary {
    background: #38a9ff !important;
    color: #080f1d !important;
    border: none !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    border-radius: 10px !important;
    padding: 10px 22px !important;
    box-shadow: 0 0 25px rgba(56, 169, 255, 0.6) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.btn-cyber-primary:hover {
    box-shadow: 0 0 35px rgba(56, 169, 255, 0.9) !important;
    transform: translateY(-1px) !important;
    color: #080f1d !important;
}

.btn-cyber-dark {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #cbd5e1 !important;
    border: 1px solid #233d5a !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.btn-cyber-dark:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px) !important;
}

.btn-cyber-red-outline {
    background: transparent !important;
    color: #38a9ff !important;
    border: 1px solid #38a9ff !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 0 15px rgba(56, 169, 255, 0.2) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.btn-cyber-red-outline:hover {
    background: rgba(56, 169, 255, 0.12) !important;
    color: #38a9ff !important;
    box-shadow: 0 0 25px rgba(56, 169, 255, 0.45) !important;
    transform: translateY(-1px) !important;
}

/* Live Active Sessions Card & Table */
.cyber-table-card {
    background: linear-gradient(180deg, rgba(16, 30, 50, 0.98) 0%, #080f1d 100%);
    border: 1px solid #233d5a;
    border-radius: 16px;
    padding: 24px 28px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.card-corner-slashes {
    display: flex;
    gap: 6px;
}

.card-corner-slashes .slash-bar {
    display: inline-block;
    width: 6px;
    height: 18px;
    background: #38a9ff;
    transform: skewX(-25deg);
    border-radius: 2px;
    box-shadow: 0 0 10px #38a9ff;
}

.cyber-table {
    width: 100%;
    margin-bottom: 0;
    color: #cbd5e1;
    border-collapse: separate;
    border-spacing: 0;
}

.cyber-table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    color: #93a9c2;
    padding: 14px 16px;
    border-bottom: 1px solid #233d5a;
}

.cyber-table td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #233d5a;
}

.badge-online-glow {
    background: rgba(16, 185, 129, 0.14);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.badge-game-red {
    background: #38a9ff;
    color: #080f1d;
    border-radius: 8px;
    padding: 4px 14px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 0 12px rgba(56, 169, 255, 0.5);
    display: inline-block;
}

.text-ip-neon {
    color: #22d3ee;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13.5px;
    font-weight: 600;
}

.btn-table-action {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #233d5a;
    color: #93a9c2;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-table-action:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.btn-table-action.red-outline {
    border-color: rgba(56, 169, 255, 0.4);
    color: #38a9ff;
    background: rgba(56, 169, 255, 0.05);
}

.btn-table-action.red-outline:hover {
    border-color: #38a9ff;
    background: rgba(56, 169, 255, 0.18);
    box-shadow: 0 0 12px rgba(56, 169, 255, 0.4);
}

/* User avatar ring in navbar */
.user-avatar-ring {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #38a9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(56, 169, 255, 0.06);
    padding: 2px;
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    filter: none !important;
    display: block;
}

.user-profile-btn.dropdown-toggle::after {
    display: none !important;
}
