@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Russo+One&display=swap');

:root {
  /* Theme Color Tokens */
  --bg-dark: #090b0e;
  --bg-card: #131720;
  --bg-card-hover: #1a202c;
  --bg-modal: #11141c;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Accents & Gradients */
  --accent: #00d2ff;
  --accent-glow: rgba(0, 210, 255, 0.35);
  --accent-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  --accent-purple: #a78bfa;
  --accent-purple-gradient: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  
  --danger: #ff4757;
  --danger-glow: rgba(255, 71, 87, 0.4);
  --success: #2ed573;
  --success-glow: rgba(46, 213, 115, 0.3);
  --warning: #ffa502;
  
  /* Borders & Glass */
  --border-color: rgba(255, 255, 255, 0.1);
  --border-highlight: rgba(0, 210, 255, 0.4);
  --glass-bg: rgba(19, 23, 32, 0.85);
  --glass-backdrop: blur(12px);
  --overlay-bg: rgba(5, 7, 10, 0.82);

  /* Spacings & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Typography */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-logo: 'Russo One', sans-serif;
  
  /* Dynamic Header Height */
  --header-h: 150px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 210, 255, 0.05), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.06), transparent 45%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--header-h);
}

body.landing-active {
  overflow: hidden;
}

body.landing-active .planner-header,
body.landing-active .main-content,
body.landing-active .selected-games-container {
  pointer-events: none;
  filter: blur(4px);
}

/* ==========================================================================
   1. LANDING MODAL SCREEN (MEDIA PENYIMPANAN)
   ========================================================================== */
.landing-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.landing-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.landing-backdrop {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0, 210, 255, 0.25), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.25), transparent 50%),
    rgba(6, 9, 13, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.landing-card {
  position: relative;
  width: min(620px, 100%);
  background: linear-gradient(160deg, rgba(22, 27, 37, 0.95), rgba(12, 15, 22, 0.98));
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 210, 255, 0.15);
  animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.landing-eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-eyebrow::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

.landing-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.landing-storage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.landing-choice-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(15, 20, 30, 0.6);
  cursor: pointer;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-choice-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: rgba(0, 210, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 210, 255, 0.2);
}

.landing-choice-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: var(--accent);
  transition: all 0.25s ease;
}

.landing-choice-card:hover .landing-choice-icon {
  background: var(--accent-gradient);
  color: #000;
  box-shadow: 0 0 15px var(--accent-glow);
}

.landing-choice-label {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
}

/* ==========================================================================
   2. STICKY HEADER & STORAGE PLANNER BAR
   ========================================================================== */
.planner-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  padding: 12px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.storage-meter-section {
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.header-collapsible {
  max-height: 500px;
  opacity: 1;
  overflow: visible;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin 0.35s ease, transform 0.35s ease;
  transform: translateY(0);
}

.planner-header.header-hidden {
  padding: 8px 0;
  background: rgba(11, 14, 20, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
}

.planner-header.header-hidden .header-collapsible {
  max-height: 0;
  opacity: 0;
  margin: 0;
  transform: translateY(-10px);
  pointer-events: none;
  overflow: hidden;
}

.planner-header.header-hidden .storage-meter-section {
  margin-bottom: 0;
  padding: 2px 0;
}

.planner-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.planner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 16px;
}

/* Header Segmented Nav Tabs Switcher */
.nav-tabs {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: var(--radius-pill);
  gap: 4px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.nav-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab-btn.active {
  background: var(--accent-gradient);
  color: #000000;
  font-weight: 800;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.nav-tab-btn svg {
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 42px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
  transition: transform 0.25s ease;
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.logo-text {
  font-family: var(--font-logo);
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-grandia {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.logo-tavern {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
}

.planner-storage-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Custom Select Dropdowns */
.custom-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-select option,
select option,
.form-control option {
  background-color: #131720 !important;
  color: #f8fafc !important;
  padding: 10px 14px;
  font-weight: 600;
}

.custom-select:hover, .custom-select:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.storage-type-select {
  width: 130px;
}

.capacity-dropdown {
  position: relative;
  width: 150px;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 9px 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.dropdown-trigger:hover {
  background: rgba(0, 210, 255, 0.16);
  box-shadow: 0 0 12px var(--accent-glow);
}

.capacity-dropdown {
  position: relative;
  width: 150px;
  z-index: 1000;
}

.dropdown-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 100%;
  background: var(--bg-modal);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  list-style: none;
  overflow-y: auto;
  max-height: 250px;
  display: none;
  z-index: 2000;
}

.dropdown-list.show {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropdown-item:hover, .dropdown-item.active {
  background: rgba(0, 210, 255, 0.15);
  color: var(--accent);
}

/* Storage Info Text Bar */
.storage-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.storage-text strong {
  color: var(--text-primary);
}

.text-accent {
  color: var(--accent);
  font-weight: 700;
}

.text-danger {
  color: var(--danger) !important;
  font-weight: 700;
}

/* Storage Progress Bar */
.progress-bar-container {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: var(--radius-pill);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
  box-shadow: 0 0 10px var(--accent-glow);
}

.progress-bar.warning {
  background: linear-gradient(135deg, #ffa502, #ff6b81);
}

.progress-bar.full {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  box-shadow: 0 0 12px var(--danger-glow);
}

/* ==========================================================================
   3. CONTROLS BAR (SEARCH & FILTER)
   ========================================================================== */
.main-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px 80px;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(19, 23, 32, 0.95);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  margin-top: 10px;
  margin-bottom: 0px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.search-input-wrap {
  position: relative;
  flex: 1;
  max-width: 450px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 16px 10px 42px;
  color: var(--text-primary);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  background: rgba(0, 0, 0, 0.5);
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

.export-btn {
  background: var(--accent-gradient);
  color: #000;
  font-weight: 800;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: all 0.2s ease;
}

.export-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.view-mode-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  gap: 2px;
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.view-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.view-btn.active {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ==========================================================================
   4. GAME GRID & VIEW MODES (GRID, LIST, TITLE ONLY)
   ========================================================================== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* View Mode: List */
.game-grid.view-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-grid.view-list .game-card {
  flex-direction: row;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-md);
}

.game-grid.view-list .game-card:hover {
  transform: translateX(4px);
}

.game-grid.view-list .game-cover-wrap {
  width: 54px;
  height: 70px;
  padding-top: 0;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.game-grid.view-list .game-badge,
.game-grid.view-list .game-year-badge,
.game-grid.view-list .price-tag-card {
  display: none;
}

.game-grid.view-list .game-info-wrap {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0 0 14px;
  min-width: 0;
}

.game-grid.view-list .game-title {
  min-height: auto;
  font-size: 0.94rem;
  flex: 1 1 0%;
  min-width: 0;
  margin-right: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.game-grid.view-list .game-details-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* View Mode: Title Only */
.game-grid.view-title-only {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-grid.view-title-only .game-card {
  flex-direction: row;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.game-grid.view-title-only .game-card:hover {
  transform: translateX(4px);
}

.game-grid.view-title-only .game-cover-wrap {
  display: none;
}

.game-grid.view-title-only .price-tag-card {
  display: none;
}

.game-grid.view-title-only .game-info-wrap {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  min-width: 0;
}

.game-grid.view-title-only .game-title {
  min-height: auto;
  font-size: 0.92rem;
  flex: 1 1 0%;
  min-width: 0;
  margin-right: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.game-grid.view-title-only .game-details-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.game-details-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

@media (max-width: 640px) {
  .game-grid.view-list .game-info-wrap,
  .game-grid.view-title-only .game-info-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .game-grid.view-list .game-title,
  .game-grid.view-title-only .game-title {
    width: 100%;
    margin-right: 0;
    font-size: 0.88rem;
    line-height: 1.35;
    min-height: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
  }

  .game-grid.view-list .game-details-row,
  .game-grid.view-title-only .game-details-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 2px;
  }

  .game-grid.view-list .game-meta,
  .game-grid.view-title-only .game-meta {
    gap: 8px;
    font-size: 0.78rem;
  }
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 210, 255, 0.1);
}

.game-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.game-card.selected::after {
  content: '✓ Selected';
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  z-index: 10;
}

.game-cover-wrap {
  position: relative;
  width: 100%;
  padding-top: 133%; /* 3:4 aspect ratio */
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.game-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-cover {
  transform: scale(1.06);
}

.game-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.game-badge.ps2 {
  color: var(--accent-purple);
  border-color: rgba(167, 139, 250, 0.4);
}

.price-tag-card {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(46, 213, 115, 0.22);
  border: 1px solid var(--success);
  color: #2ed573;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px rgba(46, 213, 115, 0.2);
}

.game-price {
  font-weight: 800;
  color: var(--success);
  font-size: 0.88rem;
}

.game-info-wrap {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.game-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.game-size {
  font-weight: 800;
  color: var(--accent);
}

.game-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-toggle-select {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  background: rgba(0, 210, 255, 0.12);
  color: var(--accent);
  border: 1px solid var(--accent);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Button Label Switcher for View Modes */
.btn-label-full {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-label-compact {
  display: none;
}

/* In List view and Title-Only view, replace '+ Keranjang' with '+ [cart icon]' */
.game-grid.view-list .btn-label-full,
.game-grid.view-title-only .btn-label-full {
  display: none !important;
}

.game-grid.view-list .btn-label-compact,
.game-grid.view-title-only .btn-label-compact {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 800;
}

.btn-toggle-select:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 12px var(--accent-glow);
}

.game-card.selected .btn-toggle-select {
  background: rgba(255, 71, 87, 0.15);
  color: var(--danger);
  border-color: var(--danger);
}

.game-card.selected .btn-toggle-select:hover {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 0 12px var(--danger-glow);
}

.btn-info {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-info:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
}

/* Empty & Loading States */
.empty-state, .loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   5. MODAL OVERLAYS (SPEC INFO & EXPORT TABLE)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 16px;
  overflow-y: auto;
}

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

.modal-card,
.center-modal {
  background: var(--bg-modal);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: min(640px, 100%);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 210, 255, 0.1);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-card.modal-large {
  width: min(780px, 100%);
  max-height: 88vh;
}

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

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.02);
}

.modal-header h2,
.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(255, 71, 87, 0.2);
  color: var(--danger);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

@media (max-width: 600px) {
  .modal-card, .center-modal {
    max-height: 90vh;
    border-radius: var(--radius-md);
  }

  .modal-header {
    padding: 14px 16px;
  }

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

.spec-list, .req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.spec-item strong {
  color: var(--accent);
}

/* Modern Checkout Action Hub */
.checkout-actions-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.checkout-actions-container.single-action {
  grid-template-columns: 1fr;
}

/* Delivery Method Selection Cards (Store Catalog Only) */
.delivery-section {
  margin-bottom: 18px;
}

.delivery-section-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.delivery-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.delivery-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.delivery-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.delivery-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.delivery-card-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.delivery-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.delivery-card-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.delivery-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  align-self: flex-start;
}

.delivery-badge.free {
  background: rgba(46, 213, 115, 0.15);
  color: var(--success);
  border: 1px solid rgba(46, 213, 115, 0.3);
}

.delivery-badge.fee {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.delivery-badge.promo-free {
  background: linear-gradient(135deg, rgba(46, 213, 115, 0.25), rgba(0, 210, 255, 0.2));
  color: #2ed573;
  border: 1px solid var(--success);
  box-shadow: 0 0 10px rgba(46, 213, 115, 0.35);
}

.delivery-card:hover {
  border-color: var(--accent);
  background: rgba(0, 210, 255, 0.05);
}

.delivery-card.active {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.12), rgba(58, 123, 213, 0.1));
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.delivery-card.active .delivery-card-icon {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 10px var(--accent-glow);
}

@media (max-width: 600px) {
  .delivery-options-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.action-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.action-card-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.action-card-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* WA Variant */
.action-card.action-wa {
  border-color: rgba(37, 211, 102, 0.35);
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(18, 140, 126, 0.08));
}

.action-card.action-wa .action-card-icon {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.35);
}

.action-card.action-wa:hover {
  transform: translateY(-2px);
  border-color: #25D366;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.25);
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.18), rgba(18, 140, 126, 0.15));
}

/* Copy Variant */
.action-card.action-copy {
  border-color: rgba(0, 210, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(58, 123, 213, 0.08));
}

.action-card.action-copy .action-card-icon {
  background: var(--accent-gradient);
  color: #000000;
  box-shadow: 0 0 12px var(--accent-glow);
}

.action-card.action-copy:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 25px var(--accent-glow);
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.18), rgba(58, 123, 213, 0.15));
}

@media (max-width: 600px) {
  .checkout-actions-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.export-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.export-table th, .export-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.export-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-weight: 700;
}

.export-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   6. FLOATING SELECTED GAMES DRAWER WIDGET
   ========================================================================== */
.selected-games-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
}

.selected-widget-btn {
  background: var(--accent-gradient);
  color: #000;
  font-weight: 800;
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px var(--accent-glow);
  transition: all 0.25s ease;
  font-size: 0.92rem;
}

.selected-widget-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.badge-count {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.assistive-panel {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: min(360px, 90vw);
  background: var(--bg-modal);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  display: none;
  flex-direction: column;
  max-height: 400px;
  overflow: hidden;
}

.assistive-panel.show {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.assistive-header {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
}

.assistive-list {
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.assistive-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.assistive-item-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.remove-item-btn {
  color: var(--danger);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.assistive-footer {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

/* Modern Top Toast Notification */
.toast-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-40px);
  width: min(500px, 92%);
  background: linear-gradient(135deg, rgba(22, 27, 38, 0.97), rgba(13, 17, 25, 0.98));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 3500;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  color: var(--text-primary);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  overflow: hidden;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toast-title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.toast-message {
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.toast-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  margin-left: 4px;
}

.toast-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--accent);
  animation: toastProgress 4.2s linear forwards;
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* Toast Color Themes */
.toast-error {
  border-color: rgba(255, 71, 87, 0.4);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 71, 87, 0.2);
}

.toast-error .toast-icon-wrap {
  background: rgba(255, 71, 87, 0.15);
  color: var(--danger);
  box-shadow: 0 0 12px var(--danger-glow);
}

.toast-error .toast-title {
  color: #ff6b81;
}

.toast-error .toast-progress {
  background: var(--danger);
}

.toast-success {
  border-color: rgba(46, 213, 115, 0.4);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(46, 213, 115, 0.2);
}

.toast-success .toast-icon-wrap {
  background: rgba(46, 213, 115, 0.15);
  color: var(--success);
  box-shadow: 0 0 12px var(--success-glow);
}

.toast-success .toast-title {
  color: var(--success);
}

.toast-success .toast-progress {
  background: var(--success);
}

.toast-info {
  border-color: var(--border-highlight);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 25px var(--accent-glow);
}

.toast-info .toast-icon-wrap {
  background: rgba(0, 210, 255, 0.15);
  color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.toast-info .toast-title {
  color: var(--accent);
}

.toast-info .toast-progress {
  background: var(--accent-gradient);
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 640px) {
  .planner-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav-tabs {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 4px;
    margin-top: 2px;
  }

  .nav-tab-btn {
    flex: 1 1 50%;
    width: 50%;
    padding: 8px 10px;
    font-size: 0.82rem;
    text-align: center;
    justify-content: center;
  }

  .planner-storage-controls {
    justify-content: space-between;
    width: 100%;
  }

  .storage-type-select, .capacity-dropdown {
    width: 48%;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
  }

  .search-input-wrap {
    max-width: 100%;
    width: 100%;
  }

  .controls-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
  }

  .view-mode-toggle {
    flex-shrink: 0;
  }

  #view-grid-btn {
    display: none !important;
  }

  #category-filter {
    flex: 1;
    min-width: 120px;
  }

  .stats {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
  }

  .export-btn {
    flex: 1;
    justify-content: center;
    padding: 9px 14px;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .landing-storage-grid {
    grid-template-columns: 1fr;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .logo-text {
    font-size: 1.15rem;
  }
  
  .logo-img {
    height: 34px;
  }

  .export-btn {
    font-size: 0.8rem;
    padding: 8px 10px;
  }
}

/* ==========================================================================
   7. NAV TABS & ADMIN PANEL (KELOLA TOKO)
   ========================================================================== */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.nav-tab-btn:hover {
  color: var(--text-primary);
}

.nav-tab-btn.active {
  background: var(--accent-gradient);
  color: #000;
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Admin Container & Layout */
.admin-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

@media (max-width: 900px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.admin-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-card-title svg {
  color: var(--accent);
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-control {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.admin-btn {
  background: var(--accent-gradient);
  color: #000;
  font-weight: 800;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: all 0.2s ease;
}

.admin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.admin-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  box-shadow: none;
}

.admin-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.admin-btn-danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 4px 15px var(--danger-glow);
}

.admin-table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-weight: 700;
}

.btn-action-sm {
  padding: 4px 10px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-weight: 700;
}

.btn-edit {
  background: rgba(0, 210, 255, 0.15);
  color: var(--accent);
  border: 1px solid var(--accent);
  margin-right: 6px;
}

.btn-edit:hover {
  background: var(--accent);
  color: #000;
}

.btn-delete {
  background: rgba(255, 71, 87, 0.15);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.btn-delete:hover {
  background: var(--danger);
  color: #fff;
}

/* Calculator Mode & Price Hiding Utility */
.badge-calc-mode {
  font-size: 0.72rem;
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  color: #000;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
  margin-left: 8px;
  letter-spacing: 0.5px;
}

body.no-price-mode .price-tag-card,
body.no-price-mode .game-price,
body.no-price-mode .spec-price-row,
body.no-price-mode .export-price-col,
body.no-price-mode #storage-price-total-wrap {
  display: none !important;
}

/* Promo Banner Bar */
.promo-banner-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.15));
  border: 1px dashed #f59e0b;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #fbbf24;
}

.promo-banner-bar svg {
  color: #f59e0b;
  flex-shrink: 0;
}

.promo-badge-text {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid var(--success);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 6px;
}

/* ==========================================================================
   MOBILE & RESPONSIVE HEADER OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --header-h: 240px;
  }

  body {
    padding-top: var(--header-h);
  }

  .planner-header {
    padding: 8px 0;
  }

  .planner-container {
    padding: 0 12px;
  }

  .planner-top {
    margin-bottom: 6px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .logo-img {
    height: 32px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .logo-tavern {
    font-size: 0.85rem;
  }

  .nav-tabs {
    gap: 4px;
  }

  .nav-tab-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .storage-info {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }

  .progress-bar-container {
    height: 6px;
  }

  .promo-banner-bar {
    padding: 5px 10px;
    font-size: 0.75rem;
    margin-top: 6px;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 12px;
    margin-top: 6px;
  }

  .search-input-wrap {
    max-width: 100%;
  }

  .search-input {
    padding: 8px 12px 8px 36px;
    font-size: 0.85rem;
  }

  .controls-right {
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .custom-select {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .stats {
    gap: 8px;
    font-size: 0.8rem;
  }

  .export-btn {
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 270px;
  }

  .planner-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .nav-tab-btn {
    font-size: 0.72rem;
    padding: 5px 8px;
  }
}

/* Floating Back to Top Button */
.btn-scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 995;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(99, 102, 241, 0.3);
}

.btn-scroll-top:hover {
  background: var(--accent, #6366f1);
  color: #ffffff;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.5), 0 0 20px rgba(99, 102, 241, 0.6);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-scroll-top:active {
  transform: translateY(0) scale(0.95);
}

.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
  .btn-scroll-top {
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

