/* Finition commune ONSIDE — chargée après les feuilles historiques. */
:root {
  --surface-1: rgba(9, 34, 63, .92);
  --surface-2: rgba(12, 43, 76, .88);
  --surface-3: rgba(18, 57, 96, .76);
  --blue: #55b8ff;
  --blue-strong: #2498ec;
  --red: #f23c58;
  --white: #f7fbff;
  --ink: #06182e;
  --border-soft: rgba(125, 181, 231, .2);
  --shadow-card: 0 18px 50px rgba(0, 8, 24, .2);
  --shadow-raised: 0 26px 70px rgba(0, 8, 24, .32);
}

html {
  background: #041427;
}

body {
  min-width: 320px;
  color: var(--white);
  text-rendering: optimizeLegibility;
}

button,
a,
input,
select,
textarea {
  transition: border-color .2s ease, background-color .2s ease, color .2s ease,
    box-shadow .2s ease, transform .2s ease, opacity .2s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

::selection {
  color: white;
  background: rgba(242, 60, 88, .72);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #06182e;
}

::-webkit-scrollbar-thumb {
  border: 3px solid #06182e;
  border-radius: 20px;
  background: #315b80;
}

.site-shell {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.site-shell::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 82px 0 auto;
  height: 480px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(255,255,255,.018) 50%, transparent 50.1%),
    radial-gradient(circle at 18% 5%, rgba(85,184,255,.11), transparent 25%),
    radial-gradient(circle at 86% 0, rgba(242,60,88,.08), transparent 22%);
}

/* Navigation */
.site-header {
  height: 84px;
  padding: 0 clamp(18px, 3vw, 46px);
  border-bottom-color: rgba(125,181,231,.15);
  box-shadow: 0 12px 38px rgba(0, 8, 24, .18);
}

.brand {
  gap: 12px;
  letter-spacing: -1.6px;
}

.brand-ball {
  box-shadow: 0 8px 24px rgba(85,184,255,.16);
}

.brand:hover .brand-ball {
  transform: rotate(-5deg) scale(1.04);
}

.main-nav {
  gap: 5px;
  align-items: center;
  padding: 5px;
  border: 1px solid rgba(125,181,231,.14);
  border-radius: 14px;
  background: rgba(5, 24, 46, .64);
}

.main-nav a {
  min-height: 46px;
  align-content: center;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 13px;
}

.main-nav a:hover,
.main-nav a.nav-active {
  color: white;
  background: rgba(85,184,255,.1);
}

.main-nav a.nav-active {
  box-shadow: inset 0 0 0 1px rgba(85,184,255,.22);
}

.main-nav a.nav-active::after {
  content: "";
  width: 18px;
  height: 2px;
  margin-top: 3px;
  border-radius: 2px;
  background: var(--blue);
}

.main-nav select.account-link {
  max-width: 180px;
  height: 44px;
  padding: 0 32px 0 12px;
  color: #dceaf4;
  border-color: rgba(125,181,231,.16);
  background: #0b2949;
  cursor: pointer;
}

.main-nav select.account-link option {
  color: white;
  background: #0b2949;
}

.account-nav {
  gap: 8px;
}

.account-link {
  min-height: 44px;
  border-radius: 11px;
  font-weight: 750;
}

.account-link:hover {
  transform: translateY(-1px);
}

.avatar {
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.025);
}

.mobile-nav {
  display: none;
}

/* Cadres généraux */
.page,
.inside-page {
  width: min(100%, 1480px);
}

.inside-page {
  padding-top: 42px;
}

.greeting {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(125,181,231,.12);
  border-radius: 20px;
  color: #9fb2c2;
  background: rgba(8, 30, 56, .56);
  font-size: 12px;
}

.greeting strong {
  color: white;
}

.inside-heading,
.profile-hero,
.settings-heading {
  border-radius: 22px 7px 22px 7px;
  box-shadow: var(--shadow-card);
}

.inside-heading {
  min-height: 180px;
  padding: 34px clamp(25px, 4vw, 48px);
}

.inside-heading::after,
.profile-hero::after,
.settings-heading::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255,255,255,.018), 0 0 0 90px rgba(255,255,255,.012);
  pointer-events: none;
}

.inside-heading h1,
.profile-copy h1,
.settings-heading h1 {
  color: white;
  line-height: 1;
}

.eyebrow {
  color: var(--blue);
}

.heading-pattern {
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 8, 24, .18);
}

.content-card,
.balance-main-card,
.mini-stat,
.account-stats article {
  border-color: var(--border-soft);
  border-radius: 18px 6px 18px 6px;
  box-shadow: var(--shadow-card);
}

.content-card {
  margin-top: 22px;
}

.card-heading {
  min-height: 78px;
  padding: 0 28px;
  background: linear-gradient(90deg, rgba(255,255,255,.018), transparent 55%);
}

.card-heading h2 {
  letter-spacing: -.5px;
}

.card-heading > div:first-child > span,
.section-title-row > div:first-child > span,
.bet-title span {
  width: 34px;
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--red));
}

.wallet-notice {
  border-top-color: rgba(85,184,255,.16);
  color: #b9ddf6;
  background: rgba(85,184,255,.06);
}

/* Accueil et paris */
.hero {
  min-height: 350px;
  border-radius: 26px 8px 26px 8px;
  box-shadow: var(--shadow-raised);
}

.hero-copy {
  padding-left: clamp(36px, 5vw, 76px);
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(43px, 4.8vw, 70px);
}

.competition-ranking-link {
  position: relative;
  min-height: 50px;
  gap: 18px;
  overflow: hidden;
  padding: 6px 7px 6px 18px;
  border-color: rgba(85,184,255,.38);
  border-radius: 14px;
  color: #dcecf8;
  background:
    linear-gradient(100deg, rgba(85,184,255,.12), transparent 58%),
    rgba(5, 24, 46, .72);
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 12px 30px rgba(0,8,24,.16);
  backdrop-filter: blur(12px);
}

.competition-ranking-link::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue), var(--red));
}

.competition-ranking-link__label {
  font-size: 11px;
  letter-spacing: .15px;
}

.competition-ranking-link__label strong {
  color: white;
  font-weight: 900;
}

.competition-ranking-link__arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border: 1px solid rgba(85,184,255,.28);
  border-radius: 10px;
  color: var(--blue);
  background: rgba(85,184,255,.1);
  font-size: 18px;
}

.competition-ranking-link:hover {
  color: white;
  transform: translateY(-2px);
  border-color: rgba(85,184,255,.7);
  box-shadow: 0 16px 34px rgba(0, 8, 24, .28);
}

.competition-ranking-link:hover .competition-ranking-link__arrow {
  color: #06182e;
  background: var(--blue);
  transform: translateX(2px);
}

.league-lockup {
  box-shadow: 0 28px 70px rgba(0, 8, 24, .38);
}

.dashboard-grid {
  gap: 28px;
  margin-top: 32px;
}

.section-title-row {
  height: 57px;
}

.section-title-row h2,
.bet-title h2 {
  font-size: 26px;
}

.fiction-note {
  color: #8099ac;
  line-height: 1.5;
}

.bet-message {
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: center;
  gap: 10px;
  margin: 13px 0 0;
  padding: 11px 12px;
  border: 1px solid rgba(85,184,255,.22);
  border-radius: 10px;
  color: #c8e7fa;
  background: rgba(85,184,255,.07);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.bet-message > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  color: var(--blue);
  background: rgba(85,184,255,.12);
  font-size: 12px;
  font-weight: 950;
}

.bet-message--error {
  border-color: rgba(242,60,88,.32);
  color: #ffd4da;
  background: rgba(242,60,88,.09);
}

.bet-message--error > span {
  color: #ff8ea0;
  background: rgba(242,60,88,.16);
}

.match-table {
  border-radius: 18px 6px 18px 6px;
  box-shadow: var(--shadow-card);
}

.match {
  min-height: 88px;
  padding: 0 20px;
}

.match:hover {
  background: rgba(85,184,255,.035);
}

.calendar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(85,184,255,.07);
}

.flag,
.ranking-flag {
  padding: 3px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.odd {
  height: 48px;
  border-color: rgba(125,181,231,.14);
  border-radius: 10px;
}

.odd:hover:not(:disabled) {
  background: #173c63;
  box-shadow: 0 10px 22px rgba(0, 8, 24, .22);
}

.odd:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.bet-card {
  top: 104px;
  padding: 26px;
  border-radius: 20px 7px 20px 7px;
  box-shadow: var(--shadow-raised);
}

.bet-selection {
  border-radius: 13px;
}

.stake-row button:hover {
  color: white;
  background: #173c63;
}

.bet-button,
.form-submit-row button,
.settings-actions button,
.report-submit button {
  min-height: 48px;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(36,152,236,.16);
}

.bet-button:hover,
.form-submit-row button:hover,
.settings-actions button:hover,
.report-submit button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(36,152,236,.24);
}

/* Classement */
.ranking-card {
  overflow: hidden;
}

.group-tabs {
  flex-wrap: wrap;
}

.group-tabs button,
.history-filters button {
  border-radius: 9px;
}

.group-tabs button:hover,
.history-filters button:hover {
  color: white;
  border-color: rgba(85,184,255,.4);
  background: rgba(85,184,255,.07);
}

.ranking-labels {
  color: #91a7b8;
  background: rgba(5, 24, 46, .52);
}

.ranking-row {
  min-height: 80px;
}

.ranking-row:hover {
  background: rgba(85,184,255,.035);
}

.ranking-row > b:first-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.ranking-row > strong:last-child {
  color: white;
  font-size: 18px;
}

/* Portefeuille */
.wallet-summary {
  align-items: start;
  gap: 22px;
}

.wallet-primary-column {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.wallet-primary-column .payment-card {
  width: 100%;
  margin-top: 0;
}

.balance-main-card {
  min-height: 230px;
  padding: 32px;
  background:
    radial-gradient(circle at 82% 20%, rgba(85,184,255,.16), transparent 28%),
    linear-gradient(135deg, #0b3159, #09213d 70%, #20192c);
}

.balance-main-card strong {
  color: white;
  font-size: clamp(38px, 4vw, 50px);
}

.balance-mark {
  color: rgba(85,184,255,.12);
}

.wallet-actions button {
  min-height: 40px;
  border-radius: 9px;
}

.wallet-actions button:hover {
  color: white;
  background: rgba(85,184,255,.1);
}

.mini-stat {
  min-height: 230px;
  padding: 30px;
}

.mini-stat strong {
  font-size: 28px;
}

.payment-form input,
.settings-fields input,
.report-form input,
.report-form select,
.report-form textarea {
  border-radius: 10px;
  background: rgba(8, 33, 61, .84);
}

.transaction {
  min-height: 78px;
}

.transaction:hover {
  background: rgba(85,184,255,.03);
}

.transaction-icon {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(85,184,255,.14);
}

@media (max-width: 1000px) {
  .wallet-primary-column {
    grid-column: 1 / -1;
  }
}

/* Compte et réglages */
.profile-hero {
  min-height: 205px;
  padding: 34px 42px;
}

.profile-avatar {
  box-shadow: 0 0 0 7px rgba(85,184,255,.07), 0 16px 35px rgba(0,8,24,.24);
}

.profile-motif {
  right: 34px;
  bottom: 24px;
  color: rgba(255,255,255,.11);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
}

.edit-profile-link {
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

.edit-profile-link:hover {
  transform: translateY(-2px);
}

.history-labels {
  background: rgba(5, 24, 46, .52);
}

.history-row {
  min-height: 84px;
}

.history-row:hover {
  background: rgba(85,184,255,.03);
}

.result-pill {
  border: 1px solid currentColor;
  white-space: nowrap;
}

.settings-heading {
  position: relative;
  min-height: 160px;
  overflow: hidden;
}

.settings-card,
.security-card {
  overflow: hidden;
}

.settings-fields {
  gap: 22px;
  padding: 30px;
}

.settings-fields label {
  gap: 10px;
}

.settings-actions {
  min-height: 76px;
  background: rgba(5,24,46,.32);
}

.security-content {
  padding: 30px;
}

.security-content > button {
  min-height: 46px;
  border-radius: 10px;
}

.security-content .logout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin-top: 24px;
  border-color: rgba(242,60,88,.42);
  color: #ff8799;
  background: linear-gradient(90deg, rgba(242,60,88,.08), rgba(242,60,88,.025));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

.logout-button__icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(242,60,88,.32);
  border-radius: 8px;
  font-size: 14px;
}

.security-content .logout-button:hover {
  border-color: rgba(242,60,88,.72);
  color: white;
  background: rgba(242,60,88,.14);
  box-shadow: 0 12px 28px rgba(0,8,24,.2);
  transform: translateY(-1px);
}

.security-content .logout-button:hover .logout-button__icon {
  color: white;
  background: rgba(242,60,88,.2);
}

.account-status {
  padding: 20px 0;
}

.account-status b {
  padding: 6px 9px;
  border: 1px solid rgba(85,184,255,.25);
  border-radius: 20px;
  background: rgba(85,184,255,.07);
}

/* Signalement et paiement */
.report-layout {
  gap: 24px;
}

.report-card,
.report-context,
.payment-card {
  overflow: hidden;
}

.report-form {
  padding: 30px;
}

.report-context {
  padding: 30px;
}

.report-context li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(242,60,88,.25);
  border-radius: 9px;
  background: rgba(242,60,88,.05);
}

.payment-card {
  max-width: 850px;
  margin-right: auto;
  margin-left: auto;
}

/* Footer */
.site-footer {
  min-height: 64px;
  padding-top: 12px;
  padding-bottom: 12px;
  border-top-color: rgba(125,181,231,.16);
  background: #031121;
}

.footer-brand {
  display: flex !important;
  align-items: center;
  gap: 12px !important;
}

.footer-brand > span {
  color: white !important;
  font-size: 12px !important;
  font-style: italic;
  font-weight: 950 !important;
  letter-spacing: -.2px !important;
}

.footer-brand > small {
  padding-left: 12px;
  border-left: 1px solid rgba(125,181,231,.18);
  color: #718a9f;
}

.footer-support {
  display: flex !important;
  align-items: center;
  gap: 12px !important;
}

.footer-support > small {
  color: #718a9f;
}

.footer-support > i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(125,181,231,.42);
}

.footer-support > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 0;
  color: #a9bdcc;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.footer-support > a > b {
  display: inline;
  color: var(--blue);
  font-size: 13px;
}

.footer-support > a:hover {
  color: white;
}

.footer-support > a:hover > b {
  transform: translate(1px, -1px);
}

/* Authentification */
.auth-card,
.auth-shell {
  border-color: rgba(125,181,231,.22);
  box-shadow: var(--shadow-raised);
}

.auth-page--login .auth-card {
  width: min(100%, 480px);
  padding: 48px;
}

.auth-heading h1 {
  font-size: clamp(2rem, 4vw, 2.65rem);
}

.auth-form {
  gap: 17px;
}

.field {
  gap: 7px;
}

.field input {
  min-height: 52px;
  border-radius: 10px;
}

.primary-button {
  min-height: 54px;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(36,152,236,.18);
}

.primary-button:hover {
  box-shadow: 0 18px 36px rgba(36,152,236,.26);
}

.auth-switch {
  padding-top: 22px;
  border-top: 1px solid rgba(125,181,231,.12);
}

/* Responsive */
@media (max-width: 1180px) {
  .main-nav {
    gap: 2px;
  }

  .main-nav a {
    padding: 7px 10px;
  }

  .account-link {
    padding: 10px 12px;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 70px;
  }

  .site-header {
    position: sticky;
  }

  .main-nav {
    display: none;
  }

  .account-nav .account-link {
    display: none;
  }

  .account-nav .avatar {
    display: grid;
  }

  .mobile-nav {
    position: fixed;
    z-index: 80;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 60px;
    padding: 6px;
    border: 1px solid rgba(125,181,231,.22);
    border-radius: 18px;
    background: rgba(4, 20, 39, .94);
    box-shadow: 0 18px 55px rgba(0, 8, 24, .45);
    backdrop-filter: blur(20px);
  }

  .mobile-nav a {
    display: grid;
    place-items: center;
    gap: 2px;
    padding: 5px 2px;
    border-radius: 12px;
    color: #829bad;
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-nav a > span {
    color: #a8c1d3;
    font-size: 18px;
  }

  .mobile-nav a.mobile-active {
    color: white;
    background: rgba(85,184,255,.11);
  }

  .mobile-nav a.mobile-active > span {
    color: var(--blue);
  }

  .inside-page {
    padding-top: 28px;
  }

  .hero {
    min-height: 500px;
  }

  .dashboard-grid {
    gap: 22px;
  }

  .bet-card {
    padding: 22px;
  }

  .site-footer {
    gap: 10px;
    margin-bottom: -70px;
    padding-bottom: 82px;
  }

  .footer-support {
    width: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0 15px;
  }

  .inside-heading,
  .profile-hero,
  .settings-heading {
    border-radius: 18px 6px 18px 6px;
  }

  .inside-heading {
    min-height: 165px;
  }

  .hero {
    min-height: 535px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .league-lockup {
    transform: scale(.9);
    transform-origin: bottom right;
  }

  .match-table,
  .content-card,
  .balance-main-card,
  .mini-stat {
    border-radius: 15px 5px 15px 5px;
  }

  .match {
    padding: 16px;
  }

  .profile-hero {
    padding: 26px 22px;
  }

  .profile-motif {
    display: none;
  }

  .history-row {
    gap: 10px;
  }

  .report-form,
  .settings-fields,
  .security-content {
    padding: 22px;
  }

  .auth-page--login .auth-card {
    padding: 34px 23px;
  }

  .footer-support {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px !important;
  }

  .footer-support > a {
    min-height: 26px;
  }

  .footer-support > i {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Inscription — expérience premium */
.auth-page--signup {
  padding: 28px;
}

.auth-page--signup .auth-shell {
  grid-template-columns: minmax(570px, 1.18fr) minmax(440px, .82fr);
  width: min(1240px, 100%);
  min-height: 790px;
  border-radius: 32px 10px 32px 10px;
  background: rgba(4, 19, 37, .82);
  box-shadow: 0 38px 120px rgba(0, 6, 18, .5);
}

.auth-page--signup .auth-story {
  padding: 38px 42px 30px;
  background:
    radial-gradient(circle at 82% 20%, rgba(242,60,88,.24), transparent 23%),
    radial-gradient(circle at 10% 82%, rgba(85,184,255,.2), transparent 27%),
    linear-gradient(145deg, #0d3966, #092542 55%, #191a31);
}

.auth-page--signup .auth-story::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(115deg, transparent 0 44px, rgba(255,255,255,.018) 45px 46px),
    linear-gradient(90deg, transparent 49.9%, rgba(255,255,255,.035) 50%, transparent 50.1%);
}

.auth-page--signup .auth-story::after {
  right: -35px;
  bottom: 90px;
  color: transparent;
  font-size: 210px;
  opacity: .68;
  -webkit-text-stroke-color: rgba(255,255,255,.07);
}

.signup-story-top,
.signup-form-top {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.season-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  color: #bed3e3;
  background: rgba(3,18,35,.38);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.2px;
  backdrop-filter: blur(10px);
}

.season-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55b8ff;
  box-shadow: 0 0 0 4px rgba(85,184,255,.1);
}

.auth-page--signup .auth-story-copy {
  margin: 42px 0 24px;
}

.auth-page--signup .auth-story h2 {
  max-width: 620px;
  font-size: clamp(3.2rem, 5vw, 5rem);
}

.auth-page--signup .auth-story-copy > p:last-child {
  max-width: 510px;
  margin-top: 18px;
  font-size: .92rem;
}

.signup-product-preview {
  position: relative;
  z-index: 4;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px 7px 22px 7px;
  background:
    linear-gradient(145deg, rgba(11,48,84,.9), rgba(5,25,48,.94));
  box-shadow: 0 28px 70px rgba(0,8,24,.32);
  backdrop-filter: blur(18px);
}

.signup-product-preview::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(85,184,255,.28), transparent 35%, transparent 70%, rgba(242,60,88,.2));
  opacity: .55;
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.preview-toolbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-toolbar strong {
  font-size: 9px;
  letter-spacing: 1.6px;
}

.preview-toolbar small {
  color: #6f8ba1;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.preview-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f23c58;
  box-shadow: 0 0 0 5px rgba(242,60,88,.09);
  animation: signup-pulse 2s ease-in-out infinite;
}

.preview-fixture {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 2px;
}

.preview-club {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-club > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 11px 22px 11px 22px;
  color: #06182e;
  background: linear-gradient(145deg, white 0 52%, #55b8ff 52%);
  font-size: 10px;
  font-weight: 950;
  box-shadow: 0 10px 25px rgba(0,8,24,.2);
}

.preview-club-away {
  justify-content: flex-start;
  flex-direction: row-reverse;
  text-align: right;
}

.preview-club-away > span {
  background: linear-gradient(145deg, white 0 52%, #f23c58 52%);
}

.preview-club strong {
  font-size: 11px;
}

.preview-kickoff {
  display: grid;
  place-items: center;
  min-width: 86px;
  text-align: center;
}

.preview-kickoff small {
  color: #7895aa;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .6px;
}

.preview-kickoff b {
  margin: 4px 0;
  font-size: 16px;
}

.preview-kickoff span {
  color: #55b8ff;
  font-size: 7px;
}

.preview-market {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.preview-market > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid rgba(125,181,231,.13);
  border-radius: 9px;
  background: rgba(17,54,89,.72);
}

.preview-market small {
  color: #829caf;
  font-size: 6px;
  font-weight: 800;
}

.preview-market strong {
  color: #55b8ff;
  font-size: 12px;
}

.preview-market > div:nth-child(2) strong {
  color: white;
}

.preview-market > div:last-child strong {
  color: #ff7185;
}

.preview-ticket {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 18px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(85,184,255,.2);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(85,184,255,.08), rgba(85,184,255,.02));
}

.preview-ticket span,
.preview-ticket b {
  color: #7894a9;
  font-size: 7px;
}

.preview-ticket strong {
  grid-row: 2;
  font-size: 10px;
}

.preview-ticket b {
  grid-row: 1 / 3;
  grid-column: 2;
  padding: 6px 8px;
  border-radius: 20px;
  color: #9ed5fb;
  background: rgba(85,184,255,.08);
}

.auth-page--signup .auth-league-card {
  z-index: 4;
  margin-top: 14px;
  border-radius: 12px 4px 12px 4px;
  background: rgba(3,18,35,.42);
}

.auth-page--signup .auth-league-card > div {
  padding: 12px 14px;
}

.auth-page--signup .auth-league-card strong {
  color: white;
  font-size: 1rem;
}

.auth-page--signup .auth-league-card span {
  font-size: .55rem;
}

.auth-page--signup .auth-disclaimer {
  z-index: 4;
  margin-top: 12px;
}

.auth-page--signup .auth-card {
  padding: 34px 42px 30px;
  background:
    radial-gradient(circle at 100% 0, rgba(85,184,255,.07), transparent 25%),
    rgba(6,27,52,.97);
}

.signup-form-top {
  min-height: 38px;
}

.signup-form-top .logo {
  margin: 0;
  font-size: 1rem;
}

.signup-form-top > span {
  color: #7892a6;
  font-size: 10px;
}

.signup-form-top > span a {
  margin-left: 4px;
  color: #55b8ff;
  font-weight: 900;
  text-decoration: none;
}

.signup-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 24px 0 30px;
}

.signup-progress > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signup-progress span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(85,184,255,.38);
  border-radius: 50%;
  color: #06182e;
  background: #55b8ff;
  font-size: 8px;
  font-weight: 950;
}

.signup-progress > div:last-child span {
  color: #718ca1;
  border-color: rgba(125,181,231,.18);
  background: rgba(255,255,255,.035);
}

.signup-progress strong {
  color: #9fb5c5;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.signup-progress > i {
  height: 1px;
  background: linear-gradient(90deg, rgba(85,184,255,.55), rgba(125,181,231,.1));
}

.signup-heading {
  margin-bottom: 22px;
}

.signup-heading h1 {
  margin-top: 7px;
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.signup-heading > p:last-child {
  max-width: 390px;
  font-size: .88rem;
}

.auth-page--signup .auth-form {
  gap: 12px;
}

.auth-page--signup .field {
  gap: 6px;
}

.auth-page--signup .field label {
  color: #cfdae3;
  font-size: .78rem;
}

.auth-page--signup .field input {
  min-height: 48px;
  background: rgba(10,42,75,.76);
}

.auth-page--signup .field input:hover {
  border-color: rgba(125,181,231,.38);
}

.field-hint {
  color: #6f899d;
  font-size: 9px;
  line-height: 1.35;
}

.auth-page--signup .error-message {
  min-height: 10px;
  font-size: .68rem;
}

.auth-page--signup .checkbox {
  margin-top: 2px;
  padding: 11px 12px;
  border: 1px solid rgba(125,181,231,.12);
  border-radius: 9px;
  background: rgba(255,255,255,.018);
  font-size: .76rem;
}

.signup-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
  padding: 0 9px 0 18px;
}

.signup-submit b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(6,24,46,.12);
  font-size: 16px;
}

.auth-page--signup .auth-switch {
  margin-top: 18px;
  padding-top: 15px;
  color: #607b90;
  font-size: .68rem;
}

@keyframes signup-pulse {
  0%, 100% { opacity: .55; transform: scale(.82); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 1050px) {
  .auth-page--signup .auth-shell {
    grid-template-columns: 1fr;
    width: min(680px, 100%);
  }

  .auth-page--signup .auth-story {
    min-height: 680px;
  }

  .auth-page--signup .auth-card {
    max-width: none;
    padding: 42px 56px;
    border-top: 1px solid rgba(125,181,231,.18);
  }
}

@media (max-width: 620px) {
  .auth-page--signup {
    padding: 10px;
  }

  .auth-page--signup .auth-shell {
    border-radius: 22px 7px 22px 7px;
  }

  .auth-page--signup .auth-story {
    min-height: 575px;
    padding: 24px 20px 20px;
  }

  .season-badge {
    padding: 7px 8px;
    letter-spacing: .7px;
  }

  .auth-page--signup .auth-story-copy {
    margin: 38px 0 18px;
  }

  .auth-page--signup .auth-story h2 {
    font-size: 3.1rem;
  }

  .auth-page--signup .auth-story-copy > p:last-child {
    font-size: .82rem;
  }

  .signup-product-preview {
    padding: 14px;
  }

  .preview-fixture {
    gap: 8px;
  }

  .preview-club {
    display: grid;
    justify-items: center;
    gap: 6px;
    text-align: center;
  }

  .preview-club-away {
    justify-content: stretch;
  }

  .preview-club strong {
    font-size: 9px;
  }

  .preview-market {
    display: none;
  }

  .preview-ticket {
    margin-top: 0;
  }

  .auth-page--signup .auth-card {
    padding: 30px 22px;
  }

  .signup-form-top > span {
    font-size: 9px;
  }

  .signup-progress {
    margin: 22px 0 26px;
  }
}

/* Authentification recentrée : uniquement le formulaire premium */
.auth-page--form-only {
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background:
    radial-gradient(circle at 14% 12%, rgba(85,184,255,.18), transparent 27%),
    radial-gradient(circle at 88% 82%, rgba(242,60,88,.14), transparent 25%),
    linear-gradient(145deg, #06182e, #0a2444 58%, #111b33);
}

.auth-page--form-only::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(115deg, transparent 0 54px, rgba(255,255,255,.014) 55px 56px),
    linear-gradient(90deg, transparent 49.9%, rgba(255,255,255,.018) 50%, transparent 50.1%);
}

.auth-card--premium {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  max-width: none;
  overflow: hidden;
  padding: 40px 42px 34px;
  border: 1px solid rgba(125,181,231,.22);
  border-radius: 24px 8px 24px 8px;
  background:
    radial-gradient(circle at 100% 0, rgba(85,184,255,.08), transparent 28%),
    linear-gradient(155deg, rgba(10,39,72,.98), rgba(5,23,45,.99));
  box-shadow: 0 34px 100px rgba(0,6,18,.5);
  backdrop-filter: blur(22px);
}

.auth-card--signup {
  width: min(100%, 560px);
}

.auth-card--login {
  width: min(100%, 490px);
}

.auth-card-accent {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #55b8ff 0 62%, #f23c58 62%);
}

.premium-auth-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.premium-auth-top .logo {
  margin: 0;
  color: white;
  font-size: 1.1rem;
  letter-spacing: -.06em;
}

.premium-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(125,181,231,.18);
  border-radius: 20px;
  color: #8fa8bb;
  background: rgba(255,255,255,.025);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
}

.premium-auth-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55b8ff;
  box-shadow: 0 0 0 4px rgba(85,184,255,.1);
}

.premium-auth-heading {
  margin: 36px 0 28px;
}

.premium-auth-heading .eyebrow {
  margin-bottom: 11px;
  font-size: .66rem;
  letter-spacing: .16em;
}

.premium-auth-heading h1 {
  margin: 0 0 12px;
  color: white;
  font-size: clamp(2.1rem, 5vw, 2.8rem);
  letter-spacing: -.055em;
}

.premium-auth-heading > p:last-child {
  max-width: 420px;
  color: #91a9ba;
  font-size: .88rem;
  line-height: 1.6;
}

.auth-card--premium .auth-form {
  gap: 15px;
}

.auth-card--premium .field {
  gap: 7px;
}

.auth-card--premium .field label {
  color: #d6e1e9;
  font-size: .78rem;
}

.auth-card--premium input[type="text"],
.auth-card--premium input[type="email"],
.auth-card--premium input[type="password"] {
  min-height: 50px;
  border: 1px solid rgba(125,181,231,.2);
  border-radius: 10px;
  color: white;
  background: rgba(10,42,75,.78);
}

.auth-card--premium input:hover {
  border-color: rgba(125,181,231,.38);
}

.auth-card--premium input:focus {
  border-color: #55b8ff;
  background: rgba(12,48,84,.9);
}

.auth-card--premium .password-toggle {
  color: #72c2fa;
}

.auth-card--premium .checkbox {
  margin-top: 1px;
  padding: 11px 12px;
  border: 1px solid rgba(125,181,231,.12);
  border-radius: 9px;
  background: rgba(255,255,255,.018);
  font-size: .78rem;
}

.form-helper {
  color: #6f899d;
  font-size: 9px;
  font-weight: 500;
}

.field-hint {
  color: #6f899d;
  font-size: 9px;
  line-height: 1.4;
}

.premium-auth-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  margin-top: 2px;
  padding: 0 9px 0 19px;
}

.premium-auth-submit b {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #06182e;
  background: rgba(6,24,46,.12);
  font-size: 17px;
}

.auth-card--premium .auth-switch {
  margin-top: 22px;
  padding-top: 18px;
  font-size: .78rem;
}

@media (max-width: 820px) {
  body.auth-body {
    padding-bottom: 0;
  }
}

@media (max-width: 560px) {
  .auth-page--form-only {
    padding: 12px;
  }

  .auth-card--premium {
    padding: 32px 22px 28px;
    border-radius: 19px 6px 19px 6px;
  }

  .premium-auth-heading {
    margin: 30px 0 24px;
  }

  .premium-auth-heading h1 {
    font-size: 2.15rem;
  }

  .premium-auth-heading > p:last-child {
    font-size: .82rem;
  }
}

/* Matchs et classement : grilles fluides et logos d’équipes. */
.flag,
.ranking-flag {
  flex: 0 0 auto;
  color: #b9ccda;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -.4px;
}

.ranking-flag {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
}

.flag img,
.ranking-flag img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.fixture b,
.ranking-row > div > strong {
  min-width: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

@media (max-width: 1280px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .bet-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 820px) {
  .section-title-row {
    height: auto;
    min-height: 68px;
    margin-bottom: 10px;
  }

  .match {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    padding: 17px;
  }

  .match-date {
    margin: 0;
  }

  .fixture {
    width: 100%;
    grid-template-columns: 34px minmax(0, 1fr) 24px minmax(0, 1fr) 34px;
    gap: 8px;
    margin: 0;
  }

  .fixture b {
    font-size: 13px;
  }

  .odds {
    grid-column: 1;
    gap: 8px;
    padding: 0;
  }

  .odd {
    height: 50px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
  }

  .odd::before {
    content: "1";
    color: #7898ae;
    font-size: 8px;
    font-weight: 900;
  }

  .odd-1::before { content: "N"; }
  .odd-2::before { content: "2"; }

  .ranking-table {
    overflow: visible;
  }

  .ranking-labels,
  .ranking-row {
    min-width: 0;
    grid-template-columns: 34px minmax(0, 1fr) 34px 46px 42px;
    gap: 7px;
    padding-right: 15px;
    padding-left: 15px;
  }

  .ranking-labels > span:nth-child(4),
  .ranking-labels > span:nth-child(5),
  .ranking-labels > span:nth-child(6),
  .ranking-row > span:nth-of-type(2),
  .ranking-row > span:nth-of-type(3),
  .ranking-row > span:nth-of-type(4) {
    display: none;
  }

  .ranking-row {
    min-height: 74px;
  }

  .ranking-row > div {
    min-width: 0;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
  }

  .ranking-row > div > small {
    grid-column: 1 / -1;
    width: max-content;
    max-width: 100%;
  }

  .ranking-row > div > strong {
    font-size: 12px;
  }

  .ranking-flag {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 440px) {
  .fixture {
    grid-template-columns: 29px minmax(0, 1fr) 18px minmax(0, 1fr) 29px;
    gap: 5px;
  }

  .fixture .flag {
    width: 29px;
    height: 29px;
  }

  .fixture b {
    font-size: 11px;
  }

  .ranking-labels,
  .ranking-row {
    grid-template-columns: 32px minmax(0, 1fr) 32px 42px;
    gap: 5px;
    padding-right: 11px;
    padding-left: 11px;
  }

  .ranking-labels > span:nth-child(7),
  .ranking-row > span:nth-of-type(5) {
    display: none;
  }
}

/* Sur téléphone, le formulaire de pari se déplie dans le match choisi. */
.desktop-bet-slot {
  display: contents;
}

.mobile-match-bet-toggle,
.mobile-bet-close {
  display: none;
}

@media (max-width: 820px) {
  .desktop-bet-slot {
    display: none;
  }

  .match[data-mobile-bet-row] {
    --mobile-match-padding: 17px;
    cursor: pointer;
  }

  .match[data-mobile-bet-row].match--bet-open {
    background: rgba(85,184,255,.065);
    box-shadow: inset 3px 0 0 var(--blue);
  }

  .mobile-match-bet-toggle {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(85,184,255,.2);
    border-radius: 9px;
    color: #a9cce5;
    background: rgba(85,184,255,.055);
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
  }

  .mobile-match-bet-toggle:hover,
  .mobile-match-bet-toggle[aria-expanded="true"] {
    color: white;
    border-color: rgba(85,184,255,.42);
    background: rgba(85,184,255,.12);
  }

  .match--bet-open > .mobile-match-bet-toggle {
    display: none;
  }

  .match > .bet-card {
    grid-column: 1 / -1;
    order: initial;
    width: calc(100% + (2 * var(--mobile-match-padding)));
    margin: 2px calc(-1 * var(--mobile-match-padding)) calc(-1 * var(--mobile-match-padding));
    padding: 18px var(--mobile-match-padding) 20px;
    border-width: 1px 0 0;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(11,43,76,.98), rgba(5,22,42,.99));
    box-shadow: inset 0 12px 32px rgba(0,8,24,.16);
    animation: mobile-bet-reveal .22s ease-out;
  }

  .match > .bet-card .bet-title {
    display: none;
  }

  .match > .bet-card .mobile-bet-close {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px auto;
    padding: 5px 8px;
    border: 0;
    border-radius: 7px;
    color: #9eb4c5;
    background: rgba(255,255,255,.045);
    font-size: 11px;
    cursor: pointer;
  }

  .match > .bet-card .mobile-bet-close:hover {
    color: white;
    background: rgba(242,60,88,.12);
  }

  @keyframes mobile-bet-reveal {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 560px) {
  .match[data-mobile-bet-row] {
    --mobile-match-padding: 16px;
  }
}

/* Finition téléphone : densité, zones tactiles et safe areas. */
@media (max-width: 620px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .site-header {
    height: 64px;
    padding-inline: 13px;
  }

  .brand {
    font-size: 19px;
  }

  .avatar,
  .account-nav .avatar {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .page {
    padding: 14px 12px 34px;
  }

  .inside-page {
    padding: 22px 12px 42px;
  }

  .greeting {
    margin: 0 0 12px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .hero {
    min-height: 480px;
    border-radius: 12px;
  }

  .hero-copy {
    padding: 26px 18px;
  }

  .hero-kicker {
    margin-bottom: 12px;
    font-size: 8px;
    letter-spacing: 1.7px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 38px);
    letter-spacing: -1.8px;
  }

  .hero-description {
    margin-top: 17px;
    font-size: 12px;
    line-height: 1.42;
  }

  .competition-ranking-link {
    max-width: 100%;
    margin-top: 14px;
    padding: 9px 11px;
  }

  .competition-ranking-link__label {
    line-height: 1.25;
  }

  .competition-ranking-link span {
    font-size: 14px;
  }

  .hero-visual {
    inset: 64% -2% 2% 12%;
  }

  .league-lockup {
    gap: 9px 13px;
    padding: 10px 12px;
    transform: scale(.82);
    transform-origin: bottom right;
  }

  .league-mark {
    width: 68px;
    height: 68px;
  }

  .league-meta b {
    font-size: 32px;
  }

  .dashboard-grid {
    gap: 24px;
    margin-top: 24px;
  }

  .live-matches {
    margin-bottom: 32px;
    border-radius: 12px;
  }

  .live-matches-heading {
    min-height: 66px;
    gap: 5px;
    padding: 13px 14px;
  }

  .live-matches-heading h2 {
    font-size: 21px;
  }

  .live-empty {
    min-height: 60px;
    padding-inline: 14px;
    font-size: 11px;
  }

  .live-match-status {
    padding: 10px 12px;
  }

  .live-team {
    padding: 10px 8px;
  }

  .section-title-row {
    min-height: 57px;
    margin-bottom: 12px;
  }

  .section-title-row h2,
  .bet-title h2 {
    font-size: 22px;
  }

  .section-title-row .fiction-note {
    margin-top: 7px;
    text-align: left;
  }

  .match-table {
    border-radius: 13px 5px 13px 5px;
  }

  .match,
  .match[data-mobile-bet-row] {
    --mobile-match-padding: 13px;
    gap: 11px;
    padding: var(--mobile-match-padding);
  }

  .match-date {
    gap: 9px;
  }

  .calendar {
    width: 28px;
    height: 28px;
  }

  .match-date b {
    font-size: 12px;
  }

  .match-date small {
    margin-top: 3px;
  }

  .fixture {
    gap: 6px;
    margin-bottom: 0;
  }

  .odds {
    gap: 7px;
  }

  .odd {
    height: 46px;
  }

  .mobile-match-bet-toggle {
    min-height: 38px;
  }

  .match > .bet-card {
    padding-top: 14px;
    padding-bottom: 16px;
  }

  .match > .bet-card .mobile-bet-close {
    min-height: 32px;
    margin-bottom: 9px;
  }

  .selection-main {
    padding: 5px 11px 8px;
  }

  .selected-match {
    margin: 0 11px 9px 58px;
  }

  .stake-row {
    grid-template-columns: 54px 40px minmax(48px, 1fr) 45px 40px;
  }

  .stake-row button,
  .stake-row input,
  .stake-row > span {
    height: 44px;
  }

  .potential {
    margin: 14px 0;
  }

  .bet-button {
    min-height: 48px;
    padding: 12px;
  }

  .list-toggle-upcoming {
    min-height: 44px;
    margin-top: 12px;
  }

  .inside-heading {
    min-height: 145px;
    padding: 20px 18px;
  }

  .inside-heading h1 {
    font-size: 32px;
  }

  .profile-hero,
  .settings-heading {
    padding: 20px 16px;
  }

  .profile-avatar {
    width: 64px;
    height: 64px;
  }

  .profile-copy h1,
  .settings-heading h1 {
    font-size: 27px;
  }

  .balance-overview,
  .wallet-summary,
  .account-stats,
  .settings-grid,
  .report-layout {
    gap: 16px;
    margin-top: 22px;
  }

  .balance-main-card,
  .mini-stat {
    min-height: 160px;
    padding: 20px 18px;
  }

  .wallet-actions {
    gap: 7px;
    margin-top: 18px;
  }

  .wallet-actions button {
    min-height: 44px;
  }

  .wallet-primary-column {
    gap: 14px;
  }

  .content-card,
  .settings-card,
  .security-card,
  .ranking-card {
    margin-top: 22px;
  }

  .card-heading {
    min-height: 64px;
    padding: 14px;
  }

  .payment-form,
  .report-form,
  .settings-fields,
  .security-content,
  .report-context {
    gap: 14px;
    padding: 16px;
  }

  .settings-actions,
  .form-submit-row,
  .report-submit {
    gap: 12px;
    padding: 16px;
  }

  .transaction,
  .history-row {
    padding-right: 14px;
    padding-left: 14px;
  }

  .account-stats article {
    min-height: 112px;
    padding: 18px;
  }

  .ranking-labels,
  .ranking-row {
    padding-right: 11px;
    padding-left: 11px;
  }

  .mobile-nav {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    min-height: 58px;
    padding: 5px;
    border-radius: 16px;
  }

  .mobile-nav a {
    min-width: 0;
    min-height: 48px;
    padding: 4px 1px;
  }

  .site-footer {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    min-height: 0;
    margin-bottom: calc(-68px - env(safe-area-inset-bottom));
    padding: 12px 14px calc(74px + env(safe-area-inset-bottom));
  }

  .footer-support {
    align-items: center;
    flex-direction: row;
    gap: 7px;
  }

  .footer-brand > small,
  .footer-support > small,
  .footer-support > i {
    display: none;
  }
}

@media (max-width: 370px) {
  body {
    min-width: 0;
  }

  .page,
  .inside-page {
    padding-right: 9px;
    padding-left: 9px;
  }

  .hero-copy {
    padding-right: 15px;
    padding-left: 15px;
  }

  .hero h1 {
    font-size: 33px;
  }

  .fixture {
    grid-template-columns: 27px minmax(0, 1fr) 16px minmax(0, 1fr) 27px;
    gap: 4px;
  }

  .fixture .flag {
    width: 27px;
    height: 27px;
  }

  .fixture b {
    font-size: 10px;
  }
}
