:root {
    --ev-primary: #6366f1;
    --ev-primary-dark: #4f46e5;
    --ev-accent: #06b6d4;
    --ev-purple: #8b5cf6;
    --ev-bg: #0a0f1e;
    --ev-surface: #111827;
    --ev-surface-2: #1f2937;
    --ev-text: #f9fafb;
    --ev-muted: #9ca3af;
    --ev-border: rgba(255,255,255,.08);
    --ev-radius: 12px;
    --ev-shadow: 0 20px 60px rgba(0,0,0,.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--ev-bg);
    color: var(--ev-text);
    line-height: 1.6;
    min-height: 100vh;
}

.ev-bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99,102,241,.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139,92,246,.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(6,182,212,.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.ev-container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; position: relative; z-index: 1; }

/* Nav */
.ev-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,15,30,.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ev-border);
}
.ev-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.ev-logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.25rem; color: var(--ev-text); text-decoration: none; }
.ev-logo-icon { font-size: 1.5rem; }
.ev-nav-links { display: flex; align-items: center; gap: 1.5rem; }
.ev-nav-links a { color: var(--ev-muted); text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .2s; }
.ev-nav-links a:hover { color: var(--ev-text); }
.ev-nav-highlight { color: var(--ev-accent) !important; }
.ev-menu-toggle { display: none; background: none; border: none; color: var(--ev-text); font-size: 1.5rem; cursor: pointer; }

/* Buttons */
.ev-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .6rem 1.25rem; border-radius: 8px; font-weight: 600; font-size: .875rem;
    text-decoration: none; border: none; cursor: pointer; transition: all .2s;
}
.ev-btn-primary { background: linear-gradient(135deg, var(--ev-primary), var(--ev-purple)); color: #fff; }
.ev-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,102,241,.4); }
.ev-btn-outline { background: transparent; color: var(--ev-text); border: 1px solid var(--ev-border); }
.ev-btn-outline:hover { border-color: var(--ev-primary); color: var(--ev-primary); }
.ev-btn-sm { padding: .4rem .85rem; font-size: .8rem; }
.ev-btn-lg { padding: .85rem 1.75rem; font-size: 1rem; }
.ev-btn-block { width: 100%; }

/* Hero */
.ev-hero { padding: 4rem 0 6rem; }
.ev-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.ev-badge {
    display: inline-block; padding: .35rem .85rem; border-radius: 20px;
    background: rgba(99,102,241,.15); color: var(--ev-primary); font-size: .8rem; font-weight: 600;
    margin-bottom: 1rem; border: 1px solid rgba(99,102,241,.3);
}
.ev-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.ev-hero p { color: var(--ev-muted); font-size: 1.1rem; margin-bottom: 2rem; max-width: 480px; }
.ev-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* 3D Cube */
.ev-hero-visual { display: flex; justify-content: center; perspective: 800px; }
.ev-3d-cube {
    width: 150px; height: 150px; position: relative;
    transform-style: preserve-3d; animation: cubeSpin 12s infinite linear;
}
.ev-cube-face {
    position: absolute; width: 150px; height: 150px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; background: rgba(99,102,241,.1);
    border: 1px solid rgba(99,102,241,.3); border-radius: 16px;
    backdrop-filter: blur(10px);
}
.ev-cube-face.front  { transform: translateZ(75px); }
.ev-cube-face.back   { transform: rotateY(180deg) translateZ(75px); }
.ev-cube-face.right  { transform: rotateY(90deg) translateZ(75px); }
.ev-cube-face.left   { transform: rotateY(-90deg) translateZ(75px); }
.ev-cube-face.top    { transform: rotateX(90deg) translateZ(75px); }
.ev-cube-face.bottom { transform: rotateX(-90deg) translateZ(75px); }
@keyframes cubeSpin {
    0% { transform: rotateX(-15deg) rotateY(0deg); }
    100% { transform: rotateX(-15deg) rotateY(360deg); }
}

/* Sections */
.ev-section { padding: 4rem 0; }
.ev-section-dark { background: rgba(17,24,39,.5); }
.ev-section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 2rem; }
.ev-page-title { font-size: 2rem; font-weight: 800; margin-bottom: 2rem; }

/* Products */
.ev-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.ev-product-card {
    background: var(--ev-surface); border: 1px solid var(--ev-border); border-radius: var(--ev-radius);
    overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s;
}
.ev-product-card:hover { transform: translateY(-4px); box-shadow: var(--ev-shadow); border-color: rgba(99,102,241,.3); }
.ev-product-image { position: relative; height: 200px; background: linear-gradient(135deg, var(--ev-surface-2), var(--ev-surface)); display: flex; align-items: center; justify-content: center; }
.ev-product-placeholder { font-size: 3rem; font-weight: 800; color: var(--ev-primary); opacity: .5; }
.ev-product-badge { position: absolute; top: .75rem; right: .75rem; background: #ef4444; color: #fff; padding: .2rem .6rem; border-radius: 6px; font-size: .75rem; font-weight: 600; }
.ev-product-info { padding: 1.25rem; }
.ev-product-category { font-size: .75rem; color: var(--ev-accent); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.ev-product-info h3 { font-size: 1rem; font-weight: 600; margin: .35rem 0 .75rem; }
.ev-price { font-size: 1.1rem; font-weight: 700; color: var(--ev-primary); }
.ev-price-old { text-decoration: line-through; color: var(--ev-muted); font-size: .9rem; margin-right: .5rem; }
.ev-price-lg { font-size: 1.75rem; }

/* Features */
.ev-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.ev-feature-card {
    padding: 2rem; background: var(--ev-surface); border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius); text-align: center;
}
.ev-feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.ev-feature-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.ev-feature-card p { color: var(--ev-muted); font-size: .9rem; }

/* Search */
.ev-search-bar { display: flex; gap: .75rem; margin-bottom: 2rem; flex-wrap: wrap; }
.ev-search-bar input, .ev-search-bar select {
    flex: 1; min-width: 200px; padding: .65rem 1rem; border-radius: 8px;
    border: 1px solid var(--ev-border); background: var(--ev-surface); color: var(--ev-text);
}

/* Detail */
.ev-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.ev-detail-placeholder { height: 400px; font-size: 6rem; display: flex; align-items: center; justify-content: center; background: var(--ev-surface); border-radius: var(--ev-radius); }
.ev-detail-desc { color: var(--ev-muted); margin: 1rem 0 1.5rem; }
.ev-detail-actions { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.ev-detail-meta { display: flex; gap: 1.5rem; color: var(--ev-muted); font-size: .85rem; flex-wrap: wrap; }
.ev-breadcrumb { margin-bottom: 2rem; color: var(--ev-muted); font-size: .875rem; }
.ev-breadcrumb a { color: var(--ev-muted); text-decoration: none; }

/* Auth */
.ev-auth-section { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.ev-auth-box {
    width: 100%; max-width: 420px; padding: 2.5rem; background: var(--ev-surface);
    border: 1px solid var(--ev-border); border-radius: var(--ev-radius);
}
.ev-auth-box h1 { font-size: 1.5rem; margin-bottom: 1.5rem; text-align: center; }
.ev-form-group { margin-bottom: 1rem; }
.ev-form-group label { display: block; margin-bottom: .35rem; font-size: .875rem; color: var(--ev-muted); }
.ev-form-group input {
    width: 100%; padding: .65rem .85rem; border-radius: 8px;
    border: 1px solid var(--ev-border); background: var(--ev-bg); color: var(--ev-text);
}
.ev-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ev-auth-link { text-align: center; margin-top: 1rem; color: var(--ev-muted); font-size: .875rem; }
.ev-auth-link a { color: var(--ev-primary); }

/* 3D Store page */
.ev-page-3d .ev-main { padding: 0; margin: 0; }
.ev-page-3d .ev-footer { display: none; }
.ev-page-3d .ev-alert { margin: 0; border-radius: 0; }

/* 3D Store */
.ev-3d-store {
    position: relative;
    width: 100%;
    height: calc(100vh - 64px);
    min-height: 520px;
    overflow: hidden;
}
#store-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #0a0f1e;
}
#store-canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}
.ev-3d-boot-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    color: #fca5a5;
    background: rgba(15, 23, 42, 0.95);
    font-size: 0.95rem;
}
.ev-3d-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #94a3b8;
    z-index: 1;
}
.ev-3d-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: ev-spin 0.8s linear infinite;
}
@keyframes ev-spin { to { transform: rotate(360deg); } }
.ev-3d-ui { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.ev-3d-ui > * { pointer-events: auto; }
.ev-3d-header {
    position: absolute; top: 1rem; left: 1rem; right: 1rem;
    background: rgba(10,15,30,.8); backdrop-filter: blur(16px);
    padding: 1rem 1.5rem; border-radius: var(--ev-radius); border: 1px solid var(--ev-border);
}
.ev-3d-header h1 { font-size: 1.1rem; margin-bottom: .75rem; }
.ev-3d-zones { display: flex; gap: .5rem; flex-wrap: wrap; }
.ev-zone-btn {
    padding: .35rem .75rem; border-radius: 6px; border: 1px solid var(--ev-border);
    background: transparent; color: var(--ev-muted); font-size: .75rem; cursor: pointer; transition: all .2s;
}
.ev-zone-btn:hover, .ev-zone-btn.active { background: var(--ev-primary); color: #fff; border-color: var(--ev-primary); }
.ev-3d-info {
    position: absolute; bottom: 5rem; left: 1rem; padding: 1.25rem;
    background: rgba(10,15,30,.9); border-radius: var(--ev-radius); border: 1px solid var(--ev-border);
    min-width: 250px;
}
.ev-3d-info.hidden { display: none; }
.ev-3d-crosshair {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    pointer-events: none;
    z-index: 4;
}
.ev-3d-crosshair::before,
.ev-3d-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1px;
}
.ev-3d-crosshair::before { left: 50%; top: 4px; width: 2px; height: 14px; margin-left: -1px; }
.ev-3d-crosshair::after { top: 50%; left: 4px; height: 2px; width: 14px; margin-top: -1px; }
.ev-3d-crosshair.hidden { display: none; }
.ev-3d-exit-look {
    position: absolute;
    top: 5.5rem;
    right: 1rem;
    z-index: 6;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--ev-border);
    background: rgba(10, 15, 30, 0.92);
    color: var(--ev-text);
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.2s;
}
.ev-3d-exit-look:hover { background: rgba(239, 68, 68, 0.25); border-color: #ef4444; }
.ev-3d-exit-look.hidden { display: none; }
.ev-3d-target {
    position: absolute;
    left: 50%;
    bottom: 4.5rem;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    background: rgba(10, 15, 30, 0.92);
    border: 1px solid var(--ev-primary);
    border-radius: var(--ev-radius);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
    z-index: 6;
    min-width: 220px;
    text-align: center;
}
.ev-3d-target.hidden { display: none; }
.ev-3d-target #store-target-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ev-text);
}
.ev-3d-target-hint {
    font-size: 0.72rem;
    color: var(--ev-muted);
}
.ev-3d-target-hint kbd,
.ev-3d-controls kbd {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    border: 1px solid var(--ev-border);
    background: rgba(99, 102, 241, 0.2);
    color: var(--ev-text);
    font-size: 0.75rem;
    font-family: inherit;
}
#store-target-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ev-accent);
}
.ev-3d-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.ev-3d-modal.hidden { display: none; }
.ev-3d-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}
.ev-3d-modal-panel {
    position: relative;
    width: min(420px, 100%);
    padding: 1.75rem;
    background: rgba(10, 15, 30, 0.98);
    border: 1px solid var(--ev-border);
    border-radius: var(--ev-radius);
    box-shadow: var(--ev-shadow);
}
.ev-3d-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ev-muted);
    cursor: pointer;
    font-size: 1rem;
}
.ev-3d-modal-close:hover { color: var(--ev-text); background: rgba(239, 68, 68, 0.2); }
.ev-3d-modal-panel h2 { font-size: 1.25rem; margin-bottom: 0.5rem; padding-right: 2rem; }
.ev-3d-modal-price { font-size: 1.35rem; font-weight: 700; color: var(--ev-accent); margin-bottom: 0.75rem; }
.ev-3d-modal-desc { color: var(--ev-muted); font-size: 0.9rem; margin-bottom: 1.25rem; line-height: 1.5; }
.ev-3d-modal-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.ev-3d-modal-msg { margin-top: 1rem; font-size: 0.85rem; color: #86efac; }
.ev-3d-modal-msg.hidden { display: none; }
.ev-3d-modal-msg.is-error { color: #fca5a5; }
.ev-3d-controls { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: var(--ev-muted); font-size: .8rem; text-align: center; max-width: 90%; }

/* Alerts & Footer */
.ev-alert { padding: .75rem 1rem; border-radius: 8px; margin: 1rem auto; font-size: .875rem; }
.ev-alert-success { background: rgba(34,197,94,.15); border: 1px solid #22c55e; color: #86efac; }
.ev-alert-error { background: rgba(239,68,68,.15); border: 1px solid #ef4444; color: #fca5a5; }
.ev-empty { color: var(--ev-muted); grid-column: 1 / -1; text-align: center; padding: 3rem; }

.ev-footer { border-top: 1px solid var(--ev-border); padding: 3rem 0 1.5rem; margin-top: 4rem; }
.ev-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.ev-footer h4 { margin-bottom: .75rem; font-size: .9rem; }
.ev-footer a { display: block; color: var(--ev-muted); text-decoration: none; font-size: .875rem; margin-bottom: .35rem; }
.ev-footer p { color: var(--ev-muted); font-size: .875rem; margin-top: .5rem; }
.ev-footer-bottom { text-align: center; color: var(--ev-muted); font-size: .8rem; padding-top: 1.5rem; border-top: 1px solid var(--ev-border); }

/* Volt Chat Widget */
#volt-chat-widget {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
}

/* Responsive */
@media (max-width: 768px) {
    .ev-hero-grid, .ev-detail-grid { grid-template-columns: 1fr; }
    .ev-hero-visual { order: -1; }
    .ev-menu-toggle { display: block; }
    .ev-nav-links {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        flex-direction: column; background: var(--ev-surface); padding: 1rem; border-bottom: 1px solid var(--ev-border);
    }
    .ev-nav-links.open { display: flex; }
    .ev-footer-grid { grid-template-columns: 1fr; }
    .ev-form-row { grid-template-columns: 1fr; }
    .ev-cart-grid, .ev-checkout-grid { grid-template-columns: 1fr; }
}

/* Sepet & Checkout */
.ev-cart-grid, .ev-checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.ev-cart-item { display: grid; grid-template-columns: 1fr auto auto auto; gap: 1rem; align-items: center; padding: 1.25rem; background: var(--ev-surface); border: 1px solid var(--ev-border); border-radius: var(--ev-radius); margin-bottom: .75rem; }
.ev-cart-item h3 { font-size: 1rem; margin-bottom: .25rem; }
.ev-cart-item h3 a { color: inherit; text-decoration: none; }
.ev-cart-qty { display: flex; gap: .5rem; align-items: center; }
.ev-cart-qty input { width: 60px; padding: .4rem; border-radius: 6px; border: 1px solid var(--ev-border); background: var(--ev-bg); color: var(--ev-text); }
.ev-cart-summary { background: var(--ev-surface); border: 1px solid var(--ev-border); border-radius: var(--ev-radius); padding: 1.5rem; position: sticky; top: 80px; }
.ev-cart-summary h3 { margin-bottom: 1rem; }
.ev-summary-row { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .9rem; }
.ev-summary-row.ev-total { font-size: 1.1rem; font-weight: 700; border-top: 1px solid var(--ev-border); margin-top: .5rem; padding-top: 1rem; }
.ev-summary-row.ev-discount { color: #22c55e; }
.ev-coupon-form { display: flex; gap: .5rem; margin: 1rem 0; }
.ev-coupon-form input { flex: 1; padding: .5rem; border-radius: 6px; border: 1px solid var(--ev-border); background: var(--ev-bg); color: var(--ev-text); }
.ev-btn-icon { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 1.1rem; }
.ev-muted { color: var(--ev-muted); font-size: .85rem; }
.ev-empty-state { text-align: center; padding: 4rem; }
.ev-payment-methods { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1rem; }
.ev-payment-option { display: flex; align-items: center; gap: .5rem; padding: .75rem; background: var(--ev-surface); border: 1px solid var(--ev-border); border-radius: 8px; cursor: pointer; }
.ev-card-fields { margin-top: 1rem; padding: 1rem; background: var(--ev-surface); border-radius: 8px; }
.ev-checkout-form textarea { width: 100%; padding: .65rem; border-radius: 8px; border: 1px solid var(--ev-border); background: var(--ev-bg); color: var(--ev-text); resize: vertical; }
.ev-success-section { display: flex; align-items: center; justify-content: center; min-height: 50vh; }
.ev-success-box { text-align: center; max-width: 500px; }
.ev-success-icon { font-size: 4rem; margin-bottom: 1rem; }
.ev-orders-table { width: 100%; border-collapse: collapse; background: var(--ev-surface); border-radius: var(--ev-radius); overflow: hidden; }
.ev-orders-table th, .ev-orders-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--ev-border); font-size: .875rem; }
.ev-orders-table th { background: var(--ev-surface-2); color: var(--ev-muted); }
.ev-badge-status { background: rgba(99,102,241,.2); color: var(--ev-primary); padding: .2rem .5rem; border-radius: 4px; font-size: .75rem; }
.ev-log-item { padding: .35rem 0; color: var(--ev-muted); font-size: .85rem; }
.ev-live-badge { font-size: .7rem; color: #22c55e; margin-left: .5rem; }
.ev-3d-chat { position: absolute; bottom: 4rem; right: 1rem; display: flex; gap: .5rem; }
.ev-3d-chat input { padding: .5rem .75rem; border-radius: 8px; border: 1px solid var(--ev-border); background: rgba(10,15,30,.9); color: var(--ev-text); width: 200px; }
.ev-ws-chat-bubble { background: rgba(99,102,241,.2); padding: .35rem .75rem; border-radius: 8px; margin-top: .25rem; font-size: .75rem; }
