/* =========================
   ROOT VARIABLES
========================= */

:root{
  --bg:#0b0b0c;
  --text:#f5f5f7;
  --muted:#a1a1a6;
  --line:rgba(255,255,255,.10);
  --soft:rgba(255,255,255,.06);
  --radius:18px;
}d

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display",
    system-ui,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
}

.container{
  width:min(1180px,92%);
  margin:0 auto;
}

a{
  color:inherit;
  text-decoration:none;
}

/* =========================
   HEADER
========================= */

header{
  position:sticky;
  top:0;
  z-index:50;
  height:88px;
  display:flex;
  align-items:center;
  border-bottom:1px solid var(--line);
  background:rgba(11,11,12,.85);
  backdrop-filter:blur(14px);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
}

.logo img{
  height:64px;
  display:block;
}

.nav-right{
  display:flex;
  gap:28px;
  align-items:center;
  font-size:14px;
  color:var(--muted);
}

.nav-right a:hover{
  color:var(--text);
}

/* =========================
   HERO
========================= */

.hero{
  position:relative;
  min-height:520px;
  display:flex;
  align-items:center;
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(
    90deg,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.55) 45%,
    rgba(0,0,0,.75) 100%
  );
}

.hero-content{
  position:relative;
  z-index:2;
  padding:90px 0;
  max-width:820px;
  margin:0 auto;
  text-align:center;
}

.hero h1{
  font-size:64px;
  line-height:1.05;
  letter-spacing:-1.5px;
  font-weight:760;
  margin:0 0 18px;
}

.hero p{
  font-size:20px;
  color:var(--muted);
  margin:0 0 26px;
}

.hero-actions{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.hero-trust{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.80);
  font-size:13px;
}

/* =========================
   BUTTONS
========================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px solid var(--text);
  padding:14px 22px;
  border-radius:999px;
  font-weight:650;
  font-size:15px;
  transition:.25s;
  cursor:pointer;
  white-space:nowrap;
}

.btn:hover{
  background:var(--text);
  color:#000;
}

.btn-primary{
  background:var(--text);
  color:#000;
  border-color:transparent;
}

.btn-primary:hover{
  filter:brightness(.92);
}

.btn-ghost{
  border-color:rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:var(--text);
}

.btn-ghost:hover{
  background:rgba(255,255,255,.12);
  color:var(--text);
}

/* =========================
   PAGE TOPBAR
========================= */

.page-topbar{
  padding:18px 0;
  border-bottom:1px solid var(--line);
}

.page-count{
  color:var(--muted);
  font-size:14px;
}

/* =========================
   CATEGORY HERO
========================= */

.cats-hero{
  position:relative;
  height:520px;
  display:flex;
  align-items:center;
  justify-content:center;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  border-bottom:1px solid var(--line);
  overflow:hidden;
}

.cats-hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,.85));
}

.cats-hero-inner{
  position:relative;
  z-index:2;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:28px;
}

.cats-title{
  font-size:52px;
  font-weight:750;
  letter-spacing:-1.2px;
  margin:0;
}

.cats{
  display:flex;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
}

.cat{
  padding:12px 22px;
  border-radius:999px;
  font-size:14px;
  font-weight:550;
  border:1px solid var(--line);
  background:transparent;
  color:var(--muted);
  transition:all .25s ease;
}

.cat:hover{
  border-color:var(--text);
  color:var(--text);
  background:var(--soft);
}

.cat.active{
  border-color:var(--text);
  background:var(--text);
  color:#000;
}

/* =========================
   SECTION
========================= */

.section{
  padding:80px 0 60px;
}

.section h2{
  font-size:36px;
  letter-spacing:-.6px;
  margin:0;
}

.section-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin:0 0 14px;
}

.section-head .link{
  color:rgba(255,255,255,.72);
  font-size:13px;
  font-weight:750;
}

.section-head .link:hover{
  color:var(--text);
}

.mini-meta{
  color:rgba(255,255,255,.65);
  font-size:13px;
  font-weight:750;
}

/* =========================
   FEATURED / DEAL TILES
========================= */

.featured-grid{
  display:grid;
  gap:34px;
  margin-top:30px;
  margin-bottom:40px;
}

@media(min-width: 980px){
  .featured-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.deal-tile{
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,.03);
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}

.deal-tile:hover{
  transform:translateY(-5px);
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.05);
}

.deal-tile__img{
  display:block;
  position:relative;
  width:100%;
  height:auto;
  aspect-ratio:16 / 10;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  overflow:hidden;
}

.deal-tile__img::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top,
    rgba(0,0,0,.70) 0%,
    rgba(0,0,0,.20) 55%,
    rgba(0,0,0,.06) 100%);
}

/* BIG discount badge */
.deal-badge{
  position:absolute;
  left:18px;
  bottom:18px;
  z-index:3;

  background:#fff;
  color:#000;

  padding:16px 22px;
  border-radius:14px;

  font-size:42px;     /* BIG */
  font-weight:1000;
  letter-spacing:-1px;

  box-shadow:0 12px 30px rgba(0,0,0,.5);
}

.deal-badge--soft{
  background:#fff;
  color:#000;
  border:0;
  box-shadow:0 12px 30px rgba(0,0,0,.5);
}

/* VERIFIED (green tick) */
.verify-mark{
  position:absolute;
  top:14px;
  right:14px;
  z-index:5;
}

.verify-dot{
  width:42px;
  height:42px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;

  background:#22c55e;
  color:#fff;
  font-size:22px;
  font-weight:900;

  box-shadow:
    0 8px 22px rgba(34,197,94,.55),
    0 0 0 3px rgba(0,0,0,.35);
}

.deal-tile__body{
  padding:16px 16px 18px;
}

.deal-title{
  font-size:17px;
  font-weight:950;
  letter-spacing:-.35px;
  margin-bottom:6px;
  line-height:1.2;
}

.deal-sub{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:rgba(255,255,255,.70);
  font-size:13px;
  margin-bottom:12px;
}

.deal-sub .dot{ opacity:.6; }

.deal-snippet{
  color:rgba(255,255,255,.82);
  font-size:13px;
  line-height:1.35;
  margin-bottom:12px;
  min-height:36px;
}

.deal-redeem{
  color:rgba(255,255,255,.70);
  font-size:12.5px;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:10px;
  margin-top:2px;
}

.deal-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

/* =========================
   AUTH + ADMIN FORMS (RESTORED)
========================= */

.auth-wrap{
  width:min(520px,96%);
  margin:0 auto;
  border-top:1px solid var(--line);
  padding-top:34px;
}

.auth-title{
  font-size:34px;
  letter-spacing:-.6px;
  margin:0 0 10px;
  text-align:center;
}

.auth-sub{
  margin:0 0 22px;
  color:var(--muted);
  text-align:center;
  font-size:15px;
}

.auth-label{
  display:block;
  font-size:13px;
  color:var(--muted);
  margin-bottom:8px;
}

.auth-input{
  width:100%;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  outline:none;
  transition:.2s;
}

.auth-input:focus{
  border-color:rgba(255,255,255,.35);
  background:rgba(255,255,255,.06);
}

textarea.auth-input{ min-height:120px; }

select.auth-input{
  appearance:none;
  -webkit-appearance:none;
}

.auth-error{
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  padding:12px 14px;
  border-radius:14px;
  margin:18px 0 6px;
  text-align:center;
}

/* Make forms/buttons behave nicely in admin pages too */
form .btn{
  margin-top:10px;
}

/* =========================
   FOOTER
========================= */

footer{
  border-top:1px solid var(--line);
  padding:40px 0;
  color:var(--muted);
  font-size:13px;
  margin-top:60px;
}

.empty{
  color:rgba(255,255,255,.65);
  padding:18px 0 0;
}

/* =========================
   MOBILE
========================= */

@media(max-width:900px){

  header{ height:72px; }
  .logo img{ height:48px; }

  .hero{ min-height:420px; }
  .hero h1{ font-size:42px; }

  .btn{ width:100%; justify-content:center; }
  .deal-actions .btn{ width:100%; justify-content:center; }

  .deal-tile__img{ aspect-ratio:16 / 11; }

  .deal-badge{
    font-size:44px;
    padding:16px 22px;
  }

  .cats-hero{ height:240px; }
  .cats-title{ font-size:32px; }
  .cats{ gap:12px; }
  .cat{ padding:10px 16px; font-size:13px; }
}