/* Components CSS - White, Red, and Black Theme */

/* --- Navbar / Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 0;
  transition: background-color var(--transition-slow), border-color var(--transition-slow);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: #09090b;
  padding: 5px;
  border: 1.5px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
  display: block;
}

.brand:hover .brand-logo-img {
  transform: scale(1.06);
  border-color: var(--brand-red);
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-highlight);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--brand-red);
  color: var(--brand-red);
  transform: translateY(-1px);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

/* Switch icons based on active theme */
.icon-sun {
  display: none;
}

.icon-moon {
  display: block;
}

[data-theme="dark"] .icon-sun {
  display: block;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

.insta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.insta-pill:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  transform: translateY(-1px);
}

.insta-pill svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- Hero & Search Section --- */
.hero-section {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text-highlight);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* --- Search Bar Container --- */
.search-container {
  max-width: 660px;
  margin: 0 auto;
  position: relative;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem 0.65rem 1.25rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.search-box:focus-within {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-glow), var(--shadow-lg);
}

.search-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-right: 0.75rem;
  transition: color var(--transition-fast);
}

.search-box:focus-within .search-icon-wrapper {
  color: var(--brand-red);
}

.search-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text-highlight);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.35rem 0;
}

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

.search-clear-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  margin-right: 0.5rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.search-clear-btn:hover {
  background: var(--border-subtle);
  color: var(--brand-red);
}

.search-clear-btn.is-visible {
  display: flex;
}

.search-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--brand-red);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px var(--brand-red-glow);
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.search-submit-btn:hover {
  background: var(--brand-red-hover);
  transform: translateY(-1px);
}

.search-submit-btn svg {
  width: 15px;
  height: 15px;
}

/* Quick Tags */
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.tag-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.tag-chip:hover {
  background: var(--brand-red-light);
  border-color: var(--brand-red);
  color: var(--brand-red);
  transform: translateY(-1px);
}

/* --- Initial State: Visual Elements (Developer & Game Editor HUD) --- */
.initial-prompt-wrapper {
  margin: 2rem auto 4rem;
  max-width: 900px;
  animation: cardAppear 0.4s ease-out;
}

/* Feature & Status Badges Strip */
.editor-features-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.feature-chip:hover {
  border-color: var(--brand-red);
  color: var(--text-highlight);
  transform: translateY(-1px);
}

.feature-chip svg {
  width: 14px;
  height: 14px;
  color: var(--brand-red);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
  animation: pulseGlow 2s infinite;
}

/* --- Support & Donation (UPI) Section --- */
/* --- Compact Support & Donation (UPI) --- */
.support-card.compact-donation {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.support-card.compact-donation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-red), transparent);
  opacity: 0.85;
}

.support-card.compact-donation:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.compact-donation-inner {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

/* Mini QR Thumbnail */
.compact-qr-thumb {
  position: relative;
  width: 58px;
  height: 58px;
  background: #ffffff;
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.compact-qr-thumb:hover {
  transform: scale(1.04);
  border-color: var(--brand-red);
}

.compact-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.compact-qr-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.45);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.compact-qr-thumb:hover .compact-qr-overlay {
  opacity: 1;
}

.compact-qr-overlay svg {
  width: 16px;
  height: 16px;
  color: #ffffff;
}

/* Middle Info */
.compact-donation-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.compact-badge-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.compact-support-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.15rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-red);
}

.compact-support-tag svg {
  width: 11px;
  height: 11px;
}

.compact-upi-address {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-highlight);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-donation-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Action Buttons */
.compact-donation-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-compact-pay {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.95rem;
  background: var(--brand-red);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px var(--brand-red-glow);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn-compact-pay:hover {
  background: var(--brand-red-hover);
  transform: translateY(-1px);
}

.btn-compact-pay svg {
  width: 14px;
  height: 14px;
}

.btn-compact-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-compact-copy:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.btn-compact-copy svg {
  width: 14px;
  height: 14px;
}

.btn-compact-copy.is-copied {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

/* Modal for QR zoom */
.compact-qr-modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.compact-qr-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  max-width: 320px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: cardAppear 0.25s ease-out;
}

.close-qr-modal-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.close-qr-modal-btn:hover {
  color: var(--brand-red);
  background: var(--border-subtle);
}

.modal-qr-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-highlight);
  margin-bottom: 1rem;
}

.modal-qr-frame {
  width: 180px;
  height: 180px;
  margin: 0 auto 1rem;
  background: #ffffff;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.modal-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-upi-id {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-red);
  margin-bottom: 0.4rem;
}

.modal-apps-row {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Request Next Game Section --- */
.suggest-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.suggest-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-red), transparent);
  opacity: 0.8;
}

.suggest-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.suggest-header {
  margin-bottom: 1.15rem;
}

.suggest-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 0.35rem;
}

.suggest-badge svg {
  width: 14px;
  height: 14px;
}

.suggest-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-highlight);
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.suggest-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.suggest-form {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.suggest-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.suggest-input-icon {
  position: absolute;
  left: 0.95rem;
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.suggest-input {
  width: 100%;
  min-width: 0;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.suggest-input:focus {
  border-color: var(--brand-red);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--brand-red-glow);
}

.suggest-input-wrapper:focus-within .suggest-input-icon {
  color: var(--brand-red);
}

.suggest-input::placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.suggest-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  background: var(--brand-red);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 2px 8px var(--brand-red-glow);
  transition: all var(--transition-fast);
}

.suggest-submit-btn:hover {
  background: var(--brand-red-hover);
  transform: translateY(-1px);
}

.suggest-submit-btn:active {
  transform: translateY(0);
}

.suggest-submit-btn svg {
  width: 15px;
  height: 15px;
}

.suggest-submit-btn.is-success {
  background: #16a34a;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.4);
}

.suggest-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-subtle);
  font-size: 0.8rem;
}

.suggest-subtext {
  color: var(--text-muted);
}

.suggest-ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.suggest-ig-link svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.suggest-ig-link:hover {
  color: var(--brand-red);
}




/* --- Results Stats Header --- */
.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.results-count {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.results-count strong {
  color: var(--text-highlight);
}

/* --- Available Games Header --- */
.available-games-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.available-games-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-red);
  background: var(--brand-red-subtle);
  border: 1px solid rgba(220, 38, 38, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

.available-badge svg {
  width: 13px;
  height: 13px;
}

.available-games-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-highlight);
  letter-spacing: -0.01em;
}

/* --- Game Cards Grid --- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-md);
  -webkit-tap-highlight-color: transparent;
}

.game-card:hover {
  border-color: var(--border-subtle);
}

.game-banner {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: #09090b;
}

.game-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(9, 9, 11, 0.75) 100%);
}

.game-category-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.game-rating-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.game-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-highlight);
}

.game-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.game-specs-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.15rem;
}

.spec-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.spec-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  font-family: var(--font-mono);
}

.spec-value {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-highlight);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-download {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--brand-red);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px var(--brand-red-glow);
}

.btn-download:hover {
  background: var(--brand-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4);
}

.btn-download svg {
  width: 16px;
  height: 16px;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  background: var(--border-subtle);
  color: var(--brand-red);
  border-color: var(--brand-red);
}

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

/* --- Empty Search State --- */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 4rem;
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 420px;
  margin: 0 auto 1.25rem;
}

.btn-reset-search {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-reset-search:hover {
  background: var(--brand-red);
  color: #ffffff;
  border-color: var(--brand-red);
}

/* --- Instagram Soft Gate Modal --- */
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

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

.gate-modal {
  width: 100%;
  max-width: 440px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.96);
  transition: transform var(--transition-slow);
}

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

.gate-badge-glow {
  width: auto;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-badge-glow img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: contain;
  background: #09090b;
  padding: 8px;
  border: 2px solid var(--brand-red);
  box-shadow: 0 8px 24px var(--brand-red-glow);
}

.gate-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text-highlight);
}

.gate-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.gate-desc strong {
  color: var(--brand-red);
  font-weight: 700;
}

.btn-ig-follow {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--brand-red);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 6px 20px var(--brand-red-glow);
  transition: all var(--transition-normal);
}

.btn-ig-follow:hover {
  background: var(--brand-red-hover);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-ig-follow svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Verification State in Modal */
.gate-verifying {
  display: none;
  margin-top: 1.25rem;
  padding: 0.85rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.gate-verifying.is-active {
  display: block;
}

.verify-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.verify-progress {
  width: 100%;
  height: 6px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.verify-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--brand-red);
  border-radius: var(--radius-full);
  transition: width 3.2s linear;
}

.gate-footer-links {
  margin-top: 1.25rem;
}

.btn-already-followed {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.btn-already-followed:hover {
  color: var(--brand-red);
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-highlight);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-normal);
  pointer-events: auto;
}

.toast.is-active {
  transform: translateY(0);
  opacity: 1;
}

.toast svg {
  width: 16px;
  height: 16px;
  fill: var(--brand-red);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.25rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.site-footer a:hover {
  color: var(--brand-red);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .site-header {
    padding: 0.75rem 0;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-logo-img {
    width: 36px;
    height: 36px;
    padding: 4px;
  }

  .brand-text {
    font-size: 1.05rem;
    letter-spacing: 0.05em;
  }

  .nav-actions {
    gap: 0.45rem;
  }

  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }

  .insta-pill {
    padding: 0.45rem 0.55rem;
  }

  .insta-pill span {
    display: none;
  }

  .hero-section {
    padding: 2rem 0 1.25rem;
  }

  .hero-title {
    font-size: 2.1rem;
    margin-bottom: 0.4rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    padding: 0 0.5rem;
    margin-bottom: 1.5rem;
  }

  .search-container {
    padding: 0;
  }

  .search-box {
    padding: 0.4rem 0.45rem 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
  }

  .search-icon-wrapper {
    margin-right: 0.5rem;
  }

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

  .search-input {
    font-size: 0.95rem;
  }

  .search-submit-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }

  .initial-prompt-wrapper {
    margin: 1.5rem auto 3rem;
  }

  .support-card {
    padding: 1.25rem 1.1rem;
    margin-bottom: 1.5rem;
  }

  .support-card.compact-donation {
    padding: 0.85rem 0.95rem;
    margin-bottom: 1.25rem;
  }

  .compact-donation-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .compact-donation-info {
    flex: 1 1 calc(100% - 75px);
  }

  .compact-donation-actions {
    width: 100%;
    gap: 0.5rem;
  }

  .btn-compact-pay {
    flex: 1;
    justify-content: center;
    padding: 0.55rem 0.85rem;
  }

  .btn-compact-copy {
    flex: 1;
    justify-content: center;
    padding: 0.55rem 0.85rem;
  }

  .suggest-card {
    padding: 1.25rem 1.15rem;
    margin-bottom: 1.5rem;
  }

  .suggest-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .suggest-input-wrapper {
    width: 100%;
  }

  .suggest-submit-btn {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .suggest-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .game-banner {
    height: 160px;
  }

  .gate-modal {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 400px) {
  .brand-text {
    font-size: 0.95rem;
  }

  .search-box {
    padding: 0.35rem 0.35rem 0.35rem 0.65rem;
  }

  .search-input {
    font-size: 0.88rem;
  }

  .search-submit-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
  }
}