/* ============================================
   ClashOS Dashboard - Styles
   ============================================ */

/* Custom Clash of Clans Font */
@font-face {
  font-family: 'ClashBold';
  src: url('./Clash_Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ... existing code ... */

/* App Container with Background */
.app-container {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.55) 0%, rgba(10, 9, 8, 0.85) 100%),
    url('https://clashos.jiobase.com/storage/v1/object/public/assets/background.webp') center/cover no-repeat fixed;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* CSS Variables - Normalized SaaS/Supercell Aesthetic */
:root {
  /* Brand Colors */
  --gold-primary: #EAB308;
  --gold-light: #FACC15;
  --gold-dark: #CA8A04;
  --gold-dim: rgba(234, 179, 8, 0.15);
  --gold-glow: rgba(234, 179, 8, 0.4);

  /* Base UI / Surface Colors */
  --bg-deep: #09090B;
  --bg-surface: #121214;
  --bg-elevated: #1A1A1E;
  --bg-hover: #27272A;
  
  /* Panel backgrounds (Glassmorphism) */
  --panel-bg: rgba(18, 18, 20, 0.75);
  --panel-bg-light: rgba(24, 24, 28, 0.85);
  --panel-border: rgba(255, 255, 255, 0.08);

  /* Accent colors */
  --green-accent: #4ADE80;
  --blue-accent: #38BDF8;
  --red-slacker: #EF4444;
  --purple-accent: #C084FC;

  /* Text colors */
  --text-primary: #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-muted: #52525B;
  --text-gold: #EAB308;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* Shadows & Layout */
  --shadow-heavy: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-ambient: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 15px rgba(234, 179, 8, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
}

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

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg-deep, #0a0908);
  color: var(--text-primary);
  line-height: 1.6;
}

/* ============================================
   Typography
   ============================================ */

h1,
h2,
h3,
h4,
.clash-font {
  font-family: 'ClashBold', 'Impact', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.title-glow {
  text-shadow:
    0 0 10px rgba(241, 212, 18, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.8),
    2px 2px 0 var(--wood-dark);
}

/* ============================================
   Header
   ============================================ */

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 30px;
}

.header-logo {
  height: 80px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.05) rotate(-2deg);
}

.header-title {
  font-size: 2.5rem;
  color: var(--gold-primary);
}

.header-subtitle {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 5px;
}

/* ============================================
   Glassmorphism Panels
   ============================================ */

.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ambient);
  padding: var(--space-lg);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--bg-hover);
}

.glass-panel-light {
  background: var(--panel-bg-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-ambient);
  padding: var(--space-md);
}

/* Wood Frame Effect (Converted to Modern SaaS Panel) */
.wood-frame {
  background: var(--bg-surface);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-heavy);
  padding: 0;
  overflow: hidden;
}

.wood-frame-inner {
  background: transparent;
  padding: var(--space-lg);
}

/* ============================================
   3D Gold Buttons
   ============================================ */

/* 3D Button Styles (Converted to SaaS standard) */
button,
.gold-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  height: 44px;
  padding: 0 var(--space-lg);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--gold-light), var(--gold-primary));
  color: #1A1A1A;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
}

button:active,
.gold-btn:active {
  transform: translateY(1px);
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.gold-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3), inset 0 1px 0 rgba(255,255,255,0.4);
  transform: translateY(-1px);
}

.gold-btn.active {
  background: var(--gold-dark);
  color: #000;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

/* ============================================
   Navigation Tabs
   ============================================ */

.nav-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.nav-tab {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.nav-tab.active {
  background: linear-gradient(180deg, var(--gold-dark) 0%, #B8860B 100%);
}

/* ============================================
   Main Dashboard Layout
   ============================================ */

.dashboard {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: flex-start;
  /* Force start alignment */
  margin-top: 0;
}

.view-section {
  width: 100%;
  margin-top: 0;
}

/* Player Input Section */
.search-section {
  box-sizing: border-box;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
  padding: 28px 32px;
}

.search-input {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  height: 48px;
  padding: 0 var(--space-lg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  background: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
  min-width: 320px;
  outline: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.search-input::placeholder {
  color: var(--text-muted) !important;
}

.search-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-dim);
  background: var(--bg-elevated) !important;
}

/* Fix autofill dark background */
.search-input:-webkit-autofill,
.search-input:-webkit-autofill:hover,
.search-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--bg-surface) inset !important;
  box-shadow: 0 0 0 1000px var(--bg-surface) inset !important;
  background-color: var(--bg-surface) !important;
}


/* ============================================
   Player Card
   ============================================ */

/* Bento Grid Player Card */
/* Bento Grid Player Card (Optimized) */
.player-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-xl);
  align-items: center;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-ambient);
}

@media (max-width: 900px) {
  .player-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px;
  }
}

.th-image-container {
  display: flex;
  justify-content: center;
  position: relative;
}

.th-image {
  width: 240px;
  /* Huge Image */
  height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.7));
  transition: transform 0.3s ease;
}

.th-image:hover {
  transform: scale(1.05) rotate(-2deg);
}

.th-level-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #F1D412, #D4A200);
  color: #000;
  font-family: 'ClashBold', 'Impact', sans-serif;
  font-size: 1.2rem;
  /* Bigger badge */
  padding: 8px 20px;
  border-radius: 12px;
  border: 3px solid #4A3728;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.player-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.player-name {
  font-size: 2.5rem;
  color: #F1D412;
  margin-bottom: 4px;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.5);
  line-height: 1.15;
}

.player-tag {
  font-family: 'ClashBold', 'Impact', sans-serif;
  /* Changed from monospace */
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 30px;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* War Ready Badge Fix */
.readiness-badge-container {
  margin-bottom: 8px;
  /* Added spacing */
}

.war-ready-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 222, 128, 0.2);
  border: 1px solid #4ade80;
  padding: 6px 16px;
  border-radius: 8px;
  color: #4ade80;
  font-family: 'ClashBold', 'Impact', sans-serif !important;
  font-size: 1rem;
  text-transform: uppercase;
}

.player-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* 2 Wide Columns */
  gap: 20px;
  width: 100%;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(241, 212, 18, 0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(241, 212, 18, 0.05);
  border-color: rgba(241, 212, 18, 0.4);
  transform: translateX(5px);
}

.stat-icon-img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

.stat-value {
  font-family: 'ClashBold', 'Impact', sans-serif;
  font-size: 1.8rem;
  /* Big Numbers */
  color: #fff;
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   Troops & Heroes Grid
   ============================================ */

.grid-section {
  padding: 20px;
}

.section-title {
  font-size: 1.4rem;
  color: var(--gold-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.35), transparent);
}

.troop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Custom scrollbar */
.troop-grid::-webkit-scrollbar {
  width: 8px;
}

.troop-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.troop-grid::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}

.troop-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--panel-border);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.troop-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-5px);
  /* Lift effect */
  box-shadow: 0 8px 16px rgba(241, 212, 18, 0.25) !important;
  /* Increased glow */
}

.troop-card.hero {
  border-color: var(--purple-accent);
  background: rgba(192, 132, 252, 0.1);
}

.troop-card.hero:hover {
  border-color: var(--purple-accent);
  box-shadow: 0 8px 20px rgba(192, 132, 252, 0.3);
}

.troop-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.troop-level {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 1rem;
  color: var(--gold-primary);
}

.troop-name {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Max level indicator */
.troop-card.maxed {
  border-color: var(--green-accent);
}

.troop-card.maxed .troop-level {
  color: var(--green-accent);
}

/* ============================================
   War Tracker View
   ============================================ */

.war-view {
  display: none;
}

.war-view.active {
  display: block;
}

.player-view {
  display: block;
}

.player-view.hidden {
  display: none;
}

.war-status {
  text-align: center;
  padding: 16px;
  margin-bottom: 20px;
}

.war-status-text {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 1.3rem;
}

.war-status-text.in-war {
  color: var(--red-slacker);
}

.war-status-text.not-in-war {
  color: var(--green-accent);
}

.slacker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 500px;
  overflow-y: auto;
}

.slacker-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 68, 68, 0.1);
  border: 2px solid var(--red-slacker);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.slacker-card:hover {
  background: rgba(255, 68, 68, 0.2);
  transform: translateX(8px);
}

.slacker-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slacker-avatar {
  width: 40px;
  height: 40px;
  background: var(--red-slacker);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.slacker-name {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.slacker-tag {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.missed-attacks {
  display: flex;
  align-items: center;
  gap: 8px;
}

.missed-count {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 1.5rem;
  color: var(--red-slacker);
}

.missed-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ============================================
   Loading & Error States
   ============================================ */

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  gap: 16px;
}

.loading-spinner {
  width: 80px;
  height: 80px;
  background: url('https://clashos.jiobase.com/storage/v1/object/public/assets/icons/coc-logo.webp') no-repeat center center;
  background-size: contain;
  border: none;
  animation: spin 2s linear infinite;
  filter: drop-shadow(0 0 10px var(--gold-primary));
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-family: 'Inter', sans-serif; font-weight: 500;
  color: var(--gold-primary);
}

.error-message {
  text-align: center;
  padding: 40px;
  color: var(--red-slacker);
}

.error-message h3 {
  margin-bottom: 8px;
}

/* Fix: Ensure direct children of grid span full width when active */
.player-card>.loading,
.player-card>.error-message {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-text {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 1.2rem;
  color: var(--gold-primary);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .header-title {
    font-size: 1.8rem;
  }

  .header-logo {
    height: 60px;
  }

  .player-card {
    flex-direction: column;
    text-align: center;
  }

  .player-info {
    text-align: center;
  }

  .troop-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }

  .gold-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .app-container {
    padding: 12px;
  }

  .header {
    flex-direction: column;
    gap: 12px;
  }

  .nav-tabs {
    flex-direction: column;
    width: 100%;
  }

  .nav-tab {
    width: 100%;
  }
}

/* ============================================
   Units Tabbed Interface (Mobile Friendly)
   ============================================ */
.unit-tabs-header {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 2px solid var(--panel-border);
  overflow-x: auto;
  white-space: nowrap;
  border-radius: 12px 12px 0 0;
}

.unit-tab-btn {
  flex: 1;
  padding: 16px 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  min-width: 100px;
}

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

.unit-tab-btn.active {
  background: linear-gradient(180deg, rgba(241, 212, 18, 0.1) 0%, rgba(241, 212, 18, 0.0) 100%);
  color: var(--gold-primary);
  border-bottom: 3px solid var(--gold-primary);
}

.unit-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.unit-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Intelligence & Analytics
   ============================================ */
.rushed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
  margin-bottom: 8px;
}

.roast-text {
  color: #FCD34D;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 4px;
}

.priority-card {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(10, 10, 10, 0.95));
  border: 1px solid var(--gold-dark);
  border-radius: 12px;
  padding: 16px;
  flex: 1;
  min-width: 160px;
  max-width: 220px;
  min-height: 180px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.priority-card::before {
  content: 'UPGRADE';
  position: absolute;
  top: 8px;
  right: -12px;
  background: var(--green-accent);
  color: #000;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 18px;
  transform: rotate(45deg);
  letter-spacing: 0.5px;
}

.meta-priority-label {
  margin-top: 8px;
}

.meta-priority-label .meta-priority-title {
  color: #FFaa00;
  font-weight: 700;
  font-size: 0.8rem;
}

.meta-priority-label .meta-priority-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.4;
}

/* Readiness Badge — prevent text wrapping */
.readiness-badge-container {
  margin-bottom: 8px;
}

.war-ready-pill,
.readiness-badge-container > * {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

/* ============================================
   Visual Polish
   ============================================ */
/* TH Glow Animation */
.th-image-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(241, 212, 18, 0.4) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: rotate-glow 8s linear infinite;
  opacity: 0;
  transition: opacity 1s;
}

.th-image-container.glow-active::before {
  opacity: 1;
}

@keyframes rotate-glow {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes pulse-red {
  0% {
    transform: scale(1) rotate(-2deg);
  }

  50% {
    transform: scale(1.05) rotate(-2deg);
  }

  100% {
    transform: scale(1) rotate(-2deg);
  }
}

/* Typography Refinements */
.stat-label,
.player-tag {
  font-size: 0.85rem !important;
  /* Reduced size */
  color: #C0C0C0 !important;
  /* Muted silver */
}

/* Reduced Glow */
.glass-panel {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  /* Reduced shadow */
  border-color: rgba(241, 212, 18, 0.15) !important;
}

/* ============================================
   Roast Module & Rush Meter
   ============================================ */
.clan-shame-badge {
  background: linear-gradient(135deg, #FF0000 0%, #8B0000 100%);
  color: #FFF;
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #FF4444;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
  animation: pulse-red 2s infinite;
}

.rush-meter-container {
  margin-top: 12px;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  height: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--panel-border);
}

.rush-meter-bar {
  height: 100%;
  background: linear-gradient(90deg, #FF4444 0%, var(--gold-primary) 50%, var(--green-accent) 100%);
  width: 0%;
  transition: width 1.5s ease-out;
}

.rush-meter-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  color: #FFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  font-weight: bold;
}

.troop-card:hover {
  box-shadow: 0 4px 12px rgba(241, 212, 18, 0.15) !important;
}

/* ============================================
   Bottom Navigation (Mobile)
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background: rgba(20, 16, 8, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-shadow);
  border-radius: 20px;
  display: flex;
  justify-content: space-around;
  padding: 8px 6px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-size: 0.6rem;
  padding: 6px 4px;
  border-radius: 12px;
  transition: all 0.2s ease;
  border-bottom: none !important;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.nav-item i,
.nav-item span.icon {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.nav-item.active {
  background: rgba(241, 212, 18, 0.15);
  color: var(--gold-primary);
  transform: translateY(-2px);
}

.nav-item:active {
  transform: scale(0.95);
}

/* Adjust main content for bottom nav */
.app-container {
  padding-bottom: 100px;
}

/* Hide desktop tabs if present */
.nav-tabs {
  display: none;
}

/* ============================================
   Meta-Match Finder
   ============================================ */

.slot-machine {
  height: 120px;
  overflow: hidden;
  position: relative;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.6);
  border: 3px solid var(--gold-dark);
  margin: 24px auto;
  max-width: 180px;
  box-shadow:
    inset 0 4px 20px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(241, 212, 18, 0.2);
}

.slot-reel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
}

.slot-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

@keyframes slotSpin {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-300px);
  }
}

.slot-reel.stopped {
  animation: none !important;
}

/* Glassmorphism Result Card */
.meta-result-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(241, 212, 18, 0.4);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  margin-top: 24px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.meta-result-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(241, 212, 18, 0.4));
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.meta-score {
  font-size: 2.8rem;
  color: var(--gold-primary);
  text-shadow:
    0 0 30px rgba(241, 212, 18, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.8);
  margin: 12px 0;
}

/* Missing Items List */
.meta-missing-list {
  margin-top: 20px;
  text-align: left;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
}

.missing-item {
  color: #FF6B6B;
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.missing-item:last-child {
  border-bottom: none;
}

/* Other Strategies Display */
.other-strategy {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.other-strategy-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  opacity: 0.7;
}

.other-score {
  margin-left: auto;
  font-family: 'Inter', sans-serif; font-weight: 500;
  color: var(--gold-dark);
}

/* Fade In Up Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .meta-result-card {
    padding: 20px 16px;
  }

  .meta-score {
    font-size: 2rem;
  }

  .meta-result-icon {
    width: 80px;
    height: 80px;
  }

  .slot-machine {
    max-width: 140px;
    height: 100px;
  }

  .slot-icon {
    width: 80px;
    height: 80px;
  }
}

/* ============================================
   War Mirror Simulator
   ============================================ */

.vs-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  min-height: 200px;
}

.vs-side {
  flex: 1;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  opacity: 0;
  transform: translateX(-100px);
}

.vs-side.attacker {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(56, 189, 248, 0.05));
  border: 2px solid #38BDF8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.vs-side.mirror {
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.25), rgba(255, 68, 68, 0.05));
  border: 2px solid #FF4444;
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.2);
  transform: translateX(100px);
}

/* Animated state */
.vs-container.animated .vs-side {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vs-container.animated .vs-side.mirror {
  transition-delay: 0.15s;
}

.vs-th-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  margin-bottom: 8px;
}

.vs-side.mirror .vs-th-icon {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) brightness(0.7) sepia(0.3);
}

.vs-name {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.vs-side.attacker .vs-name {
  color: #38BDF8;
}

.vs-side.mirror .vs-name {
  color: #FF4444;
}

.vs-heroes {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
}

.vs-hero-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  background: rgba(0, 0, 0, 0.4);
}

.vs-mystery {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 12px 0;
}

.vs-weight-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.vs-weight {
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 1.8rem;
  color: var(--gold-primary);
  text-shadow: 0 0 10px rgba(241, 212, 18, 0.5);
}

.vs-side.mirror .vs-weight {
  color: #FF6B6B;
}

.vs-badge {
  font-size: 2.5rem;
  color: var(--gold-primary);
  text-shadow:
    0 0 30px rgba(255, 215, 0, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
  animation: pulseVS 1.5s ease-in-out infinite;
}

@keyframes pulseVS {

  0%,
  100% {
    transform: scale(1);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
  }

  50% {
    transform: scale(1.1);
    text-shadow: 0 0 50px rgba(255, 215, 0, 1);
  }
}

/* Win Rate Gauge */
.win-rate-container {
  height: 28px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  margin: 20px 0;
  border: 2px solid var(--panel-border);
}

.win-rate-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FF4444, #FFD700, #4CAF50);
  border-radius: 14px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.win-rate-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 1rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Prediction Text */
.mirror-prediction {
  text-align: center;
  font-size: 1.5rem;
  min-height: 40px;
  margin: 16px 0;
}

/* Screen Shake Animation */
@keyframes screenShake {

  0%,
  100% {
    transform: translateX(0);
  }

  10% {
    transform: translateX(-8px) rotate(-0.5deg);
  }

  20% {
    transform: translateX(8px) rotate(0.5deg);
  }

  30% {
    transform: translateX(-6px) rotate(-0.3deg);
  }

  40% {
    transform: translateX(6px) rotate(0.3deg);
  }

  50% {
    transform: translateX(-4px);
  }

  60% {
    transform: translateX(4px);
  }

  70% {
    transform: translateX(-2px);
  }

  80% {
    transform: translateX(2px);
  }
}

.shake {
  animation: screenShake 0.5s ease-out;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .vs-container {
    flex-direction: column;
    gap: 12px;
  }

  .vs-side {
    width: 100%;
    transform: translateY(-50px);
  }

  .vs-side.mirror {
    transform: translateY(50px);
  }

  .vs-container.animated .vs-side {
    transform: translateY(0);
  }

  .vs-badge {
    font-size: 2rem;
    margin: 12px 0;
  }

  .vs-th-icon {
    width: 60px;
    height: 60px;
  }

  .vs-weight {
    font-size: 1.4rem;
  }
}

/* ============================================
   Clan Games Speedometer
   ============================================ */

.speedometer-card {
  width: 200px;
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border-radius: 16px;
  border: 2px solid var(--panel-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.speedometer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.speedometer-header {
  margin-bottom: 12px;
  color: var(--gold-primary);
}

.speedometer {
  width: 100%;
  height: auto;
  max-width: 180px;
}

.speedometer-needle {
  transform-origin: 100px 100px;
}

.cg-points {
  font-size: 2rem;
  margin-top: 8px;
  text-shadow: 0 0 10px currentColor;
}

.cg-status {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.flash-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border-radius: 20px;
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 0.85rem;
  color: #1E293B;
  animation: flashPulse 1s ease-in-out infinite;
}

@keyframes flashPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  }
}

/* Maxed player gold shimmer */
.speedometer-card.maxed {
  border-color: #FFD700;
  animation: goldShimmer 2s ease-in-out infinite;
}

@keyframes goldShimmer {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), inset 0 0 30px rgba(255, 215, 0, 0.05);
  }

  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5), inset 0 0 50px rgba(255, 215, 0, 0.1);
  }
}

/* Mobile responsive */
@media (max-width: 600px) {
  .speedometer-card {
    width: 180px;
    padding: 16px;
  }

  .cg-points {
    font-size: 1.6rem;
  }
}

/* ============================================
   Clan Games Tracker
   ============================================ */

.mode-btn {
  padding: 10px 20px;
  border: 2px solid var(--panel-border);
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif; font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mode-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.mode-btn.active {
  background: linear-gradient(135deg, rgba(241, 212, 18, 0.3), rgba(241, 212, 18, 0.1));
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(241, 212, 18, 0.3);
}

/* Progress Bar */
.cg-progress-bar-container {
  position: relative;
  margin: 16px 0;
}

.cg-progress-bar {
  height: 32px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--panel-border);
}

.cg-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FF4444, #FFD700, #4CAF50);
  border-radius: 14px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.cg-progress-percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Prediction */
.cg-prediction {
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
}

/* Player Cards */
.cg-player-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.cg-player-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 12px;
  border: 2px solid var(--panel-border);
  transition: all 0.3s ease;
}

.cg-player-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cg-player-card.maxed {
  border-color: #FFD700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.cg-player-card.zero {
  border-color: #FF4444;
  background: rgba(255, 68, 68, 0.1);
}

.cg-player-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cg-player-name {
  font-weight: bold;
  color: var(--text-primary);
}

.cg-badge {
  font-size: 0.85rem;
}

.cg-player-points {
  margin-bottom: 8px;
}

.cg-mini-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  overflow: hidden;
}

.cg-mini-fill {
  height: 100%;
  transition: width 0.5s ease;
}

/* Score Card */
.cg-score-card {
  padding: 20px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 2px solid var(--gold-primary);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(241, 212, 18, 0.2);
}

/* Mobile */
@media (max-width: 600px) {
  .cg-player-list {
    grid-template-columns: 1fr;
  }

  .mode-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* ============================================
   Optimized Bento Grid (3-Column)
   ============================================ */

.pulse-section {
  width: 100%;
  margin-top: 24px;
  padding: 0 16px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Premium Bento Card Base */
.bento-card {
  background: rgba(26, 18, 31, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid #F1D412;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow:
    0 0 15px rgba(241, 212, 18, 0.15),
    0 4px 20px rgba(0, 0, 0, 0.4);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 25px rgba(241, 212, 18, 0.25),
    0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Legacy support - alias pulse-card to bento-card */
.pulse-card {
  background: rgba(26, 18, 31, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid #F1D412;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow:
    0 0 15px rgba(241, 212, 18, 0.15),
    0 4px 20px rgba(0, 0, 0, 0.4);
}

.pulse-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 25px rgba(241, 212, 18, 0.25),
    0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Grid Span Classes */
.span-3x1 {
  grid-column: span 3;
}

.span-2x1 {
  grid-column: span 2;
}

.span-1x1 {
  grid-column: span 1;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .span-3x1,
  .span-2x1,
  .span-1x1 {
    grid-column: span 1;
  }
}



/* ============================================
   2-Column Performance Pulse & Visual Fixes
   ============================================ */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.bento-card {
  background: #1A121F;
  border: 1.5px solid #F1D412;
  border-radius: 20px;
  height: 540px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Impact Ring Fix */
.progress-ring-circle {
  transition: stroke-dashoffset 0.35s;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
}

/* War Image Fix */
.war-ready-th {
  max-height: 200px !important;
  width: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.5));
}

/* Ensure Card 2 is hidden (Safety) */
#col-2-karma {
  display: none !important;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr !important;
  }

  .bento-card {
    height: auto;
    min-height: 500px;
  }
}

/* ============================================
   FINAL POLISH & PREMIUM RESTORATION
   ============================================ */

/* 1. Impact Score Premium */
.progress-ring-circle {
  transition: stroke-dashoffset 0.5s ease-in-out, stroke 0.3s;
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
}

.score-text {
  font-size: 4rem !important;
  font-weight: 900 !important;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  font-family: 'ClashBold', 'Impact', sans-serif !important;
}

.legend-status {
  font-family: 'ClashBold', 'Impact', sans-serif !important;
  color: #4ade80 !important;
  /* Green */
  text-transform: uppercase;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.legend-status::before {
  content: '🌟';
}

/* 2. Factor Grid Premium */
.factor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
}

.factor-mini {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.factor-val {
  font-family: 'ClashBold', 'Impact', sans-serif !important;
  font-size: 1.1rem;
  color: #fff;
}

.factor-lbl {
  font-size: 0.75rem;
  color: #aaa;
  text-transform: uppercase;
  margin-top: 4px;
}

/* 3. War Readiness & Assistant Integration */
.war-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.war-ready-th {
  max-height: 200px !important;
  width: auto;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.6));
  margin-bottom: 12px;
}

.assistant-section {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px;
  margin-top: auto;
  /* Push to bottom */
}

.assistant-header {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.pulse-label {
  font-size: 1rem;
  color: #fff;
  opacity: 0.9;
  margin: 0;
}

/* 4. 3D Buttons (High Specificity) */
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.btn-3d {
  border: none;
  border-radius: 8px;
  padding: 10px 4px;
  font-family: 'ClashBold', 'Impact', sans-serif !important;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #000;
  cursor: pointer;
  transition: transform 0.1s;
  position: relative;
  top: 0;
  text-align: center;
  width: 100%;
}

.btn-3d:active {
  top: 2px;
  box-shadow: none !important;
}

/* Button Colors */
.btn-3d.warn {
  background: #facc15 !important;
  border-bottom: 4px solid #ca8a04 !important;
  color: #000 !important;
}

.btn-3d.promote {
  background: #4ade80 !important;
  border-bottom: 4px solid #16a34a !important;
  color: #000 !important;
}

.btn-3d.bench {
  background: #60a5fa !important;
  border-bottom: 4px solid #2563eb !important;
  color: #fff !important;
}

.btn-3d.roast {
  background: #ef4444 !important;
  border-bottom: 4px solid #b91c1c !important;
  color: #fff !important;
}

/* Alert Box */
.assistant-alert {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #ef4444;
  padding: 8px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 12px;
  font-family: 'ClashBold', 'Impact', sans-serif;
  animation: pulse-alert 2s infinite;
}

/* Fix: Footer clearance for mobile nav */
@media (max-width: 900px) {
  footer {
    padding-bottom: 140px !important;
  }
}

/* ============================================
   Modern Roast & Toast Styles
   ============================================ */

/* Custom Toast Notification */
.clash-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  /* Default bottom-right */
  background: linear-gradient(135deg, rgba(20, 16, 8, 0.95), rgba(40, 32, 20, 0.95));
  border: 2px solid var(--gold-primary);
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(241, 212, 18, 0.2);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 400px;
}

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

.toast-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-family: 'Inter', sans-serif; font-weight: 500;
  color: var(--gold-primary);
  font-size: 0.95rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toast-message {
  font-size: 0.85rem;
  color: #ddd;
  line-height: 1.4;
}

/* Modern Roast Button */
.roast-btn {
  background: linear-gradient(180deg, #FF6B6B 0%, #C0392B 100%);
  border: none;
  border-bottom: 4px solid #922B21;
  border-radius: 8px;
  padding: 8px 16px;
  color: #fff;
  font-family: 'Inter', sans-serif; font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.1s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.roast-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, #FF8282 0%, #D32F2F 100%);
}

.roast-btn:active {
  transform: translateY(2px);
  border-bottom-width: 0;
  margin-top: 4px;
}

/* Slacker Card Layout Update */
.slacker-card {
  justify-content: space-between;
}

.slacker-actions {
  display: flex;
  align-items: center;
}