/* styles.css · partea 4/5 */
.leader-tabs,
.period-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.leader-tabs button,
.period-switch button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #555c5a;
  background: #faf9f4;
  cursor: pointer;
  font-size: 0.78rem;
}

.leader-tabs button:hover,
.leader-tabs button.active,
.period-switch button:hover,
.period-switch button.active {
  color: #061a18;
  border-color: var(--teal);
  background: var(--teal-pale);
}

.period-switch {
  padding: 4px;
  flex-wrap: nowrap;
  border-radius: 11px;
  background: #eeede7;
}

.period-switch button {
  min-height: 38px;
  border: 0;
  background: transparent;
}

.period-switch button.active {
  background: var(--paper);
  box-shadow: 0 3px 10px rgba(17, 21, 61, 0.09);
}

.leaderboard-overview {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.podium {
  min-height: 390px;
  padding: 38px 38px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: end;
  overflow: hidden;
  border-radius: 19px;
  color: white;
  background:
    radial-gradient(circle at 50% 20%, rgba(34, 184, 167, 0.2), transparent 36%),
    #0d1235;
  box-shadow: 0 19px 45px rgba(17, 21, 61, 0.16);
}

.podium-card {
  position: relative;
  min-width: 0;
  height: 235px;
  padding: 24px 12px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  border-radius: 15px 15px 0 0;
  background: rgba(255, 255, 255, 0.055);
  text-align: center;
}

.podium-card.rank-1 {
  height: 292px;
  border-color: rgba(34, 184, 167, 0.55);
  background: linear-gradient(180deg, rgba(34, 184, 167, 0.18), rgba(255, 255, 255, 0.055));
}

.podium-card.rank-3 {
  height: 215px;
}

.podium-medal {
  position: absolute;
  top: -16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0b1130;
  background: #d8d9dc;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22);
}

.rank-1 .podium-medal { background: #f3cc58; }

.rank-3 .podium-medal { background: #d99167; }

.leader-avatar {
  width: 46px;
  height: 46px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: #10152c;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 800;
}

.podium-card .leader-avatar {
  width: 58px;
  height: 58px;
  margin: 9px 0 17px;
  border-radius: 17px;
}

.avatar-coral { background: #f2a287; }

.avatar-blue { background: #76c6e9; }

.avatar-orange { background: #efbd6e; }

.avatar-violet { background: #b9a2fa; }

.avatar-green { background: #79d5ba; }

.podium-card strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.94rem;
}

.podium-card small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.65rem;
}

.podium-card b {
  margin-top: auto;
  color: var(--teal);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.78rem;
}

.your-score-card {
  min-height: 390px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--paper);
  box-shadow: 0 15px 38px rgba(17, 21, 61, 0.07);
}

.your-score-card .kicker {
  margin-bottom: 30px;
}

.your-rank {
  display: flex;
  align-items: center;
  gap: 18px;
}

.your-rank > span {
  color: var(--indigo);
  font-family: var(--serif);
  font-size: 4.1rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.your-rank div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.your-rank strong {
  font-size: 1rem;
}

.your-rank small {
  color: var(--muted);
  font-size: 0.66rem;
}

.your-score-stats {
  margin-top: 32px;
  padding: 20px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.your-score-stats span {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 0.7rem;
}

.your-score-stats b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
}

.your-score-card > a {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 750;
}

.ranking-panel {
  margin-top: 80px;
}

.ranking-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.ranking-heading h2,
.scoring-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.2vw, 4.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
}

.ranking-heading > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.75rem;
}

.ranking-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: 0 14px 36px rgba(17, 21, 61, 0.065);
}

.ranking-row {
  min-height: 78px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 70px minmax(180px, 1.3fr) minmax(130px, 0.85fr) 0.55fr 0.5fr 0.6fr;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid rgba(17, 21, 61, 0.09);
  color: #656c69;
  font-size: 0.76rem;
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-row:not(.ranking-header):hover {
  background: rgba(216, 241, 235, 0.25);
}

.ranking-header {
  min-height: 48px;
  color: #838a87;
  background: #efeee8;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.row-rank {
  color: #919692;
  font-family: var(--font-geist-mono), monospace;
}

.row-user {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}

.row-user strong {
  font-size: 0.85rem;
}

.row-focus {
  color: var(--teal-dark);
}

.row-points {
  color: var(--indigo);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.75rem;
  text-align: right;
}

.scoring-section {
  margin-top: 95px;
  padding: 45px;
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 60px;
  align-items: center;
  border-radius: 20px;
  color: white;
  background: #0d1235;
  box-shadow: 0 20px 52px rgba(17, 21, 61, 0.16);
}

.scoring-section .kicker {
  color: var(--teal);
}

.scoring-section h2 {
  font-size: clamp(2.5rem, 3.7vw, 4rem);
}

.scoring-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.scoring-grid article {
  min-height: 145px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
}

.scoring-grid span {
  color: var(--teal);
  font-family: var(--font-geist-mono), monospace;
  font-size: 1.35rem;
}

.scoring-grid strong {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.74rem;
  line-height: 1.45;
}

/* Account */

.account-page {
  --domain-accent: var(--teal);
}

.account-hero {
  position: relative;
  min-height: 720px;
  padding: 78px max(40px, calc((100vw - 1360px) / 2)) 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(410px, 500px);
  gap: 92px;
  align-items: center;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 82% 15%, rgba(34, 184, 167, 0.19), transparent 28%),
    linear-gradient(126deg, #11153d 0%, #090d29 100%);
}

.account-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 94px 94px;
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}

.account-intro,
.account-card {
  position: relative;
  z-index: 1;
}

.account-intro .subject-breadcrumb {
  margin-bottom: 54px;
}

.account-intro .kicker {
  color: var(--teal);
}

.account-intro h1 {
  max-width: 760px;
  margin: 0;
  color: #f5eedc;
  font-family: var(--serif);
  font-size: clamp(3.8rem, 5.4vw, 6.15rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.052em;
}

.account-summary {
  max-width: 630px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.61);
  font-size: 1rem;
  line-height: 1.75;
}

.account-benefits {
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}

.account-benefits li {
  min-height: 42px;
  padding: 0 14px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.7rem;
}

.account-benefits span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--teal);
  background: rgba(34, 184, 167, 0.12);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.55rem;
}

.account-card {
  min-height: 560px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.28);
}

.account-card-label {
  color: var(--teal-dark);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-card > h2 {
  margin: 20px 0 10px;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
}

.account-card-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.primary-auth-button {
  min-height: 55px;
  margin-top: 25px;
  padding: 0 17px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  border-radius: 11px;
  color: white;
  background: var(--indigo);
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-auth-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 21, 61, 0.2);
}

.primary-auth-button > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #071b19;
  background: var(--teal);
}

.primary-auth-button i {
  font-style: normal;
  font-size: 1rem;
}

.account-divider {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #969b98;
  font-size: 0.65rem;
}

.account-divider::before,
.account-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.social-auth-list {
  display: grid;
  gap: 8px;
}

.social-auth-button {
  min-height: 49px;
  padding: 0 13px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 11px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #faf9f4;
  cursor: pointer;
  text-align: left;
}

.social-auth-button:not(:disabled):hover {
  border-color: var(--teal);
  background: var(--teal-pale);
}

.social-auth-button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.social-auth-button strong {
  font-size: 0.75rem;
  font-weight: 650;
}

.social-auth-button small {
  color: #8b918e;
  font-size: 0.57rem;
}

.social-mark {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #17203c;
  background: white;
  box-shadow: 0 2px 8px rgba(17, 21, 61, 0.09);
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
}

.social-facebook {
  color: white;
  background: #3568bd;
}
