/* ============================================================================
   RESCUE CUP - PLAYER COMPANION APP CSS
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-main: #070b14;
  --bg-card: #0f172a;
  --bg-card-hover: #1e293b;
  --bg-glass: rgba(15, 23, 42, 0.75);
  --bg-glass-card: rgba(30, 41, 59, 0.5);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(56, 189, 248, 0.4);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --primary: #38bdf8;
  --primary-hover: #0284c7;
  --accent-red: #ef4444;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-purple: #a855f7;
  
  --nav-height: 64px;
  --header-height: 60px;
  
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html, body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.5;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* App Container (Constrained on desktop for sleek mobile preview, 100% on phone) */
.app-viewport {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  box-sizing: border-box;
  overflow-x: hidden;
  background-color: var(--bg-main);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 16px));
}

/* App Top Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  padding-top: env(safe-area-inset-top, 0px);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.app-brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.app-brand-name {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: #fff;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.app-brand-name small {
  font-size: 9px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 1px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notif-bell-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.notif-bell-btn:active {
  transform: scale(0.92);
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-main);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Install PWA Floating Pill */
.install-pwa-pill {
  display: none;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Tab Content Areas */
.tab-content {
  display: none;
  padding: 16px;
  flex: 1;
  animation: fadeIn 0.25s ease-out;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Bottom Navigation Bar */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  gap: 4px;
  padding: 8px 0;
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  border: none;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  transition: transform 0.2s;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active svg {
  stroke: var(--primary);
  transform: translateY(-2px);
}

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

/* Cards & Components */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-weight: 700;
}

/* Greeting Hero Card */
.player-hero-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #0f172a 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.player-hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 100%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.player-avatar-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #1e293b;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}

.player-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.player-info-wrap {
  flex: 1;
}

.player-team-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 4px;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.player-name-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.player-sub-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Next Match Countdown Card */
.match-spotlight-card {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  position: relative;
}

.match-spotlight-card.has-match {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 25px rgba(56, 189, 248, 0.1);
}

.spotlight-match-teams {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 16px 0;
}

.spotlight-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 38%;
  text-align: center;
}

.spotlight-team-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.spotlight-team-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.spotlight-vs {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 900;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.match-venue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 14px;
  border: 1px solid var(--border-color);
}

.venue-text {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-link-btn {
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Mini Standings Grid */
.mini-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.mini-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}

.mini-stat-val {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.mini-stat-lbl {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Notification Item in Feed */
.notif-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}

.notif-item.pinned {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, var(--bg-card) 100%);
}

.notif-item.urgent {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, var(--bg-card) 100%);
}

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

.notif-cat-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.notif-cat-badge.URGENTE { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.notif-cat-badge.PARTITA { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.notif-cat-badge.TERZO_TEMPO { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.notif-cat-badge.COMUNICAZIONE { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }

.notif-date {
  font-size: 11px;
  color: var(--text-dim);
}

.notif-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.notif-msg {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  white-space: pre-line;
}

.notif-author {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Teammate List */
.teammate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--border-color);
}

.teammate-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.teammate-num {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 13px;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.1);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teammate-name {
  font-weight: 600;
  color: #fff;
  font-size: 13px;
}

.teammate-role {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Auth Screens (Register & Login) */
.auth-container {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 20px;
  padding: 10px;
  margin-bottom: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: inline-block;
}

.auth-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Auth Segment Tabs */
.auth-segmented-control {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.auth-seg-btn {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-seg-btn.active {
  background: var(--primary);
  color: #0b0f19;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input, .form-select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary);
  background: rgba(56, 189, 248, 0.05);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.form-select option {
  background: #0f172a;
  color: #fff;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  transition: all 0.2s;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
}

.auth-info-box {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 12px;
  color: var(--primary);
  line-height: 1.5;
  display: flex;
  gap: 8px;
}

/* Modals */
.app-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
}

.app-modal.active {
  display: flex;
}

.app-modal-dialog {
  background: #111827;
  border: 1px solid var(--border-color);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  width: 100%;
  max-width: 480px;
  padding: 24px;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-pull-bar {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto 16px auto;
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-title-text {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

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

/* Alerts & Toasts */
.app-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #1e293b;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  z-index: 300;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease-out;
  max-width: 90%;
}

.app-toast.show {
  transform: translateX(-50%) translateY(0);
}

.app-toast.success { border-color: var(--accent-green); color: #34d399; }
.app-toast.error { border-color: var(--accent-red); color: #f87171; }

/* ============================================================================
   SPLASH / LOADING SCREEN (Native App Startup)
   ============================================================================ */
.app-splash-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 40%, #0d1933 0%, #060a12 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
  user-select: none;
}

.app-splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
  max-width: 360px;
  width: 100%;
}

.splash-logo-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.splash-aura {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(56, 189, 248, 0) 70%);
  animation: splashPulse 2.4s infinite ease-in-out;
}

.splash-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  animation: splashFloat 3s infinite ease-in-out;
}

@keyframes splashPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.85; }
}

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

.splash-brand-text {
  margin-bottom: 32px;
}

.splash-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.splash-title {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.splash-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.splash-loader-wrap {
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.splash-loader-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.splash-loader-fill {
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #a855f7);
  border-radius: 4px;
  position: absolute;
  animation: splashProgress 1.6s infinite ease-in-out;
}

@keyframes splashProgress {
  0% { left: -40%; width: 30%; }
  50% { left: 30%; width: 50%; }
  100% { left: 100%; width: 30%; }
}

.splash-loader-status {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
}

/* ==============================================================================
   FANTARESCUECUP COMPANION APP STYLES
   ============================================================================== */
.fanta-app-hero {
  background: linear-gradient(135deg, rgba(76,29,149,0.85) 0%, rgba(30,27,75,0.9) 50%, rgba(15,23,42,0.95) 100%);
  border: 1px solid rgba(236, 72, 153, 0.4);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.2);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.fanta-app-hero::after {
  content: '✨';
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 28px;
  opacity: 0.25;
  pointer-events: none;
}

.fanta-widget-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.fanta-widget-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(236,72,153,0.6));
}

.fanta-widget-content {
  flex: 1;
  min-width: 0;
}

.fanta-widget-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.fanta-widget-badge {
  background: rgba(236,72,153,0.3);
  color: #fbcfe8;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.fanta-widget-title {
  font-family: var(--font-title);
  color: #fff;
  font-size: 13.5px;
  letter-spacing: 0.5px;
}

.fanta-widget-desc {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.35;
  white-space: normal;
}

.fanta-widget-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: #fff;
  font-weight: 900;
  font-size: 11px;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(236,72,153,0.4);
  white-space: nowrap;
}

.fanta-subtabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  overflow-x: auto;
}

.fanta-subtab-btn {
  flex: 1;
  min-width: 75px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: all 0.2s ease;
}

.fanta-subtab-btn.active {
  background: linear-gradient(135deg, #ec4899, #d946ef);
  color: #fff;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
}

.fanta-budget-gauge {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.fanta-budget-meter {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 8px;
}

.fanta-budget-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #facc15, #ec4899);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.fanta-roster-slots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.fanta-slot {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.fanta-slot.filled {
  border-style: solid;
  border-color: rgba(236, 72, 153, 0.4);
  background: rgba(236, 72, 153, 0.06);
}

.fanta-slot.is-captain {
  border-color: #facc15;
  background: rgba(250, 204, 21, 0.08);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.2);
}

.fanta-captain-tag {
  background: #facc15;
  color: #78350f;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.fanta-market-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  transition: border-color 0.2s ease;
}

.fanta-market-item:hover {
  border-color: rgba(236, 72, 153, 0.4);
}

.fanta-price-pill {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 12px;
  color: #facc15;
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.3);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.btn-fanta-add {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-fanta-remove {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-weight: 700;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}


