/* ===== GLOBAL ===== */
:root {
  --primary: #6c63ff;
  --secondary: #e040fb;
  --dark: #0f0f1a;
  --dark2: #1a1a2e;
  --dark3: #16213e;
  --card: #1e1e32;
  --text: #e0e0e0;
  --text-muted: #888;
  --success: #00e676;
  --danger: #f44336;
  --warning: #ff9800;
  --border: rgba(108,99,255,0.2);
  --glow: 0 0 20px rgba(108,99,255,0.3);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: var(--dark); color: var(--text); min-height: 100vh; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 8px; border: none; cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.3s; letter-spacing: 0.5px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c62828; transform: translateY(-2px); }
.btn-success { background: var(--success); color: #000; }
.btn-success:hover { background: #00c853; transform: translateY(-2px); }
.btn-warning { background: var(--warning); color: #000; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ===== NAVBAR ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(15,15,26,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 65px; max-width: 1200px; margin: 0 auto; }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.navbar-brand .logo-icon { font-size: 28px; }
.navbar-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.navbar-links a { color: var(--text); font-weight: 500; transition: color 0.3s; font-size: 15px; }
.navbar-links a:hover { color: var(--primary); }
.navbar-right { display: flex; align-items: center; gap: 15px; }
.cart-btn { position: relative; }
.cart-badge { position: absolute; top: -8px; right: -8px; background: var(--secondary); color: #fff; border-radius: 50%; width: 20px; height: 20px; font-size: 11px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--primary); cursor: pointer; }
.navbar-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

/* ===== HERO ===== */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 20px 40px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(108,99,255,0.15) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(224,64,251,0.1) 0%, transparent 60%); }
.hero-particles { position: absolute; inset: 0; overflow: hidden; }
.particle { position: absolute; border-radius: 50%; animation: float 6s infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0deg); opacity: 0.7; } 50% { transform: translateY(-30px) rotate(180deg); opacity: 0.3; } }
.hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-block; background: rgba(108,99,255,0.2); border: 1px solid var(--primary); color: var(--primary); padding: 6px 18px; border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 20px; letter-spacing: 1px; text-transform: uppercase; }
.hero h1 { font-size: clamp(36px, 6vw, 72px); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.hero h1 span { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 60px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-item .number { font-size: 32px; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-item .label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: clamp(24px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; }
.section-title h2 span { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-title p { color: var(--text-muted); font-size: 16px; max-width: 500px; margin: 0 auto; }

/* ===== CATEGORY TABS ===== */
.category-tabs { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.cat-tab { padding: 10px 24px; border-radius: 50px; border: 2px solid var(--border); background: transparent; color: var(--text); cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.3s; }
.cat-tab:hover, .cat-tab.active { background: linear-gradient(135deg, var(--primary), var(--secondary)); border-color: transparent; color: #fff; }

/* ===== PRODUCT CARDS ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: all 0.3s; position: relative; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--glow); border-color: var(--primary); }
.product-card .badge { position: absolute; top: 12px; right: 12px; background: var(--secondary); color: #fff; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.product-card .badge.out { background: var(--danger); }
.product-img { width: 100%; height: 200px; object-fit: cover; }
.product-img-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, var(--dark2), var(--dark3)); display: flex; align-items: center; justify-content: center; font-size: 60px; }
.product-body { padding: 20px; }
.product-cat { font-size: 11px; color: var(--primary); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; }
.product-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.product-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.product-price .price-from { font-size: 20px; font-weight: 800; color: var(--primary); }
.product-actions { display: flex; gap: 10px; }

/* ===== PRODUCT DETAIL MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(5px); }
.modal { background: var(--card); border: 1px solid var(--border); border-radius: 20px; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.1); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-img { width: 100%; height: 250px; object-fit: cover; border-radius: 20px 20px 0 0; }
.modal-body { padding: 24px; }
.modal-title { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.modal-desc { color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.duration-selector { margin-bottom: 20px; }
.duration-selector label { display: block; font-weight: 600; margin-bottom: 10px; color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.duration-options { display: flex; flex-wrap: wrap; gap: 10px; }
.duration-opt { padding: 10px 20px; border-radius: 10px; border: 2px solid var(--border); background: transparent; color: var(--text); cursor: pointer; transition: all 0.3s; text-align: center; }
.duration-opt:hover, .duration-opt.selected { border-color: var(--primary); background: rgba(108,99,255,0.15); color: var(--primary); }
.duration-opt .d-label { font-weight: 700; font-size: 14px; }
.duration-opt .d-price { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.duration-opt.selected .d-price { color: var(--primary); }

/* ===== CART SIDEBAR ===== */
.cart-sidebar { position: fixed; right: -420px; top: 0; bottom: 0; width: 420px; background: var(--dark2); border-left: 1px solid var(--border); z-index: 3000; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
.cart-sidebar.open { right: 0; }
.cart-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.cart-header h3 { font-size: 20px; font-weight: 700; }
.cart-close { background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 12px; display: flex; gap: 12px; align-items: center; }
.cart-item-img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.cart-item-img-placeholder { width: 60px; height: 60px; border-radius: 8px; background: var(--dark3); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.cart-item-duration { font-size: 12px; color: var(--text-muted); }
.cart-item-price { font-weight: 700; color: var(--primary); font-size: 15px; }
.cart-item-remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 18px; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.cart-total span:last-child { color: var(--primary); }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2999; display: none; }
.cart-overlay.open { display: block; }

/* ===== PAYMENT PAGES ===== */
.payment-page { min-height: 100vh; padding: 100px 20px 40px; }
.payment-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 36px; max-width: 560px; margin: 0 auto; }
.payment-title { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.payment-subtitle { color: var(--text-muted); margin-bottom: 28px; font-size: 14px; }
.bank-details { background: var(--dark2); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.bank-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.bank-row:last-child { border-bottom: none; }
.bank-label { font-size: 13px; color: var(--text-muted); }
.bank-value { font-weight: 700; font-size: 15px; }
.amount-highlight { background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 12px; padding: 16px; text-align: center; margin-bottom: 24px; }
.amount-highlight .amount { font-size: 32px; font-weight: 900; color: #fff; }
.amount-highlight .amount-label { font-size: 13px; color: rgba(255,255,255,0.8); margin-top: 4px; }

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.form-control { width: 100%; background: var(--dark2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; color: var(--text); font-size: 15px; transition: border-color 0.3s; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,99,255,0.15); }
.form-control::placeholder { color: var(--text-muted); }
.form-control select { background: var(--dark2); }
select.form-control { background: var(--dark2); cursor: pointer; }
textarea.form-control { min-height: 100px; resize: vertical; }
.file-upload { border: 2px dashed var(--border); border-radius: 10px; padding: 30px; text-align: center; cursor: pointer; transition: all 0.3s; }
.file-upload:hover { border-color: var(--primary); background: rgba(108,99,255,0.05); }
.file-upload input { display: none; }
.file-upload-icon { font-size: 36px; margin-bottom: 10px; }
.file-upload-text { color: var(--text-muted); font-size: 14px; }

/* ===== ORDERS PAGE ===== */
.orders-page { min-height: 100vh; padding: 100px 20px 40px; }
.order-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.order-id { font-size: 13px; color: var(--text-muted); }
.order-status { padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status-pending { background: rgba(255,152,0,0.2); color: var(--warning); }
.status-approved { background: rgba(0,230,118,0.2); color: var(--success); }
.status-declined { background: rgba(244,67,54,0.2); color: var(--danger); }
.order-info { display: flex; gap: 16px; align-items: center; }
.order-img { width: 70px; height: 70px; border-radius: 10px; object-fit: cover; }
.order-details { flex: 1; }
.order-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.order-meta { font-size: 13px; color: var(--text-muted); }
.order-key { background: var(--dark2); border: 2px solid var(--success); border-radius: 10px; padding: 14px; margin-top: 14px; }
.order-key-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.order-key-value { font-size: 18px; font-weight: 800; color: var(--success); letter-spacing: 2px; word-break: break-all; }

/* ===== FEATURES SECTION ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; text-align: center; transition: all 0.3s; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--glow); }
.feature-icon { font-size: 48px; margin-bottom: 16px; }
.feature-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 20px; display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: 380px; animation: slideIn 0.3s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--primary); }
.toast-icon { font-size: 20px; }
.toast-msg { flex: 1; font-size: 14px; }
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { opacity: 1; } to { opacity: 0; transform: translateX(100px); } }

/* ===== LOADING ===== */
.spinner { width: 40px; height: 40px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay { position: fixed; inset: 0; background: rgba(15,15,26,0.9); z-index: 9998; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px; }
.loading-text { color: var(--text-muted); font-size: 16px; }

/* ===== FOOTER ===== */
.footer { background: var(--dark2); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-size: 22px; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 12px; }
.footer-desc { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.footer-title { font-weight: 700; margin-bottom: 16px; font-size: 15px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 10px; }
.footer-bottom p { color: var(--text-muted); font-size: 13px; }

/* ===== AUTH MODAL ===== */
.auth-modal .modal { max-width: 420px; }
.google-btn { background: #fff; color: #333; border: 2px solid #ddd; display: flex; align-items: center; gap: 12px; justify-content: center; }
.google-btn:hover { border-color: #4285f4; box-shadow: 0 4px 20px rgba(66,133,244,0.3); }
.google-btn img { width: 22px; height: 22px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-muted); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ===== PAGE TRANSITIONS ===== */
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-links.open { display: flex; flex-direction: column; position: fixed; top: 65px; left: 0; right: 0; background: var(--dark2); padding: 20px; border-bottom: 1px solid var(--border); gap: 16px; }
  .navbar-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-sidebar { width: 100%; right: -100%; }
  .hero-stats { gap: 24px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .payment-card { padding: 20px; }
  .modal { border-radius: 12px; }
}
