/* ==========================================================================
   CAFÉ STAFF LEADERBOARD - MODERN DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Color Palette - Warm Coffee & Espresso Tones */
  --bg-dark: #160e10;
  --bg-card: #25171a;
  --bg-card-hover: #2e1d21;
  --bg-card-border: rgba(212, 163, 115, 0.15);
  
  --text-main: #fcf6ed;
  --text-muted: #c4b5a5;
  --text-dim: #8c7b6c;

  --accent-caramel: #d4a373;
  --accent-caramel-hover: #e6b88a;
  --accent-espresso: #4a2c20;
  
  /* Rank Colors */
  --rank-gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --rank-gold-shadow: rgba(251, 191, 36, 0.3);
  --rank-gold-border: rgba(251, 191, 36, 0.4);

  --rank-silver-gradient: linear-gradient(135deg, #e5e7eb 0%, #9ca3af 100%);
  --rank-silver-shadow: rgba(229, 231, 235, 0.25);
  --rank-silver-border: rgba(229, 231, 235, 0.3);

  --rank-bronze-gradient: linear-gradient(135deg, #f97316 0%, #b45309 100%);
  --rank-bronze-shadow: rgba(249, 115, 22, 0.25);
  --rank-bronze-border: rgba(249, 115, 22, 0.3);

  /* Buttons & Action Colors */
  --btn-inc-bg: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --btn-inc-shadow: rgba(16, 185, 129, 0.35);
  
  --btn-dec-bg: rgba(239, 68, 68, 0.15);
  --btn-dec-color: #ef4444;
  --btn-dec-border: rgba(239, 68, 68, 0.3);
  --btn-dec-hover: #ef4444;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout & Spacing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--bg-card-border);
  --shadow-glow: 0 0 25px rgba(212, 163, 115, 0.25);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 90px; /* Space for fixed bottom bar */
}

/* App Container */
.app-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* Header & Hero Banner */
.hero-header {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 16px;
  margin-bottom: 28px;
  background-image: url('assets/banner.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg, 
    rgba(22, 14, 16, 0.82) 0%, 
    rgba(22, 14, 16, 0.94) 60%,
    rgba(22, 14, 16, 0.98) 100%
  );
  backdrop-filter: blur(8px);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.hero-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-caramel);
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-main-title {
  margin-bottom: 24px;
}

.hero-main-title h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 8px;
}

.active-drink-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 163, 115, 0.12);
  border: 1px solid rgba(212, 163, 115, 0.3);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-caramel-hover);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-caramel);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-caramel);
  animation: pulse 2s infinite;
}

.pulse-dot-green {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Stats Grid Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.stat-card {
  background: rgba(37, 23, 26, 0.7);
  border: 1px solid rgba(212, 163, 115, 0.15);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  font-size: 1.6rem;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-card-progress {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  grid-column: span 1;
}

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

.stat-target-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-caramel);
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-caramel) 0%, #10b981 100%);
  border-radius: var(--radius-full);
  transition: width 0.5s ease-out;
}

/* Button Styles */
button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-caramel) 0%, #b88653 100%);
  color: #1a1113;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(212, 163, 115, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 163, 115, 0.45);
  background: linear-gradient(135deg, var(--accent-caramel-hover) 0%, #c6925d 100%);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

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

.btn-blur {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

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

.btn-danger-blur {
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.btn-danger-blur:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
}

.btn-icon-blur {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.btn-icon-blur:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: white;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
}

/* Spotlight Card (#1 Top Seller) */
.spotlight-section {
  margin-bottom: 28px;
}

.spotlight-card {
  background: linear-gradient(135deg, rgba(46, 30, 35, 0.9) 0%, rgba(37, 23, 26, 0.95) 100%);
  border: 2px solid rgba(251, 191, 36, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px var(--rank-gold-shadow);
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.spotlight-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--rank-gold-gradient);
  color: #1a1113;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.8px;
  box-shadow: 0 4px 12px var(--rank-gold-shadow);
}

.spotlight-body {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.spotlight-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.spotlight-avatar {
  width: 72px;
  height: 72px;
  background: rgba(251, 191, 36, 0.15);
  border: 2px solid #fbbf24;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 0 20px var(--rank-gold-shadow);
}

.crown-icon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.spotlight-details {
  flex: 1;
  min-width: 200px;
}

.spotlight-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.spotlight-role {
  color: var(--accent-caramel);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.spotlight-lead-margin {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.spotlight-score-box {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  text-align: center;
  flex-shrink: 0;
}

.spotlight-score-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1;
  display: block;
}

.spotlight-score-unit {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Toolbar Section (Search & Add) */
.toolbar-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

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

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

.search-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 12px 16px 12px 42px;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-box input:focus {
  border-color: var(--accent-caramel);
  box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 4px;
}

.toolbar-actions {
  display: flex;
  gap: 12px;
}

/* Leaderboard Roster Section */
.leaderboard-section {
  background: rgba(30, 19, 22, 0.6);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-header h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.live-indicator {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

/* Participant Card Row */
.leaderboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  gap: 16px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}

.leaderboard-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(212, 163, 115, 0.3);
}

/* Top 3 Visual Rank Styling */
.leaderboard-item.rank-1 {
  border: 1.5px solid var(--rank-gold-border);
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.08) 0%, rgba(37, 23, 26, 0.95) 100%);
  box-shadow: 0 4px 15px var(--rank-gold-shadow);
}

.leaderboard-item.rank-2 {
  border: 1.5px solid var(--rank-silver-border);
  background: linear-gradient(90deg, rgba(229, 231, 235, 0.06) 0%, rgba(37, 23, 26, 0.95) 100%);
  box-shadow: 0 4px 12px var(--rank-silver-shadow);
}

.leaderboard-item.rank-3 {
  border: 1.5px solid var(--rank-bronze-border);
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.06) 0%, rgba(37, 23, 26, 0.95) 100%);
  box-shadow: 0 4px 12px var(--rank-bronze-shadow);
}

/* Rank Position Badge */
.item-rank-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-1 .item-rank-badge {
  background: var(--rank-gold-gradient);
  color: #1a1113;
  border: none;
  box-shadow: 0 2px 8px var(--rank-gold-shadow);
}

.rank-2 .item-rank-badge {
  background: var(--rank-silver-gradient);
  color: #111827;
  border: none;
  box-shadow: 0 2px 8px var(--rank-silver-shadow);
}

.rank-3 .item-rank-badge {
  background: var(--rank-bronze-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 8px var(--rank-bronze-shadow);
}

/* Item Profile Info */
.item-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 160px;
}

.item-avatar {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.item-details {
  display: flex;
  flex-direction: column;
}

.item-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.item-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Item Score Display */
.item-score-container {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 0 12px;
  flex-shrink: 0;
}

.item-score-val {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  min-width: 44px;
  text-align: right;
  transition: transform 0.15s ease, color 0.15s ease;
}

.item-score-unit {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

/* Action Controls (+ / - / Delete) */
.item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-action-inc, .btn-action-dec {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-action-inc {
  background: var(--btn-inc-bg);
  color: #ffffff;
  box-shadow: 0 3px 10px var(--btn-inc-shadow);
}

.btn-action-inc:hover {
  transform: scale(1.06);
  box-shadow: 0 5px 14px var(--btn-inc-shadow);
}

.btn-action-inc:active {
  transform: scale(0.95);
}

.btn-action-dec {
  background: var(--btn-dec-bg);
  color: var(--btn-dec-color);
  border: 1px solid var(--btn-dec-border);
}

.btn-action-dec:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
}

.btn-action-dec:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-action-delete {
  background: transparent;
  color: var(--text-dim);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-left: 4px;
}

.btn-action-delete:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  border: 2px dashed rgba(255, 255, 255, 0.1);
}

.empty-icon {
  font-size: 3.2rem;
  margin-bottom: 12px;
  opacity: 0.8;
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 360px;
  margin: 0 auto;
}

/* Bottom Persistent Floating Action Bar */
.bottom-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 20px;
  background: rgba(22, 14, 16, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--bg-card-border);
  display: flex;
  justify-content: center;
  z-index: 90;
}

.bottom-action-bar button {
  width: 100%;
  max-width: 480px;
  justify-content: center;
}

/* Modal Backdrops & Cards */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 7, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-card {
  background: #25171a;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.modal-card-sm {
  max-width: 400px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--text-main);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  font-family: var(--font-body);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent-caramel);
  box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2);
}

.emoji-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.emoji-option {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-option.selected {
  border-color: var(--accent-caramel);
  background: rgba(212, 163, 115, 0.2);
  box-shadow: 0 0 10px rgba(212, 163, 115, 0.3);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Reset Radio Options */
.reset-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.reset-option-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--bg-card-border);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.reset-option-card:hover {
  border-color: rgba(212, 163, 115, 0.3);
}

.reset-option-card input[type="radio"] {
  margin-top: 4px;
  accent-color: var(--accent-caramel);
}

.reset-option-text {
  display: flex;
  flex-direction: column;
}

.reset-option-text strong {
  font-size: 0.9rem;
  color: var(--text-main);
}

.reset-option-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  background: #2b1d21;
  border: 1px solid var(--accent-caramel);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  pointer-events: auto;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-out {
  animation: toastOut 0.25s ease forwards;
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(-12px) scale(0.9); }
}

/* Utilities & Animations */
.mt-1 { margin-top: 4px; }
.mt-3 { margin-top: 12px; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.8rem; }

/* Score Flash Effect */
.score-bump {
  animation: scoreBump 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: #10b981 !important;
}

.score-drop {
  animation: scoreBump 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: #ef4444 !important;
}

@keyframes scoreBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Responsive Media Queries */
@media (max-width: 680px) {
  .hero-main-title h1 {
    font-size: 1.7rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card-progress {
    grid-column: span 2;
  }

  .spotlight-body {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .spotlight-details {
    text-align: center;
  }

  .spotlight-badge {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
  }

  .leaderboard-item {
    padding: 12px;
    gap: 10px;
  }

  .item-rank-badge {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .item-name {
    font-size: 0.98rem;
  }

  .item-score-val {
    font-size: 1.4rem;
    min-width: 32px;
  }

  .btn-action-inc, .btn-action-dec {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .btn-action-delete {
    width: 32px;
    height: 32px;
  }

  .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions button {
    flex: 1;
    justify-content: center;
  }
}
