/* ==========================================================================
   ENGINEX DEVS PREMIUM DESIGN SYSTEM
   ========================================================================== */

:root {
    --bg-dark: #07050d;
    --bg-card: rgba(15, 11, 28, 0.6);
    --border-glow: rgba(168, 85, 247, 0.15);
    --border-glow-hover: rgba(0, 242, 255, 0.35);
    --color-primary: #a855f7;
    --color-primary-rgb: 168, 85, 247;
    --color-secondary: #00f2ff;
    --color-secondary-rgb: 0, 242, 255;
    --color-text-main: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-success: #00ff88;
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & scrollbars */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
}

/* Custom premium scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #090710;
}
::-webkit-scrollbar-thumb {
    background: #251d3a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ==========================================================================
   SHARED PREMIUM GLASSMORPHISM CLASSES
   ========================================================================== */

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-glow-hover);
    box-shadow: 0 12px 40px 0 rgba(var(--color-primary-rgb), 0.15);
    transform: translateY(-5px);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 5, 13, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 18px 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(7, 5, 13, 0.95);
    border-bottom-color: rgba(var(--color-primary-rgb), 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.nav-logo {
    height: 40px;
    filter: drop-shadow(0 0 8px rgba(var(--color-primary-rgb), 0.6));
}

.logo-text {
    font-family: var(--font-header);
    font-weight: 800;
    font-size: 22px;
    color: #fff;
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-smooth);
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.5);
}

.nav-btn {
    background: linear-gradient(135deg, var(--color-primary), #7c3aed);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.4);
}

.nav-btn:hover {
    box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.6);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    position: relative;
    padding: 160px 0 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 30%, rgba(var(--color-primary-rgb), 0.08), transparent 45%);
}

.hero-bg-glow {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 250px;
    height: 250px;
    background: var(--color-secondary);
    opacity: 0.05;
    filter: blur(120px);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    padding: 0 24px;
}

.hero-content .tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--color-primary-rgb), 0.1);
    border: 1px solid rgba(var(--color-primary-rgb), 0.25);
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-family: var(--font-header);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #fff;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 18px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--color-primary), #7c3aed);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.4);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(var(--color-primary-rgb), 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Floating Code Window Visual */
.hero-visual {
    display: flex;
    justify-content: center;
}

.floating-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    animation: float 6s ease-in-out infinite;
}

.visual-card {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(10, 8, 20, 0.7);
}

.card-header-bar {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header-bar .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.window-title {
    margin-left: auto;
    font-size: 11px;
    font-family: monospace;
    color: var(--color-text-muted);
}

.visual-card pre {
    padding: 24px;
    margin: 0;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}

/* Code highlight syntax colors */
.keyword { color: #f43f5e; }
.variable { color: #38bdf8; }
.string { color: #10b981; }
.function { color: #a855f7; }
.comment { color: #6b7280; }
.property { color: #f59e0b; }

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

/* ==========================================================================
   QUICK STATS SECTION
   ========================================================================== */

.quick-stats {
    background: rgba(10, 8, 20, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding: 40px 0;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    padding: 0 24px;
}

.stat-box {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-box:last-child {
    border: none;
}

.stat-num {
    font-family: var(--font-header);
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ==========================================================================
   GRID LAYOUTS & SECTION HEADERS
   ========================================================================== */

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.sec-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: var(--font-header);
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    padding: 0 24px;
}

/* ==========================================================================
   SCRIPTS SECTIONS (TEBEX SHOWCASE)
   ========================================================================== */

.scripts-section {
    padding: 100px 0;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--color-primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 5;
}

.product-badge.premium {
    background: linear-gradient(135deg, var(--color-secondary), #0d9488);
}

.product-badge.new {
    background: var(--color-success);
    color: #07050d;
}

.product-image {
    height: 180px;
    background: radial-gradient(circle at center, rgba(var(--color-primary-rgb), 0.15), transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.product-image i {
    font-size: 64px;
    color: var(--color-primary);
    filter: drop-shadow(0 0 15px rgba(var(--color-primary-rgb), 0.4));
    transition: var(--transition-smooth);
}

.product-card:hover .product-image i {
    color: var(--color-secondary);
    filter: drop-shadow(0 0 20px rgba(var(--color-secondary-rgb), 0.6));
    transform: scale(1.1);
}

.product-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-content h3 {
    font-family: var(--font-header);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.product-content p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price-row .price {
    font-family: var(--font-header);
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.btn-buy {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-buy:hover {
    background: linear-gradient(135deg, var(--color-primary), #7c3aed);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.4);
    transform: translateY(-2px);
}

/* ==========================================================================
   SERVICES SECTION (PAYPAL SYSTEM)
   ========================================================================== */

.services-section {
    position: relative;
    padding: 100px 0;
    background: radial-gradient(circle at 10% 50%, rgba(var(--color-secondary-rgb), 0.05), transparent 45%);
}

.services-glow {
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    opacity: 0.03;
    filter: blur(130px);
    pointer-events: none;
}

.service-card {
    padding: 40px;
    text-align: center;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: rgba(var(--color-primary-rgb), 0.1);
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    transition: var(--transition-smooth);
}

.service-icon i {
    font-size: 32px;
    color: var(--color-primary);
}

.service-card:hover .service-icon {
    background: rgba(var(--color-secondary-rgb), 0.15);
    border-color: var(--color-secondary);
    transform: rotate(5deg) scale(1.05);
}

.service-card:hover .service-icon i {
    color: var(--color-secondary);
    filter: drop-shadow(0 0 10px rgba(var(--color-secondary-rgb), 0.6));
}

.service-card h3 {
    font-family: var(--font-header);
    font-size: 24px;
    color: #fff;
    margin-bottom: 14px;
}

.service-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.service-price {
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-success);
    margin-bottom: 30px;
}

.btn-service-action {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 0;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.service-card:hover .btn-service-action {
    background: linear-gradient(135deg, var(--color-primary), #7c3aed);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.4);
}

/* ==========================================================================
   ADVANTAGES SECTION
   ========================================================================== */

.advantages-section {
    padding: 100px 0;
    background: rgba(10, 8, 20, 0.3);
}

.advantages-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 24px;
}

.advantage-item {
    text-align: center;
}

.adv-icon {
    font-size: 40px;
    color: var(--color-primary);
    margin-bottom: 18px;
    filter: drop-shadow(0 0 8px rgba(var(--color-primary-rgb), 0.4));
}

.advantage-item h4 {
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.advantage-item p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: #040308;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    padding: 60px 0 40px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding: 0 24px;
}

.footer-brand .footer-logo {
    height: 48px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 8px rgba(var(--color-primary-rgb), 0.4));
}

.footer-brand p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.footer-links h4, .footer-social h4 {
    font-family: var(--font-header);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.footer-links a, .footer-social a {
    display: block;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.footer-links a:hover, .footer-social a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-social a i {
    width: 20px;
    margin-right: 8px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .floating-card-wrapper {
        margin: 0 auto;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-links a, .footer-social a {
        display: inline-block;
        margin: 0 12px;
    }
}

/* ==========================================================================
   BOT TELEMETRY INDICATOR & PULSE WIDGET
   ========================================================================== */

.bot-telemetry-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 136, 0.04);
    border: 1px solid rgba(0, 255, 136, 0.15);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 16px;
    font-family: monospace;
    transition: var(--transition-smooth);
}

.bot-telemetry-indicator:hover {
    border-color: rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.07);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
}

.bot-telemetry-indicator strong {
    color: #fff;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    animation: dotPulse 2s infinite;
}

.telemetry-separator {
    color: rgba(255, 255, 255, 0.15);
}

@keyframes dotPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 255, 136, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobile menu toggled via JS */
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .stat-box {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 24px;
    }
    
    .stat-box:last-child {
        border: none;
        padding-bottom: 0;
    }
}


/* ==========================================================================
   3D CARD TILT STRUCTURAL PROPERTIES
   ========================================================================== */

.tilt-element {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.15s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.tilt-element * {
    transform: translateZ(10px);
}

/* ==========================================================================
   MODAL DEMO SHOWROOM CSS
   ========================================================================== */

.demo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.demo-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 3, 8, 0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.modal-wrapper {
    position: relative;
    width: 90%;
    max-width: 720px;
    z-index: 2005;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.demo-modal.active .modal-wrapper {
    transform: scale(1) translateY(0);
}

.modal-content {
    position: relative;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.close-modal:hover {
    background: var(--color-primary);
    border-color: transparent;
    transform: rotate(90deg);
}

.modal-media-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: #000;
}

.modal-media-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-media-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(10, 8, 20, 0.95), transparent);
}

.modal-info {
    padding: 32px;
    background: #0a0814;
}

.modal-info h3 {
    font-family: var(--font-header);
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-info p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Product action controls */
.product-actions {
    display: flex;
    gap: 12px;
}

.btn-demo-trigger {
    background: rgba(var(--color-primary-rgb), 0.12);
    border: 1px solid rgba(var(--color-primary-rgb), 0.25);
    color: var(--color-primary);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-demo-trigger:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.4);
}

/* ==========================================================================
   CFX.RE ESCROW BADGE & DYNAMIC DELIVERY WORKFLOW STYLES
   ========================================================================== */

/* Escrow Badge on product cards */
.escrow-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.25);
    color: var(--color-success);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 255, 136, 0.05);
}

/* Modifying the top venta / premium badges so they don't overlap */
.product-card .product-badge {
    right: 20px;
    left: auto;
}

/* Open Source badge variant (blue/gold instead of green) */
.escrow-badge.open-source {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
    color: #60a5fa;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.05);
}

/* Flow Workflow Section styles */
.flow-section {
    padding: 80px 0;
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 90%;
}

.flow-container {
    padding: 48px;
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 24px;
}

.flow-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px auto;
}

.flow-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.flow-header h3 {
    font-family: var(--font-header);
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.flow-header p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.flow-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.flow-step {
    flex: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition-smooth);
}

.flow-step:hover {
    background: rgba(168, 85, 247, 0.03);
    border-color: rgba(168, 85, 247, 0.2);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.05);
    transform: translateY(-4px);
}

.step-num {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-primary), #7c3aed);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.4);
}

.step-icon {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.flow-step h5 {
    font-family: var(--font-header);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.flow-step p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.flow-step p a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.flow-step p a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.flow-connector {
    font-size: 24px;
    color: rgba(168, 85, 247, 0.25);
    animation: flowPulse 2s infinite ease-in-out;
}

@keyframes flowPulse {
    0% {
        transform: translateX(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateX(6px) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 0.5;
    }
}

/* Responsive Flow Chart */
@media (max-width: 992px) {
    .flow-steps {
        flex-direction: column;
        gap: 40px;
    }
    
    .flow-connector {
        transform: rotate(90deg);
        animation: flowPulseVertical 2s infinite ease-in-out;
    }
}

/* ==========================================================================
   SIDEBAR SHOPPING CART DESIGN WIDGETS
   ========================================================================== */

/* Navbar Actions and Cart Toggle Badge */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-toggle {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.cart-toggle:hover {
    border-color: rgba(168, 85, 247, 0.4);
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ec4899, var(--color-primary));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-count.bump {
    transform: scale(1.3);
}

/* Sidebar Outer Structural Overlay */
.cart-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cart-sidebar.active {
    visibility: visible;
    opacity: 1;
}

.cart-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 3, 8, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cart-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3005;
}

.cart-sidebar.active .cart-wrapper {
    transform: translateX(0);
}

.cart-panel {
    height: 100%;
    border-radius: 0;
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-left: 1px solid rgba(168, 85, 247, 0.15);
    display: flex;
    flex-direction: column;
    padding: 0;
}

.cart-header {
    padding: 32px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(7, 5, 13, 0.4);
}

.cart-header h3 {
    font-family: var(--font-header);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-header h3 i {
    color: var(--color-primary);
}

.close-cart {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.close-cart:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Cart Body List and Items */
.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(10, 8, 20, 0.95);
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-text-muted);
    gap: 16px;
    opacity: 0.6;
}

.empty-cart i {
    font-size: 48px;
    color: var(--color-primary);
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.empty-cart p {
    font-size: 14px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 12px;
    animation: slideInItem 0.3s ease forwards;
    transition: var(--transition-smooth);
}

.cart-item:hover {
    background: rgba(168, 85, 247, 0.02);
    border-color: rgba(168, 85, 247, 0.15);
}

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

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-family: var(--font-header);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.cart-item-price {
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
}

.cart-item-remove {
    background: none;
    border: none;
    color: rgba(239, 68, 68, 0.6);
    font-size: 18px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.cart-item-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: rgb(239, 68, 68);
    transform: scale(1.05);
}

/* Cart Footer Actions */
.cart-footer {
    padding: 32px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(7, 5, 13, 0.8);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-header);
}

.cart-total span {
    font-size: 16px;
    color: var(--color-text-muted);
}

.cart-total strong {
    font-size: 24px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.cart-disclaimer {
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.cart-disclaimer i {
    color: var(--color-primary);
}

.btn-checkout {
    background: linear-gradient(135deg, var(--color-primary), #7c3aed);
    border: none;
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-checkout:hover:not(:disabled) {
    box-shadow: 0 5px 25px rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
}

.btn-checkout:disabled {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

@keyframes flowPulseVertical {
    0% {
        transform: translateY(0) rotate(90deg) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(6px) rotate(90deg) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translateY(0) rotate(90deg) scale(1);
        opacity: 0.5;
    }
}
