/* ==========================================================
   Seadora Diving Center — shared styles
   ========================================================== */
:root {
  --navy-900: #04142b;
  --navy-800: #071f40;
  --navy-700: #0a2b57;
  --blue-600: #0b5fd6;
  --blue-500: #1673ea;
  --blue-400: #3d8ff5;
  --blue-100: #e6f0fe;
  --blue-50: #f3f8ff;
  --ink: #0d1b2e;
  --ink-2: #3b4a5f;
  --muted: #6b7a90;
  --line: #e3e9f2;
  --bg: #ffffff;
  --bg-soft: #f6f9fd;
  --green: #18a058;
  --green-100: #e3f6eb;
  --amber: #d98a00;
  --red: #d63b3b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(13, 27, 46, .04), 0 6px 20px rgba(13, 27, 46, .06);
  --shadow-lg: 0 12px 40px rgba(13, 27, 46, .14);
  --container: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-500); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-title { font-size: 26px; font-weight: 700; }
.link-arrow { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 14px; line-height: 1; transition: all .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-500); color: #fff; box-shadow: 0 6px 18px rgba(11, 95, 214, .35); }
.btn-outline-light { border-color: rgba(255, 255, 255, .85); color: #fff; background: rgba(255, 255, 255, .04); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.btn-outline { border-color: var(--blue-600); color: var(--blue-600); background: #fff; }
.btn-outline:hover { background: var(--blue-50); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--blue-50); color: var(--ink); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-xs { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn-rect { border-radius: var(--radius-sm); }
.btn:disabled, .btn.disabled { background: #e9edf3; color: #9aa6b6; border-color: transparent; cursor: not-allowed; box-shadow: none; }

/* ---------- Header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
.site-header.solid { position: sticky; background: #fff; border-bottom: 1px solid var(--line); }
.site-header.scrolled { position: fixed; background: rgba(4, 20, 43, .92); backdrop-filter: blur(10px); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { color: #fff; }
.brand-logo { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #fff url("../img/logo.jpg") 50% 28% / 150% no-repeat; box-shadow: 0 0 0 1px rgba(13, 27, 46, .08); }
.brand-name { font-weight: 700; font-size: 17px; line-height: 1.05; }
.brand-sub { font-size: 11.5px; opacity: .8; font-weight: 500; }
.solid .brand, .solid .brand:hover { color: var(--ink); }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(255, 255, 255, .9); font-size: 14px; font-weight: 500; padding: 6px 0; position: relative; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: currentColor; border-radius: 2px; }
.solid .nav-links a { color: var(--ink-2); }
.solid .nav-links a:hover, .solid .nav-links a.active { color: var(--blue-600); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.icon-btn { background: none; border: 0; color: #fff; padding: 6px; position: relative; display: inline-flex; }
.solid .icon-btn { color: var(--ink); }
.icon-btn .dot { position: absolute; top: 2px; right: 0; width: 8px; height: 8px; border-radius: 50%; background: #ff5a5f; border: 2px solid currentColor; display: none; }
.icon-btn .dot.show { display: block; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 640px; color: #fff; display: flex; align-items: center;
  background: var(--navy-900) url("../img/hero.jpg") center/cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4, 20, 43, .85) 0%, rgba(4, 20, 43, .45) 50%, rgba(4, 20, 43, .1) 100%),
              linear-gradient(0deg, rgba(4, 20, 43, .55), transparent 40%);
}
.hero .container { position: relative; padding-top: 72px; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.hero p.lead { font-size: 19px; margin: 20px 0 36px; opacity: .92; max-width: 440px; }
.hero-features { display: flex; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.hero-feature { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.3; opacity: .95; }
.hero-feature svg { width: 26px; height: 26px; flex: none; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero {
  position: relative; color: #fff; padding: 140px 0 64px;
  background: var(--navy-900) center/cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 20, 43, .9), rgba(4, 20, 43, .35)); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: 40px; font-weight: 800; }
.page-hero p { margin-top: 10px; opacity: .9; font-size: 16px; }

/* ---------- Adventure cards ---------- */
.adventure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.adventure {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px;
  color: #fff; display: flex; align-items: flex-end; padding: 28px;
  background: var(--navy-800) center/cover no-repeat;
}
.adventure::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 20, 43, .85), rgba(4, 20, 43, .1) 65%); transition: opacity .3s; }
.adventure > * { position: relative; }
.adventure h3 { font-size: 28px; font-weight: 700; }
.adventure p { margin: 6px 0 16px; opacity: .9; }
.adventure { transition: transform .3s, box-shadow .3s; }
.adventure:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ---------- Course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.course-grid.five { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.course-card { display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.course-card .thumb { aspect-ratio: 4/3; background: var(--navy-800) center/cover no-repeat; position: relative; }
.course-card .tag { position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, .92); color: var(--blue-600); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.course-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.course-card h4 { font-size: 15px; font-weight: 700; }
.course-card .cat { font-size: 12px; color: var(--muted); margin-top: 2px; }
.course-card .meta { font-size: 13px; color: var(--ink-2); margin: 10px 0 14px; }
.course-card .actions { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.course-card .actions a { font-size: 13px; font-weight: 600; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; color: #fff; padding: 96px 0;
  background: var(--navy-900) url("../img/fd-pool-5.jpg") center 60%/cover no-repeat;
}
.cta-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 20, 43, .92), rgba(4, 20, 43, .55) 55%, rgba(4, 20, 43, .1)); }
.cta-banner .container { position: relative; }
.cta-banner h2 { font-size: 34px; font-weight: 800; }
.cta-banner p { margin: 16px 0 28px; max-width: 460px; opacity: .9; }

.cta-box {
  position: relative; border-radius: var(--radius); overflow: hidden; color: #fff;
  padding: 44px 40px; background: var(--navy-900) url("../img/turtle.jpg") right center/cover no-repeat;
}
.cta-box::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 20, 43, .95) 30%, rgba(4, 20, 43, .1)); }
.cta-box > * { position: relative; }
.cta-box h3 { font-size: 22px; }
.cta-box p { margin: 8px 0 20px; opacity: .9; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 24px; background: #fff; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .brand { color: var(--ink); }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--ink-2); font-size: 14px; }
.socials { display: flex; gap: 12px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: background .2s; }
.socials a:hover { background: var(--blue-600); color: #fff; }
.socials svg { width: 16px; height: 16px; }
.copyright { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 24px; }

/* ---------- Tabs / pills ---------- */
.pill-tabs { display: inline-flex; gap: 8px; }
.pill-tabs button {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: 9px 22px; border-radius: 8px; font-size: 14px; font-weight: 600;
}
.pill-tabs button.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; padding: 12px 0; color: var(--ink-2); font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--blue-600); border-color: var(--blue-600); font-weight: 600; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; color: var(--ink); background: var(--bg-soft); padding: 14px 20px; font-size: 13px; }
.table td { padding: 16px 20px; border-top: 1px solid var(--line); color: var(--ink-2); }
.table tbody tr:hover td { background: var(--blue-50); }
.table.compact th { padding: 10px 14px; background: none; color: var(--muted); font-weight: 500; font-size: 12px; }
.table.compact td { padding: 11px 14px; font-size: 13px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-green { background: var(--green-100); color: var(--green); }
.badge-blue { background: var(--blue-100); color: var(--blue-600); }
.badge-gray { background: #eef1f5; color: var(--muted); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Forms / booking ---------- */
.page-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 28px; }
.page-head h1 { font-size: 30px; font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 6px; }
.booking-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.panel-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.sticky { position: sticky; top: 96px; }

.course-pick { display: flex; gap: 18px; align-items: center; }
.course-pick img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; }
.course-pick h3 { font-size: 18px; }
.inline-meta { display: flex; gap: 18px; color: var(--ink-2); font-size: 13px; margin-top: 8px; flex-wrap: wrap; }
.inline-meta span { display: inline-flex; align-items: center; gap: 6px; }
.inline-meta svg { width: 15px; height: 15px; }
select.select {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 13px; background: #fff; color: var(--ink);
}
details.course-details { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
details.course-details summary { cursor: pointer; font-size: 13px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details.course-details summary::after { content: "⌄"; font-size: 16px; line-height: 1; transition: transform .2s; }
details.course-details[open] summary::after { transform: rotate(180deg); }
details.course-details ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }

.month-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.month-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.month-tabs button.active { background: var(--blue-100); border-color: var(--blue-100); color: var(--blue-600); font-weight: 700; }
.schedule-list { display: grid; gap: 12px; }
.schedule {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 16px 18px; transition: border-color .2s, background .2s;
}
.schedule.selected { border-color: var(--blue-600); background: var(--blue-50); }
.schedule .date { font-weight: 700; font-size: 15px; }
.schedule .sub { font-size: 13px; color: var(--muted); }
.seats { font-size: 12.5px; font-weight: 600; color: var(--green); }
.seats.low { color: var(--amber); }
.seats.full { color: var(--muted); }
.empty-state { text-align: center; color: var(--muted); padding: 32px; border: 1.5px dashed var(--line); border-radius: 10px; }

.stepper { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 32px 0 8px; }
.step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.step .num { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 12px; background: #fff; }
.step.active { color: var(--ink); font-weight: 600; }
.step.active .num { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.step.done .num { background: var(--green); border-color: var(--green); color: #fff; }
.step-line { width: 80px; height: 1.5px; background: var(--line); }

.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.summary-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 17px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.summary-label { font-size: 13px; font-weight: 700; margin: 18px 0 6px; }
.mini-course { display: flex; gap: 12px; align-items: center; }
.mini-course img { width: 64px; height: 52px; object-fit: cover; border-radius: 8px; }
.mini-course h4 { font-size: 14px; }

.pay-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.pay-option {
  display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 14px 16px; cursor: pointer; transition: border-color .2s, background .2s; font-size: 14px; font-weight: 500;
}
.pay-option + .pay-option { margin-top: 10px; }
.pay-option input { accent-color: var(--blue-600); width: 17px; height: 17px; }
.pay-option .logos { margin-left: auto; display: flex; gap: 5px; align-items: center; }
.pay-option:has(input:checked) { border-color: var(--blue-600); background: var(--blue-50); }
.logo-chip { font-size: 10px; font-weight: 800; padding: 3px 6px; border-radius: 4px; color: #fff; letter-spacing: .02em; }
.bank-dot { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }
.card-fields { display: none; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.card-fields.show { display: grid; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.field.full { grid-column: 1 / -1; }
.field input { border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font: inherit; font-weight: 400; font-size: 14px; }
.field input:focus { outline: 2px solid var(--blue-100); border-color: var(--blue-400); }
.trust-list { display: grid; gap: 22px; margin-top: 22px; }
.trust { display: flex; gap: 14px; }
.trust .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-50); color: var(--ink); display: grid; place-items: center; flex: none; }
.trust .ic svg { width: 19px; height: 19px; }
.trust h4 { font-size: 14px; }
.trust p { font-size: 12.5px; color: var(--muted); }
.secure-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.secure-note b { color: #635bff; }

.confirm-box { text-align: center; padding: 48px 24px; }
.confirm-box .check { width: 72px; height: 72px; border-radius: 50%; background: var(--green-100); color: var(--green); display: grid; place-items: center; margin: 0 auto 20px; }
.confirm-box h2 { font-size: 26px; }
.confirm-box p { color: var(--muted); margin: 10px auto 24px; max-width: 420px; }

/* ---------- Account layout ---------- */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 32px 0 64px; }
.profile { display: flex; align-items: center; gap: 12px; padding: 4px 8px 24px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.profile img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.profile h4 { font-size: 15px; }
.profile p { font-size: 12px; color: var(--muted); }
.side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.side-nav a svg { width: 18px; height: 18px; }
.side-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.side-nav a.active { background: var(--blue-100); color: var(--blue-600); font-weight: 600; }
.side-nav .sep { height: 1px; background: var(--line); margin: 12px 0; }

.my-course { display: grid; grid-template-columns: 170px 1fr auto; gap: 20px; padding: 18px 0; align-items: start; }
.my-course + .my-course { border-top: 1px solid var(--line); }
.my-course img { width: 170px; height: 120px; object-fit: cover; border-radius: 10px; }
.my-course h4 { font-size: 16px; }
.progress { height: 6px; border-radius: 999px; background: #e7edf5; overflow: hidden; margin: 10px 0 12px; max-width: 360px; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-600), #19b2c9); border-radius: inherit; }
.my-course .right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; height: 100%; gap: 12px; }

/* ---------- Course detail ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; margin-top: 20px; }
.session { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; }
.session + .session { border-top: 1px solid var(--line); }
.session img { width: 76px; height: 60px; object-fit: cover; border-radius: 8px; }
.session h4 { font-size: 14.5px; }
.session .right { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.ring { position: relative; width: 140px; height: 140px; margin: 8px auto 20px; }
.ring svg { transform: rotate(-90deg); }
.ring .label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .label b { font-size: 26px; }
.ring .label span { font-size: 12px; color: var(--muted); }
.material { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 13px; }
.material + .material { border-top: 1px solid var(--line); }
.material .file { width: 34px; height: 40px; border-radius: 6px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; flex: none; }
.material .grow { flex: 1; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---------- Admin ---------- */
.admin-body { background: var(--bg-soft); }
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: #cfd9ea; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { padding: 4px 8px 24px; }
.admin-side .side-nav a { color: #b9c6db; }
.admin-side .side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-side .side-nav a.active { background: var(--blue-600); color: #fff; }
.admin-side .side-nav .sep { background: rgba(255, 255, 255, .1); }
.admin-main { padding: 28px 32px 48px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-top h1 { font-size: 26px; font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.stat { padding: 20px 22px; }
.stat .label { font-size: 13px; color: var(--muted); }
.stat .value { font-size: 28px; font-weight: 800; margin-top: 6px; }
.stat .delta { font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-100); padding: 2px 8px; border-radius: 999px; float: right; margin-top: 14px; }
.admin-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-bottom: 20px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding-top: 12px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar span.fill { width: 100%; max-width: 28px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--blue-400), var(--blue-600)); position: relative; transition: height .6s ease; }
.bar span.fill:hover::after { content: attr(data-v); position: absolute; top: -26px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.bar small { font-size: 11px; color: var(--muted); }
.donut-wrap { display: flex; align-items: center; gap: 28px; justify-content: center; padding: 12px 0; }
.legend { display: grid; gap: 10px; font-size: 13px; }
.legend div { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend b { margin-left: 12px; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow-lg); transition: transform .3s; z-index: 100; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .course-grid, .course-grid.five { grid-template-columns: repeat(3, 1fr); }
  .booking-layout, .pay-layout, .detail-layout { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--navy-900); padding: 8px 24px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; color: #fff !important; }
  .nav-links a.active::after { display: none; }
  .nav-actions .btn { display: none; }
  .account-layout { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .admin-side .side-nav { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }
  .adventure-grid { grid-template-columns: 1fr; }
  .course-grid, .course-grid.five { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero { min-height: 600px; }
  .hero-features { gap: 18px; }
  .schedule { grid-template-columns: 1fr auto; }
  .schedule .seats { grid-column: 1; }
  .my-course { grid-template-columns: 1fr; }
  .my-course img { width: 100%; height: 160px; }
  .my-course .right { align-items: flex-start; }
  .step-line { width: 24px; }
  .card-fields { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; text-align: center; }
  .admin-main { padding: 20px 16px; }
  .admin-side .side-nav { grid-template-columns: repeat(2, 1fr); }
  .session { grid-template-columns: 60px 1fr; }
  .session .right { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
}
.course-card { color: inherit; }
.course-card:hover { color: inherit; }
.course-card .actions .link-arrow { color: var(--blue-600); font-size: 13px; }
.table.nowrap td { white-space: nowrap; }
@media (max-width: 640px) { .pill-tabs button { padding: 8px 12px; font-size: 13px; white-space: nowrap; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gallery a { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--navy-800); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.06); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.demo-banner { position: relative; z-index: 60; background: #ffd75e; color: #3d2e00; text-align: center; font-size: 12.5px; font-weight: 600; padding: 6px 12px; }
.site-header:not(.solid):not(.scrolled) { top: 31px; }
.field input:disabled { background: var(--bg-soft); }
.demo-banner { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; height: 31px; line-height: 19px; }

/* ==========================================================
   Admin modules
   ========================================================== */
.admin-top { align-items: flex-start; gap: 16px; }
.admin-top-right { display: flex; align-items: center; gap: 16px; }
.badge-amber { background: #fff3d6; color: #a86a00; }
.badge-red { background: #fde7e7; color: var(--red); }
.badge-gray::before, .badge-green::before, .badge-blue::before, .badge-amber::before, .badge-red::before { flex: none; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.search { flex: 1 1 220px; max-width: 320px; padding: 9px 12px 9px 34px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7a90' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 11px center no-repeat; }
.search:focus, .select:focus { outline: 2px solid var(--blue-100); border-color: var(--blue-400); }
.table.click tbody tr { cursor: pointer; }
.table td b { color: var(--ink); font-weight: 600; }
.table .chev { color: var(--muted); font-size: 18px; width: 20px; }
.cell-user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: hsl(var(--h) 55% 32%); background: hsl(var(--h) 70% 92%); }
.seat-bar { display: inline-block; width: 70px; height: 6px; border-radius: 999px; background: #e7edf5; overflow: hidden; vertical-align: middle; margin-right: 8px; }
.seat-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-600), #19b2c9); }

.ins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 12px; }
.ins-card { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; transition: box-shadow .2s, transform .2s; }
.ins-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.ins-head { display: flex; gap: 12px; align-items: center; }
.ins-head .avatar { width: 46px; height: 46px; font-size: 15px; }
.ins-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11.5px; background: var(--blue-50); color: var(--blue-600); padding: 3px 9px; border-radius: 999px; font-weight: 500; }
.ins-meta { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--ink-2); }
.ins-meta .badge { margin-left: auto; }

.overlay { position: fixed; inset: 0; background: rgba(4, 20, 43, .35); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 80; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; z-index: 90; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease; box-shadow: var(--shadow-lg); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 19px; margin-top: 2px; }
.drawer-body { padding: 18px 22px; overflow-y: auto; flex: 1; }
.drawer-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 22px; border-top: 1px solid var(--line); }
.icon-close { background: var(--bg-soft); border: 0; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--ink-2); flex: none; }
.icon-close:hover { background: var(--line); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 14px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; }
.drawer-sub { font-size: 13px; margin: 22px 0 8px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #bf2f2f; color: #fff; }
.btn-ghost-danger { background: none; color: var(--red); border-color: transparent; margin-left: auto; }
.btn-ghost-danger:hover { background: #fde7e7; }

.modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; z-index: 95; pointer-events: none; }
.modal-card { background: #fff; border-radius: 14px; width: min(560px, 100%); max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px) scale(.98); transition: all .2s; }
.modal.open { pointer-events: auto; }
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-body { padding: 18px 22px; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-body .select, .form-grid .select { padding: 11px 12px; font-size: 14px; font-weight: 400; }
.modal .drawer-foot { justify-content: flex-end; }

.attn { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.attn:last-child { border-bottom: 0; }
.attn b { min-width: 28px; height: 28px; border-radius: 8px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; }
.attn span { margin-left: auto; color: var(--muted); font-size: 18px; }
.attn:hover { color: var(--blue-600); }
.big-date { font-size: 24px; font-weight: 800; margin-bottom: 6px; }

.week { display: grid; grid-template-columns: repeat(7, minmax(112px, 1fr)); gap: 10px; overflow-x: auto; margin-top: 8px; padding-bottom: 4px; }
.week-col { background: var(--bg-soft); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 260px; }
.week-col.today { background: var(--blue-50); outline: 1.5px solid var(--blue-100); }
.week-head { font-size: 12.5px; font-weight: 700; padding: 4px 4px 2px; color: var(--ink-2); }
.sess { text-align: left; border: 0; border-left: 3px solid var(--blue-600); background: #fff; border-radius: 8px; padding: 8px 10px; display: grid; gap: 2px; font-size: 12.5px; box-shadow: var(--shadow); }
.sess:hover { box-shadow: var(--shadow-lg); }
.sess.boat { border-left-color: #19b2c9; }
.sess small { color: var(--muted); font-size: 11.5px; }
.legend-inline { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-left: auto; }
.legend-inline i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.dot-pool { background: var(--blue-600); }
.dot-boat { background: #19b2c9; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.switch-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch-row:last-child { border-bottom: 0; }
.switch-row span { flex: 1; display: grid; font-size: 14px; }
.switch-row small { color: var(--muted); font-size: 12.5px; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 40px; height: 22px; border-radius: 999px; background: #d5dce6; position: relative; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch-row input:checked + .switch { background: var(--blue-600); }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--blue-400); outline-offset: 2px; }
.settings-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }

@media (max-width: 1080px) { .settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .modal-body, .form-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 110px 1fr; }
  .admin-top { flex-direction: column; }
  .search { max-width: none; }
}
[hidden] { display: none !important; }
.table.click td { white-space: nowrap; }

/* ---------- Website chat widget ---------- */
.chatw { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chatw-fab { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--blue-600); color: #fff; font-size: 26px; box-shadow: 0 10px 28px rgba(11, 95, 214, .45); transition: transform .2s; }
.chatw-fab:hover { transform: scale(1.06); }
.chatw-panel { width: min(370px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.chatw-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--navy-800); color: #fff; }
.chatw-head div { flex: 1; display: grid; line-height: 1.2; }
.chatw-head small { opacity: .75; font-size: 11.5px; }
.chatw-x { background: none; border: 0; color: #fff; font-size: 24px; line-height: 1; }
.chatw-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-soft); }
.chatw-msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.chatw-msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.chatw-msg.me { background: var(--blue-600); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chatw-msg.typing { color: var(--muted); letter-spacing: 2px; }
.chatw-link { display: grid; gap: 2px; margin-top: 8px; padding: 9px 11px; border-radius: 10px; background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-600); }
.chatw-link small { color: var(--ink-2); font-size: 12px; }
.chatw-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: var(--bg-soft); }
.chatw-quick button { border: 1px solid var(--blue-100); background: #fff; color: var(--blue-600); border-radius: 999px; padding: 5px 10px; font-size: 12.5px; }
.chatw-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chatw-form input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font: inherit; font-size: 14px; }
.chatw-form button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--blue-600); color: #fff; }

/* ---------- Session picker ---------- */
.plan-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.plan-opt { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; font-size: 14px; }
.plan-opt input { accent-color: var(--blue-600); margin-top: 3px; }
.plan-opt b { display: block; }
.plan-opt small { color: var(--muted); }
.plan-opt:has(input:checked) { border-color: var(--blue-600); background: var(--blue-50); }
.sess-list { display: grid; gap: 10px; }
.sess-row { border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.sess-row.open { border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100); }
.sess-row.picked, .sess-row.booked { background: #fbfdff; }
.sess-row.locked { opacity: .65; }
.sess-head { display: flex; gap: 12px; align-items: center; padding: 12px 14px; }
.sess-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; background: var(--bg-soft); color: var(--ink-2); border: 1.5px solid var(--line); }
.sess-row.open .sess-n { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.sess-row.picked .sess-n, .sess-row.booked .sess-n { background: var(--green); border-color: var(--green); color: #fff; }
.sess-info { flex: 1; min-width: 0; }
.sess-when { color: var(--ink); font-weight: 600; }
.sess-act { flex: none; }
.sess-body { padding: 0 14px 14px; }
.slot-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.slot-chip { display: grid; gap: 1px; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 10px; font-size: 13px; transition: border-color .15s, background .15s; }
.slot-chip:hover:not(:disabled) { border-color: var(--blue-600); background: var(--blue-50); }
.slot-chip span { color: var(--ink-2); font-size: 12px; }
.slot-chip small { font-weight: 600; color: var(--green); font-size: 11.5px; }
.slot-chip small.low { color: var(--amber); }
.slot-chip:disabled { opacity: .5; cursor: not-allowed; }
.slot-chip:disabled small { color: var(--muted); }
.sum-sessions { display: grid; gap: 8px; font-size: 13px; }
.sum-sessions div { display: flex; justify-content: space-between; gap: 10px; }
.sum-sessions span:last-child { text-align: right; color: var(--ink); }
.sum-sessions .later span:last-child { color: var(--amber); }
.note { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 640px) { .plan-toggle { grid-template-columns: 1fr; } }

/* ---------- Admin monthly calendar ---------- */
.cal-toolbar { gap: 12px; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-nav b { min-width: 130px; text-align: center; font-size: 15px; }
.cal-toolbar .search { max-width: 230px; }
.cal-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin: 6px 0 10px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ev-theory { --ev: #7c4dff; --ev-bg: #f1ecff; }
.ev-pool { --ev: #0b5fd6; --ev-bg: #e6f0fe; }
.ev-ocean { --ev: #0e9aa7; --ev-bg: #e2f6f7; }
.cal-legend i.ev-theory, .cal-legend i.ev-pool, .cal-legend i.ev-ocean { background: var(--ev); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--line); gap: 1px; }
.cal-dow { background: var(--bg-soft); padding: 8px 10px; font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; }
.cal-cell { background: #fff; border: 0; min-height: 118px; padding: 7px 7px 8px; display: flex; flex-direction: column; gap: 3px; text-align: left; font: inherit; cursor: pointer; min-width: 0; }
.cal-cell:hover { background: var(--blue-50); }
.cal-cell.blank { background: #fafbfd; cursor: default; }
.cal-cell.past { background: #fcfcfd; }
.cal-cell.past .cal-ev { opacity: .65; }
.cal-num { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 2px; }
.cal-dowm { display: none; font-weight: 500; color: var(--muted); }
.cal-cell.today .cal-num { color: var(--blue-600); }
.cal-cell.today .cal-num::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-600); }
.cal-count { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); }
.cal-ev { display: block; font-size: 11.5px; line-height: 1.3; padding: 3px 6px; border-radius: 5px; background: var(--ev-bg); color: var(--ink); border-left: 3px solid var(--ev); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev b { color: var(--ev); font-weight: 700; }
.cal-more { font-size: 11.5px; color: var(--blue-600); font-weight: 600; padding-left: 4px; }
.day-group { margin-bottom: 18px; }
.day-head { border-left: 4px solid var(--ev); background: var(--ev-bg); border-radius: 6px; padding: 8px 10px; font-size: 13.5px; margin-bottom: 4px; }
.day-head b { color: var(--ev); }
.day-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
@media (max-width: 860px) {
  .cal-grid { grid-template-columns: 1fr; }
  .cal-dow, .cal-cell.blank, .cal-cell.empty { display: none; }
  .cal-cell { min-height: 0; }
  .cal-dowm { display: inline; }
  .cal-ev { white-space: normal; }
}
.cal-ev .ev-line, .cal-ev .ev-sub { display: block; overflow: hidden; text-overflow: ellipsis; }
.cal-ev .ev-sub { color: var(--ink-2); font-size: 10.5px; }
@media (max-width: 640px) {
  .course-pick { flex-wrap: wrap; }
  .course-pick img { width: 96px; height: 76px; }
  .course-pick > div { min-width: 0; flex: 1 1 160px; }
  .course-pick .select { width: 100%; }
  .page-head { flex-direction: column; }
  .sess-head { flex-wrap: wrap; }
  .sess-act { margin-left: 40px; }
}
.booking-layout > *, .pay-layout > *, .booking-layout > div > .panel { min-width: 0; }
.month-tabs { overflow-x: auto; scrollbar-width: none; }
.month-tabs button { flex: none; }

/* ---------- Admin live mode ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); grid-column: 1 / -1; }
.login-card { width: min(400px, 100%); background: #fff; border-radius: 16px; padding: 28px; display: grid; gap: 14px; box-shadow: var(--shadow-lg); }
.login-card .brand { color: var(--ink); }
.login-card h1 { font-size: 20px; text-align: center; margin-bottom: 4px; }
.login-card .field input { border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font: inherit; font-weight: 400; }
.nav-tag { margin-left: auto; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, .1); color: #9fb2cf; }
a.mini-row { color: inherit; }
a.mini-row:hover { background: var(--bg-soft); }

/* ---------- Pool practice page ---------- */
.practice-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.practice-layout > * { min-width: 0; }
.pp-info { position: sticky; top: 96px; }
.pp-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.pp-month { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 22px 0 10px; }
.pp-month:first-child { margin-top: 0; }
.pp-row { display: grid; grid-template-columns: 64px 1fr auto 150px auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.pp-row.full { opacity: .65; box-shadow: none; }
.pp-date { text-align: center; line-height: 1.1; border-right: 1px solid var(--line); padding-right: 14px; }
.pp-date b { display: block; font-size: 24px; font-weight: 800; color: var(--blue-600); }
.pp-date small { font-size: 12px; color: var(--muted); }
.pp-price { font-weight: 700; white-space: nowrap; }
.pp-spots { white-space: nowrap; }
.pp-low { color: var(--amber); font-weight: 600; }
@media (max-width: 860px) {
  .practice-layout { grid-template-columns: 1fr; }
  .pp-info { position: static; }
}
@media (max-width: 640px) {
  .pp-row { grid-template-columns: 56px 1fr auto; row-gap: 8px; }
  .pp-price { text-align: right; }
  .pp-spots { grid-column: 2; }
  .pp-act { grid-column: 3; justify-self: end; }
}

/* live refresh (back office pool practice) */
@keyframes pp-flash { from { background: #fff1c2; } to { background: transparent; } }
.pp-flash > td, h4.pp-flash { animation: pp-flash 2.4s ease-out; }
.pp-live { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: live-pulse 2s infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(24, 160, 88, .45); } 70% { box-shadow: 0 0 0 7px rgba(24, 160, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(24, 160, 88, 0); } }

/* ---------- Customer account: sign in, dashboard, payment schedule, certificates ---------- */
.nav-account { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 14px; font-weight: 600; padding: 6px 4px; white-space: nowrap; }
.nav-account:hover { color: #fff; opacity: .85; }
.solid .nav-account { color: var(--ink); }
.solid .nav-account:hover, .solid .nav-account.active { color: var(--blue-600); opacity: 1; }
.auth-wrap { display: grid; place-items: start center; padding: 48px 0 72px; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { font-size: 24px; font-weight: 800; }
.auth-card .tabs { margin-bottom: 20px; }
.auth-card form { display: grid; gap: 14px; }
.auth-card .field input, .acct-form .field input, .acct-form .field select { border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font: inherit; font-weight: 400; font-size: 14px; background: #fff; }
.code-input { font-size: 26px !important; letter-spacing: .45em; text-align: center; font-variant-numeric: tabular-nums; padding: 12px !important; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue-600); font-weight: 600; font-size: 13px; }
.link-btn:disabled { color: var(--muted); cursor: default; font-weight: 500; }
.form-err { color: var(--red); font-size: 13px; }
.acct-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; }
.acct-main > section { scroll-margin-top: 90px; }
.acct-hello h1 { font-size: 26px; font-weight: 800; }
.acct-alert { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-alert.overdue { background: #fde7e7; border-color: #f7c9c9; }
.acct-alert .btn { margin-left: auto; }
.side-nav button.side-link { display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 500; background: none; border: 0; text-align: left; }
.side-nav button.side-link svg { width: 18px; height: 18px; }
.side-nav button.side-link:hover { background: var(--bg-soft); color: var(--ink); }
.trip-card + .trip-card { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.trip-card .mini-course img { width: 84px; height: 64px; }
.mini-list { display: grid; }
.pay-plan { margin-top: 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.pay-plan-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.pay-plan .progress { max-width: none; margin: 8px 0 6px; }
.pay-parts { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-top: 10px; }
.pay-part { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; font-size: 14px; }
.pay-part + .pay-part { border-top: 1px solid var(--line); }
.pay-part small { display: block; color: var(--muted); font-size: 12.5px; }
.pay-part-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; text-align: right; }
.pay-part.is-paid b { color: var(--ink-2); }
.sum-sessions .pay-plan .pay-parts { display: block; }
.part-pay { margin-top: 12px; }
.part-chooser { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.part-chooser .pay-option { padding: 10px 12px; }
.part-err { color: var(--red); margin-top: 8px; }
.part-transfer { margin-top: 10px; }
.cert-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; }
.cert-row + .cert-row { border-top: 1px solid var(--line); }
.cert-thumb { width: 72px; height: 54px; border-radius: 8px; overflow: hidden; background: var(--bg-soft); display: grid; place-items: center; color: var(--muted); }
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cert-row h4 { font-size: 15px; }
.cert-add { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 18px; }
.acct-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.acct-form .full { grid-column: 1 / -1; }
.kind-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.kind-pick .pay-option { margin: 0 !important; flex: 1 1 140px; }
.photo-preview { max-height: 180px; border-radius: 10px; border: 1px solid var(--line); margin-top: 8px; }
@media (max-width: 860px) {
  .acct-side { display: grid; gap: 10px; }
  .acct-side .side-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .acct-side .side-nav li { flex: none; }
  .acct-side .side-nav .sep { display: none; }
  .acct-side .side-nav a, .acct-side .side-nav button.side-link { padding: 8px 12px; background: #fff; border: 1px solid var(--line); white-space: nowrap; }
  .acct-side .profile { padding-bottom: 12px; margin-bottom: 0; }
}
@media (max-width: 640px) {
  .nav-account span { display: none; }
  .nav-account svg { width: 22px; height: 22px; }
  .acct-form { grid-template-columns: 1fr; }
  .cert-row { grid-template-columns: 56px 1fr; }
  .cert-row .cert-act { grid-column: 1 / -1; }
  .cert-thumb { width: 56px; height: 44px; }
  .auth-wrap { padding: 24px 0 48px; }
}
.sum-sessions .pay-plan, .sum-sessions .pay-plan .table-wrap, .sum-sessions .pay-plan .progress { display: block; }
.sum-sessions .pay-part > div:first-child { display: block; }
.pay-part > div:first-child { white-space: nowrap; }
.account-layout > * { min-width: 0; }
.acct-form > * { min-width: 0; }
.acct-form input[type="date"] { min-width: 0; width: 100%; }
.mini-row .badge, .my-course h4 .badge { white-space: nowrap; }
.auth-wrap { min-height: 62vh; }
