/**
 * CrakerimTV - Main Stylesheet
 * NEON Dark Theme with Glowing Effects
 */

/* ========================================
   CSS Variables - NEON THEME
======================================== */
:root {
    /* Dark Background Colors */
    --bg-primary: #050508;
    --bg-secondary: #0a0a12;
    --bg-card: #0f0f1a;
    --bg-card-hover: #16162a;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #6b6b80;

    /* NEON Colors */
    --neon-purple: #b829ff;
    --neon-pink: #ff2d95;
    --neon-blue: #00d4ff;
    --neon-green: #00ff88;
    --neon-yellow: #ffe600;
    --neon-orange: #ff6b35;

    /* Primary Gradient - Neon Purple to Pink */
    --accent-primary: #b829ff;
    --accent-secondary: #ff2d95;
    --accent-gradient: linear-gradient(135deg, #b829ff 0%, #ff2d95 50%, #00d4ff 100%);
    --neon-glow: 0 0 20px rgba(184, 41, 255, 0.6), 0 0 40px rgba(184, 41, 255, 0.4), 0 0 60px rgba(184, 41, 255, 0.2);

    /* Status Colors */
    --success: #00ff88;
    --warning: #ffe600;
    --error: #ff2d5a;
    --info: #00d4ff;

    /* Border & Effects */
    --border-color: rgba(184, 41, 255, 0.2);
    --border-radius: 12px;
    --border-radius-lg: 20px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px rgba(184, 41, 255, 0.5), 0 0 60px rgba(255, 45, 149, 0.3);
    --shadow-neon: 0 0 10px currentColor, 0 0 20px currentColor;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ========================================
   Reset & Base
======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tech Background */
#tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    /* Let clicks pass through */
    background: radial-gradient(circle at center, #0a0a0a 0%, #000000 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: transparent;
    /* Changed from var(--bg-primary) to show canvas */
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   NEON Animated Background
======================================== */
.neon-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    overflow: hidden;
}

.neon-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(184, 41, 255, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 45, 149, 0.2) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 20%, rgba(0, 212, 255, 0.15) 0%, transparent 35%),
        radial-gradient(ellipse at 30% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 35%);
    animation: neonPulse 10s ease-in-out infinite alternate;
}

.neon-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(184, 41, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184, 41, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 30s linear infinite;
}

@keyframes neonPulse {
    0% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
        transform: rotate(5deg) scale(1.1);
    }
}

@keyframes gridMove {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(60px) translateX(60px);
    }
}

/* Floating Neon Orbs */
.neon-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -5;
    animation: float 15s ease-in-out infinite;
}

.neon-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--neon-purple);
    top: 10%;
    left: 10%;
    opacity: 0.3;
}

.neon-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--neon-pink);
    bottom: 20%;
    right: 15%;
    opacity: 0.25;
    animation-delay: -5s;
}

.neon-orb-3 {
    width: 250px;
    height: 250px;
    background: var(--neon-blue);
    top: 50%;
    right: 30%;
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes float {

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

    25% {
        transform: translate(30px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 10px) scale(1.05);
    }
}

/* ========================================
   Container
======================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ========================================
   Navbar
======================================== */
/* Cursor is now handled in cursor.js */
/* ========================================
   Navbar
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 0 1px #ffffff) drop-shadow(0 0 10px rgba(184, 41, 255, 0.5));
}

.navbar-logo:hover img {
    filter: drop-shadow(0 0 20px rgba(184, 41, 255, 0.8));
    transform: scale(1.05);
}

/* Nav Links - Center */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-purple);
    background: rgba(184, 41, 255, 0.1);
}

/* Auth Buttons - Right */
.navbar-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-auth .btn-login {
    color: #ffffff;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-auth .btn-login:hover {
    color: var(--neon-yellow);
    border-color: var(--neon-yellow);
}

.navbar-auth .btn-register {
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(184, 41, 255, 0.3);
}

.navbar-auth .btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(184, 41, 255, 0.5);
}

/* Admin Panel Button */
.admin-panel-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.admin-panel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
}

/* Staff Panel Button - All Roles */
.staff-panel-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #000;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.staff-panel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

/* User Menu */
.navbar-user {
    position: relative;
}

.navbar-user-toggle {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 5px;
    color: var(--text-primary);
}

.user-avatar-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--neon-purple);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

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

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu,
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.dropdown:hover .dropdown-menu,
.dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(184, 41, 255, 0.1);
    color: var(--neon-purple);
}

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

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {

    .navbar-nav,
    .navbar-auth {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}



/* ========================================
   Buttons - NEON Style
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    box-shadow: 0 0 20px rgba(184, 41, 255, 0.4), 0 0 40px rgba(255, 45, 149, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(184, 41, 255, 0.6), 0 0 60px rgba(255, 45, 149, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(184, 41, 255, 0.3), inset 0 0 20px rgba(184, 41, 255, 0.1);
}

.btn-light {
    background: white;
    color: var(--bg-primary);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* ========================================
   Hero Section - NEON
======================================== */
.hero {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(184, 41, 255, 0.1);
    border: 1px solid rgba(184, 41, 255, 0.4);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neon-purple);
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(184, 41, 255, 0.2);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(184, 41, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(184, 41, 255, 0.4);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.gradient-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(30px);
    opacity: 0.7;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(184, 41, 255, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========================================
   Sections
======================================== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

/* ========================================
   Categories - NEON Cards
======================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-purple);
    box-shadow: var(--shadow-glow);
}

.category-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 20px;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(184, 41, 255, 0.4);
}

.category-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.category-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========================================
   Products Grid - NEON Cards
======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.product-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.product-card:hover::before {
    opacity: 0.05;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-purple);
    box-shadow: var(--shadow-glow);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
}

.product-badge.sale {
    background: var(--neon-pink);
    color: white;
    box-shadow: 0 0 15px var(--neon-pink);
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.3;
}

.product-info {
    padding: 24px;
    position: relative;
    z-index: 1;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    display: flex;
    flex-direction: column;
}

.old-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

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

/* ========================================
   Features - NEON
======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.feature-card {
    padding: 40px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 40px rgba(184, 41, 255, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 24px;
    font-size: 2rem;
    color: white;
    margin: 0 auto 24px;
    box-shadow: 0 0 40px rgba(184, 41, 255, 0.4);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ========================================
   CTA Section - NEON
======================================== */
.cta-section {
    padding: 80px 0;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px;
    background: var(--accent-gradient);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: ctaShine 5s linear infinite;
}

@keyframes ctaShine {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 1.15rem;
    opacity: 0.9;
}

.cta-actions {
    position: relative;
    z-index: 1;
}

/* ========================================
   Footer - NEON
======================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    margin-top: 60px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 20px 0;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 14px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(184, 41, 255, 0.4);
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--neon-purple);
}

.footer-links ul li {
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 10px rgba(184, 41, 255, 0.5);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.payment-methods {
    display: flex;
    gap: 20px;
    font-size: 1.8rem;
    color: var(--text-muted);
}

/* ========================================
   Alerts - NEON
======================================== */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: var(--border-radius);
    margin: 20px auto;
    max-width: 600px;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.alert-error {
    background: rgba(255, 45, 90, 0.1);
    border: 1px solid rgba(255, 45, 90, 0.3);
    color: var(--error);
    box-shadow: 0 0 20px rgba(255, 45, 90, 0.1);
}

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

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

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 50px 30px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-menu,
    .nav-actions .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 140px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 30px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ========================================
   Global Select/Dropdown Styles - Dark Theme
======================================== */
select,
.form-select {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius) !important;
    padding: 12px 40px 12px 16px !important;
    font-size: 0.95rem !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23b829ff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    transition: var(--transition) !important;
}

select:hover,
.form-select:hover {
    border-color: var(--neon-purple) !important;
}

select:focus,
.form-select:focus {
    outline: none !important;
    border-color: var(--neon-green) !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2) !important;
}

/* Option styles for dropdown items */
select option,
.form-select option {
    background-color: #0f0f1a !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
}

select option:hover,
.form-select option:hover,
select option:checked,
.form-select option:checked {
    background-color: rgba(184, 41, 255, 0.3) !important;
    color: #ffffff !important;
}

/* Input fields dark theme */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius) !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus {
    outline: none !important;
    border-color: var(--neon-green) !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2) !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted) !important;
}

/* Failsafe Avatar Styling */
.current-avatar.large {
    width: 100%;
    max-width: 350px;
    /* Constrain width explicitly */
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    background: var(--bg-secondary);
    aspect-ratio: 3/4;
    position: relative;
    margin: 0 auto;
}

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

/* ========================================
   Dashboard Tables
======================================== */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--neon-purple);
}

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

.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.badge-pending {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.badge-completed {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid #28a745;
}


/* ========================================
   Address Page Styles
======================================== */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.address-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    position: relative;
    transition: var(--transition);
}

.address-card:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(184, 41, 255, 0.15);
    transform: translateY(-5px);
}

.addr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.addr-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--neon-purple);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.addr-city {
    background: rgba(184, 41, 255, 0.1);
    color: var(--neon-purple);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.addr-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.addr-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-delete {
    color: var(--error);
    background: transparent;
    border: 1px solid rgba(255, 45, 90, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}


/* ========================================
   Notes & Tickets Styles
======================================== */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.note-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--neon-purple);
}

.note-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.note-sender {
    color: var(--neon-blue);
    font-weight: bold;
}

.note-date {
    color: var(--text-muted);
}

.note-body {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1.05rem;
}

.note-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}