/* Montserrat self-hosted */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/static/fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/static/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root{
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(2,6,23,.08);
  --shadow-soft: 0 8px 20px rgba(2,6,23,.06);

  --brand: #0b0f17;
  --primary: #111827;
  --primary-2: #1f2937;

  --blue: #2563eb;
  --yellow: #f59e0b;
  --red: #ef4444;
  --home-panel-height: 46vh;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*{ box-sizing: border-box; }
html{ height: 100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  -webkit-text-size-adjust: 100%;
}
/* iOS: remove tap highlight azul e aparência nativa */
a, button, [role="button"] {
  -webkit-tap-highlight-color: transparent;
}
button, .btn, .nav-btn {
  -webkit-appearance: none;
}
/* Títulos em Montserrat Bold */
h1, h2, h3, h4, h5, h6,
.section-title, .home-title, .partners-title,
.declare-col-title, .terms-title, .filters-title{
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
}
.site-main{ flex: 1; }

a{ color: var(--blue); }
a:hover{ filter: brightness(.9); }

.container{ max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* Header — mantém fonte original, sem Montserrat */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #05070b;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.header-inner{ display:flex; align-items:center; justify-content: space-between; gap: 14px; padding: 2px 16px; position: relative; }

.brand{ display:flex; align-items:center; gap: 5px; color: #fff; text-decoration:none; font-weight: 900; letter-spacing: .2px; }
.brand-mark{
  width: 34px; height: 34px; border-radius: 10px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  font-weight: 900;
}
.brand-name{ font-size: 18px; }
.brand-logo{ height: 114px; display: block; border-radius: 6px; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar{
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.site-nav{ display:flex; align-items:center; gap: 18px; flex-wrap: wrap; }
.nav-link{ color: rgba(255,255,255,.85); text-decoration:none; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.nav-link:hover{ color: #fff; }
.nav-sep{ width: 1px; height: 22px; background: rgba(255,255,255,.18); margin: 0 4px; }
.nav-form{ margin: 0; }

.nav-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: #0b0f17;
  font-weight: 800;
  border: 0;
  cursor:pointer;
  text-decoration:none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}
.nav-btn:hover{ filter: brightness(.96); }
.nav-btn-highlight{
  background: var(--yellow);
  color: #0b0f17;
}
.nav-btn-highlight:hover{ filter: brightness(.93); }

.nav-btn-mobile-outside{ display: none; }

/* Main */
.site-main{ padding: 5px 0 28px; flex: 1; }
.page{ padding: 5px 0 0; }

.kicker{ font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.section-title{ margin: 4px 0 0; font-size: 16px; font-weight: 900; letter-spacing: -.01em; }
h1{ font-size: 20px; font-weight: 900; letter-spacing: -.01em; margin: 0 0 6px; }
h2{ font-size: 16px; font-weight: 900; margin: 0 0 4px; }
.muted{ color: var(--muted); }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  cursor:pointer;
  text-decoration:none;
  font-weight: 800;
}
.btn:hover{ filter: brightness(.97); }
.btn.small{ padding: 8px 10px; border-radius: 10px; font-size: 12px; }
.btn.secondary{ background: #fff; color: var(--text); border: 1px solid var(--border); }

/* Home layout: ranking left, content right */
.home-layout{ display:grid; gap: 14px; }

.home-right{ display:flex; flex-direction:column; gap: 14px; }

.filters-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}
.filters-title{ font-weight: 900; letter-spacing: .02em; margin-bottom: 12px; }

.filters-inline{ display:flex; flex-wrap:wrap; gap: 10px; align-items:flex-end; }
.filters-inline .field{ flex:1; min-width: 160px; }
.field{ display:grid; }
.field-label{ display: none; }
.filters-inline .field-label{ display:block; font-size:11px; font-weight:600; color:var(--muted); margin-bottom:4px; text-transform:uppercase; letter-spacing:.04em; }

/* Multi-select dropdown */
.msd{ position:relative; }
.msd-button{
  width:100%;
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.msd-button:hover{ border-color: rgba(37,99,235,.35); }
.msd-button-open{ border-color: rgba(37,99,235,.45); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.msd-text{ flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.msd-caret{ font-size:11px; color: var(--muted); }
.msd-button-open .msd-caret{ transform: rotate(180deg); }
.msd-popover{
  position:absolute; top: calc(100% + 4px); left:0; right:0; z-index: 50;
  background:#fff; border:1px solid var(--border); border-radius:12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  padding: 6px;
  display:flex; flex-direction:column;
  max-height: 320px;
}
.msd-menu{
  flex:1; min-height:0; overflow-y:auto;
}
.msd-all{ font-weight:700; border-bottom:1px solid var(--border); margin-bottom:4px; padding-bottom:8px; }
.msd-option{
  display:flex; align-items:center; gap:8px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 14px; color: var(--text); cursor: pointer;
}
.msd-option:hover{ background: #f1f5f9; }
.msd-option input[type="checkbox"]{ margin:0; }
.msd-option span{ flex:1; }

/* Placeholder option (first option with empty value) shown as muted */
select:has(option[value=""]:checked) { color: var(--muted); }

select, input:not([type="checkbox"]):not([type="radio"]):not([type="file"]){
  width:100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
select:focus, input:focus{ border-color: rgba(37,99,235,.45); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
input[type="checkbox"], input[type="radio"]{ width:auto; padding:0; border:none; background:none; box-shadow:none; }

.filters-actions{ display:flex; gap: 10px; flex-wrap: wrap; align-items:flex-end; }

.big-cards{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-soft);
  display:flex;
  flex-direction:column;
  gap: 0;
}
.big-cards-header{ display:flex; align-items:flex-start; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
#topTotals{ display:flex; flex-direction:column; }
#topTotals .big-cards-grid{ flex:1; }
.home-title{ margin: 0; font-size: 16px; letter-spacing: -.01em; font-weight: 900; }
.home-sub{ margin-top: 4px; color: var(--muted); font-size: 12px; }

.big-cards-grid{ display:grid; gap: 8px; margin-top: 0; }
.big-cards .filters-inline{ margin-top: 12px; }

.big-card{
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 1px 0 rgba(2,6,23,.02);
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  font: inherit;
}
.big-card:hover{ transform: translateY(-1px); box-shadow: var(--shadow-soft); border-color: rgba(15,23,42,.18); }

.big-card-head{ display:flex; align-items:center; justify-content: space-between; gap: 10px; }
.big-card-label{ font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; -webkit-text-fill-color: var(--muted); }
.big-card-label span{ color: var(--text); font-weight: 900; -webkit-text-fill-color: var(--text); }
.big-card-value{ margin-top: 6px; font-size: 34px; font-weight: 900; letter-spacing: -.03em; color: var(--text); -webkit-text-fill-color: var(--text); }

.dot{ width: 12px; height: 12px; border-radius: 999px; box-shadow: 0 6px 18px rgba(2,6,23,.15); }
.dot-blue{ background: var(--blue); }
.dot-yellow{ background: var(--yellow); }
.dot-red{ background: var(--red); }

.home-note{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
  font-size: 13px;
}
.home-disclaimer{
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Ranking & Map */
.ranking-card,
.map-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-soft);
  display:flex;
  flex-direction:column;
  min-height: calc(var(--home-panel-height) + 76px);
}
/* Isolate Leaflet's z-index from the global stacking context */
.map-card{
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.ranking-header{ display:flex; align-items:flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
#rankingList{ flex:1; min-height:0; display:flex; }
.ranking-hint{ font-size: 12px; color: var(--muted); margin-top: 8px; }

.ranking-list{ display:flex; flex-direction: column; gap: 4px; flex:1; min-height:0; overflow-y:auto; padding-right: 6px; }

/* Bar chart ranking */
.rank-bar-row{
  width:100%;
  display:grid;
  grid-template-columns: 32px minmax(80px, auto) 1fr auto;
  align-items: center;
  gap: 10px;
  text-align:left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 10px;
  cursor:pointer;
  transition: border-color .12s ease, box-shadow .12s ease;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  font: inherit;
}
.rank-bar-row:hover{ border-color: rgba(15,23,42,.18); box-shadow: var(--shadow-soft); }
.rank-bar-row.active{ border-color: rgba(37,99,235,.55); box-shadow: 0 0 0 3px rgba(37,99,235,.10); }
.rank-pos{
  font-weight: 900;
  font-size: 13px;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  text-align: center;
}
.rank-club{
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
.rank-bar-wrap{
  width:100%;
  height: 22px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
}
.rank-bar{
  display:block;
  height:100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  transition: width .4s ease, background .3s ease;
  min-width: 0;
}
.rank-kind-simp .rank-bar{
  background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%);
}
.rank-kind-rival .rank-bar{
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
}
.rank-bar-row.active .rank-bar{
  filter: brightness(.9);
}
.rank-num{
  font-weight: 900;
  font-size: 13px;
  min-width: 48px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}

/* Steps (como participar) */
.steps-grid{
  display:grid;
  gap: 10px;
  margin-top: 10px;
}
.step-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 14px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.step-number{
  display:inline-grid;
  place-items:center;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--yellow);
  color: #0b0f17;
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 12px;
}
.step-title{ margin: 0 0 8px; font-size: 18px; }
.step-desc{ color: var(--muted); line-height: 1.6; margin: 0; }
.step-actions{ display:flex; gap: 10px; justify-content:center; margin-top: 16px; }
@media (min-width: 920px){
  .steps-grid{ grid-template-columns: repeat(3, 1fr); }
}

.map-header{ display:flex; align-items:flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.map-sub{ margin-top: 6px; color: var(--muted); font-size: 13px; }
.map{ height: var(--home-panel-height); border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }

/* Leaflet controls (custom) */
.map-info{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
}
.map-info-title{ font-weight: 900; font-size: 14px; }
.map-info-sub{ color: var(--muted); font-size: 12px; margin-top: 2px; }
.map-info-value{ margin-top: 4px; font-weight: 900; font-size: 16px; }

.map-legend{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
}
.map-legend-title{ font-weight: 900; margin-bottom: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.map-legend-row{ display:flex; align-items:center; gap: 8px; font-size: 12px; color: #334155; margin: 4px 0; }
.map-legend .swatch{ width: 14px; height: 10px; border-radius: 3px; border: 1px solid rgba(15,23,42,.12); }

/* Map labels (country/state names rendered as Leaflet tooltips) */
.leaflet-tooltip.map-label-country,
.leaflet-tooltip.map-label-state{
  background: transparent; border: none; box-shadow: none; padding: 0;
  color: #1f2937; font-weight: 700; font-size: 11px;
  text-shadow: 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff, 1px 1px 0 #fff, -1px -1px 0 #fff;
  pointer-events: none;
}
.leaflet-tooltip.map-label-country::before,
.leaflet-tooltip.map-label-state::before{ display: none; }
.leaflet-tooltip.map-label-country{ font-size: 12px; }
.leaflet-tooltip.map-label-state{ font-size: 10px; color: #334155; }

/* Zoom-based label visibility:
   - Low zoom (< 4): nothing → world view stays clean.
   - Mid zoom (4-5): country labels only.
   - High zoom (>= 6): country + state labels. */
.map-zoom-low .leaflet-tooltip.map-label-country,
.map-zoom-low .leaflet-tooltip.map-label-state,
.map-zoom-mid .leaflet-tooltip.map-label-state{ display: none; }

/* Admin tabs */
.admin-tabs{
  display: inline-flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.admin-tab{
  display: inline-block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  border-radius: 7px;
  transition: background .15s, color .15s;
}
.admin-tab:hover{ color: #0f172a; background: rgba(255,255,255,.6); }
.admin-tab.is-active{
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15,23,42,.08);
}

/* Partners — constrained to page content width */
.partners{
  margin-top: 20px;
  padding: 20px 0;
  background: none;
  border: none;
  box-shadow: none;
  width: 100%;
}
.partners-title{
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.01em;
  color: #0f172a;
  text-align: center;
  margin: 0 0 12px;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.partners-marquee{
  overflow: hidden;
  background: transparent;
  width: 100%;
  max-width: 1056px;
  margin: 0 auto;
  border-radius: 12px;
}
.partners-track{
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 12s linear infinite;
  padding: 4px 0;
  background: transparent;
  will-change: transform;
}
.partners-track > .partner{ margin-right: 40px; }


.partner{ display:grid; place-items:center; padding: 11px; border-radius: 12px; border: none; text-decoration:none; width: 132px; height: 99px; flex-shrink: 0; background: transparent; }
.partner:hover{ box-shadow: var(--shadow-soft); }
.partner img{ width: 110px; height: 77px; object-fit: contain; }
.partner-fallback{ font-weight: 900; color: var(--muted); font-size: 13px; text-align:center; width: 110px; }

/* Footer */
.site-footer{ margin-top: 18px; background: #05070b; color: rgba(255,255,255,.85); border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid{ display:grid; gap: 16px; padding: 18px 16px 14px; align-items: start; }
.footer-brand{ display:flex; flex-direction:column; gap: 10px; }
.footer-brand .brand-logo{ height: 97px; }
.footer-col{ display:flex; flex-direction:column; }
.footer-title{ font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.45); margin: 0 0 14px; font-weight: 600; }
.footer-link{ display:block; color: rgba(255,255,255,.8); text-decoration:none; margin: 0 0 5px; font-size: 13px; line-height: 1.5; }
.footer-link:last-child{ margin-bottom: 0; }
.footer-link:hover{ color:#fff; }
.footer-small{ color: rgba(255,255,255,.4); font-size: 11px; line-height: 1.6; margin: 0; }
.footer-copyright{ text-align: center; color: rgba(255,255,255,.35); font-size: 11px; padding: 0 16px 12px; }
.footer-desc{ color: rgba(255,255,255,.55); font-size: 14px; line-height: 1.7; margin: 0; }

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

/* Register layout */
.register-layout{
  display:grid;
  gap: 24px;
  align-items: center;
}
.register-info{
  display:flex;
  flex-direction:column;
  gap: 20px;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
}
/* Logo com fundo transparente na página de registro */
.register-info .brand-logo{
  mix-blend-mode: multiply;
  background: transparent;
}
.register-info h1{ margin: 0; font-size: 34px; letter-spacing: -.02em; line-height: 1.2; }
.register-info p{ color: var(--muted); line-height: 1.7; margin: 0; font-size: 16px; max-width: 400px; }
.register-info p strong{ color: var(--text); font-size: 17px; }
.register-form-wrap .card{ max-width: 100%; }

/* Terms box */
.terms-box{
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display:grid;
  gap: 12px;
}
/* Declare grid */
.declare-grid{
  display:grid;
  gap: 10px;
}
.declare-col{
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.declare-col-head{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 6px;
}
.declare-col-icon{ font-size: 28px; }
.declare-col-title{ font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.declare-col-heart .declare-col-icon{ color: var(--blue); }
.declare-col-simp .declare-col-icon{ color: var(--yellow); }
.declare-col-rival .declare-col-icon{ color: var(--red); }
.declare-col-desc{ color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; text-align:center; min-height: 4em; }
.declare-col-desc em{ font-style: italic; }

.me-grid{ display:grid; gap:20px; }
@media(min-width:768px){ .me-grid{ grid-template-columns:1fr 1fr; } }

.profile-field{ display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid var(--border); flex-wrap:wrap; }
.profile-field b{ min-width:160px; font-size:14px; }
.profile-field span{ font-size:14px; }
.profile-field input{ max-width:300px; }

@media (min-width: 920px){
  .declare-grid{ grid-template-columns: repeat(3, 1fr); }
}

.terms-title{ margin:0; font-weight: 800; font-size: 14px; }
.terms-section-title{ margin:0 0 4px; font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text); }
.terms-check{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  line-height: 1.5;
  color: #334155;
  font-size: 13px;
  cursor: pointer;
}
.terms-check input{ width:18px; height:18px; margin-top:2px; flex:0 0 auto; cursor: pointer; }
.terms-link{ font-size: 13px; }

@media (min-width: 920px){
  .register-layout{ grid-template-columns: 1fr 1fr; }
}

/* Generic */
.form{ display:grid; gap: 10px; }

/* Password visibility toggle */
.password-field{ position: relative; }
.password-field input{ padding-right: 48px !important; }
.pwd-toggle{
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.pwd-toggle:hover{ background: #f1f5f9; color: var(--text); }
.pwd-toggle svg{ width: 20px; height: 20px; display: block; }

/* Floating label */
.float-label{ position: relative; }
.float-label input,
.float-label select{
  height: 56px;
  min-height: 56px;
  padding-top: 22px;
  padding-bottom: 8px;
  line-height: 1.2;
}
.float-label > label{
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--muted);
  pointer-events: none;
  transition: top .15s ease, font-size .15s ease, transform .15s ease, color .15s ease;
  white-space: nowrap;
  overflow: hidden;
  max-width: calc(100% - 24px);
  text-overflow: ellipsis;
}
/* Float up when typing (text/email/password/search) */
.float-label input:focus + label,
.float-label input:not(:placeholder-shown) + label{
  top: 6px;
  transform: none;
  font-size: 10px;
}
/* Always floated (selects, date) */
.float-label--always > label{
  top: 6px;
  transform: none;
  font-size: 10px;
}
/* Highlight label on focus */
.float-label:focus-within > label{ color: var(--blue); }
.grid2{ display:grid; grid-template-columns: 1fr; gap: 10px; }
.table{ width:100%; border-collapse: collapse; }
.table th, .table td{ padding: 10px; border-bottom: 1px solid var(--border); text-align:left; font-size: 14px; }
.row-selected{ background: rgba(59,130,246,.08); }

.pager{ display:flex; align-items:center; justify-content:center; gap:10px; padding:14px 0 4px; font-size:14px; }
.pager a{ text-decoration:none; }
.badge{ display:inline-block; background:#f1f5f9; border:1px solid #e2e8f0; padding: 4px 8px; border-radius: 999px; font-size: 12px; color: #334155; }
.error{ background:#fef2f2; border:1px solid #fecaca; padding: 12px; border-radius: 12px; color:#7f1d1d; }
.success{ background:#ecfdf5; border:1px solid #bbf7d0; padding: 12px; border-radius: 12px; color:#065f46; }
[x-cloak]{ display:none !important; }

.skeleton{ color: var(--muted); }

.google-btn{ background: #db4437; border-color: rgba(219,68,55,.2); }
.google-btn:hover{ filter: brightness(.97); }
.divider{ display:flex; align-items:center; gap: 10px; margin: 12px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after{ content:""; flex:1; border-top: 1px solid var(--border); }
.divider span{ padding: 0 4px; }

@media (min-width: 920px){
  .home-layout{ grid-template-columns: 360px 1fr; }
  .big-cards-grid{ grid-template-columns: repeat(3, 1fr); }
  .grid2{ grid-template-columns: 1fr 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr 1.2fr 1.2fr; }
}


.notice-card{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.locked-declarations{ display:grid; gap:10px; margin-top:14px; }
.locked-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; background:#fff; border:1px solid var(--border); border-radius:12px; }
.locked-kind{ font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }

.consent-inline{
  display:flex; align-items:flex-start; justify-content:space-between; gap:14px;
  padding:14px 16px; border:1px solid var(--border); border-radius:14px; background:#f8fafc;
}
.consent-inline.is-accepted{ background:#f0fdf4; border-color:#bbf7d0; }
.consent-actions{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }

.modal-backdrop{
  position:fixed; inset:0; z-index:90;
  background:rgba(15,23,42,.56);
  display:flex; align-items:center; justify-content:center;
  padding:18px;
}
.modal-card{
  width:min(100%, 640px);
  max-height:min(90vh, 820px);
  overflow:auto;
  background:#fff; border-radius:20px; border:1px solid rgba(15,23,42,.08);
  box-shadow:0 24px 80px rgba(2,6,23,.24);
}
.modal-lg{ width:min(100%, 760px); }
.modal-head, .modal-foot{ padding:18px 20px; }
.modal-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; border-bottom:1px solid var(--border); }
.modal-head h3{ margin:4px 0 0; }
.modal-body{ padding:18px 20px; }
.modal-close{ border:0; background:#f8fafc; color:var(--text); width:38px; height:38px; border-radius:999px; font-size:24px; cursor:pointer; }
.modal-foot{ border-top:1px solid var(--border); display:grid; gap:14px; }
.modal-actions{ display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.term-body{ display:grid; gap:14px; line-height:1.65; color:#334155; }
.consent-check{ display:flex; align-items:flex-start; gap:10px; line-height:1.5; color:#334155; }
.consent-check input{ width:18px; height:18px; margin-top:2px; flex:0 0 auto; }
button[disabled], .btn[disabled]{ opacity:.55; cursor:not-allowed; }

@media (max-width: 720px){
  .consent-inline{ flex-direction:column; }
  .modal-head, .modal-body, .modal-foot{ padding:16px; }

  /* Mobile header: hamburger menu */
  .nav-toggle{ display: flex; }
  .header-inner{ padding: 6px 12px; gap: 8px; }
  .brand-logo{ height: 86px; }

  .nav-btn-mobile-outside{
    display: inline-flex;
    padding: 8px 12px;
    font-size: 9px;
    margin-left: auto;
  }
  .nav-btn-desktop-only{ display: none !important; }

  .site-nav{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #05070b;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 8px 12px 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,.35);
  }
  .site-nav.is-open{ display: flex; }
  .site-nav .nav-link{
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 14px;
  }
  .site-nav .nav-sep{ display: none; }
  .site-nav .nav-btn,
  .site-nav .nav-btn-highlight{
    width: 100%;
    margin: 8px 0 0;
    justify-content: center;
  }
  .site-nav .nav-form{ width: 100%; }
  .site-nav .nav-form .nav-btn{ width: 100%; }
}
