/* ==========================================================================
   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"],
select,
textarea,
.form-control {
    width: 100%;
    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);
}

/* 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: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-blue);
    box-shadow: 0 0 10px var(--color-blue), 0 0 20px rgba(59, 130, 246, 0.4);
    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;
}

/* Glowing accent colors */
.metric-apps { border-color: rgba(59, 130, 246, 0.08); }
.metric-apps:hover { border-color: rgba(59, 130, 246, 0.35); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.18); }
.metric-apps .metric-card-icon { background: rgba(59, 130, 246, 0.08); color: #3b82f6; box-shadow: var(--shadow-blue); }

.metric-licenses { border-color: rgba(6, 182, 212, 0.08); }
.metric-licenses:hover { border-color: rgba(6, 182, 212, 0.35); box-shadow: 0 8px 25px rgba(6, 182, 212, 0.18); }
.metric-licenses .metric-card-icon { background: rgba(6, 182, 212, 0.08); color: #06b6d4; box-shadow: var(--shadow-cyan); }

.metric-users { border-color: rgba(168, 85, 247, 0.08); }
.metric-users:hover { border-color: rgba(168, 85, 247, 0.35); box-shadow: 0 8px 25px rgba(168, 85, 247, 0.18); }
.metric-users .metric-card-icon { background: rgba(168, 85, 247, 0.08); color: #a855f7; box-shadow: var(--shadow-purple); }

.metric-devices { border-color: rgba(16, 185, 129, 0.08); }
.metric-devices:hover { border-color: rgba(16, 185, 129, 0.35); box-shadow: 0 8px 25px rgba(16, 185, 129, 0.18); }
.metric-devices .metric-card-icon { background: rgba(16, 185, 129, 0.08); color: #10b981; box-shadow: var(--shadow-green); }

.metric-staffs { border-color: rgba(20, 184, 166, 0.08); }
.metric-staffs:hover { border-color: rgba(20, 184, 166, 0.35); box-shadow: 0 8px 25px rgba(20, 184, 166, 0.18); }
.metric-staffs .metric-card-icon { background: rgba(20, 184, 166, 0.08); color: #14b8a6; box-shadow: var(--shadow-teal); }

.metric-resellers { border-color: rgba(236, 72, 153, 0.08); }
.metric-resellers:hover { border-color: rgba(236, 72, 153, 0.35); box-shadow: 0 8px 25px rgba(236, 72, 153, 0.18); }
.metric-resellers .metric-card-icon { background: rgba(236, 72, 153, 0.08); color: #ec4899; box-shadow: var(--shadow-pink); }

/* Overview panel layout */
.overview-panel-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 1024px) {
    .overview-panel-grid {
        grid-template-columns: 1fr;
    }
}

.widget-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;
    height: 410px;
    transition: all 0.3s;
}
.widget-card:hover {
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(10, 14, 26, 0.65);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.08);
    transform: translateY(-2px);
}

.widget-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.widget-title-area {
    display: flex;
    flex-direction: column;
}
.widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}
.widget-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.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.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 3px;
    border-radius: 8px;
}
.chart-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.chart-tab-btn.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-blue);
}

.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: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
}
.legend-item {
    display: flex;
    flex-direction: column;
}
.legend-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}
.legend-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.owner-id-row {
    padding: 10px 20px;
    background: rgba(59, 130, 246, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}
.owner-id-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-blue);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: 600;
}

/* Activity Feed Widget */
.activity-feed {
    list-style: none;
    overflow-y: auto;
    flex-grow: 1;
    max-height: 300px;
    padding-right: 5px;
}
.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.activity-item:last-child {
    border-bottom: none;
}
.activity-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.08);
    color: var(--color-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.activity-details {
    display: flex;
    flex-direction: column;
}
.activity-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}
.activity-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.activity-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.activity-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.activity-badge {
    font-size: 0.62rem;
    background: rgba(16, 185, 129, 0.08);
    color: var(--color-green);
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Partner Ad Banner */
.partner-ad-banner {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    transition: all 0.3s;
}
.partner-ad-banner:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.05), 0 0 20px rgba(16, 185, 129, 0.05);
}
.partner-ad-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #34d399;
    font-weight: 800;
    font-size: 0.95rem;
}
.partner-ad-text {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.partner-ad-btn {
    background: none;
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--color-blue);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.partner-ad-btn:hover {
    background: var(--color-blue);
    color: #fff;
    box-shadow: var(--shadow-blue);
}

/* 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;
        backdrop-filter: blur(0px);
        background: rgba(3, 4, 9, 0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
        background: rgba(3, 4, 9, 0.8);
    }
}

@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: rgba(3, 4, 9, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.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);
}
.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;
}

/* 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;
}

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

.brand-logo-container {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-shield-icon {
    font-size: 3rem;
    color: #3b82f6;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6));
}

.brand-logo-m {
    position: absolute;
    font-weight: 800;
    font-size: 1.3rem;
    color: #ffffff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
}

.left-brand h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 50%, #8c9ba5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.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 */
.login-right-pane {
    flex: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #060813;
    padding: 40px;
}

.login-right-content {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
}

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

.login-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

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

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

.btn-social {
    flex: 1;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.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.15);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

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

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

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

/* Inputs styling */
.login-right-content .input-group {
    margin-bottom: 20px;
}

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

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

/* Special Focus & Prefilled States matching reference */
.login-right-content .input-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* 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: 8px;
    padding: 12px !important;
    font-size: 0.9rem !important;
}

.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;
}

/* Other Portals */
.other-portals-section {
    margin-top: 36px;
}

.portals-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

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

.portals-divider:not(:empty)::before {
    margin-right: 12px;
}

.portals-divider:not(:empty)::after {
    margin-left: 12px;
}

.portals-row {
    display: flex;
    gap: 12px;
}

.btn-portal {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-portal:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-portal i {
    font-size: 0.9rem;
    color: #8c9ba5;
}

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

/* 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;
    }
}

@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;
}

.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;
}
