@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --bg-void: #050507;
  --bg-deep: #0a0a0f;
  --bg-surface: #0f0f18;
  --bg-card: #141420;
  --bg-card-hover: #1a1a2e;
  --bg-elevated: #1e1e32;
  --border: rgba(120, 100, 255, 0.12);
  --border-hover: rgba(120, 100, 255, 0.3);
  --accent: #7c5cfc;
  --accent-bright: #9d7dff;
  --accent-glow: rgba(124, 92, 252, 0.4);
  --accent-subtle: rgba(124, 92, 252, 0.08);
  --gold: #f0c060;
  --gold-subtle: rgba(240, 192, 96, 0.1);
  --text-primary: #eeeef5;
  --text-secondary: #9898b8;
  --text-muted: #5a5a7a;
  --success: #2ecc71;
  --error: #e74c3c;
  --warning: #f39c12;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 4px 32px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.03);
  --shadow-accent: 0 0 40px rgba(124, 92, 252, 0.25);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── Noise texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; }

a { color: inherit; text-decoration: none; }

button { cursor: pointer; font-family: var(--font-body); }

input, textarea, select {
  font-family: var(--font-body);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius);
  padding: 10px 14px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  font-size: 0.9rem;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
textarea { resize: vertical; min-height: 100px; }
select option { background: var(--bg-card); }

label { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); letter-spacing: 0.05em; text-transform: uppercase; display: block; margin-bottom: 6px; }

/* ── LAYOUT ── */
.page { display: none; }
.page.active { display: block; }

#app-container { min-height: 100vh; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 800;
  letter-spacing: -0.02em;
}
.nav-logo .logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), #c084fc);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900;
}
.nav-logo span { color: var(--text-primary); }
.nav-logo .brand-suffix { color: var(--text-muted); font-weight: 500; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 20px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; border: none;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 16px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-1px); box-shadow: 0 4px 24px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-subtle); }
.btn-danger { background: rgba(231,76,60,0.15); color: var(--error); border: 1px solid rgba(231,76,60,0.3); }
.btn-danger:hover { background: rgba(231,76,60,0.25); }
.btn-gold { background: var(--gold); color: #1a1a00; font-weight: 600; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(240,192,96,0.4); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; font-weight: 600; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn .icon { width: 16px; height: 16px; }

/* ── HERO ── */
.hero {
  padding: 140px 2rem 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(124,92,252,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(124,92,252,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,92,252,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-subtle); border: 1px solid var(--border-hover);
  padding: 6px 14px; border-radius: 99px; font-size: 0.78rem; font-weight: 500;
  color: var(--accent-bright); margin-bottom: 24px;
  animation: fadeInDown 0.6s ease both;
}
.hero-tag-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.04em;
  animation: fadeInUp 0.6s 0.1s ease both;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent-bright), #c084fc, var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--text-secondary); max-width: 520px; margin: 20px auto 40px;
  animation: fadeInUp 0.6s 0.2s ease both;
}
.hero-cta { animation: fadeInUp 0.6s 0.3s ease both; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── CATALOG ── */
.catalog-section { padding: 40px 2rem 80px; max-width: 1280px; margin: 0 auto; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px; flex-wrap: gap;
}
.section-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.section-count { color: var(--text-muted); font-size: 0.85rem; }

.filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px;
}
.filter-btn {
  padding: 6px 16px; border-radius: 99px; font-size: 0.8rem; font-weight: 500;
  border: 1px solid var(--border); background: transparent; color: var(--text-secondary);
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent); color: var(--accent); background: var(--accent-subtle);
}

.search-bar {
  position: relative; margin-bottom: 28px; max-width: 400px;
}
.search-bar input {
  padding-left: 40px;
  background: var(--bg-card);
}
.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  animation: fadeInUp 0.4s ease both;
}
.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(124,92,252,0.15);
}
.card-thumbnail {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10;
}
.card-thumbnail img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .card-thumbnail img { transform: scale(1.05); }
.card-thumbnail-placeholder {
  width: 100%; height: 100%;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--text-muted);
}
.card-category {
  position: absolute; top: 12px; left: 12px;
  background: rgba(10,10,15,0.85); backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 99px;
  font-size: 0.7rem; font-weight: 600; color: var(--accent-bright);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.card-body { padding: 20px; }
.card-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.card-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.card-price { }
.price-from { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.price-amount { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--accent-bright); }
.price-currency { font-size: 0.7rem; color: var(--text-muted); margin-left: 3px; }
.card-plans-count { font-size: 0.75rem; color: var(--text-muted); }

/* ── PRODUCT DETAIL PAGE ── */
.detail-page { padding-top: 80px; max-width: 1100px; margin: 0 auto; padding-left: 2rem; padding-right: 2rem; padding-bottom: 80px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 32px;
  transition: color var(--transition);
}
.back-btn:hover { color: var(--accent); }

.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }

.detail-main { min-width: 0; }
.detail-header { margin-bottom: 24px; }
.detail-category {
  display: inline-block; background: var(--accent-subtle); border: 1px solid var(--border-hover);
  color: var(--accent-bright); font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 4px 12px; border-radius: 99px; margin-bottom: 12px;
}
.detail-title { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px; }
.detail-description { color: var(--text-secondary); line-height: 1.75; font-size: 0.95rem; }

/* Media gallery */
.media-gallery { margin: 28px 0; min-width: 0; overflow: hidden; }
.gallery-main {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16/9; margin-bottom: 12px;
}
.gallery-main img, .gallery-main iframe {
  width: 100%; height: 100%; object-fit: cover; border: none;
}
.gallery-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  max-width: 100%;
  min-width: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.gallery-thumb {
  flex-shrink: 0; width: 80px; height: 54px;
  border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; transition: border-color var(--transition);
}
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb-video {
  background: var(--bg-elevated); border-radius: 8px; width: 80px; height: 54px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: 2px solid transparent; transition: border-color var(--transition); flex-shrink: 0;
  font-size: 1.2rem;
}
.gallery-thumb-video.active { border-color: var(--accent); }

/* ── SIDEBAR (plans) ── */
.detail-sidebar {}
.plans-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 24px;
  position: sticky; top: 84px;
}
.plans-title { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.plans-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.plan-tab {
  flex: 1; padding: 8px 10px; border-radius: var(--radius);
  font-size: 0.78rem; font-weight: 600;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-secondary); transition: all var(--transition); text-align: center;
  position: relative; cursor: pointer;
}
.plan-tab.active { border-color: var(--accent); background: var(--accent-subtle); color: var(--accent-bright); }
.plan-tab .popular-badge {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #1a1a00; font-size: 0.6rem; font-weight: 700;
  padding: 2px 8px; border-radius: 99px; white-space: nowrap;
}
.plan-content {}
.plan-price-display { margin: 20px 0; text-align: center; }
.plan-one-time { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.plan-amount { font-family: var(--font-display); font-size: 2.8rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.plan-amount span { font-size: 1rem; font-weight: 500; color: var(--text-secondary); }
.plan-monthly { font-size: 0.8rem; color: var(--text-secondary); margin-top: 8px; }
.plan-monthly strong { color: var(--accent-bright); }
.plan-features { list-style: none; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.plan-features li {
  font-size: 0.85rem; color: var(--text-secondary);
  display: flex; align-items: center; gap: 10px;
}
.plan-features li::before {
  content: '✓'; display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; background: rgba(46,204,113,0.15);
  color: var(--success); border-radius: 4px; font-size: 0.7rem; font-weight: 700; flex-shrink: 0;
}
.plan-note { font-size: 0.72rem; color: var(--text-muted); text-align: center; margin-top: 12px; line-height: 1.5; }

/* ── AUTH MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 440px;
  padding: 36px;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition);
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), var(--shadow-accent);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: none; color: var(--text-muted);
  font-size: 1.2rem; padding: 4px; transition: color var(--transition);
}
.modal-close:hover { color: var(--text-primary); }
.modal-logo { text-align: center; margin-bottom: 28px; }
.modal-logo .logo-mark-lg {
  width: 52px; height: 52px; background: linear-gradient(135deg, var(--accent), #c084fc);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900; margin: 0 auto 12px;
}
.modal-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 6px; }
.modal-subtitle { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-switch { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--text-muted); }
.modal-switch a { color: var(--accent-bright); cursor: pointer; }
.modal-switch a:hover { text-decoration: underline; }
.error-msg { color: var(--error); font-size: 0.8rem; margin-top: 8px; text-align: center; display: none; }
.error-msg.show { display: block; }
.success-msg { color: var(--success); font-size: 0.8rem; margin-top: 8px; text-align: center; display: none; }
.success-msg.show { display: block; }

/* ── ADMIN PANEL ── */
.admin-page { padding-top: 80px; max-width: 1100px; margin: 0 auto; padding-left: 2rem; padding-right: 2rem; padding-bottom: 80px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.admin-title-block {}
.admin-title { font-size: 2rem; font-weight: 800; }
.admin-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 40px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-top: 4px; }
.stat-value.accent { color: var(--accent-bright); }

.admin-products-list { display: flex; flex-direction: column; gap: 16px; }
.admin-product-row {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
  transition: border-color var(--transition);
}
.admin-product-row:hover { border-color: var(--border-hover); }
.admin-product-thumb {
  width: 64px; height: 46px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
  background: var(--bg-elevated);
}
.admin-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-product-info { flex: 1; }
.admin-product-name { font-weight: 600; font-size: 0.95rem; }
.admin-product-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.admin-product-actions { display: flex; gap: 8px; }

/* ── ADD PRODUCT FORM ── */
.form-section { margin-bottom: 32px; }
.form-section-title {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 20px;
}
.plans-builder { display: flex; flex-direction: column; gap: 16px; }
.plan-builder-card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; position: relative;
}
.plan-builder-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.plan-builder-title { font-size: 0.85rem; font-weight: 600; color: var(--accent-bright); }
.remove-plan-btn { background: none; border: none; color: var(--text-muted); font-size: 1rem; padding: 4px; }
.remove-plan-btn:hover { color: var(--error); }
.features-list-input { display: flex; flex-direction: column; gap: 8px; }
.feature-input-row { display: flex; gap: 8px; }
.feature-input-row input { flex: 1; }
.remove-feat-btn { background: none; border: none; color: var(--text-muted); font-size: 0.9rem; padding: 4px 8px; }
.gallery-urls { display: flex; flex-direction: column; gap: 8px; }
.gallery-url-row { display: flex; gap: 8px; }
.gallery-url-row input { flex: 1; }
.remove-url-btn { background: none; border: none; color: var(--text-muted); padding: 4px 8px; }

/* ── USER AVATAR NAV ── */
.user-nav {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 6px 14px 6px 8px; border-radius: 99px;
  cursor: pointer; transition: border-color var(--transition);
  position: relative;
}
.user-nav:hover { border-color: var(--border-hover); }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #c084fc);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: white;
}
.user-name { font-size: 0.82rem; font-weight: 500; }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 8px;
  min-width: 180px;
  box-shadow: var(--shadow-card);
  display: none;
}
.user-nav.open .user-dropdown { display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius);
  font-size: 0.85rem; color: var(--text-secondary);
  transition: all var(--transition); cursor: pointer; border: none; background: none; width: 100%; text-align: left;
}
.dropdown-item:hover { background: var(--bg-card); color: var(--text-primary); }
.dropdown-item.danger { color: var(--error); }
.dropdown-item.danger:hover { background: rgba(231,76,60,0.1); }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }
.dropdown-role-badge {
  display: inline-block; background: var(--gold-subtle); border: 1px solid rgba(240,192,96,0.3);
  color: var(--gold); font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 2px 8px; border-radius: 99px; margin-bottom: 4px;
}
.dropdown-username { font-weight: 600; font-size: 0.85rem; }
.dropdown-email { font-size: 0.72rem; color: var(--text-muted); }
.dropdown-user-info { padding: 8px 12px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center; padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state-title { font-size: 1.2rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state-desc { font-size: 0.9rem; }

/* ── TOAST ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.875rem; min-width: 280px; max-width: 380px;
  box-shadow: var(--shadow-card);
  animation: slideInRight 0.3s ease;
}
.toast.success { border-color: rgba(46,204,113,0.3); }
.toast.error { border-color: rgba(231,76,60,0.3); }
.toast-icon { font-size: 1rem; flex-shrink: 0; }
.toast-msg { flex: 1; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 2rem;
  text-align: center;
  color: var(--text-muted); font-size: 0.82rem;
}
footer .footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text-secondary); margin-bottom: 8px; }

/* ── ANIMATIONS ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.2); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  .hero { padding: 110px 1rem 60px; }
  .catalog-section, .detail-page, .admin-page { padding-left: 1rem; padding-right: 1rem; }
  .products-grid { grid-template-columns: 1fr; }
  .modal { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── TAGS ── */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.7rem; padding: 3px 10px; border-radius: 99px;
}

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* ── CHECKBOX ── */
.checkbox-row { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.checkbox-row input[type=checkbox] { width: auto; accent-color: var(--accent); }
.checkbox-row span { font-size: 0.85rem; color: var(--text-secondary); }

/* ── REVIEWS ── */
.review-card { transition: border-color var(--transition); }
.review-card:hover { border-color: var(--border-hover) !important; }
.stars-interactive { display:flex; gap:6px; }
.star-btn:hover { transform: scale(1.2); }
