/*
    CRONEX PREMIUM GAMING AESTHETIC V2 - "ULTRA WOW"
    Cyberpunk / Glassmorphism / Premium Dark Mode
*/

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

:root {
    --bg-dark: #030305;
    --bg-surface: #0a0a10;
    --bg-card: rgba(10, 10, 15, 0.4);
    
    /* Neon Cyberpunk Palette */
    --accent-primary: #00f0ff;
    --accent-secondary: #ff003c;
    --accent-tertiary: #bc00ff;
    --accent-success: #00ff66;
    --accent-warning: #ffcc00;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0bd;
    --text-muted: #5a5a7a;
    
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-highlight: rgba(0, 240, 255, 0.2);
    
    /* Dynamic Overrides */
    --bg-color: var(--bg-dark);
    --accent-color: var(--accent-primary);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(188, 0, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.08), transparent 25%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #222; border-radius: 5px; border: 2px solid var(--bg-dark); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

h1, h2, h3, h4, .logoText { 
    font-family: 'Orbitron', sans-serif; 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 2px;
}

a { color: var(--accent-color); text-decoration: none; transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1500px; margin: 0 auto; padding: 0 40px; }

/* Buttons Premium */
.btn {
    display: inline-flex; justify-content: center; align-items: center; gap: 10px;
    padding: 14px 35px; border-radius: 2px;
    font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 0.9rem;
    text-transform: uppercase; cursor: pointer; transition: all 0.4s ease;
    border: none; position: relative; overflow: hidden;
    letter-spacing: 2px; z-index: 1;
}

.btn::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%;
    background: rgba(255,255,255,0.1); transition: 0.4s ease; z-index: -1;
}
.btn:hover::before { width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-tertiary));
    color: #000;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 45px rgba(0, 240, 255, 0.7);
    transform: translateY(-3px);
    color: #fff;
}

.btn-outline {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    backdrop-filter: blur(5px);
}
.btn-outline:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-neon {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(255,0,60,0.5));
}

/* Header Glassmorphism */
.main-header {
    background: rgba(3, 3, 5, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: sticky; top: 0; z-index: 1000;
    min-height: 100px;
    display: flex; align-items: center;
    transition: all 0.3s;
}

.header-container {
    display: flex; justify-content: space-between; align-items: center; width: 100%; flex-wrap: wrap;
}
.header-actions {
    display: flex; gap: 15px; align-items: center;
}

.logo { 
    font-size: 1.8rem; color: #fff; 
    display: flex; align-items: center; gap: 15px;
}
.logo i { 
    font-size: 2.2rem;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 10px var(--accent-primary));
}
.logo .logoText {
    background: linear-gradient(180deg, #ffffff 0%, #a0a0bd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 50px; align-items: center; }
.nav-links li > a { 
    color: #fff; font-weight: 700; font-size: 0.95rem; text-transform: uppercase;
    font-family: 'Orbitron', sans-serif; letter-spacing: 2px;
    position: relative; padding: 10px 0; opacity: 0.7;
}
.nav-links li > a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px;
    background: var(--accent-primary); transition: 0.3s; box-shadow: 0 0 10px var(--accent-primary);
}
.nav-links li > a:hover, .nav-links li > a.active { opacity: 1; text-shadow: 0 0 15px rgba(255,255,255,0.5); }
.nav-links li > a:hover::after, .nav-links li > a.active::after { width: 100%; }

.menu-toggle {
    display: none; background: transparent; border: 1px solid var(--glass-border);
    color: #fff; padding: 10px 15px; border-radius: 4px; font-size: 1.2rem; cursor: pointer; transition: 0.3s;
}
.menu-toggle:hover { border-color: var(--accent-color); color: var(--accent-color); box-shadow: 0 0 10px var(--accent-color); }

/* Premium Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: calc(100% + 20px); left: 50%; transform: translateX(-50%) translateY(15px);
    background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(20px);
    min-width: 250px; padding: 20px; border: 1px solid var(--glass-border);
    opacity: 0; visibility: hidden; transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 8px; box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu::before {
    content:''; position:absolute; top:-6px; left:50%; transform:translateX(-50%) rotate(45deg);
    width:12px; height:12px; background:rgba(10,10,15,0.95); border-left:1px solid var(--glass-border); border-top:1px solid var(--glass-border);
}
.dropdown-menu li { margin-bottom: 5px; }
.dropdown-menu li:last-child { margin-bottom: 0; }
.dropdown-menu li a { 
    display: block; padding: 12px 20px; font-size: 0.9rem; border-radius: 4px;
    font-family: 'Outfit', sans-serif; text-transform:none; letter-spacing:1px;
}
.dropdown-menu li a:hover { background: rgba(0, 240, 255, 0.1); color: var(--accent-primary); transform: translateX(5px); }

/* Hero Slider Cinematic */
.hero-slider { position: relative; width: 100%; height: 80vh; min-height: 600px; background: #000; overflow: hidden; }
.slide { 
    position: absolute; inset: 0; opacity: 0; transition: transform 2s ease, opacity 1s ease; 
    background-size: cover; background-position: center; display: flex; align-items: center;
    transform: scale(1.1);
}
.slide.active { opacity: 1; transform: scale(1); }
.slide::after { 
    content: ''; position: absolute; inset: 0; 
    background: linear-gradient(90deg, rgba(3,3,5,0.9) 0%, rgba(3,3,5,0.6) 40%, transparent 100%),
                linear-gradient(0deg, rgba(3,3,5,1) 0%, transparent 30%); 
}
.slide::before {
    content: ''; position: absolute; inset: 0; background: url('https://www.transparenttextures.com/patterns/cubes.png'); opacity: 0.05; z-index: 1; mix-blend-mode: overlay;
}

.slide-content { position: relative; z-index: 2; width: 100%; max-width: 800px; }
.slide-content h2 { 
    font-size: 5vw; line-height: 1.1; margin-bottom: 30px; 
    text-shadow: 0 10px 40px rgba(0,0,0,0.8);
    background: linear-gradient(180deg, #fff 0%, #7a7a9a 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.slide-content p { 
    font-size: 1.5rem; color: var(--accent-primary); font-weight: 600; 
    letter-spacing: 5px; text-transform: uppercase; margin-bottom: 40px;
    text-shadow: 0 0 20px rgba(0,240,255,0.5);
}

.slider-controls { position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 20px; }
.dot { width: 50px; height: 4px; background: rgba(255,255,255,0.2); cursor: pointer; transition: 0.4s; position:relative; overflow:hidden;}
.dot::after { content:''; position:absolute; left:0; top:0; height:100%; width:0%; background:var(--accent-primary); transition:0.3s; box-shadow:0 0 10px var(--accent-primary);}
.dot.active::after { width: 100%; }

/* Sections */
.section-title { font-size: 3rem; margin: 100px 0 60px; position: relative; text-align: center; }
.section-title::after { 
    content: ''; position: absolute; bottom: -20px; left: 50%; transform:translateX(-50%);
    width: 100px; height: 5px; background: linear-gradient(90deg, transparent, var(--accent-primary), transparent); 
}

/* Category Grid Premium */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.cat-card {
    background: var(--bg-card); height: 200px; border-radius: 8px;
    border: 1px solid var(--glass-border); transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; text-align:center;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}
.cat-card h3 { font-size: 1.3rem; color: #fff; z-index: 2; transition: 0.4s; letter-spacing:3px; }
.cat-card:hover { transform: translateY(-10px) scale(1.02); border-color: rgba(0,240,255,0.5); box-shadow: 0 20px 40px rgba(0,240,255,0.15); }
.cat-card::before { 
    content: ''; position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent, var(--accent-primary), transparent 30%);
    opacity: 0; transition: 0.8s; z-index: 1; animation: spin 4s linear infinite;
}
.cat-card::after { content:''; position:absolute; inset:2px; background:#0a0a10; border-radius:6px; z-index:1; }
.cat-card h3, .cat-card i { position:relative; z-index:3; }
.cat-card:hover::before { opacity: 1; }
.cat-card:hover h3 { letter-spacing: 5px; color: var(--accent-primary); text-shadow: 0 0 10px rgba(0,240,255,0.5); }

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

/* Product Grid Premium */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 40px; }
.product-card {
    background: linear-gradient(180deg, rgba(15,15,25,0.8) 0%, rgba(5,5,10,0.9) 100%); 
    border-radius: 12px; border: 1px solid var(--glass-border);
    overflow: hidden; transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); 
    display: flex; flex-direction: column; position: relative;
    backdrop-filter: blur(15px); box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.product-card::before { content:''; position:absolute; top:0; left:0; width:100%; height:100%; box-shadow:inset 0 0 0 1px rgba(255,255,255,0.02); border-radius:12px; pointer-events:none; }
.product-card:hover { 
    border-color: rgba(0,240,255,0.3); 
    transform: translateY(-15px); 
    box-shadow: 0 40px 80px rgba(0,0,0,0.9), 0 0 30px rgba(0, 240, 255, 0.1); 
}

.product-img { 
    height: 350px; background: radial-gradient(circle at center, #151520, #050505); 
    position: relative; overflow: hidden; padding: 40px; display:flex; align-items:center; justify-content:center;
}
.product-img::after { content:''; position:absolute; bottom:0; left:0; width:100%; height:40%; background:linear-gradient(0deg, #05050a 0%, transparent 100%); }
.product-img img { 
    max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.8)); position:relative; z-index:2;
}
.product-card:hover .product-img img { transform: scale(1.15) translateY(-10px); filter: drop-shadow(0 30px 40px rgba(0,240,255,0.2)); }

.status-badge {
    position: absolute; top: 20px; right: 20px; padding: 8px 16px; font-size: 0.75rem;
    font-weight: 900; text-transform: uppercase; border-radius: 4px; z-index: 10;
    font-family: 'Orbitron', sans-serif; letter-spacing:1px; backdrop-filter:blur(5px);
}
.status-disponible { background: rgba(0,255,102,0.1); color: var(--accent-success); border:1px solid var(--accent-success); box-shadow: 0 0 15px rgba(0,255,102,0.2); }
.status-agotado { background: rgba(255,0,60,0.1); color: var(--accent-secondary); border:1px solid var(--accent-secondary); box-shadow: 0 0 15px rgba(255,0,60,0.2); }
.status-ultimas { background: rgba(255,204,0,0.1); color: var(--accent-warning); border:1px solid var(--accent-warning); box-shadow: 0 0 15px rgba(255,204,0,0.2); }
.status-proximamente { background: rgba(188,0,255,0.1); color: var(--accent-tertiary); border:1px solid var(--accent-tertiary); box-shadow: 0 0 15px rgba(188,0,255,0.2); }

.product-info { padding: 35px; flex-grow: 1; display: flex; flex-direction: column; position:relative; z-index:3; }
.product-brand { color: var(--accent-primary); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 12px; display:inline-block; }
.product-title { font-size: 1.6rem; color: #fff; margin-bottom: 15px; font-family: 'Outfit', sans-serif; font-weight:700; line-height:1.3; }
.product-sku { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 25px; font-weight: 600; padding:5px 10px; background:rgba(255,255,255,0.03); border-radius:4px; display:inline-block; width:fit-content;}

/* Product Detail Premium */
.product-detail-wrap { margin-top: 80px; margin-bottom:100px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items:start;}
.detail-img-box { 
    background: radial-gradient(circle at top left, rgba(20,20,30,0.8), rgba(5,5,10,0.9)); 
    padding: 80px; border-radius: 20px; border: 1px solid var(--glass-border);
    backdrop-filter: blur(30px); position: sticky; top: 130px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
    display:flex; justify-content:center; align-items:center;
}
.detail-img-box img { filter: drop-shadow(0 40px 50px rgba(0,0,0,0.6)); transition:0.5s; }
.detail-img-box:hover img { transform:scale(1.05); filter: drop-shadow(0 50px 60px rgba(0,240,255,0.2)); }

.detail-info { padding-top: 20px; }
.detail-info h1 { font-size: 4rem; margin-bottom: 30px; line-height: 1.1; letter-spacing:1px; text-transform:none; font-family:'Outfit', sans-serif;}
.detail-info .lead-txt { font-size: 1.4rem; color: #c0c0d0; margin-bottom: 40px; font-weight:300; line-height:1.8;}
.specs-box { 
    background: rgba(10,10,15,0.6); padding: 40px; border-radius:12px;
    border: 1px solid var(--glass-border); border-top: 4px solid var(--accent-primary); margin: 40px 0; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.specs-box h4 { font-family:'Orbitron', sans-serif; font-size:1.2rem; color:#fff; margin-bottom:20px; letter-spacing:2px;}
.specs-box pre { font-family: 'Outfit', sans-serif; font-size: 1.15rem; color: var(--text-secondary); white-space: pre-line; line-height:2; }

/* Admin Global */
.admin-body { background: #030305; display:flex; min-height:100vh; }
#auth-overlay { background: #000 radial-gradient(circle at center, #10101a 0%, #000 100%); position:fixed; inset:0; display:flex; align-items:center; justify-content:center; z-index:9999;}
.login-box { 
    background: rgba(15,15,25,0.8); padding:50px; border-radius: 16px; box-shadow: 0 30px 100px rgba(0, 240, 255, 0.15);
    border: 1px solid rgba(0,240,255,0.2); width:100%; max-width:450px; text-align:center; backdrop-filter:blur(20px);
}
.login-box h1 { color: #fff; margin-bottom:40px; letter-spacing:4px; font-size:2rem;}
.login-box h1 span { color:var(--accent-primary); text-shadow: 0 0 15px var(--accent-primary); }

/* Forms & Tables */
.form-group { margin-bottom: 25px; text-align:left; }
label { display: block; margin-bottom: 10px; color: var(--text-secondary); font-size:0.95rem; font-weight:600; text-transform:uppercase; letter-spacing:1px;}
input[type="text"], input[type="password"], input[type="email"], input[type="number"], select, textarea { 
    width: 100%; padding: 15px 20px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); 
    color: #fff; border-radius: 6px; font-family: inherit; font-size:1rem; transition:0.3s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 15px rgba(0,240,255,0.2); background: rgba(10,10,20,0.8);}
select option { background-color: var(--bg-surface); color: var(--text-primary); }
.card { background: rgba(15,15,25,0.6); padding: 40px; border-radius: 12px; border: 1px solid var(--glass-border); margin-bottom: 30px; backdrop-filter:blur(10px);}

.table-responsive { width: 100%; overflow-x: auto; background:rgba(0,0,0,0.3); border-radius:12px; border:1px solid var(--glass-border);}
table { width: 100%; border-collapse: collapse; min-width:800px; }
th, td { padding: 20px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05); }
th { background: rgba(10,10,15,0.9); color: var(--accent-primary); font-weight: 700; text-transform: uppercase; letter-spacing:1px; font-size:0.9rem;}
tr:hover { background: rgba(255,255,255,0.03); }
.actions button { cursor: pointer; background:none; border:none; margin-right: 15px; color: #fff; font-size: 1.2rem; transition:0.3s;}
.actions button:hover { color: var(--accent-primary); transform:scale(1.2); }
.actions .text-danger:hover { color: var(--accent-secondary); text-shadow:0 0 10px var(--accent-secondary); }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; margin-bottom: 50px; }
.stat-card { 
    background: linear-gradient(135deg, rgba(20,20,30,0.8), rgba(5,5,10,0.9)); padding: 40px; border-radius: 12px; 
    text-align: center; border: 1px solid var(--glass-border); position:relative; overflow:hidden;
    box-shadow:0 15px 30px rgba(0,0,0,0.5);
}
.stat-card::before { content:''; position:absolute; top:0; left:0; width:100%; height:3px; background:var(--accent-primary); box-shadow:0 0 15px var(--accent-primary);}
.stat-card h3 { font-size: 4rem; margin: 0; color: #fff; line-height:1; }
.stat-card p { color: var(--text-secondary); text-transform: uppercase; font-size: 0.95rem; margin-top: 15px; font-weight: 700; letter-spacing:2px;}

/* Sidebar Admin */
.sidebar { width: 280px; flex-shrink:0; border-right: 1px solid var(--glass-border); background: rgba(5,5,8,0.95); backdrop-filter:blur(20px); display:flex; flex-direction:column;}
.sidebar-header { color: #fff; padding: 40px 30px; font-size:1.8rem; font-weight:900; letter-spacing:2px; font-family:'Orbitron', sans-serif;}
.sidebar-header span { color:var(--accent-primary); }
.sidebar-nav { flex-grow:1; padding:20px 0;}
.sidebar-nav a { display:flex; align-items:center; padding: 18px 30px; color: var(--text-secondary); text-decoration:none; font-size:1.1rem; border-left: 4px solid transparent; transition:0.3s; cursor:pointer;}
.sidebar-nav a i { width:35px; font-size:1.2rem; }
.sidebar-nav a.active, .sidebar-nav a:hover { background: linear-gradient(90deg, rgba(0, 240, 255, 0.1) 0%, transparent 100%); border-color: var(--accent-primary); color: #fff; }
.content { flex-grow: 1; padding: 50px; overflow-y: auto; height:100vh;}

/* Footer */
.main-footer { background: #030305; padding: 120px 0 40px; border-top: 1px solid var(--glass-border); margin-top: 150px; position:relative; overflow:hidden;}
.main-footer::before { content:''; position:absolute; top:0; left:50%; transform:translate(-50%, -50%); width:80%; height:200px; background:radial-gradient(ellipse, rgba(0,240,255,0.05) 0%, transparent 70%); pointer-events:none;}
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 60px; margin-bottom: 60px; position:relative; z-index:2;}
.footer-col h4 { font-size: 1.1rem; margin-bottom: 30px; color: #fff; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { color: var(--text-secondary); font-size: 1rem; }
.footer-col ul li a:hover { color: var(--accent-primary); padding-left:10px;}
.social-links { display: flex; gap: 15px; margin-top: 30px; }
.social-links a { display: inline-flex; width: 45px; height: 45px; background: rgba(255,255,255,0.05); align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size:1.2rem; border:1px solid transparent;}
.social-links a:hover { background: transparent; color: var(--accent-primary); border-color:var(--accent-primary); box-shadow:0 0 15px rgba(0,240,255,0.3); transform:translateY(-5px);}
.footer-bottom { text-align: center; color: var(--text-muted); font-size: 0.95rem; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
#app-content > *, .content > * { animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

/* ─── Loading Overlay ──────────────────────────────────────────────────────── */
#cronex-loader {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(3, 3, 5, 0.92);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 20px;
    backdrop-filter: blur(8px);
}
.cronex-spinner {
    width: 56px; height: 56px;
    border: 3px solid rgba(0, 240, 255, 0.15);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: cronex-spin 0.7s linear infinite;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}
@keyframes cronex-spin { to { transform: rotate(360deg); } }
#cronex-loader p {
    color: var(--text-secondary); font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase;
}

/* ─── Paginator ─────────────────────────────────────────────────────────────── */
.paginator {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; flex-wrap: wrap; padding: 20px 0 10px;
}
.pg-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary); border-radius: 6px;
    font-family: 'Orbitron', sans-serif; font-size: 0.72rem;
    cursor: pointer; transition: all 0.2s ease;
    letter-spacing: 0.5px;
}
.pg-btn:hover { background: rgba(0, 240, 255, 0.1); border-color: var(--accent-primary); color: var(--accent-primary); }
.pg-btn.active { background: rgba(0, 240, 255, 0.15); border-color: var(--accent-primary); color: var(--accent-primary); font-weight: 700; box-shadow: 0 0 10px rgba(0, 240, 255, 0.2); }
.pg-btn:disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.pg-info { color: var(--text-muted); font-size: 0.78rem; margin: 0 6px; }

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .product-detail-wrap { grid-template-columns: 1fr; gap: 60px; }
    .detail-img-box { position: relative; top: 0; padding: 40px; margin-bottom:20px; }
}

@media (max-width: 1024px) {
    .slide-content h2 { font-size: 4rem; }
    .header-actions { 
        width: 100%; 
        justify-content: center; 
        margin-top: 15px; 
        order: 3;
    }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .header-actions {
        flex-direction: column;
        gap: 10px;
    }
    .header-actions .btn {
        width: 100%;
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
        word-wrap: break-word;
        padding: 0 10px;
    }
    .nav-links {
        display: none; flex-direction: column; width: 100%; gap: 0; padding: 10px 0;
        position:absolute; top:100%; left:0; background:rgba(5,5,8,0.98); backdrop-filter:blur(20px); border-top:1px solid var(--glass-border);
    }
    .nav-links.active { display: flex !important; }
    .nav-links li { width:100%; border-bottom:1px solid rgba(255,255,255,0.05); }
    .nav-links li > a { padding:20px 30px; display:block; }
    .dropdown-menu { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 40px; border-top: none; background: transparent; display: none; margin-top:0;}
    .dropdown.active .dropdown-menu { display: block; }
    
    .hero-slider { height: 60vh; min-height:500px;}
    .slide-content h2 { font-size: 3rem; }
    .slide-content p { font-size: 1.2rem; }
    
    .cat-grid, .product-grid { grid-template-columns: 1fr; }
    .detail-info h1 { font-size: 2.5rem; }
    
    /* Admin layout */
    .admin-body { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--glass-border); }
    .sidebar-nav { display: none; }
    .sidebar-nav.active { display: flex; flex-direction: column; }
    .content { padding: 20px;}
    
    /* Force grids to block on mobile */
    .admin-split-layout { grid-template-columns: 1fr !important; }
    .catalog-split-layout { flex-direction: column !important; }
    .form-row { grid-template-columns: 1fr !important; }
}
