/* FlyingFish Partner Portal — ffp- module (scoped; loaded only under /partners/).
   Palette: white + FlyingFish teal. Cyan→teal gradient only on branded words.
   WhatsApp green / Google white only on their own login buttons. */

:root {
  --ffp-teal: #0d9488;
  --ffp-teal-d: #0f766e;
  --ffp-teal-dd: #134e4a;
  --ffp-teal-50: #f0fdfa;
  --ffp-teal-100: #ccfbf1;
  --ffp-teal-200: #99f6e4;
  --ffp-teal-300: #5eead4;
  --ffp-cyan: #06b6d4;
  --ffp-ink: #0f172a;
  --ffp-ink-2: #334155;
  --ffp-muted: #64748b;
  --ffp-faint: #94a3b8;
  --ffp-line: #e2e8f0;
  --ffp-line-2: #f1f5f9;
  --ffp-white: #ffffff;
  --ffp-amber: #d97706;
  --ffp-amber-bg: #fffbeb;
  --ffp-red: #dc2626;
  --ffp-red-bg: #fef2f2;
  --ffp-wa: #25d366;
  --ffp-wa-d: #128c7e;
  --ffp-brand-grad: linear-gradient(135deg, #06b6d4, #0d9488);
  --ffp-r: 16px;
  --ffp-r-sm: 10px;
  --ffp-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 20px rgba(15, 23, 42, .06);
  --ffp-shadow-lg: 0 10px 40px rgba(13, 148, 136, .14);
  --ffp-head: 'Josefin Sans', system-ui, sans-serif;
  --ffp-body: 'Figtree', system-ui, sans-serif;
  --ffp-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ffp-ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ffp {
  margin: 0; min-height: 100vh; background: var(--ffp-white); color: var(--ffp-ink);
  font: 400 15px/1.55 var(--ffp-body); -webkit-font-smoothing: antialiased;
}
.ffp h1, .ffp h2, .ffp h3, .ffp h4 { font-family: var(--ffp-head); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
:where(.ffp) a { color: var(--ffp-teal-d); }
:where(.ffp) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.ffp [hidden] { display: none !important; }
.ffp .num { font-variant-numeric: tabular-nums; }
.ffp-brandtext { background: var(--ffp-brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ffp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ffp :focus-visible { outline: 2px solid var(--ffp-teal); outline-offset: 2px; border-radius: 6px; }

/* Bathymetric contour texture (inline SVG, teal lines) */
.ffp-contours {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%230d9488' stroke-width='1'%3E%3Cpath d='M-20 120c80-40 150 30 240 0s160-70 320-10' opacity='.35'/%3E%3Cpath d='M-20 160c90-40 160 36 250 4s150-66 310-6' opacity='.28'/%3E%3Cpath d='M-20 205c100-36 170 40 260 8s140-60 300-2' opacity='.22'/%3E%3Cpath d='M-20 300c70-50 190 20 270-12s170-44 290 14' opacity='.3'/%3E%3Cpath d='M-20 345c80-46 200 26 280-6s160-40 280 18' opacity='.22'/%3E%3Cpath d='M-20 430c110-30 150 34 250 10s180-52 310-8' opacity='.28'/%3E%3Cpath d='M-20 470c120-28 160 38 260 14s170-48 300-4' opacity='.18'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 520px 520px;
}

/* ───────── Buttons ───────── */
.ffp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none;
  transition: transform .15s var(--ffp-ease), background .2s, box-shadow .2s, border-color .2s; white-space: nowrap;
}
.ffp-btn:active { transform: scale(.98); }
.ffp-btn[disabled] { opacity: .55; cursor: not-allowed; }
.ffp-btn--primary { background: var(--ffp-teal); color: #fff; box-shadow: 0 6px 18px rgba(13, 148, 136, .25); }
.ffp-btn--primary:hover { background: var(--ffp-teal-d); }
.ffp-btn--ghost { background: #fff; border-color: var(--ffp-line); color: var(--ffp-ink-2); }
.ffp-btn--ghost:hover { border-color: var(--ffp-teal-200); color: var(--ffp-teal-d); background: var(--ffp-teal-50); }
.ffp-btn--soft { background: var(--ffp-teal-50); color: var(--ffp-teal-d); border-color: var(--ffp-teal-100); }
.ffp-btn--soft:hover { background: var(--ffp-teal-100); }
.ffp-btn--danger { background: #fff; color: var(--ffp-red); border-color: #fecaca; }
.ffp-btn--wa { background: var(--ffp-wa); color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, .28); }
.ffp-btn--wa:hover { background: #1fb959; }
.ffp-btn--sm { min-height: 36px; padding: 6px 12px; font-size: 13.5px; border-radius: 10px; }
.ffp-btn--block { width: 100%; }
.ffp-btn svg { width: 18px; height: 18px; flex: none; }
.ffp-iconbtn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--ffp-line); background: #fff; display: inline-grid; place-items: center; cursor: pointer; color: var(--ffp-ink-2); }
.ffp-iconbtn:hover { color: var(--ffp-teal-d); border-color: var(--ffp-teal-200); }
.ffp-iconbtn svg { width: 18px; height: 18px; }

/* ───────── Forms ───────── */
.ffp-field { display: grid; gap: 6px; margin-bottom: 14px; }
.ffp-field > label, .ffp-label { font-size: 13px; font-weight: 600; color: var(--ffp-ink-2); }
.ffp-field small, .ffp-help { font-size: 12.5px; color: var(--ffp-muted); }
.ffp-input, .ffp-select, .ffp-textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--ffp-line); border-radius: 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s; font-size: 16px;
}
.ffp-textarea { min-height: 96px; resize: vertical; }
.ffp-input:focus, .ffp-select:focus, .ffp-textarea:focus { outline: none; border-color: var(--ffp-teal); box-shadow: 0 0 0 4px rgba(13, 148, 136, .12); }
.ffp-input[readonly] { background: var(--ffp-line-2); color: var(--ffp-muted); }
.ffp-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .ffp-row { grid-template-columns: 1fr; } }
.ffp-phone { display: flex; border: 1px solid var(--ffp-line); border-radius: 12px; overflow: hidden; background: #fff; transition: border-color .2s, box-shadow .2s; }
.ffp-phone:focus-within { border-color: var(--ffp-teal); box-shadow: 0 0 0 4px rgba(13, 148, 136, .12); }
.ffp-phone span { display: grid; place-items: center; padding: 0 12px; background: var(--ffp-teal-50); color: var(--ffp-teal-d); font-weight: 600; border-right: 1px solid var(--ffp-line); }
.ffp-phone input { border: 0; flex: 1; min-width: 0; min-height: 50px; padding: 0 14px; font-size: 17px; letter-spacing: .04em; outline: none; background: transparent; }
.ffp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ffp-ink-2); cursor: pointer; margin: 10px 0; }
.ffp-check input { width: 20px; height: 20px; accent-color: var(--ffp-teal); flex: none; margin: 1px 0 0; }
.ffp-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ffp-otp input { width: 100%; aspect-ratio: 1 / 1.15; text-align: center; font: 600 22px var(--ffp-mono); border: 1px solid var(--ffp-line); border-radius: 12px; background: #fff; }
.ffp-otp input:focus { outline: none; border-color: var(--ffp-teal); box-shadow: 0 0 0 4px rgba(13, 148, 136, .12); }
.ffp-seg { display: inline-flex; padding: 4px; background: var(--ffp-line-2); border-radius: 12px; gap: 4px; }
.ffp-seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--ffp-muted); cursor: pointer; min-height: 36px; }
.ffp-seg button[aria-pressed="true"] { background: #fff; color: var(--ffp-teal-d); box-shadow: var(--ffp-shadow); }
.ffp-err { background: var(--ffp-red-bg); color: var(--ffp-red); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin: 8px 0; }
.ffp-note { background: var(--ffp-teal-50); color: var(--ffp-teal-dd); border: 1px solid var(--ffp-teal-100); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.ffp-note--amber { background: var(--ffp-amber-bg); color: #92400e; border-color: #fde68a; }

/* ───────── Cards / chips / badges ───────── */
.ffp-card { background: #fff; border: 1px solid var(--ffp-line); border-radius: var(--ffp-r); box-shadow: var(--ffp-shadow); padding: 20px; }
.ffp-card + .ffp-card { margin-top: 16px; }
.ffp-card h3 { font-size: 18px; margin-bottom: 4px; }
.ffp-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ffp-card__sub { color: var(--ffp-muted); font-size: 13.5px; }
.ffp-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--ffp-line-2); color: var(--ffp-ink-2); white-space: nowrap; }
.ffp-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.ffp-badge--teal, .ffp-badge--active, .ffp-badge--approved, .ffp-badge--paid, .ffp-badge--won, .ffp-badge--done { background: var(--ffp-teal-50); color: var(--ffp-teal-d); }
.ffp-badge--pending, .ffp-badge--requested, .ffp-badge--new, .ffp-badge--quoted, .ffp-badge--deposit_paid { background: var(--ffp-amber-bg); color: var(--ffp-amber); }
.ffp-badge--void, .ffp-badge--rejected, .ffp-badge--lost, .ffp-badge--flag { background: var(--ffp-red-bg); color: var(--ffp-red); }
.ffp-badge--paused { background: var(--ffp-line-2); color: var(--ffp-muted); }
.ffp-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ffp-chip { border: 1px solid var(--ffp-line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--ffp-muted); cursor: pointer; min-height: 34px; }
.ffp-chip[aria-pressed="true"] { background: var(--ffp-teal); border-color: var(--ffp-teal); color: #fff; }

/* Dive tag — the referral code chip */
.ffp-tag {
  display: inline-flex; align-items: center; gap: 10px; font: 600 15px var(--ffp-mono); letter-spacing: .12em; color: var(--ffp-teal-dd);
  padding: 8px 12px 8px 14px; border: 1.5px dashed var(--ffp-teal-300); border-radius: 12px; background: var(--ffp-teal-50); cursor: pointer;
}
.ffp-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--ffp-teal); background: #fff; }
.ffp-tag--xl { font-size: clamp(24px, 6vw, 34px); padding: 14px 20px; border-radius: 16px; }
.ffp-tag--xl::before { width: 12px; height: 12px; }

/* KPI tiles */
.ffp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .ffp-kpis { grid-template-columns: repeat(2, 1fr); } }
.ffp-kpi { background: #fff; border: 1px solid var(--ffp-line); border-radius: 14px; padding: 16px; position: relative; overflow: hidden; }
.ffp-kpi__label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ffp-muted); }
.ffp-kpi__val { font: 600 clamp(24px, 3.4vw, 30px)/1.1 var(--ffp-head); margin-top: 8px; font-variant-numeric: tabular-nums; }
.ffp-kpi__sub { font-size: 12.5px; color: var(--ffp-muted); margin-top: 4px; }
.ffp-kpi--accent { background: var(--ffp-teal); border-color: var(--ffp-teal); color: #fff; }
.ffp-kpi--accent .ffp-kpi__label, .ffp-kpi--accent .ffp-kpi__sub { color: var(--ffp-teal-100); }
.ffp-kpi--accent::after { content: ''; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; border: 18px solid rgba(255, 255, 255, .08); }

/* Lists */
.ffp-list { display: grid; gap: 10px; }
.ffp-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--ffp-line); border-radius: 14px; background: #fff; }
.ffp-item__title { font-weight: 600; font-size: 14.5px; }
.ffp-item__meta { color: var(--ffp-muted); font-size: 12.5px; }
.ffp-item__amt { font: 600 17px var(--ffp-head); text-align: right; font-variant-numeric: tabular-nums; }
.ffp-table-wrap { overflow-x: auto; border: 1px solid var(--ffp-line); border-radius: 14px; }
.ffp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.ffp-table th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ffp-muted); font-weight: 600; background: var(--ffp-teal-50); padding: 10px 12px; }
.ffp-table td { padding: 12px; border-top: 1px solid var(--ffp-line-2); vertical-align: top; }
.ffp-table tr:hover td { background: #fcfefe; }

/* Dive-profile stage tracker: clicked → booked → dived → paid */
.ffp-profile { display: flex; align-items: center; gap: 0; grid-column: 1 / -1; margin-top: 6px; }
.ffp-profile__step { display: flex; align-items: center; flex: 1; font-size: 11px; color: var(--ffp-faint); font-weight: 600; letter-spacing: .03em; }
.ffp-profile__step:last-child { flex: none; }
.ffp-profile__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ffp-line); background: #fff; flex: none; }
.ffp-profile__bar { height: 2px; flex: 1; background: var(--ffp-line); margin: 0 6px; }
.ffp-profile__step.is-done { color: var(--ffp-teal-d); }
.ffp-profile__step.is-done .ffp-profile__dot { border-color: var(--ffp-teal); background: var(--ffp-teal); }
.ffp-profile__step.is-done .ffp-profile__bar { background: var(--ffp-teal); }
.ffp-profile__lbl { margin-left: 6px; }
@media (max-width: 480px) { .ffp-profile__lbl { display: none; } }

/* Depth gauge checklist */
.ffp-gauge { display: grid; grid-template-columns: 34px 1fr; gap: 0 16px; }
.ffp-gauge__rail { position: relative; grid-row: 1 / span 10; }
.ffp-gauge__rail::before { content: ''; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 4px; transform: translateX(-50%); border-radius: 4px; background: var(--ffp-teal-50); }
.ffp-gauge__fill { position: absolute; left: 50%; top: 6px; width: 4px; transform: translateX(-50%); border-radius: 4px; background: linear-gradient(180deg, var(--ffp-teal-300), var(--ffp-teal-d)); transition: height 1s var(--ffp-ease); }
.ffp-gauge__step { position: relative; display: flex; gap: 12px; align-items: center; padding: 10px 0; min-height: 54px; }
.ffp-gauge__depth { position: absolute; left: -50px; width: 34px; text-align: center; font: 600 10.5px var(--ffp-mono); color: var(--ffp-faint); }
.ffp-gauge__mark { position: absolute; left: -41px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--ffp-teal-200); }
.ffp-gauge__step.is-done .ffp-gauge__mark { background: var(--ffp-teal); border-color: var(--ffp-teal); box-shadow: 0 0 0 4px var(--ffp-teal-100); }
.ffp-gauge__txt b { display: block; font-size: 14.5px; }
.ffp-gauge__txt span { color: var(--ffp-muted); font-size: 12.5px; }
.ffp-gauge__step.is-done .ffp-gauge__txt b { color: var(--ffp-teal-d); text-decoration: line-through; text-decoration-color: var(--ffp-teal-200); }
.ffp-gauge__cta { margin-left: auto; }

/* Empty states */
.ffp-empty { text-align: center; padding: 34px 20px; border: 1.5px dashed var(--ffp-teal-100); border-radius: var(--ffp-r); background: linear-gradient(180deg, #fff, var(--ffp-teal-50)); }
.ffp-empty__art { width: 72px; height: 72px; margin: 0 auto 12px; color: var(--ffp-teal); }
.ffp-empty h4 { font-size: 18px; margin-bottom: 6px; }
.ffp-empty p { color: var(--ffp-muted); margin: 0 auto 16px; max-width: 380px; font-size: 14px; }

/* Skeleton */
.ffp-skel { border-radius: 12px; background: linear-gradient(90deg, var(--ffp-line-2) 0%, #fff 50%, var(--ffp-line-2) 100%); background-size: 200% 100%; animation: ffp-shimmer 1.2s infinite linear; }
@keyframes ffp-shimmer { to { background-position: -200% 0; } }

.ffp-eyebrow { font: 600 12px var(--ffp-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ffp-teal-d); display: inline-flex; gap: 8px; align-items: center; }
.ffp-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--ffp-teal); }

/* ───────── Landing / login (glass header over a descending-water hero) ───────── */
html { scroll-behavior: smooth; }
body.ffp[data-page="login"] { scroll-padding-top: 90px; }
[id="login"], .ffp-sec[id] { scroll-margin-top: 88px; }

.ffp-glasshead { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; padding: 0 16px; pointer-events: none; }
.ffp-glasshead__in {
  pointer-events: auto; max-width: 1240px; margin: 0 auto; height: 72px; padding: 0 12px 0 22px; display: flex; align-items: center; gap: 24px;
  background: rgba(255, 255, 255, .66); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .75); border-radius: 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 10px 30px rgba(15, 118, 110, .10);
  transition: background .3s, box-shadow .3s, height .3s var(--ffp-ease);
}
.ffp-glasshead.is-scrolled .ffp-glasshead__in { background: rgba(255, 255, 255, .72); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 14px 40px rgba(15, 118, 110, .16); height: 64px; }
.ffp-glasshead .ffp-logo img { height: 50px; width: auto; }
.ffp-logo img { width: auto; max-width: 100%; }
.ffp-glasshead__nav { display: flex; gap: 4px; margin-left: auto; }
.ffp-glasshead__nav a { text-decoration: none; color: var(--ffp-ink-2); font-weight: 600; font-size: 14.5px; padding: 8px 14px; border-radius: 10px; transition: background .2s, color .2s; }
.ffp-glasshead__nav a:hover { background: rgba(255, 255, 255, .7); color: var(--ffp-teal-d); }
.ffp-glasshead__cta { display: flex; gap: 8px; }
.ffp-glasshead__login { background: rgba(255, 255, 255, .6); }
@media (max-width: 960px) { .ffp-glasshead__nav { display: none; } .ffp-glasshead__cta { margin-left: auto; } }
@media (max-width: 520px) {
  .ffp-glasshead { top: 8px; padding: 0 10px; }
  .ffp-glasshead__in { height: 60px; padding: 0 8px 0 14px; border-radius: 16px; gap: 10px; }
  .ffp-glasshead .ffp-logo img { height: 40px; width: auto; }
  .ffp-glasshead .ffp-btn--primary { display: none; }
}

/* Hero: split — dive photo left (copy on a teal shade), login right */
.ffp-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr); min-height: 100vh; }
.ffp-split__media {
  position: relative; overflow: hidden; color: #fff; display: flex; align-items: center; padding: 150px clamp(24px, 5vw, 76px) 70px;
  background: #134e4a url('/partners/assets/partner-hero.webp') center center / cover no-repeat;
}
.ffp-split__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(19, 78, 74, .58) 0%, rgba(15, 118, 110, .28) 60%, rgba(13, 148, 136, .06) 100%),
  linear-gradient(0deg, rgba(19, 78, 74, .4) 0%, rgba(19, 78, 74, 0) 40%); }
.ffp-split__contours { position: absolute; inset: 0; opacity: .18; filter: brightness(3); pointer-events: none; }
.ffp-split__media .ffp-bubbles span { border-color: rgba(255, 255, 255, .45); }
.ffp-split__copy { position: relative; max-width: 620px; }
.ffp-split__copy .ffp-eyebrow { color: var(--ffp-teal-200); }
.ffp-split__copy .ffp-eyebrow::before { background: var(--ffp-teal-300); }
.ffp-split__copy h1 { font-size: clamp(38px, 4.8vw, 64px); line-height: 1.03; margin: 16px 0 18px; color: #fff; text-shadow: 0 2px 24px rgba(19, 78, 74, .55), 0 1px 2px rgba(19, 78, 74, .35); }
.ffp-split__copy .ffp-brandtext { background: linear-gradient(135deg, #ccfbf1, #99f6e4 50%, #5eead4); -webkit-background-clip: text; background-clip: text; text-shadow: none; filter: drop-shadow(0 2px 14px rgba(19, 78, 74, .55)); }
.ffp-split__copy > p { font-size: 18px; color: #fff; max-width: 540px; margin: 0; text-shadow: 0 1px 12px rgba(19, 78, 74, .6); }
.ffp-split__copy .ffp-glassstats { background: rgba(19, 78, 74, .28); border-color: rgba(255, 255, 255, .3); }
.ffp-split__copy .ffp-glassstats div + div { border-left-color: rgba(255, 255, 255, .25); }
.ffp-split__copy .ffp-glassstats b { color: #fff; }
.ffp-split__copy .ffp-glassstats span { color: rgba(255, 255, 255, .8); }
.ffp-split__copy .ffp-btn--glass { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); color: #fff; }
.ffp-split__copy .ffp-btn--glass:hover { background: rgba(255, 255, 255, .24); }
.ffp-split__panel { display: flex; align-items: center; justify-content: center; padding: 130px clamp(20px, 4vw, 56px) 60px; background: #fff; position: relative; }
.ffp-split__panel::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 15%, var(--ffp-teal-50), transparent 55%); pointer-events: none; }
.ffp-split__panel .ffp-glasscard { width: 100%; max-width: 430px; background: rgba(255, 255, 255, .85); box-shadow: 0 1px 0 #fff inset, 0 24px 60px rgba(15, 118, 110, .14); }
.ffp-sea__ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.ffp-btn--glass { background: rgba(255, 255, 255, .45); border-color: rgba(255, 255, 255, .8); color: var(--ffp-teal-dd); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ffp-btn--glass:hover { background: rgba(255, 255, 255, .7); }

.ffp-glassstats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; max-width: 560px;
  background: rgba(255, 255, 255, .38); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 18px; overflow: hidden; }
.ffp-glassstats div { padding: 14px 16px; display: flex; flex-direction: column; }
.ffp-glassstats div + div { border-left: 1px solid rgba(255, 255, 255, .7); }
.ffp-glassstats b { font: 600 30px/1 var(--ffp-head); color: var(--ffp-teal-dd); }
.ffp-glassstats span { font-size: 12.5px; color: var(--ffp-ink-2); margin-top: 6px; line-height: 1.35; }

/* Glass login card */
.ffp-glasscard {
  position: relative; padding: 30px 28px; border-radius: 26px;
  background: rgba(255, 255, 255, .66); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 30px 70px rgba(19, 78, 74, .22);
}
.ffp-glasscard::before { content: ''; position: absolute; inset: -1px; border-radius: 26px; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 40%, rgba(94, 234, 212, .6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ffp-glasscard__tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ffp-teal-d); background: rgba(204, 251, 241, .8); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.ffp-login h2 { font-size: 27px; }
.ffp-login > p { color: var(--ffp-ink-2); margin: 6px 0 20px; font-size: 14.5px; }
.ffp-glasscard .ffp-phone, .ffp-glasscard .ffp-otp input { background: rgba(255, 255, 255, .9); }
.ffp-or { display: flex; align-items: center; gap: 12px; color: var(--ffp-muted); font-size: 12px; font-weight: 600; letter-spacing: .1em; margin: 18px 0; }
.ffp-or::before, .ffp-or::after { content: ''; flex: 1; height: 1px; background: rgba(15, 118, 110, .18); }
.ffp-gbtn { display: flex; justify-content: center; min-height: 44px; }
.ffp-otp-meta { display: flex; justify-content: space-between; font-size: 13px; margin: 10px 0 16px; color: var(--ffp-muted); }
.ffp-otp-meta button { background: none; border: 0; color: var(--ffp-teal-d); font-weight: 600; cursor: pointer; padding: 0; }
.ffp-otp-meta button[disabled] { color: var(--ffp-faint); cursor: default; }

@media (max-width: 1000px) {
  .ffp-split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ffp-split__media { padding: 112px 16px 44px; }
  .ffp-split__copy > p { font-size: 16px; }
  .ffp-split__panel { padding: 28px 16px 48px; }
  .ffp-glasscard { padding: 24px 18px; border-radius: 22px; }
}
@media (max-width: 520px) {
  .ffp-glassstats b { font-size: 24px; }
  .ffp-glassstats div { padding: 12px 10px; }
  .ffp-sea__ctas .ffp-btn { flex: 1 1 100%; }
}

/* Content sections */
.ffp-sec { padding: 88px 20px; background: #fff; }
.ffp-sec--tint { background: var(--ffp-teal-50); }
.ffp-sec__in { max-width: 1160px; margin: 0 auto; }
.ffp-sec__h { font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 14px; line-height: 1.15; }
.ffp-sec .ffp-eyebrow { display: flex; width: max-content; max-width: 100%; margin-bottom: 18px; }
.ffp-split__copy .ffp-eyebrow { display: flex; width: max-content; max-width: 100%; margin-bottom: 20px; }
.ffp-split__copy h1 { margin-top: 0; }
.ffp-sec__p { color: var(--ffp-ink-2); font-size: 16.5px; max-width: 520px; margin: 0; }
.ffp-earn { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 48px; align-items: center; }
.ffp-calc { border: 1px solid var(--ffp-teal-100); border-radius: 22px; padding: 8px 24px; background: linear-gradient(180deg, #fff, var(--ffp-teal-50)); box-shadow: var(--ffp-shadow-lg); }
.ffp-calc__row, .ffp-calc__total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px dashed var(--ffp-teal-100); font-size: 15px; color: var(--ffp-ink-2); }
.ffp-calc__row b { font-variant-numeric: tabular-nums; color: var(--ffp-ink); }
.ffp-calc__row--save b { color: var(--ffp-teal-d); }
.ffp-calc__total { border-bottom: 0; }
.ffp-calc__total span { font-weight: 700; color: var(--ffp-ink); }
.ffp-calc__total b { font: 600 36px/1 var(--ffp-head); color: var(--ffp-teal); }
.ffp-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.ffp-role { background: #fff; border: 1px solid var(--ffp-teal-100); border-radius: 20px; padding: 22px; text-decoration: none; color: inherit; transition: transform .25s var(--ffp-ease), box-shadow .25s; display: flex; flex-direction: column; gap: 12px; }
.ffp-role:hover { transform: translateY(-4px); box-shadow: var(--ffp-shadow-lg); }
.ffp-role__icon { width: 44px; height: 44px; border-radius: 13px; background: var(--ffp-teal-50); color: var(--ffp-teal); display: grid; place-items: center; }
.ffp-role__icon svg { width: 22px; height: 22px; }
.ffp-role b { font-family: var(--ffp-head); font-size: 19px; }
.ffp-role span { font-size: 14px; color: var(--ffp-muted); line-height: 1.5; }
.ffp-role__cta { display: block; font-style: normal; font-size: 14px; font-weight: 600; color: var(--ffp-teal-d); margin-top: 10px; }
.ffp-steps4 { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; position: relative; }
.ffp-steps4::before { content: ''; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--ffp-teal-200) 0 8px, transparent 8px 14px); }
.ffp-steps4 li { position: relative; }
.ffp-steps4__n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ffp-teal); color: #fff; font: 600 18px var(--ffp-head); box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--ffp-teal-100); position: relative; }
.ffp-steps4 b { display: block; font: 600 19px var(--ffp-head); margin: 18px 0 6px; }
.ffp-steps4 p { margin: 0; color: var(--ffp-muted); font-size: 14.5px; }
.ffp-faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.ffp-faq details { background: #fff; border: 1px solid var(--ffp-teal-100); border-radius: 16px; padding: 0 20px; margin-bottom: 10px; }
.ffp-faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.ffp-faq summary::-webkit-details-marker { display: none; }
.ffp-faq summary::after { content: '+'; font: 400 22px/1 var(--ffp-body); color: var(--ffp-teal); transition: transform .2s; }
.ffp-faq details[open] summary::after { transform: rotate(45deg); }
.ffp-faq details p { margin: 0 0 18px; color: var(--ffp-ink-2); font-size: 14.5px; }
.ffp-final { padding: 80px 20px; background: linear-gradient(180deg, #26b8cc, #0e7490 60%, #134e4a); position: relative; overflow: hidden; }
.ffp-final__glass { max-width: 760px; margin: 0 auto; text-align: center; padding: 44px 28px; border-radius: 28px; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.ffp-final__glass h2 { font-size: clamp(28px, 3.6vw, 40px); }
.ffp-final__glass p { color: var(--ffp-teal-100); margin: 10px 0 24px; }
.ffp-final .ffp-btn--primary { background: #fff; color: var(--ffp-teal-dd); }
.ffp-final .ffp-btn--primary:hover { background: var(--ffp-teal-50); }
.ffp-foot { padding: 36px 20px 44px; background: #fff; border-top: 1px solid var(--ffp-line); }
.ffp-foot .ffp-logo img { height: 44px; }
.ffp-foot p { color: var(--ffp-muted); font-size: 13.5px; margin: 14px 0 0; line-height: 1.8; }
@media (max-width: 900px) {
  .ffp-sec { padding: 60px 16px; }
  .ffp-earn, .ffp-faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ffp-roles { grid-template-columns: minmax(0, 1fr); }
  .ffp-steps4 { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .ffp-steps4::before { display: none; }
  .ffp-final { padding: 56px 16px; }
}

/* ───────── App shell ───────── */
.ffp-shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.ffp-side { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--ffp-line); background: #fff; display: flex; flex-direction: column; padding: 22px 16px; }
.ffp-side .ffp-logo img { height: 40px; }
.ffp-side__who { margin: 22px 0 16px; padding: 14px; border-radius: 14px; background: var(--ffp-teal-50); position: relative; overflow: hidden; }
.ffp-side__who b { display: block; font-family: var(--ffp-head); font-size: 16px; }
.ffp-side__who span { font-size: 12.5px; color: var(--ffp-teal-d); font-weight: 600; }
.ffp-nav { display: grid; gap: 2px; }
.ffp-nav__group { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ffp-faint); font-weight: 700; margin: 16px 12px 6px; }
.ffp-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; text-decoration: none; color: var(--ffp-ink-2); font-weight: 500; font-size: 14.5px; position: relative; }
.ffp-nav a svg { width: 19px; height: 19px; color: var(--ffp-faint); flex: none; }
.ffp-nav a:hover { background: var(--ffp-line-2); }
.ffp-nav a[aria-current="page"] { background: var(--ffp-teal-50); color: var(--ffp-teal-dd); font-weight: 600; }
.ffp-nav a[aria-current="page"] svg { color: var(--ffp-teal); }
.ffp-nav a[aria-current="page"]::before { content: ''; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ffp-teal); }
.ffp-nav .ffp-count { margin-left: auto; background: var(--ffp-teal); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 700; }
.ffp-side__foot { margin-top: auto; display: grid; gap: 8px; font-size: 13px; }
.ffp-side__foot a { color: var(--ffp-muted); text-decoration: none; display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; }
.ffp-side__foot a:hover { background: var(--ffp-line-2); color: var(--ffp-ink); }
.ffp-side__foot svg { width: 18px; height: 18px; }
.ffp-main { min-width: 0; padding: 30px clamp(18px, 4vw, 44px) 60px; }
.ffp-topbar { display: none; }
.ffp-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.ffp-page-head h1 { font-size: clamp(26px, 3vw, 34px); }
.ffp-page-head p { margin: 6px 0 0; color: var(--ffp-muted); }
.ffp-view { animation: ffp-rise .45s var(--ffp-ease) both; }
.ffp-view > * { animation: ffp-rise .5s var(--ffp-ease) both; }
.ffp-view > *:nth-child(2) { animation-delay: .04s; } .ffp-view > *:nth-child(3) { animation-delay: .08s; } .ffp-view > *:nth-child(4) { animation-delay: .12s; } .ffp-view > *:nth-child(5) { animation-delay: .16s; }
@keyframes ffp-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ffp *, .ffp *::before { animation: none !important; transition: none !important; } }
.ffp-grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ffp-grid-2 > * { min-width: 0; }
.ffp-grid-2 > .ffp-card + .ffp-card { margin-top: 0; }
.ffp-view > * + * { margin-top: 16px; }
.ffp-view > .ffp-page-head + * { margin-top: 0; }
.ffp-share-main > * { min-width: 0; }
.ffp-stack > * + * { margin-top: 16px; }
@media (max-width: 1100px) { .ffp-grid-2 { grid-template-columns: 1fr; } }

/* Mobile shell: top bar + bottom tabs + More sheet */
.ffp-tabs { display: none; }
@media (max-width: 860px) {
  .ffp-shell { grid-template-columns: minmax(0, 1fr); }
  .ffp-side { display: none; }
  .ffp-topbar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; padding: 10px 16px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ffp-line); }
  .ffp-topbar img { height: 32px; }
  .ffp-main { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); }
  .ffp-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--ffp-line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .ffp-tabs a, .ffp-tabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; font-size: 11px; font-weight: 600; color: var(--ffp-faint); text-decoration: none; border: 0; background: none; min-height: 52px; justify-content: center; border-radius: 12px; }
  .ffp-tabs svg { width: 22px; height: 22px; }
  .ffp-tabs [aria-current="page"] { color: var(--ffp-teal-d); background: var(--ffp-teal-50); }
}
.ffp-sheet-back { position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 40; animation: ffp-fade .2s both; }
.ffp-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: #fff; border-radius: 22px 22px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 85vh; overflow: auto; animation: ffp-up .3s var(--ffp-ease) both; }
.ffp-sheet::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--ffp-line); margin: 0 auto 12px; }
@keyframes ffp-fade { from { opacity: 0; } }
@keyframes ffp-up { from { transform: translateY(100%); } }

/* Modal */
.ffp-modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 42, .4); display: grid; place-items: center; padding: 16px; animation: ffp-fade .2s both; }
.ffp-modal { background: #fff; border-radius: 20px; width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 24px; box-shadow: 0 30px 80px rgba(15, 23, 42, .25); animation: ffp-rise .3s var(--ffp-ease) both; }
.ffp-modal--wide { width: min(860px, 100%); }
.ffp-modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.ffp-modal__head h3 { font-size: 21px; }
@media (max-width: 600px) { .ffp-modal-back { place-items: end stretch; padding: 0; } .ffp-modal { border-radius: 22px 22px 0 0; max-height: 92vh; } }

/* Toast */
.ffp-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; background: var(--ffp-teal-dd); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: 0 12px 30px rgba(15, 23, 42, .25); animation: ffp-rise .3s var(--ffp-ease) both; max-width: calc(100% - 32px); }
@media (max-width: 860px) { .ffp-toast { bottom: calc(86px + env(safe-area-inset-bottom)); } }

/* Hero banner (overview) */
.ffp-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 24px; background: var(--ffp-teal-dd); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.ffp-hero, .ffp-hero.ffp-contours {
  background: linear-gradient(135deg, rgba(19, 78, 74, .78) 0%, rgba(15, 118, 110, .5) 60%, rgba(13, 148, 136, .28) 100%),
    #134e4a url('/partners/assets/partner-hero.webp') center 58% / cover no-repeat;
}
.ffp-hero h2, .ffp-hero p { text-shadow: 0 1px 12px rgba(19, 78, 74, .55); }
.ffp-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 90% 10%, rgba(94, 234, 212, .25), transparent 55%); pointer-events: none; }
.ffp-hero h2 { font-size: clamp(22px, 3vw, 30px); }
.ffp-hero p { color: var(--ffp-teal-100); margin: 6px 0 0; font-size: 14.5px; }
.ffp-hero .ffp-tag { background: rgba(255, 255, 255, .08); border-color: rgba(153, 246, 228, .5); color: #fff; position: relative; z-index: 1; }
.ffp-hero .ffp-tag::before { border-color: var(--ffp-teal-300); background: transparent; }
.ffp-hero__actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.ffp-hero .ffp-btn--ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
@media (max-width: 640px) { .ffp-hero { grid-template-columns: 1fr; } }

/* Chart */
.ffp-chart { width: 100%; height: 180px; display: block; }
.ffp-chart .bar { fill: var(--ffp-teal-100); }
.ffp-chart .bar:hover { fill: var(--ffp-teal-200); }
.ffp-chart .line { fill: none; stroke: var(--ffp-teal); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ffp-chart .dot { fill: #fff; stroke: var(--ffp-teal); stroke-width: 2; }
.ffp-chart .axis { fill: var(--ffp-faint); font: 10px var(--ffp-body); }
.ffp-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ffp-muted); }
.ffp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Share */
.ffp-share-main { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
@media (max-width: 700px) { .ffp-share-main { grid-template-columns: 1fr; } }
.ffp-linkbox { display: flex; gap: 8px; align-items: center; background: var(--ffp-line-2); border-radius: 12px; padding: 6px 6px 6px 14px; margin-top: 12px; }
.ffp-linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13.5px var(--ffp-mono); color: var(--ffp-ink-2); }
.ffp-qr { width: 168px; height: 168px; border-radius: 16px; border: 1px solid var(--ffp-line); padding: 10px; background: #fff; display: grid; place-items: center; }
.ffp-qr img, .ffp-qr canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.ffp-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* Media kit */
.ffp-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ffp-caption { border: 1px solid var(--ffp-line); border-radius: 14px; padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.ffp-caption p { margin: 0; font-size: 14px; white-space: pre-wrap; color: var(--ffp-ink-2); flex: 1; }
.ffp-caption b { font-size: 13px; color: var(--ffp-teal-d); letter-spacing: .02em; }
.ffp-thumb { aspect-ratio: 4/3; border-radius: 12px; background: var(--ffp-teal-50) center/contain no-repeat; border: 1px solid var(--ffp-line); }

/* Bookings (guest) */
.ffp-trip { border: 1px solid var(--ffp-line); border-radius: 18px; overflow: hidden; background: #fff; }
.ffp-trip__top { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; padding: 18px; align-items: center; }
.ffp-cal { width: 58px; text-align: center; border-radius: 12px; overflow: hidden; border: 1px solid var(--ffp-teal-100); }
.ffp-cal span { display: block; background: var(--ffp-teal); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 3px 0; }
.ffp-cal b { display: block; font: 600 24px/1.4 var(--ffp-head); color: var(--ffp-teal-dd); }
.ffp-trip__bottom { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 18px; background: var(--ffp-teal-50); border-top: 1px solid var(--ffp-teal-100); }
.ffp-trip__bottom .ffp-spacer { flex: 1; }
@media (max-width: 520px) { .ffp-trip__top { grid-template-columns: auto 1fr; } .ffp-trip__top .ffp-item__amt { grid-column: 1 / -1; text-align: left; } }

/* Medical form */
.ffp-q { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 14px 0; border-top: 1px solid var(--ffp-line-2); align-items: center; font-size: 14px; }
.ffp-yn { display: inline-flex; border: 1px solid var(--ffp-line); border-radius: 10px; overflow: hidden; }
.ffp-yn button { border: 0; background: #fff; padding: 8px 16px; font-weight: 600; cursor: pointer; min-height: 40px; color: var(--ffp-muted); }
.ffp-yn button + button { border-left: 1px solid var(--ffp-line); }
.ffp-yn button[aria-pressed="true"][data-v="no"] { background: var(--ffp-teal); color: #fff; }
.ffp-yn button[aria-pressed="true"][data-v="yes"] { background: var(--ffp-amber); color: #fff; }
@media (max-width: 520px) { .ffp-q { grid-template-columns: 1fr; } }
.ffp-sig { position: relative; border: 1.5px dashed var(--ffp-teal-200); border-radius: 14px; background: var(--ffp-teal-50); }
.ffp-sig canvas { display: block; width: 100%; height: 170px; touch-action: none; cursor: crosshair; }
.ffp-sig__hint { position: absolute; left: 16px; bottom: 12px; font-size: 12px; color: var(--ffp-faint); pointer-events: none; }
.ffp-sig__clear { position: absolute; right: 10px; top: 10px; }
.ffp-waiver { max-height: 220px; overflow: auto; padding: 14px 16px; background: var(--ffp-line-2); border-radius: 12px; font-size: 13.5px; color: var(--ffp-ink-2); }

/* Gallery */
.ffp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.ffp-gallery a { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--ffp-teal-50); }
.ffp-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ffp-ease); }
.ffp-gallery a:hover img { transform: scale(1.05); }
.ffp-cert { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; border: 1px solid var(--ffp-teal-100); background: linear-gradient(135deg, #fff, var(--ffp-teal-50)); text-decoration: none; color: inherit; }
.ffp-cert__seal { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ffp-teal); color: #fff; flex: none; box-shadow: 0 0 0 5px var(--ffp-teal-100); }
.ffp-cert__seal svg { width: 24px; height: 24px; }

/* Apply wizard */
.ffp-apply { max-width: 720px; margin: 0 auto; padding: 28px 18px 80px; }
.ffp-apply__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.ffp-apply__top img { height: 38px; }
.ffp-steps { display: flex; gap: 8px; margin: 18px 0 26px; }
.ffp-steps span { flex: 1; height: 5px; border-radius: 5px; background: var(--ffp-line); transition: background .4s; }
.ffp-steps span.is-on { background: var(--ffp-teal); }
.ffp-typecards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .ffp-typecards { grid-template-columns: 1fr; } }
.ffp-typecard { text-align: left; border: 1.5px solid var(--ffp-line); background: #fff; border-radius: 18px; padding: 20px; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s var(--ffp-ease); }
.ffp-typecard:hover { border-color: var(--ffp-teal-200); transform: translateY(-2px); box-shadow: var(--ffp-shadow-lg); }
.ffp-typecard[aria-pressed="true"] { border-color: var(--ffp-teal); box-shadow: 0 0 0 4px var(--ffp-teal-100); }
.ffp-typecard b { display: block; font: 600 19px var(--ffp-head); margin: 12px 0 6px; }
.ffp-typecard span { font-size: 13.5px; color: var(--ffp-muted); }
.ffp-terms { font-size: 14px; color: var(--ffp-ink-2); }
.ffp-terms li { margin-bottom: 8px; }
.ffp-done { text-align: center; padding: 40px 10px; }
.ffp-done__ring { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--ffp-teal-50); color: var(--ffp-teal); box-shadow: 0 0 0 10px rgba(204, 251, 241, .5); }
.ffp-done__ring svg { width: 42px; height: 42px; }

/* Bubbles (tiny ambient touch on login) */
.ffp-bubbles span { position: absolute; bottom: -20px; border-radius: 50%; border: 1.5px solid rgba(13, 148, 136, .25); animation: ffp-bubble linear infinite; }
@keyframes ffp-bubble { to { transform: translateY(-110vh) translateX(20px); opacity: 0; } }

/* Admin extras */
.ffp-drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; font-size: 13.5px; }
.ffp-drawer-grid dt { color: var(--ffp-muted); font-size: 12px; }
.ffp-drawer-grid dd { margin: 2px 0 8px; font-weight: 500; word-break: break-word; }
@media (max-width: 560px) { .ffp-drawer-grid { grid-template-columns: 1fr; } }
.ffp-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.ffp-toolbar .ffp-input, .ffp-toolbar .ffp-select { width: auto; min-height: 40px; font-size: 14px; }
.ffp-center { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.ffp-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--ffp-teal-100); border-top-color: var(--ffp-teal); animation: ffp-rot .8s linear infinite; }
@keyframes ffp-rot { to { transform: rotate(360deg); } }
.ffp-terms h3 { margin: 24px 0 8px; font-size: 18px; }
.ffp-gwrap { position: relative; }
.ffp-gblock { position: absolute; inset: 0; z-index: 2; width: 100%; border: 0; background: transparent; cursor: pointer; border-radius: 999px; }
.ffp-check.is-missing { color: var(--ffp-red); }
.ffp-check.is-missing input { outline: 2px solid var(--ffp-red); outline-offset: 2px; border-radius: 4px; animation: ffp-nudge .35s; }
@keyframes ffp-nudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
