:root {
  color-scheme: light;
  --gold-950: #2b2200;
  --gold-900: #4c3b05;
  --gold-800: #7a610f;
  --gold-700: #e4bb2d;
  --gold-600: #efca45;
  --gold-500: #f6d86d;
  --gold-200: #f7e7ad;
  --gold-100: #fff7d9;
  --cream: #fffdf4;
  --mist: #f4f0e4;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --text: #211b08;
  --muted: #746845;
  --line: rgba(89, 70, 8, 0.14);
  --shadow-soft: 0 16px 40px rgba(76, 59, 5, 0.12);
  --shadow-strong: 0 28px 80px rgba(43, 34, 0, 0.22);
  --radius-xl: 32px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --app-width: 450px;
  --bottom-nav-height: 86px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--mist); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(228, 187, 45, 0.24), transparent 32rem),
    radial-gradient(circle at 90% 8%, rgba(247, 231, 173, 0.82), transparent 24rem),
    linear-gradient(180deg, #fffdf4, #f8efd0 64%, #efe0a5);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.icon { width: 21px; height: 21px; flex: 0 0 auto; }

.splash {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 32%, rgba(255,255,255,.18), transparent 12rem),
    linear-gradient(145deg, var(--gold-950), var(--gold-700));
  transition: opacity .5s ease, visibility .5s ease;
}
.splash img {
  width: 126px;
  height: 126px;
  object-fit: contain;
  border-radius: 34px;
  padding: 16px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 28px 90px rgba(0,0,0,.32);
  animation: splashPop .78s cubic-bezier(.18,.9,.2,1);
}
.splash.is-hidden { opacity: 0; visibility: hidden; }
@keyframes splashPop { from { transform: translateY(12px) scale(.88); opacity: .2; } to { transform: none; opacity: 1; } }

.app-frame {
  position: relative;
  width: min(100%, var(--app-width));
  min-height: 100vh;
  margin: 0 auto;
  overflow: clip;
  background:
    linear-gradient(180deg, rgba(255,255,255,.38), transparent 15rem),
    #fffaf0;
  box-shadow: 0 0 0 1px rgba(89, 70, 8, .05), var(--shadow-strong);
}

.app-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 60;
  width: min(100%, var(--app-width));
  min-height: 142px;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 18px 48px;
  color: #fffdf4;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 247, 217, .30), transparent 9rem),
    linear-gradient(145deg, rgba(43, 34, 0, .98), rgba(228, 187, 45, .96));
  pointer-events: none;
  transform: translateX(-50%);
}
.app-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -34px;
  height: 70px;
  background: linear-gradient(180deg, rgba(228,187,45,.32), rgba(255,250,240,0));
  pointer-events: none;
}
.app-header__top,
.header-actions,
.brand-mark,
.icon-button,
.avatar-button {
  display: flex;
  align-items: center;
}
.app-header__top {
  position: relative;
  z-index: 2;
  justify-content: space-between;
  gap: 16px;
  pointer-events: auto;
}
.brand-mark {
  position: relative;
  z-index: 3;
  min-width: 0;
  width: 84px;
  height: 84px;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.greeting {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3px;
  margin-top: 18px;
}
.greeting span {
  color: rgba(255,253,244,.84);
  font-size: .88rem;
  font-weight: 650;
}
.greeting strong {
  max-width: 260px;
  font-size: 1.34rem;
  line-height: 1.06;
  letter-spacing: 0;
}
.header-actions { gap: 10px; }
.header-actions {
  position: relative;
}
.header-actions--floating {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  left: 50%;
  z-index: 85;
  width: min(100%, var(--app-width));
  justify-content: flex-end;
  padding: 0 18px;
  pointer-events: none;
  transform: translateX(-50%);
}
.header-actions--floating > * { pointer-events: auto; }
.notifications-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 74px;
  display: grid;
  gap: 10px;
  width: min(320px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 22px;
  color: var(--ink);
  background: rgba(255,255,255,.96);
  box-shadow: 0 22px 54px rgba(76,59,5,.18);
  backdrop-filter: blur(18px);
}
.notifications-panel[hidden] { display: none; }
.notifications-panel > strong {
  padding: 0 2px;
  color: var(--gold-700);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.notifications-panel a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  color: var(--ink);
  background: rgba(228,187,45,.12);
  text-decoration: none;
}
.notifications-panel .icon {
  width: 38px;
  height: 38px;
  padding: 10px;
  border-radius: 14px;
  color: var(--gold-700);
  background: #fff;
}
.notifications-panel span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.notifications-panel b {
  font-size: .9rem;
}
.notifications-panel small {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}
.avatar-menu {
  display: grid;
  justify-items: center;
  gap: 4px;
}
.icon-button,
.avatar-button {
  position: relative;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  color: #fffdf4;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 30px rgba(0,0,0,.16);
}
button.icon-button { padding: 0; cursor: pointer; }
.avatar-button {
  color: var(--gold-800);
  background: rgba(255,255,255,.95);
}
.logout-link {
  color: rgba(255,253,244,.80);
  font-size: .68rem;
  font-style: italic;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0,0,0,.28);
}
.logout-link:hover { color: #fff; text-decoration: underline; }
.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #f6d86d;
  box-shadow: 0 0 0 0 rgba(246,216,109,.58);
  animation: pulseDot 1.6s ease-out infinite;
}
@keyframes pulseDot { 70%, 100% { box-shadow: 0 0 0 9px rgba(246,216,109,0); } }

.app-content {
  position: relative;
  z-index: 72;
  display: grid;
  gap: 20px;
  padding: 112px 16px calc(var(--bottom-nav-height) + 26px + var(--safe-bottom));
}

.app-credit {
  display: grid;
  place-items: center;
  padding: 8px 16px 30px;
  color: rgba(28, 28, 28, .58);
  font-size: .75rem;
  line-height: 1.3;
  font-style: italic;
  text-align: center;
  white-space: nowrap;
}

.app-credit p {
  margin: 0;
}

.app-credit a {
  color: rgba(28, 28, 28, .78);
  font-weight: 600;
  text-decoration: none;
}

.home-hero {
  position: relative;
  display: grid;
  gap: 22px;
  overflow: hidden;
  min-height: 620px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 34px;
  color: #fffdf4;
  background:
    radial-gradient(circle at 85% 16%, rgba(246,216,109,.32), transparent 11rem),
    radial-gradient(circle at 10% 86%, rgba(255,255,255,.12), transparent 12rem),
    linear-gradient(150deg, var(--gold-950), var(--gold-800) 54%, #e4bb2d);
  box-shadow: var(--shadow-strong);
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 18% -28% auto auto;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 16px;
}
.eyebrow,
.section-title span,
.highlight-card span,
.news-card span {
  display: block;
  color: var(--gold-600);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.home-hero .eyebrow { color: rgba(255,247,217,.86); }
.home-hero h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.55rem, 13vw, 4.45rem);
  line-height: .92;
  letter-spacing: 0;
}
.home-hero p {
  max-width: 34rem;
  margin: 0;
  color: rgba(255,253,244,.80);
  font-size: 1rem;
  line-height: 1.56;
}
.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 4px;
}
.primary-action,
.secondary-action,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border: 0;
  border-radius: 20px;
  font-weight: 850;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.primary-action--split {
  display: grid;
  grid-template-columns: auto 1fr auto;
  justify-content: stretch;
  text-align: left;
}
.primary-action--split strong {
  font-size: .92rem;
  font-weight: 850;
}
.primary-action,
.primary-button {
  color: var(--gold-950);
  background: linear-gradient(135deg, #ffffff, #fff2be);
  box-shadow: 0 18px 36px rgba(0,0,0,.18);
}
.secondary-action {
  color: #fffdf4;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(16px);
}
.hero-visual {
  position: relative;
  z-index: 2;
  align-self: end;
}
.hero-phone {
  display: grid;
  gap: 14px;
  max-width: 294px;
  margin-left: auto;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 32px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(20px);
  box-shadow: 0 28px 64px rgba(0,0,0,.24);
}
.hero-phone__top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: rgba(255,253,244,.84);
  font-size: .72rem;
  font-weight: 800;
}
.hero-phone__top .icon {
  width: 18px;
  height: 18px;
  opacity: .9;
}
.hero-bell .icon {
  transform-origin: 50% 4px;
  animation: heroBellRing 3.2s ease-in-out infinite;
}
@keyframes heroBellRing {
  0%, 65%, 100% { transform: rotate(0deg); }
  70% { transform: rotate(14deg); }
  74% { transform: rotate(-12deg); }
  78% { transform: rotate(10deg); }
  82% { transform: rotate(-8deg); }
  86% { transform: rotate(6deg); }
  90% { transform: rotate(-4deg); }
}
.hero-niver-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  justify-self: end;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 18px;
  color: #fffdf4;
  background: rgba(255,255,255,.14);
  font-size: .78rem;
  font-weight: 850;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.hero-niver-card:active { transform: translateY(1px); }
.hero-niver-card__icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.hero-niver-card__icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,.42);
  opacity: 0;
  animation: heroNiverPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes heroNiverPulse {
  0% { transform: scale(.86); opacity: 0; }
  32% { opacity: .55; }
  100% { transform: scale(1.18); opacity: 0; }
}
.hero-niver-card__icon .icon {
  width: 28px;
  height: 28px;
  padding: 7px;
  border-radius: 11px;
  color: var(--gold-800);
  background: rgba(255,255,255,.92);
}
.hero-niver-card .hero-niver-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  max-width: 180px;
  text-align: right;
}
.hero-niver-card__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  animation: heroNiverNudge 1.9s ease-in-out infinite;
}
.hero-niver-card__chevron .icon {
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  opacity: .75;
}
@keyframes heroNiverNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}
.hero-niver-card small {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 750;
}
.hero-niver-card strong {
  overflow: hidden;
  font-size: .78rem;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.has-mini-modal { overflow: hidden; }
.mini-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
}
.mini-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,.46);
  backdrop-filter: blur(10px);
}
.mini-modal__card {
  position: relative;
  width: min(360px, calc(100vw - 36px));
  padding: 16px 16px 14px;
  border-radius: 22px;
  border: 1px solid rgba(228,187,45,.35);
  background: rgba(255,253,244,.98);
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
  display: grid;
  gap: 12px;
}
.mini-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  background: rgba(228,187,45,.14);
  color: var(--gold-900);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.mini-modal__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 34px;
}
.mini-modal__avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(228,187,45,.55);
  box-shadow: 0 12px 26px rgba(76,59,5,.12);
}
.mini-modal__head strong {
  display: block;
  color: var(--gold-900);
  font-weight: 950;
}
.mini-modal__head small {
  display: block;
  color: var(--muted);
  font-weight: 750;
  margin-top: 2px;
}
.mini-modal__text {
  margin: 0;
  color: var(--text);
  font-weight: 750;
  line-height: 1.4;
}
.mini-modal__actions {
  display: flex;
  gap: 10px;
}
.mini-modal__primary,
.mini-modal__secondary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 16px;
  font-weight: 950;
  text-decoration: none;
}
.mini-modal__primary {
  background: #111111;
  color: #ffffff;
}
button.mini-modal__secondary {
  border: 1px solid rgba(17,17,17,.22);
  background: transparent;
  color: #111111;
  cursor: pointer;
}

.balance-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 24px;
  color: var(--gold-950);
  background: linear-gradient(145deg, #fff, #fff2be);
}
.balance-card small,
.balance-card span {
  color: #746845;
  font-weight: 780;
}
.balance-card strong {
  font-size: 2.4rem;
  line-height: .95;
}
.mini-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mini-stack span,
.mini-stack a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  border-radius: 17px;
  color: #fffdf4;
  background: rgba(255,255,255,.13);
  font-size: .72rem;
  font-weight: 850;
  text-decoration: none;
}
.mini-stack a.mini-stack__birthday {
  color: #111111;
  background: rgba(255,255,255,.88);
}
.mini-stack .icon { width: 16px; height: 16px; }

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.quick-action {
  display: grid;
  gap: 9px;
  justify-items: center;
  align-content: center;
  min-height: 106px;
  padding: 12px 6px;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 24px;
  color: var(--muted);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-soft);
  text-align: center;
  font-size: .73rem;
  font-weight: 850;
}
.quick-action span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 19px;
  color: #fff;
  background: linear-gradient(145deg, var(--gold-800), var(--gold-500));
  box-shadow: 0 16px 28px rgba(228,187,45,.24);
}

.section-block,
.highlight-section,
.institutional-section,
.news-section,
.members-section {
  display: grid;
  gap: 14px;
}
.section-title {
  display: grid;
  gap: 6px;
  padding: 0 4px;
}
.section-title strong {
  max-width: 24rem;
  font-size: 1.36rem;
  line-height: 1.08;
  letter-spacing: 0;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.service-card {
  display: grid;
  align-content: space-between;
  gap: 16px;
  min-height: 158px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 28px;
  background: rgba(255,255,255,.8);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card--featured {
  color: #fff;
  background:
    radial-gradient(circle at 85% 12%, rgba(255,255,255,.22), transparent 7rem),
    linear-gradient(145deg, var(--gold-900), var(--gold-600));
}
.service-card .icon {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 17px;
  color: var(--gold-700);
  background: var(--gold-100);
}
.service-card--featured .icon {
  color: var(--gold-950);
  background: rgba(255,255,255,.92);
}
.service-card span {
  display: block;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.08;
}
.service-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 680;
  line-height: 1.34;
}
.service-card--featured small { color: rgba(255,253,244,.80); }

.finance-shell {
  position: relative;
  z-index: 60;
  grid-column: 1 / -1;
  min-width: 0;
  min-height: calc(100vh - 210px - var(--bottom-nav-height));
  background: #fff;
}
.finance-shell__frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 720px;
  height: calc(100vh - 210px);
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 959px) {
  .page-sumulas {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
  .page-sumulas .app-header {
    z-index: 80;
    pointer-events: none;
  }
  .page-sumulas .brand-mark {
    pointer-events: auto;
  }
  .page-sumulas .app-frame,
  .page-sumulas .app-content {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  .page-sumulas .finance-shell {
    z-index: 30;
    height: calc(100vh - 112px - var(--bottom-nav-height) - var(--safe-bottom));
    height: calc(100dvh - 112px - var(--bottom-nav-height) - var(--safe-bottom));
    min-height: 0;
    overflow: hidden;
  }
  .page-sumulas .finance-shell__frame {
    height: 100%;
    min-height: 0;
  }
}
.next-lineup {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  padding-top: 24px;
}
.empty-state-card {
  display: grid;
  gap: 12px;
  place-items: center;
  text-align: center;
  width: 100%;
  padding: 34px 22px;
  min-height: 240px;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,242,190,.92));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 20px 46px rgba(89,70,8,.13);
}
.empty-state-card span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: #e4bb2d;
}
.empty-state-card strong {
  color: var(--ink);
  font-size: 2rem;
  letter-spacing: 0;
}
.empty-state-card p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}
.lineup-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lineup-team {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 20px 46px rgba(89,70,8,.13);
}
.lineup-team span {
  color: var(--gold-700);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}
.lineup-team strong {
  display: block;
  margin-top: 4px;
  font-size: 1.75rem;
  color: var(--ink);
}
.lineup-team ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.lineup-team li {
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--ink);
  font-weight: 750;
  background: rgba(228,187,45,.13);
}

.highlight-section { grid-template-columns: 1fr; }
.highlight-card {
  position: relative;
  display: grid;
  gap: 10px;
  overflow: hidden;
  min-height: 176px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 30px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-soft);
}
.highlight-card > * {
  position: relative;
  z-index: 1;
}
.highlight-card--dark {
  color: #fff;
  background:
    radial-gradient(circle at 92% 16%, rgba(246,216,109,.30), transparent 8rem),
    linear-gradient(145deg, #211b08, var(--gold-800));
}
.highlight-card--craque::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    var(--highlight-bg, linear-gradient(145deg, #211b08, var(--gold-800))),
    linear-gradient(145deg, rgba(43,34,0,.35), rgba(228,187,45,.25));
  background-size: cover;
  background-position: center 33%;
  transform: scale(1.02);
}
.highlight-card--craque {
  align-content: end;
  padding-top: 180px;
  padding-bottom: 28px;
}
.highlight-card--craque::after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(43,34,0,0), rgba(43,34,0,.86));
  pointer-events: none;
}
.highlight-card--dark span { color: rgba(255,247,217,.86); }
.highlight-card strong {
  font-size: 1.26rem;
  line-height: 1.12;
}
.highlight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}
.highlight-card--dark p { color: rgba(255,253,244,.80); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.values-grid article,
.values-grid a,
.news-card,
.member-avatar,
.premium-footer,
.content-card,
.profile-card,
.timeline-item {
  border: 1px solid rgba(255,255,255,.78);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
.values-grid article,
.values-grid a {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 18px;
  border-radius: 26px;
}
.values-grid .icon {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 16px;
  color: var(--gold-700);
  background: var(--gold-100);
}
.values-grid strong { font-size: .98rem; }
.values-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.36;
}
.admin-card--featured {
  grid-column: 1 / -1;
  min-height: 176px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 12%, rgba(246,216,109,.32), transparent 10rem),
    linear-gradient(145deg, var(--gold-950), var(--gold-700)) !important;
}
.admin-card--featured .icon {
  color: var(--gold-950);
  background: rgba(255,255,255,.92);
}
.admin-card--featured p { color: rgba(255,253,244,.80); }

.news-cards {
  display: grid;
  gap: 12px;
}
.news-card {
  position: relative;
  display: grid;
  align-content: end;
  gap: 8px;
  overflow: hidden;
  min-height: 132px;
  padding: 20px;
  border-radius: 28px;
}
.news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(228,187,45,.24), transparent 7rem),
    linear-gradient(135deg, rgba(255,247,217,.88), rgba(255,255,255,.1));
  pointer-events: none;
}
.news-card > * { position: relative; z-index: 1; }
.news-card--main {
  min-height: 148px;
  padding: 18px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 14%, rgba(255,255,255,.22), transparent 10rem),
    linear-gradient(145deg, var(--gold-950), var(--gold-700));
}
.news-card--main::before { display: none; }
.news-card--main span { color: rgba(255,247,217,.86); }
.news-card strong {
  max-width: 24rem;
  font-size: 1.08rem;
  line-height: 1.16;
}
.news-card--main strong { font-size: 1.28rem; }
.news-card p {
  margin: 0;
  max-width: 27rem;
  color: rgba(255,253,244,.80);
  font-size: .92rem;
  line-height: 1.42;
}

.birthdays-page {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  padding-top: 24px;
}
.birthdays-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.birthday-month {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.86);
  box-shadow: 0 18px 42px rgba(89,70,8,.10);
}
.birthday-month--featured {
  max-width: 680px;
  width: 100%;
}
.birthday-month h2 {
  margin: 0;
  color: var(--gold-700);
  font-size: 1.08rem;
}
.birthday-list {
  display: grid;
  gap: 10px;
}
.birthday-player {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.birthday-player img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(76,59,5,.12);
}
.birthday-player div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.birthday-player strong {
  overflow: hidden;
  color: var(--ink);
  font-size: .95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.birthday-player span,
.birthday-empty {
  color: var(--muted);
  font-size: .84rem;
}
.birthday-empty { margin: 0; }

.match-report {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  padding-top: 48px;
}
.match-report-card {
  display: grid;
  gap: 22px;
  padding: 24px;
  border-radius: 30px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 22px 54px rgba(89,70,8,.13);
}
.match-score {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 16%, rgba(255,255,255,.22), transparent 10rem),
    linear-gradient(145deg, var(--gold-950), var(--gold-700));
}
.match-score span,
.match-article span {
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.match-score strong {
  font-size: clamp(1.8rem, 7vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}
.match-article {
  display: grid;
  gap: 12px;
}
.match-article span { color: var(--gold-700); }
.match-article h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}
.match-article p,
.match-columns p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}
.match-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.match-columns section,
.match-scorers {
  padding: 18px;
  border-radius: 22px;
  background: rgba(228,187,45,.12);
}
.match-columns h2,
.match-scorers h2 {
  margin: 0 0 8px;
  color: var(--gold-700);
  font-size: 1rem;
}
.match-scorers div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.match-scorers span {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--gold-700);
  background: #fff;
  font-size: .86rem;
  font-weight: 800;
}

.next-birthday-page {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  padding-top: 48px;
}
.next-birthday-card {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 14%, rgba(255,255,255,.2), transparent 10rem),
    linear-gradient(145deg, var(--gold-950), var(--gold-700));
  box-shadow: 0 22px 54px rgba(89,70,8,.16);
}
.next-birthday-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 26px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 34px rgba(0,0,0,.16);
}
.next-birthday-card div {
  display: grid;
  gap: 10px;
}
.next-birthday-card span {
  color: rgba(255,247,217,.86);
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.next-birthday-card h1 {
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 4rem);
  line-height: .95;
  letter-spacing: 0;
}
.next-birthday-card p {
  margin: 0;
  max-width: 36rem;
  color: rgba(255,253,244,.84);
  font-size: 1.04rem;
  line-height: 1.5;
}

.member-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.member-avatar {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 158px;
  padding: 18px 12px;
  border-radius: 28px;
  text-align: center;
}
.member-avatar img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  padding: 10px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(76,59,5,.10);
}
.member-avatar strong { font-size: .92rem; }
.member-avatar span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 780;
}

.gallery-hero {
  display: grid;
  gap: 18px;
  min-height: 244px;
  align-content: end;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(246,216,109,.32), transparent 10rem),
    linear-gradient(145deg, var(--gold-950), var(--gold-700));
  box-shadow: var(--shadow-strong);
}
.gallery-hero .eyebrow { color: rgba(255,247,217,.86); }
.gallery-hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(2.7rem, 13vw, 4.6rem);
  line-height: .92;
  letter-spacing: 0;
}
.gallery-hero p {
  max-width: 34rem;
  margin: 12px 0 0;
  color: rgba(255,253,244,.80);
  line-height: 1.5;
}
.gallery-count {
  justify-self: start;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--gold-950);
  background: rgba(255,255,255,.92);
  font-size: .8rem;
  font-weight: 900;
}
.players-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.player-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 28px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
.player-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  background: var(--gold-100);
}
.player-card div {
  display: grid;
  gap: 5px;
  padding: 0 4px 4px;
  justify-items: center;
  text-align: center;
}
.player-card strong {
  max-width: 100%;
  overflow: hidden;
  font-size: .96rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-card span {
  color: var(--gold-700);
  font-size: .8rem;
  font-weight: 850;
}
.gallery-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 220px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 30px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.gallery-empty .icon {
  width: 52px;
  height: 52px;
  padding: 13px;
  border-radius: 20px;
  color: var(--gold-700);
  background: var(--gold-100);
}
.gallery-empty p {
  margin: 0;
  color: var(--muted);
}

.scout-hero {
  display: grid;
  gap: 18px;
  min-height: 244px;
  align-content: end;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(246,216,109,.32), transparent 10rem),
    linear-gradient(145deg, var(--gold-950), var(--gold-700));
  box-shadow: var(--shadow-strong);
}
.scout-hero .eyebrow { color: rgba(255,247,217,.86); }
.scout-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 14vw, 5rem);
  line-height: .92;
  letter-spacing: 0;
}
.scout-hero p {
  max-width: 34rem;
  margin: 12px 0 0;
  color: rgba(255,253,244,.80);
  line-height: 1.45;
}
.scout-filter {
  display: grid;
  gap: 7px;
  justify-self: start;
  min-width: 112px;
}
.scout-filter label {
  color: rgba(255,253,244,.74);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.scout-filter select {
  min-height: 46px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 17px;
  padding: 0 12px;
  color: #fff;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(16px);
  outline: none;
}
.scout-card-shell {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 0%, rgba(228,187,45,.20), transparent 12rem),
    rgba(255,255,255,.84);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
.scout-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.scout-table th,
.scout-table td {
  height: 66px;
  padding: 0 7px;
  border-bottom: 1px solid rgba(89,70,8,.10);
  color: var(--muted);
  font-size: clamp(1rem, 4.2vw, 1.45rem);
  text-align: center;
  vertical-align: middle;
}
.scout-table th {
  height: 48px;
  color: var(--gold-700);
  font-size: .92rem;
  font-weight: 900;
}
.scout-table th a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  border-radius: 14px;
}
.scout-table th a:hover,
.scout-table .col-p a {
  color: #fff;
  background: var(--gold-700);
}
.scout-table tbody tr:last-child td { border-bottom: 0; }
.scout-table .pos {
  width: 42px;
  color: var(--gold-800);
  font-weight: 900;
}
.scout-table .jogador {
  width: 54%;
  text-align: left;
}
.scout-table .col-stat { width: 12%; }
.jogador-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.foto-jogador {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(228,187,45,.18);
  border-radius: 50%;
  background: var(--gold-100);
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(76,59,5,.12);
}
.scout-table .nome {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(.98rem, 4.5vw, 1.3rem);
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scout-table .valor-principal {
  color: var(--gold-800);
  font-weight: 950;
}
.scout-table .zona-baixa .pos { color: #d1293a; }
.scout-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 220px;
  padding: 28px;
  text-align: center;
}
.scout-empty .icon {
  width: 52px;
  height: 52px;
  padding: 13px;
  border-radius: 20px;
  color: var(--gold-700);
  background: var(--gold-100);
}

.premium-footer {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 30px;
  color: #fff8df;
  background:
    radial-gradient(circle at 86% 10%, rgba(246,216,109,.24), transparent 10rem),
    linear-gradient(145deg, var(--gold-950), var(--gold-800));
}
.premium-footer img {
  width: 96px;
  height: 60px;
  object-fit: contain;
  padding: 8px 10px;
  border-radius: 18px;
  background: #fff;
}
.premium-footer strong { font-size: 1.1rem; }
.premium-footer p {
  margin: 6px 0 0;
  color: rgba(255,253,244,.74);
  line-height: 1.46;
}
.premium-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.premium-footer a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-size: .78rem;
  font-weight: 820;
}

.bottom-nav {
  position: fixed;
  z-index: 85;
  left: 50%;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, var(--app-width));
  min-height: calc(var(--bottom-nav-height) + var(--safe-bottom));
  padding: 10px 7px calc(10px + var(--safe-bottom));
  border-top: 1px solid rgba(89,70,8,.10);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(22px);
  box-shadow: 0 -18px 42px rgba(76,59,5,.14);
  transform: translateX(-50%);
}
.bottom-nav a {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 58px;
  border-radius: 19px;
  color: #82734b;
  font-size: .65rem;
  font-weight: 820;
}
.bottom-nav .icon { width: 20px; height: 20px; }
.bottom-nav a.is-active {
  color: var(--gold-800);
  background: var(--gold-100);
}

.page-title {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 12%, rgba(246,216,109,.28), transparent 9rem),
    linear-gradient(145deg, var(--gold-950), var(--gold-700));
  box-shadow: var(--shadow-strong);
}
.page-title h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
}
.page-title p {
  margin: 0;
  color: rgba(255,253,244,.76);
  line-height: 1.5;
}
.member-grid,
.card-list {
  display: grid;
  gap: 12px;
}
.content-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 28px;
}
.content-card .icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 16px;
  color: var(--gold-700);
  background: var(--gold-100);
}
.content-card h3 { margin: 0; }
.content-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.regulation-page {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding-top: 28px;
}
.regulation-hero,
.regulation-card {
  border: 1px solid rgba(255,255,255,.78);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
.regulation-hero {
  display: grid;
  gap: 10px;
  padding: 26px;
  border-radius: 30px;
  color: #fffdf4;
  background:
    radial-gradient(circle at 86% 16%, rgba(255,255,255,.24), transparent 9rem),
    linear-gradient(145deg, var(--gold-950), var(--gold-700));
}
.regulation-hero span {
  color: rgba(255,247,217,.86);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}
.regulation-hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(2.55rem, 11vw, 4.4rem);
  line-height: .94;
  letter-spacing: 0;
}
.regulation-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  color: var(--text);
}
.regulation-card h2,
.regulation-card h3,
.regulation-card p,
.regulation-card ul,
.regulation-card ol {
  margin: 0;
}
.regulation-card h2 {
  color: var(--gold-800);
  font-size: .88rem;
  font-weight: 900;
  text-transform: uppercase;
}
.regulation-card h3 {
  font-size: 1.08rem;
  line-height: 1.2;
}
.regulation-card p,
.regulation-card li {
  color: var(--muted);
  line-height: 1.58;
}
.regulation-card ul,
.regulation-card ol {
  padding-left: 20px;
}
.regulation-card a {
  color: var(--gold-800);
  font-weight: 850;
}
.regulation-summary,
.regulation-roman {
  display: grid;
  gap: 8px;
  list-style: none;
  padding-left: 0 !important;
}
.regulation-formula {
  overflow-x: auto;
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  color: var(--gold-950);
  background: var(--gold-100);
  font: 800 .86rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}
.chip {
  justify-self: start;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--gold-800);
  background: var(--gold-100);
  font-size: .76rem;
  font-weight: 850;
}
.timeline {
  display: grid;
  gap: 12px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
}
.timeline-item > div {
  display: grid;
  align-content: start;
  gap: 6px;
  color: var(--gold-700);
}
.timeline h3 { margin: 0 0 6px; }
.timeline p { margin: 0; color: var(--muted); line-height: 1.5; }
.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 30px;
}
.profile-card img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  padding: 9px;
  border-radius: 22px;
  background: #fff;
}
.profile-card h2 { margin: 0; }
.profile-card p { margin: 4px 0 0; color: var(--muted); }

.login-page .app-frame {
  min-height: 100vh;
}
.login-page .app-header,
.login-page .header-actions,
.login-page .bottom-nav { display: none; }
.login-page .app-content {
  min-height: 100vh;
  padding: 22px 16px;
  place-items: center;
}
.login-screen {
  width: 100%;
  display: grid;
  gap: 18px;
}
.login-hero {
  display: grid;
  gap: 18px;
  min-height: 356px;
  align-content: end;
  padding: 24px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 16%, rgba(246,216,109,.32), transparent 10rem),
    linear-gradient(145deg, var(--gold-950), var(--gold-700));
  box-shadow: var(--shadow-strong);
}
.login-logo {
  width: 116px;
  height: 116px;
  object-fit: contain;
  padding: 15px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.login-hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(2.6rem, 13vw, 4rem);
  line-height: .92;
}
.login-hero p {
  margin: 12px 0 0;
  color: rgba(255,253,244,.76);
  line-height: 1.56;
}
.login-hero .eyebrow { color: rgba(255,247,217,.86); }
.login-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 30px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
.login-card .primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--gold-800), var(--gold-600));
  box-shadow: 0 18px 34px rgba(228,187,45,.26);
}
.form-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-head > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: var(--gold-700);
  background: var(--gold-100);
}
.form-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.4;
}
label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 780;
}
input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(255,255,255,.94);
  outline: none;
}
input:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(228,187,45,.18);
}
.alert {
  padding: 13px 14px;
  border-radius: 18px;
  color: #8a1820;
  background: #fff0f2;
  font-weight: 800;
}

.toast-stack {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(100px + var(--safe-bottom));
  z-index: 80;
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.toast {
  padding: 14px 16px;
  border-radius: 18px;
  color: #fff;
  background: var(--gold-950);
  box-shadow: var(--shadow-strong);
  animation: toastIn .25s ease;
}
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (hover: hover) {
  .primary-action:hover,
  .secondary-action:hover,
  .primary-button:hover,
  .quick-action:hover,
  .service-card:hover,
  .highlight-card:hover,
  .news-card:hover,
  .member-avatar:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 54px rgba(76,59,5,.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash img,
  .notification-dot,
  .reveal,
  .toast {
    animation: none;
    transition: none;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-bell .icon,
  .hero-niver-card__icon::after,
  .hero-niver-card__chevron {
    animation: none;
  }
}

@media (max-width: 719px) {
  .lineup-grid { grid-template-columns: 1fr; }
  .match-columns { grid-template-columns: 1fr; }
  .next-birthday-card { grid-template-columns: 1fr; }
  .next-birthday-card img { max-width: 220px; }
  .empty-state-card { min-height: 230px; border-radius: 24px; }
  .empty-state-card strong { font-size: 1.6rem; }
}

@media (max-width: 374px) {
  .app-content { padding-inline: 12px; }
  .home-hero { min-height: 590px; padding: 20px; }
  .home-hero h1 { font-size: 2.3rem; }
  .quick-action { min-height: 98px; font-size: .68rem; }
  .service-grid,
  .values-grid,
  .member-gallery { gap: 10px; }
}

@media (max-width: 959px) {
  .finance-shell {
    margin: -4px -16px calc(-26px - var(--safe-bottom));
    min-height: calc(100vh - 112px - var(--bottom-nav-height) - var(--safe-bottom));
    min-height: calc(100dvh - 112px - var(--bottom-nav-height) - var(--safe-bottom));
  }
  .finance-shell__frame {
    min-height: 0;
    height: calc(100vh - 112px - var(--bottom-nav-height) - var(--safe-bottom));
    height: calc(100dvh - 112px - var(--bottom-nav-height) - var(--safe-bottom));
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 374px) {
  .finance-shell { margin-inline: -12px; }
}

@media (min-width: 720px) and (max-width: 959px) {
  body { padding: 24px 0; }
  .app-frame,
  .bottom-nav { border-radius: 38px; }
  .app-frame { min-height: calc(100vh - 48px); }
  .app-header {
    top: 24px;
    border-radius: 38px 38px 0 0;
  }
  .header-actions--floating {
    top: calc(24px + env(safe-area-inset-top, 0px) + 18px);
  }
  .bottom-nav { bottom: 24px; }
}

@media (min-width: 960px) {
  :root {
    --app-width: 1180px;
    --bottom-nav-height: 78px;
  }
  body { padding: 24px; }
  .app-frame {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 48px);
    border-radius: 40px;
  }
  .app-header {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    min-height: 156px;
    padding: 24px 34px 48px;
    border-radius: 40px 40px 0 0;
    transform: none;
  }
  .brand-mark {
    width: 84px;
    height: 84px;
  }
  .greeting strong {
    max-width: 520px;
    font-size: 1.75rem;
  }
  .header-actions--floating {
    top: 48px;
    width: min(calc(100% - 48px), var(--app-width));
    padding: 0 34px;
  }
  .app-content {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    flex: 1;
    gap: 20px;
    padding: 22px 24px 24px;
  }
  .home-hero {
    grid-column: span 12;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    align-items: stretch;
    min-height: 420px;
    padding: 30px;
  }
  .home-hero h1 {
    max-width: 15ch;
    font-size: clamp(3.15rem, 4.8vw, 4.85rem);
    line-height: .95;
  }
  .home-hero p {
    max-width: 32rem;
  }
  .hero-actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }
  .hero-actions > a {
    min-width: 176px;
    padding-inline: 20px;
  }
  .hero-phone {
    max-width: 300px;
    margin-top: 12px;
  }
  .quick-actions {
    grid-column: span 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-self: stretch;
  }
  .services-section { grid-column: span 12; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .highlight-section {
    grid-column: span 6;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-self: stretch;
  }
  .institutional-section,
  .news-section {
    grid-column: span 6;
    align-self: stretch;
  }
  .highlight-section .highlight-card {
    min-height: 100%;
  }
  .members-section { grid-column: span 6; }
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card--main { grid-column: span 2; }
  .premium-footer {
    grid-column: span 12;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .gallery-hero,
  .players-gallery,
  .gallery-empty,
  .scout-hero,
  .scout-card-shell { grid-column: span 12; }
  .gallery-hero {
    grid-template-columns: 1fr auto;
    align-items: end;
    min-height: 360px;
    padding: 38px;
  }
  .gallery-hero h1 { font-size: clamp(4rem, 7vw, 6rem); }
  .players-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .scout-hero {
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 0;
    padding: 28px 38px;
  }
  .scout-hero h1 { font-size: clamp(3.6rem, 5vw, 5rem); }
  .scout-table th,
  .scout-table td {
    height: 76px;
    padding: 0 14px;
  }
  .foto-jogador {
    width: 58px;
    height: 58px;
  }
  .member-grid,
  .card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-title,
  .timeline,
  .profile-card,
  .member-grid,
  .card-list { grid-column: span 12; }
  .bottom-nav {
    position: relative;
    left: auto;
    bottom: auto;
    width: calc(100% - 48px);
    min-height: var(--bottom-nav-height);
    margin: 0 24px 24px;
    padding: 10px;
    border: 1px solid rgba(89,70,8,.10);
    border-radius: 28px;
    transform: none;
  }
  .bottom-nav a {
    grid-template-columns: auto auto;
    justify-content: center;
    min-height: 54px;
    padding: 0 16px;
    font-size: .78rem;
  }
  .login-screen {
    grid-template-columns: 1fr 410px;
    align-items: stretch;
  }
  .login-hero { min-height: 560px; }
}

/* Bagualeza: keep the brand yellow bright and predominant. */
.app-header,
.home-hero,
.service-card--featured,
.highlight-card--dark,
.highlight-card--craque::before,
.news-card--main,
.premium-footer,
.gallery-hero,
.scout-hero,
.login-hero,
.match-score,
.admin-card--featured,
.primary-button,
.empty-state-card span {
  color: #211b08;
  background:
    radial-gradient(circle at 84% 16%, rgba(255,255,255,.34), transparent 12rem),
    linear-gradient(135deg, #e4bb2d 0%, #f1cf55 54%, #fff1b8 100%) !important;
}

.app-header {
  box-shadow: 0 18px 48px rgba(152, 117, 13, .20);
}

.app-header::after {
  background: linear-gradient(180deg, rgba(228,187,45,.34), rgba(255,250,240,0));
}

.home-hero,
.premium-footer,
.news-card--main,
.highlight-card--dark,
.gallery-hero,
.scout-hero,
.login-hero {
  border-color: rgba(228,187,45,.55);
  box-shadow: 0 22px 56px rgba(152, 117, 13, .22);
}

.home-hero p,
.highlight-card--dark p,
.service-card--featured small,
.news-card--main p,
.gallery-hero p,
.scout-hero p,
.login-hero p,
.premium-footer p,
.premium-footer a,
.hero-phone__top,
.logout-link,
.greeting span,
.scout-hero small {
  color: rgba(33,27,8,.74);
  text-shadow: none;
}

.home-hero .eyebrow,
.highlight-card--dark span,
.news-card--main span,
.gallery-hero .eyebrow,
.scout-hero .eyebrow,
.login-hero .eyebrow {
  color: #7a610f;
}

.hero-phone,
.hero-niver-card,
.mini-stack span,
.mini-stack a,
.secondary-action {
  color: #211b08;
  border-color: rgba(122,97,15,.22);
  background: rgba(255,253,244,.36);
}

.primary-action,
.hero-niver-card__icon .icon,
.service-card--featured .icon,
.admin-card--featured .icon,
.premium-footer img,
.avatar-button {
  color: #7a610f;
  background: rgba(255,253,244,.92);
}

.balance-card,
.service-card,
.highlight-card,
.news-card,
.values-grid article,
.values-grid a,
.empty-state-card,
.lineup-team,
.bottom-nav,
.notifications-panel {
  background: rgba(255,253,244,.92);
  border-color: rgba(228,187,45,.28);
}

.quick-action span,
.service-card .icon,
.values-grid .icon,
.notifications-panel .icon,
.bottom-nav a.is-active,
.login-form button {
  color: #211b08;
  background: #e4bb2d;
}

.match-article span,
.section-title span,
.eyebrow,
.news-card span,
.highlight-card span,
.notifications-panel > strong {
  color: #c59b19;
}

.highlight-card--craque {
  color: #fff;
  min-height: 320px;
  align-content: end;
  gap: 6px;
  padding: 210px 22px 24px;
  background:
    radial-gradient(circle at 84% 14%, rgba(0,0,0,.12), transparent 12rem),
    linear-gradient(135deg, #e4bb2d 0%, #f2d25f 58%, #fff2be 100%) !important;
}

.highlight-card--craque::before,
.highlight-card--craque::after {
  display: none !important;
}

.highlight-card--craque span {
  color: rgba(255,255,255,.95);
  font-size: .76rem;
  line-height: 1.1;
  text-shadow: 0 1px 8px rgba(0,0,0,.34);
}

.highlight-card--craque p {
  color: rgba(255,255,255,.92);
  max-width: 36rem;
  font-size: .98rem;
  line-height: 1.36;
  text-shadow: 0 1px 10px rgba(0,0,0,.36);
}

.highlight-card--craque strong {
  color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,.38);
}

/* Stats panel: reduce table font-size and padding for better readability */
.stats-container .table {
  font-size: .95rem;
}
.stats-container .table td,
.stats-container .table th {
  padding: .5rem .6rem;
}

/* Ensure craque highlight shows background image from --highlight-bg variable */
.highlight-card--craque::before {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  background: var(--highlight-bg, linear-gradient(145deg, #211b08, var(--gold-800))), linear-gradient(145deg, rgba(43,34,0,.35), rgba(228,187,45,.25)) !important;
  background-size: cover !important;
  background-position: center 33% !important;
  transform: scale(1.02) !important;
  pointer-events: none !important;
}

.highlight-card--craque::after {
  display: block !important;
  inset: 60% 0 0 !important;
  background: linear-gradient(180deg, rgba(43,34,0,0), rgba(25,20,5,.88) 72%, rgba(25,20,5,.96)) !important;
}
