﻿/* ---------- Tajiri POS · welcome / auth styles ---------- */
* {
  box-sizing: border-box;
}

:root {
  --green: #39d98a;
  --green-deep: #245b49;
  --green-ink: #10271e;
  --blue: #4aa3df;
  --ink: #eef0f2;
  --muted: #9da0a6;
  --line: #3b3b3b;
  --soft: #252526;
  --card: #2b2b2d;
  --coral: #e05261;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
}

html,
body {
  height: 100%;
}

:root {
  --page-bg-image: url("./assets/logo.png");
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background-color: #000000;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.38)),
    var(--page-bg-image);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

.app-loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3, 8, 10, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10000;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.app-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 4px solid rgba(57, 217, 138, 0.18);
  border-top-color: #39d98a;
  border-right-color: #4aa3df;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 22px rgba(74, 163, 223, 0.2);
}

.loader-text {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #eaf5ff;
  text-align: center;
}

.loader-wrap {
  display: grid;
  place-items: center;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px;
  gap: 28px;
  align-items: stretch;
}

/* ---------- Hero / welcome panel ---------- */
.auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 42px;
  border-radius: 26px;
  color: #f2fbf6;
  background: linear-gradient(150deg, #193c32 0%, var(--green-deep) 55%, #1b4a3c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), var(--shadow);
  overflow: hidden;
}

.auth-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 217, 138, .35), transparent 70%);
  pointer-events: none;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 22px Outfit, sans-serif;
}

.hero-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--green);
  color: var(--green-ink);
  font-size: 24px;
  font-weight: 700;
}

.hero-copy {
  max-width: 480px;
}

.hero-eyebrow {
  margin: 34px 0 10px;
  font-size: 12px;
  letter-spacing: 2.5px;
  color: #9fe8c6;
  font-weight: 600;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font: 700 clamp(30px, 3.4vw, 44px)/1.12 Outfit, sans-serif;
}

.hero-copy h1 em {
  color: var(--green);
  font-style: normal;
}

.hero-sub {
  margin: 0 0 28px;
  color: #cfe8dc;
  line-height: 1.55;
}

.hero-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.hero-features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.hero-features span {
  flex: 0 0 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 17px;
}

.hero-features strong {
  display: block;
  font-size: 14.5px;
}

.hero-features small {
  color: #bcd9cc;
  line-height: 1.4;
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #a8cdc0;
  flex-wrap: wrap;
}

/* ---------- Auth panel ---------- */
.auth-panel {
  display: grid;
  place-items: center;
  position: relative;
}

.auth-card {
  width: min(460px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 32px 26px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #1f1f21;
  padding: 6px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.auth-tab {
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: background .18s ease, color .18s ease;
}

.auth-tab.active {
  background: var(--green);
  color: var(--green-ink);
}

.auth-tab:not(.active):hover {
  color: var(--ink);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: authFade .25s ease;
}

@keyframes authFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.auth-form h2 {
  margin: 0 0 4px;
  font: 600 24px Outfit, sans-serif;
}

.auth-sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13.5px;
}

.auth-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #cfd2d6;
  margin-bottom: 14px;
}

.auth-form label small {
  color: var(--muted);
  font-weight: 400;
}

.auth-form input,
.auth-form select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #1f1f21;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(57, 217, 138, .18);
}

.auth-form input::placeholder {
  color: #6f7277;
}

.auth-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -4px 0 16px;
  font-size: 13px;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 8px !important;
  font-weight: 500 !important;
  margin: 0 !important;
  color: var(--muted) !important;
  cursor: pointer;
}

.auth-check input {
  width: auto;
  margin: 0 !important;
  accent-color: var(--green);
}

.auth-link {
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 13px;
  padding: 0;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(120deg, var(--green), #2fbf79);
  color: var(--green-ink);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(57, 217, 138, .25);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-switch {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.auth-switch button {
  border: 0;
  background: none;
  color: var(--green);
  font-weight: 600;
}

.auth-switch button:hover {
  text-decoration: underline;
}

.auth-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13px;
  color: #ffd7dc;
  background: rgba(224, 82, 97, .16);
  border: 1px solid rgba(224, 82, 97, .4);
}

/* Password strength meter */
.auth-strength {
  margin: -6px 0 14px;
}

.auth-strength-bar {
  height: 6px;
  border-radius: 4px;
  background: #1f1f21;
  overflow: hidden;
}

.auth-strength-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: var(--coral);
  transition: width .25s ease, background .25s ease;
}

.auth-strength small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

/* Toast */
.auth-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 16px);
  background: #313134;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.auth-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.auth-toast.success {
  border-color: rgba(57, 217, 138, .5);
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .auth-hero {
    padding: 30px 26px;
  }

  .hero-eyebrow {
    margin-top: 20px;
  }

  .auth-two {
    grid-template-columns: 1fr;
  }
}
/* ---------- POS backdrop (decorative mock of the app behind the auth UI) ---------- */
.pos-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: center;
  padding: 40px;
  background:
    radial-gradient(circle at 10% 15%, rgba(57, 217, 138, .16), transparent 30%),
    radial-gradient(circle at 92% 85%, rgba(74, 163, 223, .14), transparent 30%),
    #1e1e1e;
}
.pos-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 22, .72);
  backdrop-filter: blur(9px);
}
.pos-frame {
  width: min(1180px, 94vw);
  height: min(720px, 88vh);
  display: flex;
  flex-direction: column;
  background: #252526;
  border: 10px solid #181818;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, .5);
}
.pos-topbar {
  height: 58px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  color: #f3f3f3;
  background: linear-gradient(100deg, #193c32, #245b49);
}
.pos-brand { display: flex; align-items: center; gap: 10px; font: 600 17px Outfit, sans-serif; }
.pos-brand i {
  font-style: normal; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--green); color: var(--green-ink); font-weight: 700;
}
.pos-top-actions { display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: #e8efe9; }
.pos-top-actions u { text-decoration: none; padding: 6px 10px; border-radius: 6px; background: rgba(255,255,255,.08); }
.pos-dot { width: 8px; height: 8px; border-radius: 50%; background: #7ef3bd; }
.pos-body { flex: 1; display: grid; grid-template-columns: 64px 1fr 260px; gap: 18px; padding: 18px 20px; }
.pos-sidebar { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.pos-sidebar b { width: 40px; height: 40px; border-radius: 11px; background: #313134; }
.pos-sidebar b:first-child { background: var(--green); }
.pos-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pos-heading span { font-size: 10px; letter-spacing: 2px; color: var(--muted); }
.pos-heading h3 { margin: 2px 0 0; font: 600 22px Outfit, sans-serif; color: #e8e8e8; }
.pos-search { height: 42px; border-radius: 11px; background: #1f1f21; border: 1px solid var(--line); }
.pos-pulse { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.pos-pulse span { height: 58px; border-radius: 12px; background: #2b2b2d; border: 1px solid var(--line); }
.pos-pulse span:nth-child(1) { border-color: rgba(57,217,138,.4); }
.pos-pulse span:nth-child(2) { border-color: rgba(232,121,181,.4); }
.pos-pulse span:nth-child(3) { border-color: rgba(74,163,223,.4); }
.pos-cart { flex: 1; border-radius: 12px; background: #2b2b2d; border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.pos-cart-head { font-size: 10px; letter-spacing: 1.5px; color: var(--muted); }
.pos-cart-row { height: 34px; border-radius: 8px; background: #232325; }
.pos-salepanel { border-radius: 14px; background: #2b2b2d; border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.pos-badge { align-self: flex-start; font-size: 11px; font-weight: 600; color: var(--green-ink); background: var(--green); padding: 4px 10px; border-radius: 999px; }
.pos-line { height: 12px; border-radius: 6px; background: #232325; }
.pos-line.w70 { width: 70%; }
.pos-line.w50 { width: 50%; }
.pos-line.w60 { width: 60%; }
.pos-total { height: 26px; width: 80%; border-radius: 7px; background: #232325; margin-top: auto; }
.pos-paybtn { height: 40px; border-radius: 10px; background: var(--green-deep); opacity: .8; }
.pos-paybtn.short { width: 60%; }

/* ---------- Page layout for the full welcome hub ---------- */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
main { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0 20px; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 32px;
  background: rgba(24, 24, 26, .8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font: 600 18px Outfit, sans-serif; color: var(--ink); text-decoration: none; }
.nav-brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 9px; background: var(--green); color: var(--green-ink);
  font-size: 19px; font-weight: 700;
}
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s ease; }
.nav-links a:hover { color: var(--green); }
.nav-cta {
  padding: 9px 18px; border-radius: 10px; text-decoration: none;
  background: var(--green); color: var(--green-ink); font-weight: 700; font-size: 13.5px;
  transition: filter .15s ease, transform .15s ease;
}
.nav-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.home-section {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100vh - 62px);
  padding: 72px clamp(24px, 8vw, 120px);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(7, 24, 17, .94) 0%, rgba(7, 24, 17, .78) 38%, rgba(7, 24, 17, .28) 72%, rgba(7, 24, 17, .45) 100%),
    var(--page-bg-image) center / cover no-repeat;
}
.home-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 20, 15, .18), rgba(10, 20, 15, .46));
}
.hero-card {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 24px 0;
  text-align: left;
}
.hero-avatar { border-radius: 50%; box-shadow: 0 0 0 4px rgba(57, 217, 138, .25); margin-bottom: 18px; }
.hero-card h1 { margin: 0 0 8px; font: 700 clamp(34px, 5vw, 64px)/1.08 Outfit, sans-serif; letter-spacing: -.02em; }
.hero-card .grad {
  background: linear-gradient(100deg, var(--green), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { max-width: 460px; margin: 0 0 24px; color: #d8eee2; font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; margin-bottom: 26px; }
.btn { padding: 12px 22px; border-radius: 11px; text-decoration: none; font-weight: 700; font-size: 14.5px; transition: transform .15s ease, filter .15s ease, background .15s ease; }
.btn.primary { background: linear-gradient(120deg, var(--green), #2fbf79); color: var(--green-ink); box-shadow: 0 10px 24px rgba(57, 217, 138, .25); }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.04); }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.hero-chips { list-style: none; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 0; margin: 0; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 24px 0 26px; }
.hero-action { border: 0; border-radius: 10px; padding: 12px 22px; cursor: pointer; font: 700 14px "DM Sans", sans-serif; }
.hero-action.primary { background: var(--green); color: #10271b; }
.hero-action.secondary { border: 1px solid rgba(57, 217, 138, .45); background: rgba(57, 217, 138, .08); color: var(--green); }
.hero-action.download-link { display: inline-flex; align-items: center; background: var(--blue); color: #10202b; text-decoration: none; }
.hero-chips li { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.03); }

/* ---------- Section headings ---------- */
.section-title { margin: 0 0 8px; text-align: center; font: 600 clamp(24px, 3vw, 32px) Outfit, sans-serif; }
.section-sub { margin: 0 auto 34px; max-width: 560px; text-align: center; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.about-card {
  padding: 22px; border-radius: 16px; background: rgba(37, 37, 38, .8);
  border: 1px solid var(--line); transition: transform .18s ease, border-color .18s ease;
}
.about-card:hover { transform: translateY(-3px); border-color: rgba(57, 217, 138, .45); }
.about-card span { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 11px; background: rgba(57, 217, 138, .14); color: var(--green); font-size: 18px; }
.about-card strong { display: block; margin-bottom: 4px; font-size: 15px; }
.about-card small { color: var(--muted); line-height: 1.45; }

/* ---------- Showcase ---------- */
.showcase { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.showcase-shot {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: #252526; box-shadow: var(--shadow);
}
.shot-topbar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: linear-gradient(100deg, #193c32, #245b49); }
.shot-topbar b { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); }
.shot-topbar b:first-child { background: var(--green); }
.shot-topbar i { margin-left: auto; font-style: normal; font-size: 11px; color: #d7ece1; }
.shot-cols { display: grid; grid-template-columns: 48px 1fr 130px; gap: 12px; padding: 16px; }
.shot-side { display: flex; flex-direction: column; gap: 10px; }
.shot-side b { height: 32px; border-radius: 9px; background: #313134; }
.shot-side b:first-child { background: var(--green); }
.shot-main { display: flex; flex-direction: column; gap: 10px; }
.shot-row { height: 40px; border-radius: 9px; background: #2b2b2d; border: 1px solid var(--line); }
.shot-row.search { height: 34px; background: #1f1f21; }
.shot-row.short { height: 30px; width: 78%; }
.shot-panel { display: flex; flex-direction: column; gap: 10px; }
.shot-total { height: 20px; border-radius: 6px; background: #2b2b2d; margin-top: 8px; }
.shot-btn { height: 34px; border-radius: 9px; background: var(--green-deep); }
.shot-btn.s { width: 65%; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; }
.feature-list span { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(74, 163, 223, .14); color: var(--blue); font-size: 16px; }
.feature-list strong { display: block; font-size: 14.5px; }
.feature-list small { color: var(--muted); line-height: 1.4; }

/* ---------- Auth section ---------- */
.access-section { display: grid; justify-items: center; }
.access-section .auth-card { width: min(480px, 100%); }

/* ---------- Downloads ---------- */
.downloads-section .download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.dl-card {
  display: flex; flex-direction: column; gap: 6px; padding: 24px; text-decoration: none;
  border-radius: 16px; background: rgba(37, 37, 38, .8); border: 1px solid var(--line);
  color: var(--ink); transition: transform .18s ease, border-color .18s ease;
}
.dl-card:hover { transform: translateY(-3px); border-color: rgba(57, 217, 138, .45); }
.dl-card span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(57, 217, 138, .14); color: var(--green); font-size: 17px; margin-bottom: 6px; }
.dl-card strong { font-size: 15px; }
.dl-card small { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 60px; padding: 44px 0 28px; border-top: 1px solid var(--line); background: rgba(24, 24, 26, .7); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; max-width: 1080px; margin: 0 auto 26px; padding: 0 24px; }
.foot-grid h3 { margin: 0 0 8px; font: 600 19px Outfit, sans-serif; }
.foot-grid h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.foot-grid p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.foot-grid a { display: block; color: #cfd2d6; text-decoration: none; font-size: 13.5px; padding: 4px 0; transition: color .15s ease; }
.foot-grid a:hover { color: var(--green); }
.foot-base { margin: 0; padding: 0 24px; text-align: center; color: var(--muted); font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .home-section { min-height: calc(100vh - 62px); padding: 56px 24px; background-position: 62% center; }
  .hero-card { padding: 16px 0; }
  .hero-card h1, .tagline { text-align: center; }
  .hero-actions { justify-content: center; }
}

/* ---------- Modal layers (open on click only) ---------- */
.modal-layer {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(15, 15, 17, .7);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}
.modal-layer[hidden] { display: none; }
.modal-card {
  width: min(720px, 100%);
  max-height: min(86vh, 900px);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  animation: modalIn .22s ease;
}
.modal-card.auth-card {
  width: min(500px, 100%);
  max-height: min(90vh, 760px);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 24px;
  background: rgba(43, 43, 45, .95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { margin: 0; font: 600 20px Outfit, sans-serif; }
.modal-close {
  border: 0; background: rgba(255,255,255,.06); color: var(--ink);
  width: 34px; height: 34px; border-radius: 10px; font-size: 20px; line-height: 1;
  transition: background .15s ease;
}
.modal-close:hover { background: rgba(224, 82, 97, .3); }
.modal-body { padding: 22px 24px 26px; }
.auth-card .modal-body { padding: 20px 26px 26px; }
.modal-body .section-sub { margin-bottom: 22px; }
.modal-body .showcase { grid-template-columns: 1fr; }
.modal-body .about-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* nav link buttons (look like links, act as triggers) */
.nav-link {
  border: 0; background: none; padding: 0;
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: color .15s ease;
}
.nav-link:hover { color: var(--green); }
.nav-cta { border: 0; }

/* contact list inside modal */
.contact-list { display: grid; gap: 10px; }
.contact-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: 12px; text-decoration: none;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  color: var(--ink); font-size: 14px;
  transition: border-color .15s ease, transform .15s ease;
}
.contact-list a:hover { border-color: rgba(57, 217, 138, .45); transform: translateY(-1px); }

/* hero footer line */
.foot-base { margin: 24px 0 0; color: var(--muted); font-size: 12.5px; }

/* ---------- More dropdown in the nav ---------- */
.more-wrap { position: relative; }
.more-btn {
  border: 1px solid var(--line); background: rgba(255,255,255,.05);
  color: var(--ink); padding: 9px 16px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600;
  transition: background .15s ease, border-color .15s ease;
}
.more-btn:hover, .more-btn[aria-expanded="true"] { background: rgba(57, 217, 138, .12); border-color: rgba(57, 217, 138, .45); }
.more-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 240px; display: flex; flex-direction: column; gap: 6px;
  padding: 12px;
  background: #2b2b2d; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); z-index: 60;
}
.more-dropdown[hidden] { display: none; }
.more-item {
  border: 0; background: none; text-align: left;
  padding: 10px 12px; border-radius: 9px;
  color: var(--ink); font-size: 13.5px; font-weight: 600;
  transition: background .15s ease;
}
.more-item:hover { background: rgba(57, 217, 138, .14); }
.more-sep { height: 1px; background: var(--line); margin: 6px 0; }
.more-chip { font-size: 12.5px; color: var(--muted); padding: 4px 12px; }
.more-foot { font-size: 11.5px; color: var(--muted); padding: 4px 12px 2px; }

@media (max-width: 600px) {
  .modal-layer {
    place-items: start center;
    padding: 12px;
  }

  .modal-card.auth-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 15px;
  }

  .auth-card .modal-head {
    padding: 15px 18px;
  }

  .auth-card .modal-head h2 {
    font-size: 17px;
  }

  .auth-card .modal-body {
    padding: 18px 18px 22px;
  }

  .auth-tabs {
    margin-bottom: 20px;
  }

  .auth-two {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .auth-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 14px;
  }
}

/* ---------- Ladybird background behind the hero ---------- */
.hero-ladybirds { display: none; }
.ladybird {
  position: absolute;
  display: block;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background:
    radial-gradient(circle at 50% 32%, #1a1a1c 0 21%, transparent 22%),
    radial-gradient(circle at 30% 60%, #1a1a1c 0 9%, transparent 10%),
    radial-gradient(circle at 68% 55%, #1a1a1c 0 8%, transparent 9%),
    radial-gradient(circle at 52% 72%, #1a1a1c 0 7%, transparent 8%),
    linear-gradient(160deg, #ff5d5d, #d92e3e 70%);
  box-shadow:
    inset 0 -14px 0 2px rgba(0,0,0,.18),
    inset 0 4px 8px rgba(255,255,255,.25),
    0 14px 28px rgba(217, 46, 62, .3);
  animation: ladybirdFloat 7s ease-in-out infinite;
}
/* head */
.ladybird::before {
  content: "";
  position: absolute;
  top: -22%; left: 50%;
  width: 52%; height: 34%;
  transform: translateX(-50%);
  border-radius: 50% 50% 40% 40%;
  background: #17171a;
}
/* centre split line */
.ladybird::after {
  content: "";
  position: absolute;
  top: 8%; bottom: 4%; left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: rgba(20, 20, 22, .75);
  border-radius: 3px;
}
/* legs feel via dotted edge accents */
.ladybird { filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); }

.ladybird.l1 { width: 110px; height: 118px; top: 4%; left: 8%; transform: rotate(-14deg); }
.ladybird.l2 { width: 74px; height: 80px; top: 58%; left: 16%; transform: rotate(22deg); animation-delay: -2.4s; }
.ladybird.l3 { width: 96px; height: 104px; top: 12%; right: 7%; transform: rotate(16deg); animation-delay: -4.6s; }

@keyframes ladybirdFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
@media (max-width: 900px) {
  .ladybird.l1 { left: 4%; }
  .ladybird.l3 { right: 3%; }
  .ladybird { opacity: .9; }
}

/* ---------- Nav "More" dropdown ---------- */
.nav-more { position: relative; }
.nav-more-btn {
  border: 1px solid var(--line); background: rgba(255,255,255,.05);
  color: var(--ink); padding: 8px 14px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; transition: border-color .15s ease, background .15s ease;
}
.nav-more-btn:hover { border-color: rgba(57, 217, 138, .5); background: rgba(255,255,255,.08); }
.nav-more-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 190px; display: flex; flex-direction: column; gap: 2px;
  background: transparent; border: 1px solid var(--line); border-radius: 12px;
  padding: 8px; box-shadow: var(--shadow);
}
.nav-more-menu[hidden] { display: none !important; }
.nav-more-menu .nav-link {
  display: block; width: 100%; text-align: left;
  border: 0; background: transparent; color: #cfd2d6;
  padding: 9px 12px; border-radius: 8px; font-size: 13.5px;
  transition: background .15s ease, color .15s ease;
}
.nav-more-menu .nav-link:hover { background: rgba(57, 217, 138, .12); color: var(--green); }

/* ---------- Page footer ---------- */
.page-footer {
  position: relative; z-index: 1;
  text-align: center; padding: 22px 16px 26px;
  color: var(--muted); font-size: 12.5px;
}
