/* ============================================================
   PORSEROSI ID Atlet Evolution — "STADIUM" Design System
   Hyper-Athletic • Immersive • Cyber-Stadium
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&family=Be+Vietnam+Pro:wght@100..900&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Colors */
  --stadium-bg: #111415;
  --stadium-green: #0055ff;
  --stadium-green-glow: rgba(0,85,255,0.4);
  --stadium-pink: #ff4f72;
  --stadium-pink-glow: rgba(255,79,114,0.3);
  --stadium-blue: #2626ff;
  --stadium-gold: #FFD700;
  --stadium-gold-low: rgba(255,215,0,0.15);
  
  --surface: #1d2021;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-dark: rgba(0, 0, 0, 0.4);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-strong: rgba(255, 255, 255, 0.3);
  --panel-bg: rgba(17, 20, 21, 0.85);
  --glass-blur: blur(40px);
  
  --white: #ffffff;
  --on-surface: #e1e3e4;
  --text-muted: #849584;
  
  /* Dimensions */
  --radius-xl: 1.5rem; /* 24px */
  --radius-lg: 0.75rem; /* 12px */
  --radius-full: 9999px;
  
  --header-h: 72px;
  --nav-h: 56px;
}

body.light-theme {
  --stadium-bg: #F5F7FA;
  --surface: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-dark: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-strong: rgba(0, 0, 0, 0.15);
  --panel-bg: rgba(255, 255, 255, 0.95);
  --white: #111415;
  --on-surface: #111415;
  --text-muted: rgba(0, 0, 0, 0.5);
  --nav-icon-color: #444444;
}

:root {
  --nav-icon-color: #ffffff;
}

/* Verified Badge */
.verified-stamp {
  background: linear-gradient(135deg, #0055ff 0%, #0033cc 100%);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0,85,255,0.3);
}
.verified-stamp span { font-size: 10px; }

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
html {
  background: var(--stadium-bg);
}

body {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  background: var(--stadium-bg);
  color: var(--on-surface);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.font-headline { font-family: 'Lexend', sans-serif; }

img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* ── Utilities ──────────────────────────────────────────── */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-panel {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

.skew-x-custom {
  display: inline-block;
  transform: skewX(-10deg);
}

.neon-glow {
  /* Glow removed */
}

.neon-text {
  color: var(--stadium-green);
}

.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-tighter { letter-spacing: -0.04em; }
.drop-shadow-lg { filter: drop-shadow(0 0 8px var(--stadium-green-glow)); }

/* WhatsApp Style Texture */
.wa-texture {
  background-color: var(--stadium-bg);
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2382CAFF' fill-opacity='0.08' fill-rule='evenodd'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 4c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28 84c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm14-26c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zM34 33c0 4.418 3.582 8 8 8s8-3.582 8-8-3.582-8-8-8-8 3.582-8 8zm-3-11c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM15 65c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm65-45c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM68 20c0 4.418 3.582 8 8 8s8-3.582 8-8-3.582-8-8-8-8 3.582-8 8zM11 11c0 4.418 3.582 8 8 8s8-3.582 8-8-3.582-8-8-8-8 3.582-8 8z' /%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
}

.page {
  min-height: calc(100vh - var(--header-h) - var(--nav-h));
  padding: 0;
}

/* Spacing Utilities */
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }

/* Event Spotlight Slide Down */
.event-spotlight {
  max-height: 0;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  margin-bottom: 0;
}

.event-spotlight.show {
  max-height: 600px;
  opacity: 1;
  margin-bottom: 20px;
  padding-top: 0px;
}

/* Horizontal Spotlight Track */
.spotlight-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 12px;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}
.spotlight-track::-webkit-scrollbar { display: none; }

.event-featured-card {
  min-width: 88%;
  scroll-snap-align: center;
  background: linear-gradient(135deg, var(--glass) 0%, transparent 100%);
  backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 14px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.event-featured-card .btn-daftar {
  background: transparent;
  color: var(--on-surface);
  font-weight: 900;
  padding: 10px 20px;
  border-radius: 12px;
  border: 2px solid var(--stadium-green);
  font-size: 10px;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 85, 255, 0.2);
  cursor: pointer;
  width: 100%;
  margin-top: 14px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.event-featured-card .btn-daftar:active {
  transform: scale(0.98);
  background: rgba(0, 85, 255, 0.1);
}

/* ── App Shell ──────────────────────────────────────────── */
#app { 
  display: flex; 
  flex-direction: column; 
  min-height: 100dvh; 
}

.immersive-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
}

.immersive-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: blur(2px);
  transform: scale(1.1);
}

.immersive-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--stadium-bg) 0%, rgba(17, 20, 21, 0) 100%);
}

/* Header */
.app-header {
  position: fixed; top: 0; left: 0;
  width: 100%; z-index: 100;
  height: var(--header-h);
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px;
}

.header-logo {
  font-family: 'Lexend', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--stadium-green);
  font-style: italic;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.profile-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--stadium-green);
  overflow: hidden;
}

/* Bottom Nav */
.bottom-nav-container {
  position: fixed;
  bottom: 5px;
  left: 0;
  width: 100%;
  padding: 0 10px;
  z-index: 100;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.bottom-nav-container.hide {
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}

.bottom-nav {
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--nav-icon-color);
  width: 40px; height: 40px;
  border-radius: 50%;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active {
  color: var(--stadium-green);
  transform: scale(1.1);
}

.nav-item span {
  font-family: 'Material Symbols Outlined' !important;
  font-size: 24px !important;
  -webkit-font-feature-settings: 'liga' !important;
  font-feature-settings: 'liga' !important;
  text-transform: none !important;
}

/* ── Typography ─────────────────────────────────────────── */
.h1 { font-family: 'Lexend'; font-size: 32px; font-weight: 900; line-height: 1.1; letter-spacing: -0.05em; }
.h2 { font-family: 'Lexend'; font-size: 24px; font-weight: 800; line-height: 1.2; }
.label { font-family: 'Lexend'; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* ── Stats Grid & Matrix ────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.stat-card-main {
  grid-column: span 8;
  height: 240px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.stat-card-small {
  grid-column: span 4;
  height: 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-mini-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.matrix-card {
  margin-top: 24px;
  padding: 32px;
}

.matrix-bar-group { margin-bottom: 24px; }
.matrix-label { display: flex; justify-content: space-between; font-size: 10px; font-weight: 800; margin-bottom: 8px; color: var(--text-muted); }
.matrix-track { height: 6px; background: #2d3031; border-radius: 3px; overflow: hidden; }
.matrix-fill { height: 100%; border-radius: 3px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: 'Lexend', sans-serif;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--stadium-green);
  color: #ffffff;
}

.btn-outline {
  background: var(--glass);
  border: 1px solid var(--glass-border-strong);
  color: var(--white);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  background: var(--glass-dark);
  border-color: var(--glass-border-strong);
}

.btn-stadium {
  background: var(--stadium-green);
  color: #ffffff;
  border-radius: var(--radius-full);
  padding: 16px 32px;
  font-weight: 900;
  text-transform: uppercase;
  font-family: 'Lexend';
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
}
.btn-stadium:active { transform: scale(0.96); }

.btn-stadium.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border-strong);
  color: var(--on-surface);
}

.btn-stadium.btn-outline:hover {
  background: var(--glass);
  border-color: var(--stadium-green);
}

.stadium-input-pill {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--glass-border-strong);
  padding: 16px 24px;
  border-radius: var(--radius-full);
  color: var(--on-surface);
  font-family: inherit;
  outline: none;
  font-size: 13px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.stadium-input-pill:focus {
  border-color: var(--stadium-green);
  background: rgba(0,85,255,0.05);
  box-shadow: 0 0 20px rgba(0,85,255,0.1);
}

.stadium-input-pill::placeholder {
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
}

/* ── News Feed (Professional News Style) ────────────────── */
.news-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.news-hero:hover {
  transform: translateY(-4px);
  border-color: rgba(0,255,133,0.35);
  box-shadow: 0 15px 35px rgba(0,255,133,0.15);
}
.news-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-hero:hover img {
  transform: scale(1.03);
}
.news-hero .news-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 20px 14px 20px;
  background: linear-gradient(to top, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.8) 45%, rgba(10,10,15,0.3) 75%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.news-hero .news-hero-title {
  font-family: 'Lexend', sans-serif;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 8px;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.news-hero .news-hero-meta {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
  font-weight: 700;
}
 
.news-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--glass-border);
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-item:hover {
  background: rgba(255,255,255,0.03);
  padding-left: 12px;
  border-color: rgba(255,255,255,0.1);
}
.news-item:active { opacity: 0.7; }
.news-item:last-child { border-bottom: none; }
 
.news-item-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.news-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-item-body {
  flex: 1;
  min-width: 0;
}
.news-item-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 4px;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item-meta {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.rank-row-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.2s;
}
.rank-row-compact:active { background: var(--glass-border); }

.btn-fab {
  position: absolute;
  bottom: 100px;
  right: 10px;
  width: 64px; height: 64px;
  background: var(--stadium-green);
  color: #111415;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  transform: skewX(-10deg);
  transition: transform 0.2s;
}

.btn-fab:active { transform: skewX(-10deg) scale(0.9); }

/* ── Rank Filters (Pill Menu) ───────────────────────────── */
.rank-filter {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 12px 4px;
  margin: 0 -10px;
}
.rank-filter::-webkit-scrollbar { display: none; }

.rank-filter button {
  padding: 8px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--on-surface);
  font-family: 'Lexend';
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  opacity: 0.6;
}

.rank-filter button.active {
  background: transparent;
  color: var(--on-surface);
  border: 2px solid var(--stadium-green);
  box-shadow: 0 0 15px rgba(0, 85, 255, 0.2);
  transform: scale(1.05);
  margin: 0 2px;
  opacity: 1;
}

/* ── Animations ─────────────────────────────────────────── */
/* ── Photorealistic iPhone 17 Air Mockup ───────────────────── */
.device-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  min-height: 100vh;
  background: radial-gradient(circle at center, #2c2e30 0%, #000000 100%);
}

.device-frame {
  --phone-w: 393px;
  --phone-h: 852px;
  width: var(--phone-w);
  height: var(--phone-h);
  background: #000;
  border-radius: 56px;
  padding: 10px;
  position: relative;
  box-shadow: 
    0 0 0 2px #d1d1d6,
    0 0 0 6px #f2f2f7,
    0 0 0 8px #d1d1d6,
    0 30px 60px rgba(0,0,0,0.15);
  margin: auto;
  /* Automatic scaling to fit any screen height */
  transform: scale(calc(min(0.9, (90vh / 852))));
  transform-origin: center center;
}

.device-screen {
  width: 100%;
  height: 100%;
  background: var(--stadium-bg);
  border-radius: 46px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Virtual Status Bar */
.status-bar {
  height: 44px;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  z-index: 210;
  position: absolute;
  top: 0; left: 0; right: 0;
}

.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: rgba(255,255,255,0.3);
  border-radius: 10px;
  z-index: 210;
}

.device-notch {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 200;
  box-shadow: inset 0 0 1px rgba(255,255,255,0.2);
}

/* Speaker detail inside notch */
.device-notch::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 2px;
  background: #111;
  border-radius: 2px;
}

.device-screen #app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
  padding: 10px;
  padding-top: calc(var(--header-h) + 10px);
  padding-bottom: 80px;
  width: 100%;
  overflow: visible;
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.app-main::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.immersive-bg {
  position: absolute;
  inset: 0;
  z-index: -10;
  overflow: hidden;
}

/* Fix for immersive backgrounds inside absolute main */
.immersive-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

@keyframes stadium-fade-up {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes stadium-pulse {
  0% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.05); opacity: 0.6; }
  100% { transform: scale(1); opacity: 0.4; }
}

/* ── Specific Overrides for PORSEROSI logic ─────────────── */
.stories-container { margin: 0 -10px; padding: 0 10px; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
.stories-container::-webkit-scrollbar { display: none; }
.stories-track { display: flex; gap: 16px; padding: 16px 0; }
.story-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  width: 80px;
}
.story-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid var(--glass-border); padding: 4px;
  transition: all 0.3s;
}
.story-card.active .story-avatar { border-color: var(--stadium-green); }
.story-avatar-inner { width: 100%; height: 100%; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 28px; }

/* ID CARD — STADIUM VERSION */
.stadium-id-card {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--stadium-green);
  color: #111415;
  border-radius: 100px;
  font-weight: 800;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: stadium-pulse 2s infinite;
}

.id-qr-box {
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
}

.id-qr-image {
  background: white;
  padding: 8px;
  border-radius: 8px;
  width: 80px; height: 80px;
}

/* Spinner */
.spinner {
  width: 24px; height: 24px;
  border: 2px solid rgba(0,255,133,0.2);
  border-top-color: var(--stadium-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- ADMIN COMMAND CENTER STYLES --- */
.module-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.toggle-switch {
  width: 48px;
  height: 24px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--glass-border);
}

.switch-ui {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

#reg-toggle:checked + .switch-ui {
  left: 26px;
  background: var(--stadium-green);
  box-shadow: 0 0 10px var(--stadium-green);
}

.btn-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

/* -- News Interaction -------------------------- */
.news-post { cursor: pointer; transition: transform 0.2s; }
.news-post:active { transform: scale(0.98); }
.article-content { word-break: break-word; overflow-wrap: break-word; }
.article-content img { border-radius: 12px; margin: 16px 0; max-width: 100% !important; height: auto !important; object-fit: contain; }
.article-content p { margin-bottom: 24px; color: var(--on-surface) !important; }
.article-content span { color: var(--on-surface) !important; }
.article-content h1, .article-content h2, .article-content h3 { margin: 32px 0 16px; color: var(--on-surface) !important; line-height: 1.2; }
.article-content ul, .article-content ol { margin: 20px 0; padding-left: 24px; }
.article-content li { margin-bottom: 12px; }
.article-content blockquote { border-left: 4px solid var(--stadium-green); padding-left: 16px; font-style: italic; color: var(--text-muted); margin: 24px 0; }


/* -- Spacing Utilities -------------------------- */
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }
.p-32 { padding: 32px; }
.p-40 { padding: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }


/* -- Layout Utilities -------------------------- */
.overflow-y-auto { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.flex-1 { flex: 1; }

/* ── Toast System ───────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 32px;
  left: 10px;
  right: 10px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 16px 20px;
  border-radius: 20px;
  color: var(--on-surface);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  transform: translateY(-40px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: auto;
}

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

.toast.success { border-left: 4px solid var(--stadium-green); }
.toast.error   { border-left: 4px solid var(--stadium-pink); }
.toast.info    { border-left: 4px solid var(--stadium-blue); }

.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.toast.success .toast-icon { background: var(--stadium-green); color: black; }
.toast.error   .toast-icon { background: var(--stadium-pink); color: white; }
.toast.info    .toast-icon { background: var(--stadium-blue); color: black; }


/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.input-group select {
  width: 100%;
  height: 48px;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--white);
  padding: 0 16px;
  font-family: inherit;
  font-size: 14px;
}

.input-group select option {
  background: #1a1d1e;
  color: #ffffff;
}

/* ── Stadium Dark Select — for coach/manager category picker ── */
.stadium-select-dark {
  appearance: auto;
  -webkit-appearance: auto;
  width: 100%;
  height: 48px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: #ffffff;
  padding: 0 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.stadium-select-dark:focus {
  border-color: var(--stadium-green);
}

/* Force dark text on options so they are visible on white system popup */
.stadium-select-dark option {
  background-color: #1a1d1e !important;
  color: #ffffff !important;
}

/* ── Live Event Hub ─────────────────────────────────────── */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 79, 114, 0.15);
  border: 1px solid var(--stadium-pink);
  color: var(--stadium-pink);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
}

.live-indicator.pulse {
  animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 79, 114, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 79, 114, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 79, 114, 0); }
}

.rank-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lexend';
  font-size: 12px;
  font-weight: 900;
  color: var(--text-muted);
}

.rank-circle.top-1 { background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%); color: #000; box-shadow: 0 0 15px rgba(255, 215, 0, 0.3); }
.rank-circle.top-2 { background: linear-gradient(135deg, #c0c0c0 0%, #808080 100%); color: #000; }
.rank-circle.top-3 { background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%); color: #000; }

/* Responsive Live Hub */
@media (max-width: 480px) {
  .live-event-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
  }
  
  .rank-table-header th {
    padding: 12px 8px !important;
    font-size: 8px !important;
  }
  
  .rank-row-cell {
    padding: 12px 8px !important;
  }
  
  .rank-circle {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  
  .athlete-name {
    font-size: 11px !important;
  }
  
  .athlete-meta {
    font-size: 8px !important;
  }
  
  .live-score {
    font-size: 16px !important;
  }
}

/* ============================================================
   PORSEROSI ID Atlet — DESKTOP ADAPTIVE SHELL
   ============================================================ */

/* Hide by default on Mobile/Tablet */
#desktop-header, #desktop-sidebar {
  display: none !important;
}

/* Desktop Widescreen Layout Configuration */
@media (min-width: 1024px) {
  /* Hide Mobile Shell Elements */
  .app-header, .bottom-nav-container, .btn-fab {
    display: none !important;
  }

  /* Show Desktop Shell Elements */
  #desktop-header {
    display: flex !important;
  }
  #desktop-sidebar {
    display: flex !important;
  }

  /* Main Widescreen Grid Shell Setup */
  #app {
    display: grid !important;
    grid-template-rows: 72px 1fr !important;
    grid-template-columns: 260px 1fr !important;
    grid-template-areas: 
      "header header"
      "sidebar main" !important;
    height: 100vh !important;
    width: 100vw !important;
    overflow: hidden !important;
  }

  /* 1. Desktop Horizontal Header Bar */
  #desktop-header {
    grid-area: header;
    height: 72px;
    background: var(--stadium-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: relative;
    z-index: 200;
  }

  #desktop-header .header-logo {
    font-family: 'Lexend', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--stadium-green) !important; /* Electric Blue #0055ff */
    font-style: italic;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    cursor: pointer;
  }


  /* Search Bar */
  .desktop-search-container {
    position: relative;
    display: flex;
    align-items: center;
  }

  .desktop-search-container .search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 18px;
    pointer-events: none;
  }

  .desktop-search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 8px 16px 8px 36px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    outline: none;
    width: 180px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .desktop-search-input:focus {
    width: 240px;
    border-color: var(--stadium-green);
    background: rgba(0, 85, 255, 0.04);
    box-shadow: 0 0 15px rgba(0, 85, 255, 0.1);
  }

  .desktop-search-input::placeholder {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
  }

  /* Header Icons */
  .header-icon-btn {
    color: var(--white);
    opacity: 0.7;
    cursor: pointer;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.2s;
  }

  .header-icon-btn:hover {
    opacity: 1;
    transform: scale(1.05);
  }

  .notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 6px;
    height: 6px;
    background: var(--stadium-pink);
    border-radius: 50%;
  }

  /* 2. Desktop Left Sidebar Navigation */
  #desktop-sidebar {
    grid-area: sidebar;
    height: calc(100vh - 72px);
    background: var(--stadium-bg);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: relative;
    z-index: 150;
  }

  .desktop-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .desktop-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    color: var(--on-surface);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.65;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
  }

  .desktop-nav-item span {
    font-size: 20px;
    transition: color 0.3s;
  }

  .desktop-nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    opacity: 0.95;
    padding-left: 22px;
  }

  .desktop-nav-item.active {
    background: rgba(0, 85, 255, 0.06) !important;
    color: #fff !important;
    opacity: 1 !important;
    border-left: 3px solid var(--stadium-green);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding-left: 20px;
  }

  .desktop-nav-item.active span {
    color: var(--stadium-green) !important;
  }

  /* 3. Main Content Scroll Area */
  .app-main {
    grid-area: main;
    height: calc(100vh - 72px) !important;
    overflow-y: auto !important;
    padding: 32px 40px !important;
    margin-top: 0 !important;
    position: relative;
  }

  .app-main::-webkit-scrollbar {
    width: 8px;
  }
  .app-main::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
  }
  .app-main::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
  }
  .app-main::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.15);
  }

  /* 4. Adaptive Grid Helpers for Flat Views (Clean Layout) */
  .desktop-split-view {
    display: grid !important;
    grid-template-columns: 1fr 360px !important;
    gap: 36px !important;
    align-items: start;
    width: 100%;
  }

  .desktop-center-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .desktop-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  /* Event Grid overrides for wide screens */
  .desktop-events-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }

  /* Adaptive ID Card Widescreen layout overrides */
  .app-main > .page[style*="margin:-24px"] {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    min-height: auto !important;
    display: grid !important;
    grid-template-columns: 320px 1fr !important;
    gap: 40px !important;
    align-items: start !important;
    text-align: left !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Hide raw mobile banner/cover containers on desktop to keep it clean */
  .app-main > .page[style*="margin:-24px"] #id-cover-display,
  .app-main > .page[style*="margin:-24px"] div[style*="aspect-ratio:4/5"] {
    display: none !important;
  }

  /* Rearrange profile badge stack to left column */
  .app-main > .page[style*="margin:-24px"] div[style*="margin-top:-140px"] {
    margin-top: 0 !important;
    padding: 0 !important;
    grid-column: 1 / 2;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px;
  }

  /* Rearrange info grid and certificates to right column */
  .app-main > .page[style*="margin:-24px"] div[style*="margin-top:-140px"] > div[style*="display:grid"] {
    grid-column: 2 / 3;
    margin-top: 0 !important;
    width: 100% !important;
  }

  .app-main > .page[style*="margin:-24px"] div[style*="margin-top:-140px"] > div:not([style*="display:grid"]) {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Adjust spacing of actions overlay on desktop */
  .app-main > .page[style*="margin:-24px"] div[style*="position:absolute; top:40px"] {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px;
    margin-bottom: 16px;
    z-index: 10;
  }

  /* ==========================================================================
     NEW: INASKATE WIDESCREEN EXECUTIVE PORTAL (4-COLUMN GRID SPEC)
     ========================================================================== */


  /* 4-Column Widescreen Layout Grid */
  .desktop-split-view-4col {
    display: grid !important;
    grid-template-columns: 280px 1.05fr 1.05fr 330px !important;
    gap: 20px !important;
    align-items: start !important;
    width: 100% !important;
    min-height: auto !important;
    box-sizing: border-box !important;
  }

  .desktop-split-view-4col > div {
    min-width: 0 !important; /* Prevents layout overflows */
  }

  /* Elegant Thin-border Panels (Carbon Base) */
  .flat-glass-panel {
    background: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5) !important;
    box-sizing: border-box !important;
  }

  /* Neon Section Title Header Blocks */
  .section-title-neon {
    margin-bottom: 20px !important;
    font-family: 'Outfit', sans-serif !important;
    text-transform: uppercase !important;
  }

  .section-title-neon .subtitle {
    display: block !important;
    font-size: 9px !important;
    letter-spacing: 0.18em !important;
    color: var(--text-muted) !important;
    font-weight: 800 !important;
    margin-bottom: 4px !important;
  }

  .section-title-neon .title {
    font-size: 21px !important;
    font-weight: 950 !important;
    font-style: italic !important;
    color: var(--white) !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
  }

  .section-title-neon .title span {
    color: var(--stadium-blue) !important;
  }

  /* Promo Gear Banners on Top */
  .promo-banner-container {
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-bottom: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
  }

  .promo-banner-container:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(0, 85, 255, 0.15) !important;
  }

  .promo-banner-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    display: block !important;
  }

  .leaderboard-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-bottom: 12px !important;
  }

  .tab-btn {
    font-size: 9px !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 30px !important;
    padding: 8px 10px !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .tab-btn:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--white) !important;
  }

  .tab-btn.active {
    background: rgba(0, 85, 255, 0.16) !important;
    border-color: var(--stadium-blue) !important;
    color: var(--white) !important;
  }

  /* List Item Specifics (Widescreen optimized) */
  .desktop-event-item {
    display: flex !important;
    flex-direction: column !important;
    background: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    padding: 14px !important;
    margin-bottom: 12px !important;
    transition: all 0.25s ease !important;
  }

  .desktop-event-item:hover {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(0, 85, 255, 0.25) !important;
  }

  .desktop-event-item-top {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
    margin-bottom: 12px !important;
  }

  .desktop-event-item-thumb {
    width: 48px !important;
    height: 48px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .desktop-event-item-info {
    flex-grow: 1 !important;
    min-width: 0 !important;
  }

  .desktop-event-item-title {
    font-weight: 800 !important;
    font-size: 11px !important;
    color: var(--white) !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }

  .desktop-event-item-meta {
    font-size: 8px !important;
    color: var(--text-muted) !important;
    font-weight: 700 !important;
  }

  .desktop-event-item-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
    padding-top: 8px !important;
  }

  .desktop-event-item-price {
    font-size: 10px !important;
    font-weight: 900 !important;
    color: var(--stadium-blue) !important;
  }

  .desktop-event-item-btn {
    font-size: 8px !important;
    font-weight: 900 !important;
    background: transparent !important;
    border: 1px solid var(--stadium-blue) !important;
    color: var(--stadium-blue) !important;
    padding: 5px 11px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s ease !important;
  }

  .desktop-event-item-btn:hover {
    background: rgba(4, 245, 255, 0.08) !important;
    color: var(--white) !important;
    border-color: var(--white) !important;
    transform: translateY(-1px) !important;
  }

  /* Tall Portrait ID Card Inside Column 1 */
  .desktop-tall-id-card {
    position: relative !important;
    background: rgba(255, 255, 255, 0.01) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .desktop-tall-id-header {
    width: 100% !important;
    aspect-ratio: 4/5 !important;
    height: auto !important;
    position: relative !important;
    overflow: visible !important;
  }

  .desktop-tall-id-header img.cover {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  .desktop-tall-id-header .overlay-gradient {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to bottom, transparent 30%, rgba(17,20,21,0.5) 60%, #111415 100%) !important;
  }

  .desktop-tall-id-avatar-circle {
    position: absolute !important;
    bottom: -35px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important;
    border: 3px solid var(--stadium-blue) !important;
    box-shadow: 0 0 25px rgba(0, 85, 255, 0.5) !important;
    overflow: hidden !important;
    z-index: 5 !important;
    background: #111415 !important;
  }

  .desktop-tall-id-avatar-circle img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .desktop-tall-id-body {
    padding: 45px 16px 20px 16px !important;
    text-align: center !important;
  }

  .desktop-tall-id-name {
    font-size: 16px !important;
    font-weight: 950 !important;
    font-style: italic !important;
    text-transform: uppercase !important;
    color: var(--white) !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 4px !important;
  }

  .desktop-tall-id-sub {
    font-size: 7px !important;
    font-weight: 800 !important;
    color: var(--stadium-blue) !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin-bottom: 16px !important;
  }

  .desktop-tall-id-points-box {
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    padding: 16px 0 !important;
    margin-bottom: 16px !important;
  }

  .desktop-tall-id-points-title {
    font-size: 8px !important;
    font-weight: 800 !important;
    color: var(--text-muted) !important;
    letter-spacing: 1px !important;
    margin-bottom: 2px !important;
  }

  .desktop-tall-id-points-category {
    font-size: 8px !important;
    font-weight: 900 !important;
    color: var(--stadium-blue) !important;
    letter-spacing: 0.5px !important;
  }

  .desktop-tall-id-points-rank {
    font-size: 64px !important;
    font-weight: 950 !important;
    font-style: italic !important;
    color: var(--stadium-blue) !important;
    line-height: 1 !important;
    margin: 8px 0 !important;
    font-family: 'Outfit', sans-serif !important;
  }

  .desktop-tall-id-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .desktop-tall-id-nik {
    font-size: 9px !important;
    font-weight: 800 !important;
    color: var(--white) !important;
    letter-spacing: 1px !important;
    margin-bottom: 10px !important;
  }

  .desktop-tall-id-qr {
    background: #fff !important;
    padding: 6px !important;
    border-radius: 8px !important;
    width: 90px !important;
    height: 90px !important;
    overflow: hidden !important;
    margin-bottom: 10px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
  }

  .desktop-tall-id-stamp {
    font-size: 7px !important;
    color: var(--stadium-blue) !important;
    letter-spacing: 1px !important;
    opacity: 0.65 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
  }

  .desktop-tall-id-history-box {
    margin-top: 16px !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    padding-top: 14px !important;
    text-align: left !important;
  }

  .desktop-tall-id-history-title {
    font-size: 8px !important;
    font-weight: 900 !important;
    color: var(--white) !important;
    letter-spacing: 1px !important;
    margin-bottom: 10px !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .desktop-tall-id-history-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
  }

  .desktop-tall-id-history-badge {
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background: rgba(0,85,255,0.15) !important;
    border: 1px solid var(--stadium-blue) !important;
    color: var(--white) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 7px !important;
    font-weight: 900 !important;
    font-style: italic !important;
    flex-shrink: 0 !important;
  }

  .desktop-tall-id-history-name {
    font-size: 8px !important;
    font-weight: 800 !important;
    color: var(--text-muted) !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }

  /* ==========================================================================
     ID Card Widescreen Command Hub Styles
     ========================================================================== */
  .id-card-mobile-layout {
    display: none !important;
  }

  .id-card-desktop-layout {
    display: flex !important;
    gap: 32px !important;
    width: 100% !important;
    align-items: flex-start !important;
    padding: 0 !important;
  }

  .desktop-card-col {
    width: 320px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
  }

  .desktop-data-col {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .desktop-tall-id-card {
    position: relative !important;
    width: 100% !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    background: var(--panel-bg) !important;
    border: 1px solid var(--glass-border) !important;
    backdrop-filter: blur(30px) !important;
  }

  .desktop-tall-id-header {
    width: 100% !important;
    aspect-ratio: 4/5 !important;
    position: relative !important;
    overflow: visible !important;
  }

  .desktop-tall-id-header .cover {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .desktop-tall-id-header .overlay-gradient {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to bottom, transparent 30%, rgba(17,20,21,0.5) 60%, #111415 100%) !important;
  }

  .desktop-tall-id-avatar-circle {
    width: 100px !important;
    height: 100px !important;
    border: 4px solid var(--stadium-blue) !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    position: absolute !important;
    bottom: -30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 5 !important;
    background: var(--stadium-bg) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
  }

  .desktop-tall-id-avatar-circle img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .desktop-tall-id-body {
    padding: 44px 20px 24px 20px !important;
    text-align: center !important;
  }

  .desktop-tall-id-name {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: var(--white) !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
    font-family: 'Lexend', sans-serif !important;
  }
}

/* ==========================================================================
   ID Card Mobile/Desktop Visibility Fallbacks
   ========================================================================== */
.id-card-mobile-layout {
  display: block;
}
.id-card-desktop-layout {
  display: none;
}

/* ==========================================================================
   Premium Centered Authentication Styles
   ========================================================================== */

/* 1. Global Auth Layout Override */
#app.auth-layout {
  display: block !important;
  grid-template-rows: none !important;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
  height: auto !important;
  width: auto !important;
  overflow: visible !important;
}

/* 2. Login Screen Centering Container */
.login-screen {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important; /* Allow scrollability on smaller screens */
  min-height: 100vh !important;
  min-height: 100dvh !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
}

/* 3. Floating Auth Container (Glassmorphic) */
.auth-container {
  position: relative !important;
  z-index: 10 !important;
  width: 100% !important;
  max-width: 440px !important;
  padding: 40px !important;
  margin: 40px 20px !important;
  border-radius: 24px !important;
  background: rgba(29, 32, 33, 0.45) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(30px) !important;
  -webkit-backdrop-filter: blur(30px) !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 
              0 0 50px rgba(0, 85, 255, 0.12) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Subtle border glowing effect on hover */
.auth-container:hover {
  border-color: rgba(0, 85, 255, 0.25) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 
              0 0 60px rgba(0, 85, 255, 0.18) !important;
}

/* Adjust signup container width constraints */
.auth-container.signup-wide {
  max-width: 520px !important;
}

/* 4. Widescreen Desktop Centering Alignment Trigger */
@media (min-width: 1024px) {
  .login-screen {
    justify-content: center !important; /* Perfect vertical & horizontal centering */
  }
}

/* 5. Mobile Adaptability Override */
@media (max-width: 480px) {
  .auth-container {
    margin: 0 !important;
    padding: 24px 16px !important;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
  }
}

/* 6. Prevent Double Glassmorphic Panels inside Auth Container */
.auth-container .glass-panel {
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Fail-safe Font Icon & Ligature Support for Material Symbols Outlined */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-weight: normal !important;
  font-style: normal !important;
  font-size: 24px !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  display: inline-block !important;
  white-space: nowrap !important;
  word-wrap: normal !important;
  direction: ltr !important;
  -webkit-font-feature-settings: 'liga' !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: optimizeLegibility !important;
  -moz-osx-font-smoothing: grayscale !important;
  font-feature-settings: 'liga' !important;
}

/* ==========================================================================
   Pull to Refresh & Quick Sync Button Styles
   ========================================================================== */
.ptr-container {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 98;
  pointer-events: none;
  transition: height 0.15s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.15s ease;
  opacity: 0;
}

.ptr-container.active {
  opacity: 1;
}

.ptr-capsule {
  background: rgba(17, 20, 21, 0.85);
  border: 1px solid var(--stadium-blue);
  box-shadow: 0 8px 32px rgba(0, 85, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 18px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(-20px) scale(0.9);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ptr-container.pulling .ptr-capsule {
  transform: translateY(0) scale(1);
}

.ptr-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 198, 255, 0.15);
  border-top-color: var(--stadium-blue);
  border-radius: 50%;
  animation: ptr-spin 0.8s linear infinite;
}

.ptr-text {
  font-family: 'Lexend', sans-serif;
  font-size: 9px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.header-sync-btn.spinning span {
  animation: ptr-spin 1s linear infinite !important;
  color: var(--stadium-blue) !important;
}

@keyframes ptr-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

