/* ==========================================================================
   LOCAL FONTS & DESIGN SYSTEM VARIABLES
   ========================================================================== */

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/rubik-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/rubik-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Harmonious Light Palette */
  --primary: #22AA89;
  --primary-dark: #1b8a6e;
  --primary-light: rgba(34, 170, 137, 0.1);
  --bg-main: #ffffff;
  --bg-pane: #f9fbfb;
  --bg-element: #f4f7f6;
  
  --text-dark: #1d1d1c;
  --text-gray: #636b7b;
  --text-muted: #8892a0;
  --white: #ffffff;
  
  /* Borders and Separators */
  --border-light: #f0f2f1;
  --border-glass: rgba(255, 255, 255, 0.2);
  
  /* Shadows & Radius */
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-premium: 0 24px 64px rgba(0, 0, 0, 0.06);
  
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

/* ==========================================================================
   GLOBAL RESET & UTILITIES
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
}

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

.svg-filters {
  display: none !important;
}

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

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

input {
  border: none;
  background: none;
  font-family: inherit;
  outline: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   APP GRID LAYOUT (Responsive Split-Pane System)
   ========================================================================== */

.app-container {
  display: block; /* Block layout on mobile prevents child-induced grid columns stretching */
  min-height: 100vh;
  width: 100%;
  background: var(--bg-main);
}

/* LEFT PANEL (Sidebar Vertical Menu) */
.left-panel {
  display: none; /* Shown on desktop breakpoint */
}



.back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  background: var(--bg-element);
  transition: var(--transition-fast);
}

.back-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.header-spacer {
  width: 40px; /* Aligns title to center */
}

/* SEARCH FORMS */
.mobile-search-area {
  padding: 24px 16px 0 16px;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  width: 100%;
  background: var(--bg-element);
  border-radius: 20px;
  border: 1px solid transparent;
  padding: 16px 64px 16px 24px;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-dark);
  transition: all var(--transition-fast);
}

.search-input::placeholder {
  text-transform: none;
  font-weight: 400;
  color: var(--text-gray);
}

.search-input:focus {
  border-color: rgba(34, 170, 137, 0.3);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.search-submit-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(34, 170, 137, 0.2);
  transition: all var(--transition-fast);
}

.search-submit-btn:hover {
  transform: translateY(-50%) scale(1.05);
}

.search-submit-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.icon-search {
  width: 20px;
  height: 20px;
}

/* MOBILE TABS SCROLL */
.mobile-tabs-scroll {
  padding: 24px 16px;
  overflow-x: auto;
  width: 100%;
}

.mobile-tabs-pill {
  display: flex;
  gap: 8px;
  width: max-content;
}

.tab-btn {
  padding: 10px 20px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-gray);
  transition: all var(--transition-fast);
}

.tab-btn.active {
  color: var(--text-dark);
  background: var(--bg-element);
}

.tab-btn:hover:not(.active) {
  color: var(--text-dark);
  background: rgba(0, 0, 0, 0.05);
}

/* PROMO LIST GRID */
.main-content {
  background-color: var(--bg-main);
  padding-bottom: 96px;
}

.promo-grid-container {
  padding: 0 16px;
  max-width: 720px;
  margin: 0 auto;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* EMPTY STATE */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  text-align: center;
}

/* MOBILE RULES FOOTER */
.mobile-footer {
  padding: 24px 16px;
  display: flex;
  justify-content: center;
}

.rules-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
  transition: color var(--transition-fast);
}

.rules-link:hover {
  color: var(--text-dark);
}

.icon-info {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   DYNAMIC LIQUID GLASS PROMO CARD
   ========================================================================== */

.promo-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), opacity var(--transition-smooth);
  cursor: pointer;
  
  /* Webkit clipping bug fixes */
  isolation: isolate;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.promo-card:hover {
  transform: translateY(-6px);
}

/* Share border-radius inheritances to inner layers to guarantee WebKit clips correctly */
.card-art-area,
.art-container,
.art-base,
.art-noise,
.card-contrast-overlay,
.detail-art-area,
.glass-info-bg {
  border-radius: inherit;
}

.promo-card:not(.inactive) {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.promo-card:not(.inactive):hover {
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.16);
}

.promo-card.inactive {
  opacity: 0.65;
}

.promo-card.inactive:hover {
  opacity: 0.95;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* Deterministic Gradient Art Backdrop */
.card-art-area {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.art-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.art-base {
  position: absolute;
  inset: 0;
}

.art-shape {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: normal;
  will-change: transform;
}

.art-noise {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Mesh Contrast Overlay (Ensures white text readability) */
.card-contrast-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  mix-blend-mode: overlay;
  z-index: 1;
  pointer-events: none;
}

/* Top Area: Date badge */
.card-top-content {
  position: relative;
  z-index: 10;
  padding: 20px 20px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.date-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Center massive code area */
.card-center-content {
  position: relative;
  z-index: 10;
  padding: 0 24px;
  margin-top: auto;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.code-value {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
  line-height: 1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo-card.inactive .code-value {
  text-decoration: line-through;
  opacity: 0.7;
}

/* Rounded Blur Copy Button */
.copy-btn-circular {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.copy-btn-circular:hover {
  background: rgba(255, 255, 255, 0.8);
}

.copy-btn-circular:active {
  transform: scale(0.95);
}

.copy-btn-circular svg {
  width: 20px;
  height: 20px;
}

/* Floating Glass Block (Gooey Layering Trick) */
.glass-info-block {
  position: relative;
  z-index: 10;
  margin: 0 16px 16px 16px;
  border-radius: 24px;
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  
  /* Webkit clipping bug fixes */
  isolation: isolate;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* SVG Refract displaced filter applied ONLY to background container */
.glass-info-bg {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  filter: url(#liquid-glass-filter);
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

/* Unfiltered text layer remains perfectly crisp on top */
.glass-info-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.card-title.inactive-text {
  color: rgba(255, 255, 255, 0.6);
}

.card-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Glass border-t activate button */
.glass-info-action {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-glass);
}

.glass-activate-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  transition: all var(--transition-fast);
}

.glass-activate-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.glass-activate-btn:active {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   DETAILS PANEL (Mobile Slide-Up Drawer / Desktop Splitted Third Pane)
   ========================================================================== */

.details-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
  transition: visibility var(--transition-smooth);
}

.details-panel.active {
  visibility: visible;
  pointer-events: auto;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.details-panel.active .drawer-overlay {
  opacity: 1;
}

.details-pane-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 88vh;
  background: var(--bg-main);
  border-radius: 36px 36px 0 0;
  transform: translateY(100%);
  transition: transform var(--transition-smooth);
  overflow-y: auto;
  box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.05);
}

.details-panel.active .details-pane-content {
  transform: translateY(0);
}

.desktop-placeholder {
  display: none; /* Shown on desktop only */
}

/* Detail page main layout injected via JS */
.detail-view {
  padding: 24px 16px 48px 16px;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-view-header {
  position: sticky;
  top: -24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 50;
  margin: -24px -16px 0 -16px;
  padding: 24px 16px 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
}

.detail-view-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Detail Hero Card */
.detail-hero-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.1);
  
  /* Webkit clipping bug fixes */
  isolation: isolate;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.detail-hero-card.inactive {
  opacity: 0.7;
}

.detail-art-area {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.detail-top-content {
  position: relative;
  z-index: 10;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.detail-center-content {
  position: relative;
  z-index: 10;
  padding: 0 28px;
  margin-top: auto;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.detail-code-value {
  font-family: SFMono-Regular, Consolas, monospace;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
  line-height: 1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-hero-card.inactive .detail-code-value {
  text-decoration: line-through;
  opacity: 0.7;
}

.detail-copy-btn-circular {
  width: 52px;
  height: 52px;
}

.detail-glass-info-block {
  margin: 0 20px 20px 20px;
  border-radius: 28px;
}

.detail-glass-info-block .glass-info-content {
  padding: 24px;
}

.detail-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}

.detail-title.inactive-text {
  color: rgba(255, 255, 255, 0.6);
}

.detail-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.detail-glass-activate-btn {
  padding: 16px 0;
  font-size: 17px;
}

/* Detail Stats Grid */
.detail-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-box {
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all var(--transition-fast);
}

.stat-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  border-color: rgba(34, 170, 137, 0.15);
}

.stat-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: all var(--transition-fast);
}

.stat-icon-wrapper svg {
  width: 18px;
  height: 18px;
}

.stat-icon-wrapper.text-emerald {
  color: var(--primary);
  background: rgba(34, 170, 137, 0.08);
}

.stat-icon-wrapper.text-blue {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

.stat-icon-wrapper.text-slate {
  color: #64748b;
  background: rgba(100, 116, 139, 0.08);
}

.stat-icon-wrapper.text-rose {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.stat-value {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 2px;
}

.stat-value-total {
  font-size: 15px;
  color: var(--text-gray);
  font-weight: 500;
}

.stat-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-gray);
  line-height: 1.3;
}

/* Countdown Timer Box */
.timer-box {
  grid-column: span 2;
  background: var(--primary);
  color: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(34, 170, 137, 0.25);
  position: relative;
  overflow: hidden;
  border: none;
}

.timer-box:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 16px 48px rgba(34, 170, 137, 0.35);
}

.timer-box-glow {
  position: absolute;
  left: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, 0.15);
  filter: blur(50px);
  border-radius: 50%;
  pointer-events: none;
}

.timer-box-icon {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 160px;
  height: 160px;
  opacity: 0.1;
  color: var(--white);
}

.timer-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.timer-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 10;
}

.timer-part {
  display: flex;
  align-items: baseline;
}

.timer-part-unit {
  font-size: 18px;
  opacity: 0.75;
  margin-left: 2px;
}

.timer-divider {
  opacity: 0.5;
  padding-bottom: 6px;
}

/* History Transaction Listing */
.history-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
}

.history-heading {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.3px;
  padding-left: 8px;
}

.history-day {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-date-badge {
  align-self: center;
  background: var(--bg-element);
  padding: 6px 16px;
  border-radius: 20px;
}

.history-date-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-gray);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.history-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.01);
  overflow: hidden;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  transition: background-color var(--transition-fast);
}

.history-item:hover {
  background-color: var(--bg-element);
}

.history-item-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-amount {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1;
}

.history-details {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-gray);
}

.history-time {
  background: var(--bg-element);
  padding: 2px 8px;
  border-radius: 6px;
}

.history-volume-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.history-volume-row svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.history-bonus-badge {
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  background: var(--primary-light);
  border: 1px solid rgba(34, 170, 137, 0.15);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.history-bonus-badge svg {
  width: 12px;
  height: 12px;
  color: var(--primary);
  stroke-width: 3px;
}

.history-bonus-num {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
}

.history-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0 20px;
}

/* ==========================================================================
   GLASSMORPHIC TOAST NOTIFICATION SYSTEM
   ========================================================================== */

.toast-container {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 90%;
  max-width: 380px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-premium);
  transform: translateY(-20px);
  opacity: 0;
  transition: transform var(--transition-spring), opacity var(--transition-smooth);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

.toast-message {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
}

/* ==========================================================================
   PREMIUM DESKTOP DASHBOARD RESPONSIVE BREAKPOINT (Width >= 1024px)
   ========================================================================== */

@media (min-width: 1024px) {
  
  .app-container {
    display: grid;
    grid-template-columns: 350px 1fr 440px;
    height: 100vh;
    overflow: hidden;
  }
  
  /* Left Panel Sidebar Dashboard Pane */
  .left-panel {
    display: flex;
    flex-direction: column;
    background: var(--bg-pane);
    border-right: 1px solid var(--border-light);
    padding: 32px 24px;
    z-index: 40;
  }
  

  
  /* Desktop Quick Stats */
  .desktop-stats-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
  }
  
  .stats-content {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
  
  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .stat-num {
    font-size: 26px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.1;
  }
  
  .stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-gray);
  }
  
  .stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-light);
  }
  
  /* Desktop Search Box */
  .desktop-search-container {
    margin-bottom: 32px;
  }
  
  /* Desktop Left Sidebar Vertical Pills Menu */
  .sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
  }
  
  .tab-list-vertical {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .tab-item-vertical {
    position: relative;
    width: 100%;
  }
  
  .tab-btn-vertical {
    width: 100%;
    text-align: left;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color var(--transition-fast);
    position: relative;
    z-index: 2;
  }
  
  .tab-btn-vertical.active {
    color: var(--text-dark);
  }
  
  .tab-btn-vertical:hover:not(.active) {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.03);
    border-radius: 16px;
  }
  
  .tab-btn-vertical-bg {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    z-index: 1;
  }
  
  .tab-count-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 8px;
    background: var(--bg-element);
    color: var(--text-gray);
    transition: all var(--transition-fast);
  }
  
  .tab-btn-vertical.active .tab-count-badge {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(34, 170, 137, 0.15);
  }
  
  .rules-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
  }
  
  /* Middle Listing Grid Pane */
  .main-content {
    padding: 32px;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  
  /* Hide Mobile exclusive elements */
  .mobile-search-area,
  .mobile-tabs-scroll,
  .mobile-footer {
    display: none;
  }
  
  .promo-grid-container {
    padding: 0;
    max-width: 100%;
    width: 100%;
    margin: 0;
  }
  
  .promo-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }
  
  /* Details Panel - Static Premium Splitted Right Column */
  .details-panel {
    position: static;
    display: block;
    visibility: visible;
    pointer-events: auto;
    background: var(--bg-pane);
    border-left: 1px solid var(--border-light);
    z-index: 40;
  }
  
  .drawer-overlay {
    display: none;
  }
  
  .details-pane-content {
    position: static;
    height: 100vh;
    width: 100%;
    background: transparent;
    border-radius: 0;
    border: none;
    transform: none;
    box-shadow: none;
    overflow-y: auto;
  }
  
  /* Desktop Empty/Placeholder Illustration screen */
  .desktop-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    gap: 20px;
  }
  
  .placeholder-illustration {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-sm);
  }
  
  .placeholder-glow {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    filter: url(#liquid-glass-filter);
    z-index: 2;
    will-change: transform;
  }
  
  .placeholder-shapes {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #d9f0a3, #22aa89);
    z-index: 1;
  }
  
  .placeholder-shapes::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff3366, #ff9933);
    animation: floatBlob1 15s infinite linear;
  }
  
  .placeholder-text-wrapper {
    max-width: 280px;
  }
  
  .placeholder-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
  }
  
  .placeholder-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
  }
  
  /* Details view overrides on desktop */
  .detail-view {
    padding: 32px;
    gap: 32px;
  }
  
  .detail-view-header {
    display: none;
  }
}

/* ==========================================================================
   INTERACTIVE & ANIMATION EFFECTS
   ========================================================================== */

@keyframes cardFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(24px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes floatArt {
  0% { transform: rotate(0deg) scale(1); }
  33% { transform: scale(1.15); }
  66% { transform: scale(0.9); }
  100% { transform: rotate(360deg) scale(1); }
}

.promo-card.selected-item {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08) !important;
}

.promo-card.selected-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid rgba(0, 0, 0, 0.16) !important;
  border-radius: inherit;
  pointer-events: none;
  z-index: 10;
}

/* ==========================================================================
   MODAL WINDOW FOR RULES & INFO SCREEN
   ========================================================================== */

.info-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
  padding: 20px;
}

.info-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.info-modal-card {
  background: var(--bg-main);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-premium);
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.92) translateY(16px);
  transition: transform var(--transition-spring), opacity var(--transition-smooth);
  padding: 36px;
}

.info-modal-overlay.active .info-modal-card {
  transform: scale(1) translateY(0);
}

.info-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-element);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 10;
}

.info-modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: scale(1.05);
}

.info-modal-close:active {
  transform: scale(0.95);
}

.info-modal-close svg {
  width: 18px;
  height: 18px;
}

.info-modal-body {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.6;
}

.info-modal-body h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-right: 40px;
  letter-spacing: -0.4px;
}

.info-modal-body p {
  margin-bottom: 14px;
}

.info-modal-body ul, .info-modal-body ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

.info-modal-body li {
  margin-bottom: 8px;
}

.info-modal-body strong {
  color: var(--text-dark);
  font-weight: 600;
}

@media (max-width: 767px) {
  .info-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .info-modal-card {
    border-radius: 32px 32px 0 0;
    max-height: 85vh;
    transform: translateY(100%);
    padding: 36px 20px 48px 20px;
  }

  .info-modal-overlay.active .info-modal-card {
    transform: translateY(0);
  }
}

/* ==========================================================================
   MINIMALIST TERMS AND CONDITIONS & HELP LINKS
   ========================================================================== */

.terms-card {
  background: var(--bg-element);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.terms-heading {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.terms-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.terms-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.45;
}

.terms-label {
  color: var(--text-gray);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.terms-value {
  color: var(--text-dark);
  font-weight: 600;
  text-align: left;
  font-size: 14px;
}

.terms-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 6px 0;
}

.terms-rules-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.terms-rules-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terms-rules-list li {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.5;
  position: relative;
  padding-left: 16px;
}

.terms-rules-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.detail-footer-info {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.info-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
  transition: color var(--transition-fast);
}

.info-link-btn:hover {
  color: var(--text-dark);
}

.info-link-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5px;
}

/* ==========================================================================
   STATIC STATUS DISPLAY & DATES
   ========================================================================== */

.stat-box.status-activated .stat-value {
  color: var(--primary);
}

.stat-box.status-applied .stat-value {
  color: #64748b;
}

.stat-box.status-expired .stat-value {
  color: #ef4444;
}

.stat-box.status-activated:hover {
  border-color: rgba(34, 170, 137, 0.3);
  box-shadow: 0 8px 24px rgba(34, 170, 137, 0.06);
}

.stat-box.status-applied:hover {
  border-color: rgba(100, 116, 139, 0.3);
  box-shadow: 0 8px 24px rgba(100, 116, 139, 0.06);
}

.stat-box.status-expired:hover {
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.06);
}

.detail-activation-date {
  font-size: 13px;
  color: var(--text-gray);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-element);
  padding: 8px 16px;
  border-radius: 20px;
  align-self: flex-start;
  margin-top: 8px;
  border: 1px solid var(--border-light);
}

.detail-activation-date svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

/* ==========================================================================
   EMPTY SEARCH RESULTS STATE
   ========================================================================== */

.search-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  background: var(--white);
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-xl);
  margin: 16px 0;
}

.search-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #ef4444;
}

.search-empty-icon svg {
  width: 32px;
  height: 32px;
}

.search-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.search-empty-subtitle {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 20px;
  max-width: 320px;
  line-height: 1.5;
}

.search-reset-btn {
  padding: 10px 24px;
  background: var(--bg-element);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  transition: all var(--transition-fast);
}

.search-reset-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.search-reset-btn:active {
  transform: translateY(0);
}

/* ==========================================================================
   INLINE ACTIVATION TRANSITIONS
   ========================================================================== */

@keyframes badgeScaleUp {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(34, 170, 137, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(34, 170, 137, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 170, 137, 0); }
}

.promo-card.activated-anim {
  animation: pulseGlow 1.2s ease-out;
}

.promo-card.activated-anim .date-badge {
  background: linear-gradient(135deg, var(--primary), #10b981) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: var(--white) !important;
  animation: badgeScaleUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.promo-card.activated-anim .glass-info-action {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  pointer-events: none;
}


