/* =========================================================================
   Soul 2 Path - main stylesheet
   Fonts load from <link> tags in the page head, not @import.
   Every class is prefixed s2p- (site) or admin-/dash- (admin), so new
   features can't collide with existing names: search this file first.
   Breakpoints: 980px, 860px (menu becomes the mobile menu), 620px.
   ========================================================================= */

/* ===== Tokens ===== */
:root{
  --s2p-dark:#1E3F7A;
  --s2p-mid:#4169A8;
  --s2p-light:#EBF0F8;
  --s2p-ring:rgba(65,105,168,0.18);
  --s2p-border:#C5D3E8;
  --s2p-radius:12px;
  --s2p-radius-sm:8px;
  --s2p-ink:#152B52;          /* body text: a deeper shade of --s2p-dark */
  --s2p-muted:#5A6B85;
  --s2p-line:var(--s2p-border);
  --s2p-night:#12284F;        /* hero and footer ground */
  --s2p-speaking:#C98A2E;
  --s2p-white:#fff;
  --s2p-font:"Google Sans Flex", Arial, sans-serif;
  --s2p-wrap:1200px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--s2p-font)}
.s2p-site{font-size:17px;line-height:1.6;color:var(--s2p-ink);background:var(--s2p-light)}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
/* Base styles for the public site only (body class s2p-site), at the lowest
   specificity so any feature class overrides them. */
:where(.s2p-site) a{color:var(--s2p-dark)}
:where(.s2p-site) a:hover{color:var(--s2p-mid)}
:focus-visible{outline:3px solid var(--s2p-mid);outline-offset:2px;border-radius:4px}
button{font:inherit;cursor:pointer}
[hidden]{display:none !important}
.s2p-skip{position:absolute;left:12px;top:-60px;z-index:100;background:var(--s2p-dark);color:#fff;padding:10px 16px;border-radius:var(--s2p-radius-sm)}
.s2p-skip:focus{top:12px;color:#fff}
.s2p-wrap{max-width:var(--s2p-wrap);margin:0 auto;padding:0 24px}
:where(.s2p-site) :is(h1,h2,h3){font-weight:600;line-height:1.12;letter-spacing:-.015em;margin:0;color:var(--s2p-dark)}
:where(.s2p-site) :is(h1,h2) em{color:var(--s2p-mid)}
.s2p-kicker{font-size:14px;font-weight:600;color:var(--s2p-mid);margin:0 0 10px;letter-spacing:.02em}
.s2p-btn{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;padding:13px 24px;font-weight:600;font-size:16px;background:var(--s2p-dark);color:#fff;transition:background .15s}
.s2p-btn:hover{background:var(--s2p-mid);color:#fff}
.s2p-btn--light{background:#fff;color:var(--s2p-dark)}
.s2p-btn--light:hover{background:var(--s2p-light);color:var(--s2p-dark)}
.s2p-btn--line{background:transparent;color:var(--s2p-dark);box-shadow:inset 0 0 0 1.5px var(--s2p-dark)}
.s2p-btn--line:hover{background:var(--s2p-dark);color:#fff}
.s2p-section{padding:88px 0}
.s2p-section-head{max-width:640px;margin-bottom:40px}
.s2p-section-head h2{font-size:clamp(30px,3.6vw,44px)}
.s2p-section-head p{color:var(--s2p-muted);margin:14px 0 0}

/* ===== Header ===== */
.s2p-hdr{background:#fff;border-bottom:1px solid var(--s2p-line);position:sticky;top:0;z-index:50}
.s2p-hdr-top{display:flex;align-items:center;gap:20px;height:76px}
.s2p-logo img{height:46px;width:auto}
.s2p-hdr-tools{margin-left:auto;display:flex;align-items:center;gap:12px}
.s2p-acct{display:flex;gap:8px}
.s2p-acct a{padding:9px 18px;border-radius:999px;font-weight:600;font-size:15px}
.s2p-acct .s2p-reg{color:var(--s2p-dark);box-shadow:inset 0 0 0 1.5px var(--s2p-line)}
.s2p-acct .s2p-login{background:var(--s2p-dark);color:#fff}
.s2p-acct .s2p-login:hover{background:var(--s2p-mid)}
.s2p-acct form{margin:0}
.s2p-acct button.s2p-reg{padding:9px 18px;border:0;border-radius:999px;font-weight:600;font-size:15px;background:none;color:var(--s2p-dark);box-shadow:inset 0 0 0 1.5px var(--s2p-line)}
.s2p-burger{display:none;background:none;border:0;padding:8px}
.s2p-burger span{display:block;width:24px;height:2px;background:var(--s2p-dark);margin:5px 0}

.s2p-nav{border-top:1px solid var(--s2p-line)}
.s2p-nav>.s2p-wrap>ul{list-style:none;margin:0;padding:0;display:flex;gap:4px}
.s2p-nav-item{position:static}
.s2p-nav-item>a,.s2p-nav-item>button{display:block;padding:14px 14px;font-weight:600;font-size:15px;color:var(--s2p-ink);background:none;border:0}
.s2p-nav-item>button::after{content:"";display:inline-block;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 0 3px 8px}
.s2p-nav-item:hover>button,.s2p-nav-item.is-open>button,.s2p-nav-item>a:hover{color:var(--s2p-mid)}
.s2p-mega{position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--s2p-line);box-shadow:0 24px 40px rgba(30,63,122,.12);display:none}
.s2p-nav-item:hover .s2p-mega,.s2p-nav-item.is-open .s2p-mega{display:block}
.s2p-mega-inner{max-width:var(--s2p-wrap);margin:0 auto;padding:28px 24px 34px;display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.s2p-mega h4{font-weight:700;font-size:16px;color:var(--s2p-dark);margin:0 0 10px}
.s2p-mega h4+ul{margin-bottom:22px}
.s2p-mega ul{list-style:none;margin:0;padding:0}
.s2p-mega li a{display:block;padding:5px 0;color:var(--s2p-ink);font-size:15px}
.s2p-mega li a:hover{color:var(--s2p-mid)}
.s2p-secured{font-size:14px;color:var(--s2p-muted)}
.s2p-nav-acct{display:none}

/* ===== Country drop-down (header) ===== */
.flag-sprite{position:absolute;width:0;height:0;overflow:hidden}
.flag{display:block;flex:0 0 26px;width:26px;height:13px;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.1)}
.flag-int{height:20px;border-radius:0;box-shadow:none}
.flag-code{display:inline-flex;align-items:center;justify-content:center;height:16px;background:var(--s2p-light);color:var(--s2p-dark);font-size:9px;font-weight:700;letter-spacing:.5px;box-shadow:0 0 0 1px var(--s2p-border)}
.country-picker{position:relative}
.country-toggle{display:inline-flex;align-items:center;gap:10px;min-height:42px;padding:8px 14px;border:1px solid var(--s2p-line);border-radius:999px;background:var(--s2p-light);color:var(--s2p-ink);font:600 15px var(--s2p-font);white-space:nowrap;cursor:pointer}
.country-toggle:hover{border-color:var(--s2p-mid)}
.country-fixed{cursor:default}
.country-fixed:hover{border-color:var(--s2p-line)}
.country-chevron{width:12px;height:12px;transition:transform .15s ease}
.country-toggle[aria-expanded="true"] .country-chevron{transform:rotate(180deg)}
.country-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:60;min-width:260px;max-height:70vh;overflow:auto;margin:0;padding:8px;list-style:none;background:#fff;border:1px solid var(--s2p-line);border-radius:var(--s2p-radius);box-shadow:0 18px 40px rgba(30,63,122,.16)}
.country-option{display:flex;align-items:center;gap:14px;padding:10px 14px;border-radius:var(--s2p-radius-sm);color:var(--s2p-ink);font-size:16px;font-weight:500;white-space:nowrap}
.country-option:hover,.country-option:focus-visible{background:var(--s2p-light);color:var(--s2p-ink);outline:none}
.country-option.is-current{background:var(--s2p-light);color:var(--s2p-dark);font-weight:700}
.country-check{width:16px;height:16px;margin-left:auto;color:var(--s2p-dark)}
.country-option:not(.is-current) .country-check{visibility:hidden}

/* ===== Admin preview banner ===== */
.s2p-preview{background:#FBEFDD;color:#6b4510;text-align:center;font-size:14px;padding:10px 20px}
.s2p-preview a{color:#6b4510;font-weight:700}

/* ===== Hero ===== */
.s2p-hero{position:relative;background:var(--s2p-night);color:#fff;overflow:hidden}
.s2p-hero::before{content:"";position:absolute;inset:0;background:
  radial-gradient(circle at 78% 42%, rgba(65,105,168,.55) 0, rgba(65,105,168,0) 42%),
  radial-gradient(circle at 10% 110%, rgba(30,63,122,.9) 0, rgba(30,63,122,0) 55%);}
.s2p-hero-moon{position:absolute;right:8%;top:50%;width:min(36vw,440px);aspect-ratio:1;transform:translateY(-50%);border-radius:50%;
  background:radial-gradient(circle at 38% 36%, #EBF0F8 0, #CFDCF1 38%, #4169A8 100%);box-shadow:0 0 120px 20px rgba(235,240,248,.18)}
.s2p-hero-moon::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--s2p-night);transform:translateX(26%);opacity:.92}
.s2p-hero-stars{position:absolute;inset:0;background-image:
  radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%),radial-gradient(1px 1px at 32% 68%, #fff 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 55% 15%, #fff 50%, transparent 51%),radial-gradient(1px 1px at 66% 82%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 88% 12%, #fff 50%, transparent 51%),radial-gradient(1.5px 1.5px at 94% 70%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 22% 88%, #fff 50%, transparent 51%),radial-gradient(1px 1px at 46% 40%, #fff 50%, transparent 51%);opacity:.7}
.s2p-hero .s2p-wrap{position:relative;min-height:560px;display:flex;align-items:center}
.s2p-slide{max-width:560px;padding:72px 0 96px;display:none}
.s2p-slide.is-active{display:block;animation:s2pFade .6s ease}
@keyframes s2pFade{from{opacity:0}to{opacity:1}}
.s2p-slide .s2p-kicker{color:#BFD0EC}
.s2p-slide h1{color:#fff;font-size:clamp(40px,5.4vw,68px)}
.s2p-slide h1 em{color:#BFD0EC}
.s2p-slide p{font-size:19px;color:#DCE5F3;margin:20px 0 30px;max-width:480px}
.s2p-slide-cta{display:flex;flex-wrap:wrap;align-items:center;gap:16px}
.s2p-slide-note{font-size:14px;color:#AFC1DE}
.s2p-dots{position:absolute;left:24px;bottom:36px;display:flex;gap:10px}
.s2p-dots button{width:34px;height:4px;border:0;border-radius:2px;background:rgba(255,255,255,.3);padding:0}
.s2p-dots button[aria-current="true"]{background:#fff}

/* ===== Welcome and pricing ===== */
.s2p-welcome{display:grid;grid-template-columns:1.05fr 1fr;gap:56px;align-items:start}
.s2p-welcome h2{font-size:clamp(32px,3.8vw,46px)}
.s2p-welcome h2 em{display:block}
.s2p-welcome-lead{color:var(--s2p-muted);margin:18px 0 28px;max-width:520px}
.s2p-callnow{display:inline-flex;align-items:center;gap:12px;font-size:34px;font-weight:600;color:var(--s2p-dark)}
.s2p-callnow svg{width:30px;height:30px}


/* ===== Steps ===== */
.s2p-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-top:1.5px solid var(--s2p-dark)}
.s2p-step{padding:28px 28px 0 0}
.s2p-step+.s2p-step{padding-left:28px;border-left:1px solid var(--s2p-line)}
.s2p-step-n{font-size:54px;font-weight:600;line-height:1;color:var(--s2p-mid)}
.s2p-step-label{font-size:14px;font-weight:600;color:var(--s2p-muted);margin:6px 0 4px}
.s2p-step h3{font-size:24px;margin-bottom:8px}
.s2p-step p{margin:0;color:var(--s2p-muted)}
.s2p-step h3 a{color:var(--s2p-dark)}

/* ===== Booking band ===== */
.s2p-bookband-wrap{padding-bottom:88px}
.s2p-bookband{background:var(--s2p-dark);color:#fff;border-radius:calc(var(--s2p-radius) * 2);padding:56px;display:grid;grid-template-columns:1.4fr auto;gap:40px;align-items:center}
.s2p-bookband .s2p-kicker{color:#BFD0EC}
.s2p-bookband h2{color:#fff;font-size:clamp(28px,3.4vw,40px)}
.s2p-bookband h2 em{color:#BFD0EC}
.s2p-bookband p{color:#DCE5F3;margin:14px 0 0;max-width:620px}

/* ===== Media logos ===== */
.s2p-media{background:#fff;padding:72px 0}
.s2p-media-note{font-size:14px;color:var(--s2p-muted);max-width:760px;margin:0 0 30px}
.s2p-media-track{overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.s2p-media-row{display:flex;gap:40px;width:max-content;animation:s2pScroll 60s linear infinite;list-style:none;margin:0;padding:0}
.s2p-media-row img{height:58px;width:auto;filter:grayscale(1);opacity:.75}
@keyframes s2pScroll{to{transform:translateX(-50%)}}

/* ===== Long copy ===== */
.s2p-story-intro{max-width:760px}
.s2p-story-intro h2{font-size:clamp(30px,3.8vw,46px)}
.s2p-story-intro .s2p-story-sub{font-size:21px;font-weight:500;color:var(--s2p-mid);margin:14px 0 18px}
.s2p-story-proof{display:flex;flex-wrap:wrap;gap:12px 36px;margin:0 0 28px;padding:18px 0;border-top:1px solid var(--s2p-line);border-bottom:1px solid var(--s2p-line)}
.s2p-story-proof strong{font-weight:600;font-size:30px;color:var(--s2p-dark);display:block;line-height:1}
.s2p-story-proof span{font-size:14px;color:var(--s2p-muted)}
.s2p-prose p{margin:0 0 18px;max-width:68ch}
.s2p-prose a{font-weight:700}
.s2p-story-row{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center;margin-top:72px}
.s2p-story-row:nth-of-type(even) .s2p-story-img{order:2}
.s2p-story-img img{border-radius:calc(var(--s2p-radius) * 1.5);width:100%;aspect-ratio:4/3;object-fit:cover;background:var(--s2p-line)}
.s2p-story-row h3{font-size:clamp(24px,2.6vw,32px);margin-bottom:18px}
.s2p-story-cta{margin-top:72px;padding:44px;border-radius:calc(var(--s2p-radius) * 1.5);background:#fff;display:flex;flex-wrap:wrap;gap:24px;justify-content:space-between;align-items:center}
.s2p-story-cta h3{font-size:30px}
.s2p-story-cta p{margin:8px 0 0;color:var(--s2p-muted);max-width:620px}

/* ===== Page not found ===== */
.s2p-notfound{text-align:center}
.s2p-notfound h1{font-size:clamp(36px,5vw,54px);margin-bottom:12px}
.s2p-notfound p{color:var(--s2p-muted);margin:0 0 26px}

/* ===== Footer ===== */
.s2p-ftr{background:var(--s2p-night);color:#C9D6EA;padding:72px 0 30px;font-size:15px}
.s2p-ftr a{color:#fff}
.s2p-ftr a:hover{color:#BFD0EC}
.s2p-ftr-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:40px}
.s2p-ftr-logo{background:#fff;display:inline-block;border-radius:var(--s2p-radius-sm);padding:10px 14px}
.s2p-ftr-logo img{height:40px;width:auto}
.s2p-ftr-tag{margin:16px 0;color:#fff;font-size:20px;font-weight:600;line-height:1.3}
.s2p-social{display:flex;flex-wrap:wrap;gap:8px}
.s2p-social a{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.1);font-size:13px;font-weight:700}
.s2p-ftr h4{font-weight:700;color:#fff;font-size:16px;margin:0 0 14px}
.s2p-ftr ul{list-style:none;margin:0;padding:0}
.s2p-ftr li{padding:4px 0}
.s2p-ftr-legal{border-top:1px solid rgba(255,255,255,.12);margin-top:48px;padding-top:26px;display:grid;gap:12px;font-size:13px;color:#A3B5D2}
.s2p-ftr-legal p{margin:0;max-width:900px}
.s2p-ftr-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:10px}
.s2p-ftr-bottom nav{display:flex;flex-wrap:wrap;gap:18px}

/* ===== Responsive ===== */
@media (max-width:980px){
  .s2p-welcome,.s2p-bookband,.s2p-story-row{grid-template-columns:1fr}
  .s2p-story-row:nth-of-type(even) .s2p-story-img{order:0}
  .s2p-ftr-grid{grid-template-columns:1fr 1fr}
  .s2p-hero-moon{opacity:.35;right:-12%}
}
@media (max-width:860px){
  .s2p-nav{display:none}
  .s2p-nav.is-open{display:block;max-height:calc(100vh - 76px);overflow:auto}
  .s2p-nav>.s2p-wrap>ul{flex-direction:column;padding:8px 0 16px}
  .s2p-mega{position:static;box-shadow:none;border:0}
  .s2p-nav-item:hover .s2p-mega{display:none}
  .s2p-nav-item.is-open .s2p-mega{display:block}
  .s2p-mega-inner{grid-template-columns:1fr;padding:4px 14px 12px;gap:10px}
  .s2p-burger{display:block}
  .s2p-acct{display:none}
  .s2p-nav-acct{display:block}
  .country-label{display:none}
  .s2p-steps{grid-template-columns:1fr}
  .s2p-step+.s2p-step{padding-left:0;border-left:0;border-top:1px solid var(--s2p-line)}
}
@media (max-width:620px){
  body{font-size:16px}
  .s2p-section{padding:64px 0}
  .s2p-bookband{padding:34px 26px}
  .s2p-ftr-grid{grid-template-columns:1fr}
  .s2p-callnow{font-size:28px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .s2p-slide.is-active{animation:none}
  .s2p-media-row{animation:none;flex-wrap:wrap;width:auto}
}

/* ===== Buttons used by the admin pages =====
   The names come from WholeLife so shared admin pages work unchanged;
   here they are Soul 2 Path blue. */
.gold-button,.outline-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:0 22px;border-radius:999px;font-size:14px;font-weight:700;cursor:pointer}
.gold-button{border:0;background:var(--s2p-dark);color:#fff}
.gold-button:hover{background:var(--s2p-mid);color:#fff}
.outline-button{border:1px solid var(--s2p-border);background:#fff;color:var(--s2p-dark);font-weight:600}
.outline-button:hover{border-color:var(--s2p-dark)}
.gold-button.large,.outline-button.large{min-height:52px;padding:0 28px;font-size:16px}

/* ---------- Admin ---------- */
.admin-body {
  min-height: 100vh;
  padding: 35px 20px;
  background: radial-gradient(ellipse at 50% 40%, #2c5596, #0e1f3d 75%);
  color: #fff;
}
.admin-card {
  max-width: 430px;
  margin: 7vh auto;
  padding: 38px;
  background: #fff;
  color: #152B52;
  border-radius: 18px;
  box-shadow: 0 20px 80px #0006;
}
.admin-card img { width: 260px; max-width: 100%; border-radius: 8px; }
.admin-card h1 { margin: 18px 0 6px; font-size: 25px; font-weight: 600; color: var(--s2p-dark); }
.admin-card label { display: block; margin: 16px 0; font-size: 13px; font-weight: 700; }
.admin-card input { width: 100%; padding: 12px; margin-top: 8px; border: 1px solid #C5D3E8; border-radius: 7px; }
.admin-card button { width: 100%; margin: 10px 0 20px; }
.admin-card > a { font-size: 13px; font-weight: 600; color: var(--s2p-dark); }
.admin-card > a:hover { color: #1E3F7A; }
.error { background: #ffe2e2; color: #8c1823; padding: 10px; border-radius: 5px; }
.dashboard { max-width: 1280px; margin: auto; }
.dashboard h1 { margin: 26px 0 8px; font: 600 34px var(--s2p-font); color: #fff; }
.dash-panel { background: #fff; color: #152B52; padding: 30px; border-radius: 14px; margin: 18px 0; }
.dash-panel h2 { margin: 0 0 10px; font-size: 22px; font-weight: 600; color: var(--s2p-dark); }
.dash-panel p { line-height: 1.6; }
.status, .notice { padding: 12px; background: #EBF0F8; color: #152B52; border-radius: 8px; }
.toggle-row { display: flex; align-items: center; gap: 12px; margin: 22px 0; font-weight: 700; }
.toggle-row input { width: 22px; height: 22px; accent-color: #1E3F7A; }

/* Admin shell: top bar, hamburger menu on the left */
.admin-shell { padding: 0 0 40px; }
.admin-shell .dashboard { padding: 0 20px; }
.admin-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: rgba(18, 40, 79, .95);
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.admin-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
}
.admin-menu-toggle span { display: block; height: 2px; border-radius: 2px; background: #fff; }
.admin-menu-toggle:hover { background: rgba(255, 255, 255, .2); }
.admin-menu-toggle:focus-visible { outline: 2px solid var(--s2p-mid); outline-offset: 2px; }
.admin-bar-logo { width: 150px; height: auto; }
.admin-bar-links { margin-left: auto; font-size: 14px; white-space: nowrap; }
.admin-bar-links a { font-weight: 600; color: #fff; }
.admin-bar-links a:hover { color: #BFD0EC; }
.admin-menu-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(8, 20, 40, .5); }
.admin-menu-backdrop[hidden] { display: none; }
.admin-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  width: min(290px, 85vw);
  padding: 16px 14px;
  background: #fff;
  color: #152B52;
  box-shadow: 12px 0 40px rgba(8, 20, 40, .35);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .2s ease, visibility .2s;
}
.admin-menu.open { transform: translateX(0); visibility: visible; }
.admin-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 4px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5A6B85;
}
.admin-menu-close { border: 0; background: none; font-size: 26px; line-height: 1; color: #152B52; cursor: pointer; }
.admin-menu-link { display: block; padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.admin-menu-link:hover, .admin-menu-link:focus-visible { background: #EBF0F8; outline: none; }
.admin-menu-link.is-active { background: #dce6f5; color: var(--s2p-dark); }

/* Admin tables and forms */
.muted { color: #5A6B85; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { padding: 10px 12px; border-bottom: 2px solid #C5D3E8; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #5A6B85; }
.admin-table td { padding: 12px; border-bottom: 1px solid #e3eaf5; vertical-align: middle; }
.admin-country { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; }
.admin-country small { color: #5A6B85; font-weight: 500; }
.admin-row-actions { text-align: right; white-space: nowrap; }
.admin-row-actions .plain-button + .plain-button, .admin-row-actions .inline-form { margin-left: 6px; }
.inline-form { display: inline; }
.admin-table tr.is-hidden-row td { color: #5A6B85; }
.plain-button, .danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid #C5D3E8;
  border-radius: 30px;
  background: #fff;
  color: #152B52;
  font-weight: 600;
  cursor: pointer;
}
.plain-button:hover { background: #EBF0F8; }
.plain-button.small { padding: 6px 14px; font-size: 13px; }
.plain-button.danger { color: #8c1823; border-color: #e3b5ba; }
.plain-button.danger:hover { background: #ffe2e2; }
.danger-button { background: #8c1823; border-color: #8c1823; color: #fff; }
.danger-button:hover { background: #6f1019; }
.confirm-panel { border: 2px solid #e3b5ba; }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.admin-form { display: grid; gap: 8px; }
.admin-fieldset { margin: 0; padding: 16px 18px 4px; border: 1px solid #C5D3E8; border-radius: 10px; }
.admin-fieldset legend { padding: 0 6px; font-weight: 700; }
.admin-field { display: grid; align-content: start; gap: 6px; margin-bottom: 14px; }
.admin-field label { font-size: 13px; font-weight: 700; }
.admin-field input, .admin-field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #C5D3E8;
  border-radius: 7px;
  background: #fff;
  color: #152B52;
  font-size: 15px;
}
.admin-field input:focus, .admin-field select:focus { outline: 2px solid #4169A8; outline-offset: 1px; border-color: #1E3F7A; }
.admin-field small { font-size: 12px; color: #5A6B85; }
.admin-field.has-error input, .admin-field.has-error select { border-color: #c0394a; }
.admin-field .field-error { color: #8c1823; font-weight: 600; }
.admin-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.admin-toggle { margin: 4px 0 0; }
/* A tick box inside a field block (e.g. "Clear the saved value"): keep it
   checkbox-sized beside its label, not a full-width text input. */
.admin-field .toggle-row { justify-self: start; gap: 8px; font-size: 13px; font-weight: 600; }
.admin-field .toggle-row input { flex: 0 0 auto; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; }
/* ---------- Admin: Manage Phone Numbers ---------- */
.pn-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 0 0 22px; }
.pn-top h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.3px; }
.pn-top p { margin: 6px 0 0; color: #C9D6EA; font-size: 15px; }
.pn-card { overflow: hidden; border-radius: 18px; background: #fff; color: #152B52; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.pn-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #C5D3E8; }
.pn-search { position: relative; flex: 1 1 320px; }
.pn-search svg { position: absolute; top: 13px; left: 14px; color: #5A6B85; pointer-events: none; }
.pn-search input { width: 100%; height: 44px; padding: 0 14px 0 42px; border: 1px solid #C5D3E8; border-radius: 12px; background: #f5f8fc; color: #152B52; font: 15px var(--s2p-font); }
.pn-search input:focus { outline: none; border-color: #1E3F7A; box-shadow: 0 0 0 3px rgba(59, 52, 134, .15); background: #fff; }
.pn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pn-chip { height: 40px; padding: 0 14px; border: 1px solid #C5D3E8; border-radius: 999px; background: #fff; color: #5A6B85; font: 600 14px var(--s2p-font); cursor: pointer; }
.pn-chip span { margin-left: 4px; opacity: .75; }
.pn-chip.is-on { border-color: #152B52; background: #152B52; color: #fff; }
.pn-add { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--s2p-mid); color: #fff; font: 700 15px var(--s2p-font); cursor: pointer; }
.pn-add:hover { filter: brightness(1.04); }
.pn-add:disabled { opacity: .5; cursor: default; filter: none; }
.pn-table-wrap { overflow-x: auto; }
.pn-table { width: 100%; border-collapse: collapse; }
.pn-table th { padding: 12px 20px; border-bottom: 1px solid #C5D3E8; background: #f5f8fc; color: #5A6B85; font-size: 12px; font-weight: 700; letter-spacing: .8px; text-align: left; text-transform: uppercase; white-space: nowrap; }
.pn-table td { padding: 14px 20px; border-bottom: 1px solid #EBF0F8; font-size: 15px; vertical-align: middle; }
.pn-table tbody tr:hover td { background: #f5f8fc; }
.pn-table tr[hidden] { display: none; }
.pn-country { display: flex; align-items: center; gap: 12px; }
.pn-country .flag { flex: 0 0 auto; width: 34px; height: 24px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.pn-country strong { display: block; font-size: 15px; }
.pn-country small { color: #5A6B85; font-size: 12.5px; }
.pn-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pn-muted { color: #5A6B85; }
.pn-pill { display: inline-block; padding: 4px 11px; border-radius: 999px; background: #edf0f5; color: #4a5568; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pn-pill.is-on { background: #dff3ea; color: #0b5d42; }
.pn-pill.is-soon { background: #fff1d6; color: #7a4b00; }
.pn-section[hidden] { display: none; }
.promo-days { display: flex; flex-wrap: wrap; gap: 6px; }
.promo-day { position: relative; cursor: pointer; }
.promo-day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.promo-day span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid #C5D3E8; border-radius: 999px; background: #fff; color: #5A6B85; font-size: 14px; font-weight: 600; }
.promo-day input:checked + span { border-color: #1E3F7A; background: #1E3F7A; color: #fff; }
.promo-day input:focus-visible + span { outline: 2px solid #1E3F7A; outline-offset: 2px; }
.pn-section .admin-field .wl-date-button { height: 42px; min-height: 42px; }
.pn-section .admin-field .wl-date-button + select { margin-top: 6px; }
.pn-actions { text-align: right; white-space: nowrap; }
.pn-actions-main, .pn-confirm { display: inline-flex; align-items: center; gap: 8px; }
.pn-actions-main[hidden], .pn-confirm[hidden] { display: none; }
.pn-inline { display: inline; margin: 0; }
.pn-confirm span { font-size: 14px; font-weight: 600; }
.pn-btn { height: 36px; padding: 0 14px; border: 1px solid #C5D3E8; border-radius: 10px; background: #fff; color: #152B52; font: 600 14px var(--s2p-font); cursor: pointer; }
.pn-btn:hover { border-color: #1E3F7A; }
.pn-btn.is-danger { border-color: #efc9cf; color: #9b1c2c; }
.pn-btn.is-danger:hover { border-color: #9b1c2c; }
.pn-btn.is-danger-solid { border-color: #9b1c2c; background: #9b1c2c; color: #fff; }
.pn-btn-lg { height: 44px; padding: 0 18px; }
.pn-none { margin: 0; padding: 28px 20px; color: #5A6B85; text-align: center; }
.pn-none[hidden] { display: none; }
.pn-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; color: #5A6B85; font-size: 14px; }
.pn-pager { padding-top: 0; border-top: 0; }
.pn-pager:empty { display: none; }
/* The slide-in panel */
body.pn-locked { overflow: hidden; }
.pn-drawer { position: fixed; inset: 0; z-index: 1000; }
.pn-drawer[hidden] { display: none; }
.pn-backdrop { position: absolute; inset: 0; background: rgba(26, 11, 38, .55); opacity: 0; transition: opacity .2s ease; }
.pn-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); background: #fff; color: #152B52; box-shadow: -20px 0 40px rgba(0, 0, 0, .3); transform: translateX(100%); transition: transform .22s ease; }
.pn-drawer.is-open .pn-backdrop { opacity: 1; }
.pn-drawer.is-open .pn-panel { transform: none; }
.pn-form { display: flex; flex-direction: column; height: 100%; margin: 0; }
.pn-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 26px; border-bottom: 1px solid #C5D3E8; background: #fff; }
.pn-panel-head h2 { margin: 0; font-size: 22px; }
.pn-panel-head p { margin: 4px 0 0; color: #5A6B85; font-size: 14px; }
.pn-x { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid #C5D3E8; border-radius: 10px; background: #fff; color: #152B52; cursor: pointer; }
.pn-x:hover { border-color: #1E3F7A; }
.pn-panel-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding: 20px 26px 26px; }
.pn-panel-body > .error { margin: 0; }
.pn-section { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid #C5D3E8; border-radius: 14px; background: #fff; }
.pn-section h3 { margin: 0; color: #5A6B85; font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.pn-section-note { margin: -4px 0 0; color: #5A6B85; font-size: 13.5px; }
.pn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pn-section .admin-field { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.pn-section .admin-field label { color: #152B52; font-size: 13.5px; font-weight: 700; }
.pn-section .admin-field input, .pn-section .admin-field select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #C5D3E8; border-radius: 10px; background: #fff; color: #152B52; font: 15px var(--s2p-font); }
.pn-section .admin-field input:focus, .pn-section .admin-field select:focus { outline: none; border-color: #1E3F7A; box-shadow: 0 0 0 3px rgba(59, 52, 134, .15); }
.pn-section .admin-field small { color: #5A6B85; font-size: 12.5px; line-height: 1.4; }
.pn-section .admin-field.has-error input, .pn-section .admin-field.has-error select { border-color: #b3261e; }
.pn-section .admin-field .field-error { color: #9b1c2c; font-weight: 600; }
.pn-section .admin-field[hidden] { display: none; }
.pn-switches { display: flex; flex-direction: column; }
.pn-switch { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; cursor: pointer; }
.pn-switch + .pn-switch { border-top: 1px solid #EBF0F8; }
.pn-switch span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 600; }
.pn-switch small { color: #5A6B85; font-size: 12.5px; font-weight: 400; }
.pn-switch input { -webkit-appearance: none; appearance: none; position: relative; flex: 0 0 auto; width: 46px; height: 26px; margin: 0; border-radius: 999px; background: #C5D3E8; cursor: pointer; transition: background .15s ease; }
.pn-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .15s ease; }
.pn-switch input:checked { background: #1E3F7A; }
.pn-switch input:checked::after { left: 23px; }
.pn-switch input:focus-visible { outline: 2px solid #1E3F7A; outline-offset: 2px; }
.pn-panel-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 26px; border-top: 1px solid #C5D3E8; background: #fff; }
.pn-save { height: 44px; padding: 0 22px; border: 0; border-radius: 12px; background: #1E3F7A; color: #fff; font: 700 15px var(--s2p-font); cursor: pointer; }
.pn-save:hover { filter: brightness(1.1); }
@media (max-width: 640px) {
  .pn-grid { grid-template-columns: 1fr; }
  .pn-panel-head, .pn-panel-body, .pn-panel-foot { padding-left: 18px; padding-right: 18px; }
}

/* Admin: dashboard tiles, badges, filters, pager */
.dash-alert { border-color: #e7a6a6; background: #fff6f6; }
.attention-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0 0 14px; }
.stat-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid #C5D3E8; border-radius: 12px; background: #fff; }
.stat-label { font-size: 13px; font-weight: 600; color: #5A6B85; }
.stat-value { font-size: 26px; line-height: 1.2; color: #152B52; }
.stat-sub { font-size: 13px; color: #5A6B85; }
.stat-split { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12px; color: #5A6B85; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-good { background: #dff3ea; color: #0b5d42; }
.badge-info { background: #e6edfb; color: #22437d; }
.badge-bad { background: #fdeaea; color: #8c1823; }
.badge-muted { background: #edf0f5; color: #4a5568; }
.admin-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 14px; }
.admin-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.admin-filters input, .admin-filters select { min-height: 40px; padding: 6px 10px; border: 1px solid #C5D3E8; border-radius: 8px; font: inherit; font-weight: 400; }
.admin-filter-wide { flex: 1 1 320px; }
.admin-filter-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.admin-page { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid #C5D3E8; border-radius: 8px; color: inherit; }
.admin-page.is-current { background: var(--s2p-mid); border-color: var(--s2p-mid); color: #152B52; font-weight: 700; }
.admin-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 20px; margin: 0 0 14px; }
.admin-details div { display: flex; flex-direction: column; gap: 2px; }
.admin-details dt { font-size: 12px; font-weight: 700; color: #5A6B85; }
.admin-details dd { margin: 0; word-break: break-word; }

.admin-search { margin: 0 0 12px; }
.admin-search input { width: 100%; max-width: 420px; min-height: 42px; padding: 8px 12px; border: 1px solid #C5D3E8; border-radius: 10px; font: inherit; }
.admin-search-none { margin: 10px 0 0; color: inherit; opacity: .8; }
.admin-search-none[hidden], .admin-table tr[hidden] { display: none; }

.admin-checks { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 12px; }
.admin-checks .toggle-row { margin: 0; }
.admin-hint { margin: 0 0 10px; font-size: 12px; color: #5A6B85; }
@media (max-width: 600px) {
  .admin-bar-logo { width: 110px; }
  .admin-bar-links { font-size: 12px; }
  .admin-field-pair { grid-template-columns: 1fr; }
  .dash-panel { padding: 22px 18px; }
}
.admin-bar-logo { background: #fff; border-radius: 8px; padding: 4px 8px; }
.admin-body .notice, .admin-body .error { margin: 18px 0; }

/* ===== Admin: in-page pager ===== */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding-top: 16px; border-top: 1px solid #e3eaf5; }
.pager[hidden] { display: none; }
.pager-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid #C5D3E8; border-radius: 10px; background: #fff; color: #152B52; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; }
.pager-btn:hover:not(:disabled) { border-color: #1E3F7A; }
.pager-btn.is-current { border-color: #1E3F7A; background: #1E3F7A; color: #fff; }
.pager-btn:disabled { color: #b8c4d6; cursor: default; }
.pager-btn:focus-visible { outline: 2px solid #1E3F7A; outline-offset: 2px; }

/* Hidden from view, still read by screen readers. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Date picker (assets/js/datepicker.js) ===== */
.s2p-date-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-width: 180px; min-height: 44px; padding: 0 14px; border: 1px solid #C5D3E8; border-radius: 10px; background: #fff; color: #152B52; font: 500 15px var(--s2p-font); text-align: left; cursor: pointer; }
.s2p-date-button svg { flex: 0 0 auto; color: #1E3F7A; }
.s2p-date-button:hover { border-color: #4169A8; }
.s2p-date-button:focus-visible, .s2p-date-button.is-open { outline: none; border-color: #1E3F7A; box-shadow: 0 0 0 3px rgba(65, 105, 168, .18); }
.s2p-date-button.is-invalid { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179, 38, 30, .15); }
.s2p-date-text.is-empty { color: #5A6B85; }
.s2p-date-pop { position: absolute; z-index: 2000; width: 336px; max-width: calc(100vw - 16px); padding: 16px; border: 1px solid #C5D3E8; border-radius: 16px; background: #fff; color: #152B52; box-shadow: 0 16px 38px rgba(18, 40, 79, .24); font-family: var(--s2p-font); }
.s2p-date-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.s2p-date-head strong { font-size: 16px; }
.s2p-date-nav { width: 36px; height: 36px; border: 1px solid #C5D3E8; border-radius: 10px; background: #fff; color: #152B52; font: 600 18px/1 var(--s2p-font); cursor: pointer; }
.s2p-date-nav:hover:not(:disabled) { border-color: #1E3F7A; }
.s2p-date-nav:disabled { color: #b8c4d6; cursor: default; }
.s2p-date-week, .s2p-date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 0; text-align: center; }
.s2p-date-week span { padding: 4px 0; color: #5A6B85; font-size: 12px; font-weight: 700; }
.s2p-date-day { height: 40px; margin: 0 2px; border: 0; border-radius: 10px; background: transparent; color: #152B52; font: 600 14.5px var(--s2p-font); cursor: pointer; }
.s2p-date-day:hover:not(:disabled) { background: #EBF0F8; }
.s2p-date-day:focus-visible { outline: 2px solid #1E3F7A; outline-offset: 1px; }
.s2p-date-day:disabled { color: #b8c4d6; font-weight: 400; cursor: default; }
.s2p-date-day.is-today { box-shadow: inset 0 0 0 1.5px #1E3F7A; }
.s2p-date-day.in-range { margin: 0; border-radius: 0; background: #dce6f5; color: #1E3F7A; }
.s2p-date-day.range-start { margin-right: 0; border-radius: 10px 0 0 10px; }
.s2p-date-day.range-end { margin-left: 0; border-radius: 0 10px 10px 0; }
.s2p-date-day.is-selected, .s2p-date-day.is-edge { background: #1E3F7A; color: #fff; }
.s2p-date-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e3eaf5; color: #5A6B85; font-size: 13.5px; }
.s2p-date-actions { display: flex; gap: 6px; }
.s2p-date-link { height: 34px; padding: 0 12px; border: 1px solid #C5D3E8; border-radius: 9px; background: #fff; color: #152B52; font: 600 13.5px var(--s2p-font); cursor: pointer; }
