/* DigiShop Pro — Premium App Design */
:root {
  --primary: #6c63ff;
  --primary-dark: #5a52d5;
  --primary-light: #ede9fe;
  --secondary: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --dark: #0f0e17;
  --surface: #1a1a2e;
  --card: #ffffff;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --shadow-xl: 0 24px 60px rgba(0,0,0,.16);
  --transition: all .25s cubic-bezier(.4,0,.2,1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--gray-800); background: var(--gray-50); line-height: 1.6; font-size: 15px; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* Layout */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.navbar-inner { display: flex; align-items: center; height: 68px; gap: 24px; }
.navbar-brand { font-size: 22px; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.navbar-brand span { background: linear-gradient(135deg, var(--primary), #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.navbar-search { flex: 1; max-width: 400px; position: relative; }
.navbar-search input { width: 100%; padding: 10px 16px 10px 42px; border: 1.5px solid var(--gray-200); border-radius: 50px; font-size: 14px; outline: none; background: var(--gray-50); transition: var(--transition); }
.navbar-search input:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(108,99,255,.1); }
.navbar-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 16px; pointer-events: none; }
.navbar-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.navbar-nav a { padding: 8px 14px; border-radius: 50px; color: var(--gray-600); font-size: 14px; font-weight: 500; white-space: nowrap; }
.navbar-nav a:hover, .navbar-nav a.active { color: var(--primary); background: var(--primary-light); }
.navbar-cart-btn { position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 50px; background: var(--gray-100); color: var(--gray-700); font-size: 14px; font-weight: 600; }
.navbar-cart-btn:hover { background: var(--primary-light); color: var(--primary); }
.cart-badge { position: absolute; top: -4px; right: -4px; background: var(--danger); color: white; font-size: 10px; font-weight: 800; border-radius: 50%; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; border: 2px solid white; }
.cart-badge.bounce { animation: cartBounce .4s ease; }
@keyframes cartBounce { 0%,100%{transform:scale(1)} 50%{transform:scale(1.5)} }
.btn-menu { display: none; background: none; border: none; font-size: 22px; color: var(--gray-700); padding: 8px; border-radius: 8px; }
.btn-menu.active { background: var(--primary-light); color: var(--primary); }

/* Mobile Nav */
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 300; }
.mobile-nav-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); }
.mobile-nav-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 280px; background: white; padding: 24px; overflow-y: auto; box-shadow: var(--shadow-xl); }
.mobile-nav.open { display: block; }
.mobile-nav-panel a { display: block; padding: 12px 16px; border-radius: var(--radius-sm); color: var(--gray-700); font-weight: 500; margin-bottom: 4px; }
.mobile-nav-panel a:hover { background: var(--primary-light); color: var(--primary); }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 50px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: var(--transition); line-height: 1; white-space: nowrap; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-xl { padding: 16px 36px; font-size: 17px; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(108,99,255,.3); }
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); box-shadow: 0 8px 25px rgba(108,99,255,.4); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-success { background: var(--secondary); color: white; box-shadow: 0 4px 15px rgba(16,185,129,.3); }
.btn-success:hover { background: #059669; color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; color: white; }
.btn-warning { background: var(--warning); color: white; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-outline-white { background: transparent; border: 2px solid rgba(255,255,255,.5); color: white; }
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: white; }
.btn-w100 { width: 100%; }
.btn:disabled, .btn.loading { opacity: .65; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.3); border-top-color: white; border-radius: 50%; animation: spin .6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-secondary .spinner { border-color: rgba(0,0,0,.2); border-top-color: var(--gray-700); }

/* ===== CARDS ===== */
.card { background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
.card-body { padding: 24px; }
.card-header { padding: 16px 24px; border-bottom: 1px solid var(--gray-100); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: space-between; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--gray-100); }
.card-hover { transition: var(--transition); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

/* ===== PRODUCT CARDS — Codecanyon style ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.products-grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.product-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card:hover .product-thumb-overlay { opacity: 1; }

/* Thumbnail — fixed aspect ratio, no stretch */
.product-thumb {
  position: relative;
  padding-top: 60%;
  background: var(--gray-100);
  overflow: hidden;
  flex-shrink: 0;
}
.product-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .4s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-thumb-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}
.product-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(108,99,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: var(--transition);
}

/* Product badges */
.product-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-direction: column; z-index: 2; }
.p-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; backdrop-filter: blur(8px); }
.p-badge-sale { background: var(--danger); color: white; }
.p-badge-new { background: var(--secondary); color: white; }
.p-badge-hot { background: var(--warning); color: white; }
.p-badge-template { background: var(--info); color: white; }
.p-badge-smm { background: linear-gradient(135deg,#e91e63,#9c27b0); color: white; }
.p-badge-featured { background: linear-gradient(135deg,#f59e0b,#ef4444); color: white; }

.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-type-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--primary); margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.product-name { font-size: 15px; font-weight: 700; color: var(--gray-900); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-name a { color: inherit; }
.product-name a:hover { color: var(--primary); }
.product-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--gray-500); margin-bottom: 10px; }
.stars { color: #f59e0b; font-size: 12px; }
.product-price-row { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.product-price { font-size: 22px; font-weight: 800; color: var(--gray-900); }
.product-price-orig { font-size: 14px; color: var(--gray-400); text-decoration: line-through; }
.product-price-off { font-size: 12px; background: #dcfce7; color: #16a34a; padding: 2px 8px; border-radius: 20px; font-weight: 700; }
.product-footer { padding: 12px 16px; border-top: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-meta-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.meta-chip { font-size: 11px; background: var(--gray-100); color: var(--gray-600); padding: 3px 8px; border-radius: 20px; }
.product-add-btn { flex-shrink: 0; }

/* Demo button */
.demo-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: 6px 12px; border-radius: 20px; border: none; cursor: pointer; }
.demo-btn:hover { background: var(--primary); color: white; }

/* SMM card special */
.smm-card .product-thumb { padding-top: 50%; }
.smm-platforms { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.smm-plat-badge { font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.smm-plat-insta { background: linear-gradient(135deg,#f093fb,#f5576c); color: white; }
.smm-plat-yt { background: #ff0000; color: white; }
.smm-plat-fb { background: #1877f2; color: white; }
.smm-plat-tw { background: #1da1f2; color: white; }
.smm-plat-tk { background: #000; color: white; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  color: white;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(108,99,255,.25) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,.15) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 740px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(108,99,255,.2); border: 1px solid rgba(108,99,255,.4); color: #a78bfa; padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 24px; }
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.15; margin-bottom: 20px; letter-spacing: -.5px; }
.hero h1 .gradient-text { background: linear-gradient(135deg, #a78bfa, #60a5fa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 18px; opacity: .8; margin-bottom: 36px; line-height: 1.7; max-width: 560px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 60px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.1); flex-wrap: wrap; }
.hero-stat { }
.hero-stat-value { font-size: 32px; font-weight: 800; background: linear-gradient(135deg, white, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 2px; }

/* Type Nav (shop page top) */
.type-nav { display: flex; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--gray-200); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.type-nav::-webkit-scrollbar { display: none; }
.type-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 50px; font-size: 13px; font-weight: 600; background: var(--gray-100); color: var(--gray-600); white-space: nowrap; transition: var(--transition); border: none; cursor: pointer; }
.type-pill:hover, .type-pill.active { background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(108,99,255,.3); }
.type-pill-count { background: rgba(255,255,255,.25); padding: 1px 7px; border-radius: 20px; font-size: 11px; }

/* ===== SECTIONS ===== */
.section { padding: 70px 0; }
.section-alt { background: white; }
.section-dark { background: var(--gray-900); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.section-title { font-size: 28px; font-weight: 800; color: var(--gray-900); letter-spacing: -.3px; }
.section-subtitle { color: var(--gray-500); font-size: 15px; margin-top: 6px; }

/* ===== CATEGORY CARDS ===== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.cat-card { background: white; border: 2px solid var(--gray-200); border-radius: var(--radius); padding: 20px 12px; text-align: center; cursor: pointer; transition: var(--transition); text-decoration: none; color: var(--gray-700); display: flex; flex-direction: column; align-items: center; }
.cat-card:hover, .cat-card.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-icon { font-size: 30px; margin-bottom: 8px; display: block; }
.cat-name { font-size: 12px; font-weight: 700; line-height: 1.3; }
.cat-count { font-size: 11px; color: var(--gray-400); margin-top: 3px; }
.cat-card.active .cat-count { color: var(--primary); opacity: .7; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--gray-700); margin-bottom: 8px; letter-spacing: .2px; }
.form-label.required::after { content: ' *'; color: var(--danger); }
.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
  background: white;
  color: var(--gray-800);
  appearance: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(108,99,255,.1); }
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-hint { font-size: 12px; color: var(--gray-400); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; font-weight: 500; }
.form-check input[type="checkbox"], .form-check input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary); }
.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; flex-shrink: 0; }

/* ===== ALERTS ===== */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid transparent; }
.alert-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.alert-danger, .alert-error { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.alert-info { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.alert-warning { background: #fef3c7; color: #92400e; border-color: #fde68a; }

/* ===== BADGES ===== */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 50px; font-size: 12px; font-weight: 700; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-secondary { background: var(--gray-100); color: var(--gray-600); }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.badge-dot-success { background: var(--secondary); }
.badge-dot-warning { background: var(--warning); }
.badge-dot-danger { background: var(--danger); }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--gray-200); background: white; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--gray-50); padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--gray-500); border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); font-size: 14px; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }
.table-actions { display: flex; gap: 6px; flex-wrap: nowrap; }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); z-index: 500; padding: 20px; overflow-y: auto; }
.modal-overlay.open { display: flex; align-items: center; justify-content: center; animation: fadeIn .2s ease; }
body.modal-open { overflow: hidden; }
.modal-box { background: white; border-radius: var(--radius-lg); width: 100%; max-width: 560px; box-shadow: var(--shadow-xl); animation: slideUp .25s ease; }
.modal-lg { max-width: 760px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--gray-100); }
.modal-header h3 { font-size: 18px; font-weight: 800; }
.modal-close { background: var(--gray-100); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--gray-600); transition: var(--transition); }
.modal-close:hover { background: var(--gray-200); }
.modal-body { padding: 24px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--gray-100); }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes slideUp { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }

/* ===== TOAST ===== */
#toast-container { position: fixed; top: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--gray-900); color: white; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-xl); max-width: 340px; transform: translateX(120%); transition: transform .3s cubic-bezier(.34,1.56,.64,1); pointer-events: all; }
.toast.show { transform: translateX(0); }
.toast-icon { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.toast-success .toast-icon { background: var(--secondary); }
.toast-error .toast-icon { background: var(--danger); }
.toast-info .toast-icon { background: var(--info); }
.toast-warning .toast-icon { background: var(--warning); }

/* ===== UPI BOX ===== */
.upi-card { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: var(--radius); padding: 24px; text-align: center; }
.upi-id-display { font-size: 22px; font-weight: 800; letter-spacing: 1px; margin: 12px 0; padding: 12px 20px; background: rgba(255,255,255,.15); border-radius: var(--radius-sm); display: inline-block; }
.upi-qr-img { max-width: 160px; border-radius: var(--radius-sm); margin: 12px auto; border: 3px solid rgba(255,255,255,.3); }

/* ===== CHECKOUT ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.checkout-sticky { position: sticky; top: 84px; }
.payment-option { border: 2px solid var(--gray-200); border-radius: var(--radius-sm); padding: 16px; cursor: pointer; transition: var(--transition); margin-bottom: 10px; }
.payment-option.selected, .payment-option:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.payment-option input[type="radio"] { accent-color: var(--primary); }

/* ===== ORDER SUMMARY ===== */
.order-summary-card { background: white; border-radius: var(--radius); border: 1px solid var(--gray-200); }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--gray-100); }
.summary-row:last-child { border: none; }
.summary-total { display: flex; justify-content: space-between; padding: 16px 0 0; font-size: 20px; font-weight: 800; border-top: 2px solid var(--gray-200); margin-top: 8px; }

/* ===== ACCOUNT ===== */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.account-sidebar-card { background: white; border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 8px; position: sticky; top: 84px; }
.account-sidebar-profile { padding: 16px; text-align: center; border-bottom: 1px solid var(--gray-100); margin-bottom: 8px; }
.account-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #a78bfa); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: white; margin: 0 auto 10px; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); color: var(--gray-600); font-size: 14px; font-weight: 600; transition: var(--transition); margin-bottom: 2px; }
.account-nav a:hover, .account-nav a.active { background: var(--primary-light); color: var(--primary); }
.account-nav a .nav-icon { font-size: 16px; width: 20px; text-align: center; }

/* ===== ADMIN LAYOUT ===== */
.admin-layout { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.admin-sidebar { background: #0f0e17; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }
.admin-logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 12px; }
.admin-logo-icon { width: 40px; height: 40px; background: var(--primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.admin-logo-text { font-size: 18px; font-weight: 800; color: white; }
.admin-logo-badge { font-size: 10px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.5); padding: 2px 8px; border-radius: 20px; margin-top: 2px; }
.admin-nav { padding: 12px; flex: 1; }
.admin-nav-section { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,.25); padding: 16px 10px 6px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: rgba(255,255,255,.55); font-size: 13.5px; font-weight: 600; transition: var(--transition); margin-bottom: 1px; }
.admin-nav a:hover { color: white; background: rgba(255,255,255,.08); }
.admin-nav a.active { color: white; background: var(--primary); box-shadow: 0 4px 15px rgba(108,99,255,.4); }
.admin-nav a .nav-badge { margin-left: auto; background: var(--danger); color: white; font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 20px; }
.admin-main { background: #f5f6fa; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar { background: white; border-bottom: 1px solid var(--gray-200); height: 64px; display: flex; align-items: center; padding: 0 28px; gap: 16px; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.admin-topbar-left { display: flex; align-items: center; gap: 12px; }
.admin-breadcrumb { font-size: 20px; font-weight: 800; color: var(--gray-900); }
.admin-topbar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.admin-content { padding: 28px; flex: 1; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.page-title { font-size: 22px; font-weight: 800; color: var(--gray-900); }
.page-actions { display: flex; gap: 10px; }

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: white; border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 20px; display: flex; align-items: center; gap: 16px; transition: var(--transition); }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.si-blue { background: #dbeafe; } .si-green { background: #d1fae5; }
.si-yellow { background: #fef3c7; } .si-red { background: #fee2e2; }
.si-purple { background: #ede9fe; } .si-pink { background: #fce7f3; }
.stat-value { font-size: 26px; font-weight: 800; color: var(--gray-900); line-height: 1; }
.stat-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.stat-trend { font-size: 11px; font-weight: 600; margin-top: 4px; }
.stat-trend-up { color: var(--secondary); }
.stat-trend-dn { color: var(--danger); }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.page-btn { padding: 8px 14px; border-radius: 50px; background: white; border: 1.5px solid var(--gray-200); color: var(--gray-700); font-size: 14px; font-weight: 600; transition: var(--transition); }
.page-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 4px 12px rgba(108,99,255,.3); }

/* Ticket thread */
.ticket-thread { display: flex; flex-direction: column; gap: 16px; }
.ticket-msg { padding: 16px 20px; border-radius: var(--radius); max-width: 78%; }
.ticket-msg.msg-user { background: var(--primary-light); align-self: flex-start; }
.ticket-msg.msg-admin { background: var(--gray-100); align-self: flex-end; }
.ticket-msg-from { font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.ticket-msg.msg-user .ticket-msg-from { color: var(--primary); }
.ticket-msg.msg-admin .ticket-msg-from { color: var(--gray-600); }
.ticket-msg-text { font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.ticket-msg-time { font-size: 11px; color: var(--gray-400); margin-top: 6px; }

/* SMM Order Form */
.smm-order-card { background: white; border-radius: var(--radius); border: 1px solid var(--gray-200); overflow: hidden; }
.smm-platform-header { padding: 20px; background: linear-gradient(135deg,#e91e63,#9c27b0); color: white; }
.smm-qty-display { font-size: 32px; font-weight: 800; color: var(--primary); text-align: center; padding: 16px; border: 2px dashed var(--primary-light); border-radius: var(--radius-sm); margin: 16px 0; }
.smm-price-calc { background: var(--gray-50); border-radius: var(--radius-sm); padding: 14px; font-size: 15px; font-weight: 700; text-align: center; color: var(--gray-900); }

/* Footer */
.footer { background: #0f0e17; color: rgba(255,255,255,.5); padding: 56px 0 32px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-size: 22px; font-weight: 800; color: white; margin-bottom: 12px; }
.footer-desc { font-size: 14px; line-height: 1.8; }
.footer-heading { color: white; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,.5); font-size: 14px; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); transition: var(--transition); font-size: 16px; }
.footer-social a:hover { background: var(--primary); color: white; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 40px; }
}
@media (max-width: 768px) {
  .hero { padding: 50px 0 60px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .hero-stats { gap: 24px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar-card { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; position: fixed; inset: 0; z-index: 300; height: 100%; width: 256px; border-radius: 0 var(--radius) var(--radius) 0; }
  .admin-sidebar.open { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .btn-menu { display: flex; }
  .navbar-nav { display: none; }
  .navbar-search { max-width: 200px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
}

/* Utilities */
.d-flex { display: flex; }
.flex-col { flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 6px; } .gap-2 { gap: 10px; } .gap-3 { gap: 16px; } .gap-4 { gap: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.text-primary { color: var(--primary); }
.text-success { color: var(--secondary); }
.text-danger { color: var(--danger); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-lg { font-size: 17px; }
.fw-bold { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; } .mb-4 { margin-bottom: 32px; }
.mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 32px; }
.p-3 { padding: 20px; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 20px 0; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.relative { position: relative; }
.rounded-full { border-radius: 50px; }

/* Stat icon color aliases (backwards compat) */
.stat-icon.blue   { background: #dbeafe; }
.stat-icon.green  { background: #d1fae5; }
.stat-icon.yellow { background: #fef3c7; }
.stat-icon.red    { background: #fee2e2; }
.stat-icon.purple { background: #ede9fe; }
.stat-icon.pink   { background: #fce7f3; }
