/* ============================================================
   DISHA AGRO MLM - MAIN CSS
   Premium Agriculture Green Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
  --g1: #0d3b1e;
  --g2: #1a5c2a;
  --g3: #2d8a45;
  --g4: #4caf6e;
  --g5: #a8e6bb;
  --g6: #e8f8ed;
  --am1: #92480a;
  --am2: #c96b0d;
  --am3: #e87d1e;
  --am4: #f5a623;
  --am5: #ffeac0;
  --dark: #0a1f10;
  --text1: #1a2e1d;
  --text2: #4a6b52;
  --text3: #8aab92;
  --border: rgba(45,138,69,0.15);
  --white: #ffffff;
  --bg: #f4faf6;
  --shadow-sm: 0 1px 4px rgba(26,92,42,0.08);
  --shadow: 0 2px 16px rgba(26,92,42,0.10);
  --shadow-lg: 0 8px 32px rgba(26,92,42,0.14);
  --radius: 10px;
  --radius-lg: 16px;
}

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

body {
  font-family: 'Inter', 'Hind Siliguri', sans-serif;
  background: var(--bg);
  color: var(--text1);
  font-size: 14px;
  line-height: 1.6;
}

body.lang-bn { font-family: 'Hind Siliguri', 'Inter', sans-serif; }

a { text-decoration: none; color: var(--g3); }
a:hover { color: var(--g2); }
img { max-width: 100%; }

/* ---- TOPBAR ---- */
.topbar {
  background: var(--dark);
  padding: 7px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; }
.topbar a { color: rgba(255,255,255,0.7); margin: 0 8px; }
.topbar a:hover { color: var(--am4); }

/* ---- NAVBAR ---- */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--g6);
}
.navbar .container {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  gap: 16px;
}
.navbar-brand { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.brand-logo { width: 42px; height: 42px; }
.brand-text .brand-name {
  font-size: 20px; font-weight: 800; color: var(--g2); line-height: 1.1;
}
.brand-text .brand-tag { font-size: 10px; color: var(--text3); letter-spacing: 0.5px; }

.nav-menu { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-menu a {
  padding: 8px 13px; border-radius: 6px; font-size: 13px; font-weight: 500;
  color: var(--text1); transition: all 0.2s; white-space: nowrap;
}
.nav-menu a:hover, .nav-menu a.active { background: var(--g6); color: var(--g2); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.lang-switch { display: flex; align-items: center; gap: 4px; background: var(--bg); border-radius: 20px; padding: 3px; border: 1px solid var(--border); }
.lang-btn {
  padding: 4px 12px; border-radius: 16px; font-size: 11px; font-weight: 600;
  cursor: pointer; border: none; background: transparent; color: var(--text2); transition: all 0.2s;
  display: flex; align-items: center; gap: 4px;
}
.lang-btn.active { background: var(--g2); color: #fff; }
.lang-flag { font-size: 13px; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.btn-outline { background: transparent; border: 1.5px solid var(--g3); color: var(--g3); }
.btn-outline:hover { background: var(--g6); }
.btn-primary { background: var(--g2); color: #fff; }
.btn-primary:hover { background: var(--g3); }
.btn-gold { background: linear-gradient(135deg, var(--am3), var(--am4)); color: #fff; }
.btn-gold:hover { opacity: 0.9; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ---- USER HEADER ---- */
.user-avatar-wrap { display: flex; align-items: center; gap: 8px; cursor: pointer; position: relative; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--g4); }
.user-info-mini .u-name { font-size: 13px; font-weight: 600; color: var(--text1); }
.user-info-mini .u-id { font-size: 11px; color: var(--text3); }
.notif-btn { position: relative; background: var(--bg); border: 1px solid var(--border); width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text2); }
.notif-dot { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--am3); border: 2px solid #fff; }

/* ---- LAYOUT ---- */
.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.dashboard-layout { display: flex; min-height: calc(100vh - 62px); }

/* ---- SIDEBAR ---- */
.sidebar {
  width: 230px;
  min-width: 230px;
  background: var(--g1);
  min-height: 100%;
  position: sticky;
  top: 62px;
  height: calc(100vh - 62px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.sidebar-user-card {
  padding: 18px 16px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--am4); object-fit: cover; }
.sidebar-user-name { font-size: 13px; font-weight: 600; color: #fff; }
.sidebar-user-id { font-size: 11px; color: rgba(255,255,255,0.5); }
.sidebar-rank { font-size: 10px; font-weight: 600; background: rgba(245,166,35,0.2); color: var(--am4); padding: 2px 8px; border-radius: 10px; display: inline-block; margin-top: 3px; }

.sidebar-nav { padding: 10px 0; flex: 1; }
.sidebar-section-title { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.3); padding: 10px 16px 4px; }

.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; color: rgba(255,255,255,0.65); font-size: 13px; font-weight: 400;
  transition: all 0.2s; border-left: 3px solid transparent; position: relative;
}
.sidebar-nav a i { font-size: 17px; min-width: 20px; }
.sidebar-nav a:hover { background: rgba(255,255,255,0.07); color: #fff; }
.sidebar-nav a.active { background: rgba(77,207,110,0.12); color: var(--g4); border-left-color: var(--g4); font-weight: 500; }
.sidebar-nav a .nav-badge { margin-left: auto; background: var(--am3); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 10px; min-width: 18px; text-align: center; }

.sidebar-join-box {
  margin: 10px 12px;
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.sidebar-join-box p { font-size: 12px; color: rgba(255,255,255,0.7); margin-bottom: 8px; line-height: 1.4; }
.sidebar-join-box .brand-name-sm { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }

/* ---- MAIN CONTENT ---- */
.main-content { flex: 1; padding: 20px; overflow-x: hidden; }

/* ---- HERO SECTION (Dashboard Banner) ---- */
.hero-banner {
  background: var(--g2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  min-height: 200px;
  display: flex;
  align-items: center;
}
.hero-banner::before {
  content: ''; position: absolute; inset: 0;
  background: url('../images/farm-bg.jpg') center/cover no-repeat;
  opacity: 0.2;
}
.hero-content { position: relative; z-index: 1; padding: 28px 32px; flex: 1; }
.hero-title { font-size: 28px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 6px; }
.hero-subtitle { font-size: 14px; color: rgba(255,255,255,0.8); margin-bottom: 16px; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-badge { background: rgba(255,255,255,0.15); color: #fff; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 5px; }
.hero-features { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-feat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-feat-icon { width: 42px; height: 42px; background: rgba(255,255,255,0.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; }
.hero-feat span { font-size: 11px; color: rgba(255,255,255,0.8); text-align: center; font-weight: 500; }
.hero-image { position: relative; z-index: 1; padding: 0 24px 0 0; }
.hero-image img { height: 190px; object-fit: contain; }
.organic-badge { position: absolute; top: 16px; right: 80px; background: var(--am4); color: var(--am1); font-size: 11px; font-weight: 700; padding: 8px 10px; border-radius: 50%; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; }

/* ---- STAT CARDS ---- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-card-label { font-size: 12px; color: var(--text3); font-weight: 500; margin-bottom: 4px; }
.stat-card-value { font-size: 20px; font-weight: 800; color: var(--text1); }
.stat-card-sub { font-size: 11px; color: var(--text3); margin-top: 3px; }
.stat-card-sub.green { color: var(--g3); font-weight: 500; }
.stat-card-sub.amber { color: var(--am3); font-weight: 500; }

/* ---- SECTION CARDS ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--g6);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 15px; font-weight: 700; color: var(--text1); display: flex; align-items: center; gap: 8px; }
.card-title i { color: var(--g3); }
.card-body { padding: 16px 18px; }
.card-footer { padding: 12px 18px; border-top: 1px solid var(--g6); background: var(--bg); }

/* ---- SECTION GRIDS ---- */
.section-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.section-row-3 { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 16px; margin-bottom: 20px; }

/* ---- PRODUCTS GRID ---- */
.products-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.product-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; transition: all 0.2s; cursor: pointer;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--g4); }
.product-img-wrap { height: 110px; background: var(--g6); display: flex; align-items: center; justify-content: center; position: relative; }
.product-img-wrap img { height: 90px; object-fit: contain; }
.product-badge { position: absolute; top: 6px; left: 6px; background: var(--am4); color: var(--am1); font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.product-info { padding: 10px 10px 12px; }
.product-name { font-size: 12px; font-weight: 600; color: var(--text1); margin-bottom: 2px; line-height: 1.3; }
.product-size { font-size: 10px; color: var(--text3); margin-bottom: 6px; }
.product-price-row { display: flex; align-items: baseline; gap: 5px; }
.product-price { font-size: 15px; font-weight: 800; color: var(--g2); }
.product-mrp { font-size: 10px; color: var(--text3); text-decoration: line-through; }
.product-pv { font-size: 10px; color: var(--text3); }
.product-cart-btn { width: 28px; height: 28px; background: var(--g2); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; cursor: pointer; border: none; transition: background 0.2s; }
.product-cart-btn:hover { background: var(--g3); }

/* ---- ORDER TABLE ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--g6); }
th { padding: 10px 12px; font-size: 12px; font-weight: 600; color: var(--text2); text-align: left; white-space: nowrap; }
td { padding: 11px 12px; font-size: 13px; color: var(--text1); border-top: 1px solid var(--g6); }
tr:hover td { background: #fafffe; }
.badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.badge-green { background: var(--g6); color: var(--g2); }
.badge-amber { background: var(--am5); color: var(--am2); }
.badge-red { background: #fde8e8; color: #c0392b; }
.badge-blue { background: #e8f3fc; color: #1a5d9a; }
.badge-gray { background: #f0f0f0; color: #666; }

/* ---- INCOME CHART ---- */
.chart-wrap { position: relative; height: 200px; }

/* ---- DONUT CHART ---- */
.donut-wrap { display: flex; align-items: center; gap: 16px; }
.donut-canvas-wrap { position: relative; width: 140px; height: 140px; flex-shrink: 0; }
.donut-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; }
.donut-center-val { font-size: 18px; font-weight: 800; color: var(--text1); }
.donut-center-label { font-size: 10px; color: var(--text3); }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-text { font-size: 12px; color: var(--text2); flex: 1; }
.legend-pct { font-size: 12px; font-weight: 600; color: var(--text1); }

/* ---- GENEALOGY / TEAM TREE ---- */
.genealogy-section { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.genealogy-controls { display: flex; align-items: center; gap: 8px; }
.view-btn { padding: 5px 14px; border-radius: 6px; font-size: 12px; font-weight: 500; border: 1px solid var(--border); background: var(--bg); color: var(--text2); cursor: pointer; display: flex; align-items: center; gap: 5px; transition: all 0.2s; }
.view-btn.active { background: var(--g2); color: #fff; border-color: var(--g2); }
.tree-wrap { overflow-x: auto; padding: 20px; min-height: 260px; }
.tree-node { display: inline-flex; flex-direction: column; align-items: center; }
.tree-box {
  padding: 8px 16px; border-radius: 8px; border: 2px solid var(--g3);
  background: var(--g6); min-width: 100px; text-align: center;
  font-size: 12px; font-weight: 600; color: var(--g1); white-space: nowrap;
}
.tree-box.root { background: var(--g2); color: #fff; border-color: var(--g2); padding: 10px 20px; font-size: 13px; }
.tree-box .tree-id { font-size: 10px; opacity: 0.7; font-weight: 400; display: block; }
.tree-connector-v { width: 2px; height: 18px; background: var(--g4); }
.tree-connector-h { height: 2px; background: var(--g4); }
.tree-level-row { display: flex; gap: 16px; justify-content: center; align-items: flex-start; }
.tree-child { display: flex; flex-direction: column; align-items: center; }
.tree-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tree-stat { background: var(--g6); border-radius: 10px; padding: 14px; text-align: center; }
.tree-stat-val { font-size: 22px; font-weight: 800; color: var(--g2); }
.tree-stat-label { font-size: 12px; color: var(--text2); }

/* ---- WALLET ---- */
.wallet-hero { background: var(--g2); border-radius: var(--radius-lg); padding: 20px 24px; color: #fff; margin-bottom: 16px; position: relative; overflow: hidden; }
.wallet-hero::before { content: ''; position: absolute; right: -30px; top: -30px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.wallet-total-label { font-size: 13px; opacity: 0.8; margin-bottom: 4px; }
.wallet-total-amount { font-size: 36px; font-weight: 800; color: var(--am4); }
.wallet-sub-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.wallet-sub { background: rgba(255,255,255,0.1); border-radius: 10px; padding: 12px 14px; }
.wallet-sub-label { font-size: 11px; opacity: 0.7; margin-bottom: 3px; }
.wallet-sub-val { font-size: 18px; font-weight: 700; color: #fff; }
.wallet-btns { display: flex; gap: 10px; margin-top: 14px; }

/* ---- SCRATCH CARD ---- */
.scratch-card-item {
  border: 1.5px dashed var(--am3); border-radius: 12px;
  padding: 14px 16px; background: var(--am5);
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: all 0.2s; margin-bottom: 10px;
}
.scratch-card-item:hover { transform: scale(1.01); background: #fff3d0; }
.scratch-card-item.revealed { border-color: var(--g3); background: var(--g6); }
.scratch-coin {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--am4); display: flex; align-items: center;
  justify-content: center; font-size: 20px; flex-shrink: 0;
  font-weight: 700; color: var(--am1);
}
.scratch-coin.revealed { background: var(--g4); color: var(--g1); }
.scratch-info { flex: 1; }
.scratch-title { font-size: 13px; font-weight: 600; color: var(--text1); }
.scratch-sub { font-size: 11px; color: var(--text3); margin-top: 2px; }
.scratch-amount { font-size: 20px; font-weight: 800; color: var(--am2); }
.scratch-amount.revealed { color: var(--g2); }

/* ---- FORMS ---- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text2); margin-bottom: 5px; }
.form-label .req { color: var(--am3); }
.form-control {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 13px; color: var(--text1);
  font-family: inherit; background: var(--bg); transition: all 0.2s; outline: none;
}
.form-control:focus { border-color: var(--g3); background: #fff; box-shadow: 0 0 0 3px rgba(45,138,69,0.08); }
.form-control::placeholder { color: var(--text3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { font-size: 11px; color: var(--text3); margin-top: 4px; }
.form-error { font-size: 11px; color: #e74c3c; margin-top: 4px; }

/* ---- ALERTS ---- */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; display: flex; align-items: flex-start; gap: 10px; }
.alert-success { background: var(--g6); border: 1px solid var(--g4); color: var(--g2); }
.alert-danger { background: #fde8e8; border: 1px solid #f5b7b7; color: #c0392b; }
.alert-warning { background: var(--am5); border: 1px solid var(--am4); color: var(--am1); }
.alert-info { background: #e8f3fc; border: 1px solid #b5d4f4; color: #1a5d9a; }

/* ---- AUTH PAGES ---- */
.auth-page { min-height: 100vh; background: var(--g1); display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; overflow: hidden; }
.auth-page::before { content: ''; position: absolute; inset: 0; background: url('../images/farm-bg.jpg') center/cover; opacity: 0.08; }
.auth-card { background: #fff; border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,0.3); width: 100%; max-width: 500px; overflow: hidden; position: relative; z-index: 1; }
.auth-card-header { background: var(--g2); padding: 28px; text-align: center; }
.auth-card-header .logo-wrap { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
.auth-card-header .logo-wrap img { width: 44px; height: 44px; }
.auth-card-header h2 { font-size: 22px; font-weight: 800; color: #fff; }
.auth-card-header p { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 4px; }
.auth-card-body { padding: 28px 30px; }

/* OTP INPUT */
.otp-group { display: flex; gap: 8px; }
.otp-input { flex: 1; text-align: center; font-size: 20px; font-weight: 700; padding: 10px; border: 1.5px solid var(--border); border-radius: 8px; outline: none; }
.otp-input:focus { border-color: var(--g3); }

/* CAPTCHA */
.captcha-box { border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; background: var(--bg); display: flex; align-items: center; gap: 12px; }
.captcha-check-wrap { display: flex; align-items: center; gap: 10px; flex: 1; }
.captcha-checkbox { width: 20px; height: 20px; border: 2px solid var(--g3); border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.captcha-checkbox.checked { background: var(--g3); }
.captcha-checkbox.checked::after { content: '✓'; color: #fff; font-size: 12px; font-weight: 700; }

/* ---- INCOME LEVELS ---- */
.level-income-grid { display: flex; flex-direction: column; gap: 8px; }
.level-row { display: flex; align-items: center; gap: 10px; }
.level-label { font-size: 12px; color: var(--text2); width: 70px; flex-shrink: 0; font-weight: 500; }
.level-bar-wrap { flex: 1; height: 8px; background: var(--g6); border-radius: 4px; overflow: hidden; }
.level-bar-fill { height: 100%; border-radius: 4px; background: var(--g3); transition: width 0.8s ease; }
.level-amt { font-size: 12px; font-weight: 600; color: var(--text1); width: 70px; text-align: right; }
.level-pct { font-size: 11px; color: var(--text3); width: 35px; text-align: right; }

/* ---- PAGINATED REPORTS ---- */
.report-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pagination { display: flex; gap: 4px; align-items: center; }
.page-btn { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; color: var(--text2); background: #fff; transition: all 0.2s; }
.page-btn:hover, .page-btn.active { background: var(--g2); color: #fff; border-color: var(--g2); }

/* ---- ADMIN ---- */
.admin-body { background: #f8fafb; }
.admin-header { background: var(--g1); padding: 0 20px; height: 60px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1000; }
.admin-logo { font-size: 18px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; }
.admin-logo span { color: var(--am4); }
.admin-nav-top { display: flex; align-items: center; gap: 10px; }
.admin-layout { display: flex; min-height: calc(100vh - 60px); }
.admin-sidebar { width: 220px; min-width: 220px; background: var(--dark); }
.admin-main { flex: 1; padding: 24px; }
.admin-sidebar a { display: flex; align-items: center; gap: 10px; padding: 11px 18px; color: rgba(255,255,255,0.6); font-size: 13px; transition: all 0.2s; border-left: 3px solid transparent; }
.admin-sidebar a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-sidebar a.active { background: rgba(77,207,110,0.1); color: var(--g4); border-left-color: var(--g4); }
.admin-sidebar a i { font-size: 16px; min-width: 20px; }
.admin-sidebar .sidebar-section-title { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.25); padding: 12px 18px 4px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.admin-stat-card { background: #fff; border-radius: var(--radius); padding: 16px 18px; border: 1px solid #e8eef2; display: flex; align-items: flex-start; gap: 14px; }
.admin-stat-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.admin-stat-val { font-size: 22px; font-weight: 800; color: #1a1a2e; }
.admin-stat-label { font-size: 12px; color: #7a8a99; }

/* ---- TOGGLE ---- */
.toggle { width: 44px; height: 24px; border-radius: 12px; background: #ddd; position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; border: none; }
.toggle.on { background: var(--g3); }
.toggle::after { content: ''; width: 18px; height: 18px; border-radius: 50%; background: #fff; position: absolute; top: 3px; left: 3px; transition: left 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.toggle.on::after { left: 23px; }

/* ---- FOOTER ---- */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 16px 0; font-size: 12px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-features { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-feat { display: flex; align-items: center; gap: 7px; }
.footer-feat i { font-size: 16px; color: var(--g4); }
.footer-feat-text .title { font-size: 12px; font-weight: 600; color: #fff; }
.footer-feat-text .sub { font-size: 10px; opacity: 0.6; }
.footer-support { display: flex; align-items: center; gap: 10px; }
.footer-payments { display: flex; align-items: center; gap: 8px; }
.payment-logo { height: 22px; background: #fff; border-radius: 4px; padding: 2px 6px; display: flex; align-items: center; }
.payment-logo span { font-size: 11px; font-weight: 700; }
.footer-bottom { background: #060f08; padding: 10px 0; font-size: 11px; color: rgba(255,255,255,0.4); }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; }

/* ---- WHATSAPP FAB ---- */
.whatsapp-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,211,102,0.5);
  z-index: 999; animation: waPulse 2s infinite;
  border: none; text-decoration: none;
}
@keyframes waPulse { 0%,100%{box-shadow:0 4px 16px rgba(37,211,102,0.4)}50%{box-shadow:0 4px 28px rgba(37,211,102,0.8)} }

/* ---- MOBILE RESPONSIVE ---- */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--text1); }

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .section-row-3 { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 900px) {
  .sidebar { display: none; position: fixed; left: 0; top: 62px; z-index: 999; height: calc(100vh - 62px); }
  .sidebar.open { display: flex; }
  .hamburger { display: block; }
  .nav-menu { display: none; }
  .section-row-2 { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .hero-title { font-size: 20px; }
  .hero-image { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-features { gap: 12px; }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--g4); border-radius: 3px; }

/* ---- UTILITIES ---- */
.text-center { text-align: center; }
.text-green { color: var(--g3); }
.text-amber { color: var(--am3); }
.text-red { color: #e74c3c; }
.text-muted { color: var(--text3); }
.fw-700 { font-weight: 700; }
.mt-10 { margin-top: 10px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.gap-8 { gap: 8px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }
.divider { border: none; border-top: 1px solid var(--g6); margin: 14px 0; }

/* ---- ANIMATIONS ---- */
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none} }
.fade-in { animation: fadeIn 0.3s ease forwards; }

/* ---- PRINT ---- */
@media print { .sidebar, .topbar, .navbar, .whatsapp-fab, .footer { display: none!important; } .main-content { padding: 0; } }
