/* ========================================
   BuyCoded.com — Main Stylesheet
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
    --bg-primary: #0f1629;
    --bg-secondary: #1a2340;
    --bg-card: #1e2d4a;
    --accent: #4f8eff;
    --accent-hover: #3a6fd8;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #2a3550;
    --radius: 10px;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --transition: 0.2s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; font-size: 15px; min-height: 100vh; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---------- Utilities ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border: none; border-radius: var(--radius); font-weight: 600; font-size: 14px; cursor: pointer; transition: all var(--transition); text-decoration: none; line-height: 1.4; min-height: 44px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #1baa50; color: #fff; }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-warning { background: var(--warning); color: #000; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.05); }
.btn-outline-accent { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline-accent:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; min-height: 36px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; color: var(--text-secondary); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-size: 15px; transition: border-color var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,142,255,0.15); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 13px; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-between { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text-secondary); cursor: pointer; }
.checkbox-label input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); }
.link-small { font-size: 14px; color: var(--accent); }
.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { cursor: pointer; }
.radio-card input { display: none; }
.radio-card-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 16px; background: var(--bg-primary); border: 2px solid var(--border); border-radius: var(--radius); transition: all var(--transition); text-align: center; }
.radio-card-inner i { font-size: 24px; color: var(--text-secondary); }
.radio-card-inner strong { font-size: 14px; }
.radio-card-inner small { font-size: 12px; color: var(--text-muted); }
.radio-card input:checked + .radio-card-inner { border-color: var(--accent); background: rgba(79,142,255,0.08); }
.radio-card input:checked + .radio-card-inner i { color: var(--accent); }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; line-height: 1.5; }
.alert p { margin: 0; }
.alert p + p { margin-top: 4px; }
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: var(--success); }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--error); }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: var(--warning); }
.alert-info { background: rgba(79,142,255,0.1); border: 1px solid rgba(79,142,255,0.3); color: var(--accent); }
.alert-close { background: none; border: none; color: inherit; cursor: pointer; opacity: 0.6; font-size: 14px; padding: 0; }
.alert-close:hover { opacity: 1; }
.alert a { color: inherit; text-decoration: underline; }

/* ---------- Auth Pages ---------- */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.auth-container { width: 100%; max-width: 480px; }
.auth-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 16px; padding: 40px; box-shadow: var(--shadow); }
.auth-logo { text-align: center; margin-bottom: 28px; font-size: 26px; font-weight: 700; }
.auth-logo a { color: inherit; text-decoration: none; }
.auth-logo .bracket { color: var(--accent); }
.auth-logo .buy { color: #fff; }
.auth-logo .coded { color: var(--accent); }
.auth-card h1 { text-align: center; font-size: 22px; margin-bottom: 6px; }
.auth-subtitle { text-align: center; color: var(--text-secondary); font-size: 14px; margin-bottom: 28px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-secondary); }

/* ---------- Navbar ---------- */
.navbar { position: sticky; top: 0; z-index: 1000; background: rgba(15,22,41,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 0 20px; }
.navbar-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.navbar-logo { font-size: 22px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.navbar-logo a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.navbar-logo .bracket { color: var(--accent); }
.navbar-logo .coded { color: var(--accent); }
.navbar-search { flex: 1; max-width: 520px; position: relative; }
.navbar-search input { width: 100%; padding: 10px 16px 10px 42px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 50px; color: var(--text-primary); font-size: 14px; transition: border-color var(--transition); }
.navbar-search input:focus { outline: none; border-color: var(--accent); }
.navbar-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; }
.search-suggestions { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); margin-top: 4px; max-height: 400px; overflow-y: auto; display: none; z-index: 100; box-shadow: var(--shadow); }
.search-suggestions.active { display: block; }
.search-suggestion-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; transition: background var(--transition); }
.search-suggestion-item:hover { background: rgba(79,142,255,0.08); }
.search-suggestion-item img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.search-suggestion-item .suggestion-info { flex: 1; }
.search-suggestion-item .suggestion-title { font-size: 14px; font-weight: 500; }
.search-suggestion-item .suggestion-cat { font-size: 12px; color: var(--text-muted); }
.search-suggestion-item .suggestion-price { font-weight: 600; color: var(--accent); font-size: 14px; }
.navbar-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.navbar-actions .btn { padding: 8px 20px; font-size: 14px; min-height: 38px; }
.cart-icon { position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 18px; transition: color var(--transition); }
.cart-icon:hover { color: var(--accent); }
.cart-badge { position: absolute; top: 2px; right: 2px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.user-dropdown { position: relative; }
.user-avatar-btn { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; cursor: pointer; border: 2px solid var(--border); transition: border-color var(--transition); }
.user-avatar-btn:hover { border-color: var(--accent); }
.user-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.dropdown-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); display: none; z-index: 200; overflow: hidden; }
.dropdown-menu.active { display: block; }
.dropdown-header { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.dropdown-header strong { font-size: 14px; display: block; }
.dropdown-header small { color: var(--text-muted); font-size: 12px; }
.dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--text-secondary); font-size: 14px; transition: all var(--transition); }
.dropdown-menu a:hover { background: rgba(79,142,255,0.08); color: var(--text-primary); }
.dropdown-menu a i { width: 16px; text-align: center; }
.dropdown-divider { border-top: 1px solid var(--border); margin: 4px 0; }
.notification-bell { position: relative; }
.notification-badge { position: absolute; top: -2px; right: -2px; background: var(--error); color: #fff; font-size: 10px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.hamburger { display: none; background: none; border: none; color: var(--text-primary); font-size: 22px; cursor: pointer; padding: 8px; }

/* Mobile nav drawer */
.mobile-nav { position: fixed; top: 0; left: -100%; width: 300px; height: 100vh; background: var(--bg-secondary); z-index: 2000; transition: left 0.3s ease; overflow-y: auto; padding: 20px; border-right: 1px solid var(--border); }
.mobile-nav.active { left: 0; }
.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1999; display: none; }
.mobile-nav-overlay.active { display: block; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-nav-close { background: none; border: none; color: var(--text-primary); font-size: 20px; cursor: pointer; }
.mobile-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--text-secondary); font-size: 15px; border-bottom: 1px solid var(--border); }
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav a i { width: 20px; text-align: center; }

/* ---------- Hero Section ---------- */
.hero { background: linear-gradient(135deg, #0f1629 0%, #1a2340 50%, #0d1f3c 100%); padding: 80px 20px 60px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234f8eff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 44px; font-weight: 700; line-height: 1.2; margin-bottom: 18px; background: linear-gradient(135deg, #fff 0%, #94a3b8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 18px; color: var(--text-secondary); margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-buttons .btn { padding: 14px 32px; font-size: 16px; }
.stats-bar { display: flex; justify-content: center; gap: 48px; margin-top: 48px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: 60px 20px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.section-header h2 { font-size: 26px; font-weight: 700; }
.section-header a { color: var(--accent); font-size: 14px; font-weight: 500; }
.section-alt { background: var(--bg-secondary); }

/* ---------- Category Cards ---------- */
.categories-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.category-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 16px; text-align: center; transition: all var(--transition); cursor: pointer; text-decoration: none; color: inherit; }
.category-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.category-card i { font-size: 32px; color: var(--accent); margin-bottom: 12px; display: block; }
.category-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.category-card span { font-size: 13px; color: var(--text-muted); }

/* ---------- Product Cards ---------- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card-image { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-primary); }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.badge-featured { background: var(--warning); color: #000; }
.badge-new { background: var(--success); color: #fff; }
.badge-staff { background: var(--accent); color: #fff; }
.product-card-wishlist { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; background: rgba(0,0,0,0.5); border: none; border-radius: 50%; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); font-size: 14px; }
.product-card-wishlist:hover, .product-card-wishlist.active { background: var(--error); }
.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-card-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-title a { color: var(--text-primary); }
.product-card-title a:hover { color: var(--accent); }
.product-card-author { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.product-card-author a { color: var(--text-secondary); }
.product-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.product-card-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.product-card-rating .stars { color: var(--warning); font-size: 12px; }
.product-card-rating .rating-num { color: var(--text-muted); }
.product-card-sales { font-size: 12px; color: var(--text-muted); }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--border); }
.product-card-price { font-size: 18px; font-weight: 700; color: var(--accent); }
.product-card-price small { font-size: 12px; color: var(--text-muted); font-weight: 400; }

/* Product scroll row */
.products-scroll { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 10px; }
.products-scroll::-webkit-scrollbar { height: 6px; }
.products-scroll::-webkit-scrollbar-track { background: var(--bg-secondary); border-radius: 3px; }
.products-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.products-scroll .product-card { min-width: 280px; scroll-snap-align: start; flex-shrink: 0; }

/* ---------- Author Cards ---------- */
.authors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.author-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; transition: all var(--transition); }
.author-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.author-avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; overflow: hidden; border: 3px solid var(--border); }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-card h3 { font-size: 16px; margin-bottom: 4px; }
.author-card h3 a { color: var(--text-primary); }
.author-card .author-stats { display: flex; justify-content: center; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.verified-badge { color: var(--accent); font-size: 14px; margin-left: 4px; }

/* ---------- Features Section ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { text-align: center; padding: 32px 20px; }
.feature-card i { font-size: 36px; color: var(--accent); margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.testimonial-text { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 44px; height: 44px; border-radius: 50%; }
.testimonial-author strong { font-size: 14px; display: block; }
.testimonial-author small { font-size: 12px; color: var(--text-muted); }

/* ---------- Newsletter Section ---------- */
.newsletter { background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card)); padding: 60px 20px; text-align: center; }
.newsletter h2 { font-size: 28px; margin-bottom: 8px; }
.newsletter p { color: var(--text-secondary); margin-bottom: 24px; }
.newsletter-form { display: flex; max-width: 480px; margin: 0 auto; gap: 10px; }
.newsletter-form input { flex: 1; padding: 14px 20px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: 50px; color: var(--text-primary); font-size: 15px; }
.newsletter-form input:focus { outline: none; border-color: var(--accent); }
.newsletter-form .btn { border-radius: 50px; padding: 14px 28px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 60px 20px 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 40px; max-width: 1280px; margin: 0 auto; }
.footer-brand .footer-logo { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.footer-brand .footer-logo .bracket { color: var(--accent); }
.footer-brand .footer-logo .coded { color: var(--accent); }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-primary); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 15px; transition: all var(--transition); }
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-col h4 { font-size: 15px; font-weight: 600; margin-bottom: 16px; color: var(--text-primary); }
.footer-col a { display: block; color: var(--text-muted); font-size: 14px; padding: 4px 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: 1280px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; gap: 10px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-muted); }
.footer-bottom-links a:hover { color: var(--accent); }

/* ---------- Browse / Filter Page ---------- */
.browse-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; max-width: 1280px; margin: 0 auto; padding: 30px 20px; }
.filter-sidebar { position: sticky; top: 88px; align-self: start; }
.filter-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.filter-section h3 { font-size: 15px; font-weight: 600; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.filter-section label { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; color: var(--text-secondary); cursor: pointer; }
.filter-section input[type="checkbox"] { accent-color: var(--accent); }
.filter-section .count { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.browse-content .results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.results-count { font-size: 14px; color: var(--text-secondary); }
.sort-select { padding: 8px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-size: 14px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: rgba(79,142,255,0.1); border: 1px solid rgba(79,142,255,0.3); border-radius: 20px; font-size: 13px; color: var(--accent); }
.filter-tag button { background: none; border: none; color: inherit; cursor: pointer; font-size: 12px; }
.filter-toggle-mobile { display: none; }

/* ---------- Product Detail Page ---------- */
.product-detail { max-width: 1280px; margin: 0 auto; padding: 30px 20px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .separator { color: var(--text-muted); }
.product-detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.product-gallery { }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); aspect-ratio: 16/10; margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.gallery-thumb { width: 80px; height: 56px; border-radius: 6px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color var(--transition); flex-shrink: 0; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info { }
.product-info h1 { font-size: 28px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.product-author-line { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.product-author-line img { width: 28px; height: 28px; border-radius: 50%; }
.product-author-line a { color: var(--text-secondary); font-size: 14px; }
.product-rating-line { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; font-size: 14px; }
.product-rating-line .stars { color: var(--warning); }
.product-rating-line span { color: var(--text-muted); }
.product-price-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.product-price-box .price-main { font-size: 32px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.license-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.license-option { padding: 12px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; text-align: center; transition: all var(--transition); }
.license-option.active, .license-option:hover { border-color: var(--accent); background: rgba(79,142,255,0.05); }
.license-option strong { font-size: 14px; display: block; }
.license-option span { font-size: 18px; font-weight: 700; color: var(--accent); display: block; margin-top: 4px; }
.license-option small { font-size: 12px; color: var(--text-muted); }
.product-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.product-meta-list { list-style: none; }
.product-meta-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.product-meta-list li i { color: var(--accent); width: 16px; text-align: center; }
.product-meta-list li strong { color: var(--text-primary); margin-left: auto; }
.product-included { margin-top: 16px; }
.product-included h3 { font-size: 15px; margin-bottom: 10px; }
.product-included li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; color: var(--text-secondary); }
.product-included li i { color: var(--success); }
.share-buttons { display: flex; gap: 8px; margin-top: 16px; }
.share-buttons a, .share-buttons button { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 14px; cursor: pointer; transition: all var(--transition); }
.share-buttons a:hover, .share-buttons button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Product tabs */
.product-tabs { margin-top: 40px; }
.tabs-nav { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab-btn { padding: 12px 24px; background: none; border: none; color: var(--text-muted); font-size: 15px; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: all var(--transition); }
.tab-btn.active, .tab-btn:hover { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content .description-content { color: var(--text-secondary); line-height: 1.8; }
.tab-content .description-content h2, .tab-content .description-content h3 { color: var(--text-primary); margin: 20px 0 10px; }
.tab-content .description-content ul, .tab-content .description-content ol { margin: 10px 0 10px 20px; }
.tab-content .description-content li { margin: 4px 0; }
.tab-content .description-content code { background: var(--bg-primary); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.tab-content .description-content pre { background: var(--bg-primary); padding: 16px; border-radius: var(--radius); overflow-x: auto; margin: 16px 0; }
.tab-content .description-content img { border-radius: var(--radius); margin: 16px 0; }

/* Reviews */
.reviews-summary { display: flex; gap: 30px; margin-bottom: 30px; padding: 24px; background: var(--bg-card); border-radius: var(--radius); align-items: center; }
.reviews-avg { text-align: center; min-width: 120px; }
.reviews-avg .big-num { font-size: 48px; font-weight: 700; color: var(--accent); line-height: 1; }
.reviews-bars { flex: 1; }
.review-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; }
.review-bar-fill { flex: 1; height: 8px; background: var(--bg-primary); border-radius: 4px; overflow: hidden; }
.review-bar-fill span { display: block; height: 100%; background: var(--warning); border-radius: 4px; }
.review-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-header img { width: 40px; height: 40px; border-radius: 50%; }
.review-header strong { font-size: 14px; }
.review-header .stars { color: var(--warning); font-size: 13px; margin-left: 8px; }
.review-date { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.review-comment { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* Related products */
.related-products { margin-top: 48px; }

/* ---------- Cart & Checkout ---------- */
.cart-page, .checkout-page { max-width: 1000px; margin: 0 auto; padding: 30px 20px; }
.cart-page h1, .checkout-page h1 { font-size: 28px; margin-bottom: 24px; }
.cart-items { margin-bottom: 24px; }
.cart-item { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
.cart-item-image { width: 80px; height: 56px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-info h3 { font-size: 15px; margin-bottom: 4px; }
.cart-item-info h3 a { color: var(--text-primary); }
.cart-item-info small { color: var(--text-muted); font-size: 13px; }
.cart-item-price { font-size: 18px; font-weight: 700; color: var(--accent); }
.cart-item-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; padding: 8px; transition: color var(--transition); }
.cart-item-remove:hover { color: var(--error); }
.cart-summary { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.cart-summary-row.total { border-top: 2px solid var(--border); padding-top: 12px; margin-top: 8px; font-size: 18px; font-weight: 700; }
.cart-summary-row.total span:last-child { color: var(--accent); }
.coupon-form { display: flex; gap: 10px; margin-bottom: 16px; }
.coupon-form input { flex: 1; padding: 10px 14px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-size: 14px; }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty i { font-size: 48px; color: var(--text-muted); margin-bottom: 16px; }
.cart-empty p { color: var(--text-secondary); margin-bottom: 20px; }

/* Stripe Elements */
.stripe-card-element { padding: 14px 16px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius); }
.stripe-card-element.StripeElement--focus { border-color: var(--accent); }

/* Order Success */
.order-success { max-width: 600px; margin: 40px auto; padding: 20px; text-align: center; }
.order-success .success-icon { width: 80px; height: 80px; border-radius: 50%; background: rgba(34,197,94,0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.order-success .success-icon i { font-size: 36px; color: var(--success); }
.order-details { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 24px 0; text-align: left; }
.order-details .detail-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.order-details .detail-row:last-child { border-bottom: none; }
.license-key-box { background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; font-family: monospace; font-size: 16px; letter-spacing: 2px; color: var(--accent); margin: 16px 0; text-align: center; }

/* ---------- Dashboard Layouts ---------- */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 68px); }
.dashboard-sidebar { background: var(--bg-secondary); border-right: 1px solid var(--border); padding: 24px 0; }
.sidebar-header { padding: 0 20px 20px; border-bottom: 1px solid var(--border); margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.sidebar-header img { width: 40px; height: 40px; border-radius: 50%; }
.sidebar-header .name { font-size: 14px; font-weight: 600; }
.sidebar-header .role { font-size: 12px; color: var(--text-muted); text-transform: capitalize; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: var(--text-secondary); font-size: 14px; transition: all var(--transition); border-left: 3px solid transparent; }
.sidebar-nav a:hover { background: rgba(79,142,255,0.05); color: var(--text-primary); }
.sidebar-nav a.active { background: rgba(79,142,255,0.08); color: var(--accent); border-left-color: var(--accent); }
.sidebar-nav a i { width: 18px; text-align: center; }
.sidebar-nav .nav-section { padding: 16px 20px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; }
.dashboard-content { padding: 30px; overflow-x: hidden; }
.dashboard-content h1 { font-size: 26px; margin-bottom: 24px; }

/* Dashboard stat cards */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 30px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-card .stat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 12px; }
.stat-card .stat-icon.blue { background: rgba(79,142,255,0.1); color: var(--accent); }
.stat-card .stat-icon.green { background: rgba(34,197,94,0.1); color: var(--success); }
.stat-card .stat-icon.yellow { background: rgba(245,158,11,0.1); color: var(--warning); }
.stat-card .stat-icon.red { background: rgba(239,68,68,0.1); color: var(--error); }
.stat-card .stat-number { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.stat-card .stat-label { font-size: 13px; color: var(--text-muted); }

/* Data tables */
.data-table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.data-table th { background: var(--bg-secondary); padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--text-secondary); text-align: left; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.data-table td { padding: 12px 16px; font-size: 14px; border-top: 1px solid var(--border); vertical-align: middle; }
.data-table tr:hover td { background: rgba(79,142,255,0.03); }
.data-table .actions { display: flex; gap: 6px; }

/* Status badges */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-success { background: rgba(34,197,94,0.1); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.1); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.1); color: var(--error); }
.badge-info { background: rgba(79,142,255,0.1); color: var(--accent); }
.badge-gray { background: rgba(148,163,184,0.1); color: var(--text-muted); }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 30px; }
.page-link { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); font-size: 14px; transition: all var(--transition); }
.page-link:hover, .page-link.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-dots { color: var(--text-muted); padding: 0 4px; }

/* ---------- Cookie Banner ---------- */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 16px 20px; z-index: 5000; display: none; }
.cookie-banner.active { display: block; }
.cookie-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-inner p { font-size: 14px; color: var(--text-secondary); flex: 1; }
.cookie-inner p a { color: var(--accent); }
.cookie-buttons { display: flex; gap: 10px; }

/* ---------- Verify License Page ---------- */
.verify-page { max-width: 600px; margin: 40px auto; padding: 20px; }

/* ---------- Author Profile ---------- */
.author-profile { max-width: 1280px; margin: 0 auto; padding: 30px 20px; }
.author-header { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; padding: 32px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.author-header-avatar { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 4px solid var(--border); }
.author-header-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-header-info h1 { font-size: 24px; margin-bottom: 4px; }
.author-header-info p { color: var(--text-secondary); font-size: 14px; }
.author-header-stats { display: flex; gap: 24px; margin-top: 12px; }
.author-header-stats .stat { text-align: center; }
.author-header-stats .stat strong { font-size: 18px; display: block; }
.author-header-stats .stat small { color: var(--text-muted); font-size: 12px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card-image { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-card-body h3 { font-size: 17px; margin-bottom: 8px; }
.blog-card-body h3 a { color: var(--text-primary); }
.blog-card-body h3 a:hover { color: var(--accent); }
.blog-card-body p { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.blog-card-meta { font-size: 12px; color: var(--text-muted); }
.blog-post-content { max-width: 800px; margin: 0 auto; padding: 30px 20px; }
.blog-post-content h1 { font-size: 32px; margin-bottom: 12px; line-height: 1.3; }
.blog-post-content .post-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.blog-post-content .post-body { color: var(--text-secondary); line-height: 1.8; font-size: 16px; }

/* ---------- Static Pages ---------- */
.static-page { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.static-page h1 { font-size: 32px; margin-bottom: 20px; }
.static-page h2 { font-size: 22px; margin: 30px 0 12px; }
.static-page p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.static-page ul, .static-page ol { margin: 10px 0 16px 20px; color: var(--text-secondary); }
.static-page li { margin: 8px 0; }

/* ---------- Contact / FAQ ---------- */
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
.faq-question { padding: 16px 20px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 15px; }
.faq-question i { transition: transform var(--transition); color: var(--accent); }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { padding: 0 20px 16px; color: var(--text-secondary); font-size: 14px; line-height: 1.7; display: none; }
.faq-item.open .faq-answer { display: block; }

/* ---------- Admin specific ---------- */
.admin-header-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-header-bar h1 { font-size: 24px; margin: 0; }
.admin-filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-filters .btn { padding: 8px 14px; font-size: 13px; }
.admin-filters .btn.active { background: var(--accent); color: #fff; }
.admin-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.admin-card h2 { font-size: 18px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.chart-container { position: relative; height: 300px; margin-bottom: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .dashboard-layout { grid-template-columns: 220px 1fr; }
    .product-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 16px; }
    .stats-bar { gap: 24px; }
    .stat-value { font-size: 22px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .authors-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .navbar-search { display: none; }
    .hamburger { display: block; }
    .navbar-actions .btn-outline, .navbar-actions .btn-primary { display: none; }
    .browse-layout { grid-template-columns: 1fr; }
    .filter-sidebar { display: none; }
    .filter-sidebar.active { display: block; position: fixed; top: 0; left: 0; width: 300px; height: 100vh; z-index: 2000; background: var(--bg-secondary); overflow-y: auto; padding: 20px; border-right: 1px solid var(--border); }
    .filter-toggle-mobile { display: flex; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-sidebar { display: none; }
    .dashboard-sidebar.active { display: block; position: fixed; top: 0; left: 0; width: 260px; height: 100vh; z-index: 2000; overflow-y: auto; }
    .form-row { grid-template-columns: 1fr; }
    .cart-item { flex-wrap: wrap; }
    .newsletter-form { flex-direction: column; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 300px; }
    .author-header { flex-direction: column; text-align: center; }
    .author-header-stats { justify-content: center; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .reviews-summary { flex-direction: column; }
}

@media (max-width: 375px) {
    .products-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: 1fr; }
    .radio-group { grid-template-columns: 1fr; }
    .auth-card { padding: 24px 20px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Loading / Spinner ---------- */
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tooltips ---------- */
.tooltip { position: relative; cursor: help; }
.tooltip::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--bg-primary); color: var(--text-secondary); padding: 6px 12px; border-radius: 6px; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--transition); border: 1px solid var(--border); z-index: 100; }
.tooltip:hover::after { opacity: 1; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 5000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 16px; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 18px; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* File upload */
.file-upload { border: 2px dashed var(--border); border-radius: var(--radius); padding: 40px 20px; text-align: center; cursor: pointer; transition: border-color var(--transition); }
.file-upload:hover { border-color: var(--accent); }
.file-upload i { font-size: 32px; color: var(--text-muted); margin-bottom: 12px; }
.file-upload p { color: var(--text-secondary); font-size: 14px; }
.file-upload small { color: var(--text-muted); font-size: 12px; }

/* Image previews */
.image-previews { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.image-preview { width: 80px; height: 60px; border-radius: 6px; overflow: hidden; position: relative; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview .remove-image { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--error); color: #fff; border: none; font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Print */
@media print {
    .navbar, .footer, .sidebar, .cookie-banner { display: none !important; }
    body { background: #fff; color: #000; }
}
