@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Exo+2:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  --bg: #080c14;
  --bg2: #0d1320;
  --bg3: #111827;
  --card: #131d2e;
  --card2: #1a2540;
  --border: #1e2d45;
  --border2: #243550;
  --blue: #0ea5e9;
  --cyan: #06d6a0;
  --glow: #0ea5e9;
  --red: #ef4444;
  --yellow: #f59e0b;
  --text: #e8f0fe;
  --text2: #94a3b8;
  --text3: #4a6080;
  --storm: #3b82f6;
}

body { 
  background: var(--bg); 
  color: var(--text); 
  font-family: 'Exo 2', sans-serif; 
  min-height: 100vh; 
  overflow-x: hidden; 
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

.app { min-height: 100vh; display: flex; flex-direction: column; }
.content { flex: 1; }

/* HEADER */
.header {
  background: rgba(8,12,20,0.95);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
  user-select: none;
}
.logo span { color: var(--cyan); }

.nav { display: flex; gap: 8px; align-items: center; }
.nav-btn {
  background: none;
  border: none;
  color: var(--text2);
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .5px;
  text-decoration: none;
  display: inline-block;
}
.nav-btn:hover { color: var(--text); background: var(--card); }
.nav-btn.active { color: var(--blue); background: rgba(14,165,233,.1); }

.header-actions { display: flex; gap: 10px; align-items: center; }
.badge-btn {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  text-decoration: none;
}
.badge-btn:hover { border-color: var(--blue); }
.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Exo 2', sans-serif;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), #0284c7);
  color: #fff;
  box-shadow: 0 0 20px rgba(14,165,233,.3);
}
.btn-primary:hover { box-shadow: 0 0 30px rgba(14,165,233,.5); transform: translateY(-1px); }
.btn-secondary { background: var(--card2); color: var(--text); border: 1px solid var(--border2); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--card); color: var(--text); }
.btn-success { 
  background: linear-gradient(135deg, var(--cyan), #059669); 
  color: #fff; 
  box-shadow: 0 0 20px rgba(6,214,160,.2); 
}
.btn-success:hover { box-shadow: 0 0 30px rgba(6,214,160,.4); transform: translateY(-1px); }
.btn-danger { background: rgba(239,68,68,.15); color: var(--red); border: 1px solid rgba(239,68,68,.3); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* CARDS */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: border-color .2s;
}
.card:hover { border-color: var(--border2); }
.card-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

/* INPUTS */
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-label { 
  font-size: 12px; 
  font-weight: 600; 
  color: var(--text2); 
  letter-spacing: .5px; 
  text-transform: uppercase; 
}
.input {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  transition: all .2s;
  outline: none;
  width: 100%;
}
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(14,165,233,.1); }
.input::placeholder { color: var(--text3); }
select.input { cursor: pointer; }
textarea.input { resize: vertical; min-height: 100px; }

/* GRID */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

/* STAT CARD */
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent, var(--blue));
}
.stat-label { 
  font-size: 12px; 
  color: var(--text2); 
  font-weight: 600; 
  text-transform: uppercase; 
  letter-spacing: .5px; 
}
.stat-value { 
  font-family: 'Bebas Neue', sans-serif; 
  font-size: 36px; 
  letter-spacing: 1px; 
  color: var(--text); 
  line-height: 1; 
}
.stat-sub { font-size: 12px; color: var(--text2); }
.stat-up { color: var(--cyan); }
.stat-icon { 
  position: absolute; 
  right: 20px; 
  top: 20px; 
  font-size: 32px; 
  opacity: .2; 
}

/* STATUS BADGE */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.status::before { 
  content: ''; 
  width: 6px; 
  height: 6px; 
  border-radius: 50%; 
  background: currentColor; 
}
.status-delivered { background: rgba(6,214,160,.1); border: 1px solid rgba(6,214,160,.2); color: var(--cyan); }
.status-shipped { background: rgba(14,165,233,.1); border: 1px solid rgba(14,165,233,.2); color: var(--blue); }
.status-processing { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.2); color: var(--yellow); }
.status-pending { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.2); color: var(--red); }
.status-active { background: rgba(6,214,160,.1); border: 1px solid rgba(6,214,160,.2); color: var(--cyan); }
.status-inactive { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.2); color: var(--red); }

/* TABLE */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { 
  padding: 10px 16px; 
  text-align: left; 
  font-size: 11px; 
  font-weight: 700; 
  color: var(--text3); 
  text-transform: uppercase; 
  letter-spacing: .5px; 
  border-bottom: 1px solid var(--border); 
}
td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text2); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(14,165,233,.03); color: var(--text); }

/* HERO */
.hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 48px;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(14,165,233,.08) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 80% 80%, rgba(6,214,160,.05) 0%, transparent 60%),
              var(--bg);
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), 
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-content { position: relative; max-width: 600px; }
.hero-tag { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  background: rgba(14,165,233,.1); 
  border: 1px solid rgba(14,165,233,.2); 
  color: var(--blue); 
  padding: 6px 14px; 
  border-radius: 20px; 
  font-size: 12px; 
  font-weight: 700; 
  letter-spacing: 1px; 
  text-transform: uppercase; 
  margin-bottom: 24px; 
}
.hero-title { 
  font-family: 'Bebas Neue', sans-serif; 
  font-size: 72px; 
  line-height: .95; 
  letter-spacing: 2px; 
  margin-bottom: 24px; 
}
.hero-title .accent { 
  background: linear-gradient(135deg, var(--blue), var(--cyan)); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
}
.hero-desc { 
  font-size: 18px; 
  color: var(--text2); 
  line-height: 1.6; 
  margin-bottom: 36px; 
  font-weight: 300; 
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { 
  position: absolute; 
  right: 48px; 
  top: 50%; 
  transform: translateY(-50%); 
  font-size: 200px; 
  opacity: .06; 
  user-select: none; 
}

/* PRODUCT CARD */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all .25s;
  cursor: pointer;
}
.product-card:hover { 
  border-color: var(--blue); 
  transform: translateY(-4px); 
  box-shadow: 0 12px 40px rgba(14,165,233,.15); 
}
.product-img {
  height: 180px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  position: relative;
}
.product-badge { 
  position: absolute; 
  top: 12px; 
  right: 12px; 
  background: rgba(14,165,233,.15); 
  border: 1px solid var(--blue); 
  color: var(--blue); 
  padding: 4px 10px; 
  border-radius: 6px; 
  font-size: 11px; 
  font-weight: 700; 
  font-family: 'JetBrains Mono', monospace; 
}
.product-info { padding: 16px; }
.product-name { font-size: 14px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.product-desc { font-size: 12px; color: var(--text3); margin-bottom: 12px; line-height: 1.5; }
.product-price { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 1px; color: var(--text); }
.product-rating { 
  display: flex; 
  align-items: center; 
  gap: 4px; 
  font-size: 12px; 
  color: var(--yellow); 
  margin-bottom: 8px; 
}
.product-rating span { color: var(--text3); }
.product-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; }

/* CATEGORY PILLS */
.cat-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.cat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all .2s;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  text-decoration: none;
}
.cat-pill:hover { border-color: var(--border2); color: var(--text); }
.cat-pill.active { border-color: var(--blue); color: var(--blue); background: rgba(14,165,233,.08); }

/* SECTION */
.section { padding: 60px 48px; }
.section-title { 
  font-family: 'Bebas Neue', sans-serif; 
  font-size: 42px; 
  letter-spacing: 2px; 
  margin-bottom: 8px; 
}
.section-sub { color: var(--text2); margin-bottom: 40px; font-size: 15px; }

/* SIDEBAR LAYOUT */
.sidebar-layout { display: flex; min-height: calc(100vh - 64px); }
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-section { 
  padding: 8px 12px; 
  font-size: 10px; 
  font-weight: 700; 
  color: var(--text3); 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  margin-top: 16px; 
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: all .2s;
  text-decoration: none;
}
.sidebar-item:hover { background: var(--card); color: var(--text); }
.sidebar-item.active { 
  background: rgba(14,165,233,.1); 
  color: var(--blue); 
  border: 1px solid rgba(14,165,233,.2); 
}
.sidebar-icon { font-size: 18px; width: 22px; text-align: center; }
.main-content { flex: 1; padding: 32px; overflow-y: auto; }

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.modal-title { 
  font-family: 'Bebas Neue', sans-serif; 
  font-size: 32px; 
  letter-spacing: 2px; 
  margin-bottom: 24px; 
}
.modal-close { 
  position: absolute; 
  top: 20px; 
  right: 20px; 
  background: var(--card); 
  border: 1px solid var(--border); 
  color: var(--text2); 
  width: 36px; 
  height: 36px; 
  border-radius: 8px; 
  cursor: pointer; 
  font-size: 18px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}
.modal-close:hover { color: var(--text); }

/* CART ITEM */
.cart-item { 
  display: flex; 
  gap: 12px; 
  padding: 16px 0; 
  border-bottom: 1px solid var(--border); 
}
.cart-item-img { 
  font-size: 36px; 
  width: 56px; 
  height: 56px; 
  background: var(--card); 
  border-radius: 10px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  flex-shrink: 0; 
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.cart-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn { 
  width: 28px; 
  height: 28px; 
  border-radius: 6px; 
  background: var(--card); 
  border: 1px solid var(--border); 
  color: var(--text); 
  cursor: pointer; 
  font-size: 16px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}
.total-row { 
  display: flex; 
  justify-content: space-between; 
  margin-bottom: 8px; 
  font-size: 14px; 
  color: var(--text2); 
}
.total-row.big { color: var(--text); font-size: 18px; font-weight: 700; }

/* TABS */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .2s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ALERT */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }
.alert-info { 
  background: rgba(14,165,233,.1); 
  border: 1px solid rgba(14,165,233,.2); 
  color: var(--blue); 
}
.alert-success { 
  background: rgba(6,214,160,.1); 
  border: 1px solid rgba(6,214,160,.2); 
  color: var(--cyan); 
}
.alert-warning { 
  background: rgba(245,158,11,.1); 
  border: 1px solid rgba(245,158,11,.2); 
  color: var(--yellow); 
}

/* FORM */
.form-row { display: flex; gap: 16px; }
.form-row .input-group { flex: 1; }

/* PAGE HEADER */
.page-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  margin-bottom: 28px; 
}
.page-title { 
  font-family: 'Bebas Neue', sans-serif; 
  font-size: 36px; 
  letter-spacing: 2px; 
}
.page-sub { color: var(--text2); font-size: 14px; margin-top: 4px; }

/* PROFIT HIGHLIGHT */
.profit { color: var(--cyan); font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.price-drop { 
  color: var(--blue); 
  font-family: 'JetBrains Mono', monospace; 
  font-size: 13px; 
}

/* STEP */
.step-list { display: flex; flex-direction: column; gap: 0; }
.step-item { 
  display: flex; 
  gap: 20px; 
  padding: 20px 0; 
  border-bottom: 1px solid var(--border); 
  position: relative; 
}
.step-item:last-child { border-bottom: none; }
.step-num { 
  width: 36px; 
  height: 36px; 
  border-radius: 50%; 
  background: linear-gradient(135deg, var(--blue), var(--cyan)); 
  color: #fff; 
  font-weight: 800; 
  font-size: 14px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  flex-shrink: 0; 
}
.step-content { flex: 1; }
.step-title { font-weight: 700; margin-bottom: 4px; }
.step-desc { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* FEATURE CARD */
.feature-card { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: 16px; 
  padding: 28px; 
  transition: all .25s; 
}
.feature-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* FOOTER */
.footer { 
  background: var(--bg2); 
  border-top: 1px solid var(--border); 
  padding: 32px 48px; 
  text-align: center; 
  color: var(--text3); 
  font-size: 13px; 
}

/* DROPPER HEADER */
.dropper-header { 
  background: linear-gradient(135deg, rgba(14,165,233,.08), rgba(6,214,160,.05)); 
  border: 1px solid var(--border2); 
  border-radius: 16px; 
  padding: 24px; 
  display: flex; 
  align-items: center; 
  gap: 20px; 
  margin-bottom: 28px; 
}
.dropper-avatar { 
  width: 60px; 
  height: 60px; 
  border-radius: 14px; 
  background: linear-gradient(135deg, var(--blue), var(--cyan)); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 28px; 
}
.dropper-name { font-size: 20px; font-weight: 800; }
.dropper-id { 
  font-family: 'JetBrains Mono', monospace; 
  font-size: 12px; 
  color: var(--text3); 
}

/* EMPTY STATE */
.empty { text-align: center; padding: 60px 24px; color: var(--text3); }
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: .5; }
.empty-text { font-size: 16px; }

/* STOCK BAR */
.stock-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.stock-fill { height: 100%; border-radius: 2px; transition: width .4s; }

@media (max-width: 768px) {
  .section { padding: 40px 20px; }
  .hero { padding: 40px 20px; }
  .hero-title { font-size: 48px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .sidebar-layout { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; overflow-x: auto; padding: 12px; }
  .main-content { padding: 20px; }
}
