/* ==========================================================================
   AUTHLYX PREMIUM THEME (DARK NAVY GLOW)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&display=swap');

:root {
    color-scheme: dark;
    --bg-main: #060813;
    --bg-surface: #0a0e1a;
    --bg-surface-hover: #121829;
    --bg-input: #04060d;

    --border-color: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.08);

    --text-main: #ffffff;
    --text-muted: #8c9ba5;

    /* Vibrant Premium Colors */
    --color-blue: #3b82f6;
    --color-blue-hover: #2563eb;
    --color-green: #10b981;
    --color-green-hover: #059669;
    --color-purple: #a855f7;
    --color-purple-hover: #9333ea;
    --color-teal: #06b6d4;
    --color-teal-hover: #0891b2;
    --color-orange: #f97316;
    --color-orange-hover: #ea580c;
    --color-red: #ef4444;
    --color-red-hover: #dc2626;
    --color-pink: #ec4899;
    --color-pink-hover: #db2777;

    --font-sans: 'JetBrains Mono', monospace;
    --font-mono: 'JetBrains Mono', monospace;

    /* Glowing accents */
    --shadow-blue: 0 0 22px rgba(59, 130, 246, 0.45);
    --shadow-cyan: 0 0 22px rgba(6, 182, 212, 0.45);
    --shadow-purple: 0 0 22px rgba(168, 85, 247, 0.45);
    --shadow-green: 0 0 22px rgba(16, 185, 129, 0.45);
    --shadow-teal: 0 0 22px rgba(20, 184, 166, 0.45);
    --shadow-pink: 0 0 22px rgba(236, 72, 153, 0.45);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Base Components */
.hidden {
    display: none !important;
}

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-blue-hover);
    text-decoration: none;
}

/* Forms & Inputs */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="email"],
input[type="datetime-local"],
input[type="date"],
select,
textarea,
.form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* Select Option Dark Styling */
select option,
select optgroup {
    background-color: #0d121f !important;
    color: #f1f5f9 !important;
    padding: 10px 14px !important;
}

select option:hover,
select option:focus,
select option:checked {
    background-color: #1e293b !important;
    color: #38bdf8 !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #fff;
}

.btn-primary,
.btn-blue {
    background: var(--color-blue);
}

.btn-primary:hover,
.btn-blue:hover {
    background: var(--color-blue-hover);
    box-shadow: var(--shadow-blue);
}

.btn-green {
    background: var(--color-green);
}

.btn-green:hover {
    background: var(--color-green-hover);
    box-shadow: var(--shadow-green);
}

.btn-purple {
    background: var(--color-purple);
}

.btn-purple:hover {
    background: var(--color-purple-hover);
    box-shadow: var(--shadow-purple);
}

.btn-teal {
    background: var(--color-teal);
}

.btn-teal:hover {
    background: var(--color-teal-hover);
    box-shadow: var(--shadow-teal);
}

.btn-orange {
    background: var(--color-orange);
}

.btn-orange:hover {
    background: var(--color-orange-hover);
}

.btn-red,
.btn-danger {
    background: var(--color-red);
}

.btn-red:hover,
.btn-danger:hover {
    background: var(--color-red-hover);
}

.btn-cyan {
    background: var(--color-teal);
}

.btn-cyan:hover {
    background: var(--color-teal-hover);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-light);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.dashboard-layout:not(.hidden) {
    animation: viewFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #05070f;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100%;
}

.sidebar-brand {
    padding: 24px 20px 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.sidebar-brand i {
    color: var(--color-blue);
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.85));
}

.sidebar-brand .brand-accent {
    color: var(--color-blue);
    font-weight: 800;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.65), 0 0 25px rgba(59, 130, 246, 0.35);
}

.sidebar-app-selector {
    padding: 0 20px 16px;
}

.app-selector-wrapper {
    position: relative;
    width: 100%;
}

.app-selector-wrapper select {
    padding-left: 32px;
    padding-right: 32px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='none' stroke='%238c9ba5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='m6 9 6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

.selector-glow-dot {
    position: static;
    transform: none;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-blue);
    box-shadow: 0 0 8px var(--color-blue), 0 0 16px rgba(59, 130, 246, 0.5);
    pointer-events: none;
    animation: selector-pulse-dot 2s infinite ease-in-out;
}

.sidebar-tabs {
    display: flex;
    gap: 6px;
    padding: 0 20px 16px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-tab-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.sidebar-tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.02);
}

.sidebar-tab-btn.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--color-blue);
}

.sidebar-tab-btn.active:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
}

.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

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

.nav-item i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
}

.nav-item:hover {
    color: var(--text-main);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.08);
}

.nav-item.active {
    color: var(--text-main);
    background: rgba(59, 130, 246, 0.08);
    font-weight: 600;
}

.nav-item.active:hover {
    background: rgba(59, 130, 246, 0.12);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.nav-item.active i {
    color: var(--color-blue);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background-color: var(--color-blue);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.nav-item.active::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-blue);
    box-shadow: 0 0 8px var(--color-blue), 0 0 15px rgba(59, 130, 246, 0.4);
    animation: nav-pulse-dot 1.5s infinite ease-in-out;
}

.nav-badge-lock {
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0.5;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: #03050c;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.partner-banner-sidebar {
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    color: #34d399;
    transition: all 0.3s;
    cursor: pointer;
}

.partner-banner-sidebar:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.partner-banner-sidebar i {
    font-size: 0.8rem;
}

.sidebar-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    position: relative;
}

.sidebar-user-avatar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid #03050c;
    /* matches sidebar footer background */
    background-color: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
    animation: live-blink-dot 1.8s infinite ease-in-out;
}

.sidebar-user-details {
    display: flex;
    flex-direction: column;
}

.sidebar-user-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.sidebar-user-role {
    font-size: 0.7rem;
    color: var(--color-green);
    font-weight: 600;
}

.sidebar-user-options {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.sidebar-user-options:hover {
    color: var(--text-main);
}

/* Main Content Wrapper */
.main-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-main);
}

/* Top Navbar */
.top-navbar {
    position: relative;
    z-index: 1001;
    /* Layer navbar above main content */
    height: 65px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: rgba(10, 14, 26, 0.3);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.navbar-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.navbar-link-item {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.navbar-link-item:hover {
    color: var(--text-main);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-bell {
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-bell:hover {
    color: var(--text-main);
}

.notification-bell.has-unread::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: var(--color-blue);
    border-radius: 50%;
    box-shadow: var(--shadow-blue);
    display: block;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Notifications Dropdown system */
.notification-bell-container {
    position: relative;
    display: inline-block;
}

.notif-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: -10px;
    width: 360px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.1);
    z-index: 1000;
    overflow: hidden;
    transform-origin: top right;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.notif-dropdown-menu.hidden {
    display: none !important;
}

.notif-dropdown-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.notif-dropdown-header h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.notif-broadcast-box {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(59, 130, 246, 0.02);
}

.notif-broadcast-box textarea {
    width: 100%;
    height: 70px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    padding: 10px 12px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    resize: none;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 10px;
}

.notif-broadcast-box textarea:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

.notif-broadcast-actions {
    display: flex;
    justify-content: flex-end;
}

.notif-list {
    max-height: 300px;
    overflow-y: auto;
}

.notif-list::-webkit-scrollbar {
    width: 6px;
}

.notif-list::-webkit-scrollbar-track {
    background: transparent;
}

.notif-list::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

.notif-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

.notif-empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.notif-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: background-color 0.2s;
}

.notif-item:hover {
    background-color: var(--bg-surface-hover);
}

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

.notif-item-content {
    padding-right: 24px;
}

.notif-item-text {
    font-size: 0.8rem;
    color: var(--text-main);
    line-height: 1.4;
    word-break: break-word;
}

.notif-item-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.notif-item-delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 2px 6px;
    line-height: 1;
    transition: color 0.2s, background-color 0.2s;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-item-delete-btn:hover {
    color: var(--color-red);
    background-color: rgba(239, 68, 68, 0.1);
}

.top-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.top-profile:hover {
    background: rgba(255, 255, 255, 0.05);
}

.top-profile-container {
    position: relative;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 180px;
    background: #0a0e1a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 6px 0;
    transform-origin: top right;
    transition: all 0.2s ease;
}

.profile-dropdown-menu:not(.hidden) {
    animation: dropdownFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.profile-dropdown-menu.hidden {
    display: none !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: all 0.2s;
    cursor: pointer;
}

.dropdown-item i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

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

.dropdown-item.logout-item {
    color: var(--color-red);
    opacity: 0.85;
}

.dropdown-item.logout-item:hover {
    color: var(--color-red-hover);
    background: rgba(239, 68, 68, 0.08);
    opacity: 1;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

.profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--color-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    position: relative;
}

.profile-avatar::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid #05070f;
    /* dark background border to pop out */
    background-color: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
    animation: live-blink-dot 1.8s infinite ease-in-out;
}

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

.profile-name {
    font-size: 0.8rem;
    font-weight: 700;
}

.profile-role {
    display: none;
    /* hidden, handled by avatar / profile name */
}

/* Content Area */
.main-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 28px;
}

.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--text-main);
}

.breadcrumb i {
    font-size: 0.65rem;
}

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

.page-header-info h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.page-header-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.page-header-actions {
    display: flex;
    gap: 10px;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content {
    display: none;
}

.tab-content.active-content {
    display: block;
    animation: tabFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Metrics Grid (Row 2) */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

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

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

.metric-card {
    background: rgba(10, 14, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.metric-card:hover {
    background: rgba(10, 14, 26, 0.65);
    transform: translateY(-3px);
}

.metric-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.metric-card-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
}

.metric-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all 0.3s;
}

/* Metrics Grid Layout & Classy Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

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

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

.metric-card {
    background: linear-gradient(135deg, rgba(13, 18, 35, 0.75) 0%, rgba(8, 12, 24, 0.9) 100%);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

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

.metric-card:hover {
    background: linear-gradient(135deg, rgba(16, 24, 48, 0.85) 0%, rgba(10, 16, 32, 0.95) 100%);
    transform: translateY(-4px) scale(1.02);
}

.metric-card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: #94a3b8;
}

.metric-card-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.metric-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glowing accent colors for metric cards */
.metric-apps {
    border-color: rgba(59, 130, 246, 0.18);
}

.metric-apps:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.25), 0 0 15px rgba(59, 130, 246, 0.2);
}

.metric-apps .metric-card-icon {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.35);
}

.metric-licenses {
    border-color: rgba(6, 182, 212, 0.18);
}

.metric-licenses:hover {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.25), 0 0 15px rgba(6, 182, 212, 0.2);
}

.metric-licenses .metric-card-icon {
    background: rgba(6, 182, 212, 0.12);
    color: #06b6d4;
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.35);
}

.metric-users {
    border-color: rgba(168, 85, 247, 0.18);
}

.metric-users:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.25), 0 0 15px rgba(168, 85, 247, 0.2);
}

.metric-users .metric-card-icon {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
}

.metric-devices {
    border-color: rgba(16, 185, 129, 0.18);
}

.metric-devices:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.25), 0 0 15px rgba(16, 185, 129, 0.2);
}

.metric-devices .metric-card-icon {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.metric-staffs {
    border-color: rgba(20, 184, 166, 0.18);
}

.metric-staffs:hover {
    border-color: rgba(20, 184, 166, 0.5);
    box-shadow: 0 12px 30px rgba(20, 184, 166, 0.25), 0 0 15px rgba(20, 184, 166, 0.2);
}

.metric-staffs .metric-card-icon {
    background: rgba(20, 184, 166, 0.12);
    color: #14b8a6;
    box-shadow: 0 0 16px rgba(20, 184, 166, 0.35);
}

.metric-resellers {
    border-color: rgba(236, 72, 153, 0.18);
}

.metric-resellers:hover {
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.25), 0 0 15px rgba(236, 72, 153, 0.2);
}

.metric-resellers .metric-card-icon {
    background: rgba(236, 72, 153, 0.12);
    color: #ec4899;
    box-shadow: 0 0 16px rgba(236, 72, 153, 0.35);
}

/* Overview panel layout */
.overview-panel-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

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

.widget-card {
    background: rgba(10, 14, 28, 0.75);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 420px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.widget-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(12, 17, 34, 0.85);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.widget-header {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
}

.widget-title-area {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.widget-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.widget-subtitle {
    font-size: 0.75rem;
    color: #8c9ba5;
}

.widget-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Call Usage Tabs & Layout */
.chart-tabs {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4px;
    border-radius: 10px;
}

.chart-tab-btn {
    background: none;
    border: none;
    color: #8c9ba5;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-tab-btn.active {
    background: rgba(59, 130, 246, 0.18);
    color: #38bdf8;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.chart-container {
    flex-grow: 1;
    position: relative;
    width: 100%;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-svg {
    width: 100%;
    height: 100%;
    min-height: 180px;
}

.chart-no-data {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
    text-align: center;
}

.chart-legend {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.legend-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legend-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.legend-label {
    font-size: 0.7rem;
    color: #8c9ba5;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.owner-id-row {
    padding: 12px 22px;
    background: rgba(59, 130, 246, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

.owner-id-badge {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #38bdf8;
    padding: 3px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Activity Feed Widget */
.activity-feed {
    list-style: none;
    overflow-y: auto;
    flex-grow: 1;
    max-height: 310px;
    padding-right: 6px;
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

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

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

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

.activity-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.activity-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
}

.activity-sub {
    font-size: 0.74rem;
    color: #8c9ba5;
}

.activity-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.activity-time {
    font-size: 0.7rem;
    color: #8c9ba5;
}

.activity-badge {
    font-size: 0.62rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* Partner Ad Banner */
.partner-ad-banner {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 16px;
    padding: 18px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.partner-ad-banner:hover {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.15), 0 0 25px rgba(16, 185, 129, 0.12);
    transform: translateY(-2px);
}

.partner-ad-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #34d399;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.partner-ad-text {
    font-size: 0.85rem;
    color: #94a3b8;
}

.partner-ad-btn {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #38bdf8;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.partner-ad-btn:hover {
    background: #3b82f6;
    color: #ffffff;
    url(https://127.0.0.1:64649/static/artifacts/5062ecd0-e1de-48b3-94cb-87e3e833d153/.user_uploaded/media_1786600540757.jpg?csrf%3Dc573a001-25f9-4b2d-a12e-12a36a822ec7) box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

/* Traditional Cards & Elements */
.card {
    background: rgba(10, 14, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.card-body {
    padding: 20px;
}

/* Credentials List */
.credential-item {
    margin-bottom: 20px;
}

.credential-item:last-child {
    margin-bottom: 0;
}

.credential-item label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}

.credential-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
}

.credential-value {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.credential-box i {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.credential-box i:hover {
    color: var(--text-main);
}

/* Notice Box */
.notice-box {
    background: rgba(59, 130, 246, 0.05);
    border-left: 4px solid var(--color-blue);
    padding: 16px;
    border-radius: 6px;
    margin-top: 20px;
}

.notice-box h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-blue);
    margin-bottom: 4px;
}

.notice-box p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* List Headers & App Cards */
.app-list-header {
    background: rgba(10, 14, 26, 0.3);
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    margin-bottom: 16px;
}

.app-card {
    background: rgba(10, 14, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.app-card:hover {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(10, 14, 26, 0.65);
}

.app-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.app-card-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

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

.app-stats-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

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

.app-stat-col span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.app-stat-col strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.app-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Two Column Layout (Overview/Apps) */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

/* Table Containers & Tables */
.table-container {
    background: rgba(10, 14, 26, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    overflow-x: auto;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container th {
    text-align: left;
    padding: 14px 20px;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(10, 14, 26, 0.3);
    letter-spacing: 0.05em;
    font-weight: 700;
}

.table-container td {
    padding: 16px 20px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

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

.table-container tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

.license-key-cell {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--color-blue) !important;
}

/* Badges for tables */
.badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-block;
}

.badge-unused {
    background: rgba(59, 130, 246, 0.08);
    color: #60a5fa;
}

.badge-used {
    background: rgba(16, 185, 129, 0.08);
    color: #34d399;
}

.badge-banned {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
}

.action-buttons {
    display: flex;
    gap: 6px;
}

.btn-action {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-light);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.btn-action.ban-btn:hover {
    color: #fff;
    background: var(--color-red);
    border-color: var(--color-red);
    box-shadow: var(--shadow-pink);
}

.btn-action.reset-btn:hover {
    color: #fff;
    background: var(--color-green);
    border-color: var(--color-green);
    box-shadow: var(--shadow-green);
}

/* Modals */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalContentScaleUp {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 2000;
    overflow-y: auto;
    padding: 40px 16px;
}

.modal-overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 4, 9, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: -1;
}

.modal-overlay:not(.hidden) {
    animation: modalFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modal-content {
    background: #0a0e1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    padding: 28px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    margin: auto;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
}

.modal-overlay:not(.hidden) .modal-content {
    animation: modalContentScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-main);
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 18px 14px 14px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Toast Inner Layout */
.toast-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast.toast-error .toast-icon-wrapper {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-red);
}

.toast.toast-success .toast-icon-wrapper {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-green);
}

.toast-icon-wrapper i {
    font-size: 1.25rem;
}

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 180px;
    max-width: 280px;
}

.toast-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.toast.toast-error .toast-label {
    color: var(--color-red);
}

.toast.toast-success .toast-label {
    color: var(--color-green);
}

.toast-message {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    font-family: var(--font-sans);
}

.toast-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-left: 8px;
}

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

/* Toast Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: left;
}

.toast.toast-error .toast-progress {
    background: var(--color-red);
}

.toast.toast-success .toast-progress {
    background: var(--color-green);
}

.toast.show .toast-progress {
    animation: toast-progress-bar 4s linear forwards;
}

@keyframes toast-progress-bar {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

/* Login Container */
@keyframes viewFadeIn {
    from {
        opacity: 0;
        transform: scale(0.985);
        filter: blur(3px);
    }

    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.login-split-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    background: #060813;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
}

.login-split-container:not(.hidden) {
    animation: viewFadeIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.login-left-pane {
    flex: 1.1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #04060d;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    padding: 40px;
    z-index: 1;
}

#login-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Glowing background effects */
.left-bg-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(168, 85, 247, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: -1;
    filter: blur(40px);
}

.left-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center;
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 80%);
    -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 80%);
    pointer-events: none;
    z-index: -1;
}

.login-left-content {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.left-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.brand-logo-container {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(6, 11, 25, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 25px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo-container:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 35px rgba(59, 130, 246, 0.55);
}

.brand-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.8));
}

.left-brand h1 {
    font-family: 'Outfit', 'JetBrains Mono', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
    display: flex;
    align-items: center;
}

.left-brand h1 .brand-accent {
    color: #3b82f6;
    text-shadow: 0 0 18px rgba(59, 130, 246, 0.85), 0 0 32px rgba(59, 130, 246, 0.45);
    margin-left: 6px;
}

.left-subtitle {
    font-size: 1rem;
    color: #8c9ba5;
    line-height: 1.6;
    margin-bottom: 48px;
    font-weight: 400;
}

.left-stats-box {
    display: flex;
    align-items: center;
    background: rgba(10, 14, 26, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px 24px;
    width: 100%;
    backdrop-filter: blur(8px);
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #8c9ba5;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 24px;
}

/* Right Pane */
/* Right Pane Container */
.login-right-pane {
    flex: 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, rgba(168, 85, 247, 0.06) 40%, #060813 100%);
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
}

/* Glassmorphic Animated Form Card */
.login-right-content {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    background: rgba(10, 14, 26, 0.88);
    backdrop-filter: blur(24px);
    border-radius: 22px;
    padding: 36px 32px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(59, 130, 246, 0.2);
    animation: fadeInUpAuth 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Animated Flow Border Accent */
.login-right-content::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 23px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.65), rgba(168, 85, 247, 0.45), rgba(6, 182, 212, 0.65), rgba(16, 185, 129, 0.45));
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0.75;
    animation: animatedGlowBorder 6s ease infinite;
    pointer-events: none;
}

@keyframes animatedGlowBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeInUpAuth {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    margin-bottom: 28px;
}

.login-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.login-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.95rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 60%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    font-size: 0.88rem;
    color: #8c9ba5;
    margin: 4px 0 0 0;
}

.auth-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

.auth-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

/* Social Buttons */
.social-login-row {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
}

.btn-social {
    flex: 1;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}

#social-google:hover {
    border-color: rgba(234, 67, 53, 0.4);
    box-shadow: 0 4px 15px rgba(234, 67, 53, 0.25);
}

#social-github:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

#social-discord:hover {
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.social-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.social-icon-fa {
    font-size: 1rem;
}

#social-google .social-icon-fa {
    color: #ea4335;
}

#social-github .social-icon-fa {
    color: #ffffff;
}

#social-discord .social-icon-fa {
    color: #5865f2;
}

/* Divider */
.form-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 22px;
    font-weight: 700;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.form-divider:not(:empty)::before {
    margin-right: 14px;
}

.form-divider:not(:empty)::after {
    margin-left: 14px;
}

/* Inputs styling with left icons */
.login-right-content .input-group {
    margin-bottom: 18px;
}

.login-right-content .input-wrapper-with-icon {
    position: relative;
    width: 100%;
}

.login-right-content .input-wrapper-with-icon i.input-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.9rem;
    transition: color 0.25s ease;
    pointer-events: none;
    z-index: 2;
}

.login-right-content .input-wrapper-with-icon input {
    padding-left: 40px !important;
}

.login-right-content .input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
}

.login-right-content .input-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    transition: all 0.25s ease;
}

.login-right-content .input-group input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 0 16px rgba(59, 130, 246, 0.25);
    transform: translateY(-1px);
}

.login-right-content .input-wrapper-with-icon input:focus~i.input-icon-left,
.login-right-content .input-wrapper-with-icon input:focus+i.input-icon-left,
.login-right-content .input-wrapper-with-icon:focus-within i.input-icon-left {
    color: #38bdf8;
}

/* Password wrapper */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 44px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8c9ba5;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.password-toggle-btn:hover {
    color: #ffffff;
}

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

.label-wrapper label {
    margin-bottom: 0 !important;
}

.forgot-password-link {
    font-size: 0.78rem;
    color: #3b82f6;
    font-weight: 600;
}

.forgot-password-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Stay signed in checkbox */
.stay-signed-in-wrapper {
    margin-bottom: 24px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.82rem;
    color: #8c9ba5;
    user-select: none;
    font-weight: 500;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input~.checkmark {
    border-color: rgba(59, 130, 246, 0.4);
}

.checkbox-container input:checked~.checkmark {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.submit-btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #06b6d4 100%) !important;
    background-size: 200% auto !important;
    box-shadow: 0 6px 22px rgba(59, 130, 246, 0.45), 0 0 15px rgba(6, 182, 212, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.submit-btn-arrow:hover {
    background-position: right center !important;
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.65), 0 0 25px rgba(6, 182, 212, 0.45) !important;
    transform: translateY(-2px) !important;
}

.submit-btn-arrow:hover i {
    transform: translateX(4px);
}

.submit-btn-arrow i {
    transition: transform 0.25s ease;
}

.auth-toggle-wrapper {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: #8c9ba5;
}

.auth-toggle-wrapper a {
    color: #3b82f6;
    font-weight: 600;
}

.support-wrapper {
    text-align: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #8c9ba5;
}

.support-wrapper a {
    color: #3b82f6;
    font-weight: 600;
}

/* Error styling override */
#login-error {
    color: var(--color-red) !important;
    margin-top: 16px;
    font-weight: 600;
    font-size: 0.82rem;
    text-align: center;
    background: rgba(239, 68, 68, 0.05) !important;
    border: 1px solid rgba(239, 68, 68, 0.15) !important;
    padding: 10px !important;
    border-radius: 8px !important;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .login-left-pane {
        display: none;
    }

    .login-right-pane {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .login-split-container {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        display: flex;
        flex-direction: column;
    }

    .login-right-pane {
        padding: 40px 16px;
        min-height: 100vh;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
    }

    .login-right-content {
        margin: auto;
        max-width: 100%;
        padding: 24px 20px;
    }

    .login-header {
        margin-bottom: 24px;
        text-align: center;
    }

    .login-header h2 {
        font-size: 1.6rem;
    }

    .btn-social span {
        display: none;
    }

    .btn-social {
        height: 44px;
        border-radius: 50%;
        aspect-ratio: 1/1;
        flex: 0 0 44px;
        padding: 0;
    }

    .social-login-row {
        justify-content: center;
        gap: 16px;
        margin-bottom: 22px;
    }
}

@keyframes selector-pulse-dot {
    0% {
        transform: translateY(-50%) scale(0.9);
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.6), 0 0 15px rgba(59, 130, 246, 0.4);
    }

    50% {
        transform: translateY(-50%) scale(1.25);
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.9), 0 0 25px rgba(59, 130, 246, 0.6);
    }

    100% {
        transform: translateY(-50%) scale(0.9);
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.6), 0 0 15px rgba(59, 130, 246, 0.4);
    }
}

@keyframes nav-pulse-dot {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.6), 0 0 15px rgba(59, 130, 246, 0.4);
    }

    50% {
        transform: scale(1.3);
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.9), 0 0 25px rgba(59, 130, 246, 0.6);
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.6), 0 0 15px rgba(59, 130, 246, 0.4);
    }
}

.live-pulse-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 6px;
    vertical-align: middle;
    box-shadow: 0 0 6px #10b981;
    animation: live-blink-dot 1.8s infinite ease-in-out;
}

@keyframes live-blink-dot {
    0% {
        opacity: 0.35;
        box-shadow: 0 0 2px rgba(16, 185, 129, 0.3);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.8), 0 0 12px rgba(16, 185, 129, 0.6);
    }

    100% {
        opacity: 0.35;
        box-shadow: 0 0 2px rgba(16, 185, 129, 0.3);
    }
}

/* Redesigned Modal Styles */
.modal-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
}

.modal-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}

.modal-tab-btn.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-blue);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

/* Switch Toggle Slider Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .4s;
}

input:checked+.slider {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

input:checked+.slider:before {
    transform: translateX(18px);
    background-color: var(--color-blue);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Checkbox Cards styling */
.checkbox-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.checkbox-card:hover:not(:has(input:checked)) {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.05);
}

.checkbox-card:has(input:checked) {
    border-color: var(--color-blue);
    background: rgba(59, 130, 246, 0.04);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.12);
}

.checkbox-card:has(input:checked):hover {
    border-color: var(--color-blue-hover);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.18);
}

.checkbox-card input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checkbox-card-info label {
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-main);
    margin: 0;
}

.checkbox-card-info span {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Circular Modal Close Button */
.modal-close {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--color-red);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
    transform: rotate(90deg) scale(1.1);
}

/* Users Tab Toolbar Styles */
.user-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
    font-family: 'JetBrains Mono', monospace;
}

.search-users-wrapper {
    position: relative;
    flex-grow: 1;
    max-width: 320px;
}

.search-users-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.search-users-wrapper input {
    width: 100%;
    height: 40px;
    padding-left: 40px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.85rem !important;
    outline: none;
    transition: all 0.2s ease;
}

.search-users-wrapper input:focus {
    border-color: var(--color-blue) !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15) !important;
}

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

/* Layout Switcher */
.layout-toggle-group {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 3px;
    height: 40px;
    align-items: center;
}

.btn-layout-toggle {
    background: none;
    border: 1px solid transparent;
    color: var(--text-muted);
    border-radius: 6px;
    width: 34px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-layout-toggle.active {
    background: rgba(59, 130, 246, 0.12) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
    color: var(--color-blue) !important;
}

.btn-layout-toggle:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

/* Action Buttons */
.btn-toolbar-action {
    height: 40px;
    padding: 0 16px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toolbar-action:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-toolbar-action i {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.btn-toolbar-action:hover i {
    color: #ffffff;
}

/* Clear Expired Button matching reference */
.btn-clear-expired {
    height: 40px;
    padding: 0 16px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.04) !important;
    border: 1px solid rgba(239, 68, 68, 0.15) !important;
    border-radius: 8px !important;
    color: #ef4444 !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-expired:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.15);
}

.btn-clear-expired i {
    font-size: 0.85rem;
    color: #ef4444;
}

/* User Details Modal Styles */
.details-modal-content {
    max-width: 580px !important;
    background: #0a0e1a !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.7) !important;
    padding: 24px 28px !important;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
}

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

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

.details-avatar {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

.details-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.details-title-group h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
}

#det-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.details-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.05em;
    margin-left: 10px;
}

.details-badge.active-badge {
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.06);
}

.details-badge.banned-badge {
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.06);
}

/* Sections */
.details-modal-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 6px;
    margin-bottom: 24px;
}

.details-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.details-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 6px;
}

.details-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.details-field-box {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.field-value-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.field-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    word-break: break-all;
}

.field-value.monospace-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
}

/* Copy Button */
.btn-copy-field {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.85rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-copy-field:hover {
    color: #ffffff;
}

/* Footer Close Button */
.btn-close-footer {
    width: 100%;
    padding: 12px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-close-footer:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* ==========================================================================
   SOCIAL OAUTH THEMED SCREENS STYLING
   ========================================================================== */

/* 1. Google Account Chooser */
.google-oauth-box {
    width: 100%;
    max-width: 420px;
    background: #ffffff !important;
    color: #202124 !important;
    border-radius: 8px !important;
    padding: 36px 40px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif !important;
    display: flex;
    flex-direction: column;
}

.google-oauth-header {
    text-align: center;
    margin-bottom: 28px;
}

.google-logo-large {
    width: 75px;
    height: 24px;
    margin-bottom: 16px;
    object-fit: contain;
}

.google-oauth-header h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #202124 !important;
    margin-bottom: 8px;
}

.google-oauth-header p {
    font-size: 1rem;
    color: #5f6368 !important;
}

.google-accounts-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #dadce0;
    border-bottom: 1px solid #dadce0;
    margin-bottom: 24px;
}

.google-account-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: background 0.15s ease;
}

.google-account-item:last-child {
    border-bottom: none;
}

.google-account-item:hover {
    background: #f8f9fa;
}

.google-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a73e8;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1rem;
    margin-right: 12px;
}

.google-account-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.google-account-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: #3c4043 !important;
}

.google-account-email {
    font-size: 0.75rem;
    color: #5f6368 !important;
}

.google-oauth-footer {
    font-size: 0.75rem;
    color: #5f6368 !important;
    line-height: 1.4;
    text-align: left;
}


/* 2. Discord Authorization Screen */
.discord-oauth-box {
    width: 100%;
    max-width: 480px;
    background: #313338 !important;
    color: #dbdee1 !important;
    border-radius: 8px !important;
    padding: 32px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    font-family: 'gg sans', 'Noto Sans', sans-serif !important;
    display: flex;
    flex-direction: column;
}

.discord-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.discord-logo-large {
    font-size: 3rem;
    color: #5865f2 !important;
}

.discord-oauth-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff !important;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 20px;
}

.discord-app-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #2b2d31;
    border: 1px solid #1e1f22;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.discord-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #5865f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 1.5rem;
}

.discord-app-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.discord-app-name {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff !important;
}

.discord-app-url {
    font-size: 0.82rem;
    color: #949ba4 !important;
}

.discord-permissions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid #3f4147;
    padding-bottom: 24px;
    margin-bottom: 24px;
    text-align: left;
}

.permissions-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: #949ba4 !important;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: #dbdee1 !important;
}

.permission-item i {
    color: #23a55a !important;
    font-size: 0.95rem;
}

.discord-oauth-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.btn-discord-cancel {
    background: none;
    border: none;
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 24px;
    border-radius: 3px;
    transition: background 0.2s;
}

.btn-discord-cancel:hover {
    text-decoration: underline;
}

.btn-discord-authorize {
    background: #5865f2 !important;
    color: #ffffff !important;
    border: none;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 28px;
    border-radius: 3px;
    transition: background 0.2s;
}

.btn-discord-authorize:hover {
    background: #4752c4 !important;
}


/* 3. GitHub Authorization Screen */
.github-oauth-box {
    width: 100%;
    max-width: 480px;
    background: #0d1117 !important;
    color: #c9d1d9 !important;
    border: 1px solid #30363d !important;
    border-radius: 6px !important;
    padding: 32px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
    display: flex;
    flex-direction: column;
}

.github-auth-flow-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.app-icon-gh {
    font-size: 2.2rem;
    color: #3b82f6 !important;
}

.flow-dots {
    display: flex;
    gap: 6px;
    color: #8b949e !important;
}

.flow-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #30363d;
}

.gh-icon-gh {
    font-size: 2.5rem;
    color: #ffffff !important;
}

.github-oauth-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff !important;
    margin-bottom: 6px;
    text-align: center;
}

.github-oauth-subtitle {
    font-size: 0.88rem;
    color: #8b949e !important;
    margin-bottom: 24px;
    text-align: center;
}

.github-permissions-list {
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
    background: #161b22;
    text-align: left;
}

.github-permission-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.github-permission-item i {
    font-size: 1.1rem;
    color: #8b949e !important;
    margin-top: 2px;
}

.permission-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.permission-text strong {
    font-size: 0.88rem;
    color: #c9d1d9 !important;
}

.permission-text span {
    font-size: 0.75rem;
    color: #8b949e !important;
    line-height: 1.4;
}

.github-oauth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-github-authorize {
    background: #238636 !important;
    color: #ffffff !important;
    border: 1px solid rgba(240, 246, 252, 0.1) !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.btn-github-authorize:hover {
    background: #2ea043 !important;
}

.btn-github-cancel {
    background: none;
    border: none;
    color: #58a6ff !important;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 24px;
    width: 100%;
}

.btn-github-cancel:hover {
    text-decoration: underline;
}

/* Dedicated Notifications Tab Styles */
.tab-notif-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.tab-notif-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.3), 0 0 10px rgba(59, 130, 246, 0.05);
}

.tab-notif-card-content {
    flex-grow: 1;
}

.tab-notif-card-message {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-main);
    word-break: break-word;
}

.tab-notif-card-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab-notif-delete-action {
    flex-shrink: 0;
}

/* Mobile Toggle Button */
.mobile-toggle-btn {
    display: none;
}

@media (max-width: 768px) {
    .mobile-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: var(--text-main);
        font-size: 1.25rem;
        cursor: pointer;
        margin-right: 12px;
        padding: 4px;
        transition: color 0.2s;
    }

    .mobile-toggle-btn:hover {
        color: var(--color-blue);
    }

    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        z-index: 2000;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
    }

    .sidebar.open {
        left: 0;
    }

    /* Sidebar mobile overlay/backdrop */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        z-index: 1999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Top navbar padding adjustments */
    .top-navbar {
        padding: 0 16px;
    }

    /* Make notification dropdown responsive and not overflow left edge of screen */
    .notif-dropdown-menu {
        position: fixed !important;
        top: 65px !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        max-width: none !important;
        z-index: 2001 !important;
    }

    /* Top navbar link adjustments - hide text on mobile, keep only icons to avoid overflow */
    .navbar-link-item span {
        display: none;
    }

    .navbar-links {
        gap: 16px;
    }

    /* Hide top profile text and spacing adjustments on mobile */
    .top-profile .profile-info {
        display: none !important;
    }

    .top-profile {
        padding: 4px 8px !important;
        gap: 4px !important;
    }

    /* Make inline settings grids stack on mobile */
    #tab-settings .glassy-credentials-card[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 16px !important;
        padding: 24px 20px !important;
    }

    #tab-settings .glassy-credentials-card[style*="display: flex"]>div {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    #tab-settings .glassy-credentials-card[style*="display: flex"]>div>div[style*="display: flex"] {
        justify-content: center !important;
    }

    #tab-settings div[style*="display: grid"],
    #tab-settings div[style*="display:grid"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .settings-nav-tabs {
        flex-wrap: wrap !important;
    }

    .settings-tab-btn {
        flex-grow: 1 !important;
        text-align: center !important;
    }

    /* Main content padding adjustment */
    .main-content {
        padding: 16px !important;
        overflow-x: hidden !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    .dashboard-layout,
    .main-wrapper {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    body,
    html {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Make dashboard elements scale down and fit nicely on phone screens */
    html {
        font-size: 13.5px;
    }

    .tab-header {
        margin-bottom: 20px;
    }

    .tab-header h2 {
        font-size: 1.25rem !important;
    }

    .tab-header p {
        font-size: 0.72rem !important;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin-bottom: 18px !important;
    }

    .metric-card {
        padding: 12px 14px !important;
    }

    .metric-card-value {
        font-size: 1.25rem !important;
    }

    .metric-card-label {
        font-size: 0.62rem !important;
    }

    .metric-card-icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
    }

    .metric-card-icon i {
        font-size: 0.85rem !important;
    }

    /* Tables and toolbars */
    .user-toolbar,
    .toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .search-users-wrapper,
    .search-wrapper {
        max-width: 100% !important;
    }

    .table-container th,
    .table-container td {
        padding: 10px 12px !important;
        font-size: 0.75rem !important;
    }

    /* Widgets grid (Overview panel) */
    .overview-panel-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .widget-card {
        height: 340px !important;
    }
}

/* Specific Smaller Breakpoints (Flat Media Queries) */
@media (max-width: 600px) {
    .page-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .page-header-actions {
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-top: 8px;
    }

    .page-header-actions button,
    .page-header-actions select {
        flex-grow: 1 !important;
        width: auto !important;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px !important;
    }

    .metrics-grid {
        grid-template-columns: 1fr !important;
    }

    .chart-legend {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .details-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .modal-content {
        max-width: calc(100% - 32px) !important;
        padding: 20px !important;
    }
}

/* Row interaction */
#user-table-body tr {
    cursor: pointer;
}

/* Custom Confirmation Modal styling matching the red glow screenshot */
.confirm-modal-content {
    max-width: 400px !important;
    padding: 32px !important;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.18) !important;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.12), 0 24px 48px rgba(0, 0, 0, 0.6) !important;
    background: #0d0f17 !important;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
}

.confirm-modal-icon-wrapper {
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.08);
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.confirm-modal-icon-wrapper i {
    font-size: 1.5rem;
    color: #ef4444;
}

#confirm-modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    font-family: var(--font-sans);
}

#confirm-modal-message {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 28px;
    font-family: var(--font-sans);
}

.confirm-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-confirm-cancel {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.btn-confirm-cancel:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.btn-confirm-proceed {
    flex: 1;
    padding: 12px 20px;
    background: #ef4444 !important;
    border: 1px solid #ef4444 !important;
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    font-family: var(--font-sans);
}

.btn-confirm-proceed:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
}

/* Selection Toolbar */
.selection-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 15, 30, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: toolbarSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toolbarSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.btn-clear-selection {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-clear-selection:hover {
    color: var(--color-red);
    background: rgba(239, 68, 68, 0.1);
}

#selection-count {
    font-weight: 800;
    color: var(--color-blue);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.selection-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-selection-action {
    background: rgba(18, 24, 41, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    padding: 7px 14px;
    font-size: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
}

.btn-selection-action:hover:not(:disabled) {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-selection-action:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Yellow warning outline for Shorten */
.btn-selection-action.btn-warning-outline {
    border-color: rgba(234, 179, 8, 0.4);
    color: #eab308;
}

.btn-selection-action.btn-warning-outline:hover:not(:disabled) {
    background: rgba(234, 179, 8, 0.1);
    border-color: #eab308;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.2);
}

/* Red outline for delete */
.btn-selection-action.btn-danger-outline {
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--color-red);
}

.btn-selection-action.btn-danger-outline:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--color-red);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

/* Custom Dropdown Styling */
.custom-dropdown {
    position: relative;
    width: 100%;
    user-select: none;
    font-family: inherit;
}

.custom-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.custom-dropdown-value {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    color: #f1f5f9;
}

.custom-dropdown-trigger:hover {
    border-color: var(--color-blue);
    background: rgba(30, 41, 59, 0.7);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.custom-dropdown-trigger .dropdown-arrow {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.custom-dropdown.active .custom-dropdown-trigger .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--color-blue);
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    background: #0f172a;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    animation: dropdown-fade-in 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    padding: 4px;
}

.custom-dropdown-menu.hidden {
    display: none;
}

@keyframes dropdown-fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-dropdown-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 550;
    transition: all 0.15s ease;
}

.custom-dropdown-option:hover {
    color: var(--text-main);
    background: rgba(59, 130, 246, 0.15);
}

.custom-dropdown-option.selected {
    color: #ffffff;
    background: var(--color-blue);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Custom Scrollbar for Dropdown Menu */
.custom-dropdown-menu::-webkit-scrollbar {
    width: 4px;
}

.custom-dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.custom-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.custom-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Settings Sub-Tabs Styling */
.settings-nav-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.settings-tab-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 18px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    border-radius: 6px 6px 0 0;
}

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

.settings-tab-btn.active {
    color: #8b5cf6;
    border-bottom-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
    font-weight: 700;
}

/* ==========================================
   CLASSY MODAL & INPUT STYLES
   ========================================== */
.modal-overlay.classy-modal .modal-content {
    background: rgba(10, 14, 26, 0.96);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(59, 130, 246, 0.15);
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
}

.modal-overlay.classy-modal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon i.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease;
}

.input-with-icon input,
.input-with-icon select {
    padding-left: 42px !important;
    width: 100%;
}

.input-with-icon input:focus~i.input-icon,
.input-with-icon select:focus~i.input-icon {
    color: var(--color-blue);
}

.toggle-pass-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    z-index: 2;
    transition: color 0.2s;
}

.toggle-pass-btn:hover {
    color: var(--text-main);
}

.preset-pills-row {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    margin-top: 8px !important;
    margin-bottom: 6px !important;
}

.preset-pill-btn {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 5px 12px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.preset-pill-btn:hover {
    background: rgba(59, 130, 246, 0.25) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    color: #60a5fa !important;
}

/* WebKit datetime-local dark mode styling */
input[type="datetime-local"] {
    color-scheme: dark !important;
    background: #0d121f !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 0.88rem !important;
    outline: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

input[type="datetime-local"]:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.3) !important;
    cursor: pointer !important;
    opacity: 0.9 !important;
    padding: 4px !important;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1 !important;
}

.btn-classy-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    padding: 13px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
}

.btn-classy-primary:hover {
    box-shadow: 0 6px 22px rgba(59, 130, 246, 0.55) !important;
    transform: translateY(-1px) !important;
}

/* ==========================================
   OFFICIAL SAAS APP CARD & CREDENTIAL STYLES
   ========================================== */
.app-card {
    background: rgba(13, 18, 31, 0.7) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 22px !important;
    margin-bottom: 18px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.app-card:hover {
    border-color: rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.08) !important;
}

.app-card.selected-card {
    border: 1px solid rgba(59, 130, 246, 0.5) !important;
    background: linear-gradient(145deg, rgba(13, 24, 48, 0.8) 0%, rgba(10, 14, 26, 0.9) 100%) !important;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15), 0 12px 35px rgba(0, 0, 0, 0.5) !important;
}

.app-card-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-avatar-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.app-card.selected-card .app-avatar-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.app-card-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

.app-card-id-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 2px;
    display: block;
}

.badge-active {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.app-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 18px 0;
}

.app-stat-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.app-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.app-stat-val {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f1f5f9;
    font-family: 'JetBrains Mono', monospace;
}

.btn-app-select {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #3b82f6 !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    padding: 8px 18px !important;
    border-radius: 9px !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.btn-app-select:hover {
    background: #3b82f6 !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4) !important;
}

.btn-app-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 18px !important;
    border-radius: 9px !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.3) !important;
}

.btn-app-icon-action {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-muted) !important;
    padding: 8px 14px !important;
    border-radius: 9px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.btn-app-icon-action:hover {
    background: rgba(255, 255, 255, 0.09) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.btn-app-icon-action.btn-delete-action:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

/* Credentials Glassy Card & Box */
.glassy-credentials-card {
    background: rgba(13, 18, 31, 0.7) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 22px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.credential-box-classy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    margin-top: 4px;
    transition: border-color 0.2s;
}

.credential-box-classy:hover {
    border-color: rgba(59, 130, 246, 0.3) !important;
}

.credential-value-classy {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-copy-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-copy-icon:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
}

.btn-refresh-secret-classy {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 20px !important;
}

.btn-refresh-secret-classy:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5) !important;
    transform: translateY(-1px) !important;
}

.notice-box-classy {
    background: rgba(59, 130, 246, 0.06) !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    margin-top: 20px !important;
}

.notice-box-classy h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 4px;
}

.notice-box-classy p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* ==========================================
   OFFICIAL CLASSY SIDEBAR & NAV STYLES
   ========================================== */
.sidebar {
    width: 260px !important;
    background: linear-gradient(180deg, #070a14 0%, #04060b 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
    height: 100% !important;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.4) !important;
    z-index: 2001 !important;
}

.sidebar-brand {
    padding: 22px 20px 16px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #ffffff !important;
}

.brand-logo-container {
    background: rgba(13, 24, 48, 0.8) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3) !important;
    border-radius: 10px !important;
}

.sidebar-brand .brand-accent {
    color: #3b82f6 !important;
    font-weight: 800 !important;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.6) !important;
}

.custom-dropdown-trigger {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: rgba(13, 18, 31, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    transition: all 0.25s ease !important;
}

.custom-dropdown-trigger:hover {
    border-color: rgba(59, 130, 246, 0.4) !important;
    background: rgba(15, 23, 42, 0.9) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.12) !important;
}

.sidebar-tabs {
    display: flex !important;
    gap: 6px !important;
    padding: 0 20px 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.sidebar-tab-btn {
    flex: 1 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #94a3b8 !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.sidebar-tab-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.35) !important;
}

.sidebar-nav {
    padding: 14px 12px !important;
    gap: 4px !important;
}

.nav-item {
    padding: 10px 14px !important;
    border-radius: 10px !important;
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.nav-item:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateX(3px) !important;
}

.nav-item.active {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.18) 0%, rgba(59, 130, 246, 0.04) 100%) !important;
    border-left: 3px solid #3b82f6 !important;
    font-weight: 700 !important;
    box-shadow: inset 0 0 15px rgba(59, 130, 246, 0.1) !important;
}

.nav-item.active i {
    color: #3b82f6 !important;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6)) !important;
}

.partner-banner-sidebar {
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
}

.partner-banner-sidebar i {
    color: #10b981 !important;
}

.sidebar-footer {
    padding: 16px 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: #03050c !important;
}

.user-avatar {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4) !important;
}