@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Orbitron:wght@500;700;900&display=swap');

:root {
    --primary: #9d4edd;
    --primary-red: #9d4edd;
    --primary-dark: #7b2cbf;
    --secondary: #c77dff;
    --accent: #e0aaff;
    --neon-blue: #4cc9f0;
    --neon-purple: #9d4edd;
    
    --bg-primary: #05050a;
    --bg-secondary: #0a0a14;
    --bg-tertiary: #101020;
    --bg-card: #16162a;
    --bg-card-hover: #1e1e3f;
    
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --text-muted: #495057;
    --text-accent: #c77dff;
    
    --border-color: rgba(157, 78, 221, 0.15);
    --border-glow: rgba(157, 78, 221, 0.5);
    
    --sidebar-width: 260px;
    
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.95);
    --shadow-glow: 0 0 30px rgba(157, 78, 221, 0.3);
    --shadow-neon: 0 0 20px rgba(157, 78, 221, 0.5), 0 0 40px rgba(157, 78, 221, 0.25);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #000000 0%, #05050a 30%, #0a0a14 60%, #0d0d1f 100%);
    font-family: "Poppins", sans-serif;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 75%, rgba(157, 78, 221, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 75% 25%, rgba(76, 201, 240, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(199, 125, 255, 0.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100%;
    background: linear-gradient(180deg, #000000 0%, #05050a 40%, #0a0a14 100%);
    color: var(--text-primary);
    padding: 25px 18px;
    box-shadow: 8px 0 50px rgba(0, 0, 0, 0.9);
    box-sizing: border-box;
    z-index: 1000;
    overflow-y: auto;
    border-right: 1px solid rgba(157, 78, 221, 0.2);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(157, 78, 221, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(157, 78, 221, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    pointer-events: none;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.sidebar-logo img {
    width: 85px;
    height: auto;
    display: block;
    margin: 0 auto 14px;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-tertiary));
    border-radius: 50%;
    padding: 12px;
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    box-shadow: var(--shadow-md), 0 0 20px rgba(157, 78, 221, 0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sidebar-logo img::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #9d4edd, #c77dff, #4cc9f0, #9d4edd);
    border-radius: 50%;
    z-index: -1;
    animation: rotate-border 4s linear infinite;
    background-size: 300% 300%;
}

@keyframes rotate-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.sidebar-logo img:hover {
    transform: rotate(-5deg) scale(1.1);
    box-shadow: var(--shadow-glow), 0 0 40px rgba(157, 78, 221, 0.4);
}

.sidebar-greeting {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-top: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.2), rgba(199, 125, 255, 0.15));
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(157, 78, 221, 0.25);
    backdrop-filter: blur(10px);
}

.sidebar h2 {
    text-align: center;
    color: var(--text-primary);
    margin: 0;
    font-size: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #c77dff 0%, #9d4edd 50%, #7b2cbf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
    font-weight: 900;
}

.sidebar h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #9d4edd, transparent);
    border-radius: 2px;
}

.menu {
    list-style: none;
    padding: 0;
    margin-top: 28px;
    position: relative;
    z-index: 1;
}

.menu-category {
    margin: 18px 0 8px;
    padding-left: 8px;
}

.menu-category-title {
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
    display: block;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(157, 78, 221, 0.2);
}

.menu li {
    margin: 3px 0;
}

.menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: var(--radius-md);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.88rem;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #9d4edd, #c77dff);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.menu a:hover {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.18), rgba(199, 125, 255, 0.1));
    color: var(--text-primary);
    transform: translateX(8px);
    border-color: var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.menu a:hover::before {
    transform: scaleY(1);
}

.menu a.active {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.25), rgba(199, 125, 255, 0.2));
    color: var(--text-primary);
    font-weight: 800;
    box-shadow: var(--shadow-md), 0 0 30px rgba(157, 78, 221, 0.2);
    border-color: rgba(157, 78, 221, 0.35);
    transform: translateX(0);
}

.menu a.active::before {
    transform: scaleY(1);
}

/* Main Content */
.main {
    margin-left: var(--sidebar-width);
    padding: 25px 35px;
    max-width: 100%;
    animation: fadeInUp 0.7s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 1.9rem;
    margin-bottom: 28px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 30px rgba(157, 78, 221, 0.3);
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 90px;
    height: 4px;
    background: linear-gradient(90deg, #9d4edd, #c77dff, #4cc9f0);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.6);
}

h2 {
    color: var(--text-primary);
    font-size: 1.35rem;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Cards */
.stats-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 35px;
}

.card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-tertiary));
    border-radius: var(--radius-xl);
    padding: 25px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9d4edd, #c77dff, #4cc9f0, #9d4edd);
    opacity: 0.9;
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.06) 0%, transparent 70%);
    pointer-events: none;
    transition: all 0.5s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-neon), 0 30px 60px rgba(0, 0, 0, 0.7);
    border-color: var(--border-glow);
}

.card:hover::after {
    transform: translate(20%, 20%);
}

.card h3 {
    margin: 0 0 10px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.9;
}

.card p {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    line-height: 1.1;
    background: linear-gradient(135deg, #c77dff 0%, #9d4edd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Charts */
.chart-container {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-tertiary));
    border-radius: var(--radius-xl);
    padding: 25px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9d4edd, #4cc9f0, #c77dff);
}

.chart-wrapper {
    height: 300px;
    width: 100%;
    position: relative;
}

.chart-title {
    margin: 0 0 22px 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Tables */
.table-container {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-tertiary));
    border-radius: var(--radius-xl);
    padding: 22px;
    box-shadow: var(--shadow-lg);
    overflow-x: auto;
    border: 1px solid var(--border-color);
    position: relative;
    margin-bottom: 30px;
}

.table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9d4edd, #4cc9f0);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin: 0;
}

th {
    color: var(--text-secondary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    padding: 14px 18px;
    text-align: left;
    border: none;
}

td {
    padding: 16px 18px;
    background: linear-gradient(145deg, rgba(22, 22, 42, 0.9), rgba(16, 16, 32, 0.95));
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

td:first-child {
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
}

td:last-child {
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

tr:hover td {
    background: linear-gradient(145deg, rgba(30, 30, 63, 0.98), rgba(22, 22, 42, 1));
    transform: scale(1.01);
    border-color: var(--border-glow);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Forms */
.form-container {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-tertiary));
    padding: 35px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    border: 1px solid var(--border-color);
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9d4edd, #c77dff, #4cc9f0);
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

input, select, textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(157, 78, 221, 0.2);
    border-radius: var(--radius-md);
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.98rem;
    background: linear-gradient(145deg, rgba(5, 5, 10, 0.9), rgba(10, 10, 20, 0.95));
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-weight: 500;
}

input:focus, select:focus, textarea:focus {
    border-color: #9d4edd;
    background: linear-gradient(145deg, rgba(22, 22, 42, 0.95), rgba(16, 16, 32, 1));
    outline: none;
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.3), 0 0 60px rgba(157, 78, 221, 0.15);
    transform: translateY(-2px);
}

button, .btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #9d4edd 0%, #7b2cbf 100%);
    color: var(--text-primary);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: var(--shadow-md), 0 0 30px rgba(157, 78, 221, 0.35);
    position: relative;
    overflow: hidden;
}

button::before, .btn::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.6s;
}

button:hover::before, .btn:hover::before {
    left: 100%;
}

button:hover, .btn:hover {
    background: linear-gradient(135deg, #c77dff 0%, #9d4edd 100%);
    transform: translateY(-5px) scale(1.03);
    box-shadow: var(--shadow-neon), 0 20px 50px rgba(157, 78, 221, 0.5);
}

button:active, .btn:active {
    transform: translateY(-2px) scale(1.01);
}

/* Login Page Specific */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #05050a 40%, #0a0a14 100%);
    position: relative;
}

.login-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(157, 78, 221, 0.15) 0%, transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(76, 201, 240, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.login-container {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-tertiary));
    padding: 70px 60px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-neon), 0 30px 80px rgba(0, 0, 0, 0.9);
    width: 100%;
    max-width: 480px;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: login-float 3s ease-in-out infinite;
}

@keyframes login-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 6px;
    background: linear-gradient(90deg, transparent, #9d4edd, #c77dff, #4cc9f0, transparent);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.login-container .logo {
    width: 140px;
    height: 140px;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-tertiary));
    border-radius: 50%;
    padding: 25px;
    margin: -110px auto 45px;
    box-shadow: var(--shadow-md), 0 0 40px rgba(157, 78, 221, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(157, 78, 221, 0.4);
    position: relative;
    z-index: 2;
}

.login-container h1 {
    font-size: 2.2rem;
    margin-bottom: 45px;
    color: var(--text-primary);
    text-shadow: none;
}

/* Grid Layouts */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.stat-item {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-tertiary));
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.stat-item:hover {
    border-color: var(--border-glow);
    transform: translateY(-10px);
    box-shadow: var(--shadow-neon);
}

.stat-item b {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.stat-item span {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #c77dff, #9d4edd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Action Buttons */
.btn-action {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-tertiary));
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 22px;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 700;
    transition: all 0.3s ease;
    margin: 0 8px;
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-action:hover {
    background: linear-gradient(145deg, var(--bg-card-hover), var(--bg-tertiary));
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}

.btn-primary {
    background: linear-gradient(135deg, #4cc9f0 0%, #4895ef 100%);
    box-shadow: 0 0 30px rgba(76, 201, 240, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4895ef 0%, #4cc9f0 100%);
    box-shadow: 0 0 40px rgba(76, 201, 240, 0.45);
}

.btn-warning {
    color: var(--accent);
    background: linear-gradient(145deg, rgba(224, 170, 255, 0.15), rgba(224, 170, 255, 0.08));
    border-color: rgba(224, 170, 255, 0.35);
}

.btn-warning:hover { 
    background: var(--accent); 
    color: var(--bg-primary); 
    border-color: var(--accent); 
}

.btn-edit {
    color: var(--neon-blue);
    background: linear-gradient(145deg, rgba(76, 201, 240, 0.15), rgba(76, 201, 240, 0.08));
    border-color: rgba(76, 201, 240, 0.35);
}

.btn-edit:hover { 
    background: var(--neon-blue); 
    color: var(--bg-primary); 
    border-color: var(--neon-blue); 
}

.btn-delete {
    color: var(--primary);
    background: linear-gradient(145deg, rgba(157, 78, 221, 0.15), rgba(157, 78, 221, 0.08));
    border-color: rgba(157, 78, 221, 0.35);
}

.btn-delete:hover { 
    background: var(--primary); 
    color: var(--text-primary); 
    border-color: var(--primary); 
}

/* Page Specific: Production & Ventes */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
}

.production-card, .menu-card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-tertiary));
    border: 1px solid var(--border-color);
    padding: 35px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.production-card::before, .menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9d4edd, #c77dff);
}

.production-card:hover, .menu-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-neon);
    border-color: var(--border-glow);
}

.production-card h3, .menu-card h3 {
    margin: 0 0 25px;
    font-size: 1.25em;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.production-card input {
    text-align: center;
    font-weight: 700;
    font-size: 1.5rem;
    padding: 15px;
    width: 100%;
    background: linear-gradient(145deg, rgba(5, 5, 10, 0.9), rgba(22, 22, 42, 0.95));
    border-color: var(--border-color);
}

.menu-card p {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.3em;
    margin-bottom: 18px;
    font-family: 'Orbitron', sans-serif;
}

.batch-info {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 700;
    margin-top: 18px;
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.18), rgba(76, 201, 240, 0.1));
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
    border: 1px solid rgba(76, 201, 240, 0.35);
}

.category-title {
    color: var(--text-primary);
    position: relative;
    padding-left: 25px;
    margin-top: 70px;
    margin-bottom: 35px;
    font-weight: 800;
    font-size: 1.8rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 50px;
    background: linear-gradient(180deg, #9d4edd, #c77dff);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
}

/* Page Specific: Vente Zones */
.vip-select {
    margin: 60px auto;
    text-align: center;
    max-width: 600px;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-tertiary));
    padding: 50px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border-top: 6px solid #9d4edd;
    transition: transform 0.4s ease;
    border: 1px solid var(--border-color);
}

.vip-select:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-neon);
}

.total-vente {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-tertiary));
    padding: 60px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-neon);
    text-align: center;
    margin-top: 70px;
    border: 1px solid var(--border-glow);
    position: relative;
    overflow: hidden;
}

.total-vente::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #9d4edd, #c77dff, #4cc9f0, #c77dff);
}

.total-vente h3 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin: 20px 0;
    font-weight: 700;
}

.total-vente span {
    color: var(--text-primary);
    font-weight: 900;
    font-size: 4rem;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #c77dff, #9d4edd, #4cc9f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    display: block;
    margin-top: 15px;
}

.creation-zone {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-tertiary));
    padding: 50px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-top: 70px;
    border: 3px dashed rgba(157, 78, 221, 0.25);
    text-align: center;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.4s ease;
}

.creation-zone:hover {
    border-color: #9d4edd;
    background: linear-gradient(145deg, rgba(157, 78, 221, 0.08), var(--bg-card));
}

.text-primary { color: var(--primary); }
.text-center { text-align: center; }
.font-bold { font-weight: 800; }

/* Alerts & Utilities */
.alert {
    padding: 25px 30px;
    border-radius: var(--radius-md);
    margin-bottom: 45px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 18px;
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.alert-success {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.18), rgba(76, 201, 240, 0.1));
    border-color: rgba(76, 201, 240, 0.35);
    color: var(--secondary);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.badge-blue {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.22), rgba(76, 201, 240, 0.12));
    color: var(--neon-blue);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(76, 201, 240, 0.35);
}

.badge-yellow {
    background: linear-gradient(135deg, rgba(224, 170, 255, 0.22), rgba(224, 170, 255, 0.12));
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(224, 170, 255, 0.35);
}

.badge-green {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.22), rgba(76, 201, 240, 0.12));
    color: var(--secondary);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(76, 201, 240, 0.35);
}

.badge-red {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.22), rgba(157, 78, 221, 0.12));
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(157, 78, 221, 0.35);
}

.badge-gray {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-color);
}

/* History & Badges Styles */
.row-prime {
    background: linear-gradient(145deg, rgba(224, 170, 255, 0.15), rgba(22, 22, 42, 0.95)) !important;
}
.row-production {
    background: linear-gradient(145deg, rgba(76, 201, 240, 0.15), rgba(22, 22, 42, 0.95)) !important;
}
.badge-prime {
    background: linear-gradient(135deg, rgba(224, 170, 255, 0.25), rgba(224, 170, 255, 0.15));
    color: #e0aaff;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(224, 170, 255, 0.4);
    display: inline-block;
}
.badge-production {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.25), rgba(76, 201, 240, 0.15));
    color: #4cc9f0;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(76, 201, 240, 0.4);
    display: inline-block;
}
.badge-sale {
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.25), rgba(76, 201, 240, 0.15));
    color: #c77dff;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(157, 78, 221, 0.4);
    display: inline-block;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9d4edd, #c77dff);
    border-radius: 10px;
    border: 3px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c77dff, #9d4edd);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.6);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.98));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-tertiary));
    padding: 40px;
    border-radius: var(--radius-xl);
    width: auto;
    min-width: 350px;
    max-width: 95%;
    box-shadow: var(--shadow-neon), 0 30px 80px rgba(0, 0, 0, 0.95);
    position: relative;
    text-align: center;
    animation: popup-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid var(--border-color);
}

@keyframes popup-bounce {
    0% { transform: scale(0.4); opacity: 0; }
    50% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}

.modal h3 {
    margin-top: 0;
    color: var(--text-primary);
    font-size: 1.6rem;
    margin-bottom: 25px;
    font-family: 'Orbitron', sans-serif;
}

.modal-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-confirm {
    background: linear-gradient(135deg, #9d4edd, #7b2cbf);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-confirm:hover {
    background: linear-gradient(135deg, #c77dff, #9d4edd);
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(157, 78, 221, 0.5);
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--text-secondary);
    font-size: 32px;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s;
}

.close:hover {
    color: #9d4edd;
    transform: rotate(90deg);
}

.btn-back {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-back:hover {
    background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-tertiary));
    border-color: var(--border-glow);
    color: var(--text-primary);
    transform: translateX(-5px);
}

/* Total Pay Box */
.total-pay-box {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-tertiary));
    padding: 20px 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: right;
    border: 1px solid var(--border-color);
}

.total-pay-box div:first-child {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.total-pay-box div:last-child {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #c77dff, #4cc9f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 1400px) {
    .main { padding: 35px 40px; }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 90px;
        padding: 25px 15px;
    }
    .sidebar-logo img { width: 60px; padding: 10px; }
    .sidebar h2, .sidebar-greeting, .menu a span:not(.emoji) { display: none; }
    .menu a { justify-content: center; padding: 20px; }
    .menu a i, .menu a::before { display: none; }
    .main { margin-left: 90px; padding: 30px; }
    .grid-container, .stats-top { grid-template-columns: 1fr; }
    h1 { font-size: 2rem; }
    .total-vente span { font-size: 3rem; }
}

@media (max-width: 640px) {
    .sidebar { width: 70px; padding: 20px 10px; }
    .main { margin-left: 70px; padding: 20px; }
    h1 { font-size: 1.6rem; letter-spacing: 2px; }
    .card { padding: 25px; }
    .card p { font-size: 2.2rem; }
}
