/* ===== RESET & VARS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ---- Brand palette: Elegant Minimal Luxury — deep emerald/black canvas, thin gold hairlines, no photo, no fill-heavy UI ---- */
  --black:        #070D0A;
  --emerald-deep: #0A1A13;
  --emerald:      #12281D;

  --gold:        #D9B36C;
  --gold-bright: #F0D999;
  --gold-deep:   #A8823E;

  --text:  #F5EFE0;
  --muted: #B9AC96;
  --dim:   #7A705C;

  --border:      rgba(217, 179, 108, 0.45);
  --border-soft: rgba(217, 179, 108, 0.22);

  --font-display: 'Prompt', sans-serif;
  --container-sm: 420px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Prompt', sans-serif;
  font-weight: 300;
  background: radial-gradient(120% 90% at 50% 8%, #16311F 0%, var(--emerald-deep) 45%, var(--black) 100%);
  color: var(--text);
  min-height: 100svh;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 84px;
  display: flex;
  flex-direction: column;
  letter-spacing: 0.01em;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }

/* ===== CORNER FRAME (no photo asset — thin hairline flourish instead) ===== */
.corner-frame span {
  position: fixed;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  pointer-events: none;
}
.corner-frame .tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.corner-frame .tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.corner-frame .bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.corner-frame .br { bottom: 14px; right: 14px; border-left: none; border-top: none; }

/* ===== LANGUAGE TOGGLE ===== */
.lang-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(7, 13, 10, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3px;
}
.lang-btn svg { width: 100%; height: 100%; border-radius: 50%; }

/* ===== CENTER STAGE ===== */
.center-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.75rem 2rem;
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: var(--container-sm);
  margin: 0 auto;
  width: 100%;
}

.brand-logo {
  width: min(46vw, 150px);
  height: auto;
  margin-bottom: 1.1rem;
  filter: drop-shadow(0 4px 18px rgba(217,179,108,0.25));
}

.eyebrow-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.eyebrow-line::before,
.eyebrow-line::after {
  content: '';
  height: 1px;
  width: 26px;
  background: var(--border);
}

.login-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 5vw, 1.6rem);
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  margin-bottom: 2rem;
}

.center-stage form { width: 100%; }

.field {
  width: 100%;
  margin-bottom: 1.5rem;
  text-align: left;
}
.field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.55rem;
}
.field-underline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.1rem 0.65rem;
  transition: border-color 0.25s ease;
}
.field-underline:focus-within { border-color: var(--gold); }
.field-underline svg { flex-shrink: 0; color: var(--gold-deep); width: 16px; height: 16px; }
.field-underline input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: 'Prompt', sans-serif;
  font-weight: 300;
  font-size: 0.92rem;
  color: var(--text);
  letter-spacing: 0.03em;
}
.field-underline input::placeholder { color: var(--dim); }

.btn-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: transparent;
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  margin-top: 0.75rem;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-login:hover:not(:disabled) { background: var(--gold); color: #1B1204; }
.btn-login svg { width: 16px; height: 16px; }
.btn-login:disabled { opacity: 0.35; cursor: not-allowed; }

.register-link {
  display: inline-block;
  margin-top: 1.75rem;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gold);
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 2px;
}

.btn-line-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  padding: 0.5rem 1.1rem;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.btn-line-outline:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-line-outline .ico-line {
  display: inline-flex; align-items: center; justify-content: center;
  background: #06C755; color: #fff; font-size: 0.55rem; font-weight: 800;
  letter-spacing: 0.02em; border-radius: 3px; padding: 1px 5px; line-height: 1.3;
}

/* ===== ABOUT TEXT ===== */
.about-text {
  position: relative;
  z-index: 2;
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 1.75rem 1.5rem;
  text-align: center;
}
.about-text h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.about-text p {
  font-size: 0.76rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
}

/* ===== BOTTOM NAV — text-only, no icons, no fill bar ===== */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container-sm);
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, transparent 0%, rgba(7,13,10,0.55) 40%);
  padding: 0.9rem 0.5rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
}
.bn-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--dim);
  background: none;
  border: none;
  padding: 0.2rem;
  text-align: center;
}
.bn-item.active,
.bn-item:hover { color: var(--gold-bright); }

/* ===== HOW-TO MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(4, 8, 6, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-sheet {
  width: 100%;
  max-width: var(--container-sm);
  background: var(--emerald-deep);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-soft);
}
.modal-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}
.modal-close {
  width: 26px; height: 26px; border: 1px solid var(--border);
  background: none; color: var(--gold);
  font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
}
.modal-steps { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; }
.modal-steps li { display: flex; gap: 0.9rem; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 22px; height: 22px; border: 1px solid var(--gold);
  color: var(--gold-bright); font-weight: 400; font-size: 0.72rem;
  display: flex; align-items: center; justify-content: center;
}
.modal-steps p { font-size: 0.82rem; font-weight: 300; color: var(--muted); line-height: 1.75; }
.modal-steps strong { color: var(--text); font-weight: 500; }
