:root {
  --bg: #0a0a0a;
  --card: #141414;
  --border: #222;
  --text: #f5f5f5;
  --muted: #888;
  --red: #e53935;
  --blue: #2196f3;
  --purple: #7c4dff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 70px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.brand-title {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.1;
}
.brand-title span,
.pwal-red {
  color: var(--red);
}
.brand-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.15em;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 18px;
}

.screen {
  display: none;
  padding: 12px 14px 20px;
}
.screen.active {
  display: block;
}

.section-label {
  font-size: 17px;
  font-weight: 700;
  margin: 8px 0 12px;
}
.section-label.inline {
  margin: 0;
}
.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 10px;
}

.home-banner {
  display: block;
  margin: 0 0 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}
.home-banner.hidden {
  display: none;
}
.home-banner img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
.link-more {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
}

.h-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.rec-card {
  flex: 0 0 280px;
  background: var(--card);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--border);
}
.rec-league {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.tv-ico {
  color: var(--red);
  font-size: 14px;
}
.live-dot {
  color: var(--red);
  animation: blink 1.2s infinite;
}
@keyframes blink {
  50% {
    opacity: 0.4;
  }
}

.rec-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.rec-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  text-align: center;
}
.rec-team img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.rec-score {
  text-align: center;
}
.rec-score strong {
  font-size: 22px;
  display: block;
}
.status-txt {
  display: block;
  color: var(--red);
  font-style: normal;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.live-tile {
  position: relative;
  border: none;
  border-radius: 12px;
  min-height: 130px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  background: #111;
}

.thumb-photo {
  position: absolute;
  inset: 0;
  display: flex;
  background: linear-gradient(135deg, #0d2818 0%, #1a1a2e 50%, #0d2818 100%);
  overflow: hidden;
}
.thumb-side {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.thumb-side::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  filter: blur(10px) brightness(0.55) saturate(1.1);
  transform: scale(1.15);
}
.thumb-side.home {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent);
}
.thumb-side.away {
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.35), transparent);
}
.thumb-crest {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}
.thumb-crest-ph {
  position: relative;
  z-index: 2;
  font-size: 36px;
  opacity: 0.85;
}
.thumb-vs {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 4;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.05em;
}
.thumb-league {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.5;
  margin-top: 18px;
}
.live-pip {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 9px;
  font-weight: 700;
  color: #ff5252;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  animation: liveBlink 1.4s ease-in-out infinite;
}
@keyframes liveBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
.thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.78));
  pointer-events: none;
  z-index: 3;
}

.team-logo,
.row-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}
.row-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.logo-ph {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.logo-ph.row-logo {
  width: 28px;
  height: 28px;
}

.view-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.65);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  z-index: 5;
}

.orig-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--purple);
  font-size: 9px;
  padding: 3px 6px;
  border-radius: 4px;
  z-index: 5;
  max-width: 48%;
  line-height: 1.2;
}

.league-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 10px;
  padding: 4px 8px;
  z-index: 4;
}

.tile-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  font-size: 11px;
  padding: 6px 8px;
  z-index: 4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tabs-top {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.tab-top {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 16px;
  padding: 10px 4px;
  border-bottom: 2px solid transparent;
}
.tab-top.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.match-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.match-row {
  background: var(--card);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
}
.row-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.live-dot-sm {
  color: var(--red);
}
.row-teams-logo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.row-teams-logo .side {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.row-teams-logo .side.right {
  flex-direction: row-reverse;
  text-align: right;
}
.row-teams-logo .side span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-teams-logo .sc {
  font-size: 18px;
  font-weight: 800;
}
.row-foot {
  margin-top: 8px;
  font-size: 12px;
  color: var(--blue);
}

.page-title.center {
  text-align: center;
  margin: 8px 0 16px;
}

.group-card {
  flex: 0 0 100px;
  text-align: center;
  border: none;
  background: var(--card);
  border-radius: 12px;
  padding: 10px 8px 12px;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  position: relative;
}
.fan-group-card .join-pill {
  display: inline-block;
  margin-top: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 999px;
}
.fan-group-card .join-pill.hidden {
  display: none;
}
.group-av {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #222 url("logo.png") center/cover;
  margin: 0 auto 8px;
}
.group-name {
  font-size: 11px;
  font-weight: 700;
}
.group-members {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}

.chat-list {
  margin-top: 16px;
}
.chat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.chat-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #222 url("logo.png") center/cover;
  flex-shrink: 0;
}
.chat-name {
  font-weight: 700;
}
.chat-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.telegram-promo {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.12), rgba(229, 57, 53, 0.08));
  border: 1px solid var(--border);
  border-radius: 14px;
}
.telegram-promo p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}
.telegram-join-btn {
  display: block;
  text-align: center;
  background: #0088cc;
  color: #fff !important;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}

.profile-top {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}
.profile-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.profile-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--blue);
  background: #222;
}
.avatar-upload-btn {
  font-size: 11px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  background: var(--blue);
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: inherit;
}
.avatar-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 70px;
  max-height: 55vh;
  background: #111;
  border-top: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  z-index: 90;
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}
.avatar-sheet.hidden {
  display: none;
}
.avatar-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.avatar-gallery-btn {
  display: block;
  text-align: center;
  margin-top: 10px;
  padding: 12px;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.avatar-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  overflow-y: auto;
  max-height: 36vh;
  padding: 4px 0;
}
.avatar-pick {
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
}
.avatar-pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-pick.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.35);
}
.avatar-pick-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #222 url("logo.png") center/cover;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.stats-row div {
  text-align: center;
  background: var(--card);
  border-radius: 12px;
  padding: 12px 8px;
  border: 1px solid var(--border);
}
.stats-row b {
  display: block;
  color: var(--blue);
  font-size: 20px;
}
.stats-row span {
  font-size: 11px;
  color: var(--muted);
}
.menu button,
.menu a {
  display: block;
  width: 100%;
  padding: 14px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-family: inherit;
  text-align: left;
}
.hint,
.empty-msg,
.muted {
  color: var(--muted);
  font-size: 12px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  z-index: 40;
}
.nav {
  background: none;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: 12px;
}
.nav-ico {
  font-size: 18px;
}
.nav.active {
  color: #fff;
}
.nav.active .nav-ico {
  background: var(--blue);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-player {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  flex-direction: column;
}
.live-player.hidden {
  display: none;
}
.player-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
}
.player-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
}
.player-views {
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
}
.player-video-wrap {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #000;
}
#liveVideo {
  width: 100%;
  flex: 1;
  max-height: 55vh;
  background: #000;
}
.player-status {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  max-width: 92%;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  font-size: 12px;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}
.player-status.hidden {
  display: none;
}
.srv-btn.active {
  border-color: var(--red);
  color: var(--red);
}
.player-meta {
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
}
.player-servers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px;
}
.srv-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
}

.toast {
  position: fixed;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 200;
}
.toast.show {
  opacity: 1;
}

.skeleton {
  opacity: 0.6;
}

.fan-chat {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.fan-chat.hidden {
  display: none;
}
.fan-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.back-chat {
  background: var(--card);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 22px;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 92%;
  align-self: flex-start;
}
.msg.mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #222;
  border: 1px solid var(--border);
}
.msg-body {
  background: var(--card);
  border-radius: 12px;
  padding: 8px 12px;
  min-width: 0;
}
.msg.mine .msg-body {
  background: rgba(33, 150, 243, 0.25);
}
.member-av-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #222;
}
.msg b,
.msg-name {
  font-size: 13px;
  color: var(--blue);
  font-weight: 700;
}
.msg.mine .msg-name {
  color: #90caf9;
}
.msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.msg p {
  margin: 0;
  font-size: 14px;
}
.chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}
.chat-form input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  color: #fff;
  font-family: inherit;
}
.chat-form button {
  background: var(--blue);
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 0 16px;
  font-family: inherit;
  font-weight: 700;
}
.chat-form.disabled {
  opacity: 0.35;
  pointer-events: none;
}
.chat-form.hidden {
  display: none;
}
.chat-join-gate {
  padding: 16px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(33, 150, 243, 0.08);
}
.chat-join-gate input {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  text-align: center;
}
.chat-join-gate p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #ccc;
  line-height: 1.45;
}
.join-chat-btn {
  background: var(--blue);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 12px 28px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
}

.fan-chat-title {
  flex: 1;
  min-width: 0;
}
.members-toggle {
  background: var(--card);
  border: 1px solid var(--border);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}
.member-sheet {
  position: absolute;
  left: 0;
  right: 0;
  top: 64px;
  bottom: 0;
  background: rgba(10, 10, 10, 0.97);
  z-index: 20;
  display: flex;
  flex-direction: column;
}
.member-sheet.hidden {
  display: none;
}
.member-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.sheet-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.member-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px 16px;
  max-height: 280px;
  overflow-y: auto;
}
.member-list.in-sheet {
  max-height: none;
  flex: 1;
  padding: 12px 14px;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border-radius: 10px;
  padding: 10px 12px;
}
.member-row.mine {
  border: 1px solid rgba(33, 150, 243, 0.35);
}
.member-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.member-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.member-name {
  font-size: 14px;
  font-weight: 600;
}
.member-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.profile-name-row {
  display: flex;
  gap: 8px;
  margin: 0 16px 12px;
}
.profile-name-row input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  color: #fff;
  font-family: inherit;
}
.profile-name-row button {
  background: var(--card);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 10px;
  padding: 0 14px;
  font-family: inherit;
  font-weight: 600;
}
.profile-join-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  background: var(--blue);
  border: none;
  color: #fff;
  border-radius: 12px;
  padding: 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.profile-join-btn.hidden,
.profile-name-row.hidden,
.hidden {
  display: none !important;
}
.chat-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px 16px;
  line-height: 1.5;
}
.msg-time {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  flex-shrink: 0;
}

body.theme-light {
  --bg: #f0f2f5;
  --card: #ffffff;
  --border: #dde1e6;
  --text: #1a1a1a;
  --muted: #5f6368;
}
body.theme-light .topbar,
body.theme-light .fan-chat,
body.theme-light .avatar-sheet {
  background: #fff;
}
body.theme-light .live-tile,
body.theme-light .match-row,
body.theme-light .rec-card {
  background: #fff;
}

.profile-meta {
  flex: 1;
  min-width: 0;
}
.profile-id-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.profile-id-label {
  font-size: 11px;
  color: var(--muted);
}
.profile-user-id {
  font-size: 11px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--blue);
  word-break: break-all;
}
.id-copy-btn {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
}
.profile-settings {
  margin: 0 0 14px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.setting-row:last-of-type {
  border-bottom: none;
}
.lang-select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: inherit;
}
.setting-link {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  text-align: left;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  display: inline-block;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #444;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--blue);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.hidden {
  display: none;
}
.modal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  max-width: 360px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
.about-ver {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}
.modal-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.about-list {
  margin: 0 0 16px;
  padding-left: 20px;
  line-height: 1.6;
  font-size: 14px;
}
.modal-close-btn {
  width: 100%;
  padding: 12px;
  background: var(--blue);
  border: none;
  color: #fff;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}
