/**
 * QARDOUCH - ULTRA-PREMIUM MOBILE-FIRST DESIGN SYSTEM 🇲🇦🦁✨
 * Theme: Moroccan Emerald Green (#064e3b), Royal Gold (#eab308), Urgent Crimson (#e11d48)
 * Glassmorphism, 60fps Micro-interactions, Luxury Stadium Atmosphere, Safe Ad Zones >= 28px
 */

:root {
  /* Core Moroccan Palette */
  --primary-green-dark: #022c16;
  --primary-green: #064e3b;
  --primary-green-vibrant: #059669;
  --primary-green-light: #10b981;
  --primary-green-bg: #ecfdf5;
  --primary-green-glow: rgba(16, 185, 129, 0.35);

  --secondary-gold-dark: #b45309;
  --secondary-gold: #eab308;
  --secondary-gold-rich: #f59e0b;
  --secondary-gold-light: #fef08a;
  --secondary-gold-glow: rgba(245, 158, 11, 0.4);

  --urgent-red: #e11d48;
  --urgent-red-dark: #9f1239;
  --urgent-red-light: #ffe4e6;
  --urgent-red-glow: rgba(225, 29, 72, 0.35);

  /* Neutrals & Surfaces */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --card-bg: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.9);
  --app-bg: #f8fafc;
  --border-subtle: #e2e8f0;
  --border-gold: rgba(234, 179, 8, 0.35);

  /* Elevation & Geometry */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-card-hover: 0 20px 30px -10px rgba(0, 0, 0, 0.1), 0 0 20px rgba(16, 185, 129, 0.12);
  --shadow-gold: 0 8px 20px -4px rgba(234, 179, 8, 0.45);
  --shadow-green: 0 8px 20px -4px rgba(6, 78, 59, 0.4);

  --header-height: 68px;
  --bottom-nav-height: 72px;
  --font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* BASE RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: var(--font-family);
  direction: rtl;
  text-align: right;
  background: #021309;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(5, 150, 105, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 20% 60%, rgba(234, 179, 8, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(6, 78, 59, 0.3) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.55;
  user-select: none;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #021309;
}
::-webkit-scrollbar-thumb {
  background: var(--primary-green-vibrant);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-gold);
}

/* LUXURY MOBILE FRAME FOR ALL SCREENS */
.mobile-app-wrapper {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--app-bg);
  position: relative;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 25px 60px -15px rgba(0, 0, 0, 0.8),
    0 0 45px rgba(16, 185, 129, 0.15);
  padding-top: calc(var(--header-height) + 72px);
  padding-bottom: calc(var(--bottom-nav-height) + 85px);
  transition: box-shadow 0.3s ease;
}

@media (min-width: 500px) {
  body {
    padding: 20px 0;
  }
  .mobile-app-wrapper {
    border-radius: 36px;
    overflow: hidden;
    min-height: calc(100vh - 40px);
  }
}

/* 1. ULTRA-SLEEK GLASS HEADER */
.app-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--header-height);
  background: rgba(4, 47, 34, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  border-bottom: 1.5px solid rgba(234, 179, 8, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

@media (min-width: 500px) {
  .app-header {
    top: 20px;
    border-top-left-radius: 36px;
    border-top-right-radius: 36px;
  }
}

.header-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-user-badge:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.15);
}

.header-avatar-container {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #10b981 0%, #064e3b 100%);
  border: 2px solid var(--secondary-gold);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.4);
  position: relative;
  transition: transform 0.25s ease;
}

.header-avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-user-text {
  display: flex;
  flex-direction: column;
}

.header-username-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-level-pill {
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  color: #78350f;
  padding: 1px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  width: fit-content;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Points Wallet Pill */
.points-wallet-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2) 0%, rgba(202, 138, 4, 0.1) 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.6);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 900;
  color: #fef08a;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.25);
  cursor: pointer;
  transition: all 0.25s ease;
}

.points-wallet-pill:active {
  transform: scale(0.95);
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.6);
}

.coin-icon {
  font-size: 16px;
  display: inline-block;
  animation: coinFloat 3s ease-in-out infinite;
}

@keyframes coinFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(8deg); }
}

.btn-header-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-header-icon:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.2);
}

/* 2. SPONSORED AD CARDS (Strict Safe Zone >= 28px) */
.ad-banner-container {
  margin: 28px 16px;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--radius-md);
  border: 1.5px dashed #cbd5e1;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.ad-banner-container:hover {
  border-color: var(--secondary-gold);
}

.ad-badge-label {
  position: absolute;
  top: -11px;
  left: 16px;
  background: #475569;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.ad-content-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ad-sponsor-info {
  display: flex;
  flex-direction: column;
}

.ad-sponsor-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.ad-sponsor-desc {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.35;
  margin-top: 2px;
}

.ad-cta-btn {
  background: linear-gradient(135deg, var(--primary-green) 0%, #047857 100%);
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(6, 78, 59, 0.25);
  transition: all 0.2s ease;
}

.ad-cta-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 6px rgba(6, 78, 59, 0.2);
}

/* 3. APP SECTIONS & VIEWS */
.app-section-view {
  display: none;
  padding: 16px;
  animation: viewFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.app-section-view.active {
  display: block;
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 4. CARDS & ELEVATION */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(16, 185, 129, 0.3);
}

/* 5. MASCOT HERO & GUIDED BANNER */
.section-guide-banner {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.08);
  position: relative;
  overflow: hidden;
}

.section-guide-banner::after {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.guide-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2.5px solid #059669;
  object-fit: cover;
  flex-shrink: 0;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  animation: mascotPulse 4s ease-in-out infinite;
}

@keyframes mascotPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.04) rotate(-3deg); }
}

.guide-dialogue {
  flex: 1;
}

.guide-speaker-name {
  font-size: 11px;
  font-weight: 800;
  color: #047857;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
  margin-bottom: 3px;
}

.guide-speech-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #064e3b;
  line-height: 1.45;
}

/* 6. BUTTONS DESIGN SYSTEM */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.45);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(35deg) translateY(-100%);
  animation: sheen 3.5s ease-in-out infinite;
}

@keyframes sheen {
  0%, 60% { transform: rotate(35deg) translateY(-120%); }
  100% { transform: rotate(35deg) translateY(120%); }
}

.btn-secondary {
  background: #f1f5f9;
  color: #334155;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-danger {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: var(--radius-full);
}

.btn-disabled, .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.6);
}

/* 7. ULTRA-MODERN LIQUID GLASS BOTTOM NAVIGATION CAPSULE */
.bottom-navigation-bar {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 456px;
  height: 58px;
  background: rgba(3, 35, 20, 0.92);
  backdrop-filter: blur(28px) saturate(210%);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  border: 1.5px solid rgba(250, 204, 21, 0.32);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 6px;
  z-index: 100;
  box-shadow: 
    0 16px 36px rgba(0, 0, 0, 0.55),
    0 0 25px rgba(16, 185, 129, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
  position: fixed;
}

.nav-floating-dot {
  position: absolute;
  bottom: 4px;
  left: 20px;
  width: 8px;
  height: 3.5px;
  background: #facc15;
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px #facc15, 0 0 14px rgba(250, 204, 21, 0.8);
  transition: left 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 10;
}

.bottom-nav-item {
  background: transparent;
  border: none;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 6px 6px;
  border-radius: 20px;
  cursor: pointer;
  flex: 1;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-family);
  position: relative;
  user-select: none;
}

.bottom-nav-item .nav-icon {
  font-size: 19px;
  line-height: 1.1;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav-item .nav-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #94a3b8;
  transition: color 0.2s ease, transform 0.2s ease;
  margin-top: 1px;
}

.bottom-nav-item.active {
  color: #fef08a;
}

.bottom-nav-item.active .nav-icon {
  transform: translateY(-2px) scale(1.16);
}

.bottom-nav-item.active .nav-label {
  color: #fef08a;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(254, 240, 138, 0.5);
}

/* 8. FIXED BOTTOM ANCHOR AD (Above Bottom Nav) */
.anchor-ad-bottom {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 20px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 456px;
  z-index: 90;
}

.anchor-ad-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.4);
}

/* 9. TOAST NOTIFICATIONS */
.toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  z-index: 1000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: toastPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

@keyframes toastPop {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast.toast-success {
  background: #064e3b;
  color: #ecfdf5;
  border: 1px solid #10b981;
}

.toast.toast-error {
  background: #9f1239;
  color: #fff1f2;
  border: 1px solid #f43f5e;
}

.toast.toast-info {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #475569;
}

/* 10. MODAL DIALOGS WITH MODERN MOTION */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 19, 9, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(234, 179, 8, 0.3);
  transform: scale(0.92) translateY(14px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-green);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--urgent-red);
}

.modal-body {
  padding: 20px;
}

/* 11. CONFETTI CANVAS OVERLAY */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ==========================================================================
   12. PERSISTENT LEVEL & XP PROGRESS DOCK (Always visible 12/250)
   ========================================================================== */
.persistent-level-dock {
  position: fixed;
  top: var(--header-height);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(3, 38, 22, 0.95);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border-bottom: 1.5px solid rgba(234, 179, 8, 0.35);
  padding: 5px 14px 6px;
  z-index: 99;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

@media (min-width: 500px) {
  .persistent-level-dock {
    top: calc(20px + var(--header-height));
  }
}

.level-dock-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.level-dock-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1.5px solid #fef08a;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  flex-shrink: 0;
}

.level-dock-shield {
  font-size: 14px;
}

.level-dock-lvl-text {
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
}

.level-dock-progress-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.level-dock-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.level-dock-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #a7f3d0;
  letter-spacing: 0.3px;
}

.level-dock-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
}

.level-dock-numbers strong {
  color: #fef08a;
  letter-spacing: 0.5px;
}

.dock-xp-pct {
  font-size: 10px;
  color: #34d399;
  font-weight: 700;
}

.level-dock-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.level-dock-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #059669 0%, #10b981 50%, #facc15 100%);
  border-radius: var(--radius-full);
  position: relative;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-bar-sheen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  animation: barShimmer 2.5s infinite;
}

@keyframes barShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.level-dock-subtext {
  font-size: 9.5px;
  color: #fde68a;
  font-weight: 700;
  margin-top: 3px;
  line-height: 1;
}

/* 3D GOLDEN COIN STYLES */
.gold-coin-header {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  animation: coinGlow 3s ease-in-out infinite;
}

@keyframes coinGlow {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)); }
  50% { transform: scale(1.08) rotate(6deg); filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.8)); }
}

.gold-coin-inline {
  width: 17px;
  height: 17px;
  display: inline-block;
  vertical-align: -2.5px;
  margin: 0 2px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.coin-mini {
  width: 13px;
  height: 13px;
  display: inline-block;
  vertical-align: -1.5px;
  margin-left: 2px;
}


/* Country Logo on Profile Avatar Badge */
.header-avatar-container {
  position: relative;
  overflow: visible !important;
}

.country-flag-badge {
  position: absolute;
  bottom: -3px;
  left: -3px;
  width: 16px;
  height: 18px;
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.country-flag-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.header-username-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.country-logo-inline {
  width: 14px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.profile-avatar-large-wrap {
  position: relative;
  overflow: visible !important;
}

.profile-country-badge {
  position: absolute;
  bottom: 0px;
  left: 6px;
  width: 26px;
  height: 29px;
  z-index: 10;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
}

.profile-country-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.header-avatar-container img,
.profile-avatar-large-wrap img {
  border-radius: 50% !important;
  object-fit: cover !important;
}
