/* ====================================================================
   VOID MENU - LUXURY METALLIC VOID & ELECTRIC LIGHTNING DESIGN SYSTEM
   Dark Void Black, Chrome Silver, Electric Lightning Sparks & Glass
   Inspired by Void Menu FiveM Interface
   ==================================================================== */

:root {
    --primary: #ffffff;
    --primary-glow: rgba(255, 255, 255, 0.45);
    --secondary: #a1a1aa;
    --bg: #040405;
    --bg-darker: #000000;
    --card: #0a0a0c;
    --card-surface: #0f0f12;
    --card-hover: #151518;
    --input-bg: #070709;
    --accent: #141417;
    --border-subtle: #1a1a1e;
    --border-hover: #323238;
    --border-focus: #ffffff;
    --border-metallic: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(161, 161, 170, 0.15), rgba(26, 26, 30, 0.8));
    
    --text-main: #fcfcfc;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --chrome-gradient: linear-gradient(135deg, #ffffff 0%, #e4e4e7 35%, #a1a1aa 70%, #52525b 100%);
    --void-gradient: linear-gradient(180deg, #101013 0%, #040405 100%);
    --lightning-glow: 0 0 35px rgba(255, 255, 255, 0.35);
    
    --neon-white: #ffffff;
    --neon-silver: #e4e4e7;
    --neon-gold: #f59e0b;
    --neon-cyan: #38bdf8;
    --neon-green: #10b981;
    --neon-red: #ef4444;
    --neon-purple: #a855f7;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    --shadow-card: 0 30px 80px rgba(0, 0, 0, 0.98), 0 0 40px rgba(0, 0, 0, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.hidden {
    display: none !important;
}

/* ===== ANIMATED VOID LIGHTNING GRID BACKGROUND ===== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.04) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 48px 48px, 48px 48px;
    animation: gridMove 30s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes gridMove {
    0% { background-position: 0 0, 0 0, 0 0; }
    100% { background-position: 0 0, 48px 48px, 48px 48px; }
}

/* ===== ELECTRIC CHROME TOP BAR ===== */
.aurora-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffffff, #a1a1aa, #27272a, #e4e4e7, #ffffff);
    background-size: 300% 100%;
    animation: auroraSlide 4s linear infinite;
    z-index: 999;
}

@keyframes auroraSlide {
    0% { background-position: 0% 0%; }
    100% { background-position: 300% 0%; }
}

/* ===== GLOWING ORBS ===== */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.035;
    animation: orbFloat linear infinite;
    z-index: 0;
    pointer-events: none;
}
.orb-1 { width: 550px; height: 550px; background: #ffffff; top: -140px; left: -100px; animation-duration: 20s; }
.orb-2 { width: 450px; height: 450px; background: #71717a; bottom: -80px; right: -80px; animation-duration: 24s; animation-delay: -8s; }
.orb-3 { width: 360px; height: 360px; background: #27272a; top: 50%; left: 50%; animation-duration: 18s; animation-delay: -5s; opacity: 0.03; }

@keyframes orbFloat {
    0% { transform: translateY(0px) scale(1); }
    33% { transform: translateY(-30px) scale(1.05); }
    66% { transform: translateY(20px) scale(0.97); }
    100% { transform: translateY(0px) scale(1); }
}

/* ===== GLASSMORPHISM PANELS ===== */
.glass-panel {
    background: var(--card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.glass-panel:hover {
    border-color: var(--border-hover);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: #11141d;
    border: 1px solid var(--border-hover);
    color: var(--text-main);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    font-weight: 500;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.3s, transform 0.3s;
}

.toast.success { border-left: 4px solid #ffffff; }
.toast.error { border-left: 4px solid var(--neon-red); }
.toast.info { border-left: 4px solid var(--neon-cyan); }

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ====================================================================
   AUTHENTICATION VIEW
   ==================================================================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    z-index: 10;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 42px 38px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: radial-gradient(circle at 50% 0%, #141416 0%, #09090b 60%, #030304 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.98), 0 0 40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo-img {
    width: 135px;
    height: auto;
    margin: 0 auto 16px auto;
    display: block;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.65)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.15));
    transition: transform 0.3s ease;
}

.auth-logo-img:hover {
    transform: scale(1.05);
}

.auth-brand-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #ffffff 0%, #e4e4e7 45%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}

.auth-brand-sub {
    color: #a1a1aa;
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.4;
}

.auth-tabs {
    display: flex;
    background: #050506;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #71717a;
    padding: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    background: linear-gradient(135deg, #1f1f23 0%, #121215 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.auth-form.active {
    display: flex;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group input,
.input-group select,
.input-group textarea {
    background: var(--input-bg);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s;
}

.btn-primary:hover {
    background: #e2e8f0;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #141722;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #1c2030;
    border-color: var(--border-hover);
    color: #ffffff;
}

.btn-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-success:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: #34d399;
    color: #ffffff;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ffffff;
}

.btn-glow {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
}

.full-width {
    width: 100%;
}

/* ====================================================================
   MAIN APP VIEW (DASHBOARD LAYOUT)
   ==================================================================== */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 50% 0%, #0c0c0e 0%, #060607 60%, #020202 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    box-shadow: 4px 0 35px rgba(0, 0, 0, 0.95);
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.012);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

.brand-text-col {
    display: flex;
    flex-direction: column;
}

.brand-title-main {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    background: var(--chrome-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-title-sub {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.sidebar-nav-container {
    flex: 1;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.sidebar-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 0 12px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-link {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.2s;
    text-align: left;
}

.nav-link:hover {
    background: #111114;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    background: linear-gradient(135deg, #1c1c20 0%, #121215 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 255, 255, 0.04);
}

.nav-link-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link-left i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
}

.nav-arrow {
    font-size: 0.75rem;
    opacity: 0.4;
    transition: transform 0.2s;
}

.nav-link.active .nav-arrow {
    opacity: 1;
    transform: translateX(2px);
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.sidebar-status-card {
    margin-top: auto;
    padding: 14px;
    border-radius: var(--radius-md);
    background: #08080a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.status-dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.status-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
}

.status-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #141417;
    border: 1px solid var(--border-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
}

.user-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.btn-logout {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: color 0.2s;
}

.btn-logout:hover {
    color: var(--neon-red);
}

/* ===== MAIN CONTENT AREA ===== */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 36px 40px;
    min-height: 100vh;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.header-left h1 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--chrome-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.header-left p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== API KEY HERO CARD ===== */
.api-key-banner {
    background: linear-gradient(135deg, #111114 0%, #060607 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.api-key-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
}

.key-info-col h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-info-col p {
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.key-box-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #06070a;
    border: 1px solid var(--border-subtle);
    padding: 8px 14px;
    border-radius: var(--radius-md);
}

.key-code {
    font-family: 'Fira Code', monospace;
    font-size: 0.88rem;
    color: #38bdf8;
    letter-spacing: 0.5px;
}

/* ===== TABS CONTENT ===== */
.tab-content {
    display: none;
    animation: fadeIn 0.25s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: #0d0f17;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: #161a28;
    border: 1px solid var(--border-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
}

.stat-data {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
}

/* ===== BALANCE HERO CARD (RESELLER) ===== */
.balance-hero-card {
    background: #09090b;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 26px 30px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.balance-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.balance-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    font-weight: 700;
}

.balance-amount {
    font-size: 2.75rem;
    font-weight: 900;
    color: #ffffff;
    display: flex;
    align-items: baseline;
    gap: 4px;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.balance-currency {
    font-size: 1.3rem;
    color: #10b981;
    font-weight: 700;
}

.balance-right {
    display: flex;
    gap: 12px;
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.action-card {
    background: #09090b;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.action-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title-group i {
    font-size: 1.2rem;
    color: #ffffff;
}

.card-title-group h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

/* ===== TABLES ===== */
.table-container {
    background: #09090b;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 20px;
}

.table-header-bar {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #09090b;
}

.table-header-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-search {
    background: #050506;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background: #0d0d10;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-subtle);
}

td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.88rem;
    color: var(--text-secondary);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
}

/* Role Badges */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.role-owner { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.role-manager { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.role-reseller { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.role-partner { background: rgba(6, 182, 212, 0.18); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.4); }
.role-user { background: rgba(148, 163, 184, 0.1); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.2); }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
}

.status-active { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.status-banned { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.discord-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(88, 101, 242, 0.15);
    color: #93a4ec;
    border: 1px solid rgba(88, 101, 242, 0.35);
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
}
.discord-badge:hover {
    background: rgba(88, 101, 242, 0.25);
    color: #ffffff;
    border-color: #5865F2;
}
.discord-badge i {
    color: #5865F2;
    font-size: 0.85rem;
}
.badge-dim {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.74rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-out;
}

.modal-card {
    width: 100%;
    max-width: 520px;
    background: #0e111a;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9);
    animation: modalScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.btn-close-modal:hover {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 900px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        min-height: auto;
    }
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    .app-container {
        flex-direction: column;
    }
    .balance-hero-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* ====================================================================
   CONFIGURATIONS & VISUAL STUDIO LAYOUT
   ==================================================================== */
.studio-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: flex-start;
}

.studio-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.config-slots-panel {
    padding: 20px;
    background: #09090b;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.slots-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.slots-panel-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slots-list-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: none;
    overflow: visible;
}

.slot-item {
    background: #0d0d10;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.slot-item:hover {
    background: #141417;
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.slot-item.editing {
    border-color: #ffffff;
    background: #151518;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
}

.slot-item.editing::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: #ffffff;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px #ffffff;
}

.slot-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.slot-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.slot-meta {
    font-size: 0.74rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.slot-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.slot-meta strong {
    color: #e2e8f0;
}

.slot-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-activate-slot {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-activate-slot:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.slot-active-indicator {
    font-size: 0.72rem;
    color: #10b981;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.btn-del-slot {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444;
    font-size: 0.75rem;
    padding: 5px 9px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-del-slot:hover {
    background: #ef4444;
    color: #ffffff;
}

.slot-tag-active {
    font-size: 0.7rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.studio-main-col {
    background: #09090b;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 26px;
}

.studio-editor-top {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: flex-start;
}

.editor-form-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.banner-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.preset-btn {
    background: #111114;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:hover, .preset-btn.active {
    background: #202025;
    border-color: #ffffff;
    color: #ffffff;
}

.color-presets {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.color-chip {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
}

.color-chip:hover {
    transform: scale(1.15);
}

.color-chip.active {
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.keybinds-container {
    background: #09090b;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
}

.keybinds-list-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    max-height: 160px;
    overflow-y: auto;
}

.keybind-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.keybind-row input {
    background: #050506;
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
}

.keybind-row .kb-id { width: 70px; }
.keybind-row .kb-label { flex: 1; }
.keybind-row .kb-key { width: 45px; text-align: center; font-weight: 700; }

.toggles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.toggle-switch-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #09090b;
    border: 1px solid var(--border-subtle);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.toggle-switch-card:hover {
    background: #111114;
    border-color: var(--border-hover);
}

.switch-toggle {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #161619;
    border: 1px solid #28282e;
    border-radius: 24px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch-slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #71717a;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch-toggle input:checked + .switch-slider {
    background-color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.switch-toggle input:checked + .switch-slider::before {
    transform: translateX(18px);
    background-color: #090a0f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.switch-label-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.toggle-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.toggle-desc {
    font-size: 0.69rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ===== LIVE IN-GAME MENU MOCKUP PREVIEW ===== */
.editor-preview-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-header-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.menu-mockup-frame {
    width: 100%;
    max-width: 340px;
    background: #050506;
    border: 1px solid #1c1c22;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.95), 0 0 20px rgba(255, 255, 255, 0.03);
}

.mockup-banner-box {
    width: 100%;
    height: 100px;
    background: #000;
    overflow: hidden;
    position: relative;
}

.mockup-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mockup-tabs-bar {
    display: flex;
    background: #09090b;
    border-bottom: 1px solid #18181c;
    overflow-x: auto;
}

.m-tab {
    padding: 7px 9px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.m-tab.active {
    color: #ffffff;
    background: #141417;
    border-bottom: 2px solid #ffffff;
}

.mockup-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 190px;
}

.mockup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    background: #09090b;
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    color: #ffffff;
    border: 1px solid transparent;
}

.mockup-item.active {
    background: #ffffff;
    color: #000000;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
}

.mockup-item.active .item-left i {
    color: #000000;
}

.item-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-left i {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.item-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.mockup-item.active .item-tag {
    background: rgba(0, 0, 0, 0.15);
    color: #000000;
}

.mockup-footer-bar {
    padding: 6px 10px;
    background: #050506;
    border-top: 1px solid #18181c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.mockup-pill-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #0e0e11;
    border: 1px solid var(--border-subtle);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    color: #ffffff;
}

.mockup-pill-indicator .dot {
    width: 5px;
    height: 5px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 6px #ffffff;
}

/* ====================================================================
   LICENSE REMAINING TIME CARD STYLES
   ==================================================================== */
.license-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .license-grid {
        grid-template-columns: 1fr;
    }
}

.license-card-hero {
    background: radial-gradient(circle at 50% 0%, rgba(18, 20, 30, 0.7) 0%, rgba(10, 11, 16, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.license-card-hero:hover {
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.remaining-time-box {
    background: radial-gradient(ellipse at 50% 25%, rgba(28, 32, 48, 0.8) 0%, rgba(6, 7, 10, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 26px 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.remaining-time-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.remaining-time-countdown {
    font-size: 2.1rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-shadow: 0 0 35px rgba(255, 255, 255, 0.35);
}

.remaining-time-sub {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 500;
}

.auth-secured-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 16px;
}

.authkey-display-box {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(6, 7, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.authkey-display-box code {
    font-family: 'Fira Code', monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    flex: 1;
    overflow-x: auto;
    letter-spacing: 0.5px;
}

/* Form inputs & action buttons for License tab */
.license-action-form {
    display: flex;
    gap: 14px;
    width: 100%;
    align-items: stretch;
}

@media (max-width: 650px) {
    .license-action-form {
        flex-direction: column;
    }
}

.license-input {
    flex: 1;
    min-width: 0;
    background: rgba(5, 6, 9, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    padding: 13px 18px !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    outline: none !important;
    transition: all 0.25s ease !important;
}

.license-input:focus {
    background: rgba(10, 12, 18, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15) !important;
}

.license-input.input-amber:focus {
    border-color: #fbbf24 !important;
    box-shadow: 0 0 22px rgba(251, 191, 36, 0.28) !important;
}

.license-input.input-cyan:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.28) !important;
}

/* Premium Buttons */
.btn-activate {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%) !important;
    color: #0b0c10 !important;
    border: 1px solid rgba(251, 191, 36, 0.75) !important;
    font-weight: 800 !important;
    padding: 13px 26px !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 22px rgba(251, 191, 36, 0.38) !important;
    transition: all 0.25s ease !important;
    flex-shrink: 0 !important;
}

.btn-activate:hover {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%) !important;
    box-shadow: 0 6px 32px rgba(251, 191, 36, 0.6) !important;
    transform: translateY(-2px) !important;
}

.btn-activate:active {
    transform: translateY(0) !important;
}

.btn-hwid {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(56, 189, 248, 0.75) !important;
    font-weight: 800 !important;
    padding: 13px 26px !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 22px rgba(56, 189, 248, 0.38) !important;
    transition: all 0.25s ease !important;
    flex-shrink: 0 !important;
}

.btn-hwid:hover {
    background: linear-gradient(135deg, #7dd3fc 0%, #0ea5e9 100%) !important;
    box-shadow: 0 6px 32px rgba(56, 189, 248, 0.6) !important;
    transform: translateY(-2px) !important;
}

.btn-hwid:active {
    transform: translateY(0) !important;
}

.btn-refresh-status {
    background: linear-gradient(135deg, #1e2230 0%, #11131c 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    font-weight: 700 !important;
    padding: 11px 22px !important;
    border-radius: 10px !important;
    font-size: 0.92rem !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45) !important;
    transition: all 0.25s ease !important;
}

.btn-refresh-status:hover {
    background: #252a3b !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) !important;
}

.btn-copy-auth {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.btn-copy-auth:hover {
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-1px) !important;
}

.btn-regen-auth {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.btn-regen-auth:hover {
    background: rgba(239, 68, 68, 0.22) !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.35) !important;
    transform: translateY(-1px) !important;
}

/* Icon bubbles & badges */
.icon-bubble {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.icon-bubble-amber {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.25);
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.15);
}

.icon-bubble-cyan {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
}

.icon-bubble-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.15);
}

.icon-bubble-purple {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.15);
}

.badge-amber {
    background: rgba(251, 191, 36, 0.14) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.35) !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
}

.badge-cyan {
    background: rgba(56, 189, 248, 0.14) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
}

.status-chip-emerald {
    background: rgba(16, 185, 129, 0.14) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2) !important;
    font-size: 0.85rem !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
}

/* ====================================================================
   OWNER CATEGORY FILTER BAR
   ==================================================================== */
.category-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.cat-filter-btn {
    background: #09090b;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.cat-filter-btn:hover {
    background: #171b26;
    color: #ffffff;
    border-color: var(--border-hover);
}

.cat-filter-btn.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.cat-filter-btn .cat-count {
    background: rgba(0, 0, 0, 0.2);
    color: inherit;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.cat-filter-btn:not(.active) .cat-count {
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1080px) {
    .studio-grid {
        grid-template-columns: 1fr;
    }
    .studio-editor-top {
        grid-template-columns: 1fr;
    }
    .menu-mockup-frame {
        max-width: 100%;
    }
}

.modal-overlay.hidden,
.app-container.hidden,
.auth-container.hidden,
.hidden {
    display: none !important;
}




/* ===== RESELLER PRICING CARDS (MATCHING SPEC) ===== */
.reseller-keys-section {
    background: #09090b;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg, 16px);
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.reseller-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.reseller-controls-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.product-pills-bar {
    display: inline-flex;
    background: #050506;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    gap: 4px;
}

.product-pill-btn {
    background: transparent;
    color: #8c93a3;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.product-pill-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.product-pill-btn.active {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.qty-stepper-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #050506;
    padding: 5px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

.qty-control-label {
    font-size: 0.82rem;
    color: #8c93a3;
    font-weight: 600;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qty-btn {
    background: #111114;
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.15s ease;
}

.qty-btn:hover {
    background: #202025;
    border-color: #ffffff;
}

.qty-stepper input[type="number"] {
    width: 48px;
    height: 28px;
    background: #000000;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: #ffffff;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    -moz-appearance: textfield;
}

.qty-stepper input[type="number"]::-webkit-outer-spin-button,
.qty-stepper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* CARDS GRID */
.pricing-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

@media (max-width: 980px) {
    .pricing-cards-container {
        grid-template-columns: 1fr;
    }
}

#pricing-card-1day {
    display: none !important;
}

body.is-manager #pricing-card-1day,
body.is-owner #pricing-card-1day {
    display: flex !important;
}

.pricing-card {
    background: #0d0d10;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg, 16px);
    padding: 30px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.pricing-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.25);
    background: #141417;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.pricing-card-header {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #8c93a3;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.pricing-card-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pricing-original-price {
    font-size: 1.15rem;
    font-weight: 600;
    color: #52525b;
    text-decoration: line-through;
}

.pricing-active-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1;
}

.pricing-each-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #71717a;
}

.pricing-card-discount {
    font-size: 0.85rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 24px;
}

.pricing-card-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
}

.pricing-card-total {
    font-size: 0.92rem;
    font-weight: 600;
    color: #8c93a3;
    margin-bottom: 20px;
}

.pricing-card-total strong {
    color: #ffffff;
    font-weight: 800;
}

.pricing-generate-btn {
    width: 100%;
    padding: 12px 20px;
    background: #ffffff;
    color: #090a0f;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.12);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-generate-btn:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(255, 255, 255, 0.25);
}

.pricing-generate-btn:active {
    transform: translateY(1px);
}

/* ===== DISCORD AUTHENTICATION & OAUTH2 STYLES ===== */
.btn-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 13px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.45);
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.btn-discord:hover {
    background: linear-gradient(135deg, #6775f8 0%, #535edb 100%);
    box-shadow: 0 6px 28px rgba(88, 101, 242, 0.7);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0 16px 0;
    color: #71717a;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-divider span {
    padding: 0 12px;
}

.auth-tip-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(88, 101, 242, 0.08);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 10px;
    font-size: 0.8rem;
    color: #a1a1aa;
    line-height: 1.45;
}

.auth-tip-card i {
    color: #5865F2;
    font-size: 1rem;
    margin-top: 2px;
}

.discord-pending-box {
    text-align: center;
    padding: 10px 0;
}

.discord-avatar-badge {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 12px auto;
}

.discord-avatar-badge img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #5865F2;
    object-fit: cover;
    box-shadow: 0 0 25px rgba(88, 101, 242, 0.5);
}

.discord-verified-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #5865F2;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 2px solid #18181b;
}

.discord-pending-sub {
    font-size: 0.85rem;
    color: #a1a1aa;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* ====================================================================
   GEN PARTNER WEEKLY QUOTA BANNER
   ==================================================================== */
.partner-quota-container {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.09) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(7, 8, 12, 0.95) 100%);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(6, 182, 212, 0.2);
    position: relative;
    overflow: hidden;
}

.partner-quota-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.partner-quota-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.partner-quota-title-group i {
    font-size: 1.5rem;
    color: #06b6d4;
    text-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
}

.partner-quota-title-group h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.partner-quota-title-group p {
    margin: 2px 0 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.partner-quota-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(6, 182, 212, 0.18);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.45);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partner-quota-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.partner-quota-card-item {
    background: rgba(12, 16, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    position: relative;
    transition: all 0.2s ease;
}

.partner-quota-card-item:hover {
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.partner-quota-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.partner-quota-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partner-quota-counter {
    font-size: 1.5rem;
    font-weight: 900;
    color: #06b6d4;
    line-height: 1;
    margin-bottom: 6px;
}

.partner-quota-counter span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.partner-quota-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.partner-quota-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.partner-quota-progress-fill.empty {
    background: #ef4444;
}

/* ==================================================== */
/* 4S IMAGE HOSTING & DIRECT URL GENERATOR */
/* ==================================================== */
.image-uploader-card {
    background: #09090b;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
}

.image-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.015);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.image-dropzone:hover,
.image-dropzone.drag-active {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.05);
    transform: translateY(-1px);
}

.image-dropzone i.main-icon {
    font-size: 2.4rem;
    color: #c084fc;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

.image-dropzone:hover i.main-icon {
    transform: scale(1.1);
}

.image-dropzone-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.image-dropzone-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.image-selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 8px;
    animation: fadeInScale 0.2s ease-out;
}

.image-upload-controls-grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
}

@media (max-width: 768px) {
    .image-upload-controls-grid {
        grid-template-columns: 1fr;
    }
}

.image-upload-result-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(9, 9, 11, 0.9) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeInScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-upload-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.image-upload-result-body {
    display: flex;
    gap: 16px;
    align-items: center;
}

@media (max-width: 600px) {
    .image-upload-result-body {
        flex-direction: column;
        align-items: flex-start;
    }
}

.image-upload-result-preview {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #000;
    flex-shrink: 0;
}

.image-upload-result-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.image-gallery-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.image-gallery-card:hover {
    border-color: rgba(192, 132, 252, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.image-gallery-thumb-wrap {
    position: relative;
    width: 100%;
    height: 140px;
    background: #000000;
    overflow: hidden;
    cursor: pointer;
}

.image-gallery-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-gallery-card:hover .image-gallery-thumb {
    transform: scale(1.05);
}

.image-gallery-size-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e4e4e7;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.image-gallery-info {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.image-gallery-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
    text-align: left;
}

.image-gallery-sub {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.image-gallery-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px;
}

.image-gallery-actions .btn-sm {
    padding: 6px 10px;
    font-size: 0.78rem;
}

.btn-danger-ghost {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.78rem;
    transition: all 0.2s ease;
}

.btn-danger-ghost:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
