/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f8fafc;
  --card:        #ffffff;
  --card2:       #f1f5f9;
  --accent:      #16a34a;
  --accent-dark: #15803d;
  --highlight:   #f59e0b;
  --text:        #111827;
  --muted:       #6b7280;
  --border:      #e5e7eb;
  --shadow:      0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.10);
  --radius:      14px;
  --radius-sm:   8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scroll::-webkit-scrollbar { display: none; }

/* ========== TELEGRAM BANNER ========== */
#telegram-banner {
  background: linear-gradient(90deg, #229ED9, #0088CC);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
}
#telegram-banner a {
  background: rgba(255,255,255,0.22);
  border-radius: 20px;
  padding: 4px 14px;
  font-weight: 700;
  font-size: 12px;
  margin-left: auto;
  flex-shrink: 0;
  transition: background .2s;
}
#telegram-banner a:hover { background: rgba(255,255,255,0.38); }
#telegram-banner .tg-icon { font-size: 18px; flex-shrink: 0; }
#telegram-banner .close-btn {
  background: none;
  color: rgba(255,255,255,0.75);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  padding: 0 4px;
}
#telegram-banner .close-btn:hover { color: #fff; }

/* ========== INSTALL BANNER ========== */
#install-banner {
  display: none;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
#install-banner.show { display: flex; }
#install-banner .app-icon {
  width: 42px; height: 42px;
  background: #dcfce7;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
#install-banner .install-text { flex: 1; min-width: 0; }
#install-banner .install-text strong { display: block; font-size: 13px; color: var(--text); }
#install-banner .install-text span { font-size: 11px; color: var(--muted); }
#install-banner .btn-install {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background .2s;
}
#install-banner .btn-install:hover { background: var(--accent-dark); }
#install-banner .close-install {
  background: none;
  color: var(--muted);
  font-size: 18px;
  flex-shrink: 0;
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 8px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo-icon { font-size: 22px; }
.logo-paisa { color: var(--accent); }
.logo-offers { color: var(--text); }
.live-badge {
  background: #dcfce7;
  color: var(--accent);
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  margin-left: auto;
  letter-spacing: .5px;
}

/* ========== SEARCH ========== */
.search-wrap {
  padding: 0 16px 10px;
  position: relative;
}
.search-wrap .icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
}
#search-input {
  width: 100%;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  padding: 10px 36px 10px 38px;
  transition: border-color .2s, box-shadow .2s;
}
#search-input::placeholder { color: #9ca3af; }
#search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
  background: #fff;
}
.search-clear {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: var(--muted);
  font-size: 18px;
  display: none;
  line-height: 1;
}

/* ========== CATEGORY PILLS ========== */
.cat-scroll {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  transition: all .2s;
  cursor: pointer;
}
.cat-pill.active, .cat-pill:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ========== MAIN CONTENT ========== */
.main { padding: 0 16px; padding-bottom: 90px; }

/* ========== SECTION HEADER ========== */
.sec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 12px;
}
.sec-head h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.sec-head .badge {
  margin-left: auto;
  background: #fee2e2;
  color: #ef4444;
  border: 1px solid #fecaca;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

/* ========== HORIZONTAL SCROLL ROW ========== */
.h-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll .deal-card { flex-shrink: 0; width: 180px; }

/* ========== DEAL GRID ========== */
.deal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* ========== DEAL CARD ========== */
.deal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.deal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #d1d5db;
}
.deal-card:active { transform: scale(0.98); }

.card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--card2);
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.deal-card:hover .card-img img { transform: scale(1.05); }

.discount-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--highlight);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  box-shadow: 0 1px 6px rgba(245,158,11,0.35);
}
.tag-badge {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
}
.tag-trending { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }
.tag-lightning { background: #fefce8; color: #ca8a04; border: 1px solid #fde68a; }
.tag-new       { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.tag-hot       { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.tag-expiring  { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }

.timer-strip {
  position: absolute;
  bottom: 8px; left: 8px; right: 8px;
  background: rgba(0,0,0,0.62);
  border-radius: 6px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #fde68a;
}

.card-body { padding: 10px; }
.store-line {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}
.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}
.price-now { font-size: 18px; font-weight: 800; color: var(--accent); }
.price-was { font-size: 11px; color: #9ca3af; text-decoration: line-through; }

.coupon-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fffbeb;
  border: 1px dashed #fcd34d;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  font-family: monospace;
  color: #b45309;
  margin-bottom: 10px;
}

.card-actions { display: flex; gap: 6px; }
.btn-grab {
  flex: 1;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 0;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background .2s, transform .1s;
}
.btn-grab:hover { background: var(--accent-dark); }
.btn-grab:active { transform: scale(0.96); }

.btn-share {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.btn-share:hover { background: #dcfce7; }

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state .emoji { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 16px; color: var(--text); margin-bottom: 4px; }
.empty-state p { font-size: 13px; }

/* ========== BOTTOM NAV ========== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 0;
  background: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  transition: color .2s;
  text-decoration: none;
  cursor: pointer;
}
.nav-item .nav-icon { font-size: 20px; }
.nav-item.active, .nav-item:hover { color: var(--accent); }

/* ========== FLOATING WHATSAPP ========== */
#fab-wa {
  position: fixed;
  bottom: 76px; right: 16px;
  z-index: 90;
  width: 48px; height: 48px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
#fab-wa:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,.45); }

/* ========== EXIT POPUP ========== */
#exit-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#exit-overlay.show { display: flex; }
.exit-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-md);
}
.exit-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}
.exit-close:hover { color: var(--text); }
.exit-icon {
  width: 64px; height: 64px;
  background: #dcfce7;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
}
.exit-box h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.exit-box p { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
.exit-highlight {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}
.exit-highlight strong { color: var(--accent); font-size: 14px; display: block; }
.exit-highlight span { color: var(--muted); font-size: 11px; }
.btn-exit-go {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  transition: background .2s;
}
.btn-exit-go:hover { background: var(--accent-dark); }
.btn-exit-skip { background: none; color: var(--muted); font-size: 12px; }
.btn-exit-skip:hover { color: var(--text); }

/* ========== DEAL PAGE ========== */
.deal-page-wrap { padding-bottom: 90px; }
.deal-back {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}
.deal-back a { color: var(--muted); font-size: 20px; }
.deal-back a:hover { color: var(--text); }
.deal-back h1 {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.deal-hero {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--card2);
  overflow: hidden;
}
.deal-hero img { width: 100%; height: 100%; object-fit: cover; }
.deal-hero .disc-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--highlight);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(245,158,11,.35);
}
.deal-hero .store-pill {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
}
.deal-content { padding: 16px; }
.deal-content h2 { font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 12px; color: var(--text); }
.deal-prices { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.deal-prices .big { font-size: 32px; font-weight: 800; color: var(--accent); }
.deal-prices .old { font-size: 14px; color: #9ca3af; text-decoration: line-through; }
.deal-prices .pct { font-size: 12px; font-weight: 700; color: var(--highlight); background: #fffbeb; border: 1px solid #fde68a; border-radius: 20px; padding: 2px 8px; }

.deal-timer-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 14px 0;
}
.deal-timer-box .clock { font-size: 22px; }
.deal-timer-box .timer-info { flex: 1; }
.deal-timer-box .timer-label { font-size: 11px; color: var(--muted); }
.deal-timer-box .timer-val { font-size: 16px; font-weight: 700; color: #b45309; }
.deal-timer-box .emoji { font-size: 24px; }

.deal-coupon {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffbeb;
  border: 1.5px dashed #fcd34d;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.deal-coupon .code {
  flex: 1;
  font-size: 20px;
  font-weight: 800;
  font-family: monospace;
  color: #b45309;
  letter-spacing: 2px;
}
.deal-coupon .copy-btn {
  background: var(--highlight);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  transition: background .2s;
}
.deal-coupon .copy-btn:hover { background: #d97706; }

.deal-desc {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
}
.deal-desc h3 { font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.deal-desc p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.deal-ctas { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.btn-main {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff;
  border-radius: var(--radius); padding: 16px;
  font-size: 16px; font-weight: 700;
  transition: background .2s, transform .1s;
}
.btn-main:hover { background: var(--accent-dark); }
.btn-main:active { transform: scale(0.98); }

.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #16a34a;
  border-radius: var(--radius); padding: 12px;
  font-size: 13px; font-weight: 600;
  transition: background .2s;
}
.btn-wa:hover { background: #dcfce7; }
.btn-tg {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #2563eb;
  border-radius: var(--radius); padding: 12px;
  font-size: 13px; font-weight: 600;
  transition: background .2s;
}
.btn-tg:hover { background: #dbeafe; }

/* ========== CATEGORIES PAGE ========== */
.cat-page-wrap { padding: 16px 16px 90px; }
.cat-page-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  padding: 14px 16px;
}
.cat-page-header h1 { font-size: 16px; font-weight: 700; color: var(--text); }
.cat-page-header p { font-size: 12px; color: var(--muted); }

.cat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
}
.cat-card:hover {
  border-color: #86efac;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.cat-icon-box {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.cat-info { flex: 1; }
.cat-info strong { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.cat-info span { font-size: 12px; color: var(--muted); }
.cat-thumb-row {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.cat-thumb-row img {
  width: 32px; height: 32px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.cat-arrow { color: #d1d5db; font-size: 20px; font-weight: 300; }
.cat-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 20px;
  text-align: center;
}
.cat-stats .stat-val { font-size: 22px; font-weight: 800; }
.cat-stats .stat-lbl { font-size: 11px; color: var(--muted); }
.accent-val { color: var(--accent); }
.yellow-val { color: var(--highlight); }
.orange-val { color: #ea580c; }

/* ========== ADMIN PAGE ========== */
.admin-wrap { padding: 16px 16px 90px; }
.admin-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  padding: 14px 16px;
}
.admin-header h1 { font-size: 16px; font-weight: 700; color: var(--text); }
.admin-header p { font-size: 12px; color: var(--muted); }

.admin-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stat-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.stat-box .n { font-size: 28px; font-weight: 800; }
.stat-box .l { font-size: 12px; color: var(--muted); }

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.form-card h2 {
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  color: var(--accent);
  margin-bottom: 14px;
}
.form-group { margin-bottom: 12px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  padding: 9px 12px;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
  background: #fff;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9ca3af; }
.form-group select { appearance: none; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-group textarea { resize: none; }

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s, transform .1s;
}
.btn-submit:hover { background: var(--accent-dark); }
.btn-submit:active { transform: scale(0.98); }
.btn-submit.saved { background: #15803d; }

.saved-list { margin-top: 6px; }
.saved-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}
.saved-item .si-info { flex: 1; min-width: 0; }
.saved-item .si-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.saved-item .si-meta { font-size: 11px; color: var(--muted); }
.saved-item .si-badge {
  background: var(--highlight);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  flex-shrink: 0;
}
.info-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 16px;
}
.info-box h3 { font-size: 12px; font-weight: 700; margin-bottom: 6px; color: var(--accent); }
.info-box p { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ========== RELATED DEALS ========== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
}
.related-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  text-decoration: none;
}
.related-card:hover { border-color: #86efac; box-shadow: var(--shadow); }
.related-card .ri { aspect-ratio: 16/10; overflow: hidden; }
.related-card .ri img { width: 100%; height: 100%; object-fit: cover; }
.related-card .rb { padding: 8px; }
.related-card .rb p {
  font-size: 12px; font-weight: 500; color: var(--text); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-bottom:4px;
}
.related-card .rb .rp { font-size: 14px; font-weight: 700; color: var(--accent); }

/* ========== TOASTER ========== */
#toast {
  position: fixed;
  bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 300;
  opacity: 0;
  transition: all .3s;
  white-space: nowrap;
  pointer-events: none;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========== RESPONSIVE ========== */
@media(min-width: 640px) {
  .deal-grid { grid-template-columns: repeat(3, 1fr); }
  .h-scroll .deal-card { width: 200px; }
  .main, .deal-content, .cat-page-wrap, .admin-wrap { max-width: 640px; margin: 0 auto; }
  .header-top, .search-wrap, .cat-scroll { max-width: 640px; margin-left: auto; margin-right: auto; }
}
