* { box-sizing: border-box; }
body {
  margin: 0;
  background: #f3f4f6;
  font-family: "Roboto Mono", monospace;
  color: #111827;
}
body.loading {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
}
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: radial-gradient(circle at 50% 36%, #ffffff 0, #f8fafc 42%, #eef2f7 100%);
  color: #111827;
  opacity: 1;
  visibility: visible;
  transition: opacity .22s ease, visibility .22s ease;
}
.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.home-splash-skip .loading-screen {
  display: none;
}
.home-splash-skip #mainContainer {
  opacity: 1 !important;
  visibility: visible !important;
}
.material-symbols-rounded,
.material-symbols-outlined {
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  overflow: hidden;
  flex-shrink: 0;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
}
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
}
.material-symbols-rounded,
.material-symbols-outlined {
  visibility: hidden;
}

html.fonts-ready .material-symbols-rounded,
html.fonts-ready .material-symbols-outlined {
  visibility: visible;
}
.loading-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 28px;
  letter-spacing: .08em;
  font-weight: 700;
}
.loading-brand strong { color: #ea580c; }
.loading-screen p {
  margin: 0;
  max-width: 260px;
  text-align: center;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}
.loading-bar {
  width: 156px;
  height: 4px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
.loading-bar span {
  display: block;
  width: 48%;
  height: 100%;
  border-radius: inherit;
  background: #ea580c;
  animation: splashBar 1s ease-in-out infinite;
}
@keyframes splashBar {
  0% { transform: translateX(-105%); }
  100% { transform: translateX(215%); }
}
.phone {
  width: 390px;
  min-height: 1659px;
  margin: 0 auto;
  background: #f3f4f6;
  position: relative;
  padding-bottom: 84px;
}
.topbar { display:flex; justify-content:space-between; align-items:center; padding:16px 14px 16px; }
.chip {
  border: 0; border-radius: 999px; background:#fff; height:32px; padding:0 12px; display:inline-flex; align-items:center; gap:8px;
  font-size:12px; font-weight:700; color:#1f2937;
}
.chip-pro .dot { width:8px; height:8px; border-radius:50%; background:#ea580c; }
.chip-pro { height: auto; min-height: 32px; padding: 6px 12px; align-items: center; }
.chip-pro-content { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1.1; }
.chip-pro-date { font-size: 10px; color: #6b7280; font-weight: 500; }
.subscription-plan-btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  pointer-events: none;
  filter: grayscale(.15);
}
.top-actions { display:flex; gap:12px; align-items:center; }
.chip-login { height:36px; color:#6b7280; font-weight:500; padding-left:3px; }
.avatar-mini { width:30px; height:30px; border-radius:50%; overflow:hidden; background:#f3f4f6; display:grid; place-items:center; font-size:14px; }
.avatar-mini-img { width:100%; height:100%; min-width:100%; min-height:100%; border-radius:50%; object-fit:cover; display:block; }
.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.05);
}
.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 87, 0, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,247,237,0.96));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff5700;
  box-shadow: 0 14px 30px rgba(255, 87, 0, 0.14), 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.icon-button:active { transform: scale(.96); }
.icon-button .dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: #ff5700;
  border: 1px solid #fff;
  border-radius: 999px;
}
.icon-12 { font-size:12px; }

.search-wrap { margin:0 14px 5px; background:#fff; border-radius:28px; height:51px; display:flex; align-items:center; padding:0 14px 0 16px; }
.search-wrap input { border:0; outline:0; flex:1; font:400 14px/18px "Roboto Mono", monospace; color:#111827; background:transparent; }
.search-wrap input::placeholder { color:#9ca3af; }
.search-wrap .material-symbols-rounded { color:#9ca3af; font-size:20px; }

.content { padding:0 14px; display:flex; flex-direction:column; gap:18px; }
.promo-carousel { margin-top: 2px; }
.promo-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.promo-track::-webkit-scrollbar { display: none; }
.promo-slide {
  min-width: 100%;
  scroll-snap-align: start;
  border-radius: 24px;
  padding: 18px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.promo-slide h3 { margin: 5px 0; font-size: 20px; line-height: 1.2; }
.promo-slide p { margin: 0; color: rgba(255, 255, 255, 0.86); font-size: 12px; line-height: 1.45; }
.promo-kicker { font-size: 10px; letter-spacing: .08em; font-weight: 700; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.promo-action {
  display: inline-flex;
  margin-top: 5px;
  height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}
.promo-action[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.promo-slide-ad { background: linear-gradient(135deg, #ea580c 0%, #f97316 58%, #fb923c 100%); }
.promo-slide-news { background: linear-gradient(135deg, #374151 0%, #1f2937 55%, #111827 100%); }
.promo-slide-ad-alt { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 60%, #1e3a8a 100%); }
.promo-dots { display: flex; justify-content: center; gap: 6px; margin-top: 5px; }
.promo-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d1d5db;
  transition: all .2s ease;
}
.promo-dot.active { width: 18px; background: #ea580c; }
.stats-row { display:flex; gap:12px; }
.dark-card { width:160px; height:160px; border-radius:24px; background:#373737; padding:16px; color:#fff; }
.kicker { margin:0; font-size:10px; line-height:15px; letter-spacing:.5px; color:#9ca3af; font-weight:700; }
.with-icon { display:flex; align-items:center; gap:4px; }
.with-icon .material-symbols-rounded { color:#ea580c; font-size:12px; }
.dark-card h3 { margin:4px 0 0; font-size:20px; line-height:28px; }
.sub { margin:0; color:#9ca3af; font-size:12px; line-height:16px; }
.progress-head { margin-top:40px; display:flex; justify-content:space-between; font-size:10px; color:#9ca3af; }
.progress-head b { color:#ea580c; }
.track { margin-top:4px; height:6px; border-radius:999px; background:rgba(255,255,255,.1); overflow:hidden; }
.track div { height:100%; background:#ea580c; border-radius:999px; }

.panel { border-radius:28px; background:#fff; padding:16px; }
.panel-head { display:flex; justify-content:space-between; align-items:flex-start; }
h2 { margin:0; font-size:18px; line-height:28px; }
.league .season { padding:4px 12px; border-radius:999px; background:#fff7ed; color:#ea580c; font-size:10px; font-weight:700; letter-spacing:1px; }
.top3 { display:flex; justify-content:space-between; margin:5px 0; }
.person-card { width:84px; text-align:center; }
.person-card strong { display:block; margin-top:5px; font-size:12px; line-height:16px; }
.person-card small { font-size:10px; color:#ea580c; font-weight:700; }
.winner { width:96px; }
.winner strong { font-size:14px; line-height:20px; }
.winner small { font-size:11px; }
.avatar { position:relative; margin:0 auto; width:64px; height:64px; padding:2px; box-sizing:border-box; border-radius:50%; border:1.5px solid #cbd5e1; display:grid; place-items:center; background:#f3f4f6; color:#94a3b8; }
.avatar-media { position:absolute; inset:2px; border-radius:50%; overflow:hidden; display:grid; place-items:center; background:#f8fafc; }
.avatar-media img { width:100%; height:100%; min-width:100%; min-height:100%; object-fit:cover; display:block; }
.avatar i { position:absolute; right:-4px; bottom:-4px; width:24px; height:24px; border-radius:50%; display:grid; place-items:center; font-style:normal; font-size:10px; font-weight:700; border:2px solid #fff; }
.avatar.gold { width:80px; height:80px; padding:3px; border:1.5px solid #facc15; background:#fff7ed; color:#ea580c; }
.avatar.gold i { width:28px; height:28px; background:#facc15; color:#713f12; font-size:12px; }
.avatar.silver i { background:#cbd5e1; color:#1e293b; }
.avatar.bronze { border-color:#d97706; }
.avatar.bronze i { background:#d97706; color:#fff; }

.rank-row { margin-top:5px; height:46px; border-radius:24px; background:rgba(249,250,251,.5); display:flex; align-items:center; justify-content:space-between; padding:0 13px; font-size:12px; color:#374151; }
.rank-row b { font-size:12px; }
.rank-row i { font-size:14px; color:#9ca3af; vertical-align:middle; }
.rank-row-me { border: 1px dashed rgba(234, 88, 12, 0.45); background: rgba(255, 237, 213, 0.35); }
.rank-left { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.rank-pos { width: 12px; color: #6b7280; font-weight: 700; }
.rank-avatar { width: 20px; height: 20px; border-radius: 999px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: #e5e7eb; border: 1.5px solid #94a3b8; box-sizing: border-box; flex-shrink: 0; }
.rank-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rank-avatar-fallback .material-symbols-rounded { font-size: 13px; color: #6b7280; }
.rank-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.league-empty-state {
  width: 100%;
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.45;
}
.league-toggle-btn {
  margin-top: 5px;
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 18px;
  background: #f3f4f6;
  color: #6b7280;
  font: 600 12px/1 "Roboto Mono", monospace;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.league-toggle-btn .material-symbols-rounded { font-size: 16px; }
@keyframes leagueSkeletonPulse {
  0% { opacity: .55; }
  50% { opacity: 1; }
  100% { opacity: .55; }
}
.league-skeleton-card .league-skeleton-avatar {
  background: linear-gradient(90deg, #e5e7eb, #f3f4f6, #e5e7eb);
  border-color: transparent;
  animation: leagueSkeletonPulse 1.5s ease-in-out infinite;
}
.league-skeleton-text {
  display: block;
  margin: 8px auto 0;
  width: 70%;
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  animation: leagueSkeletonPulse 1.5s ease-in-out infinite;
}
.league-skeleton-text-sm {
  width: 50%;
  height: 8px;
  margin-top: 6px;
}
.league-skeleton-row {
  position: relative;
  overflow: hidden;
  background: #f3f4f6;
}
.league-skeleton-row::before,
.league-skeleton-row::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  animation: leagueSkeletonPulse 1.5s ease-in-out infinite;
}
.league-skeleton-row::before {
  left: 14px;
  width: 48%;
}
.league-skeleton-row::after {
  right: 14px;
  width: 20%;
}

.record-card { margin-top:14px; border-radius:24px; background:#373737; padding:16px; color:#fff; position:relative; overflow:hidden; }
.record-card::before { content:""; position:absolute; right:-24px; top:-28px; width:96px; height:96px; border-radius:50%; background:#ea580c; opacity:.8; }
.record-top { display:flex; justify-content:space-between; position:relative; z-index:1; }
.record-user { display:flex; gap:12px; align-items:center; }
.record-avatar { width:48px; height:48px; border-radius:50%; background:#ea580c; border:1px solid rgba(255,255,255,.2); display:grid; place-items:center; }
.record-user p { margin:0; font-size:10px; line-height:15px; letter-spacing:1px; color:#ea580c; font-weight:700; }
.record-user h4 { margin:2px 0 0; font-size:14px; line-height:20px; }
.record-score { text-align:right; }
.record-score strong { font-size:32px; line-height:32px; }
.record-score small { display:block; margin-top:2px; color:#9ca3af; font-size:9px; font-weight:700; }
.record-meta { margin:18px 0 16px; height:42px; border-radius:24px; border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.05); display:flex; justify-content:space-between; align-items:center; padding:0 14px; color:#d1d5db; font-size:10px; position:relative; z-index:1; }
.record-card button { width:100%; height:40px; border:0; border-radius:24px; background:#ea580c; color:#fff; font:700 12px/16px "Roboto Mono", monospace; letter-spacing:1.2px; display:flex; align-items:center; justify-content:center; gap:8px; position:relative; z-index:1; }
.record-card button .material-symbols-rounded { font-size:14px; }

.bookings a { font-size:10px; line-height:15px; letter-spacing:1px; color:#ea580c; text-decoration:none; font-weight:700; }
.remain {
  --percent: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-align: center;
  background: conic-gradient(#ff5700 calc(var(--percent) * 1%), #e5e7eb 0);
  top: -4px;
  right: -4px;
}
.remain::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #f9fafb;
}
.remain strong,
.remain small {
  position: relative;
  z-index: 1;
  display: block;
}
.remain strong {
  font-size: 12px;
  line-height: 12px;
  color: #111827;
  font-weight: 700;
}
.remain small {
  font-size: 5px;
  line-height: 7px;
  color: #6b7280;
  letter-spacing: -.2px;
  text-transform: uppercase;
}
.booking-item { margin-top:5px; height:66px; border-radius:24px; border:1px solid #f3f4f6; background:#f9fafb; display:flex; align-items:center; padding:0 10px; gap:12px; }
.booking-item .date { width:44px; height:44px; border-radius:24px; background:rgba(234,88,12,.1); color:#ea580c; display:grid; place-items:center; border:1px solid rgba(234,88,12,.05); }
.booking-item .date small { font-size:9px; line-height:9px; font-weight:700; }
.booking-item .date b { font-size:16px; line-height:16px; }
.booking-item .date.muted { background:#f3f4f6; color:#9ca3af; border-color:#e5e7eb; }
.booking-item h4 { margin:0; font-size:14px; line-height:20px; }
.booking-item p { margin:0; font-size:11px; line-height:16.5px; color:#6b7280; }
.booking-item p b { color:#ea580c; margin-right:10px; }
.booking-item .material-symbols-rounded { margin-left:auto; color:#d1d5db; font-size:15px; }

.plan { background:#373737; color:#fff; position:relative; overflow:hidden; }
.plan::before { content:""; position:absolute; right:-40px; top:-40px; width:128px; height:128px; border-radius:50%; background:rgba(255,255,255,.14); }
.plan-head { display:flex; justify-content:space-between; align-items:center; }
.badge { display:inline-flex; gap:6px; align-items:center; height:23px; border-radius:8px; background:rgba(255,255,255,.1); padding:0 8px; font-size:10px; line-height:15px; font-weight:700; letter-spacing:.5px; }
.badge i { width:6px; height:6px; border-radius:50%; background:#4ade80; display:block; }
.circle { width:41px; height:41px; border-radius:50%; border:1px solid rgba(255,255,255,.1); background:rgba(75,85,99,.5); color:#fff; }
.plan .progress-head { margin-top:5px; color:#9ca3af; font-size:12px; }
.plan .progress-head b { color:#fff; }
.track.big { height:8px; background:rgba(0,0,0,.3); }
.cta { margin-top:5px; width:100%; height:62px; border:0; border-radius:24px; background:#ea580c; color:#fff; display:flex; align-items:center; padding:0 10px; gap:10px; position:relative; z-index:1; }
.play { width:40px; height:40px; border-radius:50%; background:#fff; color:#ea580c; display:grid; place-items:center; }
.cta b { display:block; font-size:14px; line-height:20px; text-align:left; }
.cta small { display:block; font-size:10px; line-height:15px; color:rgba(255,255,255,.7); text-align:left; }
.cta > .material-symbols-rounded:last-child { margin-left:auto; font-size:11px; color:rgba(255,255,255,.7); }

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 390px;
  height: 76px;
  padding: 13px 24px 12px;
  border-top: 1px solid #e5e5e5;
  background: #ffffff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 50;
}
.nav-item {
  width: 56px;
  text-align: center;
  color: #8c8c8c;
  font-size: 10px;
  line-height: 15px;
  font-weight: 500;
  text-decoration: none;
  display: block;
}
.nav-item .material-symbols-outlined {
  display: block;
  margin: 0 auto 5px;
  font-size: 20px;
}
.nav-item.active {
  color: #ff5700;
  font-weight: 700;
}
.nav-item.active::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  margin: 7px auto 0;
  border-radius: 999px;
  background: #ff5700;
}
html.dark .bottom-nav {
  background: #111827;
  border-top-color: rgba(255, 255, 255, 0.12);
}
html.dark .nav-item {
  color: #94a3b8;
}
/* Page-specific styles for index.html */
body {
  background: #f3f4f6;
}

.main-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 12px;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #efe7ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #6b21a8;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.pill-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.pill-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: #7c3aed;
}

.header-user {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 3px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.header-user .avatar-mini,
.header-user .avatar-ring {
  margin-left: 0;
}

#headerAvatar .avatar-ring__inner,
#headerAvatar .avatar-mini-img {
  object-position: center;
}

.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #e2e8f0;
  display: grid;
  place-items: center;
  color: #111827;
  font-size: 16px;
}

.header-avatar img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.header-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.header-notify {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  display: grid;
  place-items: center;
  color: #0f172a;
  position: relative;
}

.notify-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6d00;
  border: 2px solid #ffffff;
}

.search-wrapper {
  padding: 0 20px;
}

.search-field {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 16px 48px 16px 20px;
  border-radius: 28px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 14px;
  color: #111827;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.search-input::placeholder {
  color: #94a3b8;
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 20px;
}

.stats-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-top: 0;
}

.stats-grid::-webkit-scrollbar {
  display: none;
}

.stat-card {
  flex: 0 0 160px;
  background: #3b3b3b;
  color: #ffffff;
  padding: 16px;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.stat-label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stat-label-with-icon .material-symbols-rounded {
  font-size: 14px;
  color: #ff6d00;
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
}

.stat-unit {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.stat-subtitle {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.stat-progress {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
}

.stat-progress-value {
  color: #ff6d00;
  font-weight: 700;
}

.progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #ff6d00;
  border-radius: 999px;
}

.booking-card {
  background: #ffffff;
  border-radius: 32px;
  padding: 20px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.024);
}

.booking-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 81.17px;
  margin-bottom: 24px;
}

.booking-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  line-height: 28px;
}

.booking-link {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ff6d00;
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 4px;
  line-height: 15px;
  letter-spacing: 1px;
}

.booking-progress {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0) 92.86%, #000000 92.86%);
  display: grid;
  place-items: center;
  color: #111827;
}

.booking-progress-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  width: 33.61px;
}

.booking-progress-inner span:first-child {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 14px;
}

.booking-progress-inner span:last-child {
  margin-top: 2px;
  font-size: 7px;
  font-weight: 700;
  line-height: 10px;
  letter-spacing: -0.35px;
  text-transform: uppercase;
  color: #9ca3af;
}

.booking-empty {
  background: #f5f6f9;
  border-radius: 28px;
  padding: 20px;
  text-align: center;
  color: #6b7280;
}

.booking-empty-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.booking-empty-subtitle {
  font-size: 12px;
  margin-bottom: 12px;
}

.booking-empty-action {
  background: transparent;
  border: none;
  color: #ff6d00;
  font-weight: 700;
  font-size: 12px;
}

.booking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-empty-state,
.booking-error-state {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 28px;
  padding: 20px;
  text-align: center;
}

.upcoming-booking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f9fafb;
  padding: 10px 12px;
  border-radius: 22px;
  border: 1px solid #f3f4f6;
  min-height: 60px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.upcoming-booking-item:hover {
  border-color: rgba(255, 109, 0, 0.25);
}

.upcoming-booking-date {
  width: 38px;
  height: 38px;
  border-radius: 19px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: 1px solid rgba(229, 231, 235, 0.5);
  color: #94a3b8;
}

.upcoming-booking-date-primary {
  background: rgba(255, 109, 0, 0.12);
  border-color: rgba(234, 88, 12, 0.05);
  color: #ff6d00;
}

.upcoming-booking-day {
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.upcoming-booking-date-number {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
}

.upcoming-booking-content {
  flex: 1;
  min-width: 0;
}

.upcoming-booking-title {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 20px;
}

.upcoming-booking-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
}

.upcoming-booking-time {
  font-size: 10px;
  font-weight: 700;
  color: #ff6d00;
  line-height: 14px;
}

.upcoming-booking-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #cfd5de;
}

.upcoming-booking-subtitle {
  font-size: 10px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 14px;
}

.upcoming-booking-arrow {
  font-size: 12px;
  color: #d1d5db;
}

.league-card {
  background: #fff;
  border-radius: 32px;
  padding: 20px;
}

.league-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.league-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.league-season {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ea580c;
  background: #fff7ed;
  border-radius: 999px;
  padding: 4px 12px;
}

.league-top3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.league-user {
  text-align: center;
}

.league-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  margin: 0 auto 8px;
  background: #f3f4f6;
  border: 1px solid #cbd5e1;
}

.league-avatar.gold { width: 80px; height: 80px; background: #fff7ed; border-color: #facc15; }
.league-avatar.bronze { border-color: rgba(217, 119, 6, 0.6); }

.league-name {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
}

.league-user.leader .league-name { font-size: 14px; }

.league-score {
  font-size: 10px;
  font-weight: 700;
  color: #ea580c;
  margin-top: 2px;
}

.league-user.leader .league-score { font-size: 11px; }

.league-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.league-row {
  height: 46px;
  border-radius: 24px;
  background: rgba(249, 250, 251, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 12px;
  color: #374151;
}

.league-row span:last-child {
  font-weight: 700;
  color: #111827;
}

.current-plan-card {
  background: #373737;
  border-radius: 32px;
  padding: 24px;
  color: #fff;
}

.current-plan-head {
  position: relative;
  margin-bottom: 18px;
}

.current-plan-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 4px 10px;
  margin-bottom: 8px;
}

.current-plan-head h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 25px;
}

.current-plan-chevron {
  position: absolute;
  right: 0;
  top: 10px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(75,85,99,.5);
  color: #fff;
}

.current-plan-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #9ca3af;
}

.current-plan-progress-row strong {
  color: #fff;
}

.current-plan-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.3);
  margin-top: 6px;
}

.current-plan-progress-fill {
  width: 25%;
  height: 100%;
  border-radius: 999px;
  background: #ea580c;
}

.current-plan-cta {
  margin-top: 24px;
  width: 100%;
  height: 64px;
  border: none;
  border-radius: 28px;
  background: #ea580c;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  text-align: left;
}

.current-plan-cta strong {
  display: block;
  font-size: 14px;
  line-height: 20px;
}

.current-plan-cta small {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,.7);
}

.plan-card {
  background: #3b3b3b;
  border-radius: 20px;
  padding: 18px;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.plan-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 999px;
}

.plan-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.plan-progress {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.plan-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.plan-progress-fill {
  height: 100%;
  background: #ff6d00;
  border-radius: 999px;
}

/* Auth modal styled like main page */
.auth-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.auth-modal.active {
  display: flex;
}

.auth-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
}

.auth-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 22px;
  width: 92%;
  max-width: 360px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  z-index: 1;
}

.auth-modal-close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  display: grid;
  place-items: center;
  color: #111827;
}

.auth-modal .tabs {
  display: flex;
  background: #f8fafc;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 14px;
}

.auth-modal .tab {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  background: transparent;
  border: none;
}

.auth-modal .tab.active {
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.auth-modal .form-group {
  margin-bottom: 12px;
}

.auth-modal .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}

.auth-modal .form-group input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 12px;
  color: #111827;
}

.auth-modal .form-group small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #6b7280;
}

.auth-modal .btn.btn-primary {
  width: 100%;
  border-radius: 999px;
  background: #ff6d00;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  box-shadow: 0 10px 20px rgba(255, 109, 0, 0.25);
}
/* Dashboard cards spacing normalization */
.stats-grid > * {
  border-radius: 24px;
}

/* Ensure profile hero stays balanced */
.profile-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

html.dark body,
html.dark .phone {
  background: #0b1120;
  color: #e5e7eb;
}

html.dark .loading-screen {
  background: radial-gradient(circle at 50% 36%, #111827 0, #0f172a 46%, #0b1120 100%);
  color: #f3f4f6;
}

html.dark .loading-screen p,
html.dark .sub,
html.dark .kicker,
html.dark .record-score small {
  color: #9ca3af;
}

html.dark .chip,
html.dark .icon-btn,
html.dark .search-wrap,
html.dark .panel,
html.dark .rank-row,
html.dark .league-toggle-btn {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(255, 255, 255, 0.1);
}

html.dark .icon-button {
  color: #ff7a1a;
  border-color: rgba(255, 87, 0, 0.22);
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.96), rgba(58, 36, 23, 0.78));
  box-shadow: 0 14px 30px rgba(255, 87, 0, 0.12), 0 10px 24px rgba(0,0,0,.24);
}

html.dark .chip-login,
html.dark .rank-pos,
html.dark .rank-row i,
html.dark .search-wrap input::placeholder,
html.dark .search-wrap .material-symbols-rounded {
  color: #94a3b8;
}

html.dark .avatar,
html.dark .rank-avatar,
html.dark .avatar-mini {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

html.dark .league .season {
  background: rgba(255, 87, 0, 0.14);
  color: #ff8a4c;
}

html.dark .booking-empty-state,
html.dark .booking-error-state,
html.dark .upcoming-booking-item,
html.dark .booking-empty {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.1);
}

html.dark .booking-empty-title,
html.dark .upcoming-booking-title,
html.dark .booking-progress-inner span:first-child {
  color: #e5e7eb;
}

html.dark .booking-empty-subtitle,
html.dark .upcoming-booking-subtitle,
html.dark .booking-progress-inner span:last-child,
html.dark .upcoming-booking-arrow,
html.dark .upcoming-booking-dot {
  color: #9ca3af;
}

html.dark .upcoming-booking-date {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.14);
  color: #94a3b8;
}

html.dark .upcoming-booking-date-primary {
  background: rgba(255, 109, 0, 0.18);
  border-color: rgba(255, 109, 0, 0.28);
  color: #ff8a4c;
}

html.dark .remain {
  background: conic-gradient(#ff6d00 calc(var(--percent) * 1%), rgba(148, 163, 184, 0.35) 0);
}

html.dark .remain::before {
  background: #111827;
}

html.dark .remain strong {
  color: #e5e7eb;
}

html.dark .remain small {
  color: #94a3b8;
}

html.dark .booking-progress {
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0) 92.86%, rgba(148, 163, 184, 0.38) 92.86%);
  color: #e5e7eb;
}

html.dark .rank-row-me {
  border-color: rgba(255, 87, 0, 0.6);
  background: rgba(255, 87, 0, 0.12);
}

html.dark .league-skeleton-row,
html.dark .league-skeleton-card .league-skeleton-avatar,
html.dark .league-skeleton-text,
html.dark .league-skeleton-row::before,
html.dark .league-skeleton-row::after {
  background: #1f2937;
}

html.dark .auth-modal .modal-content {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.1);
}

html.dark .auth-modal .form-group label,
html.dark .auth-modal .modal-content h3,
html.dark .auth-modal .modal-content p {
  color: #e5e7eb;
}

html.dark .auth-modal .form-group input {
  background: #1f2937;
  border-color: #374151;
  color: #f9fafb;
}

@media (max-width: 768px) {
  .profile-hero {
    grid-template-columns: 1fr;
  }
}

/* Avatar ring styles for index page (base.css is not loaded) */
.avatar-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 999px;
  overflow: hidden;
  box-sizing: border-box;
}

.avatar-ring__inner {
  position: relative;
  z-index: 1;
  border-radius: inherit;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-sizing: border-box;
  border: 0 !important;
  background: var(--avatar-ring-inner-bg, #ffffff) !important;
  background-image: none !important;
}

/* Tier: free — solid gray ring */
.avatar-ring--free {
  padding: 0;
  background: transparent;
}

/* Tier: basic — solid green ring */
.avatar-ring--basic {
  padding: 2px;
  background: #22c55e;
}

/* Tier: premium — solid orange ring */
.avatar-ring--premium {
  padding: 2px;
  background: #ea580c;
}

/* Tier: VIP — Instagram-style conic gradient */
.avatar-ring--vip {
  padding: 3px;
}

.avatar-ring--vip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from -75deg,
    #515bd4 0deg,
    #8134af 70deg,
    #dd2a7b 150deg,
    #f58529 230deg,
    #feda77 300deg,
    #515bd4 360deg
  );
  animation: none;
}

html.dark .avatar-ring--vip .avatar-ring__inner {
  background-color: #0f172a;
}

/* Header avatar tier indicator — simple border for small avatar in topbar */
#headerAvatar.tier-free { border: 2px solid #6b7280; }
#headerAvatar.tier-basic { border: 2px solid #22c55e; }
#headerAvatar.tier-premium { border: 2px solid #ea580c; }

/* Header avatar tuning: larger avatar with thinner ring */
#headerAvatar.avatar-ring--free,
#headerAvatar.avatar-ring--basic,
#headerAvatar.avatar-ring--premium {
  padding: 1px;
}

#headerAvatar.avatar-ring--vip {
  padding: 2px;
}

/* ==============================
   Notification Toast
   ============================== */
#notification-container {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.notification-toast {
  width: 340px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  position: relative;
  border-left: 4px solid #3b82f6;
}

.notification-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-toast.hiding {
  transform: translateX(120%);
  opacity: 0;
}

.notification-toast--success {
  border-left-color: #22c55e;
}

.notification-toast--warning {
  border-left-color: #f59e0b;
}

.notification-toast--error {
  border-left-color: #ef4444;
}

.notification-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}

.notification-toast--info .notification-icon {
  color: #3b82f6;
}

.notification-toast--success .notification-icon {
  color: #22c55e;
}

.notification-toast--warning .notification-icon {
  color: #f59e0b;
}

.notification-toast--error .notification-icon {
  color: #ef4444;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 2px;
  line-height: 1.3;
}

.notification-message {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.notification-close {
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  flex-shrink: 0;
  border-radius: 4px;
  transition: background 0.15s ease;
  margin-left: auto;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #6b7280;
}

.notification-close .material-symbols-rounded {
  font-size: 16px;
}

/* Dark theme */
html.dark .notification-toast {
  background: #1f2937;
  color: #e5e7eb;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html.dark .notification-title {
  color: #e5e7eb;
}

html.dark .notification-message {
  color: #9ca3af;
}

html.dark .notification-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #d1d5db;
}

/* ==============================
   Notification Panel (Drawer)
   ============================== */

/* Backdrop */
.notification-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 11000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.notification-panel-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Panel */
.notification-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 11001;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.notification-panel.open {
  transform: translateX(0);
}

@media (max-width: 480px) {
  .notification-panel {
    width: 100vw;
  }
}

/* Header */
.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}

.notification-panel-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.notification-panel-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: background 0.15s ease;
}

.notification-panel-close:hover {
  background: #e5e7eb;
  color: #111827;
}

.notification-panel-close .material-symbols-rounded {
  font-size: 20px;
}

/* List */
.notification-panel-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

/* Item */
.notification-panel-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 20px;
  transition: background 0.15s ease;
  cursor: default;
}

.notification-panel-item:hover {
  background: #f9fafb;
}

.notification-panel-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.notification-panel-item-icon--info {
  background: #eff6ff;
  color: #3b82f6;
}

.notification-panel-item-icon--success {
  background: #f0fdf4;
  color: #22c55e;
}

.notification-panel-item-icon--warning {
  background: #fffbeb;
  color: #f59e0b;
}

.notification-panel-item-icon--error {
  background: #fef2f2;
  color: #ef4444;
}

.notification-panel-item-content {
  flex: 1;
  min-width: 0;
}

.notification-panel-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 2px;
  line-height: 1.3;
}

.notification-panel-item-message {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.notification-panel-item-time {
  font-size: 11px;
  color: #9ca3af;
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 2px;
}

/* Empty state */
.notification-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
  color: #9ca3af;
}

.notification-panel-empty .material-symbols-rounded {
  font-size: 48px;
  margin-bottom: 12px;
  color: #d1d5db;
}

.notification-panel-empty p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* Bell button */
.notification-bell {
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  border-radius: 50%;
  transition: background .15s ease;
}

.notification-bell:hover {
  background: rgba(0, 0, 0, 0.05);
}

#notification-bell,
button[aria-label="Поиск"] {
  border: none;
  background: transparent;
  color: #374151;
  box-shadow: none;
}

#notification-bell:hover,
button[aria-label="Поиск"]:hover {
  background: rgba(0, 0, 0, 0.05);
}

.notification-bell .material-symbols-rounded {
  font-size: 24px;
}

.notification-bell-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border-radius: 999px;
  padding: 0 5px;
  border: 2px solid #ffffff;
  box-sizing: border-box;
  pointer-events: none;
}

/* Floating bell variant (no .top-actions available) */
.notification-bell--floating {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10000;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid #f3f4f6;
}

.notification-bell--floating:hover {
  background: #f9fafb;
}

/* Dark theme */
html.dark .notification-panel-backdrop {
  background: rgba(0, 0, 0, 0.6);
}

html.dark .notification-panel {
  background: #1f2937;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
}

html.dark .notification-panel-header {
  border-bottom-color: #374151;
}

html.dark .notification-panel-title {
  color: #f3f4f6;
}

html.dark .notification-panel-close {
  background: #374151;
  color: #9ca3af;
}

html.dark .notification-panel-close:hover {
  background: #4b5563;
  color: #f3f4f6;
}

html.dark .notification-panel-item:hover {
  background: #111827;
}

html.dark .notification-panel-item-icon--info {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

html.dark .notification-panel-item-icon--success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

html.dark .notification-panel-item-icon--warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

html.dark .notification-panel-item-icon--error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

html.dark .notification-panel-item-title {
  color: #f3f4f6;
}

html.dark .notification-panel-item-message {
  color: #9ca3af;
}

html.dark .notification-panel-item-time {
  color: #6b7280;
}

html.dark .notification-panel-empty {
  color: #6b7280;
}

html.dark .notification-panel-empty .material-symbols-rounded {
  color: #4b5563;
}

html.dark .notification-bell {
  color: #e5e7eb;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

html.dark .notification-bell:hover {
  background: rgba(255, 255, 255, 0.1);
}

html.dark #notification-bell,
html.dark button[aria-label="Поиск"] {
  border-color: transparent;
  background: transparent;
  color: #e5e7eb;
  box-shadow: none;
}

html.dark #notification-bell:hover,
html.dark button[aria-label="Поиск"]:hover {
  background: rgba(255, 255, 255, 0.1);
}

html.dark .notification-bell-badge {
  border-color: #1f2937;
}

html.dark .notification-bell--floating {
  background: #1f2937;
  border-color: #374151;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

html.dark .notification-bell--floating:hover {
  background: #111827;
}
