/* ====== Reset + zmienne ====== */
:root {
  --bg-0: #0f3b24;
  --bg-1: #174d2d;
  --bg-2: #1b6136;
  --bg-3: #1f6f3d;
  --glass: rgba(255, 255, 255, 0.06);
  --accent-1: #b5ff57;
  --accent-2: #4df47c;
  --text-1: #eaf6ee;
  --text-2: #cfe7d7;
  --line: rgba(255, 255, 255, 0.28);
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    Helvetica, sans-serif;
  color: var(--text-1);
  background: radial-gradient(80% 60% at 10% 5%, #2a9351 0%, transparent 55%),
    radial-gradient(70% 60% at 95% 15%, #1c7f4a 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-0) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}

/* ogólne */
.container {
  width: min(1180px, 92%);
  max-width: min(1180px, 92vw);
  margin-inline: auto;
}
section {
  padding: clamp(40px, 7vw, 72px) 0;
  background-color: var(--bg-3);
}
h1,
h2,
h3 {
  line-height: 1.15;
}
p {
  font-size: 1.12rem;
}
@media (max-width: 900px) {
  p {
    font-size: 1.06rem;
  }
}
@media (max-width: 600px) {
  p {
    font-size: 1rem;
  }
}

p,
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}
html,
body {
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

/* ====== NAVBAR ====== */
nav,
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
  background: transparent;
}
nav .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 8px 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
nav .brand img {
  height: 34px;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.25));
}
nav .menu {
  list-style: none;
  display: flex;
  gap: 24px;
}
nav .menu a {
  color: var(--text-1);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
nav .menu a:hover {
  opacity: 1;
  transform: translateY(-1px);
}
nav .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
nav .actions .link {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
}
nav .actions .link:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.06);
}
nav .btn {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
  color: #0b2b1a;
  box-shadow: 0 8px 20px rgba(77, 244, 124, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
nav .btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
}
nav .btn:active {
  transform: translateY(0) scale(0.98);
}
/* burger – desktop ukryty, pełny styl w media-query */
nav .burger {
  display: none;
}

/* ====== HERO ====== */
.hero {
  display: flex;
  height: calc(100vh - 76px);
  padding: clamp(24px, 6vw, 56px) 0;
  background: radial-gradient(80% 60% at 10% 5%, #2a9351 0%, transparent 55%),
    radial-gradient(70% 60% at 95% 15%, #1c7f4a 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-0) 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 38px;
}
@media (min-width: 901px) {
  .hero {
    min-height: 72vh;
  }
}
.hero .content h1 {
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}
.hero .content p {
  color: var(--text-2);
  max-width: 52ch;
}
.hero-img img {
  border-radius: 18px;
  background: var(--glass);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }
  .hero .content p {
    max-width: none;
  }
  .hero-img {
    order: 2;
  }
  .hero-img img {
    width: 100%;
    height: auto;
    max-height: 42vh;
    object-fit: contain;
    margin-inline: auto;
    max-width: 520px;
  }
}

/* ====== DISCOVER ====== */
.discover h2 {
  font-size: clamp(24px, 5.2vw, 40px);
  font-weight: 700;
  width: min(900px, 92%);
  margin: 0 auto 28px;
}
.discover .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
}
.discover .discover-img img {
  border-radius: 12px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.discover .content p {
  color: var(--text-2);
  margin-bottom: 22px;
}

/* przyciski global */
button {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
  color: #0b2b1a;
  box-shadow: 0 10px 24px rgba(77, 244, 124, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
button:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
}
button:active {
  transform: translateY(0) scale(0.98);
}

/* ====== FUNCTIONS ====== */
.functions {
  padding-top: 36px;
}
.functions .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.functions .card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 20px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  min-height: 200px;
}
.functions .card h3 {
  font-size: 18px;
  font-weight: 700;
}
.divider {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
  border-radius: 2px;
  margin: 14px 0 12px;
}
.functions .card p {
  color: var(--text-2);
}

/* ====== TRAINER ====== */
.trainer .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}
.trainer h2 {
  font-size: clamp(24px, 5.2vw, 32px);
  margin-bottom: 10px;
}
.trainer p {
  color: var(--text-2);
  margin-bottom: 18px;
}
.trainer .trainer-img img {
  border-radius: 12px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* ====== WORKOUTS ====== */
.workouts h2 {
  text-align: left;
  font-size: clamp(24px, 5.2vw, 32px);
  margin: 0 auto 20px;
  width: min(1180px, 92%);
}
.workouts .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.workouts .card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.workouts .card img {
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.workouts .card h3 {
  font-size: 18px;
}
.workouts .card p {
  color: var(--text-2);
  font-size: 14px;
}

/* ====== CTA ====== */
.cta {
  position: relative;
  padding: 0;
  min-height: 100vh;
  height: 100dvh;
  background-image: url("assets/7.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.1) 35%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.cta .container {
  position: absolute;
  inset: 0;
  width: min(1180px, 92%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: clamp(24px, 6vw, 56px);
  padding: clamp(24px, 6vw, 72px) 0;
  z-index: 2;
}
.cta .achivs,
.cta .cta-content {
  max-width: 72ch;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cta .achivs h2,
.cta .cta-content h2 {
  font-size: clamp(30px, 5.2vw, 46px);
  line-height: 1.15;
}
.cta .achivs p,
.cta .cta-content p {
  font-size: clamp(16px, 2.2vw, 18px);
}
.cta .btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
}
.cta .btns button {
  padding: 12px 18px;
  font-size: 14px;
}

/* ====== RESPONSYWNOŚĆ GRIDS ====== */
@media (max-width: 1024px) {
  .hero .container,
  .discover .container,
  .trainer .container,
  .cta .container {
    grid-template-columns: 1fr;
  }
  .discover h2 {
    text-align: left;
  }
}
@media (max-width: 780px) {
  .functions .grid-3,
  .workouts .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .workouts .card {
    padding: 10px 12px 14px;
  }
}

/* ====== NAV – MOBILE DROPDOWN + BURGER ====== */
@media (max-width: 900px) {
  nav .menu {
    display: none;
  }
  nav .actions .link {
    display: none;
  }

  /* panel dropdown */
  nav .dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: rgba(15, 59, 36, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    z-index: 2;
  }
  nav .dropdown .menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  nav .dropdown .menu a {
    display: block;
    padding: 12px;
    border-radius: 10px;
    color: var(--text-1);
    text-decoration: none;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
  }
  nav .dropdown .menu a:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  nav .dropdown .actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
  }
  nav .dropdown .actions .link {
    display: block;
    text-align: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-1);
    font-weight: 600;
  }
  nav .dropdown .btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
  }

  /* otwarte menu */
  .navbar.open .dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  /* BURGER – zresetowany i kontrastowy */
  .navbar .burger {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    cursor: pointer;
    z-index: 3;
  }
  .navbar .burger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: currentColor;
    border-radius: 2px;
  }

  /* animacja do X */
  .navbar.open .burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .navbar.open .burger span:nth-child(2) {
    opacity: 0;
  }
  .navbar.open .burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* DESKTOP: menu + actions w jednym rzędzie */
nav .dropdown {
  display: flex;
  align-items: center;
  gap: 18px; /* odstęp między listą linków a akcjami */
}

/* (opcjonalnie – czytelny odstęp między linkami w menu) */
nav .dropdown .menu {
  display: flex; /* jawnie, by nie polegać tylko na nav .menu */
  gap: 24px;
}

@media (max-width: 900px) {
  /* NIECH kolumna z linkami zajmie pełną szerokość panelu */
  nav .dropdown .menu {
    width: 100%;
  }
  nav .dropdown .menu li {
    width: 100%;
  }

  /* Linki jako „pełne” przyciski */
  nav .dropdown .menu a {
    width: 100%;
    text-align: center;
    padding: 14px 16px; /* większy target */
    min-height: 44px; /* zalecane minimum dla dotyku */
    border-radius: 12px;
  }

  /* Akcje pod spodem też na 100% szerokości */
  nav .dropdown .actions {
    width: 100%;
  }
  nav .dropdown .actions .link,
  nav .dropdown .btn {
    width: 100%;
    text-align: center;
    min-height: 44px;
    padding: 12px 16px;
  }
}

nav .btn {
  text-decoration: none;
}

/* BRAND: logo + tekst */
nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px; /* odstęp między logo a napisem */
  text-decoration: none; /* bo to <a> */
}

nav .brand .brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.2px;
  color: var(--text-1);
  opacity: 0.95;
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap; /* nie łamie się na 2 linie */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

nav .brand:hover .brand-name {
  opacity: 1;
  transform: translateY(-1px);
}

/* Na małych ekranach można schować napis, by zostawić samo logo */
@media (max-width: 600px) {
  nav .brand .brand-name {
    display: none;
  }
}

/* ====== CRM (sekcja na dole, z obrazkiem) ====== */
.crm {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-3) 100%);
  padding: clamp(40px, 7vw, 96px) 0;
}

.crm-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr; /* tekst | obrazek */
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
}

.crm-copy {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(18px, 3.5vw, 36px);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.crm h2 {
  font-size: clamp(24px, 5.2vw, 36px);
  margin-bottom: 12px;
}

.crm p {
  color: var(--text-2);
  max-width: 72ch;
}

.crm-illustration img {
  border-radius: 14px;
  background: var(--glass);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.1);
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Mobile: układ w kolumnie, obrazek pod tekstem */
@media (max-width: 900px) {
  .crm-grid {
    grid-template-columns: 1fr;
  }
  .crm-illustration {
    order: 2;
  }
}

/* Gdy chcesz mniejszy obrazek na bardzo wąskich ekranach */
@media (max-width: 480px) {
  .crm-illustration img {
    border-radius: 12px;
  }
}

/* ====== MODAL ====== */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 2000;
}
.modal.open { opacity: 1; visibility: visible; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);           /* ciemniejsze tło */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* mniej przezroczyste okno + lepszy kontrast */
.modal-dialog {
  position: relative;
  width: min(760px, 92vw);
  max-height: 86vh;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
  background:
    linear-gradient(180deg, rgba(20, 60, 40, .95), rgba(16, 48, 32, .93));
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  padding: clamp(18px, 3.5vw, 28px);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.modal-close:hover { transform: translateY(-1px); background: rgba(0,0,0,.45); }
.modal-close:active { transform: translateY(0) scale(.98); }
.modal-close:focus { outline: 3px solid rgba(77, 244, 124, .35); }

.modal-content h2 {
  font-size: clamp(22px, 4.2vw, 32px);
  margin-bottom: 10px;
}
.modal-content .lead {
  color: var(--text-1);                         /* pełny kontrast */
  opacity: .95;
  margin-bottom: 10px;
}

.contact-block {
  margin: 18px 0 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.06);            /* trochę wyraźniej */
}

.contact-block h3 { font-size: 16px; margin-bottom: 6px; }
.contact-block a { color: var(--accent-2); text-decoration: none; }

.modal-form { margin-top: 14px; display: grid; gap: 12px; }
.modal-form .field { display: grid; gap: 6px; }
.modal-form label { font-weight: 600; font-size: 14px; }

.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.38);                  /* ciemniejsze pola */
  color: var(--text-1);
  outline: none;
}
.modal-form input::placeholder,
.modal-form textarea::placeholder { color: rgba(234,246,238,.7); }

.modal-form input:focus,
.modal-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(77, 244, 124, .25);
  border-color: var(--accent-2);
}

.modal-form .submit-btn { margin-top: 4px; }
.modal-form .form-note { font-size: 12px; color: var(--text-2); }

/* Scroll lock gdy modal otwarty */
body.modal-open { overflow: hidden; }

/* ===== FIX: mobile hero – bez sztywnej wysokości ===== */
@media (max-width: 900px) {
  .hero {
    height: auto;           /* było: calc(100vh - 76px) */
    min-height: unset;
    padding-top: 20px;
    padding-bottom: 32px;
  }
}

/* ===== FIX: discover – czytelny układ na mobile ===== */
@media (max-width: 900px) {
  .discover {
    overflow: hidden;       /* na wszelki wypadek, by nic nie wystawało */
  }
  .discover h2 {
    width: 100%;
    margin: 0 0 16px;       /* większy dystans od obrazka */
    padding: 0 4%;
    font-size: clamp(20px, 6vw, 26px); /* mniejszy, by się mieściło w 1–2 liniach */
  }
  .discover .container {
    grid-template-columns: 1fr !important; /* jeden słupek */
    gap: 16px;                              /* ciaśniejsza siatka */
    isolation: isolate;                     /* nowy kontekst nakładania */
  }
  .discover .discover-img {
    order: 2;
    margin-top: 4px;        /* odsuń grafikę od nagłówka */
  }
  .discover .discover-img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.12);
  }
  .discover .content {
    order: 3;
    padding: 0 4%;
  }
  .discover .content p {
    margin-bottom: 14px;
  }
  .discover .content button {
    width: 100%;            /* wygodny przycisk na kciuk */
    min-height: 44px;
  }
}

/* jeszcze ciaśniej na bardzo wąskich ekranach */
@media (max-width: 420px) {
  .discover h2 { margin-bottom: 12px; font-size: 20px; }
  .discover .container { gap: 12px; }
}

/* ===== FORM STATUS (wysyłanie / sukces / błąd) ===== */
.form-status[hidden] { display: none !important; }
.form-status {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(18px, 3.5vw, 28px);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
  margin-top: 14px;
}

.form-status .status-content {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

/* spinner */
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: var(--accent-2);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* checkmark */
.check {
  width: 64px;
  height: 64px;
  display: none; /* pojawia się po sukcesie */
}
.check-circle {
  stroke: var(--accent-2);
  stroke-width: 2.5;
  opacity: .85;
}
.check-tick {
  stroke: var(--accent-1);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: dash .6s ease forwards .2s;
}
@keyframes dash { to { stroke-dashoffset: 0; } }

.status-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* stany */
.form-status.sending .spinner { display: block; }
.form-status.sending .check { display: none; }

.form-status.success .spinner { display: none; }
.form-status.success .check { display: block; }

.form-status.error {
  border-color: rgba(255, 120, 120, .45);
  background: linear-gradient(180deg, rgba(255,80,80,.08), rgba(255,80,80,.04));
}
.form-status.error .spinner { display: none; }
.form-status.error .check { display: none; }

/* ===== MODAL VIEWS ===== */
.modal-view { animation: fadeIn .2s ease; }
@keyframes fadeIn { from {opacity:.001; transform: translateY(4px);} to {opacity:1; transform: translateY(0);} }

/* success screen */
.modal-view--success .success-wrap {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  padding: clamp(18px, 3.5vw, 28px);
}

.success-check {
  width: 80px;
  height: 80px;
}
.success-circle {
  stroke: var(--accent-2);
  stroke-width: 2.5;
  opacity: .85;
}
.success-tick {
  stroke: var(--accent-1);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: successDash .6s ease forwards .2s;
}
@keyframes successDash { to { stroke-dashoffset: 0; } }

.success-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--text-1);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.menu {
  align-items: center;
}