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

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --border: rgba(255, 255, 255, 0.07);
  --primary: #7c5cfc;
  --primary2: #a78bfa;
  --accent: #f59e0b;
  --green: #22c55e;
  --red: #ef4444;
  --text: #e2e8f0;
  --muted: #64748b;
  --card-bg: rgba(255, 255, 255, 0.04);
  --radius: 14px;
  --glow: 0 0 40px rgba(124, 92, 252, 0.25);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #9b72ff);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 92, 252, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 92, 252, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary2);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  color: var(--primary2);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

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

.hero {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 100px 24px 80px;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.glow-ring {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.18) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.product-showcase {
  display: flex;
  gap: 16px;
  z-index: 1;
}

.showcase-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  transition: all 0.3s ease;
  cursor: default;
}

.showcase-card:hover {
  border-color: var(--primary);
  color: var(--primary2);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.showcase-card.big {
  width: 180px;
  height: 220px;
  font-size: 3rem;
}

.showcase-card.small {
  width: 130px;
  height: 100px;
  font-size: 1.8rem;
}

.showcase-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.stats-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 32px;
}

.stat {
  text-align: center;
  padding: 0 48px;
}

.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary2);
}

.stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
}

.products {
  max-width: 1200px;
  margin: auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--muted);
  font-size: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--glow);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.product-badge.sale {
  background: var(--accent);
  color: #000;
}

.product-badge.new {
  background: var(--green);
  color: #000;
}

.product-img {
  font-size: 4rem;
  text-align: center;
  padding: 40px 24px 16px;
  background: var(--bg3);
}

.product-info {
  padding: 20px;
}

.product-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary2);
  font-weight: 600;
  margin-bottom: 6px;
}

.product-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary2);
}

.old-price {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
}

.categories {
  background: var(--bg2);
  padding: 72px 24px;
  border-top: 1px solid var(--border);
}

.categories .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.cat-grid {
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-card span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.cat-card:hover {
  border-color: var(--primary);
  background: rgba(124, 92, 252, 0.08);
  transform: translateY(-3px);
}

.promo-banner {
  margin: 60px 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.18), rgba(167, 139, 250, 0.10));
  border: 1px solid rgba(124, 92, 252, 0.3);
  border-radius: 20px;
  padding: 60px;
  text-align: center;
}

.promo-inner h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.promo-inner p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1rem;
}

.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 24px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary2);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  max-width: 1200px;
  margin: auto;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-page {
  background: radial-gradient(ellipse at 20% 50%, rgba(124, 92, 252, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(167, 139, 250, 0.08) 0%, transparent 45%),
    var(--bg);
}

.auth-container {
  max-width: 900px;
  margin: 72px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 0 24px;
}

.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg2);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
}

.tab-btn {
  flex: 1;
  padding: 9px 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--bg3);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.auth-switch {
  text-align: center;
  color: var(--muted);
  font-size: 0.83rem;
  margin-top: 16px;
}

.auth-switch a {
  color: var(--primary2);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-header {
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.auth-header p {
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: 'Inter', sans-serif;
}

.form-group input:focus {
  border-color: var(--primary);
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-footer code {
  background: var(--bg3);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--primary2);
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.hint-panel {
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.1), rgba(245, 158, 11, 0.06));
  border: 1px solid rgba(124, 92, 252, 0.25);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}

.hint-icon {
  font-size: 3rem;
}

.hint-panel h3 {
  font-size: 1.3rem;
  font-weight: 800;
}

.hint-panel p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit-list li {
  font-size: 0.9rem;
  color: var(--muted);
}

.locked-text {
  color: rgba(239, 68, 68, 0.7);
  font-weight: 600;
}

.hint-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(124, 92, 252, 0.15);
  border: 1px solid rgba(124, 92, 252, 0.3);
  color: var(--primary2);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.dashboard-page {
  background: var(--bg);
}

.dashboard-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 32px 24px;
}

.sidebar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  height: fit-content;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-nav li:hover {
  background: rgba(124, 92, 252, 0.1);
  color: var(--text);
}

.sidebar-nav li.active {
  background: rgba(124, 92, 252, 0.15);
  color: var(--primary2);
}

.sidebar-nav li.admin-item {
  color: var(--accent) !important;
}

.sidebar-nav li span {
  font-size: 1rem;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.user-badge {
  background: var(--bg3);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
}

.dash-welcome {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-welcome h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.dash-role {
  font-size: 0.85rem;
  color: var(--muted);
}

.dash-avatar {
  font-size: 3.5rem;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dash-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  font-size: 2rem;
}

.dash-stat-card strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
}

.dash-stat-card p {
  font-size: 0.8rem;
  color: var(--muted);
}

.flag-section {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius);
  padding: 32px;
}

.flag-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.flag-header span {
  font-size: 2rem;
}

.flag-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green);
}

.flag-value {
  background: var(--bg);
  border: 1px dashed rgba(34, 197, 94, 0.5);
  border-radius: 10px;
  padding: 16px 24px;
  font-family: 'Courier New', monospace;
  font-size: 1.05rem;
  color: #4ade80;
  letter-spacing: 0.5px;
  word-break: break-all;
  margin-bottom: 14px;
}

.flag-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.locked-section {
  background: rgba(239, 68, 68, 0.06);
  border: 1px dashed rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}

.locked-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
}

.locked-inner h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fca5a5;
}

.locked-inner p {
  font-size: 0.9rem;
  color: var(--muted);
}

.dash-table-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.dash-table-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
}

.dash-table th {
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
}

.dash-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.dash-table tr:last-child td {
  border-bottom: none;
}

.badge {
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.delivered {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
}

.badge.processing {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent);
}

@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; gap: 40px; padding-top: 60px; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .auth-container { grid-template-columns: 1fr; max-width: 500px; }
  .dashboard-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .stats-bar { flex-direction: column; gap: 24px; }
  .stat { padding: 0; }
  .stat-divider { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 12px 16px; }
  .hero-content h1 { font-size: 2.2rem; }
  .dash-stats { grid-template-columns: 1fr; }
  .dash-welcome { flex-direction: column; text-align: center; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .stat strong { font-size: 1.5rem; }
  .promo-banner { padding: 40px 20px; }
}
