/* ============================================
   BROPRO NEW ADMIN PANEL - PREMIUM CSS
   World-Class Control Panel Styling
   ============================================ */

/* ============================================
   CSS VARIABLES - Matching Main Site Theme
   ============================================ */
:root {
    /* Primary Colors */
    --primary-hue: 217;
    --primary: hsl(var(--primary-hue), 100%, 60%);
    --primary-dark: hsl(var(--primary-hue), 100%, 50%);
    --primary-light: hsl(var(--primary-hue), 100%, 95%);

    --secondary: hsl(340, 100%, 65%);
    --accent: hsl(45, 100%, 55%);
    --admin-orange: #ff6b35;
    --admin-gold: #fbbf24;

    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;

    /* Borders & Shadows */
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #052962 0%, #1e3a8a 100%);
    --gradient-admin: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dark Theme (Default for Admin) */
[data-theme="dark"] {
    --bg-primary: #060b13;
    --bg-secondary: #0b1322;
    --bg-tertiary: #141f33;

    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-tertiary: #718096;

    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* ============================================
   BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================
   BACKGROUND ANIMATION
   ============================================ */
.admin-bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.admin-floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    bottom: -50px;
    left: -50px;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

.admin-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: pulseOrb 8s ease-in-out infinite alternate;
}

.orb-1 {
    width: 150px;
    height: 150px;
    background: rgba(255, 107, 53, 0.2);
    top: 30%;
    right: 20%;
}

.orb-2 {
    width: 120px;
    height: 120px;
    background: rgba(102, 126, 234, 0.2);
    bottom: 30%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    50% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }

    75% {
        transform: translate(20px, 30px) rotate(3deg);
    }
}

@keyframes pulseOrb {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.3);
        opacity: 0.5;
    }
}

/* ============================================
   LOGIN GATE STYLES
   ============================================ */
.login-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--spacing-lg);
}

.login-container {
    position: relative;
    z-index: 1;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl) var(--spacing-xl);
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: slideUp 0.6s ease;
}

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

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

/* Login Logo */
.login-logo {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 187, 36, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

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

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

.logo-crown {
    font-size: 4rem;
    filter: drop-shadow(0 4px 15px rgba(255, 187, 36, 0.5));
    animation: crownBounce 2s ease-in-out infinite;
}

@keyframes crownBounce {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Login Title */
.login-title {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-admin);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-lg);
}

/* Login Status */
.login-status {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    display: none;
}

.login-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.login-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

/* Google Login Button */
.google-login-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: white;
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.google-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.google-login-btn:active {
    transform: translateY(0);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.login-hint {
    margin-top: var(--spacing-md);
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* Login Loading */
.login-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--text-secondary);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 107, 53, 0.2);
    border-top-color: var(--admin-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Access Denied */
.access-denied {
    text-align: center;
}

.denied-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--spacing-md);
}

.access-denied h2 {
    font-size: 1.5rem;
    color: #ef4444;
    margin-bottom: var(--spacing-sm);
}

.access-denied p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.logout-btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--gradient-admin);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.logout-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.back-link {
    display: block;
    margin-top: var(--spacing-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--primary);
}

/* Login Footer */
.login-footer {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* ============================================
   ADMIN DASHBOARD STYLES
   ============================================ */
.admin-dashboard {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: var(--spacing-md);
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-lg);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-crown {
    font-size: 2rem;
    animation: crownBounce 2s ease-in-out infinite;
}

.header-title {
    display: flex;
    flex-direction: column;
}

.header-title h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-admin);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-title span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 1.25rem;
}

.header-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.header-btn.logout-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.header-btn.inbox-btn {
    position: relative;
}

.inbox-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 10px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

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

    50% {
        transform: scale(1.1);
    }
}

.home-btn {
    text-decoration: none;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   PREMIUM HORIZONTAL CARDS ROW
   ============================================ */
.cards-scroll-container {
    width: 100%;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

/* Fade edges for scroll indication */
.cards-scroll-container::before,
.cards-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    pointer-events: none;
    z-index: 2;
}

.cards-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.cards-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

.cards-scroll-row {
    display: flex;
    gap: 12px;
    padding: 10px 5px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cards-scroll-row::-webkit-scrollbar {
    display: none;
}

/* Premium Card Base - State of the Art */
.premium-card {
    position: relative;
    flex-shrink: 0;
    width: 110px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.95), rgba(20, 20, 40, 0.98));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Premium Rainbow Shimmer Effect */
.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.premium-card:hover::before {
    left: 100%;
}

/* Card Glow Effect */
.premium-card .card-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 18px;
}

.premium-card:hover .card-glow {
    opacity: 1;
}

.premium-card:hover {
    transform: translateY(-8px) scale(1.06);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px currentColor;
    border-color: rgba(255, 255, 255, 0.3);
}

.premium-card:active {
    transform: translateY(-4px) scale(1.03);
}

/* Card Icon - Larger and More Prominent */
.premium-card .card-icon {
    font-size: 2.2rem;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover .card-icon {
    transform: scale(1.2) translateY(-3px);
}

/* Card Value (for count cards) */
.premium-card .card-value {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Card Label - More Visible */
.premium-card .card-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Live Indicator */
.premium-card .live-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
}

.premium-card .live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: block;
    animation: livePulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px #22c55e;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px #22c55e;
    }

    50% {
        opacity: 0.6;
        transform: scale(1.3);
        box-shadow: 0 0 20px #22c55e;
    }
}

@keyframes walletPulse {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.15);
        color: #34d399;
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
        color: #10b981;
    }
}

/* ============================================
   INDIVIDUAL CARD THEMES - PREMIUM COLORS
   ============================================ */

/* Online Card - Emerald Green */
.premium-card.card-online {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
    border-color: rgba(16, 185, 129, 0.4);
}

.premium-card.card-online .card-glow {
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
}

.premium-card.card-online:hover {
    border-color: rgba(16, 185, 129, 0.7);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.25);
}

.premium-card.card-online .card-value {
    color: #34d399;
}

/* Messages Card - Royal Blue */
.premium-card.card-messages {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.1));
    border-color: rgba(59, 130, 246, 0.4);
}

.premium-card.card-messages .card-glow {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
}

.premium-card.card-messages:hover {
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.25);
}

.premium-card.card-messages .card-value {
    color: #60a5fa;
}

/* Players Card - Purple */
.premium-card.card-players {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.2), rgba(109, 40, 217, 0.1));
    border-color: rgba(139, 92, 246, 0.4);
}

.premium-card.card-players .card-glow {
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
}

.premium-card.card-players:hover {
    border-color: rgba(139, 92, 246, 0.7);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.25);
}

.premium-card.card-players .card-value {
    color: #a78bfa;
}

/* Group Message Card - Orange */
.premium-card.card-group {
    background: linear-gradient(145deg, rgba(249, 115, 22, 0.2), rgba(234, 88, 12, 0.1));
    border-color: rgba(249, 115, 22, 0.4);
}

.premium-card.card-group .card-glow {
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.3) 0%, transparent 70%);
}

.premium-card.card-group:hover {
    border-color: rgba(249, 115, 22, 0.7);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.25);
}

/* Card Badge - Unread Count */
.premium-card .card-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 11px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.6);
    animation: cardBadgePulse 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes cardBadgePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(239, 68, 68, 0.6);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.8);
    }
}

/* Push Notify Card - Amber/Bell Yellow */
.premium-card.card-notify {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1));
    border-color: rgba(245, 158, 11, 0.4);
}

.premium-card.card-notify .card-glow {
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
}

.premium-card.card-notify:hover {
    border-color: rgba(245, 158, 11, 0.7);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.25);
}

/* Promo Card - Pink/Magenta */
.premium-card.card-promo {
    background: linear-gradient(145deg, rgba(236, 72, 153, 0.2), rgba(219, 39, 119, 0.1));
    border-color: rgba(236, 72, 153, 0.4);
}

.premium-card.card-promo .card-glow {
    background: radial-gradient(circle at center, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
}

.premium-card.card-promo:hover {
    border-color: rgba(236, 72, 153, 0.7);
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.25);
}

/* Premium Card - Gold */
.premium-card.card-premium {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.25), rgba(255, 140, 0, 0.15));
    border-color: rgba(255, 215, 0, 0.5);
}

.premium-card.card-premium .card-glow {
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.35) 0%, transparent 70%);
}

.premium-card.card-premium:hover {
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

.premium-card.card-premium .card-icon {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* BhAI Card - Cyan/Teal */
.premium-card.card-bhai {
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.2), rgba(20, 184, 166, 0.1));
    border-color: rgba(6, 182, 212, 0.4);
}

.premium-card.card-bhai .card-glow {
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
}

.premium-card.card-bhai:hover {
    border-color: rgba(6, 182, 212, 0.7);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.25);
}

/* BhAI Data Updates Card - Violet/Grape */
.premium-card.card-bhaidata {
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.25), rgba(139, 92, 246, 0.15));
    border-color: rgba(168, 85, 247, 0.5);
}

.premium-card.card-bhaidata .card-glow {
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.35) 0%, transparent 70%);
}

.premium-card.card-bhaidata:hover {
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.3);
}

.premium-card.card-bhaidata .card-icon {
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
}

/* Find User Card - Indigo */
.premium-card.card-find {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.2), rgba(79, 70, 229, 0.1));
    border-color: rgba(99, 102, 241, 0.4);
}

.premium-card.card-find .card-glow {
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
}

.premium-card.card-find:hover {
    border-color: rgba(99, 102, 241, 0.7);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.25);
}

/* Restore Card - Lime Green */
.premium-card.card-restore {
    background: linear-gradient(145deg, rgba(132, 204, 22, 0.2), rgba(101, 163, 13, 0.1));
    border-color: rgba(132, 204, 22, 0.4);
}

.premium-card.card-restore .card-glow {
    background: radial-gradient(circle at center, rgba(132, 204, 22, 0.3) 0%, transparent 70%);
}

.premium-card.card-restore:hover {
    border-color: rgba(132, 204, 22, 0.7);
    box-shadow: 0 15px 40px rgba(132, 204, 22, 0.25);
}

/* BroNest Card - Warm Violet/Nest */
.premium-card.card-bronest {
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.25), rgba(79, 70, 229, 0.15));
    border-color: rgba(124, 58, 237, 0.5);
}

.premium-card.card-bronest .card-glow {
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.35) 0%, transparent 70%);
}

.premium-card.card-bronest:hover {
    border-color: rgba(124, 58, 237, 0.8);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.3);
}

.premium-card.card-bronest .card-icon {
    filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.5));
}

/* Chat Personalize Card - Sky Blue */
.premium-card.card-personalize {
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.1));
    border-color: rgba(56, 189, 248, 0.4);
}

.premium-card.card-personalize .card-glow {
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.3) 0%, transparent 70%);
}

.premium-card.card-personalize:hover {
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.25);
}

.premium-card.card-personalize .card-icon {
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
}

/* Extra Tools Card - Warm Coral/Orange */
.premium-card.card-extra {
    background: linear-gradient(145deg, rgba(251, 146, 60, 0.25), rgba(234, 88, 12, 0.15));
    border-color: rgba(251, 146, 60, 0.5);
}

.premium-card.card-extra .card-glow {
    background: radial-gradient(circle at center, rgba(251, 146, 60, 0.35) 0%, transparent 70%);
}

.premium-card.card-extra:hover {
    border-color: rgba(251, 146, 60, 0.8);
    box-shadow: 0 15px 40px rgba(251, 146, 60, 0.3);
}

.premium-card.card-extra .card-icon {
    filter: drop-shadow(0 0 10px rgba(251, 146, 60, 0.5));
}

/* Inbox/Mailbox Card - Rose */
.premium-card.card-inbox {
    background: linear-gradient(145deg, rgba(244, 63, 94, 0.2), rgba(225, 29, 72, 0.1));
    border-color: rgba(244, 63, 94, 0.4);
}

.premium-card.card-inbox .card-glow {
    background: radial-gradient(circle at center, rgba(244, 63, 94, 0.3) 0%, transparent 70%);
}

.premium-card.card-inbox:hover {
    border-color: rgba(244, 63, 94, 0.7);
    box-shadow: 0 15px 40px rgba(244, 63, 94, 0.25);
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .premium-card {
        width: 95px;
        height: 105px;
        padding: 12px 10px;
        gap: 6px;
    }

    .premium-card .card-icon {
        font-size: 1.8rem;
    }

    .premium-card .card-value {
        font-size: 1.1rem;
    }

    .premium-card .card-label {
        font-size: 0.7rem;
    }
}

/* ============================================
   LEGACY STYLES (keeping for compatibility)
   ============================================ */

/* Main Content Grid */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

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

/* Content Panels */
.content-panel {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1rem;
    font-weight: 700;
}

.panel-badge {
    padding: 2px 8px;
    background: rgba(255, 107, 53, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--admin-orange);
}

.panel-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.panel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.panel-btn:hover {
    background: var(--primary);
    color: white;
}

.panel-content {
    padding: var(--spacing-md);
    max-height: 400px;
    overflow-y: auto;
}

/* ============================================
   PREMIUM USER CARDS - World Class Design
   ============================================ */
.user-card-premium {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.95), rgba(20, 20, 40, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.user-card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
    pointer-events: none;
}

.user-card-premium:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.user-card-premium.is-online {
    border-color: rgba(34, 197, 94, 0.3);
}

.user-card-premium.is-online::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
}

/* Card Left - Avatar Section */
.user-card-premium .card-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.user-card-premium .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Online Status - Green, Pulsing */
.user-card-premium .status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
    animation: livePulse 1.5s ease-in-out infinite;
}

/* Away Status - Yellow/Orange, Static */
.user-card-premium .status-dot.away {
    background: #fbbf24;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

/* Offline Status - Gray, No glow */
.user-card-premium .status-dot.offline {
    background: rgba(148, 163, 184, 0.6);
    box-shadow: none;
}

/* Card state for Away users */
.user-card-premium.is-away {
    border-color: rgba(251, 191, 36, 0.25);
}

.user-card-premium.is-away::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
}

/* Status Section Labels */
.status-section-label {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    margin: 0.75rem 0 0.5rem 0;
}

.status-section-label.online {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-section-label.away {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.user-card-premium .avatar-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.user-card-premium .avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Center - Info Section */
.user-card-premium .card-center {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.user-card-premium .user-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-card-premium .name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card-premium .pro-badge {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.user-card-premium .email {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   INBOX TYPING INDICATOR — WhatsApp/Telegram Style
   Shows "typing..." with animated dots on user cards
   ============================================ */

/* Card state when user is typing */
.user-card-premium.is-typing {
    border-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.08);
}

.user-card-premium.is-typing::after {
    background: linear-gradient(90deg, transparent, #10b981, transparent) !important;
}

/* Typing indicator text line */
.inbox-typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #34d399;
    margin-top: 1px;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    max-height: 20px;
    opacity: 1;
    overflow: hidden;
}

.inbox-typing-indicator.hidden {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    pointer-events: none;
}

/* Animated bouncing dots */
.inbox-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.inbox-typing-dots span {
    width: 4px;
    height: 4px;
    background: #34d399;
    border-radius: 50%;
    display: inline-block;
    animation: inboxTypingBounce 1.4s ease-in-out infinite;
}

.inbox-typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.inbox-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.inbox-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes inboxTypingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* Level Row */
.user-card-premium .level-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.user-card-premium .rank-badge {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.user-card-premium .level-num {
    padding: 3px 8px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #a78bfa;
}

.user-card-premium .xp-num {
    padding: 3px 8px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #60a5fa;
}

.user-card-premium .time-ago {
    padding: 3px 8px;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.25), rgba(245, 158, 11, 0.2));
    border: 1px solid rgba(251, 146, 60, 0.3);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fb923c;
}

/* Clean time ago for minimal card design — Premium dual-format */
.user-card-premium .time-ago-clean {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
    line-height: 1;
}

.user-card-premium .time-ago-clean .time-relative {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fb923c;
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.18), rgba(245, 158, 11, 0.12));
    border: 1px solid rgba(251, 146, 60, 0.25);
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.user-card-premium .time-ago-clean .time-exact {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.user-card-premium:hover .time-ago-clean .time-exact {
    color: rgba(255, 255, 255, 0.55);
}

/* XP Progress Bar */
.user-card-premium .xp-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.user-card-premium .xp-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.user-card-premium .xp-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px currentColor;
}

.user-card-premium .xp-text {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* Info Tags Row */
.user-card-premium .tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.user-card-premium .info-tag {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.user-card-premium .info-tag.device {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.user-card-premium .info-tag.login {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.user-card-premium .info-tag.quiz-today {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.user-card-premium .info-tag.quiz-total {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.user-card-premium .info-tag.subject {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

/* Card Actions */
.user-card-premium .card-actions {
    display: flex;
    flex-direction: row;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
}

.user-card-premium .act-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.user-card-premium .act-btn:hover {
    transform: scale(1.1);
}

.user-card-premium .act-btn.view:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: #8b5cf6;
}

.user-card-premium .act-btn.time:hover {
    background: rgba(16, 185, 129, 0.3);
    border-color: #10b981;
}

.user-card-premium .act-btn.msg:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

.user-card-premium .act-btn.del:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .user-card-premium {
        padding: 12px;
        gap: 12px;
    }

    .user-card-premium .avatar-wrap {
        width: 48px;
        height: 48px;
    }

    .user-card-premium .card-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .user-card-premium .act-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* Legacy User Card Styles */
.user-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    transition: all var(--transition-fast);
}

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

.user-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.user-status.online {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    animation: livePulse 1.5s ease-in-out infinite;
}

.user-status.offline {
    background: #fbbf24;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    align-items: center;
}

.user-badge {
    padding: 2px 8px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 4px;
    font-size: 0.7rem;
    color: #a78bfa;
    font-weight: 500;
}

.user-badge.level {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.user-badge.xp {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.user-badge.last-seen {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.25), rgba(245, 158, 11, 0.2));
    border: 1px solid rgba(251, 146, 60, 0.3);
    color: #fb923c;
    font-weight: 600;
}

/* User Tags Row */
.user-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    align-items: center;
}

.user-tag {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Device Badge - Purple */
.user-tag.device {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

/* Login Badge - Green */
.user-tag.login {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* Quiz Today Badge - Blue */
.user-tag.quiz-today {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

/* Quiz Total Badge - Purple */
.user-tag.quiz-total {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

/* Subject Badge - Yellow */
.user-tag.subject {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

/* Premium Badge - Gold */
.user-tag.premium {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    font-weight: 700;
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 0.6rem;
}

.user-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.user-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.user-action-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.user-action-btn.view:hover {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

.user-action-btn.time:hover {
    background: #10b981;
    border-color: #10b981;
}

.user-action-btn.message:hover {
    background: #3b82f6;
    border-color: #3b82f6;
}

.user-action-btn.delete:hover {
    background: #ef4444;
    border-color: #ef4444;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    color: var(--text-tertiary);
    text-align: center;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

/* Panel Filters */
.panel-filters {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.filter-select {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-btn {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    font-size: 0.85rem;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn.active {
    background: var(--admin-orange);
    color: white;
    border-color: var(--admin-orange);
}

.page-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: var(--spacing-sm);
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: var(--spacing-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.3s ease;
}

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

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--gradient-admin);
    color: white;
}

.modal-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.25rem;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--spacing-lg);
    overflow-y: auto;
    max-height: 60vh;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-btn.primary {
    background: var(--gradient-admin);
    color: white;
}

.modal-btn.primary:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.modal-btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.modal-btn.secondary:hover {
    background: var(--bg-primary);
}

/* Chat Modal Specific */
.chat-modal {
    max-width: 600px;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--gradient-admin);
}

.chat-recipient {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
}

.chat-recipient-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.chat-recipient-info h3 {
    font-size: 1rem;
    color: white;
}

.chat-recipient-info span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: var(--spacing-md);
    background: var(--bg-primary);
    /* Prevent browser from auto-anchoring scroll to elements */
    overflow-anchor: none;
}

.chat-message {
    max-width: 80%;
    margin-bottom: var(--spacing-md);
    animation: messageSlide 0.3s ease;
}

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

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

.chat-message.sent {
    margin-left: auto;
}

.chat-message.received {
    margin-right: auto;
}

.message-bubble {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.sent .message-bubble {
    background: var(--gradient-admin);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.received .message-bubble {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-top: 4px;
    text-align: right;
}

.chat-message.received .message-time {
    text-align: left;
}

.chat-input-area {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-send-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--gradient-admin);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chat-send-btn:hover {
    transform: scale(1.05);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: toastSlide 0.3s ease;
    max-width: 350px;
}

@keyframes toastSlide {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

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

.toast.success {
    border-left: 4px solid #22c55e;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

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

.toast-message {
    font-size: 0.9rem;
}

/* ============================================
   SEARCH MODAL
   ============================================ */
.search-input-wrapper {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.search-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 45px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.search-icon {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--text-tertiary);
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
}

/* ============================================
   NOTIFICATION MODAL
   ============================================ */
.notification-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.mode-switcher {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 4px;
}

.mode-btn {
    flex: 1;
    padding: var(--spacing-sm);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mode-btn.active {
    background: var(--gradient-admin);
    color: white;
}

/* ============================================
   INBOX STYLES
   ============================================ */
.inbox-list {
    max-height: 500px;
    overflow-y: auto;
}

.inbox-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.inbox-item.unread {
    background: rgba(255, 107, 53, 0.1);
}

.inbox-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.inbox-info {
    flex: 1;
    min-width: 0;
}

.inbox-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.inbox-preview {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inbox-meta {
    text-align: right;
}

.inbox-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.inbox-unread-badge {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    background: var(--admin-orange);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    line-height: 20px;
    margin-top: 4px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .header-left {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions {
        grid-template-columns: repeat(3, 1fr);
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .user-card {
        flex-wrap: wrap;
    }

    .user-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: var(--spacing-sm);
    }

    .modal-content {
        max-height: 90vh;
    }

    .chat-messages {
        height: 300px;
    }

    .toast-container {
        left: var(--spacing-md);
        right: var(--spacing-md);
        bottom: var(--spacing-md);
    }

    .toast {
        max-width: none;
    }
}

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

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .login-container {
        padding: var(--spacing-lg);
    }

    .login-title {
        font-size: 1.5rem;
    }

    .logo-crown {
        font-size: 3rem;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   USER PROFILE MODAL
   ============================================ */
.profile-modal-header {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--gradient-admin);
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.profile-email {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.profile-badge {
    display: inline-block;
    margin-top: var(--spacing-sm);
    padding: 4px 12px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: #000;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
}

.profile-stat {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.profile-stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.profile-stat-value {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
   GROUP MESSAGING
   ============================================ */
.group-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.group-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.group-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.group-item.selected {
    background: rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.3);
}

.group-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.group-info {
    flex: 1;
}

.group-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.group-count {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.group-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--admin-orange);
}

.recipient-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(34, 197, 94, 0.15);
    border-radius: var(--radius-md);
    color: #4ade80;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

/* ============================================
   PREMIUM RESTORE PROGRESS MODAL
   ============================================ */

/* Modal Header - Orange Gradient like old admin */
.restore-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin: -24px -24px 24px -24px;
}

.restore-modal-header .restore-icon {
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 12px;
}

.restore-modal-header h2 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

/* Modal Body */
.restore-modal-body {
    padding: 0;
}

.restore-section {
    margin-bottom: 20px;
}

.restore-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-align: center;
}

.restore-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.restore-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.restore-input::placeholder {
    color: var(--text-tertiary);
}

/* Find User Button */
.restore-find-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.restore-find-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.restore-find-btn:active {
    transform: translateY(0);
}

/* User Display Card */
.restore-user-display {
    margin: 20px 0;
}

.restore-user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 14px;
}

.restore-user-avatar {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

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

.restore-user-info {
    flex: 1;
}

.restore-user-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.restore-user-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Form Section */
.restore-form-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Level Preset Chips */
.restore-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.preset-chip {
    padding: 8px 16px;
    background: rgba(40, 40, 60, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-chip:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.5);
    color: #ff6b35;
    transform: translateY(-2px);
}

.preset-chip:active {
    transform: translateY(0);
}

/* Preview Section */
.restore-preview {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #a5b4fc;
    text-align: center;
}

/* Search Log */
.restore-log {
    max-height: 120px;
    overflow-y: auto;
    padding: 12px 16px;
    background: rgba(20, 20, 35, 0.9);
    border-radius: 10px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.restore-log div {
    padding: 4px 0;
}

/* Modal Footer */
.restore-modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.restore-cancel-btn {
    flex: 1;
    padding: 14px 20px;
    background: rgba(60, 60, 80, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.restore-cancel-btn:hover {
    background: rgba(80, 80, 100, 0.8);
}

.restore-submit-btn {
    flex: 1;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.restore-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.restore-submit-btn:active {
    transform: translateY(0);
}

/* ============================================
   GROUP MESSAGING MODAL - PREMIUM OVERRIDE
   ============================================ */
.gm-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(10, 10, 30, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100000 !important;
    padding: 20px !important;
    opacity: 0;
    transition: opacity 0.3s ease !important;
}

.gm-modal.active {
    display: flex !important;
    opacity: 1 !important;
}

.gm-modal-content {
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.98), rgba(20, 20, 40, 0.98));
    border: 1px solid rgba(138, 92, 246, 0.3);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(138, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

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

.gm-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #a855f7 100%);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gm-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gm-header-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.gm-header-text h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gm-header-text p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 4px 0 0;
}

.gm-close-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gm-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.gm-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.gm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gm-section-header h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.gm-add-group-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gm-add-group-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.gm-groups-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.gm-group-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gm-group-card:hover {
    background: rgba(138, 92, 246, 0.15);
    border-color: rgba(138, 92, 246, 0.3);
}

.gm-group-card.selected {
    background: rgba(138, 92, 246, 0.2);
    border-color: #8b5cf6;
    box-shadow: 0 0 15px rgba(138, 92, 246, 0.3);
}

.gm-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.gm-checkbox.checked {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

.gm-group-icon {
    font-size: 1.5rem;
}

.gm-group-info {
    flex: 1;
    min-width: 0;
}

.gm-group-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gm-type-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.gm-type-badge.channel {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.gm-type-badge.broadcast {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.gm-group-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-top: 2px;
}

.gm-group-actions {
    display: flex;
    gap: 6px;
}

.gm-group-actions button {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.gm-chat-btn:hover {
    background: rgba(16, 185, 129, 0.3);
    border-color: #10b981;
}

.gm-edit-btn:hover {
    background: rgba(245, 158, 11, 0.3);
    border-color: #f59e0b;
}

.gm-delete-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
}

.gm-label {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gm-textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
    min-height: 60px;
}

.gm-textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(138, 92, 246, 0.1);
    box-shadow: 0 0 20px rgba(138, 92, 246, 0.2);
}

.gm-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.gm-message-input {
    min-height: 100px;
}

.gm-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 16px;
}

.gm-recipient-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    font-weight: 600;
    font-size: 1rem;
}

.gm-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    padding: 0 8px;
}

.gm-send-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 92, 246, 0.3);
}

.gm-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 92, 246, 0.5);
}

.gm-send-icon {
    font-size: 1.2rem;
}

.gm-loading,
.gm-empty-state {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.6);
}

.gm-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Create/Edit Group Modal */
.cg-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(10, 10, 30, 0.92) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100001 !important;
    /* Higher than Group Messaging modal (100000) */
    padding: 20px !important;
    opacity: 0;
    transition: opacity 0.3s ease !important;
}

.cg-modal.active {
    display: flex !important;
    opacity: 1 !important;
}

.cg-modal-content {
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.98), rgba(20, 20, 40, 0.98));
    border: 1px solid rgba(138, 92, 246, 0.3);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(138, 92, 246, 0.2);
    animation: modalSlideIn 0.3s ease;
}

.cg-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cg-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cg-header-icon {
    font-size: 1.8rem;
}

.cg-header h2 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.cg-close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cg-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cg-body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cg-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.cg-label {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.cg-input {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.cg-input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(138, 92, 246, 0.1);
}

.cg-icon-input {
    width: 80px;
    text-align: center;
    font-size: 1.5rem;
}

.cg-textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
}

.cg-textarea:focus {
    outline: none;
    border-color: #8b5cf6;
}

.cg-toggle-field {
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.cg-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.cg-toggle-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.cg-footer {
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cg-cancel-btn {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cg-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.cg-save-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cg-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 92, 246, 0.4);
}

/* ============================================
   PREMIUM GROUP TYPE SELECTOR
   ============================================ */

.cg-type-selector {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.cg-type-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cg-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.cg-type-card[data-type="channel"]::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.08));
}

.cg-type-card[data-type="broadcast"]::before {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.08));
}

.cg-type-card input[type="radio"] {
    display: none;
}

.cg-type-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.cg-type-card:hover::before {
    opacity: 0.5;
}

/* Selected State - Channel (Green) */
.cg-type-card:has(input:checked)[data-type="channel"] {
    border-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.cg-type-card:has(input:checked)[data-type="channel"]::before {
    opacity: 1;
}

.cg-type-card:has(input:checked)[data-type="channel"] .cg-type-check {
    opacity: 1;
    transform: scale(1);
}

/* Selected State - Broadcast (Purple) */
.cg-type-card:has(input:checked)[data-type="broadcast"] {
    border-color: #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.cg-type-card:has(input:checked)[data-type="broadcast"]::before {
    opacity: 1;
}

.cg-type-card:has(input:checked)[data-type="broadcast"] .cg-type-check {
    opacity: 1;
    transform: scale(1);
}

.cg-type-icon {
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

.cg-type-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.cg-type-name {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.cg-type-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.cg-type-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.cg-type-card[data-type="channel"] .cg-type-check {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.cg-type-card[data-type="broadcast"] .cg-type-check {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .cg-type-selector {
        flex-direction: column;
    }

    .cg-type-card {
        padding: 12px 14px;
    }

    .cg-type-icon {
        font-size: 1.5rem;
    }
}

/* ============================================
   PREMIUM NOTIFICATION MODAL
   World's Most Premium Notification System
   ============================================ */

/* Modal Header */
.nt-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.nt-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.nt-header-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 1.8rem;
    backdrop-filter: blur(10px);
}

.nt-header-info h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.nt-header-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 4px 0 0;
}

.nt-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nt-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Modal Body */
.nt-modal-body {
    flex: 1;
    min-height: 0;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Sections */
.nt-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nt-section-label {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nt-required {
    color: #f43f5e;
    font-weight: bold;
}

/* Type Grid - 8 Card Selector */
.nt-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.nt-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nt-type-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.nt-type-card.selected {
    border-color: currentColor;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.nt-type-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.nt-type-card:hover .nt-type-icon {
    transform: scale(1.1);
}

.nt-type-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nt-type-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nt-type-card.selected .nt-type-check {
    opacity: 1;
    transform: scale(1);
}

/* Input Fields */
.nt-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.nt-input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.nt-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.nt-textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
}

.nt-textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.nt-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.nt-char-count {
    text-align: right;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

/* Options Row */
.nt-options-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.nt-option-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nt-option-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 600;
}

.nt-select {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.nt-select:focus {
    outline: none;
    border-color: #8b5cf6;
}

.nt-select option {
    background: #1a1a2e;
    color: #fff;
}

/* Action Button Toggle */
.nt-action-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.nt-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.nt-toggle-label input[type="checkbox"] {
    display: none;
}

.nt-toggle-slider {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.nt-toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nt-toggle-label input:checked+.nt-toggle-slider {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.nt-toggle-label input:checked+.nt-toggle-slider::before {
    transform: translateX(20px);
}

.nt-action-fields {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.nt-action-label {
    flex: 1;
}

.nt-action-url {
    flex: 2;
}

/* Preview Card */
.nt-preview-card {
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.9), rgba(20, 20, 40, 0.95));
    border: 2px solid #8b5cf6;
    border-radius: 16px;
    padding: 18px;
    transition: border-color 0.3s ease;
}

.nt-preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.nt-preview-icon {
    font-size: 1.3rem;
}

.nt-preview-type {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8b5cf6;
}

.nt-preview-time {
    margin-left: auto;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.nt-preview-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.nt-preview-msg {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

.nt-preview-action {
    margin-top: 14px;
}

.nt-preview-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

/* Modal Footer */
.nt-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.nt-footer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nt-footer-badge {
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    color: #a78bfa;
    font-size: 0.85rem;
    font-weight: 600;
}

.nt-footer-target {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.nt-footer-actions {
    display: flex;
    gap: 12px;
}

.nt-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nt-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.nt-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nt-btn-send {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.nt-btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.nt-btn-send:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.nt-btn-icon {
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .nt-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nt-options-row {
        grid-template-columns: 1fr;
    }

    .nt-modal-footer {
        flex-direction: column;
        gap: 14px;
    }

    .nt-footer-info {
        width: 100%;
        justify-content: center;
    }

    .nt-footer-actions {
        width: 100%;
    }

    .nt-btn {
        flex: 1;
        justify-content: center;
    }

    .nt-action-fields {
        flex-direction: column;
    }
}

/* ============================================
   NOTIFICATION MANAGEMENT TABS & ACTIVE LIST
   Premium Tab Navigation + Card System
   ============================================ */

/* Tab Navigation */
.nt-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    flex-shrink: 0;
}

.nt-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nt-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-radius: 3px 3px 0 0;
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nt-tab:hover {
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.03);
}

.nt-tab.active {
    color: #fff;
    background: rgba(139, 92, 246, 0.08);
}

.nt-tab.active::after {
    width: 60%;
}

.nt-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 11px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #a78bfa;
    transition: all 0.3s ease;
}

.nt-tab.active .nt-tab-badge {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* Tab Content Panels */
.nt-tab-content {
    display: none;
}

.nt-tab-content.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    animation: ntFadeIn 0.3s ease;
}

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

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

/* Active Notifications List Container */
.nt-active-list {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 60vh;
}

/* Loading State */
.nt-active-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    gap: 16px;
}

.nt-active-loading .nt-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.15);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: ntSpin 0.8s linear infinite;
}

@keyframes ntSpin {
    to {
        transform: rotate(360deg);
    }
}

.nt-active-loading p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Empty State */
.nt-active-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    gap: 12px;
}

.nt-active-empty .nt-empty-icon {
    font-size: 3rem;
    opacity: 0.6;
    animation: ntFloat 3s ease-in-out infinite;
}

@keyframes ntFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.nt-active-empty p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    font-weight: 500;
}

.nt-active-empty .nt-empty-hint {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
}

/* Active Notification Card */
.nt-active-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.nt-active-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nt-active-card.paused {
    opacity: 0.65;
    border-style: dashed;
}

.nt-active-card.paused:hover {
    opacity: 0.85;
}

/* Card color accent bar */
.nt-active-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--nt-card-color, #8b5cf6);
    border-radius: 4px 0 0 4px;
}

.nt-active-card.paused::before {
    background: rgba(255, 255, 255, 0.2);
}

/* Card Top Row */
.nt-active-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 10px 20px;
}

.nt-active-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--nt-card-bg, rgba(139, 92, 246, 0.15));
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--nt-card-color, #a78bfa);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.nt-active-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

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

.nt-active-status.live .nt-status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: ntPulse 2s ease-in-out infinite;
}

@keyframes ntPulse {

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

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

.nt-active-status.paused-badge {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.nt-active-time-info {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.nt-active-created {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
}

.nt-active-expiry {
    font-size: 0.7rem;
    font-weight: 600;
}

.nt-active-expiry.expiring-soon {
    color: #f59e0b;
}

.nt-active-expiry.fresh {
    color: rgba(255, 255, 255, 0.35);
}

.nt-active-expiry.no-expiry {
    color: rgba(255, 255, 255, 0.25);
    font-style: italic;
}

/* Card Body */
.nt-active-card-body {
    padding: 4px 16px 10px 20px;
}

.nt-active-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.nt-active-message {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer / Actions */
.nt-active-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nt-active-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    overflow: hidden;
}

.nt-active-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

.nt-active-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.nt-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nt-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.nt-action-btn.pause-btn:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.nt-action-btn.resume-btn {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.nt-action-btn.resume-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
}

.nt-action-btn.delete-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.nt-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Confirm Delete Inline */
.nt-confirm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 14px;
    z-index: 5;
    animation: ntFadeIn 0.2s ease;
}

.nt-confirm-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
}

.nt-confirm-yes {
    padding: 6px 16px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nt-confirm-yes:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.nt-confirm-no {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nt-confirm-no:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Priority indicators */
.nt-priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nt-priority-badge.critical {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.nt-priority-badge.high {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
}

.nt-priority-badge.medium {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.nt-priority-badge.low {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
}

/* Summary bar */
.nt-active-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nt-summary-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

.nt-summary-stat .nt-stat-value {
    font-weight: 700;
    color: #fff;
}

.nt-summary-stat .nt-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.nt-summary-stat .nt-stat-dot.live {
    background: #10b981;
}

.nt-summary-stat .nt-stat-dot.paused-dot {
    background: #fbbf24;
}

/* Responsive for Active Notifications */
@media (max-width: 600px) {
    .nt-active-card-top {
        flex-wrap: wrap;
        gap: 8px;
    }

    .nt-active-time-info {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        margin-left: 0;
    }

    .nt-active-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nt-active-actions {
        width: 100%;
    }

    .nt-action-btn {
        flex: 1;
        justify-content: center;
    }

    .nt-active-summary {
        flex-wrap: wrap;
        gap: 8px;
    }

    .nt-tab {
        font-size: 0.8rem;
        padding: 12px 10px;
    }
}

/* ============================================
   PREMIUM IMAGE MESSAGING SYSTEM
   World-class image upload and preview
   ============================================ */

/* Image Upload Button */
.image-upload-container {
    position: relative;
}

.image-upload-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-upload-btn svg {
    width: 20px;
    height: 20px;
}

.image-upload-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.2));
    border-color: rgba(99, 102, 241, 0.5);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.image-upload-btn:active {
    transform: scale(0.95);
}

/* Image Preview Modal */
.image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.image-preview-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.image-preview-content {
    background: linear-gradient(165deg, rgba(30, 35, 55, 0.98), rgba(20, 25, 45, 0.99));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(139, 92, 246, 0.15);
    animation: slideUp 0.3s ease;
}

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

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

.image-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.image-preview-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: white;
    font-weight: 700;
}

.image-preview-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.image-preview-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.image-preview-body {
    padding: 1.5rem;
}

.image-preview-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 300px;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.image-size-info {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Quality Selector - Premium Cards */
.image-quality-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem;
}

.quality-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quality-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quality-option .quality-icon {
    font-size: 1.5rem;
}

.quality-option .quality-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.quality-option .quality-name {
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
}

.quality-option .quality-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.15rem;
}

.quality-option .quality-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: transparent;
    transition: all 0.3s;
}

.quality-option:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
}

.quality-option.selected,
.quality-option:has(input:checked) {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
}

.quality-option.selected .quality-check,
.quality-option:has(input:checked) .quality-check {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
}

/* Image Preview Footer */
.image-preview-footer {
    display: flex;
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem;
}

.image-cancel-btn {
    flex: 1;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.image-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.image-send-btn {
    flex: 1;
    padding: 0.875rem;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.image-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.image-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Chat Image Bubble */
.chat-image-bubble {
    position: relative;
    max-width: 280px;
    border-radius: 16px;
    overflow: hidden;
    margin: 0.25rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.chat-image-bubble:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.chat-image-bubble img {
    width: 100%;
    display: block;
    /* Prevent image from anchoring scroll position during lazy load */
    overflow-anchor: none;
    /* Set aspect ratio to prevent layout shift */
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* HD Quality Badge */
.quality-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    backdrop-filter: blur(4px);
    z-index: 1;
}

.quality-badge.hd {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.chat-image-bubble.loading {
    background: rgba(139, 92, 246, 0.1);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-image-bubble.loading::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Image in Admin Message (Sent) */
.admin-msg .chat-image-bubble {
    margin-left: auto;
}

/* Image in User Message (Received) */
.user-msg .chat-image-bubble {
    margin-right: auto;
}

/* Full Screen Image Viewer */
.fullscreen-image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.fullscreen-image-viewer.active {
    display: flex;
}

.fullscreen-image-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.fullscreen-image-viewer .close-fullscreen {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.fullscreen-image-viewer .close-fullscreen:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Image Permission Toggle in User Profile */
.image-permission-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    margin-top: 1rem;
}

.image-permission-toggle .toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.image-permission-toggle .toggle-icon {
    font-size: 1.25rem;
}

.image-permission-toggle .toggle-text {
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
}

.image-permission-toggle .toggle-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.15rem;
}

/* Premium Toggle Switch */
.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    transition: all 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.toggle-slider {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-color: transparent;
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(24px);
}

/* Upload Progress Bar */
.upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
    width: 0%;
    transition: width 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .image-quality-selector {
        grid-template-columns: 1fr;
    }

    .quality-option {
        padding: 0.875rem;
    }

    .chat-image-bubble {
        max-width: 220px;
    }
}

/* ============================================
   WATCH TOGETHER - Premium Sync Experience CSS
   ============================================ */

/* Watch Together Button in Chat Header */
.watch-together-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.watch-together-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.watch-together-text {
    font-size: 0.8rem;
}

@media (max-width: 640px) {
    .watch-together-text {
        display: none;
    }

    .watch-together-btn {
        padding: 0.5rem 0.75rem;
    }
}

/* Watch Together Modal Overlays */
.wt-modal-overlay,
.wt-session-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.wt-modal-overlay.active,
.wt-session-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Start Modal */
.wt-start-modal {
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.98), rgba(20, 20, 35, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    animation: wtModalSlide 0.4s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(139, 92, 246, 0.15);
}

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

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

.wt-start-header {
    text-align: center;
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.15), transparent);
}

.wt-start-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    animation: wtIconFloat 3s ease-in-out infinite;
}

@keyframes wtIconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.wt-start-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem;
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wt-start-header p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.wt-start-body {
    padding: 1.5rem 2rem;
}

.wt-url-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 14px;
    padding: 0.875rem 1rem;
    transition: all 0.3s ease;
}

.wt-url-input-wrapper:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.wt-url-icon {
    font-size: 1.25rem;
}

.wt-url-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 0.95rem;
    outline: none;
}

.wt-url-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.wt-url-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-top: 1rem;
}

.wt-student-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.75rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.wt-student-avatar {
    font-size: 1.25rem;
}

.wt-start-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem 2rem;
}

.wt-btn-cancel {
    flex: 1;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wt-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.wt-btn-start {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.wt-btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
}

/* Session Modal - Full Experience */
.wt-session-modal {
    background: linear-gradient(145deg, rgba(15, 15, 25, 0.98), rgba(10, 10, 20, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: wtModalSlide 0.4s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.wt-session-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.2), transparent);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.wt-session-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 0.95rem;
}

.wt-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: wtLivePulse 2s ease-in-out infinite;
}

@keyframes wtLivePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.wt-end-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 10px;
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wt-end-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.02);
}

/* Video Container */
.wt-video-container {
    position: relative;
    background: #000;
}

.wt-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
}

.wt-video-wrapper iframe,
.wt-video-wrapper #wtYoutubePlayer,
.wt-video-wrapper #wtYoutubePlayer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.wt-sync-status {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.wt-sync-status.desynced {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.wt-sync-icon {
    animation: wtSyncSpin 2s linear infinite;
}

@keyframes wtSyncSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Live Chat Section */
.wt-chat-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    max-height: 250px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wt-chat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.wt-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wt-chat-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    padding: 2rem;
}

.wt-chat-msg {
    max-width: 80%;
    padding: 0.5rem 0.875rem;
    border-radius: 12px;
    font-size: 0.85rem;
    animation: wtMsgSlide 0.2s ease;
}

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

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

.wt-chat-msg.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    border-bottom-right-radius: 4px;
}

.wt-chat-msg.received {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-bottom-left-radius: 4px;
}

.wt-chat-msg .sender {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-bottom: 0.2rem;
}

.wt-chat-input-area {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wt-chat-input {
    flex: 1;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

.wt-chat-input:focus {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.wt-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.wt-chat-send {
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wt-chat-send:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .wt-session-modal {
        max-height: 95vh;
        border-radius: 16px;
    }

    .wt-chat-section {
        min-height: 150px;
        max-height: 180px;
    }

    .wt-session-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

/* ============================================
   BP TIMES MANAGER — Newsroom Command UI
   ============================================ */

/* Modal size override */
.bpt-modal { max-width: 720px; max-height: 92vh; display: flex; flex-direction: column; }
.bpt-header { background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(124,58,237,0.08)); border-bottom-color: rgba(79,70,229,0.25) !important; }

/* Tabs */
.bpt-tabs { display: flex; gap: 0; border-bottom: 1px solid rgba(255,255,255,0.06); overflow-x: auto; padding: 0 0.5rem; -ms-overflow-style: none; scrollbar-width: none; }
.bpt-tabs::-webkit-scrollbar { display: none; }
.bpt-tab { padding: 0.65rem 0.9rem; background: none; border: none; color: var(--text-tertiary, #64748b); font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; transition: all 0.2s; position: relative; font-family: 'Outfit', sans-serif; }
.bpt-tab:hover { color: var(--text-secondary, #94a3b8); }
.bpt-tab-active { color: #818cf8 !important; border-bottom-color: #4F46E5; }
.bpt-tab-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: white; font-size: 0.65rem; font-weight: 700; margin-left: 4px; }

/* Body */
.bpt-body { overflow-y: auto; flex: 1; padding: 0.75rem !important; }

/* Toolbar */
.bpt-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; gap: 8px; flex-wrap: wrap; }

/* Empty state */
.bpt-empty { text-align: center; padding: 2.5rem 1rem; color: var(--text-secondary, #94a3b8); font-size: 0.95rem; }

/* Article list */
.bpt-list { display: flex; flex-direction: column; gap: 6px; }
.bpt-article-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0.7rem 0.85rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; transition: all 0.2s; }
.bpt-article-row:hover { background: rgba(255,255,255,0.06); border-color: rgba(79,70,229,0.2); }
.bpt-article-row.bpt-inactive { opacity: 0.5; }
.bpt-article-info { flex: 1; min-width: 0; }
.bpt-article-title-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.bpt-article-title { font-weight: 600; font-size: 0.88rem; color: var(--text-primary, #f1f5f9); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.bpt-article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 3px; font-size: 0.75rem; color: var(--text-tertiary, #64748b); }
.bpt-article-actions { display: flex; gap: 4px; flex-shrink: 0; }
.bpt-article-actions button { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 7px; cursor: pointer; font-size: 0.85rem; transition: all 0.15s; color: white; }
.bpt-article-actions button:hover { background: rgba(79,70,229,0.15); border-color: rgba(79,70,229,0.3); transform: scale(1.05); }

/* Status & Role badges */
.bpt-status-badge { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 5px; font-size: 0.68rem; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.bpt-role-badge { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 5px; font-size: 0.68rem; font-weight: 700; background: rgba(79,70,229,0.15); color: #818cf8; border: 1px solid rgba(79,70,229,0.3); }
.bpt-role-select { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 4px 6px; color: var(--text-primary, #f1f5f9); font-size: 0.75rem; font-family: 'Outfit', sans-serif; cursor: pointer; }

/* Review cards */
.bpt-review-card { padding: 1rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(245,158,11,0.15); border-radius: 12px; margin-bottom: 8px; }
.bpt-review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.bpt-review-title { font-size: 1rem; font-weight: 700; color: var(--text-primary, #f1f5f9); margin: 4px 0; }
.bpt-review-summary { font-size: 0.85rem; color: var(--text-secondary, #94a3b8); line-height: 1.4; margin: 0; }
.bpt-review-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

/* Stats grid */
.bpt-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bpt-stat-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 0.9rem 0.75rem; text-align: center; }
.bpt-stat-value { font-size: 1.5rem; font-weight: 800; color: #818cf8; }
.bpt-stat-label { font-size: 0.72rem; color: var(--text-tertiary, #64748b); margin-top: 2px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* Breakdown bars */
.bpt-breakdown { display: flex; flex-direction: column; gap: 6px; }
.bpt-breakdown-row { display: flex; align-items: center; gap: 8px; }
.bpt-breakdown-label { width: 100px; font-size: 0.78rem; color: var(--text-secondary, #94a3b8); text-transform: capitalize; }
.bpt-breakdown-bar { flex: 1; height: 8px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; }
.bpt-breakdown-bar > div { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.bpt-breakdown-count { width: 30px; text-align: right; font-size: 0.78rem; font-weight: 700; color: var(--text-primary, #f1f5f9); }

/* Assign panel */
.bpt-assign-panel { background: rgba(79,70,229,0.06); border: 1px solid rgba(79,70,229,0.15); border-radius: 12px; padding: 1rem; margin-bottom: 0.75rem; }
.bpt-assign-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.bpt-assign-header h4 { margin: 0; font-size: 0.9rem; color: #818cf8; }
.bpt-search-results { max-height: 200px; overflow-y: auto; margin-top: 8px; }
.bpt-search-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; margin-bottom: 4px; cursor: pointer; transition: all 0.15s; }
.bpt-search-item:hover { background: rgba(79,70,229,0.1); border-color: rgba(79,70,229,0.25); }

/* Input fields */
.bpt-edit-input { width: 100%; padding: 0.6rem 0.75rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: var(--text-primary, #f1f5f9); font-size: 0.88rem; font-family: 'Outfit', sans-serif; outline: none; transition: border-color 0.2s; margin-bottom: 10px; resize: vertical; box-sizing: border-box; }
.bpt-edit-input:focus { border-color: rgba(79,70,229,0.5); }
.bpt-edit-title { font-size: 1.2rem; font-weight: 700; }
.bpt-edit-select { padding: 0.5rem 0.75rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: var(--text-primary, #f1f5f9); font-size: 0.82rem; font-family: 'Outfit', sans-serif; cursor: pointer; }

/* Editor overlay */
.bpt-editor-modal { max-width: 800px; max-height: 94vh; display: flex; flex-direction: column; }
.bpt-editor-body { flex: 1; min-height: 0; }

/* Quill dark theme overrides */
#bptQuillContainer .ql-toolbar { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1) !important; border-radius: 8px 8px 0 0; }
#bptQuillContainer .ql-toolbar .ql-stroke { stroke: var(--text-secondary, #94a3b8); }
#bptQuillContainer .ql-toolbar .ql-fill { fill: var(--text-secondary, #94a3b8); }
#bptQuillContainer .ql-toolbar .ql-picker { color: var(--text-secondary, #94a3b8); }
#bptQuillContainer .ql-toolbar .ql-picker-options { background: #1e1e3e; border-color: rgba(255,255,255,0.1); }
#bptQuillContainer .ql-toolbar button:hover .ql-stroke { stroke: #818cf8; }
#bptQuillContainer .ql-toolbar button:hover .ql-fill { fill: #818cf8; }
#bptQuillContainer .ql-container { border-color: rgba(255,255,255,0.1) !important; border-radius: 0 0 8px 8px; min-height: 200px; font-family: 'Outfit', sans-serif; }
#bptQuillContainer .ql-editor { color: var(--text-primary, #f1f5f9); font-size: 0.92rem; line-height: 1.7; min-height: 200px; }
#bptQuillContainer .ql-editor.ql-blank::before { color: var(--text-tertiary, #64748b); font-style: normal; }

/* Confirm dialog */
.bpt-confirm-box { background: linear-gradient(145deg, rgba(30,30,50,0.98), rgba(20,20,35,0.98)); border: 1px solid rgba(79,70,229,0.3); border-radius: 16px; padding: 1.5rem; max-width: 400px; width: 90%; text-align: center; }
.bpt-confirm-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.bpt-confirm-box h3 { color: var(--text-primary, #f1f5f9); margin: 0 0 0.5rem; font-size: 1.1rem; }
.bpt-confirm-box p { color: var(--text-secondary, #94a3b8); font-size: 0.88rem; margin: 0; line-height: 1.5; }

/* Action buttons */
.bpt-action-btn { padding: 0.45rem 0.9rem; border: none; border-radius: 8px; font-size: 0.8rem; font-weight: 600; font-family: 'Outfit', sans-serif; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.bpt-btn-primary { background: linear-gradient(135deg, #4F46E5, #7C3AED); color: white; }
.bpt-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,70,229,0.35); }
.bpt-btn-success { background: linear-gradient(135deg, #059669, #10b981); color: white; }
.bpt-btn-success:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,185,129,0.35); }
.bpt-btn-warning { background: linear-gradient(135deg, #d97706, #f59e0b); color: white; }
.bpt-btn-warning:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,158,11,0.35); }
.bpt-btn-danger { background: linear-gradient(135deg, #dc2626, #ef4444); color: white; }
.bpt-btn-danger:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(239,68,68,0.35); }
.bpt-btn-ghost { background: rgba(255,255,255,0.08); color: var(--text-secondary, #94a3b8); border: 1px solid rgba(255,255,255,0.1); }
.bpt-btn-ghost:hover { background: rgba(255,255,255,0.12); }
.bpt-btn-save { background: linear-gradient(135deg, #4F46E5, #7C3AED); color: white; padding: 0.4rem 1rem; }
.bpt-action-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Mobile responsive */
@media (max-width: 640px) {
    .bpt-modal { max-width: 100%; border-radius: 16px; }
    .bpt-tabs { padding: 0 0.25rem; }
    .bpt-tab { padding: 0.55rem 0.6rem; font-size: 0.72rem; }
    .bpt-article-row { flex-direction: column; align-items: flex-start; }
    .bpt-article-actions { margin-top: 6px; }
    .bpt-article-title { max-width: 200px; }
    .bpt-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .bpt-review-actions { flex-direction: column; }
    .bpt-editor-modal { max-width: 100%; }
}

/* ─── Match Column Questions ─── */
.brothon-match-q {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
}
.brothon-q-intro {
    line-height: 1.5;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.95);
}
.brothon-match-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 0.8rem 0;
}
.brothon-col-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    transition: all 0.2s ease;
}
.brothon-col-box:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}
.brothon-col-title {
    font-weight: 800;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.4rem;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.brothon-col-title.col1 {
    color: #fbbf24;
}
.brothon-col-title.col2 {
    color: #60a5fa;
}
.brothon-col-item {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}
.brothon-col-item strong.col1 {
    color: #fbbf24;
    min-width: 22px;
}
.brothon-col-item strong.col2 {
    color: #60a5fa;
    min-width: 22px;
}

@media (max-width: 576px) {
    .brothon-match-columns {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
}

/* ─── Premium Modal Animations ─── */
@keyframes bfsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes bfsScaleIn {
    from { transform: scale(0.95) translateY(12px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes bfsSpin {
    to { transform: rotate(360deg); }
}