/* TicketsBag — premium UI + scalable offers */

:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#667085;
  --border:rgba(15,23,42,.10);
  --shadow:0 16px 48px rgba(15,23,42,.10);
  --shadow-soft:0 10px 30px rgba(15,23,42,.08);
  --green1:#2fb344;
  --green2:#1f7f35;
  --hot-bg:#ffe6e6;
  --hot-text:#b42318;
  --live-bg:#e6fff1;
  --live-text:#027a48;
}

*{box-sizing:border-box}

html,body{height:100%}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(47,179,68,.10), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(14,165,233,.08), transparent 55%),
    var(--bg);
}

/* Header: logo only */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  padding:18px 0 8px;
  text-align:center;
  background: rgba(246,247,251,.98);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.brand{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  margin:0 auto;
}

.brand a{display:inline-block}

.brand img{
  width:280px;
  max-width:90vw;
  height:auto;
  display:block;
  /* If your logo becomes transparent, you can remove the next line */
  border-radius:14px;
  transition:transform .25s ease, opacity .25s ease;
}

.brand img:hover{
  transform:scale(1.03);
  opacity:.92;
}

@media (max-width:600px){
  .brand img{ width:200px; }
  .topbar{ padding:14px 0 6px; }
}

.wrap{
  max-width:980px;
  margin:0 auto;
  padding:18px 16px 34px;
}

/* Headline */
.page-title{
  font-size:28px;
  font-weight:800;
  letter-spacing:-0.02em;
  text-align:center;
  margin:14px 0 18px;
}

@media (max-width:600px){
  .page-title{ font-size:22px; margin:10px 0 14px; }
}

/* Top stats */
.top-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
  margin:0 0 18px;
}

.pill{
  background:rgba(255,255,255,.85);
  border:1px solid var(--border);
  border-radius:999px;
  padding:10px 14px;
  box-shadow:var(--shadow-soft);
  display:flex;
  align-items:center;
  gap:10px;
}

.pill .num{font-weight:900;font-size:16px}
.pill .label{font-size:13px;color:var(--muted);font-weight:700}

/* Controls */
.controls{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin:0 0 18px;
}

/* Mobile brand filter trigger (hidden on desktop) */
.brand-open{ display:inline-flex; align-items:center; justify-content:center; }

/* Mobile brand drawer */
.drawer-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.35);
  display:none;
  align-items:flex-end;
  justify-content:center;
  padding:14px;
  z-index:200;
}

.drawer-backdrop.open{ display:flex; }

.drawer{
  width:100%;
  max-width:560px;
  background:rgba(255,255,255,.98);
  border:1px solid var(--border);
  box-shadow:0 25px 90px rgba(15,23,42,.25);
  border-radius:22px;
  overflow:hidden;
  max-height:82vh;
  display:flex;
  flex-direction:column;
}

.drawer-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
}

.drawer-title{ font-weight:1000; }

.drawer-close{
  border:0;
  background:transparent;
  font-size:18px;
  cursor:pointer;
  padding:6px 10px;
  border-radius:12px;
}

.drawer-search{
  display:flex;
  align-items:center;
  gap:10px;
  margin:12px 14px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,.85);
}

.drawer-search input{ width:100%; border:0; outline:none; background:transparent; font-weight:800; }

.drawer-list{
  padding:0 14px 14px;
  overflow:auto;
}

.drawer-list .filter-btn{
  width:100%;
  border-radius:14px;
  padding:10px 12px;
  margin:0 0 10px;
}

.search{
  flex:1 1 260px;
  max-width:520px;
  background:rgba(255,255,255,.85);
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);
  border-radius:14px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  gap:10px;
}

.search input{
  width:100%;
  border:0;
  outline:none;
  background:transparent;
  font-size:14px;
}

.select{
  background:rgba(255,255,255,.85);
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);
  border-radius:14px;
  padding:10px 12px;
  font-weight:800;
}

/* Filters */
.filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin:0 0 18px;
}

/* Layout + Sidebar (brands) */
.layout{ display:block; }

/* On small screens: brands are in a collapsible drawer */
.sidebar{
  background:rgba(255,255,255,.85);
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);
  border-radius:20px;
  margin:0 0 18px;
  display:none; /* mobile uses the drawer */
}

.sidebar-summary{
  list-style:none;
  cursor:pointer;
  font-weight:1000;
  padding:14px 16px;
  user-select:none;
}

.sidebar-summary::-webkit-details-marker{ display:none; }

.sidebar-inner{ padding:0 14px 14px; }

.sidebar-title{
  font-weight:1000;
  margin:4px 2px 10px;
  opacity:.85;
}

.filters--sidebar{
  margin:0;
  justify-content:flex-start;
  flex-direction:column;
  align-items:stretch;
}

.filters--sidebar .filter-btn{
  width:100%;
  border-radius:14px;
  padding:10px 12px;
}

/* Desktop: true left sidebar */
@media (min-width:980px){
  .brand-open{ display:none; }
  .layout{
    display:grid;
    grid-template-columns:260px 1fr;
    gap:22px;
    align-items:start;
  }

  .sidebar{
    display:block;
    position:sticky;
    top:18px;
    margin:0;
  }

  .sidebar-summary{ display:none; }
  .sidebar-inner{ padding:14px; }
  .filters--sidebar{ max-height:calc(100vh - 140px); overflow:auto; padding-right:4px; }
}

.filter-btn{
  border:1px solid var(--border);
  background:rgba(255,255,255,.85);
  box-shadow:var(--shadow-soft);
  border-radius:999px;
  padding:10px 14px;
  font-weight:900;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
}

.filter-btn:hover{ transform:translateY(-1px); }

.filter-btn.active{
  border-color:rgba(15,23,42,.22);
  box-shadow:0 18px 50px rgba(15,23,42,.12);
}

/* Cards */
.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}

@media (min-width:760px){
  .grid{ grid-template-columns:1fr 1fr; }
}

.card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--border);
  border-radius:20px;
  padding:18px 18px 16px;
  box-shadow:var(--shadow);
  transition:transform .18s ease, box-shadow .18s ease;
}

.card:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 70px rgba(15,23,42,.14);
}

.badges{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.badge-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
}

.badge-hot{ background:var(--hot-bg); color:var(--hot-text); }
.badge-live{ background:var(--live-bg); color:var(--live-text); }

.merchant{
  font-size:13px;
  color:var(--muted);
  font-weight:900;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.card h3{
  margin:10px 0 8px;
  font-size:20px;
  letter-spacing:-0.01em;
}

.card p{
  margin:0 0 14px;
  color:var(--muted);
  line-height:1.45;
}

.btn{
  border:0;
  border-radius:16px;
  padding:14px 16px;
  font-weight:900;
  cursor:pointer;
  width:100%;
}

.btn-green{
  color:#fff;
  /* Primary CTA */
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  box-shadow:0 10px 25px rgba(31,127,53,.25);
}

.btn-green:hover{ filter:brightness(.98); }

.meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:12px;
  font-size:13px;
  color:var(--muted);
  font-weight:700;
}

.footer{
  text-align:center;
  margin-top:26px;
  font-size:13px;
  color:var(--muted);
}

.footer a{ color:inherit; text-decoration:none; font-weight:900; }
.footer a:hover{ text-decoration:underline; }

/* Modal */
.modal-backdrop{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:rgba(15,23,42,.55);
  z-index:100;
}

.modal-backdrop.open{ display:flex; }

.modal{
  width:100%;
  max-width:520px;
  background:rgba(255,255,255,.98);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:0 26px 90px rgba(15,23,42,.35);
}

.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 16px 10px;
}

.modal-title{
  margin:0;
  font-size:18px;
  font-weight:900;
}

.modal-close{
  border:0;
  background:rgba(15,23,42,.06);
  width:40px;
  height:40px;
  border-radius:999px;
  cursor:pointer;
  font-size:18px;
}

.modal-body{ padding:12px 16px 16px; }

.code-row{
  display:flex;
  justify-content:center;
  margin:8px 0 12px;
}

.code{
  background:rgba(15,23,42,.06);
  border:1px solid rgba(15,23,42,.10);
  padding:12px 18px;
  border-radius:16px;
  font-weight:900;
  letter-spacing:2px;
  font-size:16px;
}

.captcha-row{
  display:flex;
  justify-content:center;
  margin:10px 0 14px;
}

.action-row{ display:flex; }

.btn-outline{
  width:100%;
  border:2px solid rgba(15,23,42,.90);
  background:#fff;
  padding:14px 16px;
  border-radius:16px;
  font-weight:900;
  cursor:pointer;
}

.note{
  margin-top:12px;
  font-size:13px;
  color:var(--muted);
  text-align:center;
}

.badge{
  margin-top:10px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  font-weight:800;
  font-size:13px;
  color:var(--muted);
}

.badge .dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--green1);
  display:inline-block;
}



/* ===== Flashy SALE additions ===== */
.sale-banner{
  margin:14px auto 8px;
  max-width:1100px;
  border-radius:18px;
  padding:10px;
  background:
    radial-gradient(120px 80px at 10% 50%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(90deg, #ff003d, #ffcc00, #00e5ff, #8b5cf6, #ff003d);
  background-size: 220% 100%;
  animation: saleShift 6s linear infinite;
  box-shadow: var(--shadow-soft);
  border:1px solid rgba(15,23,42,.12);
}
@keyframes saleShift{
  0%{background-position:0% 50%}
  100%{background-position:220% 50%}
}
.sale-banner-inner{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  padding:10px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
}
.sale-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  letter-spacing:.2px;
  background:#0f172a;
  color:#fff;
  text-transform:uppercase;
}
.sale-badge.alt{
  background:#b42318;
}
.sale-text{
  font-weight:800;
  letter-spacing:.2px;
}

/* Discount burst on each card */
.badges{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.discount-burst{
  position:relative;
  display:inline-flex;
  align-items:baseline;
  gap:6px;
  padding:10px 12px;
  border-radius:14px;
  font-weight:900;
  letter-spacing:.5px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.55), transparent 45%),
    linear-gradient(135deg, #ff003d, #ffcc00);
  color:#0f172a;
  box-shadow: 0 12px 26px rgba(0,0,0,.16);
  transform: rotate(-4deg);
  animation: burstPop 1.6s ease-in-out infinite;
  border:1px solid rgba(15,23,42,.12);
}
.discount-burst small{
  font-size:12px;
  font-weight:900;
  opacity:.9;
}
@keyframes burstPop{
  0%,100%{ transform: rotate(-4deg) scale(1); filter:saturate(1); }
  50%{ transform: rotate(-2deg) scale(1.06); filter:saturate(1.3); }
}

/* GO button gated until captcha */
.btn-disabled{
  opacity:.55 !important;
  filter: grayscale(.2);
  cursor:not-allowed !important;
}
.verify-hint{
  margin-top:8px;
  font-size:13px;
  color:#b42318;
  font-weight:700;
}

/* fallback checkbox */
.fallback-verify{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.18);
  background:rgba(255,255,255,.9);
  font-weight:700;
}
.fallback-verify input{
  width:18px;
  height:18px;
}
