/* Spellbox Storm - White Cyberpunk/Techno-Organic Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    /* Base Colors */
    --body-bg: #f4f6f8;
    --body-color: #1b2e4b;
    --card-bg: #ffffff;
    --border-color: #e2e5ed;
    
    /* SPELLBOX PURPLE PALETTE */
    --accent-primary: #6200ea;
    --accent-glow: rgba(98, 0, 234, 0.3);
    --accent-secondary: #aa00ff;
    --accent-dark: #31007a;
    --border-subtle: #e2e5ed;
    
    --accent-success: #00e676;
    --accent-warning: #ffea00;
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-tech: 'Rajdhani', sans-serif;

    /* Shapes & Radii */
    --radius-organic: 24px;
    --radius-tech: 2px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--body-bg);
    color: var(--body-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image: 
        linear-gradient(rgba(98, 0, 234, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(98, 0, 234, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-tech);
    font-weight: 700;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

a {
    color: var(--body-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-primary);
}

/* --- ANIMATIONS --- */
@keyframes cyber-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes scan-line {
    0%, 100% { width: 0%; opacity: 0; left: 0; }
    50% { width: 100%; opacity: 1; left: 0; }
}

.text-cyber-flow {
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, 
        var(--accent-dark) 0%, 
        var(--accent-primary) 45%, 
        #d1c4e9 50%, 
        var(--accent-primary) 55%, 
        var(--accent-dark) 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: cyber-flow 4s linear infinite;
    display: inline-block;
    position: relative;
    margin-bottom: 10px;
}

.text-cyber-flow::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.3;
}

/* --- TECH DIVIDERS --- */
.tech-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 60px 0 40px;
    opacity: 0.6;
}
.tech-divider .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}
.tech-divider .bracket-l {
    width: 12px; height: 12px;
    border-left: 2px solid var(--accent-primary);
    border-top: 2px solid var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
}
.tech-divider .bracket-r {
    width: 12px; height: 12px;
    border-right: 2px solid var(--accent-primary);
    border-top: 2px solid var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
}
.tech-divider .diamond {
    width: 10px; height: 10px;
    background: var(--accent-primary);
    transform: rotate(45deg);
    box-shadow: 0 0 10px var(--accent-primary);
}

/* --- TECH BORDER BOX --- */
.tech-border-box {
    position: relative;
    padding: 4px;
}
.tech-border-box::before, .tech-border-box::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    border: 2px solid var(--accent-primary);
    transition: all 0.3s;
    pointer-events: none;
}
.tech-border-box::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.tech-border-box::after { bottom: 0; right: 0; border-left: none; border-top: none; }

/* --- CYBER TICKER BOXES --- */
.cyber-ticker-box {
    background: transparent;
    border: 1px solid rgba(98, 0, 234, 0.2);
    border-radius: 4px;
    padding: 15px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 15px;
    height: 60px;
}
.cyber-ticker-box::before {
    content: ''; position: absolute; top: -1px; left: -1px; width: 10px; height: 10px;
    border-top: 2px solid var(--accent-primary); border-left: 2px solid var(--accent-primary);
}
.cyber-ticker-box::after {
    content: ''; position: absolute; bottom: -1px; right: -1px; width: 10px; height: 10px;
    border-bottom: 2px solid var(--accent-primary); border-right: 2px solid var(--accent-primary);
}
.ticker-label {
    font-family: var(--font-tech);
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 12px;
    text-transform: uppercase;
    white-space: nowrap;
    padding-right: 15px;
    border-right: 1px solid rgba(0,0,0,0.1);
    letter-spacing: 1px;
}
.ticker-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.ticker-track {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-slide 20s linear infinite;
    font-family: var(--font-tech);
    font-size: 14px;
    color: #555;
    font-weight: 600;
}
@keyframes ticker-slide {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* --- ORGANIC MODULE --- */
.organic-module {
    width: 100%;
    background: var(--card-bg);
    position: relative;
    padding: 0;
    border-radius: 30px 4px 30px 30px;
    border-left: 1px solid var(--accent-primary);
    border-right: 1px solid var(--accent-primary);
    border-bottom: 1px solid rgba(98, 0, 234, 0.3);
    border-top: none;
    box-shadow: 0 15px 40px rgba(49, 0, 122, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.organic-module::before {
    content: '';
    position: absolute;
    top: 0; left: 20px; right: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-primary) 30%, var(--accent-primary) 70%, transparent 100%);
    z-index: 10;
}
.module-header {
    padding: 30px 25px 40px 25px;
    background: linear-gradient(180deg, rgba(243, 229, 245, 0.4) 0%, #fff 100%);
    position: relative;
    border-radius: 30px 4px 0 0;
}
.module-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 10%; width: 80%;
    height: 1px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 100%);
    opacity: 0.4;
}
.module-body {
    padding: 20px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    text-decoration: none;
    color: var(--body-color);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}
.item-row:hover {
    transform: translateX(5px);
    color: var(--accent-primary);
}
.item-row .chevron {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.3s ease;
}
.item-row[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}
.item-icon {
    width: 40px; height: 40px; 
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    transition: all 0.2s;
    border: 1px solid transparent;
    flex-shrink: 0;
}
.item-row:hover .item-icon, .item-row[aria-expanded="true"] .item-icon {
    background: #fff;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 10px rgba(98, 0, 234, 0.15);
}
.item-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-sans);
    line-height: 1.2;
}
.item-info span {
    font-size: 11px;
    color: #888;
    display: block;
}
.menu-collapse {
    padding-left: 20px;
    position: relative;
}
.menu-collapse::before {
    content: '';
    position: absolute;
    top: 0; bottom: 10px; left: 20px;
    width: 1px;
    background: rgba(98, 0, 234, 0.1);
}
.sub-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 500;
    color: #596882;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
    margin-bottom: 4px;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}
.sub-item:hover, .sub-item[aria-expanded="true"] {
    color: var(--accent-primary);
    background: rgba(98, 0, 234, 0.03);
    padding-left: 20px;
}
.sub-item::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    margin-right: 10px;
    transition: background 0.2s;
}
.sub-item:hover::before, .sub-item[aria-expanded="true"]::before {
    background: var(--accent-primary);
}
.deep-list {
    padding-left: 20px;
    border-left: 1px solid rgba(98, 0, 234, 0.1);
    margin-left: 18px;
    margin-top: 4px;
    margin-bottom: 8px;
}
.deep-item {
    display: block;
    padding: 6px 15px;
    font-size: 12px;
    color: #8392a5;
    text-decoration: none;
    transition: all 0.2s;
}
.deep-item:hover {
    color: var(--accent-primary);
    transform: translateX(3px);
}
.module-footer {
    padding: 25px;
    background: linear-gradient(0deg, rgba(243, 229, 245, 0.3) 0%, #fff 100%);
    margin-top: auto;
    border-radius: 0 0 30px 30px;
}
.btn-organic {
    width: 100%;
    padding: 14px;
    border: none;
    background: #fff;
    color: var(--accent-primary);
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px 4px 12px 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(98, 0, 234, 0.2);
    display: block;
    text-align: center;
}
.btn-organic:hover {
    background: var(--accent-primary);
    color: #fff;
    border-radius: 4px 12px 4px 12px;
    box-shadow: 0 8px 25px rgba(98, 0, 234, 0.3);
    transform: translateY(-2px);
}
.organic-module::after {
    content: '';
    position: absolute;
    top: 55%; right: 0;
    width: 3px; height: 40px;
    background: var(--accent-secondary);
    transform: translateY(-50%);
    border-radius: 2px 0 0 2px;
    opacity: 0.6;
}

/* --- CARDS --- */
.storm-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-organic) var(--radius-tech) var(--radius-organic) var(--radius-organic);
    box-shadow: 0 10px 40px -10px rgba(49, 0, 122, 0.06);
    margin-bottom: 24px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.storm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -12px rgba(98, 0, 234, 0.15);
}
.storm-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 30px; height: 30px;
    background: linear-gradient(225deg, var(--accent-primary) 50%, transparent 51%);
    opacity: 0.1;
    pointer-events: none;
}

/* --- HERO --- */
.hero-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 400px;
    border-radius: var(--radius-organic) var(--radius-tech) var(--radius-organic) var(--radius-organic);
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(49, 0, 122, 0.3);
}
/* Hero overlay: lateral gradient — dark left for text, transparent right for art */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 0, 30, 0.82) 0%,
        rgba(10, 0, 30, 0.55) 35%,
        rgba(10, 0, 30, 0.15) 60%,
        transparent 80%
    );
    z-index: 1;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content h1 {
    text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 0 40px rgba(98,0,234,0.3);
}
.hero-content .lead {
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.hero-content .badge {
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* --- NAVBAR --- */
.storm-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(98, 0, 234, 0.1);
    min-height: 80px;
    padding: 12px 0;
}
.storm-navbar .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 20px;
}
.mobile-menu-btn { display: none; }
.brand-logo {
    display: flex; align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
}
.brand-logo-svg {
    height: 92px;
    width: auto;
    max-width: 430px;
}
/* Color Wave animation on logo box + filaments (V07 from animation studies V3) */
.brand-logo-svg .logo-box path {
    animation: logo-color-wave-box 4s ease-in-out infinite;
}
.brand-logo-svg .logo-filaments path {
    animation: logo-color-wave-fil 4s ease-in-out infinite 0.5s;
}
.brand-logo-svg .logo-filaments path:nth-child(odd) { animation-delay: 0.8s; }
.brand-logo-svg .logo-filaments path:nth-child(3n) { animation-delay: 1.2s; }
@keyframes logo-color-wave-box {
    0%, 100% { fill: rgb(92,46,98); }
    33% { fill: rgb(127,56,255); }
    66% { fill: rgb(98,0,234); }
}
@keyframes logo-color-wave-fil {
    0%, 100% { fill: rgb(92,46,98); }
    33% { fill: rgb(170,0,255); }
    66% { fill: rgb(36,213,255); }
}
.nav-menu {
    display: flex; gap: 8px; align-items: center;
    background: rgba(98, 0, 234, 0.03);
    padding: 6px 10px; border-radius: 50px;
    border: 1px solid rgba(98, 0, 234, 0.1);
    white-space: nowrap;
}
.nav-item {
    font-family: var(--font-sans); font-size: 13px; font-weight: 600;
    color: #596882; padding: 8px 20px; border-radius: 30px;
    text-transform: uppercase; display: flex; align-items: center; height: 36px;
}
.nav-item:hover { color: var(--accent-primary); background: #fff; }
.nav-item.active {
    color: #fff; background: var(--accent-primary);
    box-shadow: 0 4px 10px rgba(98, 0, 234, 0.4);
}
.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}
.btn-icon {
    background: transparent;
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    cursor: pointer;
    position: relative;
}
.btn-icon:hover {
    background-color: rgba(98, 0, 234, 0.05);
    color: var(--accent-primary) !important;
}
.btn-icon i {
    line-height: 1;
    display: block;
}

/* --- DASHBOARD STATS --- */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}
@media (min-width: 992px) {
    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- BRAND CARDS --- */
.brand-card {
    height: 200px;
    border-radius: var(--radius-organic) var(--radius-tech) var(--radius-organic) var(--radius-organic);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background-repeat: no-repeat; background-position: center; background-size: 80%;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.1);
    transition: all 0.4s;
}
.brand-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(10, 0, 30, 0.95) 0%, rgba(98, 0, 234, 0.3) 100%);
    transition: opacity 0.3s;
}
.brand-content { position: relative; z-index: 2; }
.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(98, 0, 234, 0.3);
}

/* --- PRODUCTS --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}
@media (min-width: 768px) {
    .product-grid { gap: 24px; }
}
@media (min-width: 1200px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }

/* Category listing: match MK02 grid (4 columns on desktop) */
.category-products-grid {
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
    .category-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
    .category-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (min-width: 1200px) {
    .category-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

.product-thumb {
    background: #fff;
    display: flex; flex-direction: column;
    border-radius: 15px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}
.product-thumb:hover {
    box-shadow: 0 20px 50px -10px rgba(98, 0, 234, 0.15);
    transform: translateY(-8px);
    z-index: 5;
}
.product-thumb .image {
    margin: 0; background: #1a1a2e; overflow: hidden;
    padding-top: 139%; position: relative; width: 100%;
}
.product-thumb .image img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.5s ease;
}
.product-thumb:hover .image img { transform: scale(1.1); }
.product-thumb .caption {
    padding: 12px; background: #fff; border-top: 1px solid #eee;
    position: relative; z-index: 2;
}
.price {
    font-family: var(--font-tech); font-size: 18px;
    font-weight: 700; color: var(--accent-primary);
}
.product-thumb .button-group {
    position: absolute; top: 10px; right: 10px;
    display: flex; flex-direction: column; gap: 5px;
    opacity: 0; transform: translateX(10px); transition: all 0.3s; z-index: 3;
}
.product-thumb:hover .button-group { opacity: 1; transform: translateX(0); }
.product-thumb .btn-action {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.9); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.product-thumb .btn-action:hover { background: var(--accent-primary); color: #fff; }

/* --- PRODUCT LIST WIDGET --- */
.product-list-table td {
    padding: 12px 16px;
    vertical-align: middle;
}
.set-symbol {
    width: 32px; height: 32px; object-fit: contain; opacity: 0.8; transition: opacity 0.2s;
}
.set-symbol:hover { opacity: 1; }
.product-name-cell { max-width: 250px; line-height: 1.3; }
.product-name-truncate {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--body-color);
    transition: color 0.2s;
}
.product-name-cell:hover .product-name-truncate { color: var(--accent-primary); }
.price-new { font-weight: 700; color: var(--accent-primary); }
.price-old { font-size: 0.85em; color: #999; text-decoration: line-through; margin-left: 5px; }

/* --- BUTTONS --- */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    box-shadow: 0 4px 15px rgba(98, 0, 234, 0.4);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    transform: translateY(-2px);
}

/* --- EXTRAS --- */
.horizontal-banner {
    height: 180px;
    background-size: cover; background-position: center;
    border-radius: var(--radius-organic) var(--radius-tech) var(--radius-organic) var(--radius-organic);
    position: relative; overflow: hidden;
    display: flex; align-items: center; padding: 0 60px;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.1);
}
.horizontal-banner::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, #000 0%, transparent 100%); z-index: 1;
}
.horizontal-banner-content { position: relative; z-index: 2; color: #fff; }

.storm-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    background: #fff; margin-top: 60px; padding: 40px 0;
}
.footer-links a { color: #8392a5; text-decoration: none; }
.footer-links a:hover { color: var(--accent-primary); }

/* ==========================================================================
   LIBRARY OF CYBER DECORATIONS (L-SHAPES)
   ========================================================================== */
.cyber-deco {
    position: absolute; pointer-events: none; z-index: 100;
    filter: drop-shadow(0 0 4px rgba(98, 0, 234, 0.6));
}

/* TYPE A: BOTTOM-LEFT LARGE */
.deco-bl-large {
    bottom: -8px; left: -8px; width: 180px; height: 120px;
    border-left: 2px solid var(--accent-secondary);
    border-bottom: 2px solid var(--accent-secondary);
    border-radius: 0 0 0 38px;
    -webkit-mask-image: linear-gradient(to top, black 0%, black 20%, transparent 22%, transparent 25%, black 27%, black 60%, transparent 65%, transparent 75%, black 80%, black 100%);
    mask-image: linear-gradient(to top, black 0%, black 20%, transparent 22%, transparent 25%, black 27%, black 60%, transparent 65%, transparent 75%, black 80%, black 100%);
}
.deco-bl-large::before {
    content: ''; position: absolute; top: -100%; left: -2px; width: 2px; height: 50%;
    background: linear-gradient(to bottom, transparent, #fff, var(--accent-primary), transparent);
    animation: cyber-drop 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.deco-bl-large::after {
    content: ''; position: absolute; bottom: -2px; left: -100%; width: 50%; height: 2px;
    background: linear-gradient(to right, transparent, #fff, var(--accent-primary), transparent);
    animation: cyber-slide 3s cubic-bezier(0.4, 0, 0.2, 1) infinite; animation-delay: 0.5s; opacity: 0;
}

/* TYPE B: TOP-RIGHT SMALL */
.deco-tr-small {
    top: -8px; right: -8px; width: 100px; height: 60px;
    border-top: 2px solid var(--accent-secondary);
    border-right: 2px solid var(--accent-secondary);
    border-radius: 0 12px 0 0;
    -webkit-mask-image: linear-gradient(to left, black 0%, black 30%, transparent 35%, transparent 40%, black 45%, black 70%, rgba(0,0,0,0.2) 80%, transparent 100%);
    mask-image: linear-gradient(to left, black 0%, black 30%, transparent 35%, transparent 40%, black 45%, black 70%, rgba(0,0,0,0.2) 80%, transparent 100%);
}
.deco-tr-small::before {
    content: ''; position: absolute; top: -2px; right: 100%; width: 40%; height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-primary), #fff, transparent);
    animation: cyber-slide-top 4s cubic-bezier(0.4, 0, 0.2, 1) infinite; animation-delay: 1s;
}
.deco-tr-small::after {
    content: ''; position: absolute; top: 0; right: -2px; width: 2px; height: 60%;
    background: linear-gradient(to bottom, #fff, var(--accent-primary), transparent);
    animation: cyber-drop-side 4s cubic-bezier(0.4, 0, 0.2, 1) infinite; animation-delay: 1.8s; opacity: 0;
}

/* TYPE C: TOP-LEFT MEDIUM */
.deco-tl-medium {
    top: -8px; left: -8px; width: 140px; height: 140px;
    border-top: 2px solid var(--accent-secondary);
    border-left: 2px solid var(--accent-secondary);
    border-radius: 28px 0 0 0;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 45%, transparent 50%, black 55%, black 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 45%, transparent 50%, black 55%, black 100%);
}
.deco-tl-medium::before {
    content: ''; position: absolute; top: -2px; left: -100%; width: 60%; height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-primary), #fff);
    animation: cyber-slide-right-start 3.5s ease-in-out infinite;
}
.deco-tl-medium::after {
    content: ''; position: absolute; top: 0; left: -2px; width: 2px; height: 0%;
    background: #fff; box-shadow: 0 0 10px var(--accent-primary);
    animation: cyber-grow-down 3.5s ease-in-out infinite; animation-delay: 0.5s;
}

/* TYPE D: BOTTOM-RIGHT LONG */
.deco-br-long {
    bottom: -8px; right: -8px; width: 250px; height: 40px;
    border-bottom: 2px solid var(--accent-secondary);
    border-right: 2px solid var(--accent-secondary);
    border-radius: 0 0 38px 0;
    -webkit-mask-image: linear-gradient(to right, black 0%, black 50%, transparent 55%, transparent 60%, black 65%, black 100%);
}
.deco-br-long::before {
    content: ''; position: absolute; bottom: 100%; right: -2px; width: 2px; height: 40px;
    background: linear-gradient(to top, #fff, transparent);
    animation: cyber-drop-short 2.5s infinite;
}

/* --- DARK CYBER FRAME (For Pre-Orders) --- */
.cyber-frame-dark {
    position: relative;
    background: transparent;
    border-left: 1px solid rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
    border-top: none; 
    border-radius: 28px 38px 38px 28px; 
    padding: 40px 25px 25px 25px;
    margin-bottom: 60px;
    margin-top: 60px;
}
.cyber-frame-dark::before {
    content: '';
    position: absolute;
    top: 0; left: 20px; right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #333 20%, #333 80%, transparent 100%);
    z-index: 0;
}
.cyber-frame-dark .cyber-frame-label {
    color: #333;
    left: 50%;
    transform: translateX(-50%);
    top: -12px;
}

/* --- DECORAÇÕES DARK --- */
.deco-tl-long-dark {
    top: -8px; left: -8px; 
    width: 300px; height: 80px;
    border-top: 2px solid #333;
    border-left: 2px solid #333;
    border-radius: 36px 0 0 0;
    pointer-events: none; position: absolute; z-index: 100;
    -webkit-mask-image: linear-gradient(to right, black 0%, black 20%, transparent 22%, transparent 25%, black 30%, black 45%, transparent 48%, transparent 60%, black 65%, black 85%, transparent 88%, transparent 92%, black 95%, black 100%);
    mask-image: linear-gradient(to right, black 0%, black 20%, transparent 22%, transparent 25%, black 30%, black 45%, transparent 48%, transparent 60%, black 65%, black 85%, transparent 88%, transparent 92%, black 95%, black 100%);
}
.deco-tl-long-dark::before {
    content: ''; position: absolute; top: -2px; left: -100%; width: 40%; height: 2px;
    background: linear-gradient(to right, transparent, #000, #999);
    animation: cyber-slide-right-start 4s ease-in-out infinite;
}
.deco-br-short-dark {
    bottom: -8px; right: -8px; 
    width: 150px; height: 150px;
    border-bottom: 1px solid #333;
    border-right: 1px solid #333;
    border-radius: 0 0 46px 0;
    pointer-events: none; position: absolute; z-index: 100;
    -webkit-mask-image: linear-gradient(to top, black 0%, black 15%, transparent 18%, transparent 25%, black 30%, black 50%, transparent 55%, transparent 58%, black 65%, black 100%);
    mask-image: linear-gradient(to top, black 0%, black 15%, transparent 18%, transparent 25%, black 30%, black 50%, transparent 55%, transparent 58%, black 65%, black 100%);
}
.deco-br-short-dark::after {
    content: ''; position: absolute; bottom: -3px; right: 0; width: 10px; height: 3px;
    background: #000;
    animation: cyber-shoot-left 3s infinite;
}
.deco-br-long::after {
    content: ''; position: absolute; bottom: -2px; right: 0; width: 10px; height: 2px;
    background: #fff; box-shadow: 0 0 8px var(--accent-primary);
    animation: cyber-shoot-left 2.5s infinite; animation-delay: 0.3s;
}

/* TYPE E: TOP-RIGHT LONG & THIN */
.deco-tr-long-thin {
    top: -8px; right: -8px; 
    width: 220px; height: 50px; 
    border-top: 1px solid var(--accent-secondary);
    border-right: 1px solid var(--accent-secondary);
    border-radius: 0 12px 0 0;
    -webkit-mask-image: linear-gradient(to left, black 0%, black 40%, transparent 45%, transparent 50%, black 55%, black 80%, rgba(0,0,0,0.2) 90%, transparent 100%);
    mask-image: linear-gradient(to left, black 0%, black 40%, transparent 45%, transparent 50%, black 55%, black 80%, rgba(0,0,0,0.2) 90%, transparent 100%);
}
.deco-tr-long-thin::before {
    content: ''; position: absolute; top: -1px; right: 100%; width: 40%; height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-primary), #fff, transparent);
    animation: cyber-slide-top 4s cubic-bezier(0.4, 0, 0.2, 1) infinite; animation-delay: 0.2s;
}
.deco-tr-long-thin::after {
    content: ''; position: absolute; top: 0; right: -1px; width: 1px; height: 60%;
    background: linear-gradient(to bottom, #fff, var(--accent-primary), transparent);
    animation: cyber-drop-side 4s cubic-bezier(0.4, 0, 0.2, 1) infinite; animation-delay: 1.8s; opacity: 0;
}

/* Animations */
@keyframes cyber-drop { 0% { top: -50%; opacity: 0; } 10% { opacity: 1; } 50% { top: 100%; opacity: 0; } 100% { top: 100%; opacity: 0; } }
@keyframes cyber-slide { 0% { left: 0; opacity: 0; } 40% { opacity: 0; } 45% { opacity: 1; left: 0; } 100% { left: 100%; opacity: 0; } }
@keyframes cyber-slide-top { 0% { right: 100%; opacity: 0; } 10% { opacity: 1; } 40% { right: 0; opacity: 1; } 41% { opacity: 0; } 100% { opacity: 0; } }
@keyframes cyber-drop-side { 0% { top: 0; opacity: 0; } 40% { opacity: 0; } 41% { opacity: 1; top: 0; } 100% { top: 100%; opacity: 0; } }
@keyframes cyber-slide-right-start { 0% { left: -50px; opacity: 0; } 20% { opacity: 1; left: 0; } 100% { left: 100%; opacity: 0; } }
@keyframes cyber-grow-down { 0% { height: 0; opacity: 1; } 50% { height: 100%; opacity: 1; } 100% { height: 100%; opacity: 0; top: 100%; } }
@keyframes cyber-drop-short { 0% { bottom: 100%; opacity: 0; } 50% { opacity: 1; bottom: 0; } 100% { bottom: 0; opacity: 0; } }
@keyframes cyber-shoot-left { 0% { right: 0; width: 0; opacity: 1; } 50% { width: 100%; right: 0; opacity: 1; } 100% { width: 0; right: 100%; opacity: 0; } }

/* --- HORIZONTAL CYBER FRAME --- */
.cyber-frame-horizontal {
    position: relative;
    background: transparent;
    border-left: 1px solid var(--accent-primary);
    border-right: 1px solid var(--accent-primary);
    border-bottom: 1px solid rgba(98, 0, 234, 0.3);
    border-top: none; 
    border-radius: 30px 4px 30px 30px; 
    padding: 40px 25px 25px 25px; 
    margin-bottom: 60px;
    margin-top: 80px;
}
.cyber-frame-horizontal::before {
    content: '';
    position: absolute;
    top: 0; left: 20px; right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-primary) 20%, var(--accent-primary) 80%, transparent 100%);
    z-index: 0;
}
.cyber-frame-label {
    position: absolute;
    top: -12px; 
    left: 40px;
    background-color: var(--body-bg);
    padding: 0 15px;
    color: var(--accent-primary);
    font-family: var(--font-tech);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cyber-frame-horizontal .deco-tr-long-thin { right: -8px; top: -8px; }
.cyber-frame-horizontal .deco-bl-large { bottom: -8px; left: -8px; }

/* --- CYBER LIST FRAMES --- */
.cyber-frame-list {
    background: var(--card-bg);
    position: relative;
    padding: 25px;
    box-shadow: 0 10px 40px -10px rgba(49, 0, 122, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    border: none; 
}
.cyber-frame-list.purple { border-radius: 28px 4px 38px 4px; }
.cyber-frame-list.orange { border-radius: 4px 28px 4px 38px; }
.cyber-frame-list.orange .price-old { color: #999 !important; }
.cyber-frame-list.green { border-radius: 28px 4px 38px 4px; }
.cyber-frame-list.yellow { border-radius: 28px 4px 38px 4px; }

/* --- DECORAÇÕES LARANJA --- */
.deco-tr-medium-orange {
    top: -8px; right: -8px; width: 140px; height: 60px;
    border-top: 2px solid #e65100;
    border-right: 2px solid #e65100;
    border-radius: 0 28px 0 0;
    filter: drop-shadow(0 0 4px rgba(230, 81, 0, 0.6));
    pointer-events: none; position: absolute; z-index: 100;
    -webkit-mask-image: linear-gradient(to left, black 0%, black 40%, transparent 45%, transparent 50%, black 55%, black 100%);
    mask-image: linear-gradient(to left, black 0%, black 40%, transparent 45%, transparent 50%, black 55%, black 100%);
}
.deco-tr-medium-orange::before {
    content: ''; position: absolute; top: -2px; right: 100%; width: 40%; height: 2px;
    background: linear-gradient(to right, transparent, #e65100, #fff, transparent);
    animation: cyber-slide-top 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.deco-bl-long-orange {
    bottom: -8px; left: -8px; width: 200px; height: 40px;
    border-bottom: 2px solid #e65100;
    border-left: 2px solid #e65100;
    border-radius: 0 0 0 38px;
    filter: drop-shadow(0 0 4px rgba(230, 81, 0, 0.6));
    pointer-events: none; position: absolute; z-index: 100;
    -webkit-mask-image: linear-gradient(to top, black 0%, black 30%, transparent 35%, transparent 40%, black 45%, black 100%);
    mask-image: linear-gradient(to top, black 0%, black 30%, transparent 35%, transparent 40%, black 45%, black 100%);
}
.deco-bl-long-orange::before {
    content: ''; position: absolute; bottom: 100%; left: -2px; width: 2px; height: 40px;
    background: linear-gradient(to top, #fff, transparent);
    animation: cyber-drop-short 3s infinite;
}

/* DECORAÇÕES VERDES */
.deco-tl-medium-green {
    top: -8px; left: -8px; width: 140px; height: 140px;
    border-top: 2px solid #1b5e20;
    border-left: 2px solid #1b5e20;
    border-radius: 28px 0 0 0;
    filter: drop-shadow(0 0 4px rgba(27, 94, 32, 0.6));
    pointer-events: none; position: absolute; z-index: 100;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 45%, transparent 50%, black 55%, black 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 45%, transparent 50%, black 55%, black 100%);
}
.deco-tl-medium-green::before {
    content: ''; position: absolute; top: -2px; left: -100%; width: 60%; height: 2px;
    background: linear-gradient(to right, transparent, #1b5e20, #fff);
    animation: cyber-slide-right-start 3.5s ease-in-out infinite;
}
.deco-br-long-green {
    bottom: -8px; right: -8px; width: 250px; height: 40px;
    border-bottom: 2px solid #1b5e20;
    border-right: 2px solid #1b5e20;
    border-radius: 0 0 38px 0;
    filter: drop-shadow(0 0 4px rgba(27, 94, 32, 0.6));
    pointer-events: none; position: absolute; z-index: 100;
    -webkit-mask-image: linear-gradient(to right, black 0%, black 50%, transparent 55%, transparent 60%, black 65%, black 100%);
    mask-image: linear-gradient(to right, black 0%, black 50%, transparent 55%, transparent 60%, black 65%, black 100%);
}
.deco-br-long-green::before {
    content: ''; position: absolute; bottom: 100%; right: -2px; width: 2px; height: 40px;
    background: linear-gradient(to top, #fff, transparent);
    animation: cyber-drop-short 2.5s infinite;
}

/* DECORAÇÕES AMARELAS */
.deco-tl-medium-yellow {
    top: -8px; left: -8px; width: 140px; height: 140px;
    border-top: 2px solid #f57f17;
    border-left: 2px solid #f57f17;
    border-radius: 28px 0 0 0;
    filter: drop-shadow(0 0 4px rgba(245, 127, 23, 0.6));
    pointer-events: none; position: absolute; z-index: 100;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 45%, transparent 50%, black 55%, black 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 45%, transparent 50%, black 55%, black 100%);
}
.deco-tl-medium-yellow::before {
    content: ''; position: absolute; top: -2px; left: -100%; width: 60%; height: 2px;
    background: linear-gradient(to right, transparent, #f57f17, #fff);
    animation: cyber-slide-right-start 3.5s ease-in-out infinite;
}
.deco-br-long-yellow {
    bottom: -8px; right: -8px; width: 250px; height: 40px;
    border-bottom: 2px solid #f57f17;
    border-right: 2px solid #f57f17;
    border-radius: 0 0 38px 0;
    filter: drop-shadow(0 0 4px rgba(245, 127, 23, 0.6));
    pointer-events: none; position: absolute; z-index: 100;
    -webkit-mask-image: linear-gradient(to right, black 0%, black 50%, transparent 55%, transparent 60%, black 65%, black 100%);
    mask-image: linear-gradient(to right, black 0%, black 50%, transparent 55%, transparent 60%, black 65%, black 100%);
}
.deco-br-long-yellow::before {
    content: ''; position: absolute; bottom: 100%; right: -2px; width: 2px; height: 40px;
    background: linear-gradient(to top, #fff, transparent);
    animation: cyber-drop-short 2.5s infinite;
}

/* --- RESPONSIVE ADJUSTMENTS --- */

/* 1. MOBILE FIXES (Phones < 768px) */
@media (max-width: 767px) {
    .cyber-deco {
        display: none !important;
    }
    .cyber-frame-list, .cyber-frame-horizontal, .cyber-frame-dark {
        margin-top: 20px !important;
        margin-bottom: 30px !important;
    }
    .cyber-frame-horizontal { border-top: 1px solid var(--accent-primary) !important; }
    .cyber-frame-dark { border-top: 1px solid rgba(0, 0, 0, 0.2) !important; }
    
    body { overflow-x: hidden; padding-bottom: 80px; }
    .container { padding-left: 20px; padding-right: 20px; }

    .mobile-menu-btn { display: inline-flex !important; }
    .brand-logo { margin-right: 10px !important; }
    .brand-logo-svg { height: 50px !important; max-width: 240px !important; }
    .storm-navbar .container { gap: 10px !important; padding-left: 15px !important; padding-right: 15px !important; }
    .header-actions { gap: 2px !important; }
    .btn-icon { width: 32px !important; height: 32px !important; }
    .btn-icon i { font-size: 1rem !important; }
    .header-actions .dropdown { display: none !important; }
    .nav-menu { display: none !important; }

    .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .product-thumb .caption { padding: 8px !important; }
    .product-thumb h4 { font-size: 12px !important; }
    .price { font-size: 14px !important; }

    .storm-navbar { position: sticky; top: 0; z-index: 1030; }
    .mobile-scroll-indicator { display: none !important; }
}

/* 2. TABLET FIXES (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container { padding-left: 20px; padding-right: 20px; max-width: 95%; }
    
    .dashboard-stats { grid-template-columns: repeat(3, 1fr) !important; gap: 15px !important; }
    .brand-card { height: 160px !important; padding: 15px !important; }
    .brand-content h3 { font-size: 16px !important; }

    .product-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 15px !important; }
    .product-grid .product-thumb:nth-child(10) { display: none !important; }

    .cyber-deco { transform: none !important; }
    
    .cyber-frame-list, .cyber-frame-horizontal, .cyber-frame-dark { margin-left: 5px; margin-right: 5px; }

    .deco-bl-large { width: 120px; height: 80px; bottom: -6px; left: -6px; }
    .deco-tr-long-thin { width: 150px; top: -6px; right: -6px; }
    .deco-tl-medium, .deco-tl-medium-green, .deco-tl-medium-yellow { width: 100px; height: 100px; top: -6px; left: -6px; }
    .deco-br-long, .deco-br-long-green, .deco-br-long-yellow { width: 180px; bottom: -6px; right: -6px; }
    .deco-tr-medium-orange { width: 100px; top: -6px; right: -6px; }
    .deco-bl-long-orange { width: 150px; bottom: -6px; left: -6px; }
    .deco-tl-long-dark { width: 200px; top: -6px; left: -6px; }
    .deco-br-short-dark { width: 100px; height: 100px; bottom: -6px; right: -6px; }
}

/* --- MOBILE BOTTOM NAV (Sticky Footer - Clean Style) --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(98, 0, 234, 0.1);
    border-radius: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1040;
    padding-bottom: env(safe-area-inset-bottom); 
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}
.nav-btn-mobile {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #8392a5;
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    width: 100%;
    height: 100%;
    position: relative;
    transition: color 0.3s;
}
.nav-btn-mobile i {
    font-size: 20px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: none;
}
.nav-btn-mobile:active, .nav-btn-mobile.active { color: var(--accent-primary); }
.nav-btn-mobile:active i { transform: scale(1.2); color: var(--accent-primary); }

/* --- CYBER SCROLL ORB (Tablet/Desktop Hover Button) --- */
.cyber-scroll-orb {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 50px; height: 100px;
    border-radius: 25px;
    z-index: 9999;
    display: flex !important;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 20px rgba(98, 0, 234, 0.25);
    border: 2px solid var(--accent-primary);
    overflow: hidden;
    transition: transform 0.3s;
}
.cyber-scroll-orb:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(98, 0, 234, 0.4);
}
.cyber-scroll-orb::after {
    content: ''; position: absolute; top: 50%; left: 5px; right: 5px; height: 1px;
    background: rgba(98, 0, 234, 0.2);
    pointer-events: none;
}
.orb-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--accent-primary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.orb-btn:hover { background: rgba(98, 0, 234, 0.1); color: var(--accent-dark); }
.orb-btn:active { background: var(--accent-primary); color: #fff; }
.orb-btn i { display: block; line-height: 1; }

@media (max-width: 767px) {
    .cyber-scroll-orb { display: none !important; }
}
