/* ==========================================================================
   MIR4 BOSS TRACKER - DESIGN SYSTEM & STYLES (VANILLA CSS)
   Aesthetic: Dark Fantasy MMO, Glassmorphism, Metallic Gold & Cyber-Cyan Accents
   ========================================================================== */

:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d121d;
  --bg-surface: rgba(18, 24, 38, 0.75);
  --bg-surface-elevated: rgba(26, 35, 54, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(245, 158, 11, 0.35);
  --border-cyan: rgba(56, 189, 248, 0.3);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-gold: #f59e0b;
  --accent-gold-light: #fde68a;
  --accent-gold-hover: #d97706;
  --accent-gold-glow: 0 0 20px rgba(245, 158, 11, 0.35);

  --accent-cyan: #38bdf8;
  --accent-red: #ef4444;
  --accent-red-glow: 0 0 20px rgba(239, 68, 68, 0.4);
  --accent-green: #10b981;
  --accent-purple: #a855f7;

  --font-heading: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 1px 1px var(--border-subtle);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 10% 30%, rgba(56, 189, 248, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(168, 85, 247, 0.04) 0%, transparent 45%);
  background-attachment: fixed;
}

/* Container */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 14, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
  animation: floatIcon 4s ease-in-out infinite;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35), 0 0 8px rgba(245, 158, 11, 0.3);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: floatLogo 4s ease-in-out infinite;
  flex-shrink: 0;
}

.brand-logo-img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.65), 0 0 14px rgba(245, 158, 11, 0.5);
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #fff 30%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Time Header Center */
.time-header-center {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.time-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.time-mode-btn:hover {
  border-color: var(--accent-gold);
  color: var(--text-main);
  background: rgba(245, 158, 11, 0.1);
}

.time-mode-btn.mode-pc {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.time-mode-btn.mode-server {
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  background: rgba(245, 158, 11, 0.15);
  box-shadow: var(--accent-gold-glow);
}

/* Server Clock Display */
.server-clock-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.clock-pulse {
  width: 9px;
  height: 9px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-gold);
  animation: pulseBeacon 2s infinite;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--accent-gold); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.clock-info {
  display: flex;
  flex-direction: column;
}

.clock-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.clock-time {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  letter-spacing: 0.05em;
}

/* WEMIX Real-time Price Ticker */
.wemix-ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(14, 165, 233, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.wemix-ticker-badge:hover {
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(14, 165, 233, 0.18);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.wemix-ticker-icon {
  font-size: 0.95rem;
  line-height: 1;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.6));
}

.wemix-ticker-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.06em;
}

.wemix-ticker-price {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
}

.wemix-ticker-chg {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
}

.wemix-ticker-chg.up {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
}

.wemix-ticker-chg.down {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-action:hover {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.15);
  transform: translateY(-1px);
}

.btn-action.sound-off {
  color: var(--text-dim);
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-badge {
  background: var(--accent-gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
}

/* Language Selector */
.lang-selector {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.2rem;
  gap: 0.2rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.3rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
  background: var(--accent-gold);
  color: #000;
}

/* Navigation Tabs Bar */
.main-tabs-nav {
  background: rgba(13, 18, 29, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 61px;
  z-index: 90;
  backdrop-filter: blur(12px);
}

.tabs-inner {
  display: flex;
  gap: 0.75rem;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: var(--accent-gold-light);
  border-bottom-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.08);
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

/* Hero Section: Upcoming Bosses */
.upcoming-section {
  padding: 2.2rem 0 1.5rem;
}

.section-header {
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
}

.section-title .title-accent {
  color: var(--accent-gold);
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Upcoming Bosses Cards Grid */
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}

.upcoming-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
  overflow: hidden;
}

.upcoming-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.7), var(--accent-gold-glow);
}

.card-glow-bg {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.card-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.rank-badge {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
  letter-spacing: 0.05em;
}

.layer-pill {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

/* Alarm Toggle Button on Card */
.alarm-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.alarm-toggle-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent-gold);
  color: var(--text-main);
}

.alarm-toggle-btn.active {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

/* Card Body Rows (Local, Boss, Horario) */
.card-body-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.metric-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  min-width: 65px;
}

.metric-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boss-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.metric-row.highlight-time {
  border-bottom: none;
  padding-top: 0.2rem;
}

.metric-row.highlight-time .time-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* Card Countdown Footer */
.card-footer-countdown {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.countdown-timer {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.countdown-timer.urgent {
  color: var(--accent-red);
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  animation: pulseUrgent 1s infinite alternate;
}

@keyframes pulseUrgent {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.05); opacity: 1; }
}

/* Urgency Glow Card States */
.upcoming-card.urgent-glow {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.upcoming-card.imminent-pulse {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: var(--accent-red-glow);
  animation: borderAlert 1.5s infinite alternate;
}

@keyframes borderAlert {
  0% { border-color: rgba(239, 68, 68, 0.4); }
  100% { border-color: rgba(239, 68, 68, 0.9); }
}

/* Controls & Filters Bar */
.controls-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  opacity: 0.6;
}

.search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem 0.6rem 2.4rem;
  color: var(--text-main);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.filter-btn.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
}

.dropdown-select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  outline: none;
}

.dropdown-select:focus {
  border-color: var(--accent-gold);
}

/* Full Table View */
.table-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 3rem;
}

.responsive-table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

.boss-table th {
  background: rgba(13, 18, 29, 0.95);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.boss-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.boss-row {
  transition: var(--transition-fast);
}

.boss-row:hover {
  background: rgba(245, 158, 11, 0.05);
}

.boss-row.row-alarmed {
  background: rgba(245, 158, 11, 0.08);
}

/* Table Cell Badges */
.alarm-row-btn {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.4;
  transition: var(--transition-fast);
}

.alarm-row-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}

.alarm-row-btn.active {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.8));
}

.cell-layer,
.cell-world {
  white-space: nowrap !important;
}

.tag-layer {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
}

.layer-short,
.world-short {
  display: none;
}

.layer-full,
.world-full {
  display: inline;
}

@media (max-width: 900px) {
  .layer-full,
  .world-full {
    display: none !important;
  }
  .layer-short,
  .world-short {
    display: inline !important;
    font-weight: 700;
  }
}

.tag-level {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  background: rgba(245, 158, 11, 0.1);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
}

.badge-freq {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

.boss-name-highlight {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.boss-note-sub {
  font-size: 0.72rem;
  color: var(--accent-gold-light);
  margin-top: 0.2rem;
}

/* Next Spawn Column */
.next-spawn-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.next-time {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-gold);
}

.next-countdown {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.next-countdown.urgent {
  color: var(--accent-red);
  font-weight: 700;
}

/* Schedule Time Pills */
.times-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 480px;
}

.time-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}

.time-badge.next-badge {
  background: rgba(245, 158, 11, 0.25);
  color: var(--accent-gold-light);
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
  font-weight: 700;
  transform: scale(1.05);
}

.note-badge {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
}

.empty-table-cell {
  text-align: center;
  padding: 2.5rem !important;
  color: var(--text-muted);
  font-style: italic;
}

/* Visual Alert Toast Banner (2m Warning) */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
}

.boss-alert-toast {
  background: rgba(15, 20, 30, 0.95);
  border: 2px solid var(--accent-red);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(239, 68, 68, 0.5);
  backdrop-filter: blur(16px);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.boss-alert-toast.toast-show {
  transform: translateX(0);
}

.toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.toast-icon {
  font-size: 1.2rem;
}

.toast-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-red);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.toast-boss-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.toast-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.toast-countdown {
  margin-top: 0.6rem;
  padding: 0.3rem 0.5rem;
  background: rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fca5a5;
  text-align: center;
}

/* Modal: Active Alarms & Popups */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1rem;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.modal-show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), var(--accent-gold-glow);
  position: relative;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  margin: auto 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.3) rgba(0, 0, 0, 0.2);
}

.modal-card::-webkit-scrollbar {
  width: 6px;
}

.modal-card::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}

.modal-card::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.4);
  border-radius: 999px;
}

.modal-card::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.7);
}

.modal-card .modal-header {
  position: sticky;
  top: -1.5rem;
  background: var(--bg-secondary);
  z-index: 20;
  padding-top: 0.3rem;
  padding-bottom: 0.8rem;
  margin-top: -0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.alarms-list {
  max-height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.active-alarm-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alarm-item-boss {
  font-weight: 700;
  color: #fff;
}

.alarm-item-loc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.alarm-item-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
}

.remove-alarm-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  font-size: 1rem;
}

.remove-alarm-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ==========================================================================
   DONATION & SUPPORT STYLES
   ========================================================================== */
.btn-donate {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  transition: var(--transition-fast);
}

.btn-donate:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

.donate-modal-card {
  max-width: 580px;
}

.modal-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.donate-methods-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.25rem 0;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.donate-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition-fast);
}

.donate-item:hover {
  border-color: var(--border-glow);
  background: rgba(245, 158, 11, 0.04);
}

.donate-item-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}

.donate-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.donate-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.donate-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.donate-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.donate-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold-light);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.donate-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.donate-val-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.2rem;
}

.donate-action-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.donate-action-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  background: rgba(245, 158, 11, 0.15);
}

.donate-action-btn.copied {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--accent-green);
  color: #6ee7b7;
}

.donate-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.donate-thank-you {
  font-size: 0.78rem;
  color: var(--accent-gold-light);
  font-style: italic;
}

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

/* ==========================================================================
   GAME EVENTS (MIRKIT TIMING) STYLES
   ========================================================================== */
.events-section {
  padding: 2rem 0 3rem;
}

/* Mirkit Settings & Toolbar */
.mirkit-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.toolbar-block {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.toolbar-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.region-buttons-group {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.2rem;
  gap: 0.2rem;
}

.region-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.region-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.region-btn.active {
  background: var(--accent-gold);
  color: #000;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.sound-controls-block {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.volume-slider-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
}

.volume-slider {
  width: 75px;
  cursor: pointer;
  accent-color: var(--accent-gold);
}

.event-categories-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
}

.event-cat-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.event-cat-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.event-cat-btn.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
}

/* Events Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.event-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), var(--accent-gold-glow);
}

.event-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.event-cat-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.cat-world-boss {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.cat-server {
  background: rgba(245, 158, 11, 0.18);
  color: var(--accent-gold-light);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.cat-clan {
  background: rgba(56, 189, 248, 0.18);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.cat-event {
  background: rgba(168, 85, 247, 0.18);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.cat-secret-peak {
  background: rgba(236, 72, 153, 0.18);
  color: #fbcfe8;
  border: 1px solid rgba(236, 72, 153, 0.35);
}

.cat-magic-square {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.event-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.3rem;
}

.event-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.event-details {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 1rem;
  min-height: 2.4em;
}

.event-timing-row {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timing-col {
  display: flex;
  flex-direction: column;
}

.timing-col.text-right {
  text-align: right;
}

.timing-sub-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.timing-sub-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold-light);
}

.timing-sub-countdown {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.timing-sub-countdown.urgent {
  color: var(--accent-red);
}

.event-card.event-live-card {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.35);
  animation: borderAlert 2s infinite alternate;
}

.event-card.event-live-card .timing-sub-countdown {
  color: #f87171;
  font-weight: 900;
  animation: pulseUrgent 1s infinite alternate;
}

/* ==========================================================================
   WHAT YOU SHOULD KNOW (FAQ ACCORDIONS FROM MIRKIT)
   ========================================================================== */
.faq-section {
  margin-top: 3.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
}

.faq-header {
  margin-bottom: 1.5rem;
}

.faq-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
}

.faq-lead {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.5;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-accordion-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-accordion-item:hover {
  border-color: rgba(245, 158, 11, 0.3);
}

.faq-accordion-item.open {
  border-color: var(--border-glow);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.faq-question-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1rem 1.25rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-question-btn:hover {
  color: var(--accent-gold-light);
}

.faq-chevron {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-accordion-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-gold);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
  padding: 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.faq-accordion-item.open .faq-answer-panel {
  max-height: 250px;
  padding: 0 1.25rem 1.1rem;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .brand-section {
    justify-content: space-between;
  }
  .server-clock-badge {
    align-self: center;
  }
  .header-actions {
    justify-content: center;
  }
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .upcoming-grid {
    grid-template-columns: 1fr;
  }
  .lang-selector {
    overflow-x: auto;
  }
  #toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 100%;
  }
  .giveaway-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }
  .giveaway-banner-right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==========================================================================
   VIP Subscription & $5,000 Monthly Giveaway Banner & Modal Styles
   ========================================================================== */

/* Header Subscribe CTA Button */
.btn-subscribe {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
  position: relative;
  transition: all 0.25s ease;
}

.btn-subscribe:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.25));
  border-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.35);
}

.badge-giveaway-pill {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.3rem;
  letter-spacing: 0.5px;
  animation: pulse-glow 2s infinite ease-in-out;
}

/* Promo Banner Section */
.giveaway-banner {
  position: relative;
  margin: 1.25rem 0 2rem 0;
  background: linear-gradient(135deg, rgba(28, 18, 50, 0.95), rgba(46, 26, 80, 0.88), rgba(20, 14, 38, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.15), inset 0 0 20px rgba(245, 158, 11, 0.05);
  overflow: hidden;
  display: block;
  transition: all 0.3s ease;
}

.giveaway-banner.banner-dismissed {
  display: none !important;
}

.giveaway-banner-glow {
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.giveaway-banner-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: skewX(-25deg);
  animation: banner-shimmer 6s infinite ease-in-out;
  pointer-events: none;
}

@keyframes banner-shimmer {
  0% { left: -100%; }
  30%, 100% { left: 200%; }
}

.giveaway-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.giveaway-banner-left {
  flex: 1;
}

.giveaway-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}

.tag-price-chip {
  background: #f59e0b;
  color: #000;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.65rem;
}

.giveaway-banner-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  line-height: 1.3;
}

.giveaway-prize-glow {
  background: linear-gradient(135deg, #fcd34d, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.1rem 0.5rem;
  background-color: rgba(245, 158, 11, 0.1);
}

.giveaway-banner-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  max-width: 720px;
}

.giveaway-banner-desc strong {
  color: #fbbf24;
}

.giveaway-banner-perks {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.perk-pill {
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
}

.perk-pill strong {
  color: #fcd34d;
}

.giveaway-banner-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  min-width: 220px;
}

.giveaway-price-box {
  text-align: center;
}

.giveaway-price-box .price-val {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1;
}

.giveaway-price-box .price-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-giveaway-cta {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-giveaway-cta:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.55);
}

.btn-giveaway-rules {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-giveaway-rules:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
}

.giveaway-banner-close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  z-index: 2;
  line-height: 1;
}

.giveaway-banner-close:hover {
  opacity: 1;
  color: var(--accent-gold);
}

/* VIP Subscribe Modal */
.subscribe-modal-card {
  max-width: 680px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 45px rgba(245, 158, 11, 0.25), 0 25px 60px rgba(0, 0, 0, 0.9);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  margin: auto 0;
}

.modal-badge-crown {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

.sub-modal-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(124, 58, 237, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.sub-banner-prize {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.prize-trophy {
  font-size: 2.2rem;
}

.prize-sublabel {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.prize-amount {
  font-size: 1.65rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.sub-banner-cost {
  text-align: right;
}

.cost-amount {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1.1;
}

.cost-period {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sub-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sub-perks-section {
  margin-bottom: 1.25rem;
}

.sub-perks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.sub-perk-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.4;
}

.sub-methods-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.sub-method-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  gap: 1rem;
  transition: border-color 0.2s;
}

.sub-method-row:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

.sub-method-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.sub-method-icon {
  font-size: 1.4rem;
}

.sub-method-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sub-method-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.sub-method-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.sub-method-action {
  flex-shrink: 0;
}

.btn-sub-action {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-sub-action:hover {
  background: #f59e0b;
  color: #000;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.sub-entry-section {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.35rem;
  margin-bottom: 1.25rem;
}

.sub-entry-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -0.25rem;
  margin-bottom: 0.9rem;
  line-height: 1.4;
}

.sub-entry-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.sub-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sub-form-group label {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sub-action-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-whatsapp-confirm {
  background: linear-gradient(135deg, #25D366, #128C7E) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: var(--transition-fast);
}

.btn-whatsapp-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.sub-voucher-box {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.sub-voucher-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sub-voucher-form {
  display: flex;
  gap: 0.6rem;
}

.sub-calc-wemix {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
}

.sub-entry-form {
  display: flex;
  gap: 0.65rem;
}

.sub-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  color: var(--text-main);
  font-size: 0.84rem;
}

.sub-input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.sub-entry-alert {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  color: #34d399;
  font-size: 0.82rem;
  font-weight: 600;
}

.sub-rules-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
}

.sub-rules-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.sub-rules-box ul {
  padding-left: 1.2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sub-rules-box li {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Contact Us (WhatsApp: +353 089 944 9682) Styles
   ========================================================================== */

/* Header Contact Button */
.btn-contact {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.15), rgba(18, 140, 126, 0.12));
  border: 1px solid rgba(37, 211, 102, 0.45);
  color: #25d366;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.15);
  transition: all 0.2s ease;
}

.btn-contact:hover {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.28), rgba(18, 140, 126, 0.22));
  border-color: #25d366;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.35);
}

.badge-wa-online {
  width: 7px;
  height: 7px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 0 6px #25d366;
  animation: wa-online-pulse 1.8s infinite ease-in-out;
}

@keyframes wa-online-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* Footer Contact Section */
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-help-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  color: #25d366;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-wa-link:hover {
  background: rgba(37, 211, 102, 0.22);
  border-color: #25d366;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.3);
}

.wa-dot-pulse {
  width: 8px;
  height: 8px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 0 6px #25d366;
}

/* Floating WhatsApp Quick Contact Widget */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
}

.floating-whatsapp-widget:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.65);
}

.wa-widget-icon {
  font-size: 1.7rem;
  line-height: 1;
}

.wa-widget-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: wa-ring-pulse 2.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  pointer-events: none;
}

@keyframes wa-ring-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

.wa-widget-tooltip {
  position: absolute;
  right: 70px;
  background: rgba(20, 15, 35, 0.95);
  border: 1px solid rgba(37, 211, 102, 0.4);
  backdrop-filter: blur(10px);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.floating-whatsapp-widget:hover .wa-widget-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.wa-tooltip-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #25d366;
}

.wa-tooltip-num {
  font-size: 0.72rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .floating-whatsapp-widget {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 50px;
    height: 50px;
  }
  .wa-widget-icon {
    font-size: 1.4rem;
  }
  .wa-widget-tooltip {
    display: none;
  }
}

/* ==========================================================================
   MIR4 Crafting Calculator Styles (Mirkit Replication)
   ========================================================================== */

.craft-calculator-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 1rem;
}

/* Controls Bar */
.craft-controls-bar {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  background: rgba(18, 14, 30, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.craft-ctrl-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.craft-ctrl-grow {
  flex: 1;
  min-width: 280px;
}

.craft-ctrl-sm {
  width: 90px;
}

.craft-ctrl-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.craft-chips-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.craft-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.craft-chip-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-main);
}

.craft-chip-btn.active.grade-rare {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  color: #60a5fa;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.craft-chip-btn.active.grade-epic {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.craft-chip-btn.active.grade-legendary {
  background: rgba(234, 179, 8, 0.2);
  border-color: #eab308;
  color: #fde047;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
}

.craft-chip-btn.active.grade-uncommon {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #4ade80;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.craft-grade-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-uncommon { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.dot-rare { background: #3b82f6; box-shadow: 0 0 6px #3b82f6; }
.dot-epic { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.dot-legendary { background: #eab308; box-shadow: 0 0 6px #eab308; }

.craft-categories-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.craft-category-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.craft-category-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.craft-category-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.craft-cat-icons {
  display: flex;
  align-items: center;
}

.craft-cat-icons .cat-result-img + .cat-result-img {
  margin-left: -6px;
}

.cat-result-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  flex-shrink: 0;
}

.craft-cat-name {
  font-size: 0.82rem;
  font-weight: 700;
}

.craft-amount-input {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  padding: 0.45rem 0.5rem;
  width: 100%;
}

.craft-amount-input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

/* Inventory Owned Materials Grid */
.craft-owned-section {
  background: rgba(18, 14, 30, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.craft-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  gap: 1rem;
}

.craft-section-header .header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-icon {
  font-size: 1.2rem;
}

.craft-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.section-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-reset-craft {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  color: var(--text-muted);
}

.craft-owned-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.craft-owned-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.craft-owned-mat-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.craft-mat-thumb {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.craft-mat-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.craft-owned-grades-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.craft-owned-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.grade-badge {
  font-size: 0.72rem;
  font-weight: 800;
  width: 32px;
  text-align: center;
}

.badge-uncommon { color: #22c55e; }
.badge-rare { color: #3b82f6; }
.badge-epic { color: #ef4444; }
.badge-legendary { color: #eab308; }

.craft-input-pair {
  display: flex;
  gap: 0.4rem;
  flex: 1;
}

.craft-num-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.8rem;
  padding: 0.35rem 0.5rem;
  text-align: right;
}

.craft-num-input:focus {
  outline: none;
  border-color: #f59e0b;
}

/* Plan Table */
.craft-plan-section {
  background: rgba(18, 14, 30, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.craft-table-responsive {
  overflow-x: auto;
}

.craft-plan-table {
  width: 100%;
  border-collapse: collapse;
}

.craft-plan-table th, 
.craft-plan-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.craft-plan-table th {
  background: rgba(0, 0, 0, 0.4);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-mat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-mat-header img {
  width: 24px;
  height: 24px;
}

.cell-grade {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  white-space: nowrap;
}

.action-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.action-farm {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.action-combine {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.cell-count {
  vertical-align: middle;
}

.step-count-box {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-main);
}

.step-times {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.step-subtext {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.cell-empty {
  color: #34d399;
  font-weight: 700;
  font-size: 0.82rem;
}

/* Cost Summary Cards */
.craft-costs-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.craft-cost-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-subtle);
  background: rgba(18, 14, 30, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.craft-cost-card:hover {
  transform: translateY(-2px);
}

.card-powder {
  border-color: rgba(236, 72, 153, 0.35);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(18, 14, 30, 0.9));
}

.card-darksteel {
  border-color: rgba(99, 102, 241, 0.35);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(18, 14, 30, 0.9));
}

.card-copper {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(18, 14, 30, 0.9));
}

.cost-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cost-currency-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.cost-card-info {
  display: flex;
  flex-direction: column;
}

.cost-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cost-card-val {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.15;
}

.card-powder .cost-card-val { color: #f472b6; }
.card-darksteel .cost-card-val { color: #818cf8; }
.card-copper .cost-card-val { color: #fbbf24; }

/* Craft FAQs List */
.craft-faqs-section {
  margin-top: 1rem;
}

.craft-faqs-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (max-width: 900px) {
  .craft-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ==========================================================================
   VIP Free Limit Notice & Status Styles
   ========================================================================== */
.sub-limit-alert-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(185, 28, 28, 0.12));
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.15);
  animation: pulse-limit 2.5s infinite ease-in-out;
}

@keyframes pulse-limit {
  0%, 100% { border-color: rgba(239, 68, 68, 0.45); }
  50% { border-color: rgba(239, 68, 68, 0.85); }
}

.limit-alert-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.limit-alert-body strong {
  display: block;
  font-size: 0.95rem;
  color: #fca5a5;
  margin-bottom: 0.2rem;
}

.limit-alert-body p {
  font-size: 0.84rem;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0;
}

.sub-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  margin-bottom: 1.2rem;
}

.sub-status-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sub-status-muted {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.vip-status-pill {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.vip-status-pill.pill-free {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.vip-status-pill.pill-vip {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.18));
  border: 1px solid #f59e0b;
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.btn-sm {
  font-size: 0.76rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   VIP Community Ads Carousel Styles
   ========================================================================== */
.vip-ads-section {
  position: relative;
  margin: 0 0 2rem 0;
  background: linear-gradient(135deg, rgba(22, 14, 40, 0.95), rgba(35, 20, 60, 0.9), rgba(18, 12, 32, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.6rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(245, 158, 11, 0.04);
}

.vip-ads-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.vip-ads-header-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.vip-ads-crown {
  font-size: 1.7rem;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

.vip-ads-tag-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  margin-bottom: 0.2rem;
}

.vip-ads-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.vip-ads-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0 0;
}

.btn-post-vip-ad {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
  transition: all 0.25s ease;
}

.btn-post-vip-ad:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.38), rgba(217, 119, 6, 0.3));
  border-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.35);
}

/* Carousel Container */
.vip-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vip-carousel-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.vip-carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

/* Single Ad Card */
.vip-ad-card {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  transition: all 0.3s ease;
  position: relative;
}

.vip-ad-card.user-ad {
  border-color: rgba(245, 158, 11, 0.6);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
}

.vip-ad-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.vip-ad-cat {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.vip-ad-cat.cat-clan {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.vip-ad-cat.cat-party {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.vip-ad-cat.cat-trade {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.vip-ad-cat.cat-server {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
}

.vip-ad-cat.cat-vip {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.vip-ad-server {
  font-size: 0.74rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.vip-ad-user-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: #f59e0b;
  color: #000;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.vip-ad-delete-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-size: 0.95rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-left: auto;
  transition: all 0.2s;
}

.vip-ad-delete-btn:hover {
  background: #ef4444;
  color: #fff;
}

.vip-ad-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.4rem 0;
}

.vip-ad-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 0.85rem 0;
}

.vip-ad-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.65rem;
  flex-wrap: wrap;
}

.vip-ad-contact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
}

.contact-label {
  color: var(--text-muted);
}

.contact-value {
  color: #38bdf8;
  font-weight: 700;
}

.vip-sponsor-chip {
  font-size: 0.68rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

/* Nav Arrows */
.vip-carousel-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.vip-carousel-arrow:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  color: #fbbf24;
  transform: scale(1.08);
}

/* Indicators */
.vip-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.vip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.vip-dot.active {
  width: 24px;
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

/* Post Ad Modal Styling */
.post-ad-modal-card {
  max-width: 540px;
}

.post-ad-form .form-group {
  margin-bottom: 0.9rem;
}

.post-ad-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.post-ad-form .textarea-input {
  resize: vertical;
  min-height: 70px;
}

/* Post Ad Rules & Moderation Card */
.post-ad-rules-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(185, 28, 28, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.rules-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.rules-card-icon {
  font-size: 1.25rem;
}

.rules-card-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #fca5a5;
  margin: 0;
  display: inline-block;
  margin-right: 0.5rem;
}

.rules-card-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fecaca;
  letter-spacing: 0.5px;
}

.rules-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rules-card-list li {
  font-size: 0.78rem;
  line-height: 1.35;
  color: #f3f4f6;
}

.rules-card-list strong {
  color: #fbbf24;
}

/* Terms Checkbox */
.terms-checkbox-group {
  margin-top: 0.85rem;
  margin-bottom: 0.75rem !important;
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}

.terms-checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.76rem !important;
  color: var(--text-main) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer;
  line-height: 1.35;
  margin-bottom: 0 !important;
}

.terms-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #f59e0b;
  cursor: pointer;
  flex-shrink: 0;
}

/* User Pending Ad Badge */
.vip-ad-pending-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  margin-left: auto;
  margin-right: 0.5rem;
  letter-spacing: 0.3px;
  animation: pulse-pending 2s infinite ease-in-out;
}

@keyframes pulse-pending {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.btn-fast-track-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  margin-top: 0.6rem;
  border-radius: var(--radius-sm);
  background: #25d366;
  color: #000;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-fast-track-wa:hover {
  background: #1eb954;
  transform: translateY(-1px);
  color: #000;
}

/* ==========================================================================
   VIP Streamers Spotlight Bar (Matching User Screenshot)
   ========================================================================== */
.streamers-bar-section {
  background: #14121f;
  border-top: 2px solid #6366f1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 0;
  position: relative;
  z-index: 20;
}

.streamers-bar-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: space-between;
}

.streamers-bar-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
  animation: live-blink 1.5s infinite;
}

@keyframes live-blink {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
}

.streamers-header-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #a5b4fc;
  text-transform: uppercase;
}

.streamers-items-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.2rem 0;
}

.streamers-items-track::-webkit-scrollbar {
  display: none;
}

.streamer-item-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
}

.streamer-avatar-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.streamer-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.streamer-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), rgba(59, 130, 246, 0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px dashed rgba(255, 255, 255, 0.25);
}

.placeholder-slot {
  opacity: 0.85;
  cursor: default;
}

.placeholder-slot:hover {
  opacity: 1;
}

.streamer-platform-badge {
  position: absolute;
  bottom: -2px;
  right: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  border: 1px solid #14121f;
}

.badge-twitch {
  background: #9146ff;
  color: #fff;
}

.badge-youtube {
  background: #ff0000;
  color: #fff;
}

.badge-kick {
  background: #53fc18;
  color: #000;
}

.streamer-item-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: #94a3b8;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.streamer-item-link:hover .streamer-avatar-box {
  transform: translateY(-2px) scale(1.08);
  border-color: #818cf8;
  box-shadow: 0 0 14px rgba(129, 140, 248, 0.6);
}

.streamer-item-link:hover .streamer-item-name {
  color: #fff;
}

.btn-share-streamer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(147, 51, 234, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 999px;
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.btn-share-streamer:hover {
  background: linear-gradient(135deg, #f59e0b, #9333ea);
  color: #fff;
  border-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.streamer-modal-card {
  max-width: 540px;
}

.streamer-pricing-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: rgba(147, 51, 234, 0.08);
  border: 1px solid rgba(147, 51, 234, 0.28);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 1rem;
}

.streamer-pricing-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.streamer-pricing-item .pricing-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.streamer-pricing-item strong {
  display: block;
  font-size: 0.82rem;
  color: #c084fc;
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.streamer-pricing-item p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
}

@media (max-width: 768px) {
  .streamers-bar-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .btn-share-streamer {
    width: 100%;
    justify-content: center;
  }
  .streamer-pricing-banner {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Supabase Member & VIP Account System Styles
   ========================================================================== */

.btn-member {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.15));
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
  position: relative;
}

.btn-member:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(99, 102, 241, 0.28));
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.btn-member.logged-in {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.15));
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.btn-member.logged-in:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.25));
  border-color: #f59e0b;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.4);
}

.member-vip-chip {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
  animation: pulse-vip 2s infinite ease-in-out;
}

@keyframes pulse-vip {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

/* Auth Modal Card */
.auth-modal-card {
  max-width: 480px;
  width: 92%;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(10, 15, 29, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.2);
}

.auth-tabs-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 1.25rem;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 0.6rem 0.5rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn:hover {
  color: #fff;
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.auth-form .form-group,
.profile-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
  width: 100%;
}

.auth-form .form-group label,
.profile-form .form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  text-align: left;
}

.auth-form .sub-input,
.profile-form .sub-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.auth-form .sub-input:focus,
.profile-form .sub-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  outline: none;
  background: rgba(15, 23, 42, 0.6);
}

.auth-submit-btn {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-weight: 800;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-submit-btn:hover {
  background: linear-gradient(135deg, #0ea5e9, #4f46e5);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
  transform: translateY(-1px);
}

/* Profile View (Logged In) */
.profile-header-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.profile-avatar-box {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
  flex-shrink: 0;
}

.profile-user-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-email {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.profile-status-pill.free {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
}

.profile-status-pill.vip {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.25));
  border: 1px solid #f59e0b;
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

/* VIP Status Details Box */
.profile-vip-details-card {
  background: linear-gradient(180deg, rgba(30, 20, 10, 0.7) 0%, rgba(15, 10, 5, 0.8) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.vip-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.vip-status-title-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.vip-crown-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

.vip-status-title-box strong {
  display: block;
  font-size: 0.95rem;
  color: #fef08a;
}

.vip-expiry-text {
  font-size: 0.75rem;
  color: #fbbf24;
  margin: 0;
}

.btn-upgrade-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.btn-upgrade-sm:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-1px);
}

.profile-perks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
}

.perk-check-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.perk-check-item.active {
  color: #e2e8f0;
  font-weight: 600;
}

.perk-check-item .perk-icon {
  color: #22c55e;
  font-weight: 900;
  font-size: 0.8rem;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-subtitle {
  font-size: 0.82rem;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0.25rem 0 0.5rem 0;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.profile-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.btn-danger-outline {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-size: 0.82rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fff;
}

@media (max-width: 480px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .profile-perks-grid {
    grid-template-columns: 1fr;
  }
}
