/* ============================================
   SETOR - Premium Matte Black & NVIDIA Cyber Green Design System
   ============================================ */

:root {
    --bg-base: #030305;
    /* Matte Black Ultimate */
    --bg-surface: #0a0a0f;
    /* Slightly lighter black */
    --bg-card: rgba(15, 15, 25, 0.7);
    --bg-card-solid: #0d0d15;

    --accent: #00d2ff;
    /* Cyber Ice Blue */
    --accent-light: #00f0ff;
    /* Glowing Cyan */
    --accent-dark: #006699;
    /* Deep Cobalt */
    --accent-glow: rgba(0, 210, 255, 0.22);
    --accent-neon: #00f5ff;

    /* Mapping legacy gold variables to ice blue to maintain compatibility */
    --gold: var(--accent);
    --gold-light: var(--accent-light);
    --gold-dark: var(--accent-dark);
    --gold-glow: var(--accent-glow);
    --gold-neon: var(--accent-neon);

    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b5;
    --text-muted: #65657a;

    --border: rgba(0, 210, 255, 0.15);
    --border-light: rgba(255, 255, 255, 0.05);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-glow: 0 0 25px var(--accent-glow);
    --shadow-glow-intense: 0 0 40px rgba(0, 210, 255, 0.4);

    --font: 'Tajawal', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font);
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    transition: var(--transition-fast);
}

/* ---- Ambient Glows ---- */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    width: 60vw;
    height: 60vw;
    background: var(--accent-glow);
    top: -20vw;
    right: -10vw;
}

.bg-glow-2 {
    width: 50vw;
    height: 50vw;
    background: #192d00;
    bottom: -15vw;
    left: -10vw;
}

/* ---- Utility Classes ---- */
.highlight-gold,
.highlight-accent {
    color: var(--accent-light);
    text-shadow: 0 0 10px rgba(118, 185, 0, 0.35);
}

.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.d-none {
    display: none !important;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-gold,
.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #000;
    box-shadow: var(--shadow-glow);
}

.btn-gold:hover,
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-intense);
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.btn-outline-gold,
.btn-outline-accent {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline-gold:hover,
.btn-outline-accent:hover {
    background: rgba(118, 185, 0, 0.1);
    color: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ---- Card ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.divider {
    border: 0;
    height: 1px;
    background: var(--border-light);
    margin: 20px 0;
}

/* ============================================
   1. CINEMATIC INTRO OVERLAY
   ============================================ */
.cinematic-intro {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#introCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.intro-content {
    position: relative;
    z-index: 10;
    text-align: center;
    pointer-events: none;
}

.intro-logo {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 6px;
    color: #fff;
    margin-bottom: 24px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.intro-logo .logo-light {
    color: var(--gold);
    text-shadow: 0 0 30px var(--gold-glow);
}

.intro-taglines {
    height: 40px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.tagline {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tagline.active {
    opacity: 1;
    transform: translateY(0);
}

.skip-intro-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 24px;
    font-size: 0.85rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0 auto;
    transition: var(--transition-fast);
}

.skip-intro-btn:hover {
    background: rgba(197, 168, 91, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

/* ============================================
   NAVIGATION HEADER
   ============================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 900;
    background: rgba(3, 3, 5, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
}

.logo-glow {
    color: var(--gold);
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-icon {
    font-size: 0.75rem;
    margin-right: 5px;
    transition: var(--transition-fast);
}

.nav-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: -20px;
    background: rgba(10, 10, 15, 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 210, 255, 0.05);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-fast);
    font-weight: 500;
}

.dropdown-link i {
    font-size: 1rem;
    color: var(--accent);
    width: 20px;
    text-align: center;
}

.dropdown-link:hover {
    background: rgba(0, 210, 255, 0.08);
    color: var(--accent-light);
    padding-right: 18px;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding: 10px 0;
}

.nav-item:hover,
.nav-item.active {
    color: var(--gold-light);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.merchant-portal-btn {
    background: rgba(197, 168, 91, 0.1);
    border: 1px solid var(--border);
    color: var(--gold);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.merchant-portal-btn:hover {
    background: var(--gold);
    color: #000;
    box-shadow: var(--shadow-glow);
}

.cart-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 1.1rem;
}

.cart-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.cart-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--gold);
    color: #000;
    font-size: 0.72rem;
    font-weight: 900;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
}

/* ---- Mobile Drawer ---- */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: var(--bg-surface);
    z-index: 1000;
    transform: translateX(-100%);
    transition: var(--transition);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-right: 1px solid var(--border);
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-header .logo {
    font-size: 1.6rem;
    font-weight: 900;
}

.drawer-header .logo span {
    color: var(--gold);
}

.drawer-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
}

.drawer-item {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.drawer-item:hover {
    color: var(--gold);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   HERO SECTION
   ============================================ */
.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 8% 0;
    z-index: 1;
    overflow: hidden;
}

/* Hero Video Background */
.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

#heroVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    /* Dark dimmed cinematic look */
    filter: brightness(0.6) contrast(1.1);
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(3, 3, 5, 0.3), rgba(3, 3, 5, 0.95));
    z-index: 2;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.mouse-icon {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

.scroll-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

/* ============================================
   EXPLODED MECHANISM SECTION
   ============================================ */
.section-exploded {
    min-height: 120vh;
    padding: 100px 8%;
    position: relative;
}

.exploded-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
    position: relative;
}

.exploded-text-cols {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.exploded-step {
    opacity: 0.3;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.exploded-step.active {
    opacity: 1;
    transform: translateX(0);
}

.exploded-step h3 {
    font-size: 1.6rem;
    color: var(--gold-light);
    margin-bottom: 12px;
}

.exploded-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.exploded-3d-box {
    height: 600px;
    background: transparent;
    border: none;
    overflow: visible;
    position: relative;
    pointer-events: auto !important;
}

/* ============================================
   3D PRODUCT VIEWER (CUSTOMIZER)
   ============================================ */
.section-viewer {
    padding: 100px 8%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.viewer-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 40px;
}

.viewer-canvas-container {
    height: 600px;
    background: #07070a;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

#viewerCanvas3D {
    width: 100%;
    height: 100%;
}

.viewer-floating-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floater-btn {
    width: 42px;
    height: 42px;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

.floater-btn:hover,
.floater-btn.active {
    background: var(--gold);
    color: #000;
    box-shadow: var(--shadow-glow);
}

.material-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(197, 168, 91, 0.12);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold-light);
}

.viewer-sidebar-controls {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.product-info .product-tag {
    font-size: 0.72rem;
    font-weight: 900;
    background: var(--gold-glow);
    color: var(--gold);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.product-info .product-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.product-info .product-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold-light);
}

.control-groups {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.group-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-type-tabs {
    display: flex;
    gap: 10px;
}

.type-tab {
    flex: 1;
    padding: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.type-tab:hover {
    border-color: var(--gold);
}

.type-tab.active {
    background: rgba(197, 168, 91, 0.12);
    border-color: var(--gold);
    color: var(--gold-light);
}

.variant-options {
    display: flex;
    gap: 14px;
}

.variant-opt {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.variant-opt:hover {
    transform: scale(1.15);
}

.variant-opt.active {
    border-color: var(--gold-neon);
    box-shadow: 0 0 15px var(--gold-glow);
}

.mechanical-actions {
    display: flex;
    gap: 10px;
}

.mech-btn {
    flex: 1;
    padding: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mech-btn:hover,
.mech-btn.active {
    background: var(--bg-base);
    border-color: var(--gold);
    color: var(--gold);
}

.viewer-purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================
   AR MODAL & INSTRUCTIONS
   ============================================ */
.ar-modal {
    max-width: 440px;
}

.text-center {
    text-align: center;
}

.qr-placeholder {
    width: 180px;
    height: 180px;
    background: #fff;
    border-radius: var(--radius-lg);
    margin: 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: #000;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.ar-instructions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: right;
    margin-top: 24px;
}

.inst-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.inst-num {
    width: 24px;
    height: 24px;
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}

/* ============================================
   INTERACTIVE 3D HOTSPOTS (EXPLODED VIEW)
   ============================================ */
/* Hotspots positioned over the 2D exploded view */

.hotspot {
    position: absolute;
    width: 28px;
    height: 28px;
    z-index: 20;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.hotspot-trigger {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 10px var(--accent-glow);
    position: relative;
    transition: var(--transition-fast);
}

.hotspot-trigger::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--accent-light);
    opacity: 0;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.hotspot:hover .hotspot-trigger {
    background: var(--accent-light);
    transform: scale(1.2);
}

.hotspot-card {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 16px;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-glow);
    z-index: 25;
    transition: var(--transition);
    opacity: 1;
    transform: translateY(0);
    pointer-events: none;
}

.hotspot-card h4 {
    color: var(--accent-light);
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.hotspot-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ============================================
   TECHNICAL COMPARISON TABLE
   ============================================ */
.specs-comparison-wrapper {
    padding: 30px;
    margin-top: 50px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    margin-top: 15px;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
    color: var(--accent-light);
    font-weight: 700;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table td {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.comparison-table tr:hover td {
    color: var(--text-primary);
    background: rgba(118, 185, 0, 0.03);
}

.comparison-table td.first-col {
    font-weight: 700;
    color: #fff;
}

.table-responsive {
    overflow-x: auto;
}

/* Header Admin Link */
.admin-link-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.admin-link-btn:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* ============================================
   E-COMMERCE CATALOG
   ============================================ */
.section-catalog {
    padding: 100px 8%;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.catalog-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.catalog-image-box {
    height: 260px;
    position: relative;
    overflow: hidden;
    background: #0d0d15;
}

.catalog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.catalog-card:hover .catalog-img {
    transform: scale(1.05);
}

.catalog-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.catalog-image-box:hover .catalog-overlay {
    opacity: 1;
}

.catalog-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.catalog-cat {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
}

.catalog-rating {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.catalog-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
}

.catalog-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex: 1;
}

.catalog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.catalog-price {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--gold-light);
}

/* ============================================
   MODALS & DRAWER SYSTEM
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 90%;
    padding: 30px;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
}

/* ---- Cart Drawer ---- */
.cart-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    height: 100vh;
    background: var(--bg-card-solid);
    border-right: 1px solid var(--border);
    z-index: 1500;
    transform: translateX(-100%);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.cart-drawer-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.empty-cart-message {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
}

.empty-cart-message i {
    font-size: 3rem;
    margin-bottom: 14px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gold-light);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
}

.cart-item-remove:hover {
    color: #e74c3c;
}

.cart-drawer-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    margin-top: 20px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.cart-summary-row.total {
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   CHECKOUT MODAL
   ============================================ */
.checkout-modal {
    max-width: 850px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.checkout-sec-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.form-input:focus {
    border-color: var(--gold);
}

.payment-gateways {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.gateway-option {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 7500;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.gateway-option i {
    font-size: 1.4rem;
}

.gateway-option.active {
    border-color: var(--gold);
    background: rgba(197, 168, 91, 0.1);
    color: var(--gold-light);
}

/* ============================================
   MERCHANT SAAS PORTAL
   ============================================ */
.merchant-portal-overlay {
    position: fixed;
    inset: 0;
    background: #020204;
    z-index: 2500;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.merchant-portal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.merchant-portal-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.merchant-header {
    height: 70px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.merchant-logo {
    font-size: 1.4rem;
    font-weight: 9500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-merchant {
    font-size: 0.72rem;
    background: var(--gold-glow);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 800;
}

.merchant-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    flex: 1;
    overflow: hidden;
}

.merchant-sidebar {
    background: #07070c;
    border-left: 1px solid var(--border-light);
    padding: 20px 10px;
}

.merchant-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.merchant-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.merchant-link:hover,
.merchant-link.active {
    background: rgba(197, 168, 91, 0.1);
    color: var(--gold-light);
}

.merchant-main {
    padding: 40px;
    overflow-y: auto;
    background: #020204;
}

.merchant-tab-content {
    display: none;
}

.merchant-tab-content.active {
    display: block;
}

.merchant-page-header {
    margin-bottom: 30px;
}

.merchant-page-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
}

.merchant-page-header p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.merchant-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.m-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.m-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--gold-glow);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.m-num {
    font-size: 1.35rem;
    font-weight: 900;
    display: block;
    color: #fff;
}

.m-lbl {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.merchant-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.merchant-table th {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.merchant-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.m-badge-active {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

.input-with-suffix {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.input-with-suffix .form-input {
    border: none;
}

.input-suffix {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 18px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-right: 1px solid var(--border-light);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 3000;
}

.toast {
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    min-width: 300px;
    margin-top: 10px;
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.success {
    border-color: #2ecc71;
}

.toast.error {
    border-color: #e74c3c;
}

.toast-icon {
    font-size: 1.1rem;
}

.toast.success .toast-icon {
    color: #2ecc71;
}

.toast.error .toast-icon {
    color: #e74c3c;
}

.toast-msg {
    font-size: 0.85rem;
    font-weight: 700;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .viewer-layout {
        grid-template-columns: 1fr;
    }

    .builder-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .header-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .exploded-container {
        grid-template-columns: 1fr;
    }

    .exploded-3d-box {
        height: 400px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .merchant-layout {
        grid-template-columns: 1fr;
    }

    .merchant-sidebar {
        display: none;
    }

    .merchant-stats {
        grid-template-columns: 1fr;
    }
}

/* Specs Comparison Table Styling */
.specs-comparison-wrapper {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.table-responsive {
    overflow-x: auto;
    margin-top: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-family: inherit;
}

.comparison-table th,
.comparison-table td {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.comparison-table th {
    background: var(--bg-card-header);
    color: var(--text-light);
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

.comparison-table th.first-col,
.comparison-table td.first-col {
    text-align: right;
    font-weight: bold;
    color: var(--accent-light);
    background: rgba(118, 185, 0, 0.03);
    border-left: 1px solid var(--border);
}

.comparison-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td:not(.first-col) {
    color: var(--text-light);
}

/* ============================================
   3D CINEMATIC INTRO STYLES
   ============================================ */
.cinematic-intro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #030305;
    z-index: 10000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.5s;
    pointer-events: auto;
}

.cinematic-intro-container.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#cinematicCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.cinematic-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(3, 3, 5, 0.95) 100%);
    pointer-events: none;
    z-index: 2;
}

.cinematic-branding {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    text-align: center;
}

.brand-logo {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 12px;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
    opacity: 0;
    /* Animated by GSAP */
    transform: translateY(20px);
}

.brand-tagline {
    font-size: 0.85rem;
    font-weight: 550;
    color: var(--accent-light);
    letter-spacing: 16px;
    margin-bottom: 28px;
    opacity: 0;
    /* Animated by GSAP */
    transform: translateY(15px);
    margin-right: -16px;
    /* offset last letter spacing */
}

.brand-loading {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    /* Animated by GSAP */
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* App Wrapper Transition */
#app-wrapper {
    opacity: 0;
    transition: opacity 1.8s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    position: relative;
    z-index: 10;
}

#app-wrapper.fade-in {
    opacity: 1;
    pointer-events: auto;
}