/* ============================================================
   PIXELARY STUDIO — Main Stylesheet
   Mobile-first | CSS Variables | Dark Theme
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES (Theme Variables)
   Values overridden by admin via theme_settings table
   ============================================================ */
:root {
    /* These are defaults — overridden by PHP output_theme_css() */
    --primary-color:    #7C3AED;
    --secondary-color:  #5B21B6;
    --accent-color:     #F59E0B;
    --background-color: #0F0A1E;
    --card-color:       #1A1033;
    --card-hover-color: #221445;
    --text-color:       #F3F0FF;
    --muted-color:      #8B7FC0;
    --border-color:     #2D1F5E;
    --button-color:     #7C3AED;
    --button-hover:     #6D28D9;
    --success-color:    #10B981;
    --error-color:      #EF4444;
    --warning-color:    #F59E0B;
    --info-color:       #3B82F6;

    /* Computed */
    --font-sans:        'Inter', 'Space Grotesk', system-ui, sans-serif;
    --font-heading:     'Space Grotesk', 'Inter', system-ui, sans-serif;
    --radius-sm:        8px;
    --radius-md:        12px;
    --radius-lg:        16px;
    --radius-xl:        24px;
    --shadow-sm:        0 2px 8px rgba(0,0,0,0.3);
    --shadow-md:        0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg:        0 20px 60px rgba(0,0,0,0.5);
    --shadow-glow:      0 0 30px rgba(124,58,237,0.25);
    --transition:       0.2s ease;
    --transition-slow:  0.4s ease;
    --header-height:    72px;
    --mobile-nav-h:     64px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-sans);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    padding-bottom: var(--mobile-nav-h);
}

@media (min-width: 768px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-color);
}
h1 { font-size: clamp(1.8rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p { color: var(--muted-color); line-height: 1.75; }

.text-gradient {
    background: linear-gradient(135deg, #A78BFA 0%, var(--primary-color) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px)  { .container { padding: 0 24px; } }
@media (min-width: 1200px) { .container { padding: 0 32px; } }

.section-pad  { padding: 80px 0; }
.section-pad-sm { padding: 48px 0; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.grid         { display: grid; }
.gap-4        { gap: 16px; }
.gap-6        { gap: 24px; }
.gap-8        { gap: 32px; }

.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--muted-color); }
.text-primary { color: var(--primary-color); }
.text-accent  { color: var(--accent-color); }
.text-success { color: var(--success-color); }
.text-error   { color: var(--error-color); }

.hidden       { display: none !important; }
.sr-only      { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(124,58,237,0.12);
    border: 1px solid rgba(124,58,237,0.25);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: #A78BFA;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 12px;
}
.section-subtitle {
    color: var(--muted-color);
    font-size: 16px;
    max-width: 540px;
    margin: 0 auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1;
}

.btn-primary {
    background: var(--button-color);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.btn-primary:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124,58,237,0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(124,58,237,0.08);
}

.btn-accent {
    background: var(--accent-color);
    color: #111;
    box-shadow: 0 4px 20px rgba(245,158,11,0.3);
}
.btn-accent:hover {
    background: #D97706;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245,158,11,0.45);
}

.btn-success {
    background: var(--success-color);
    color: #fff;
}
.btn-success:hover { background: #059669; transform: translateY(-2px); }

.btn-danger {
    background: var(--error-color);
    color: #fff;
}
.btn-danger:hover { background: #DC2626; }

.btn-ghost {
    background: rgba(255,255,255,0.06);
    color: var(--text-color);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    background: rgba(255,255,255,0.06);
    color: var(--muted-color);
    font-size: 14px;
}
.btn-icon:hover { background: rgba(255,255,255,0.12); color: var(--text-color); }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group   { margin-bottom: 20px; }
.form-label   {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
    background: rgba(255,255,255,0.06);
}
.form-control::placeholder { color: var(--muted-color); opacity: 0.7; }
.form-control:hover:not(:focus) { border-color: rgba(124,58,237,0.4); }

textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%238B7FC0' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }

.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-check input[type="checkbox"], .form-check input[type="radio"] {
    width: 18px; height: 18px; accent-color: var(--primary-color); cursor: pointer;
}
.form-check-label { font-size: 14px; cursor: pointer; }

.form-error { font-size: 12px; color: var(--error-color); margin-top: 5px; }
.form-hint  { font-size: 12px; color: var(--muted-color); margin-top: 5px; }

.input-group { position: relative; }
.input-group .form-control { padding-left: 44px; }
.input-group .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-color);
    font-size: 15px;
    pointer-events: none;
}
.input-group .input-suffix {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--muted-color);
}
.input-group .input-suffix:hover { color: var(--text-color); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.card:hover {
    border-color: rgba(124,58,237,0.35);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.card-body { padding: 24px; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.badge-primary  { background: rgba(124,58,237,0.2);  color: #A78BFA; border: 1px solid rgba(124,58,237,0.3); }
.badge-success  { background: rgba(16,185,129,0.15);  color: #6EE7B7; border: 1px solid rgba(16,185,129,0.3); }
.badge-warning  { background: rgba(245,158,11,0.15);  color: #FCD34D; border: 1px solid rgba(245,158,11,0.3); }
.badge-danger   { background: rgba(239,68,68,0.15);   color: #FCA5A5; border: 1px solid rgba(239,68,68,0.3); }
.badge-info     { background: rgba(59,130,246,0.15);  color: #93C5FD; border: 1px solid rgba(59,130,246,0.3); }
.badge-muted    { background: rgba(139,127,192,0.15); color: #8B7FC0; border: 1px solid rgba(139,127,192,0.2); }

/* High-Contrast Glassmorphic Card Badges */
.badge-featured {
    background: linear-gradient(135deg, #7C3AED, #5B21B6) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-weight: 800;
    font-size: 10px;
    padding: 4px 8px;
}
.badge-featured i {
    color: #FCD34D !important;
    font-size: 9.5px;
}

.badge-bestseller {
    background: linear-gradient(135deg, #F59E0B, #D97706) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-weight: 800;
    font-size: 10px;
    padding: 4px 8px;
}
.badge-bestseller i {
    color: #FEF08A !important;
    font-size: 9.5px;
}

.badge-free {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
    font-weight: 800;
    font-size: 10px;
    padding: 4px 8px;
}

.badge-sale {
    background: linear-gradient(135deg, #EF4444, #DC2626) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 100px;
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.35);
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.flash-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.25); color: #6EE7B7; }
.flash-error   { background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.25);  color: #FCA5A5; }
.flash-warning { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.25); color: #FCD34D; }
.flash-info    { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.25); color: #93C5FD; }

.flash-icon { font-size: 18px; flex-shrink: 0; }
.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    flex-shrink: 0;
}
.flash-close:hover { opacity: 1; }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    color: #fff;
    text-align: center;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 500;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.announcement-bar a { color: var(--accent-color); text-decoration: underline; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15,10,30,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45,31,94,0.6);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.header-logo img { height: 40px; width: auto; }
.header-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    background: linear-gradient(135deg, #A78BFA, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.header-nav {
    display: none;
    align-items: center;
    gap: 4px;
    flex: 1;
}
@media (min-width: 1024px) { .header-nav { display: flex; } }

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--muted-color);
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-color);
    background: rgba(255,255,255,0.06);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.search-btn, .cart-btn, .account-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.04);
    color: var(--muted-color);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 15px;
    text-decoration: none;
    position: relative;
}
.search-btn:hover, .cart-btn:hover, .account-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(124,58,237,0.1);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--background-color);
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.04);
    color: var(--text-color);
    cursor: pointer;
    font-size: 18px;
    flex-shrink: 0;
}
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

/* Search Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,10,30,0.9);
    backdrop-filter: blur(16px);
    z-index: 500;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 100px 20px 20px;
    animation: fadeIn 0.2s ease;
}
.search-overlay.active { display: flex; }
.search-overlay-inner { width: 100%; max-width: 640px; }
.search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--muted-color);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}
.search-close:hover { color: var(--text-color); }
.search-input-wrap { position: relative; }
.search-input-wrap input {
    width: 100%;
    padding: 18px 24px 18px 56px;
    background: var(--card-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    color: var(--text-color);
    font-size: 18px;
    outline: none;
    font-family: inherit;
}
.search-input-wrap input:focus { border-color: var(--primary-color); }
.search-input-wrap .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-color);
    font-size: 18px;
}
.search-results {
    margin-top: 16px;
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: background var(--transition);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(124,58,237,0.08); }
.search-result-img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--border-color);
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-name { font-size: 14px; font-weight: 600; color: var(--text-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-price { font-size: 13px; color: var(--primary-color); margin-top: 2px; }
.search-hint { text-align: center; padding: 24px; color: var(--muted-color); font-size: 14px; }

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    bottom: 0;
    width: 300px;
    background: var(--card-color);
    border-right: 1px solid var(--border-color);
    z-index: 400;
    transition: left 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    padding: 24px 0;
}
.mobile-drawer.open { left: 0; }
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 399;
    display: none;
    backdrop-filter: blur(4px);
}
.mobile-drawer-overlay.active { display: block; }

.drawer-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.drawer-close {
    background: none;
    border: none;
    color: var(--muted-color);
    font-size: 20px;
    cursor: pointer;
}
.drawer-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--muted-color);
    text-decoration: none;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}
.drawer-nav-link:hover, .drawer-nav-link.active {
    color: var(--text-color);
    background: rgba(124,58,237,0.08);
    border-left-color: var(--primary-color);
}

/* ============================================================
   MOBILE BOTTOM NAVIGATION
   ============================================================ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-nav-h);
    background: rgba(26,16,51,0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    z-index: 200;
    padding: 0 4px;
}
@media (min-width: 768px) { .mobile-bottom-nav { display: none; } }

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    text-decoration: none;
    color: var(--muted-color);
    font-size: 10px;
    font-weight: 500;
    transition: all var(--transition);
    border-radius: var(--radius-sm);
    position: relative;
}
.mobile-nav-item i { font-size: 20px; transition: all var(--transition); }
.mobile-nav-item:hover, .mobile-nav-item.active { color: var(--primary-color); }
.mobile-nav-item.active i { transform: translateY(-2px); }
.mobile-nav-item.whatsapp:hover, .mobile-nav-item.whatsapp.active { color: #25D366; }

/* ============================================================
/* ============================================================
   PROMOTIONAL BANNER SLIDER (Marketplace Top Banner)
   ============================================================ */
.banner-slider-section {
    padding: 24px 0 16px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .banner-slider-section {
        padding: 32px 0 20px;
    }
}
.banner-slider-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #0C081E;
    border: 1px solid rgba(139, 92, 246, 0.28);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 35px rgba(124, 58, 237, 0.15);
    user-select: none;
}

.banner-slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.banner-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    position: relative;
    padding: 40px 32px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Full Width Image Banner Slide */
.banner-slide.slide-full-image {
    padding: 0;
    display: block;
    background: #0B071B;
    line-height: 0;
}

.slide-full-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    line-height: 0;
    overflow: hidden;
    border-radius: 19px;
}

.slide-full-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 19px;
    transition: transform 0.4s ease;
}

.slide-full-image-link:hover .slide-full-img {
    transform: scale(1.015);
}

@media (min-width: 900px) {
    .slide-full-img {
        min-height: 280px;
        max-height: 400px;
    }
}

@media (max-width: 767px) {
    .banner-slider-wrapper {
        border-radius: 14px;
    }
    .banner-slide {
        padding: 26px 18px 22px;
    }
    .banner-slide.slide-full-image {
        padding: 0;
    }
    .slide-full-image-link,
    .slide-full-img {
        border-radius: 13px;
    }
    .slide-full-img {
        min-height: 130px;
        max-height: 220px;
    }
}

/* Background Mesh Per Slide */
.slide-bg-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.slide-1 .slide-bg-mesh {
    background: radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.28) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.22) 0%, transparent 60%),
                radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 70%),
                linear-gradient(135deg, #0F172A 0%, #151030 100%);
}

.slide-2 .slide-bg-mesh {
    background: radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.32) 0%, transparent 50%),
                radial-gradient(circle at 85% 75%, rgba(139, 92, 246, 0.22) 0%, transparent 60%),
                linear-gradient(135deg, #0B1329 0%, #131B38 100%);
}

.slide-3 .slide-bg-mesh {
    background: radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.25) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.22) 0%, transparent 60%),
                linear-gradient(135deg, #0A1926 0%, #0E1726 100%);
}

.slide-4 .slide-bg-mesh {
    background: radial-gradient(circle at 15% 25%, rgba(245, 158, 11, 0.24) 0%, transparent 50%),
                radial-gradient(circle at 85% 75%, rgba(236, 72, 153, 0.2) 0%, transparent 60%),
                linear-gradient(135deg, #1A1325 0%, #150F22 100%);
}

.slide-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    width: 100%;
}

@media (min-width: 900px) {
    .slide-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 40px;
    }
}

/* Slide Content */
.slide-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 5px 13px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(124, 58, 237, 0.18);
    border: 1px solid rgba(124, 58, 237, 0.4);
    color: #C4B5FD;
}

.badge-blue    { background: rgba(59, 130, 246, 0.18); border-color: rgba(59, 130, 246, 0.4); color: #93C5FD; }
.badge-emerald { background: rgba(16, 185, 129, 0.18); border-color: rgba(16, 185, 129, 0.4); color: #6EE7B7; }
.badge-amber   { background: rgba(245, 158, 11, 0.18); border-color: rgba(245, 158, 11, 0.4); color: #FCD34D; }

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #A78BFA;
    box-shadow: 0 0 6px #A78BFA;
}

.dot-blue    { background: #38BDF8; box-shadow: 0 0 6px #38BDF8; }
.dot-emerald { background: #34D399; box-shadow: 0 0 6px #34D399; }
.dot-amber   { background: #F59E0B; box-shadow: 0 0 6px #F59E0B; }

.slide-title {
    font-size: clamp(24px, 3.2vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    margin: 0;
}

.slide-subtitle {
    font-size: clamp(13px, 1.4vw, 15.5px);
    color: #CBD5E1;
    line-height: 1.5;
    margin: 0;
}

.slide-actions {
    margin-top: 6px;
}

.btn-banner-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    background: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-banner-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.5);
    color: #FFFFFF;
}

.btn-blue-glow:hover    { box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5); }
.btn-emerald-glow:hover { box-shadow: 0 12px 30px rgba(16, 185, 129, 0.5); }
.btn-amber-glow:hover   { box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5); }

/* Slide Visual (Mockup Card) */
.slide-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-mockup-card {
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    background: rgba(15, 10, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(14px);
}

.card-glow-purple { border-color: rgba(139, 92, 246, 0.35); box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 25px rgba(124, 58, 237, 0.2); }
.card-glow-blue   { border-color: rgba(59, 130, 246, 0.35); box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 25px rgba(59, 130, 246, 0.2); }
.card-glow-emerald{ border-color: rgba(16, 185, 129, 0.35); box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 25px rgba(16, 185, 129, 0.2); }
.card-glow-amber  { border-color: rgba(245, 158, 11, 0.35); box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 25px rgba(245, 158, 11, 0.2); }

.mockup-topbar {
    background: rgba(15, 10, 30, 0.9);
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.m-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-r { background: #FF5F56; }
.dot-y { background: #FFBD2E; }
.dot-g { background: #27C93F; }

.mockup-title {
    font-size: 11px;
    color: #94A3B8;
    margin-left: 6px;
    font-family: monospace;
}

.mockup-inner {
    padding: 14px 16px;
}

.mockup-code-line {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: #E2E8F0;
    background: rgba(10, 6, 24, 0.6);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.k-word { color: #EC4899; }
.k-func { color: #F59E0B; }
.k-str  { color: #34D399; }
.k-class{ color: #38BDF8; }
.k-var  { color: #A78BFA; }

.mockup-pills-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.m-pill {
    font-size: 10.5px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 6px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.25);
    color: #C4B5FD;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mockup-stat-bar {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    font-weight: 600;
    color: #94A3B8;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-preview-box {
    padding: 2px 0;
}

.theme-preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #93C5FD;
    margin-bottom: 10px;
}

.theme-preview-features {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.feat-tag {
    font-size: 10.5px;
    color: #CBD5E1;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 5px 9px;
    border-radius: 6px;
}

.code-box-mini {
    background: rgba(10, 6, 24, 0.6);
    padding: 9px 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.code-box-line.indent { padding-left: 16px; }

.custom-work-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.custom-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 9px;
    border-radius: 6px;
}

.custom-step.active {
    color: #FCD34D;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    font-weight: 700;
}

.step-num {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9.5px;
}

.custom-step.active .step-num {
    background: #F59E0B;
    color: #111;
}

/* Glassmorphic Floating Slider Arrows */
.slider-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(12, 8, 28, 0.75);
    border: 1px solid rgba(167, 139, 250, 0.35);
    backdrop-filter: blur(12px);
    color: #FFFFFF;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

@media (min-width: 900px) {
    .slider-arrow {
        display: flex;
    }
}

.arrow-prev { left: 16px; }
.arrow-next { right: 16px; }

.slider-arrow:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
    border-color: rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.6);
}

/* ============================================================
   CATEGORY HORIZONTAL SLIDER (Separate Horizontal Slider)
   ============================================================ */
.category-slider-section {
    padding: 12px 0 24px;
}

.category-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.category-scroll-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 4px 12px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.category-scroll-track::-webkit-scrollbar {
    display: none;
}

.cat-card {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    background: linear-gradient(135deg, rgba(24, 15, 48, 0.82) 0%, rgba(16, 10, 36, 0.88) 100%);
    border: 1px solid rgba(139, 92, 246, 0.24);
    border-radius: 16px;
    text-decoration: none;
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.cat-card:hover {
    background: linear-gradient(135deg, rgba(38, 22, 78, 0.95) 0%, rgba(26, 14, 55, 0.95) 100%);
    border-color: rgba(167, 139, 250, 0.55);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(124, 58, 237, 0.3);
}

.cat-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.icon-php    { background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(124, 58, 237, 0.15)); border: 1px solid rgba(139, 92, 246, 0.35); color: #C4B5FD; }
.icon-wp     { background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.15)); border: 1px solid rgba(59, 130, 246, 0.35); color: #60A5FA; }
.icon-plugin { background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.15)); border: 1px solid rgba(16, 185, 129, 0.35); color: #34D399; }
.icon-html   { background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15)); border: 1px solid rgba(245, 158, 11, 0.35); color: #FBBF24; }
.icon-ui     { background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(219, 39, 119, 0.15)); border: 1px solid rgba(236, 72, 153, 0.35); color: #F472B6; }
.icon-design { background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(147, 51, 234, 0.15)); border: 1px solid rgba(168, 85, 247, 0.35); color: #D8B4FE; }
.icon-all    { background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(124, 58, 237, 0.2)); border: 1px solid rgba(139, 92, 246, 0.4); color: #93C5FD; }

.cat-card-text {
    display: flex;
    flex-direction: column;
}

.cat-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.cat-card-sub {
    font-size: 11px;
    color: #94A3B8;
    white-space: nowrap;
    line-height: 1.2;
    margin-top: 3px;
}

.cat-nav-btn {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(22, 14, 46, 0.88);
    border: 1px solid rgba(139, 92, 246, 0.32);
    color: #C4B5FD;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

@media (min-width: 1024px) {
    .cat-nav-btn {
        display: flex;
    }
}

.cat-prev-btn { margin-right: 10px; }
.cat-next-btn { margin-left: 10px; }

.cat-nav-btn:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 0 18px rgba(124, 58, 237, 0.5);
}

/* ============================================================
   MARKETPLACE PRODUCT SECTION HEADERS
   ============================================================ */
.marketplace-product-section {
    padding: 32px 0;
}

.marketplace-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title-wrap {
    display: flex;
    flex-direction: column;
}

.section-eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: #A78BFA;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.marketplace-section-header .section-title {
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: #3B82F6;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 6px;
}

.view-more-btn:hover {
    color: #60A5FA;
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(3px);
}

/* ============================================================
   PRODUCT CARDS (Redesigned Modern Marketplace Style)
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.product-card {
    background: linear-gradient(145deg, rgba(24, 16, 52, 0.95) 0%, rgba(15, 10, 34, 0.98) 100%);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    height: 100%;
}

.product-card:hover {
    border-color: rgba(167, 139, 250, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 25px rgba(124, 58, 237, 0.25);
}

.product-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #0d081e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.product-card-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.03);
}

.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.25) 0%, rgba(20, 14, 38, 0.95) 100%), #140E26;
    color: rgba(167, 139, 250, 0.6);
    font-size: 28px;
    transition: all 0.3s ease;
}

.product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    z-index: 2;
    pointer-events: none;
}

.product-badges .badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 6px;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
}

.badge-featured {
    background: rgba(245, 158, 11, 0.9);
    color: #111;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-bestseller {
    background: rgba(236, 72, 153, 0.9);
    color: #FFFFFF;
}

.badge-sale {
    background: linear-gradient(135deg, #EF4444, #F97316);
    color: #FFFFFF;
    font-weight: 800;
}

.badge-free {
    background: rgba(16, 185, 129, 0.9);
    color: #FFFFFF;
}

.product-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transform: translateX(6px);
    transition: all 0.25s ease;
    z-index: 3;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-actions .btn-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(15, 10, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #E2E8F0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.product-actions .btn-icon:hover {
    background: #7C3AED;
    color: #FFFFFF;
    border-color: #A78BFA;
    transform: scale(1.08);
}

.product-card-body {
    padding: 16px 14px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-category {
    font-size: 11px;
    font-weight: 600;
    color: #A78BFA;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-category a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-category a:hover {
    color: #C4B5FD;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
    text-align: center;
}

.product-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title a:hover {
    color: #A78BFA;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 16px;
}

.price-current {
    font-size: 19px;
    font-weight: 800;
    color: #5B6CF7;
    letter-spacing: -0.01em;
}

.price-original {
    font-size: 15px;
    color: #94A3B8;
    text-decoration: line-through;
    font-weight: 500;
}

.price-free {
    color: #34D399;
    font-weight: 800;
    font-size: 19px;
}

/* Action Buttons (Matching Reference Design) */
.product-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    width: 100%;
}

.product-card-actions .btn-cart {
    width: 44px;
    height: 42px;
    border-radius: 8px;
    padding: 0;
    background: #18148a;
    background: linear-gradient(135deg, #1c1585 0%, #1e1999 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(24, 20, 138, 0.4);
    transition: all 0.22s ease;
}

.product-card-actions .btn-cart:hover {
    background: linear-gradient(135deg, #271fbe 0%, #342be0 100%);
    border-color: rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 31, 190, 0.6);
}

.product-card-actions .btn-buy {
    flex: 1;
    height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    background: #18148a;
    background: linear-gradient(135deg, #1c1585 0%, #1e1999 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(24, 20, 138, 0.4);
    transition: all 0.22s ease;
    white-space: nowrap;
}

.product-card-actions .btn-buy:hover {
    background: linear-gradient(135deg, #271fbe 0%, #342be0 100%);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 20px rgba(39, 31, 190, 0.6);
    transform: translateY(-2px);
    color: #FFFFFF;
}

/* Mobile Product Card & Section Optimization */
@media (max-width: 767px) {
    .marketplace-product-section {
        padding: 20px 0;
    }
    .marketplace-section-header {
        margin-bottom: 14px;
        padding-bottom: 8px;
        align-items: center;
    }
    .marketplace-section-header .section-title {
        font-size: 1.15rem !important;
    }
    .section-eyebrow {
        font-size: 9.5px;
        margin-bottom: 2px;
        letter-spacing: 0.5px;
    }
    .view-more-btn {
        font-size: 11.5px;
        padding: 3px 6px;
        gap: 4px;
    }
    .product-card {
        border-radius: 12px;
        min-width: 0;
    }
    .product-card-img {
        aspect-ratio: 1 / 1;
        width: 100%;
        border-radius: 12px 12px 0 0;
    }
    .product-actions {
        display: none !important;
    }
    .product-badges {
        top: 6px;
        left: 6px;
        gap: 3px;
        max-width: calc(100% - 12px);
    }
    .product-badges .badge {
        font-size: 8.5px;
        font-weight: 700;
        padding: 2px 5px;
        border-radius: 4px;
        line-height: 1.15;
    }
    .product-card-body {
        padding: 10px 8px 12px;
        min-width: 0;
    }
    .product-title {
        font-size: 12px;
        min-height: 32px;
        margin-bottom: 4px;
        line-height: 1.35;
        word-break: break-word;
    }
    .product-price {
        margin: 2px 0 8px;
        gap: 5px;
        flex-wrap: wrap;
    }
    .price-current {
        font-size: 14.5px;
        font-weight: 800;
    }
    .price-original {
        font-size: 11.5px;
    }
    .price-free {
        font-size: 14.5px;
    }
    .product-card-actions {
        gap: 5px;
        width: 100%;
        min-width: 0;
    }
    .product-card-actions .btn-cart {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 12px;
        border-radius: 6px;
    }
    .product-card-actions .btn-buy {
        height: 34px;
        font-size: 12px;
        border-radius: 6px;
        padding: 0 6px;
        gap: 5px;
        min-width: 0;
    }
    .product-card-actions .btn-buy i {
        font-size: 11px;
    }
    .product-card-actions .btn-buy .btn-text {
        font-size: 12px;
        font-weight: 700;
    }
}

@media (max-width: 380px) {
    .products-grid {
        gap: 8px;
    }
    .product-card-body {
        padding: 8px 6px 10px;
    }
    .product-title {
        font-size: 11.5px;
        min-height: 30px;
    }
    .product-card-actions .btn-cart {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 11px;
        border-radius: 6px;
    }
    .product-card-actions .btn-buy {
        height: 30px;
        font-size: 10.5px;
        padding: 0 4px;
        border-radius: 6px;
    }
    .product-card-actions .btn-buy .btn-text {
        font-size: 10.5px;
    }
}

/* Load More Button Wrap */
.section-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(26, 16, 52, 0.9) 0%, rgba(18, 11, 38, 0.95) 100%);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #E2E8F0;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.btn-load-more:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
    border-color: rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    box-shadow: 0 6px 22px rgba(124, 58, 237, 0.45);
    transform: translateY(-2px);
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}
@media (min-width: 768px) { .categories-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }

.category-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.category-card:hover {
    border-color: var(--primary-color);
    background: rgba(124,58,237,0.08);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.category-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(124,58,237,0.12);
    border: 1px solid rgba(124,58,237,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary-color);
    transition: all var(--transition);
}
.category-card:hover .category-icon {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}
.category-name { font-size: 14px; font-weight: 600; color: var(--text-color); }
.category-count { font-size: 12px; color: var(--muted-color); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--card-color);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 0;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--muted-color); line-height: 1.7; margin-bottom: 20px; }

.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    color: var(--muted-color);
    font-size: 15px;
    transition: all var(--transition);
    text-decoration: none;
}
.social-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(124,58,237,0.1);
    transform: translateY(-2px);
}

.footer-col-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
    font-size: 14px;
    color: var(--muted-color);
    text-decoration: none;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-link:hover { color: var(--primary-color); }
.footer-link i { font-size: 12px; width: 16px; }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--muted-color);
    margin-bottom: 10px;
}
.footer-contact-item i { color: var(--primary-color); margin-top: 2px; flex-shrink: 0; }

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--muted-color); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: var(--muted-color); text-decoration: none; transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--primary-color); }

/* ============================================================
   USER DASHBOARD
   ============================================================ */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
}
@media (min-width: 1024px) { .dashboard-layout { grid-template-columns: 260px 1fr; } }

.dashboard-sidebar {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 0;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.dash-user-info {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.dash-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}
.dash-user-name { font-weight: 700; font-size: 14px; }
.dash-user-email { font-size: 12px; color: var(--muted-color); }

.dash-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted-color);
    text-decoration: none;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}
.dash-nav-link i { width: 18px; text-align: center; font-size: 15px; }
.dash-nav-link:hover, .dash-nav-link.active {
    color: var(--text-color);
    background: rgba(124,58,237,0.08);
    border-left-color: var(--primary-color);
}
.dash-nav-link.logout { color: var(--error-color); }
.dash-nav-link.logout:hover { background: rgba(239,68,68,0.08); border-left-color: var(--error-color); }

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.stat-icon.purple  { background: rgba(124,58,237,0.15); color: #A78BFA; }
.stat-icon.green   { background: rgba(16,185,129,0.15); color: #6EE7B7; }
.stat-icon.amber   { background: rgba(245,158,11,0.15); color: #FCD34D; }
.stat-icon.blue    { background: rgba(59,130,246,0.15); color: #93C5FD; }
.stat-icon.red     { background: rgba(239,68,68,0.15);  color: #FCA5A5; }

.stat-value { font-size: 24px; font-weight: 800; color: var(--text-color); font-family: var(--font-heading); }
.stat-label { font-size: 13px; color: var(--muted-color); }

/* Dashboard Sections */
.dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.dash-mobile-orders {
    display: none;
}
.dash-downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.dash-download-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dd-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dd-card-thumb {
    width: 48px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.dd-card-meta {
    min-width: 0;
    flex: 1;
}
.dd-card-title {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dd-card-usage {
    font-size: 12px;
    color: var(--muted-color);
}

/* ── Modern Download Hub Item Cards (downloads.php) ── */
.download-item-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--transition);
}
.download-item-card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.dl-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.dl-thumb-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.dl-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dl-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(236, 72, 153, 0.15));
    color: var(--primary-color);
    font-size: 20px;
}
.dl-card-info {
    flex: 1;
    min-width: 0;
}
.dl-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.dl-card-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-color);
    text-decoration: none;
    line-height: 1.35;
    transition: var(--transition);
}
.dl-card-title:hover {
    color: var(--primary-color);
}
.dl-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted-color);
    flex-wrap: wrap;
}
.dl-order-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 11px;
}
.dl-card-strip {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--text-color);
    flex-wrap: wrap;
}
.dl-strip-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.dl-card-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}
.dl-btn-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-decoration: none;
}
.dl-btn-review {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    white-space: nowrap;
    text-decoration: none;
}

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-color); }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
.table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(45,31,94,0.5);
    color: var(--text-color);
    vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: rgba(124,58,237,0.04); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--card-color);
    color: var(--muted-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}
.pagination-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.pagination-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.pagination-dots { color: var(--muted-color); padding: 0 4px; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
}
.feature-card:hover {
    border-color: rgba(124,58,237,0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: rgba(124,58,237,0.12);
    border: 1px solid rgba(124,58,237,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary-color);
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}
.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(124,58,237,0.4);
}
.feature-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.feature-desc  { font-size: 14px; color: var(--muted-color); line-height: 1.7; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.testimonial-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}
.testimonial-card:hover {
    border-color: rgba(124,58,237,0.3);
    box-shadow: var(--shadow-md);
}
.testimonial-stars { margin-bottom: 14px; }
.testimonial-text { font-size: 15px; color: var(--muted-color); line-height: 1.75; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--border-color);
    flex-shrink: 0;
}
.testimonial-name     { font-weight: 700; font-size: 14px; }
.testimonial-position { font-size: 12px; color: var(--muted-color); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition);
}
.faq-item.open { border-color: rgba(124,58,237,0.4); }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: inherit;
}
.faq-question:hover { color: var(--primary-color); }
.faq-chevron { font-size: 14px; color: var(--muted-color); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary-color); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 15px; color: var(--muted-color); line-height: 1.75; }

/* ============================================================
   CART
   ============================================================ */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
}
@media (min-width: 1024px) { .cart-layout { grid-template-columns: 1fr 380px; } }

.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.cart-item-img {
    width: 72px;
    height: 72px;
    aspect-ratio: 1/1;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--border-color);
    flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.cart-item-cat  { font-size: 12px; color: var(--muted-color); }
.cart-item-price { font-size: 18px; font-weight: 800; color: var(--text-color); font-family: var(--font-heading); }
.cart-item-remove { background: none; border: none; color: var(--muted-color); cursor: pointer; font-size: 16px; padding: 6px; transition: color var(--transition); }
.cart-item-remove:hover { color: var(--error-color); }

.order-summary {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}
.summary-title { font-size: 18px; font-weight: 700; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.summary-row.total { font-size: 18px; font-weight: 800; border-top: 1px solid var(--border-color); margin-top: 12px; padding-top: 12px; }
.summary-row .label { color: var(--muted-color); }
.coupon-input { display: flex; gap: 8px; margin-bottom: 20px; }
.coupon-input .form-control { flex: 1; }
.coupon-input .btn { flex-shrink: 0; white-space: nowrap; }

/* ============================================================
   USER DASHBOARD (Desktop & Base)
   ============================================================ */
.dashboard-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 32px;
    padding: 36px 0 60px;
    align-items: start;
}

.dashboard-sidebar {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.dash-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.dash-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(124,58,237,0.35);
}

.dash-user-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 2px;
}

.dash-user-email {
    font-size: 12px;
    color: var(--muted-color);
}

.dashboard-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted-color);
    text-decoration: none;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}

.dash-nav-link i {
    width: 18px;
    text-align: center;
    font-size: 15px;
}

.dash-nav-link:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.04);
}

.dash-nav-link.active {
    color: #fff;
    background: rgba(124, 58, 237, 0.15);
    border-left-color: var(--primary-color);
}

.dash-nav-link.logout {
    color: #F87171;
    margin-top: 8px;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding-top: 14px;
}

.dash-nav-link.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: rgba(124, 58, 237, 0.35);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-icon.purple { background: rgba(124,58,237,0.12); color: #A78BFA; border: 1px solid rgba(124,58,237,0.25); }
.stat-icon.green  { background: rgba(16,185,129,0.12);  color: #6EE7B7; border: 1px solid rgba(16,185,129,0.25); }
.stat-icon.amber  { background: rgba(245,158,11,0.12);  color: #FCD34D; border: 1px solid rgba(245,158,11,0.25); }
.stat-icon.blue   { background: rgba(59,130,246,0.12);  color: #93C5FD; border: 1px solid rgba(59,130,246,0.25); }

.stat-value {
    font-size: 26px;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-color);
    line-height: 1.1;
}

.stat-label {
    font-size: 13px;
    color: var(--muted-color);
    margin-top: 4px;
    font-weight: 500;
}

.download-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    transition: all var(--transition);
}

.download-item-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(-20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
    padding: 24px 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--muted-color); font-size: 18px; cursor: pointer; }
.modal-close:hover { color: var(--text-color); }
.modal-body { padding: 20px 28px; }
.modal-footer { padding: 0 28px 24px; display: flex; gap: 12px; justify-content: flex-end; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, rgba(124,58,237,0.1) 0%, rgba(91,33,182,0.05) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 48px 0;
    text-align: center;
}
.page-hero-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.page-hero-sub   { color: var(--muted-color); font-size: 16px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-color); justify-content: center; margin-top: 16px; }
.breadcrumb a { color: var(--muted-color); text-decoration: none; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary-color); }
.breadcrumb-sep { color: rgba(139,127,192,0.4); }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-icon {
    font-size: 56px;
    color: var(--border-color);
    margin-bottom: 20px;
}
.empty-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.empty-desc  { color: var(--muted-color); font-size: 15px; margin-bottom: 24px; }

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.page-loader {
    position: fixed;
    inset: 0;
    background: var(--background-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

/* ============================================================
   CUSTOM ORDER SECTION
   ============================================================ */
.custom-order-cta {
    background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(91,33,182,0.1) 50%, rgba(245,158,11,0.05) 100%);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: var(--radius-xl);
    padding: 60px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.custom-order-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124,58,237,0.06) 0%, transparent 60%);
    pointer-events: none;
}

/* ============================================================
   PROMOTIONAL BANNER
   ============================================================ */
.promo-banner {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
}
.promo-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-banner-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,10,30,0.9) 0%, rgba(15,10,30,0.4) 100%); }
.promo-banner-content { position: relative; z-index: 1; padding: 40px 48px; }

/* ============================================================
   PRODUCT DETAIL (Modern Marketplace Redesign)
   ============================================================ */
.product-detail-hero {
    padding: 24px 0 36px;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
}

@media (min-width: 992px) {
    .product-detail-layout {
        grid-template-columns: 1.05fr 1fr;
        gap: 40px;
    }
}

/* Gallery Showcase */
.product-detail-gallery {
    position: relative;
    width: 100%;
}

.gallery-showcase-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #0d081e;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.gallery-showcase-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease, transform 0.3s ease;
    cursor: pointer;
}

.gallery-showcase-box:hover img {
    transform: scale(1.02);
}

.gallery-zoom-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 10, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    z-index: 4;
}

.gallery-zoom-btn:hover {
    background: #18148a;
    border-color: #5B6CF7;
    transform: scale(1.08);
}

.gallery-thumbs-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.gallery-thumb-item {
    width: 68px;
    height: 68px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #0d081e;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb-item:hover,
.gallery-thumb-item.active {
    border-color: #5B6CF7;
    box-shadow: 0 0 12px rgba(91, 108, 247, 0.5);
    transform: translateY(-2px);
}

/* Product Info Right Column */
.product-detail-info {
    display: flex;
    flex-direction: column;
}

.product-detail-title {
    font-size: clamp(1.4rem, 2.5vw, 1.95rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.3;
    margin: 0 0 14px;
}

/* Price Row */
.product-detail-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.detail-price-original {
    font-size: 18px;
    color: #94A3B8;
    text-decoration: line-through;
    font-weight: 500;
}

.detail-price-current {
    font-size: 28px;
    font-weight: 800;
    color: #5B6CF7;
    letter-spacing: -0.01em;
}

.detail-price-free {
    font-size: 28px;
    font-weight: 800;
    color: #34D399;
}

.detail-discount-badge {
    background: #EF4444;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

/* Category Row */
.product-detail-category {
    font-size: 14px;
    color: #94A3B8;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-detail-category a {
    color: #E2E8F0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-detail-category a:hover {
    color: #A78BFA;
}

/* Highlights Box */
.product-highlights-box {
    margin: 12px 0 22px;
    font-size: 14.5px;
    line-height: 1.75;
    color: #E2E8F0;
}

.product-highlights-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-highlights-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #CBD5E1;
}

.product-highlights-list li i {
    color: #5B6CF7;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Action Buttons Row 1: Preview & Tutorial Video */
.product-action-row-outline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.btn-outline-preview,
.btn-outline-tutorial {
    height: 44px;
    border-radius: 8px;
    border: 1.5px solid #2563EB;
    background: rgba(37, 99, 235, 0.06);
    color: #60A5FA;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.22s ease;
    cursor: pointer;
}

.btn-outline-preview:hover,
.btn-outline-tutorial:hover {
    background: rgba(37, 99, 235, 0.18);
    border-color: #60A5FA;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

/* Action Buttons Row 2: Quantity + Add to Cart + Buy Now */
.product-purchase-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    height: 44px;
    overflow: hidden;
    flex-shrink: 0;
}

.qty-btn {
    width: 34px;
    height: 100%;
    border: none;
    background: transparent;
    color: #E2E8F0;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.qty-input {
    width: 38px;
    height: 100%;
    border: none;
    background: transparent;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-detail-cart {
    flex: 1;
    height: 44px;
    border-radius: 8px;
    background: #191499;
    background: linear-gradient(135deg, #1d1891 0%, #1e1b9b 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(24, 20, 138, 0.4);
    transition: all 0.22s ease;
    white-space: nowrap;
}

.btn-detail-cart:hover {
    background: linear-gradient(135deg, #271fbe 0%, #342be0 100%);
    box-shadow: 0 6px 20px rgba(39, 31, 190, 0.6);
    transform: translateY(-2px);
    color: #FFFFFF;
}

.btn-detail-buy {
    flex: 1.15;
    height: 44px;
    border-radius: 8px;
    background: #191499;
    background: linear-gradient(135deg, #1d1891 0%, #1e1b9b 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(24, 20, 138, 0.4);
    transition: all 0.22s ease;
    white-space: nowrap;
}

.btn-detail-buy:hover {
    background: linear-gradient(135deg, #271fbe 0%, #342be0 100%);
    box-shadow: 0 6px 20px rgba(39, 31, 190, 0.6);
    transform: translateY(-2px);
    color: #FFFFFF;
}

/* ============================================================
   TABS SECTION
   ============================================================ */
.product-tabs-wrapper {
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
}

.product-tabs-nav {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 28px;
    overflow-x: auto;
    scrollbar-width: none;
}

.product-tab-btn {
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: #94A3B8;
    padding: 0 0 12px 0;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.product-tab-btn:hover {
    color: #FFFFFF;
}

.product-tab-btn.active {
    color: #5B6CF7;
}

.product-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: #5B6CF7;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(91, 108, 247, 0.6);
}

.product-tab-pane {
    display: none;
    animation: tabFadeIn 0.3s ease;
}

.product-tab-pane.active {
    display: block;
}

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

/* Video & Documentation Box */
.video-docs-card {
    background: linear-gradient(135deg, rgba(24, 16, 52, 0.85) 0%, rgba(15, 10, 34, 0.9) 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 14px;
    padding: 24px;
    margin-top: 24px;
}

.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
    margin-top: 14px;
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Related Products Section */
.related-products-section {
    margin-top: 64px;
    margin-bottom: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 40px;
}

.related-products-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.related-products-header h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 800;
    color: #FFFFFF;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
    margin: 0;
}

.related-products-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #5B6CF7;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(91, 108, 247, 0.6);
}

/* Lightbox Modal */
.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.custom-modal-overlay.active {
    display: flex;
}

.modal-content-box {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: #140E26;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #EF4444;
    border-color: #EF4444;
    transform: scale(1.08);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: calc(var(--mobile-nav-h) + 16px);
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 20px rgba(124,58,237,0.5);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 190;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--button-hover); transform: translateY(-2px); }

@media (min-width: 768px) {
    .back-to-top { bottom: 24px; }
}

/* ============================================================
   MAINTENANCE MODE
   ============================================================ */
.maintenance-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}
.error-code {
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(91,33,182,0.1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

/* ============================================================
   UTILITIES & RESPONSIVE GRIDS
   ============================================================ */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.p-4  { padding: 16px; }
.p-6  { padding: 24px; }

.divider { border: none; border-top: 1px solid var(--border-color); margin: 24px 0; }

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(124,58,237,0.1);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: 100px;
    font-size: 12px;
    color: #A78BFA;
    font-weight: 500;
}

.auth-card-body {
    padding: 32px;
}
@media (max-width: 480px) {
    .auth-card-body {
        padding: 20px 16px !important;
    }
}

/* Responsive Form & Layout Grids */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 768px) {
    .form-grid-2 { grid-template-columns: 1fr 1fr; }
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) {
    .form-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .grid-2-col { grid-template-columns: 1fr 1fr; }
}

.grid-3-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 640px) {
    .grid-3-col { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-3-col { grid-template-columns: repeat(3, 1fr); }
}

.grid-4-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 480px) {
    .grid-4-col { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-4-col { grid-template-columns: repeat(4, 1fr); }
}

/* Horizontal Scrollable Pills (Mobile Filters & Tabs) */
.horizontal-scroll-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}
.horizontal-scroll-pills::-webkit-scrollbar { display: none; }
.horizontal-scroll-pills > * { flex-shrink: 0; scroll-snap-align: start; }

/* Mobile Touch & Form Input Optimizations */
@media (max-width: 767px) {
    body {
        padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px));
        -webkit-tap-highlight-color: transparent;
    }

    .container {
        padding: 0 16px;
    }

    /* iOS auto-zoom prevention (inputs must be at least 16px) */
    .form-control, input, select, textarea {
        font-size: 16px !important;
        min-height: 44px;
    }
    textarea.form-control {
        min-height: 100px;
    }

    .btn {
        min-height: 44px;
    }

    .section-pad {
        padding: 48px 0;
    }
    .section-pad-sm {
        padding: 32px 0;
    }
    .section-header {
        margin-bottom: 32px;
    }

    /* Banner Slider Mobile */
    .banner-slider-section {
        padding: 16px 0 10px;
    }
    .banner-slider-wrapper {
        border-radius: 16px;
    }
    .banner-slide {
        padding: 20px 14px 18px;
    }
    .slide-grid {
        gap: 16px;
    }
    .slide-badge {
        margin-bottom: 8px;
        padding: 4px 10px;
        font-size: 10px;
    }
    .slide-title {
        font-size: 1.4rem;
        line-height: 1.2;
        margin-bottom: 6px;
    }
    .slide-subtitle {
        font-size: 12.5px;
        line-height: 1.5;
        margin-bottom: 14px;
    }
    .btn-banner-primary {
        padding: 10px 18px;
        font-size: 13.5px;
        border-radius: 10px;
    }
    .slide-visual {
        margin-top: 4px;
    }
    .mockup-inner {
        padding: 12px 14px;
    }
    .mockup-code-line {
        font-size: 11px;
        padding: 6px 10px;
    }
    .slider-arrow {
        display: none !important;
    }
    .slider-dots {
        margin-top: 10px;
    }

    /* Category Horizontal Slider Mobile */
    .category-slider-section {
        padding: 6px 0 20px;
    }
    .category-scroll-track {
        gap: 8px;
        padding: 2px 2px 6px;
    }
    .cat-card {
        padding: 8px 12px;
        gap: 9px;
        border-radius: 11px;
    }
    .cat-card-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
        border-radius: 8px;
    }
    .cat-card-name {
        font-size: 12px;
    }
    .cat-card-sub {
        font-size: 9.5px;
    }
    .cat-nav-btn {
        display: none !important;
    }

    /* Marketplace Section Headers Mobile */
    .marketplace-product-section {
        padding: 24px 0;
    }
    .marketplace-section-header {
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
    .marketplace-section-header .section-title {
        font-size: 1.25rem;
    }
    .view-more-btn {
        font-size: 12px;
    }

    /* Products Grid on Mobile (2 items per row) */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .product-card {
        background: linear-gradient(145deg, rgba(24, 16, 52, 0.95) 0%, rgba(15, 10, 34, 0.98) 100%) !important;
        border: 1px solid rgba(139, 92, 246, 0.22) !important;
        border-radius: 12px !important;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        height: 100%;
        min-width: 0;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
    }
    .product-card-img {
        position: relative;
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        overflow: hidden;
        background: #0d081e;
        border-radius: 12px 12px 0 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .product-card-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block;
    }
    .product-card-body {
        padding: 12px 10px 14px !important;
        flex: 1;
        display: flex;
        flex-direction: column;
        text-align: center !important;
        min-width: 0;
    }
    .product-title {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #FFFFFF !important;
        margin: 0 0 6px !important;
        line-height: 1.35 !important;
        min-height: 34px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-align: center !important;
        word-break: break-word;
    }
    .product-title a {
        color: #FFFFFF !important;
        text-decoration: none;
    }
    .product-price {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        margin: 0 0 10px !important;
        min-height: auto !important;
        flex-wrap: wrap !important;
    }
    .price-current {
        font-size: 16px !important;
        font-weight: 800 !important;
        color: #5B6CF7 !important;
        letter-spacing: -0.01em;
    }
    .price-original {
        font-size: 12.5px !important;
        color: #94A3B8 !important;
        text-decoration: line-through !important;
        font-weight: 500 !important;
    }
    .price-free {
        color: #34D399 !important;
        font-size: 16px !important;
        font-weight: 800 !important;
    }
    .product-badges {
        top: 6px !important;
        left: 6px !important;
        gap: 3px !important;
        max-width: calc(100% - 12px);
    }
    .product-badges .badge {
        font-size: 8.5px !important;
        font-weight: 700 !important;
        padding: 2px 5px !important;
        border-radius: 4px !important;
        line-height: 1.15;
    }
    .product-actions {
        display: none !important;
    }
    .product-card-actions {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-top: auto !important;
        width: 100% !important;
        min-width: 0;
    }
    .product-card-actions .btn-cart {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 0 !important;
        border-radius: 8px !important;
        background: #191499 !important;
        background: linear-gradient(135deg, #1d1891 0%, #1e1b9b 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #FFFFFF !important;
        font-size: 13px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        box-shadow: 0 4px 12px rgba(24, 20, 138, 0.4) !important;
    }
    .product-card-actions .btn-buy {
        flex: 1 !important;
        height: 36px !important;
        padding: 0 8px !important;
        border-radius: 8px !important;
        background: #191499 !important;
        background: linear-gradient(135deg, #1d1891 0%, #1e1b9b 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #FFFFFF !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        box-shadow: 0 4px 12px rgba(24, 20, 138, 0.4) !important;
        white-space: nowrap !important;
        min-width: 0;
    }
    .product-card-actions .btn-buy i {
        font-size: 11px !important;
        color: #FFFFFF !important;
    }
    .product-card-actions .btn-buy .btn-text {
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #FFFFFF !important;
    }

    /* Categories Grid */
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    .category-card {
        padding: 16px 12px;
    }
    .category-icon {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    /* Mobile Drawer */
    .mobile-drawer {
        width: 82vw;
        max-width: 320px;
    }

    /* Mobile Bottom Nav & Body Spacing */
    body {
        padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px) + 12px) !important;
    }
    .mobile-bottom-nav {
        height: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .back-to-top {
        bottom: calc(var(--mobile-nav-h) + 16px + env(safe-area-inset-bottom, 0px));
        right: 16px;
    }
    .site-header {
        height: 62px;
    }
    .header-logo img {
        max-height: 34px !important;
        width: auto;
    }

    /* User Dashboard Mobile View */
    .dashboard-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 16px 0 40px;
    }
    .dashboard-sidebar {
        position: static;
        padding: 16px;
        border-radius: var(--radius-lg);
        width: 100%;
    }
    .dash-user-info {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
    .dash-avatar {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    .dashboard-sidebar nav {
        display: flex;
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }
    .dashboard-sidebar nav::-webkit-scrollbar {
        display: none;
    }
    .dash-nav-link {
        border-left: none !important;
        border-radius: var(--radius-full);
        white-space: nowrap;
        padding: 8px 16px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--border-color);
        font-size: 13px;
        font-weight: 600;
        flex-shrink: 0;
        scroll-snap-align: start;
        margin-bottom: 0;
    }
    .dash-nav-link.active {
        background: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        color: #fff !important;
        box-shadow: 0 2px 10px rgba(124,58,237,0.4);
    }
    .dash-nav-link.logout {
        border-top: 1px solid var(--border-color) !important;
        border-radius: var(--radius-full) !important;
        padding: 8px 16px !important;
        margin-top: 0 !important;
    }

    /* Stats Cards on Mobile - 3-Column Compact Grid */
    .stats-cards {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 20px !important;
    }
    .stat-card {
        padding: 12px 6px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 6px !important;
        border-radius: var(--radius-md) !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid var(--border-color) !important;
    }
    .stat-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 15px !important;
        border-radius: var(--radius-sm) !important;
    }
    .stat-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .stat-value {
        font-size: 17px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
    }
    .stat-label {
        font-size: 11px !important;
        color: var(--muted-color) !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* Switch desktop table to sleek mobile order cards */
    .dash-desktop-table {
        display: none !important;
    }
    .dash-mobile-orders {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
    }
    .dash-mobile-order-card {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 12px 14px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .dm-order-top {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .dm-order-id {
        font-weight: 700;
        font-size: 13px;
        color: var(--text-color);
        word-break: break-all;
        width: 100%;
    }
    .dm-order-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    .dm-order-badges .badge {
        font-size: 10px !important;
        padding: 2px 7px !important;
    }
    .dm-order-mid {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 12px;
        color: var(--muted-color);
        padding-top: 4px;
        border-top: 1px dashed rgba(255, 255, 255, 0.08);
    }
    .dm-order-date {
        font-size: 12px;
    }
    .dm-order-total {
        font-size: 13.5px;
        font-weight: 800;
        color: var(--primary-light, #A78BFA);
    }
    .dm-order-bot {
        margin-top: 2px;
    }

    /* Downloads on Mobile */
    .dash-downloads-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .dash-download-card {
        padding: 14px !important;
        gap: 12px !important;
    }
    .dd-card-info {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
    }
    .dd-card-meta {
        min-width: 0;
        flex: 1;
    }
    .dd-card-title {
        font-size: 13.5px !important;
        font-weight: 700 !important;
        word-break: break-word !important;
        white-space: normal !important;
        line-height: 1.35 !important;
    }
    .dd-card-usage {
        font-size: 11.5px !important;
        color: var(--muted-color);
        margin-top: 2px;
    }
    .dd-download-btn {
        width: 100% !important;
        justify-content: center !important;
        font-size: 12.5px !important;
        padding: 8px 14px !important;
    }

    /* Order Details Page on Mobile */
    .order-detail-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .order-detail-title {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
    }
    .order-detail-btn-group {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px !important;
    }
    .order-detail-btn-group .btn {
        width: 100%;
        justify-content: center;
        padding: 7px 10px !important;
        font-size: 12px !important;
    }
    .order-status-banner {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        padding: 14px !important;
    }
    .order-purchased-item {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 12px 14px !important;
    }
    .order-item-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .order-item-actions .btn {
        width: 100% !important;
        justify-content: center;
        padding: 8px 14px !important;
    }
    .order-calc-wrap {
        justify-content: stretch !important;
    }
    .order-calc-box {
        max-width: 100% !important;
    }

    /* Table Scroll Enhancements */
    .table-wrap {
        border-radius: var(--radius-md);
        border: 1px solid var(--border-color);
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
    }
    .table th, .table td {
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .download-item-card {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        gap: 12px;
    }
    .download-item-card .btn {
        width: 100%;
        justify-content: center;
    }

    /* Product Detail Page Mobile (Redesigned) */
    .product-detail-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .product-detail-title {
        font-size: 1.25rem !important;
        line-height: 1.35 !important;
        margin-bottom: 8px;
    }
    .product-detail-price-row {
        gap: 8px;
        margin-bottom: 8px;
    }
    .detail-price-current {
        font-size: 22px !important;
    }
    .detail-price-original {
        font-size: 15px !important;
    }
    .product-highlights-box {
        margin: 8px 0 16px;
        font-size: 13px;
        padding: 12px 14px;
        border-radius: 10px;
    }
    .product-highlights-list {
        gap: 8px;
    }
    .product-highlights-list li {
        font-size: 12.5px;
        line-height: 1.45;
    }
    .product-action-row-outline {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 10px;
    }
    .btn-outline-preview,
    .btn-outline-tutorial {
        height: 38px;
        font-size: 12px;
        gap: 5px;
        padding: 0 8px;
        white-space: nowrap;
    }
    .product-purchase-row {
        display: grid;
        grid-template-columns: auto 1fr 1fr;
        gap: 8px;
        align-items: center;
    }
    @media (max-width: 360px) {
        .product-purchase-row {
            grid-template-columns: 1fr;
        }
        .qty-stepper {
            width: 100%;
            justify-content: center;
        }
    }
    .qty-stepper {
        height: 40px;
    }
    .qty-btn {
        width: 30px;
        font-size: 14px;
    }
    .qty-input {
        width: 32px;
        font-size: 13px;
    }
    .btn-detail-cart {
        height: 40px;
        font-size: 12px;
        gap: 5px;
        padding: 0 8px;
        white-space: nowrap;
    }
    .btn-detail-buy {
        height: 40px;
        font-size: 12px;
        gap: 5px;
        padding: 0 10px;
        white-space: nowrap;
    }
    .product-tabs-wrapper {
        margin-top: 28px;
        padding-top: 14px;
    }
    .product-tabs-nav {
        display: flex;
        gap: 16px;
        margin-bottom: 18px;
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 4px;
    }
    .product-tabs-nav::-webkit-scrollbar {
        display: none;
    }
    .product-tab-btn {
        flex-shrink: 0;
        font-size: 13.5px;
        padding-bottom: 8px;
    }
    .product-tab-pane > .card.card-body {
        padding: 18px 14px !important;
        border-radius: 12px !important;
    }
    .product-qa-card {
        padding: 16px 14px !important;
        border-radius: 10px !important;
    }
    .custom-modal-overlay {
        padding: 12px;
    }
    .modal-content-box {
        max-width: 100% !important;
        padding: 16px !important;
        border-radius: 12px !important;
    }
    .related-products-section {
        margin-top: 36px;
        margin-bottom: 28px;
        padding-top: 20px;
    }

    /* Cart & Checkout */
    .cart-layout {
        gap: 20px;
        padding: 20px 0;
    }
    .cart-item {
        padding: 14px;
        gap: 12px;
    }
    .cart-item-img {
        width: 56px;
        height: 56px;
        aspect-ratio: 1/1;
        object-fit: cover;
        border-radius: 8px;
    }
    .order-summary {
        position: static;
        padding: 20px;
    }
    .coupon-input {
        display: flex;
        gap: 8px;
        align-items: center;
    }
    .coupon-input .form-control {
        flex: 1;
    }
    .coupon-input .btn {
        flex-shrink: 0;
        width: auto;
    }

    /* Auth Cards */
    .card-body {
        padding: 20px 16px;
    }
    .custom-order-cta {
        padding: 40px 20px;
    }

    /* Footer Mobile */
    .site-footer {
        padding: 40px 0 0;
        margin-top: 48px;
    }
    .footer-grid {
        gap: 28px;
        margin-bottom: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--background-color); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,0.5); }

/* Selection styling */
::selection { background: rgba(124,58,237,0.3); color: var(--text-color); }

