@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800;900&display=swap');

/* =========================================================
   TET JACKPOT — CONSOLIDATED TICKET PAGE STYLESHEET
   Theme: Purple Neon Casino + Vibrant Gold Accents
   File: ticket.css
========================================================= */

:root {
  --bg: #090510;
  --panel: #130a26;
  --panel-2: #1b0b30;
  --panel-3: #25143a;
  --purple: #a42bff;
  --purple-glow: rgba(164, 43, 255, 0.28);
  --pink: #e51c9b;
  --cyan: #00c8ff;
  --gold: #f8ce62;
  --gold-light: #fff0a5;
  --gold-glow: rgba(248, 206, 98, 0.35);
  --text: #f8f4ff;
  --text-muted: #b8a5d4;
  --green: #20e9a3;
  --green-dark: #075c39;
  --red: #ff4b87;
  --border: rgba(215, 163, 255, 0.22);
  --border-gold: rgba(248, 206, 98, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden,
.is-hidden {
  display: none !important;
}

/* =========================================================
   CASINO BACKGROUND & ATMOSPHERE
========================================================= */

.casino-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, #451078 0%, #1c0837 32%, #0b0716 72%, #07060e 100%);
}

.casino-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    radial-gradient(#f7a9ff 1px, transparent 1px),
    radial-gradient(#8c65ff 1px, transparent 1px);
  background-size: 53px 53px, 79px 79px;
  background-position: 0 0, 21px 31px;
}

.orb {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.32;
}

.orb-one {
  top: -260px;
  left: 18%;
  background: var(--purple);
}

.orb-two {
  right: -220px;
  bottom: -220px;
  background: var(--pink);
}

.neon-ring {
  position: absolute;
  width: 110vw;
  height: 38vw;
  border: 2px solid rgba(237, 69, 255, 0.45);
  border-radius: 50%;
  filter: drop-shadow(0 0 8px #d51bff) drop-shadow(0 0 25px #8b22ff);
  transform: rotate(-18deg);
}

.ring-one {
  top: -35vw;
  left: -5vw;
}

.ring-two {
  right: -8vw;
  bottom: -34vw;
  border-color: rgba(0, 191, 255, 0.4);
  filter: drop-shadow(0 0 10px #00bfff);
}

.floating-suit {
  position: absolute;
  user-select: none;
  font-size: clamp(90px, 16vw, 240px);
  opacity: 0.1;
  text-shadow: 0 0 35px currentColor;
  pointer-events: none;
}

.suit-one { top: 22%; left: -25px; color: #d946ff; }
.suit-two { top: 15%; right: 2%; color: #ffbd47; }
.suit-three { bottom: -5%; left: 5%; color: #00e8a2; }
.suit-four { right: 7%; bottom: 8%; color: #ff358b; }

.sparkles {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background:
    radial-gradient(circle at 8% 28%, #ffdb72 0 1px, transparent 2px),
    radial-gradient(circle at 87% 67%, #e88aff 0 1px, transparent 2px),
    radial-gradient(circle at 70% 16%, #fff 0 1px, transparent 2px);
  background-size: 190px 180px, 230px 210px, 150px 170px;
}

/* =========================================================
   TOPBAR NAVIGATION
========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  padding: 0 clamp(18px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 6, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1.3px;
}

.brand b {
  color: var(--gold);
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 8px;
  letter-spacing: 2px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #1c0735;
  background: linear-gradient(135deg, var(--gold-light), #b77aff 55%, #5a27dc);
  font-size: 22px;
  box-shadow: 0 0 22px rgba(164, 43, 255, 0.45);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d3c3e8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.home-link {
  padding: 9px 15px;
  border: 1px solid rgba(169, 92, 255, 0.4);
  border-radius: 9px;
  color: #f3d8ff;
  transition: all 0.2s ease;
}

.home-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

/* =========================================================
   CUSTOMER PROFILE CHIP
========================================================= */

#customerProfile.customer-profile {
  width: min(520px, calc(100% - 48px));
  margin: 16px 24px 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(38, 20, 58, 0.95), rgba(16, 10, 29, 0.95));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

#customerProfile .profile-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, var(--gold-light), #f5bd39);
  color: #291536;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 0 16px rgba(255, 205, 75, 0.25);
}

#customerProfile .profile-details {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#customerProfile .profile-details strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffe39a;
  font-size: 14px;
}

#customerProfile .profile-details span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #c9bad9;
  font-size: 12px;
}

#customerProfile #profileLogout {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid rgba(255, 110, 145, 0.4);
  border-radius: 9px;
  background: rgba(255, 70, 115, 0.1);
  color: #ffc0d0;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s ease;
}

#customerProfile #profileLogout:hover {
  border-color: #ff7399;
  background: rgba(255, 70, 115, 0.2);
  color: #fff;
}

/* =========================================================
   MAIN PAGE SHELL & HERO
========================================================= */

.page-shell {
  width: min(1400px, calc(100% - 48px));
  margin: 28px auto 80px;
  padding: clamp(20px, 3.5vw, 44px);
  border: 1px solid rgba(215, 163, 255, 0.28);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(19, 10, 38, 0.94), rgba(13, 10, 27, 0.94) 60%, rgba(28, 11, 49, 0.94));
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.6), 0 0 70px rgba(141, 32, 255, 0.12);
  backdrop-filter: blur(20px);
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 35px;
}

.eyebrow {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f7d65f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
}

.eyebrow-line {
  width: 19px;
  height: 2px;
  flex: 0 0 19px;
  background: #ffcf57;
  box-shadow: 0 0 10px #ffcf57;
  
  text-align: center;
}

.hero-row h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -1.2px;
  
  text-align: center;
}

.hero-row h1 span {
  color: transparent;
  background: linear-gradient(110deg, #fff1a5, #f9c84d 45%, #e5a3ff);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy {
  margin: 12px 0 0;
  color: #c0b2d3;
  font-size: 14px;
  line-height: 1.6;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  color: #c8bdd9;
  font-size: 22px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-dot.available {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.legend-dot.chosen {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.legend-dot.booked {
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

.selected-counter {
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 22px;
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(43, 25, 64, 0.88), rgba(22, 13, 39, 0.94));
  box-shadow: 0 0 25px rgba(255, 189, 48, 0.12);
}

.ticket-icon {
  color: #ffdc76;
  font-size: 28px;
  text-shadow: 0 0 14px #ffbd30;
}

.selected-counter strong {
  color: #ffdc76;
  font-size: 34px;
  line-height: 1;
}

.selected-counter > span:last-child {
  color: #eee0ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

/* =========================================================
   SECTIONS: DURATION, PHASES & CATEGORIES
========================================================= */

.set-selection-section,
.category-section {
  margin-top: 36px;
}

.number-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.number-heading h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  color: #fff;
}

.number-heading h2 small {
  margin-left: 8px;
  color: #aa9aba;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
}

.number-heading h2 span {
  color: var(--gold);
}

/* Set / Phase Grids */
.set-grid,
.phase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.set-card,
.phase-card,
.duration-card {
  min-width: 0;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 10%, rgba(164, 43, 255, 0.2), transparent 45%),
    linear-gradient(145deg, #221338, #110d1f);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.set-card:hover:not(:disabled),
.phase-card:hover:not(:disabled) {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(248, 206, 98, 0.18);
}

.set-card.active,
.phase-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(248, 206, 98, 0.4), 0 0 24px rgba(248, 206, 98, 0.2);
}

.set-card.upcoming,
.set-card.expired,
.phase-card.upcoming,
.phase-card.expired,
.set-card:disabled,
.phase-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.set-status {
  color: #e9bd58;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.set-card h2,
.duration-card h3,
.phase-card h3 {
  margin: 14px 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
}

.set-dates {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.set-dates div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.set-dates small {
  color: #aaa;
  font-size: 10px;
}

.set-dates strong {
  color: #f4eaff;
  font-size: 13px;
}

.phase-empty {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px dashed rgba(248, 206, 98, 0.5);
  border-radius: 15px;
  background: rgba(28, 15, 45, 0.85);
  color: #fff;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  --glow: #bb43ff;
  --tint: #51108c;
  position: relative;
  min-width: 0;
  min-height: 135px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border: 1px solid color-mix(in srgb, var(--glow) 75%, transparent);
  border-radius: 16px;
  color: #fff;
  text-align: left;
  background:
    radial-gradient(ellipse at 80% 50%, color-mix(in srgb, var(--tint) 60%, transparent), transparent 65%),
    linear-gradient(110deg, #180b2a, #0c0a1b 72%);
  box-shadow:
    inset 0 0 22px color-mix(in srgb, var(--glow) 10%, transparent),
    0 0 12px color-mix(in srgb, var(--glow) 12%, transparent);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.category-card.violet { --glow: #d34aff; --tint: #7616ba; }
.category-card.blue   { --glow: #00c8ff; --tint: #073c9a; }
.category-card.pink   { --glow: #ff3989; --tint: #8b123f; }
.category-card.green  { --glow: #00f0a0; --tint: #056b4d; }
.category-card.gold   { --glow: #ffd45a; --tint: #94600b; }

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 26px color-mix(in srgb, var(--glow) 28%, transparent);
}

.category-card.active {
  border: 2px solid var(--glow);
  box-shadow:
    0 0 7px var(--glow),
    0 0 26px color-mix(in srgb, var(--glow) 40%, transparent),
    inset 0 0 26px color-mix(in srgb, var(--glow) 16%, transparent);
}

.card-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.card-kicker {
  color: var(--glow);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.card-copy strong {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.card-copy small {
  color: #f0e7fb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.card-suit {
  position: absolute;
  top: 14px;
  right: 50px;
  color: var(--glow);
  font-size: 60px;
  line-height: 1;
  opacity: 0.35;
  text-shadow: 0 0 18px var(--glow);
  pointer-events: none;
}

.card-arrow {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--glow);
  border-radius: 50%;
  color: var(--glow);
  font-size: 22px;
}

/* =========================================================
   TRUE CENTERED TICKET NUMBER POPUP (CLEAN SINGLE DECLARATION)
========================================================= */

#ticketNumberPopup,
.ticket-popup-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  padding: 16px !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: rgba(5, 2, 12, 0.84) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#ticketNumberPopup.show,
#ticketNumberPopup.active,
.ticket-popup-overlay.show,
.ticket-popup-overlay.active {
  display: flex !important;
}

.ticket-popup-content {
  position: relative !important;
  box-sizing: border-box !important;
  width: min(780px, calc(100vw - 32px)) !important;
  height: min(600px, calc(100dvh - 32px)) !important;
  max-height: calc(100dvh - 32px) !important;
  min-height: 0 !important;
  margin: auto !important;
  padding: 20px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border: 1px solid var(--border-gold) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(130, 48, 180, 0.18), transparent 40%),
    linear-gradient(145deg, #1b102d 0%, #10091d 60%, #160b26 100%) !important;
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.75), 0 0 32px rgba(164, 43, 255, 0.18) !important;
}

/* Pinned Header */
.ticket-popup-header {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin-bottom: 12px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.ticket-popup-header > div {
  min-width: 0;
}

.ticket-popup-header .eyebrow {
  margin: 0 0 6px !important;
  font-size: 10px;
}

.ticket-popup-header h2 {
  margin: 0 0 4px !important;
  color: #ffdc78 !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: clamp(20px, 2.3vw, 27px) !important;
  line-height: 1.15;
}

.ticket-popup-header p:not(.eyebrow) {
  margin: 0 !important;
  color: #bcaecb !important;
  font-size: 12px !important;
  line-height: 1.4;
}

#closeTicketPopup {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  font-size: 24px !important;
  line-height: 1 !important;
  transition: all 0.2s ease;
}

#closeTicketPopup:hover {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  transform: rotate(90deg);
}

/* Pinned Search */
.number-search-row {
  flex: 0 0 auto !important;
  margin-bottom: 12px !important;
}

.search-box {
  width: 100% !important;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(190, 139, 255, 0.35);
  border-radius: 10px;
  background: #0a0613;
  color: #cfb8e9;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 13px;
}

.search-box input::placeholder {
  color: #827494;
}

/* INDEPENDENT INNER SCROLL AREA */
.number-scroll,
.ticket-popup-numbers {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain !important;
  -webkit-overflow-scrolling: touch;
  padding: 4px 6px 8px 2px !important;
  scrollbar-width: thin;
  scrollbar-color: #b653ff #21132e;
}

.number-scroll::-webkit-scrollbar,
.ticket-popup-numbers::-webkit-scrollbar {
  width: 7px;
}

.number-scroll::-webkit-scrollbar-track,
.ticket-popup-numbers::-webkit-scrollbar-track {
  background: #21132e;
  border-radius: 10px;
}

.number-scroll::-webkit-scrollbar-thumb,
.ticket-popup-numbers::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d34aff, #00c8ff);
  border-radius: 10px;
}

/* High Contrast Ticket Grid & Numbers */
.number-grid,
.ticket-popup-numbers #numbers {
  display: grid !important;
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  align-content: start !important;
  gap: 7px !important;
  width: 100%;
}

.number-tile {
  min-width: 0;
  min-height: 48px;
  padding: 5px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(31, 149, 107, 0.6);
  border-radius: 8px;
  background: #f9fffb;
  color: var(--green-dark);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.number-tile:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(32, 233, 163, 0.45);
}

.tile-category {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.tile-number {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  letter-spacing: 0.4px !important;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

.number-tile.selected,
.number-tile.chosen,
.number-tile[aria-pressed="true"] {
  border-color: #ffd45e !important;
  background: linear-gradient(135deg, #fff0a8, #ffc83e) !important;
  color: #3b2500 !important;
  box-shadow: 0 0 14px rgba(255, 212, 90, 0.45) !important;
}

.number-tile.booked,
.number-tile:disabled {
  border-color: #ff7399 !important;
  background: #ffe8ef !important;
  color: #b41e4d !important;
  opacity: 0.75 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.scroll-hint {
  flex: 0 0 auto !important;
  margin: 6px 0 0 !important;
  padding: 4px 0 6px !important;
  color: #9d8bb2 !important;
  font-size: 10px !important;
  text-align: center !important;
}

/* Pinned Popup Footer */
.ticket-popup-footer {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin-top: 4px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.ticket-popup-footer > div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cfc1dc;
  font-size: 12px;
}

.ticket-popup-footer strong {
  color: var(--gold);
  font-size: 24px;
}

/* Gold Button */
.gold-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid #ffe18b;
  border-radius: 10px;
  background: linear-gradient(110deg, #fff0a5, #ffc943 70%, #f3a922);
  color: #2b1731;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 5px 22px rgba(255, 191, 57, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gold-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 191, 57, 0.45);
}

/* =========================================================
   STICKY CHECKOUT BAR
========================================================= */

.checkout-bar {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(27, 16, 43, 0.98), rgba(16, 10, 29, 0.98));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.chosen-area {
  min-width: 0;
  flex: 1;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #b6a7c8;
  font-size: 12px;
}

.ticket-chip {
  padding: 6px 10px;
  border: 1px solid rgba(233, 188, 77, 0.5);
  border-radius: 7px;
  background: rgba(255, 211, 94, 0.12);
  color: #ffe59b;
  font-size: 11px;
  font-weight: 700;
}

.checkout-total {
  flex-shrink: 0;
  display: grid;
  justify-items: end;
  gap: 6px;
}

.checkout-total > span {
  color: #a99bb9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.checkout-total strong {
  color: #ffdb70;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: 34px;
}

.notice {
  min-height: 15px;
  margin: 10px 2px 0;
  color: #ffb3d0;
  font-size: 12px;
}

/* =========================================================
   AUTH, LOGIN & REGISTRATION MODALS
========================================================= */

.auth-overlay,
#createUserModal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 3, 18, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
}

.auth-card,
.create-user-card {
  position: relative;
  width: min(100%, 420px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  margin: auto;
  padding: 26px;
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  background: linear-gradient(145deg, #241039, #13091f);
  color: #fff;
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.7);
}

.auth-card::-webkit-scrollbar,
.create-user-card::-webkit-scrollbar {
  width: 6px;
}

.auth-card::-webkit-scrollbar-thumb,
.create-user-card::-webkit-scrollbar-thumb {
  background: #b653ff;
  border-radius: 10px;
}

.auth-brand {
  color: #e8bf64;
  font-weight: 800;
  letter-spacing: 2px;
}

.auth-card h2,
.create-user-card h2 {
  margin: 14px 0 8px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.auth-card p,
.create-user-card > p {
  color: #d4c9df;
  font-size: 13px;
  line-height: 1.55;
}

.auth-card label,
#registrationOtpStep label {
  display: block;
  margin: 16px 0 6px;
  color: #e8bf64;
  font-size: 12px;
  font-weight: 700;
}

.auth-card input,
.auth-card textarea,
.auth-card select,
#registrationOtp {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #705483;
  border-radius: 10px;
  outline: none;
  background: #25143a;
  color: #fff;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#registrationOtp {
  height: 48px;
  letter-spacing: 4px;
  font-weight: 700;
}

.auth-card input:focus,
.auth-card textarea:focus,
.auth-card select:focus,
#registrationOtp:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(248, 206, 98, 0.15);
}

.phone-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid #705483;
  border-radius: 10px;
  background: #25143a;
}

.phone-field:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(248, 206, 98, 0.15);
}

.phone-field span {
  color: #e8bf64;
  font-weight: 700;
}

.phone-field input {
  border: none;
  padding: 12px 4px;
  background: transparent;
}

.auth-primary,
.auth-secondary,
#registrationContinueBtn,
#autoFillRegistrationOtp,
#autoFillLoginOtp {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.auth-primary,
#registrationContinueBtn {
  border: none;
  background: linear-gradient(110deg, #fff0a5, #ffc943);
  color: #21112e;
}

.auth-primary:hover,
#registrationContinueBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 191, 57, 0.4);
}

.auth-secondary {
  border: 1px solid #9273a6;
  background: transparent;
  color: #fff;
}

.auth-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

#autoFillRegistrationOtp,
#autoFillLoginOtp {
  background: linear-gradient(135deg, #1b0b2b, #261438);
  color: #ffd34e;
  border: 1px solid #d6a936;
}

#autoFillRegistrationOtp:hover,
#autoFillLoginOtp:hover {
  background: #382047;
  border-color: #ffe17b;
  box-shadow: 0 0 14px rgba(255, 211, 78, 0.2);
}

.create-user-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 22px;
}

.create-user-close:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.2);
}

/* Success Flow in Registration */
#registrationSuccessStep {
  width: 100%;
  padding: 8px 0;
  text-align: center;
}

.success-icon {
  width: 62px;
  height: 62px;
  margin: 6px auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #20c878;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  box-shadow: 0 0 25px rgba(32, 200, 120, 0.35);
}

.customer-success-details {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
}

.customer-success-details span {
  display: block;
  margin-bottom: 4px;
  color: #bcaacb;
  font-size: 11px;
}

.customer-success-details h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.customer-success-details h3:last-child {
  margin-bottom: 0;
}

.auth-status,
#registrationStatus {
  min-height: 18px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.auth-status.error,
#registrationStatus.error {
  color: #ff8585;
}

.auth-status.success,
#registrationStatus.success {
  color: #70e6a0;
}

/* =========================================================
   FOOTER
========================================================= */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 0 clamp(18px, 5vw, 76px) 26px;
  color: #9d8aad;
  font-size: 11px;
}

footer span:first-child {
  color: #f4d36f;
  font-weight: 700;
  letter-spacing: 1.5px;
}

/* =========================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
========================================================= */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-shell {
    width: calc(100% - 32px);
    padding: 24px;
  }

  .ticket-popup-content {
    width: min(720px, calc(100vw - 32px)) !important;
    height: min(580px, calc(100dvh - 32px)) !important;
  }

  .number-grid,
  .ticket-popup-numbers #numbers {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .set-grid,
  .phase-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Narrow Mobile (max-width: 600px) */
@media (max-width: 600px) {
  .topbar {
    height: 64px;
    padding: 0 14px;
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .topbar-right > span:not(.live-dot) {
    display: none;
  }

  #customerProfile.customer-profile {
    width: calc(100% - 24px) !important;
    margin: 10px 12px 12px auto !important;
    padding: 10px 12px !important;
  }

  .page-shell {
    width: calc(100% - 16px);
    margin: 12px auto 30px;
    padding: 16px 12px;
    border-radius: 18px;
  }

  .hero-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
  }

  .hero-row h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .selected-counter {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
  }

  .category-card {
    min-height: 110px;
    padding: 15px 13px;
  }

  .card-copy strong {
    font-size: clamp(24px, 7vw, 32px);
  }

  .card-suit {
    font-size: 40px;
    right: 32px;
  }

  /* Popups on Mobile */
  #ticketNumberPopup,
  .ticket-popup-overlay {
    padding: 10px !important;
  }

  .ticket-popup-content {
    width: calc(100vw - 20px) !important;
    height: calc(100dvh - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    padding: 14px 12px !important;
    border-radius: 16px !important;
  }

  .number-grid,
  .ticket-popup-numbers #numbers {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  .number-tile {
    min-height: 44px;
    padding: 4px 2px;
  }

  .tile-number {
    font-size: 16px !important;
  }

  .tile-category {
    font-size: 8px;
  }

  /* Checkout bar sticky at bottom */
  .checkout-bar {
    position: sticky;
    bottom: 8px;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
    backdrop-filter: blur(16px);
  }

  .checkout-total {
    justify-items: stretch;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .checkout-total strong {
    font-size: 26px;
  }

  footer {
    flex-direction: column;
    text-align: center;
    padding-bottom: 20px;
  }
}

/* Extra small screens (max-width: 380px) */
@media (max-width: 380px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .number-grid,
  .ticket-popup-numbers #numbers {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  .number-tile {
    min-height: 40px;
  }
}

/* Accessibility & Reduced Motion */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* =====================================
   COUPON CARDS – ROYAL GOLD PATTERN
===================================== */

.set-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    background:
        radial-gradient(circle at 85% 15%,
            rgba(248, 206, 98, 0.13),
            transparent 40%),
        repeating-linear-gradient(
            135deg,
            rgba(248, 206, 98, 0.035) 0px,
            rgba(248, 206, 98, 0.035) 1px,
            transparent 1px,
            transparent 12px
        ),
        linear-gradient(145deg, #28143d, #110d1f) !important;
}

/* Golden dotted pattern */
.set-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background-image: radial-gradient(
        rgba(248, 206, 98, 0.22) 1px,
        transparent 1px
    );

    background-size: 18px 18px;
    opacity: 0.35;
}

/* Keep text above pattern */
.set-card > * {
    position: relative;
    z-index: 1;
}

/* ACTIVE COUPON – GOLD BORDER */
.set-card.active {
    border: 2px solid #f8ce62 !important;

    box-shadow:
        0 0 0 1px rgba(248, 206, 98, 0.25),
        0 0 20px rgba(248, 206, 98, 0.22),
        inset 0 0 25px rgba(248, 206, 98, 0.07) !important;
}

/* Active hover */
.set-card.active:hover {
    border-color: #fff0a5 !important;
    box-shadow:
        0 0 12px rgba(248, 206, 98, 0.35),
        0 0 30px rgba(248, 206, 98, 0.2) !important;
}

/* Inactive coupons */
.set-card:not(.active) {
    border: 1px solid rgba(248, 206, 98, 0.25);
}


/* ACTIVE DAYS COUPON – GOLDEN BORDER */
.set-card.active {
    border: 2px solid #FFD700 !important;

    box-shadow:
        0 0 0 1px rgba(255, 215, 0, 0.35),
        0 0 15px rgba(255, 215, 0, 0.35),
        0 0 30px rgba(255, 215, 0, 0.15),
        inset 0 0 20px rgba(255, 215, 0, 0.06) !important;

    opacity: 1 !important;
}

/* Active card golden hover */
.set-card.active:hover {
    border-color: #FFF0A5 !important;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5) !important;
}

/* Inactive cards */
.set-card:not(.active) {
    border: 1px solid rgba(248, 206, 98, 0.25);
}

/* DAYS COUPON PATTERN */
.set-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 10%, rgba(248,206,98,0.12), transparent 45%),
        repeating-linear-gradient(
            135deg,
            rgba(248,206,98,0.045) 0px,
            rgba(248,206,98,0.045) 1px,
            transparent 1px,
            transparent 14px
        ),
        linear-gradient(145deg, #221338, #110d1f) !important;
}

/* ACTIVE COUPON GOLD BORDER */
.set-card.active {
    border: 2px solid #FFD45A !important;
    opacity: 1 !important;

    box-shadow:
        0 0 0 1px rgba(255,212,90,0.35),
        0 0 15px rgba(255,212,90,0.35),
        0 0 30px rgba(255,212,90,0.15),
        inset 0 0 20px rgba(255,212,90,0.08) !important;
}

/* INACTIVE COUPONS */
.set-card:not(.active) {
    border: 1px solid rgba(248,206,98,0.22);
}

/* HOVER EFFECT */
.set-card:hover:not(:disabled) {
    border-color: #FFD45A;
    transition: all 0.3s ease;
}


/* ENABLED DAYS COUPON - GOLD BORDER */
.set-card:not(:disabled):not(.upcoming):not(.expired) {
    border: 2px solid #FFD700 !important;

    box-shadow:
        0 0 0 1px rgba(255, 215, 0, 0.3),
        0 0 15px rgba(255, 215, 0, 0.3),
        0 0 25px rgba(255, 215, 0, 0.12) !important;
}

/* DISABLED DAYS COUPON - NORMAL BORDER */
.set-card:disabled,
.set-card.upcoming,
.set-card.expired {
    border: 1px solid rgba(248, 206, 98, 0.22) !important;
    box-shadow: none !important;
}


/* POPPINS FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800;900&display=swap');

/* MOBILE NUMBER STYLE */
@media (max-width: 600px) {

    .number-tile .tile-number {
        font-family: 'Poppins', sans-serif !important;
        font-size: 19px !important;
        font-weight: 900 !important;
        line-height: 1.2 !important;
        letter-spacing: 0.3px !important;
        font-variant-numeric: tabular-nums;
        -webkit-font-smoothing: antialiased;
    }

    .number-tile .tile-category {
        font-family: 'Poppins', sans-serif !important;
        font-size: 9px !important;
        font-weight: 800 !important;
        letter-spacing: 0.8px !important;
    }
}


/* MOBILE VIEW - COUPON DURATION */
@media screen and (max-width: 768px) {

  /* Section heading center */
  .set-selection-section .number-heading {
    text-align: center;
    justify-content: center;
  }

  .set-selection-section .number-heading > div {
    width: 100%;
    text-align: center;
  }

  .set-selection-section .eyebrow {
    justify-content: center;
  }

  .set-selection-section h2 {
    text-align: center;
    width: 100%;
  }

  .set-selection-section .hero-copy {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* Coupon cards center */
  .set-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    justify-items: center;
  }

  .set-grid > * {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

}


/* MOBILE COUPON CARD CENTER ALIGNMENT */
@media (max-width: 768px) {

  .set-grid {
    grid-template-columns: 1fr;
  }

  .set-grid > * {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .set-grid > * p,
  .set-grid > * h3,
  .set-grid > * h2,
  .set-grid > * span,
  .set-grid > * small {
    text-align: center !important;
    width: 100%;
  }

}


/* IMPORT MODERN BOLD FONT */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700;800;900&display=swap');

/* COUPON DURATION TITLE */
.set-grid h2,
.set-grid h3,
.set-grid strong {
  font-family: 'Outfit', sans-serif !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* LETTER CATEGORY TITLE */
.category-grid button,
.category-grid .category-card,
.category-grid .category-name {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 900 !important;
}

/* TICKET NUMBER GRID */
.number-grid button,
.number-grid .number-btn {
  font-family: 'Outfit', sans-serif !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  letter-spacing: 0.3px;
}

/* MOBILE */
@media (max-width: 768px) {

  .set-grid h2,
  .set-grid h3,
  .set-grid strong {
    font-size: 24px !important;
  }

  .number-grid button,
  .number-grid .number-btn {
    font-size: 16px !important;
    font-weight: 900 !important;
  }

}


@media (max-width: 768px) {
  .set-grid h2,
  .set-grid h3,
  .set-grid .set-title {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 900 !important;
    font-size: 27px !important;
    letter-spacing: -0.8px;
    color: #ffffff !important;
    text-align: center !important;
    -webkit-text-stroke: 0.5px currentColor;
  }
}


/* MOBILE VIEW - LETTER & NUMBER CATEGORY */
@media screen and (max-width: 768px) {

  /* LETTER CATEGORY */
  .category-grid > * {
    font-size: 17px !important;
    font-weight: 900 !important;
    text-align: center !important;
  }

  .category-grid h3,
  .category-grid h2,
  .category-grid span,
  .category-grid strong {
    font-weight: 900 !important;
    font-size: 17px !important;
  }

  /* NUMBER CATEGORY - POPUP */
  .number-grid button {
    font-size: 17px !important;
    font-weight: 900 !important;
    letter-spacing: 0.3px;
    font-family: 'DM Sans', sans-serif !important;
    -webkit-text-stroke: 0.4px currentColor;
  }

  /* NUMBER GRID ALIGNMENT */
  .number-grid {
    gap: 8px;
  }

}



/* ==========================================================
   PREMIUM DETACHABLE COUPON TICKETS — REFERENCE MATCH
   Applies to duration and phase cards generated by ticket.js
========================================================== */

:root {
  --coupon-night: #10091e;
  --coupon-purple: #321044;
  --coupon-purple-deep: #1b0d29;
  --coupon-gold: #ffd45a;
  --coupon-gold-pale: #fff0a0;
  --coupon-ink: #452600;
}

.set-selection-section,
#phaseSection {
  scroll-margin-top: 95px;
}

.set-selection-section .number-heading,
#phaseSection .number-heading {
  margin-bottom: 25px;
}

.set-selection-section .number-heading h2,
#phaseSection .number-heading h2 {
  color: #fff;
  font-family: "Times New Roman", Georgia, serif !important;
  font-size: clamp(27px, 2.6vw, 35px);
  font-weight: 800;
  line-height: 1.2;
}

.set-selection-section .number-heading h2 small,
#phaseSection .number-heading h2 small {
  color: var(--coupon-gold);
  font-family: "Times New Roman", Georgia, serif;
  font-size: 1em;
  font-style: italic;
  font-weight: 800;
}

.set-selection-section .hero-copy,
#phaseSection .hero-copy {
  color: #cbbbd9;
  font-size: 13px;
}

/* Grid: two ticket coupons per row like the reference */
.set-grid,
.phase-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch;
}

/* Ticket body */
.set-grid .coupon-ticket,
.phase-grid .coupon-ticket {
  position: relative;
  isolation: isolate;
  display: grid !important;
  grid-template-columns: 25% minmax(0, 48%) 27%;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: 205px;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(160, 73, 197, .58) !important;
  border-radius: 23px !important;
  color: #fff;
  text-align: left !important;
  background:
    radial-gradient(circle at 13% 48%, rgba(153, 20, 203, .26), transparent 44%),
    repeating-linear-gradient(135deg, transparent 0 13px, rgba(255,255,255,.025) 13px 14px),
    linear-gradient(120deg, #390b50 0%, #210d32 62%, #291039 100%) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.045);
  opacity: 1 !important;
  cursor: pointer;
  transition: transform .32s ease, border-color .32s ease, box-shadow .32s ease, filter .32s ease;
}

/* ticket side semicircle perforations */
.set-grid .coupon-ticket::before,
.set-grid .coupon-ticket::after,
.phase-grid .coupon-ticket::before,
.phase-grid .coupon-ticket::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--coupon-night);
  transform: translateY(-50%);
  pointer-events: none;
}
.set-grid .coupon-ticket::before,
.phase-grid .coupon-ticket::before { left: -23px; }
.set-grid .coupon-ticket::after,
.phase-grid .coupon-ticket::after { right: -23px; }

/* Logo panel */
.coupon-logo-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
  background:
    radial-gradient(circle, rgba(166, 24, 220, .27), transparent 70%),
    linear-gradient(145deg, rgba(103, 20, 137, .24), rgba(0,0,0,.05));
}
.coupon-logo-panel img {
  display: block;
  width: 100%;
  max-width: 150px;
  max-height: 125px;
  object-fit: contain;
  filter: drop-shadow(0 5px 9px rgba(0,0,0,.45)) drop-shadow(0 0 8px rgba(255,193,45,.24));
  transition: transform .35s ease;
}

/* Main copy area */
.coupon-main-panel {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 19px 17px;
}
.coupon-main-panel .set-status {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  margin: 0 0 8px;
  padding: 3px 8px;
  border: 1px solid rgba(255,213,90,.42);
  border-radius: 30px;
  color: #f2ca65;
  background: rgba(255,213,90,.075);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.5px;
}
.coupon-title {
  display: block;
  margin: 0 0 8px;
  color: #fff;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(19px, 1.7vw, 27px);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.coupon-description {
  display: block;
  color: #d7c9e2;
  font-size: 11px;
  line-height: 1.55;
}
.coupon-preparation {
  display: block;
  margin-top: 8px;
  color: #e4c86d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
}
.coupon-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}
.coupon-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid rgba(255,213,90,.56);
  color: #f8d66e;
  background: rgba(255,213,90,.055);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .5px;
}

/* Dates in phase coupons */
.coupon-date-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin-top: 9px;
}
.coupon-date-row > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.coupon-date-row small {
  color: #d0b8df;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .7px;
}
.coupon-date-row b {
  color: #fff0c2;
  font-size: 9px;
  font-weight: 800;
}

/* Right detachable stub */
.coupon-stub {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px 10px;
  border-left: 2px dashed rgba(218,190,235,.5);
  background: rgba(0,0,0,.15);
  text-align: center;
}
.coupon-stub-logo {
  width: 48px;
  height: 40px;
  margin-bottom: 3px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.35));
}
.coupon-stub-title {
  display: block;
  color: var(--coupon-gold);
  font-family: "Times New Roman", Georgia, serif;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
}
.coupon-stub-caption {
  display: block;
  margin-top: 3px;
  color: #d8c9e3;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1px;
}
.coupon-stub-type {
  display: block;
  margin: 10px 0 9px;
  color: #e5d9ed;
  font-size: 8px;
  font-weight: 800;
}
.coupon-stub-type b {
  color: var(--coupon-gold);
}
.coupon-barcode {
  display: block;
  width: 94%;
  height: 30px;
  background: repeating-linear-gradient(90deg,
    #fff 0 2px, transparent 2px 4px,
    #fff 4px 6px, transparent 6px 9px);
  opacity: .8;
}
.coupon-code {
  display: block;
  margin-top: 4px;
  color: #c6b8d0;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .7px;
}

/* Active ticket: metallic gold foil */
.set-grid .coupon-ticket.active,
.phase-grid .coupon-ticket.active {
  border: 2px solid #ffe36c !important;
  color: var(--coupon-ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(255,255,255,.56), transparent 32%),
    radial-gradient(circle at 84% 86%, rgba(255,255,255,.2), transparent 35%),
    repeating-linear-gradient(135deg, transparent 0 13px, rgba(255,255,255,.12) 13px 14px),
    linear-gradient(120deg, #a96c08 0%, #e8b62e 22%, #ffe477 46%, #f2bf39 65%, #b77b0a 84%, #825000 100%) !important;
  box-shadow: 0 0 0 1px rgba(255,235,130,.35), 0 0 18px rgba(255,205,53,.4), 0 12px 26px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.65) !important;
}
.coupon-ticket.active .coupon-logo-panel {
  background: rgba(120,70,0,.13);
}
.coupon-ticket.active .coupon-logo-panel img {
  filter: drop-shadow(0 5px 7px rgba(75,40,0,.3));
}
.coupon-ticket.active .coupon-main-panel .set-status {
  color: #573300;
  border-color: rgba(91,52,0,.48);
  background: rgba(255,255,255,.2);
}
.coupon-ticket.active .coupon-title {
  color: #3d2200;
  text-shadow: 0 1px rgba(255,255,255,.22);
}
.coupon-ticket.active .coupon-description {
  color: #4d2c00;
}
.coupon-ticket.active .coupon-preparation {
  color: #593300;
}
.coupon-ticket.active .coupon-badges span {
  color: #4c2a00;
  border-color: #805000;
  background: rgba(255,255,255,.2);
}
.coupon-ticket.active .coupon-date-row small {
  color: #694300;
}
.coupon-ticket.active .coupon-date-row b {
  color: #3f2400;
}
.coupon-ticket.active .coupon-stub {
  border-left-color: rgba(91,52,0,.72);
  background: rgba(112,67,0,.15);
}
.coupon-ticket.active .coupon-stub-title,
.coupon-ticket.active .coupon-stub-type,
.coupon-ticket.active .coupon-code,
.coupon-ticket.active .coupon-stub-caption {
  color: #4c2a00;
}
.coupon-ticket.active .coupon-stub-type b {
  color: #684000;
}

/* Metallic corner accents */
.coupon-ticket.active .coupon-logo-panel::before,
.coupon-ticket.active .coupon-logo-panel::after,
.coupon-ticket.active .coupon-stub::before {
  content: "";
  position: absolute;
  width: 66px;
  height: 66px;
  border: 2px solid rgba(255,255,255,.58);
  border-radius: 12px;
  transform: rotate(45deg);
  pointer-events: none;
}
.coupon-ticket.active .coupon-logo-panel::before {
  top: -38px;
  left: -29px;
}
.coupon-ticket.active .coupon-logo-panel::after {
  bottom: -40px;
  left: -28px;
  opacity: .7;
}
.coupon-ticket.active .coupon-stub::before {
  top: -40px;
  right: -31px;
  opacity: .65;
}

/* Disabled cards stay purple and slightly muted */
.set-grid .coupon-ticket.disabled,
.phase-grid .coupon-ticket.disabled {
  opacity: .7 !important;
  filter: saturate(.72);
  cursor: not-allowed;
}
.set-grid .coupon-ticket.disabled:hover,
.phase-grid .coupon-ticket.disabled:hover {
  transform: none;
  border-color: rgba(160,73,197,.58) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.24) !important;
}

/* Active hover */
.set-grid .coupon-ticket.active:hover,
.phase-grid .coupon-ticket.active:hover {
  transform: translateY(-5px);
  border-color: #fff3a6 !important;
  box-shadow: 0 0 15px rgba(255,218,78,.7), 0 0 34px rgba(255,190,35,.28), 0 14px 30px rgba(0,0,0,.28) !important;
}
.coupon-ticket.active:hover .coupon-logo-panel img {
  transform: scale(1.07) rotate(-2deg);
}

/* Mobile: retain the complete three-part ticket design */
@media (max-width: 768px) {
  .set-grid,
  .phase-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .set-grid .coupon-ticket,
  .phase-grid .coupon-ticket {
    grid-template-columns: 23% minmax(0, 49%) 28%;
    min-height: 165px;
    border-radius: 17px !important;
  }
  .coupon-logo-panel {
    padding: 8px;
  }
  .coupon-logo-panel img {
    max-width: 88px;
    max-height: 92px;
  }
  .coupon-main-panel {
    padding: 13px 10px;
  }
  .coupon-main-panel .set-status {
    min-height: 17px;
    margin-bottom: 6px;
    padding: 3px 6px;
    font-size: 7px;
    letter-spacing: .8px;
  }
  .coupon-title {
    margin-bottom: 5px;
    font-size: clamp(16px, 4.2vw, 20px);
    line-height: 1.18;
  }
  .coupon-description {
    font-size: 9px;
    line-height: 1.45;
  }
  .coupon-preparation {
    margin-top: 5px;
    font-size: 8px;
  }
  .coupon-badges {
    gap: 4px;
    margin-top: 7px;
  }
  .coupon-badges span {
    min-height: 21px;
    padding: 3px 5px;
    font-size: 7px;
  }
  .coupon-stub {
    padding: 8px 5px;
  }
  .coupon-stub-logo {
    width: 37px;
    height: 31px;
  }
  .coupon-stub-title {
    font-size: 13px;
  }
  .coupon-stub-caption {
    font-size: 6px;
    letter-spacing: .6px;
  }
  .coupon-stub-type {
    margin: 7px 0;
    font-size: 6px;
  }
  .coupon-barcode {
    height: 22px;
  }
  .coupon-code {
    font-size: 5px;
    letter-spacing: .2px;
  }
  .coupon-date-row {
    gap: 5px 9px;
    margin-top: 6px;
  }
  .coupon-date-row small {
    font-size: 6px;
  }
  .coupon-date-row b {
    font-size: 7px;
  }
  .set-grid .coupon-ticket::before,
  .set-grid .coupon-ticket::after,
  .phase-grid .coupon-ticket::before,
  .phase-grid .coupon-ticket::after {
    width: 30px;
    height: 30px;
  }
  .set-grid .coupon-ticket::before,
  .phase-grid .coupon-ticket::before { left: -18px; }
  .set-grid .coupon-ticket::after,
  .phase-grid .coupon-ticket::after { right: -18px; }

  .set-selection-section .number-heading,
  #phaseSection .number-heading {
    text-align: left;
    justify-content: flex-start;
  }
  .set-selection-section .number-heading > div,
  #phaseSection .number-heading > div {
    width: 100%;
    text-align: left;
  }
  .set-selection-section .eyebrow,
  #phaseSection .eyebrow {
    justify-content: flex-start;
  }
  .set-selection-section h2,
  #phaseSection h2 {
    text-align: left;
  }
  .set-selection-section .hero-copy,
  #phaseSection .hero-copy {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
}

@media (max-width: 380px) {
  .set-grid .coupon-ticket,
  .phase-grid .coupon-ticket {
    grid-template-columns: 21% minmax(0, 51%) 28%;
    min-height: 151px;
  }
  .coupon-logo-panel img {
    max-width: 68px;
  }
  .coupon-main-panel {
    padding: 10px 7px;
  }
  .coupon-title {
    font-size: 15px;
  }
  .coupon-description {
    font-size: 8px;
  }
  .coupon-badges span {
    font-size: 6px;
    padding: 3px 4px;
  }
  .coupon-stub-logo {
    width: 32px;
    height: 27px;
  }
  .coupon-stub-title {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .coupon-ticket,
  .coupon-logo-panel img {
    transition: none !important;
  }
}



/* =========================================
   PHASE 1 — WHITE & RUBY RED
========================================= */

#phaseSelection > .coupon-ticket:nth-child(1),
#phaseSelection > .coupon-ticket:nth-child(1).active {
    --phase-accent: #c8102e;
    --phase-light: #fff0f2;

    background:
        repeating-linear-gradient(
            135deg,
            transparent 0 13px,
            rgba(200, 16, 46, 0.045) 13px 14px
        ),
        linear-gradient(
            110deg,
            #ffffff 0%,
            #fff5f6 65%,
            #f8dce1 100%
        ) !important;

    border: 2px solid #c8102e !important;
    box-shadow: 0 5px 22px rgba(200,16,46,.18) !important;
}

/* Phase 1 logo panel */
#phaseSelection > .coupon-ticket:nth-child(1) .coupon-logo-panel {
    background: linear-gradient(145deg, #fff, #fce3e7) !important;
}

/* Phase 1 text */
#phaseSelection > .coupon-ticket:nth-child(1) .coupon-title,
#phaseSelection > .coupon-ticket:nth-child(1) .coupon-description,
#phaseSelection > .coupon-ticket:nth-child(1) .coupon-date-row b {
    color: #40101a !important;
}

#phaseSelection > .coupon-ticket:nth-child(1) .coupon-preparation,
#phaseSelection > .coupon-ticket:nth-child(1) .coupon-date-row small,
#phaseSelection > .coupon-ticket:nth-child(1) .set-status {
    color: #b10d2c !important;
}

/* Phase 1 badges */
#phaseSelection > .coupon-ticket:nth-child(1) .coupon-badges span {
    color: #b10d2c !important;
    border-color: #c8102e !important;
    background: #fff !important;
}

/* Phase 1 detachable stub */
#phaseSelection > .coupon-ticket:nth-child(1) .coupon-stub {
    background: linear-gradient(145deg, #c8102e, #870019) !important;
    border-left: 2px dashed rgba(255,255,255,.75) !important;
}

#phaseSelection > .coupon-ticket:nth-child(1) .coupon-stub-title,
#phaseSelection > .coupon-ticket:nth-child(1) .coupon-stub-type,
#phaseSelection > .coupon-ticket:nth-child(1) .coupon-stub-type b,
#phaseSelection > .coupon-ticket:nth-child(1) .coupon-stub-caption,
#phaseSelection > .coupon-ticket:nth-child(1) .coupon-code {
    color: #fff !important;
}


/* =========================================
   PHASE 2 — WHITE & ROYAL VIOLET
========================================= */

#phaseSelection > .coupon-ticket:nth-child(2),
#phaseSelection > .coupon-ticket:nth-child(2).active {
    --phase-accent: #7136b5;
    --phase-light: #f3eaff;

    background:
        repeating-linear-gradient(
            135deg,
            transparent 0 13px,
            rgba(113, 54, 181, 0.045) 13px 14px
        ),
        linear-gradient(
            110deg,
            #ffffff 0%,
            #f8f3ff 65%,
            #e8dafa 100%
        ) !important;

    border: 2px solid #7136b5 !important;
    box-shadow: 0 5px 22px rgba(113,54,181,.2) !important;
}

/* Phase 2 logo panel */
#phaseSelection > .coupon-ticket:nth-child(2) .coupon-logo-panel {
    background: linear-gradient(145deg, #fff, #eee3ff) !important;
}

/* Phase 2 text */
#phaseSelection > .coupon-ticket:nth-child(2) .coupon-title,
#phaseSelection > .coupon-ticket:nth-child(2) .coupon-description,
#phaseSelection > .coupon-ticket:nth-child(2) .coupon-date-row b {
    color: #29143f !important;
}

#phaseSelection > .coupon-ticket:nth-child(2) .coupon-preparation,
#phaseSelection > .coupon-ticket:nth-child(2) .coupon-date-row small,
#phaseSelection > .coupon-ticket:nth-child(2) .set-status {
    color: #7136b5 !important;
}

/* Phase 2 badges */
#phaseSelection > .coupon-ticket:nth-child(2) .coupon-badges span {
    color: #7136b5 !important;
    border-color: #7136b5 !important;
    background: #fff !important;
}

/* Phase 2 detachable stub */
#phaseSelection > .coupon-ticket:nth-child(2) .coupon-stub {
    background: linear-gradient(145deg, #7136b5, #42166f) !important;
    border-left: 2px dashed rgba(255,255,255,.75) !important;
}

#phaseSelection > .coupon-ticket:nth-child(2) .coupon-stub-title,
#phaseSelection > .coupon-ticket:nth-child(2) .coupon-stub-type,
#phaseSelection > .coupon-ticket:nth-child(2) .coupon-stub-type b,
#phaseSelection > .coupon-ticket:nth-child(2) .coupon-stub-caption,
#phaseSelection > .coupon-ticket:nth-child(2) .coupon-code {
    color: #fff !important;
}


/* =========================================
   PREMIUM HOVER EFFECTS
========================================= */

#phaseSelection > .coupon-ticket:nth-child(1):hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(200,16,46,.28) !important;
}

#phaseSelection > .coupon-ticket:nth-child(2):hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(113,54,181,.3) !important;
}



/* ==========================================
   TEP JACKPOT - FULL FILL CATEGORY DESIGN
========================================== */

@media (max-width: 600px) {

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .category-card {
        width: 100% !important;
        min-height: 145px !important;
        padding: 12px 8px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .category-card .card-copy {
        width: 100% !important;
        min-height: 115px;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        text-align: center !important;
    }

    /* CATEGORY TITLE */
    .category-card .card-kicker {
        width: 100%;
        font-size: 10px !important;
        font-weight: 900 !important;
        letter-spacing: 1.2px !important;
        text-align: center !important;
    }

    /* LETTER CODE - FULL FOCUS */
    .category-card .card-copy strong {
        display: block !important;
        width: 100% !important;

        font-family: "Playfair Display", Georgia, serif !important;
        font-size: clamp(30px, 9vw, 38px) !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        letter-spacing: 2px !important;

        color: #ffffff !important;
        text-align: center !important;

        text-shadow:
            0 0 10px rgba(255,255,255,.25),
            0 3px 12px rgba(0,0,0,.4);
    }

    /* NUMBER RANGE */
    .category-card .card-copy small {
        font-size: 11px !important;
        font-weight: 800 !important;
        letter-spacing: .5px !important;
        text-align: center !important;
        color: #ffffff !important;
        line-height: 1.4 !important;
    }

    .category-card .card-suit {
        top: 7px !important;
        right: 8px !important;
        font-size: 16px !important;
    }

    .category-card .card-arrow {
        position: absolute !important;
        right: 7px !important;
        bottom: 7px !important;
        width: 23px !important;
        height: 23px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 380px) {
    .category-card {
        min-height: 135px !important;
    }

    .category-card .card-copy strong {
        font-size: 29px !important;
    }

    .category-card .card-copy small {
        font-size: 10px !important;
    }
}


@media (max-width: 600px) {
    .card-range {
        font-size: 12px;
        font-weight: 900;
        color: #ffffff;
        letter-spacing: .7px;
    }

    .card-ticket-label {
        font-size: 9px !important;
        letter-spacing: 1px;
    }
}



/* ==========================================
   TEP JACKPOT - RESPONSIVE PHASE DATES
   Desktop + Tablet + Mobile
========================================== */

/* DESKTOP */
@media (min-width: 1025px) {

    .phase-grid .coupon-date-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 12px 22px !important;
        margin-top: 12px !important;
    }

    .phase-grid .coupon-date-row small {
        font-size: 10px !important;
        font-weight: 900 !important;
        letter-spacing: .8px !important;
    }

    .phase-grid .coupon-date-row b {
        font-size: 13px !important;
        font-weight: 900 !important;
        line-height: 1.4 !important;
        white-space: nowrap !important;
    }
}

/* TABLET */
@media (min-width: 601px) and (max-width: 1024px) {

    .phase-grid .coupon-date-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 10px 16px !important;
        margin-top: 10px !important;
    }

    .phase-grid .coupon-date-row small {
        font-size: 9px !important;
        font-weight: 900 !important;
        letter-spacing: .6px !important;
    }

    .phase-grid .coupon-date-row b {
        font-size: 12px !important;
        font-weight: 900 !important;
        line-height: 1.4 !important;
        white-space: nowrap !important;
    }
}

/* MOBILE */
@media (max-width: 600px) {

    .phase-grid .coupon-date-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }

    .phase-grid .coupon-date-row > span {
        min-width: 0 !important;
        gap: 4px !important;
    }

    .phase-grid .coupon-date-row small {
        font-size: 8px !important;
        font-weight: 900 !important;
        letter-spacing: .5px !important;
    }

    .phase-grid .coupon-date-row b {
        font-size: clamp(10px, 2.9vw, 12px) !important;
        font-weight: 900 !important;
        line-height: 1.4 !important;
        white-space: nowrap !important;
    }
}

/* EXTRA SMALL MOBILE */
@media (max-width: 380px) {

    .phase-grid .coupon-date-row {
        gap: 6px !important;
    }

    .phase-grid .coupon-date-row small {
        font-size: 7px !important;
    }

    .phase-grid .coupon-date-row b {
        font-size: 10px !important;
    }
}



/* ==========================================
   PREMIUM DATE HOVER EFFECT
   DESKTOP + TABLET + MOBILE
========================================== */

/* Smooth transition */
.phase-grid .coupon-date-row small,
.phase-grid .coupon-date-row b {
    transition: all .3s ease !important;
}

/* Card hover */
.phase-grid .phase-card:hover .coupon-date-row b,
.phase-grid .coupon-ticket:hover .coupon-date-row b {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 900 !important;

    text-shadow:
        0 0 5px rgba(255,255,255,.8),
        0 0 12px rgba(255,220,120,.65),
        0 0 22px rgba(255,190,70,.35);

    transform: translateY(-2px);
}

/* Date labels hover */
.phase-grid .phase-card:hover .coupon-date-row small,
.phase-grid .coupon-ticket:hover .coupon-date-row small {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255,255,255,.65);
    letter-spacing: 1px !important;
}

/* Individual date highlight */
.phase-grid .coupon-date-row > span {
    transition: all .3s ease !important;
}

.phase-grid .phase-card:hover .coupon-date-row > span,
.phase-grid .coupon-ticket:hover .coupon-date-row > span {
    filter: brightness(1.3);
}

/* Keyboard accessibility */
.phase-grid .phase-card:focus-visible .coupon-date-row b {
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(255,220,120,.8);
}

/* Touch devices - no hover zoom */
@media (hover: none) {
    .phase-grid .coupon-ticket:hover .coupon-date-row b {
        font-size: inherit !important;
        transform: none !important;
    }
}


