/* ============================================================
   LOTORA — shared styles (design system from "lotto 2" Figma)
   ============================================================ */

:root {
  --navy-deep: #0b123a;      /* dark sections / footer / utility bar */
  --navy-hero: #0f1943;      /* hero overlay */
  --primary: #1b2b6b;        /* primary brand */
  --ink: #1e2238;            /* headings / body text */
  --muted: #626884;          /* secondary text */
  --muted-2: #8d94ac;        /* fine print */
  --accent: #f5a623;         /* accent orange */
  --bg-light: #f4f6fb;       /* light grey-blue section */
  --bg-cream: #f9f7f2;       /* cream section */
  --card-bg: #fafbff;        /* card background */
  --green: #10b981;
  --green-bg: #e6fbf3;
  --modal-ink: #091e2f;
  --slate: #475569;
  --modal-border: #e2e8f0;
  --chip-grey: #f1f5f9;
  --border-6: rgba(27, 43, 107, 0.06);
  --border-8: rgba(27, 43, 107, 0.08);
  --border-15: rgba(27, 43, 107, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  min-width: 1440px;
  font-size: 14px;
  line-height: normal;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
input { font-family: inherit; }
ul { list-style: none; }
img, svg { display: block; }

.font-display { font-family: 'Outfit', 'Segoe UI', Arial, sans-serif; }

/* ============ Utility bar ============ */
.utility-bar {
  height: 36px;
  background: var(--navy-deep);
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.utility-bar__note { color: rgba(255, 255, 255, 0.65); }
.utility-bar__center {
  display: flex;
  align-items: center;
  gap: 12px;
}
.utility-bar__center .warn {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}
.utility-bar__sep {
  width: 1.5px;
  height: 12px;
  background: rgba(255, 255, 255, 0.25);
}
.utility-bar__licence { color: var(--accent); font-weight: 700; }
.utility-bar__right { display: flex; align-items: center; gap: 24px; }
.utility-bar__lang { display: flex; gap: 8px; }
.utility-bar__lang .en { color: #ffffff; font-weight: 700; }
.utility-bar__lang .slash { color: rgba(255, 255, 255, 0.4); }
.utility-bar__lang .fr { color: rgba(255, 255, 255, 0.65); }
.utility-bar__play-resp {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
}

/* ============ Header ============ */
.site-header {
  height: 72px;
  background: #ffffff;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 8px; }
.logo__symbol {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: rgba(27, 43, 107, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.logo__word {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 1.5px;
  color: var(--primary);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--accent); font-weight: 800; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-actions .login-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  text-align: center;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #ffffff; }
.btn-primary:hover { background: #23378a; }
.btn-accent { background: var(--accent); color: #ffffff; }
.btn-accent:hover { background: #ffb437; }
.btn-ghost {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 10.5px 22.5px;
}
.btn-ghost:hover { background: rgba(27, 43, 107, 0.05); }
.link-underline {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
}
.link-underline.on-dark { color: #ffffff; }

/* ============ Hero (home / auth pages) ============ */
.hero {
  height: 680px;
  padding: 60px 80px;
  display: flex;
  align-items: center;
  gap: 60px;
  background:
    linear-gradient(rgba(15, 25, 67, 0.95), rgba(15, 25, 67, 0.95)),
    url('../images/hero-main.png') center / cover no-repeat;
}
.hero__details {
  width: 620px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero__kicker {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero__game {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 42px;
  color: #ffffff;
  margin-top: 8px;
}
.hero__jackpot {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 96px;
  line-height: 1;
  letter-spacing: -3px;
  color: #ffffff;
}
.hero__next-draw {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  font-weight: 600;
  margin-top: 4px;
}
.hero__desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.5;
}
.hero__cta-row { display: flex; align-items: center; gap: 20px; }
.hero__note { color: rgba(255, 255, 255, 0.45); font-size: 12px; }

/* Interactive picker card */
.picker-card {
  width: 560px;
  padding: 32px;
  border-radius: 16px;
  background: rgba(11, 18, 58, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.picker-card__kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.picker-card__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
  margin-top: 6px;
}
.picker-card__balls { display: flex; gap: 10px; }
.picker-card__divider { height: 1px; background: rgba(255, 255, 255, 0.1); }
.picker-grid { display: flex; flex-direction: column; gap: 6px; }
.picker-grid__row { display: flex; gap: 6px; }
.num-cell {
  width: 54px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.num-cell:hover { background: rgba(255, 255, 255, 0.14); }
.num-cell.selected {
  background: var(--accent);
  color: var(--navy-deep);
  font-weight: 700;
}

/* ============ Lottery balls ============ */
.ball {
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ball--48 { width: 48px; height: 48px; font-size: 18px; }
.ball--44 { width: 44px; height: 44px; font-size: 15px; }
.ball--outline {
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid var(--border-15);
}
.ball--38 { width: 38px; height: 38px; font-size: 13px; }
.ball--32 { width: 32px; height: 32px; font-size: 12px; }

/* ============ Sections ============ */
.section { padding: 80px; }
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}
.header-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--border-6);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.section-header h2,
.section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.25;
  color: var(--ink);
  text-align: center;
}
.section-header .section-sub {
  max-width: 700px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* Page-title hero (subpages) */
.page-hero {
  padding: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background:
    linear-gradient(rgba(15, 25, 67, 0.96), rgba(15, 25, 67, 0.96)),
    url('../images/hero-main.png') center / cover no-repeat;
}
.page-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 56px;
  line-height: 1.1;
  color: #ffffff;
  text-align: center;
}
.page-hero p {
  max-width: 900px;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* ============ Cards / misc shared ============ */
.card {
  background: #ffffff;
  border: 1px solid var(--border-6);
  border-radius: 12px;
}
.divider-h { height: 1px; background: var(--border-8); }
.status-pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--green-bg);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

/* ============ Forms ============ */
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.text-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  background: var(--card-bg);
  border: 1.5px solid var(--border-15);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.text-input::placeholder { color: var(--muted); }
.text-input:focus { border-color: var(--primary); }

/* ============ Game disclaimer strip ============ */
.disclaimer-strip {
  height: 48px;
  background: var(--navy-deep);
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.disclaimer-strip p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--navy-deep);
  padding: 80px 80px 0;
}
.site-footer__top {
  display: flex;
  justify-content: space-between;
}
.site-footer__brand { width: 380px; display: flex; flex-direction: column; gap: 20px; }
.site-footer .logo__symbol { background: rgba(255, 255, 255, 0.1); }
.site-footer .logo__word { color: #ffffff; }
.site-footer__about {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.5;
}
.site-footer__col { width: 150px; display: flex; flex-direction: column; gap: 16px; }
.site-footer__col h3,
.site-footer__col h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}
.site-footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  display: block;
}
.site-footer__col a:hover { color: #ffffff; }
.site-footer__rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 48px;
}
.site-footer__legal {
  margin-top: 48px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  line-height: 1.6;
}
.site-footer__bottom {
  margin-top: 48px;
  padding: 0 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-footer__help { display: flex; align-items: center; gap: 12px; }
.site-footer__help span { color: rgba(255, 255, 255, 0.6); font-size: 13px; }
.site-footer__help a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}
.site-footer__copy { color: rgba(255, 255, 255, 0.45); font-size: 13px; }

/* ============ Auth modal ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 148, 136, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 50;
}
.modal-card {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 76px;
  width: 480px;
  padding: 32px 40px 40px;
  background: #ffffff;
  border: 1px solid var(--modal-border);
  border-radius: 16px;
  box-shadow: 0 12px 40px -4px rgba(9, 30, 47, 0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 60;
}
.modal-card--center { top: 50%; transform: translate(-50%, -50%); }
.modal-header { display: flex; justify-content: space-between; }
.modal-header__titles { width: 340px; display: flex; flex-direction: column; gap: 8px; }
.modal-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--modal-ink);
}
.modal-sub { font-size: 14px; line-height: 1.5; color: var(--slate); }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--chip-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-close:hover { background: #e2e8f0; }
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.modal-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--modal-ink);
  margin-bottom: 8px;
}
.modal-field .text-input::placeholder { color: var(--slate); }
.checkbox-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}
.checkbox-row input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--primary);
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}
.checkbox-row input[type='checkbox']:checked { background: var(--primary); }
.checkbox-row input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-row span {
  font-size: 13px;
  line-height: 18px;
  color: var(--modal-ink);
}
.checkbox-row a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}
.modal-submit {
  width: 100%;
  height: 50px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}
.modal-submit:hover { background: #23378a; }
.modal-switch {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: 14px;
  color: var(--slate);
}
.modal-switch a { color: var(--primary); font-weight: 700; }
.modal-error {
  display: none;
  font-size: 13px;
  line-height: 1.4;
  color: #dc2626;
}
.modal-error.visible { display: block; }
.modal-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 32px;
  background: #f0f2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.modal-footline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.modal-footline .rule { width: 100%; height: 1px; background: var(--modal-border); }
.modal-footline p { font-size: 13px; color: var(--slate); text-align: center; }

/* ============ Polish: unified focus, states, micro-interactions ============
   Adds interactive states only — the static design geometry is untouched. */
:root {
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-pop: cubic-bezier(0.16, 1, 0.3, 1);
  --green-text: #059669; /* AA-compliant success text on white */
}

/* One on-brand focus ring for every interactive element */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.num-cell:focus-visible,
.chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.text-input:focus-visible { outline-offset: 0; }

/* Buttons: transitions + pressed feedback */
.btn,
.modal-submit,
.page-btn,
.modal-close {
  transition:
    background-color 150ms var(--ease-standard),
    color 150ms var(--ease-standard),
    border-color 150ms var(--ease-standard),
    transform 100ms var(--ease-standard);
}
.btn:active,
.modal-submit:active,
.page-btn:active:not(:disabled),
.modal-close:active { transform: scale(0.97); }

/* Links: hover / focus feedback */
.link-underline { transition: color 150ms var(--ease-standard); }
.link-underline:hover,
.link-underline:focus-visible { color: #23378a; }
.link-underline.on-dark:hover,
.link-underline.on-dark:focus-visible { color: var(--accent); }
.nav-links a,
.site-footer__col a,
.utility-bar__play-resp { transition: color 150ms var(--ease-standard); }

/* Cards with a CTA: subtle lift */
.game-card, .instant-card, .result-card, .draw-card, .help-card, .tool-card {
  transition:
    box-shadow 200ms var(--ease-standard),
    transform 200ms var(--ease-standard);
}
.game-card:hover, .instant-card:hover, .result-card:hover,
.draw-card:hover, .help-card:hover, .tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(27, 43, 107, 0.08);
}

/* Number picker cells (rendered as buttons) */
button.num-cell { border: 0; font-family: inherit; }
.num-cell {
  transition:
    background-color 150ms var(--ease-standard),
    color 150ms var(--ease-standard),
    transform 100ms var(--ease-standard);
}
.num-cell:active { transform: scale(0.94); }

/* Player-tool chips (rendered as buttons) */
.chip {
  cursor: pointer;
  transition:
    background-color 150ms var(--ease-standard),
    border-color 150ms var(--ease-standard),
    color 150ms var(--ease-standard);
}
.chip:hover:not(.chip--active) { border-color: var(--primary); }

/* Picked-numbers balls pop in */
@keyframes ball-pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
.ball--pop { animation: ball-pop 200ms var(--ease-pop); }

/* Pagination boundary state */
.page-btn:disabled,
.page-btn[aria-disabled='true'] { opacity: 0.4; cursor: default; }

/* Invalid form field */
.text-input.input-error { border-color: #dc2626; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .btn, .modal-submit, .page-btn, .modal-close, .num-cell, .chip,
  .link-underline, .nav-links a, .site-footer__col a, .utility-bar__play-resp,
  .game-card, .instant-card, .result-card, .draw-card, .help-card, .tool-card {
    transition: none;
  }
  .btn:active, .modal-submit:active, .page-btn:active:not(:disabled),
  .modal-close:active, .num-cell:active { transform: none; }
  .game-card:hover, .instant-card:hover, .result-card:hover,
  .draw-card:hover, .help-card:hover, .tool-card:hover { transform: none; }
  .ball--pop { animation: none; }
}

/* ============ Wide screens: keep the 1440 design centered ============
   Section backgrounds stay full-bleed while the 1280px content column
   is centered. At exactly 1440px this resolves to the design's 80px.
   (Loaded after page stylesheets would be better, but these selectors
   only override horizontal padding, so order vs page css is safe for
   the page-specific full-width sections listed here.) */
.utility-bar, .site-header, .hero, .page-hero, .section,
.disclaimer-strip, .site-footer,
.au-hero, .pr-hero, .hiw-hero, .legal-header, .hiw-section, .important-info {
  padding-left: max(80px, calc(50% - 640px)) !important;
  padding-right: max(80px, calc(50% - 640px)) !important;
}
