/* ============================================================
   PIKA GALATAMA - MOBILE-FIRST PORTRAIT LEADERBOARD & ADMIN
   PREMIUM ESPORTS CARD EDITION
   ============================================================ */

:root {
  --bg-primary: #070b14;
  --bg-card: #0d1424;
  --bg-card-hover: #131c33;
  --bg-input: #111827;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(16, 185, 129, 0.4);
  --border-cyan: rgba(6, 182, 212, 0.4);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --gold: #fbbf24;
  --gold-glow: rgba(251, 191, 36, 0.35);
  --silver: #e2e8f0;
  --silver-glow: rgba(226, 232, 240, 0.25);
  --bronze: #f97316;
  --bronze-glow: rgba(249, 115, 22, 0.3);
  
  --neon-green: #10b981;
  --neon-cyan: #06b6d4;
  --neon-red: #ef4444;
  --neon-purple: #a855f7;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.4;
  display: flex;
  justify-content: center;
}

/* Portrait Mobile App Shell */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: #080c18;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  padding: 0.65rem 0.85rem 2.5rem 0.85rem;
  display: flex;
  flex-direction: column;
}

/* Compact Header (Clean & Space-Saving) */
.compact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 0.55rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

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

.brand-name {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #67e8f9 60%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.icon-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: #e2e8f0;
  font-size: 0.775rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  min-height: 34px;
}

.icon-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.icon-pill-btn.btn-prize-pill {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fef08a;
}

.icon-pill-btn.btn-points-pill {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.35);
  color: #a5f3fc;
}

.icon-pill-btn.btn-rules-pill {
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.35);
  color: #fbcfe8;
}

.icon-pill-btn.btn-rules-pill:hover {
  background: rgba(236, 72, 153, 0.22);
  color: #fff;
}

.icon-pill-btn:active {
  transform: scale(0.95);
}

.icon-btn-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #94a3b8;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  padding: 0;
  overflow: hidden;
}

.icon-btn-circle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Compact Timer Strip */
.compact-timer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.12) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: 0.55rem;
}

.timer-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.timer-icon {
  font-size: 0.95rem;
}

.timer-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.timer-clock {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.timer-badge-pill {
  font-size: 0.675rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  letter-spacing: 0.04em;
}

/* ============================================================
   GLOBAL FORM & BUTTON RESETS (STOPS BROWSER WHITE DEFAULTS)
   ============================================================ */

input, textarea, select, button {
  font-family: inherit;
  box-sizing: border-box;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea {
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: var(--radius-md);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.35);
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
  opacity: 0.85;
}

/* Base Search Box */
.search-wrapper {
  margin-bottom: 0.75rem;
  width: 100%;
}

.search-wrapper.compact {
  margin-bottom: 0.65rem;
}

.search-input {
  width: 100%;
  padding: 0.65rem 0.95rem;
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: var(--radius-md);
  color: #f8fafc !important;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input.compact {
  padding: 0.45rem 0.85rem;
  font-size: 0.825rem;
  height: 38px;
}

/* ============================================================
   INFO-BTN (ADMIN & ACTION BUTTONS)
   ============================================================ */

.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.95rem;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: #f8fafc;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  text-decoration: none;
}

.info-btn:hover {
  background: #334155;
  border-color: var(--border-cyan);
  color: #fff;
  transform: translateY(-1px);
}

.info-btn:active {
  transform: scale(0.97);
}

.info-btn.btn-points {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #a5f3fc;
}

.info-btn.btn-points:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.35) 0%, rgba(16, 185, 129, 0.35) 100%);
  border-color: #06b6d4;
  color: #fff;
}

.info-btn.btn-prize {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fef08a;
}

.info-btn.btn-prize:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.35) 0%, rgba(217, 119, 6, 0.35) 100%);
  border-color: #fbbf24;
  color: #fff;
}

.info-btn.btn-subtle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.info-btn.btn-subtle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* List Meta Bar */
.list-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  padding: 0 0.25rem;
}

/* ============================================================
   PREMIUM LEADERBOARD CARD DESIGN (NOT A BORING TABLE)
   ============================================================ */

.leaderboard-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.player-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #0d1424;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.player-card:hover {
  transform: translateY(-2px);
  background: #131c33;
  border-color: rgba(255, 255, 255, 0.16);
}

.player-card:active {
  transform: scale(0.98);
}

/* Rank 1: Gold Card */
.player-card.rank-card-1 {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.18) 0%, rgba(20, 27, 45, 0.95) 55%, rgba(13, 20, 36, 0.98) 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.65);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.25);
}

/* Rank 2: Silver Card */
.player-card.rank-card-2 {
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.14) 0%, rgba(20, 27, 45, 0.95) 55%, rgba(13, 20, 36, 0.98) 100%);
  border: 1.5px solid rgba(226, 232, 240, 0.5);
  box-shadow: 0 6px 18px rgba(226, 232, 240, 0.15);
}

/* Rank 3: Bronze Card */
.player-card.rank-card-3 {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.14) 0%, rgba(20, 27, 45, 0.95) 55%, rgba(13, 20, 36, 0.98) 100%);
  border: 1.5px solid rgba(249, 115, 22, 0.5);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.18);
}

/* Card Left Section */
.card-left {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

/* Trophy Box */
.card-trophy-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-right: 0.85rem;
  flex-shrink: 0;
  font-size: 1.5rem;
  position: relative;
}

.card-trophy-box.trophy-1 {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(217, 119, 6, 0.2) 100%);
  border: 1px solid rgba(251, 191, 36, 0.6);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.card-trophy-box.trophy-2 {
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.25) 0%, rgba(148, 163, 184, 0.2) 100%);
  border: 1px solid rgba(226, 232, 240, 0.4);
  box-shadow: 0 0 10px rgba(226, 232, 240, 0.25);
}

.card-trophy-box.trophy-3 {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25) 0%, rgba(194, 65, 12, 0.2) 100%);
  border: 1px solid rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.25);
}

.card-trophy-box.trophy-normal {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* Card Info */
.card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-nick {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card-subtext.highlight-1 { color: #fde047; font-weight: 700; }
.card-subtext.highlight-2 { color: #e2e8f0; font-weight: 700; }
.card-subtext.highlight-3 { color: #fdba74; font-weight: 700; }

/* Card Right Section */
.card-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  position: relative;
}

.points-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.points-number {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  color: #34d399;
  letter-spacing: -0.02em;
}

.rank-card-1 .points-number {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.rank-card-2 .points-number {
  color: #f1f5f9;
  text-shadow: 0 0 10px rgba(241, 245, 249, 0.3);
}

.rank-card-3 .points-number {
  color: #fb923c;
  text-shadow: 0 0 10px rgba(251, 146, 60, 0.3);
}

.points-unit {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-top: 1px;
}

.card-arrow {
  color: var(--text-dim);
  font-size: 1.15rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.player-card:hover .card-arrow {
  transform: translateX(2px);
  color: #fff;
}

/* Card Pulse Animations on score change */
@keyframes card-pulse-green {
  0% { transform: scale(1.02); box-shadow: 0 0 24px rgba(16, 185, 129, 0.7); }
  50% { transform: scale(1.01); box-shadow: 0 0 16px rgba(16, 185, 129, 0.4); }
  100% { transform: scale(1); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
}

@keyframes card-pulse-red {
  0% { transform: scale(0.98); box-shadow: 0 0 24px rgba(239, 68, 68, 0.7); }
  50% { transform: scale(0.99); box-shadow: 0 0 16px rgba(239, 68, 68, 0.4); }
  100% { transform: scale(1); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
}

.card-flash-up {
  animation: card-pulse-green 1.4s ease-out;
}

.card-flash-down {
  animation: card-pulse-red 1.4s ease-out;
}

.floating-diff {
  position: absolute;
  right: 0.5rem;
  top: -12px;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  animation: float-tag 1.8s forwards ease-out;
  pointer-events: none;
  z-index: 10;
}

.diff-up { background: #10b981; color: #fff; box-shadow: 0 0 8px #10b981; }
.diff-down { background: #ef4444; color: #fff; box-shadow: 0 0 8px #ef4444; }

@keyframes float-tag {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 1; transform: translateY(-8px); }
  80% { opacity: 1; transform: translateY(-16px); }
  100% { opacity: 0; transform: translateY(-24px); }
}

/* ============================================================
   POPUP MODAL DIALOGS
   ============================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1rem;
}

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

.modal-box {
  background: #111827;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  transition: transform 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-backdrop.active .modal-box {
  transform: translateY(0);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.modal-head h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.btn-close:hover {
  color: #fff;
}

/* Prize Item Cards */
.prize-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.prize-card.p1 {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(17, 24, 39, 0.8) 100%);
  border-color: rgba(251, 191, 36, 0.4);
}

.prize-card.p2 {
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.12) 0%, rgba(17, 24, 39, 0.8) 100%);
  border-color: rgba(226, 232, 240, 0.3);
}

.prize-card.p3 {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(17, 24, 39, 0.8) 100%);
  border-color: rgba(249, 115, 22, 0.3);
}

.prize-icon {
  font-size: 2.25rem;
}

.prize-details h4 {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
}

.prize-amount {
  font-size: 1.35rem;
  font-weight: 900;
  margin-top: 2px;
}

.p1 .prize-amount { color: #fef08a; }
.p2 .prize-amount { color: #f1f5f9; }
.p3 .prize-amount { color: #fdba74; }

/* Points Formula Grid */
.formula-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.formula-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.formula-label {
  font-weight: 700;
  color: #e2e8f0;
}

.formula-val {
  font-family: var(--font-mono);
  font-weight: 900;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* Rules Dialog Styles */
.rules-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
}

.rule-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #f472b6;
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 50%;
  margin-top: 2px;
}

.rule-text {
  font-size: 0.875rem;
  color: #e2e8f0;
  line-height: 1.5;
  font-weight: 500;
}

/* ============================================================
   ADMIN PANEL STYLES
   ============================================================ */

.admin-header-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.admin-timer-box {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
}

.admin-timer-controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.timer-action-btn {
  flex: 1;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-start { background: #059669; color: #fff; border: none; }
.btn-pause { background: #d97706; color: #fff; border: none; }
.btn-reset-timer { background: rgba(255, 255, 255, 0.08); color: #fff; }

.admin-participant-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease;
}

.admin-participant-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

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

.card-top-nick {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-top-points {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 900;
  color: #34d399;
}

.quick-add-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.btn-quick-add {
  padding: 0.5rem 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-quick-add:active {
  background: rgba(16, 185, 129, 0.35);
  border-color: #10b981;
  color: #fff;
  transform: scale(0.94);
}

.btn-quick-add span.pts {
  color: #34d399;
  font-weight: 900;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-card-action {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
}

.btn-card-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-card-action.danger {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stepper-box {
  display: inline-flex;
  align-items: center;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.stepper-btn {
  width: 34px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  cursor: pointer;
}

.stepper-btn:active {
  background: rgba(16, 185, 129, 0.35);
}

.stepper-input {
  width: 44px;
  height: 32px;
  background: transparent;
  border: none;
  color: #fff;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  outline: none;
}

.toast-box {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  border-left: 4px solid var(--neon-green);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 9999;
  animation: pop-toast 0.25s ease-out;
  pointer-events: none;
}

@keyframes pop-toast {
  from { opacity: 0; transform: translate(-50%, 15px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
