/* ── Swaygo design tokens ────────────────────────────────────────── */
:root {
  --c-bg:        var(--bg);  /* Noir profond — true deep black */
  --c-bg-soft:   var(--bg-2);  /* Slightly raised black */
  --c-surface:   var(--surface);  /* Card / panel  */
  --c-surface-2: var(--surface-2);  /* Input / raised */
  --c-text:      #FFFFFF;  /* Blanc         */
  --c-muted:     #EAEAEA;  /* Gris clair    */
  --c-subtle:    #999999;  /* De-emphasized  */
  --c-accent:    #FF6B00;  /* Orange néon   */
  --c-accent-h:  #FF8C1A;  /* Accent hover   */
  --c-accent-d:  #CC5500;  /* Accent pressed */
  --c-accent-amber: #FF9F45; /* Warm amber — gradient companion */
  --c-border:    var(--ink-10);

  /* Signature orange gradient — single source of truth for all CTAs/accents */
  --grad-brand:  linear-gradient(135deg, #FF6B00 0%, #FF9F45 100%);

  /* Apple-style system font stack — renders real San Francisco on Apple
     devices, Inter as the cross-platform fallback elsewhere. */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica,
               Arial, sans-serif;
}

/* ── Global base styles (loaded on every page via base.html) ── */

html { font-family: var(--font-sans); }
body {
  position: relative;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em; /* Apple-like tighter tracking */

  /* ── Amazing black background ──────────────────────────────────────
     Layer 1: deep radial wells of warm orange light bleeding from the
     top corners, fading into pure black toward the bottom. Fixed so the
     glow stays put as you scroll — like a stage lit from above.        */
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 80% at 15% -10%, rgba(255,107,0,0.16) 0%, rgba(255,107,0,0.05) 30%, transparent 60%),
    radial-gradient(120% 80% at 90% 0%,  rgba(255,159,69,0.10) 0%, rgba(255,159,69,0.03) 35%, transparent 65%),
    radial-gradient(140% 100% at 50% 120%, rgba(255,107,0,0.08) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-2) 55%, var(--bg-2) 100%);
  background-attachment: fixed;
}

/* ── Background layer 2: slow breathing aurora orbs (fixed, behind all) */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 20% 12%, rgba(255,107,0,0.22), transparent 60%),
    radial-gradient(32vmax 32vmax at 82% 22%, rgba(255,159,69,0.14), transparent 62%),
    radial-gradient(30vmax 30vmax at 60% 95%, rgba(204,85,0,0.16), transparent 60%);
  filter: blur(20px) saturate(120%);
  animation: bg-aurora 22s ease-in-out infinite alternate;
}

/* ── Background layer 3: fine film grain + subtle vignette (fixed) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  /* SVG fractal-noise grain, base64-free inline for CSP safety via data URI */
  background-image:
    radial-gradient(130% 130% at 50% 30%, transparent 55%, rgba(0,0,0,0.55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: cover, 160px 160px;
  mix-blend-mode: screen;
}

@keyframes bg-aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1);       opacity: 0.9; }
  50%  { transform: translate3d(2vmax, -1.5vmax, 0) scale(1.08); opacity: 1; }
  100% { transform: translate3d(-1.5vmax, 1vmax, 0) scale(1.04);  opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

.glass { background: linear-gradient(180deg,var(--surface),var(--surface)); border: 1px solid var(--ink-08); }

.btn-brand { background: linear-gradient(135deg,#FF6B00 0%,#FF6B00 100%); color: var(--text); border-radius: 22px; padding: 0.6rem 1.4rem; font-weight: 700; transition: filter 0.2s, transform 0.2s; text-decoration:none; display:inline-flex;align-items:center; }
.btn-brand:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-ghost { border: 1px solid var(--ink-12); border-radius: 22px; padding: 0.6rem 1.4rem; font-weight: 500; color: var(--ink-8); transition: all 0.2s; text-decoration:none;display:inline-flex;align-items:center; }
.btn-ghost:hover { border-color: var(--ink-25); color: var(--text); }

.fi-input { min-height:3rem;width:100%;border-radius:12px;border:1px solid var(--ink-08);background:rgba(var(--surface-rgb), 0.8);padding:0 1rem;color:var(--text);outline:none;transition:border-color 0.2s;font-size:0.88rem; }
.fi-input:focus { border-color:rgba(255,107,0,0.35);box-shadow:0 0 0 3px rgba(255,107,0,0.08); }
.fi-input::placeholder { color:var(--text-subtle); }
select.fi-input { cursor:pointer; }

.card-dark { background: linear-gradient(180deg,rgba(28,28,31,0.85),var(--surface)); border: 1px solid var(--ink-07); border-radius: 16px; }

.hdiv { height:1px;background:linear-gradient(90deg,transparent,var(--ink-06),transparent);margin:2rem 0; }

.back-link { display:inline-flex;align-items:center;gap:6px;font-size:0.8rem;color:var(--ink-32);text-decoration:none;transition:color 0.15s;margin-bottom:2rem; }
.back-link:hover { color:var(--ink-75); }

.tag { display:inline-flex;align-items:center;border-radius:999px;padding:3px 11px;font-size:0.72rem;font-weight:600; }
.tag-orange { background:rgba(255,107,0,0.12);color:#FF8C1A; }
.tag-green  { background:rgba(34,197,94,0.12);color:#4ADE80; }
.tag-yellow { background:rgba(234,179,8,0.12);color:#FDE047; }
.tag-red    { background:rgba(239,68,68,0.12);color:#F87171; }
.tag-gray   { background:var(--ink-06);color:var(--ink-38); }
.tag-blue   { background:rgba(96,165,250,0.12);color:#93C5FD; }

.slabel { font-size:0.6rem;font-weight:900;letter-spacing:.18em;text-transform:uppercase;color:var(--ink-22); }

/* ── Nav hamburger & mobile overlay ── */
.nav-hamburger { display:none;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:var(--ink-06);border:1px solid var(--ink-1);cursor:pointer;flex-shrink:0; }

#mob-nav { display:none;position:fixed;inset:0;z-index:200;background:var(--bg-2);backdrop-filter:blur(20px);flex-direction:column;padding:1.5rem; }
#mob-nav.open { display:flex; }

.mob-nav-link { display:flex;align-items:center;padding:1rem .5rem;border-bottom:1px solid var(--ink-06);font-size:1.1rem;font-weight:700;color:var(--ink-75);text-decoration:none;transition:color .15s; }
.mob-nav-link:hover { color:#FF8C1A; }
.mob-nav-link:last-child { border-bottom:none; }

/* ── Responsive ── */
@media(max-width:768px) {
  .nav-desktop-links { display:none !important; }
  .nav-desktop-auth  { display:none !important; }
  .nav-hamburger     { display:flex !important; }
  .footer-inner      { flex-direction:column !important; gap:2rem !important; }
  .footer-brand      { flex:none !important; max-width:100% !important; }
  .footer-links      { grid-template-columns:1fr 1fr !important; gap:1.5rem !important; }
}

/* ── Footer link hover ── */
.sw-foot-link { font-size:0.82rem;font-weight:500;color:var(--ink-36);text-decoration:none;transition:color 0.15s; }
.sw-foot-link:hover { color:var(--text); }
.sw-foot-link-cta { font-size:0.82rem;font-weight:700;color:rgba(255,107,0,0.7);text-decoration:none;transition:color 0.15s; }
.sw-foot-link-cta:hover { color:#FF6B00; }

/* ── Navbar register CTA pill ── */
.sw-nav-cta-pill {
  display:inline-flex;align-items:center;gap:6px;padding:0.52rem 1.25rem;border-radius:999px;
  font-size:0.82rem;font-weight:800;color:var(--text);
  background:linear-gradient(135deg,#FF6B00 0%,#FF9F45 60%,#FF8C1A 100%);
  box-shadow:0 3px 14px rgba(255,140,26,0.32);
  text-decoration:none;transition:transform 0.2s,box-shadow 0.2s;
}
.sw-nav-cta-pill:hover { transform:scale(1.04); box-shadow:0 5px 22px rgba(255,140,26,0.48); }

/* ── Notification bell ── */
.sw-notif-wrap { position: relative; }
.sw-notif-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink-06); border: 1px solid var(--ink-1);
  color: var(--ink-65); cursor: pointer;
  transition: background .15s, color .15s;
}
.sw-notif-btn:hover, .sw-notif-btn[aria-expanded="true"] { background: var(--ink-12); color: var(--text); }
.sw-notif-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: linear-gradient(135deg,#FF6B00,#ef4444);
  color: var(--text); font-size: .65rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  border: 2px solid var(--surface); transition: transform .2s;
}
.sw-notif-badge-hidden { display: none !important; }
.sw-notif-dropdown {
  position: absolute; top: calc(100% + 10px); right: -8px;
  width: 340px; border: 1px solid var(--ink-1); border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px var(--ink-05);
  overflow: hidden; z-index: 9999;
  opacity: 0; transform: translateY(-6px) scale(.97);
  pointer-events: none; transition: opacity .18s, transform .18s;
}
.sw-notif-dropdown.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.sw-notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1rem .6rem; border-bottom: 1px solid var(--ink-07);
  font-size: .8rem; font-weight: 800; color: var(--text);
}
.sw-notif-mark-all {
  font-size: .71rem; font-weight: 700; color: rgba(255,140,26,.8);
  background: none; border: none; cursor: pointer; padding: 0;
}
.sw-notif-mark-all:hover { color: #FF9F45; }
.sw-notif-list { max-height: 380px; overflow-y: auto; }
.sw-notif-item {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .8rem 1rem; border-bottom: 1px solid var(--ink-05);
  cursor: default; transition: background .12s;
}
.sw-notif-item:last-child { border-bottom: none; }
.sw-notif-item.unread { background: rgba(255,140,26,.05); }
.sw-notif-item.unread:hover { background: rgba(255,140,26,.09); }
.sw-notif-item:not(.unread):hover { background: var(--ink-03); }
.sw-notif-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.sw-notif-dot-confirmed { background: #4ade80; }
.sw-notif-dot-canceled  { background: #f87171; }
.sw-notif-dot-no_show   { background: #FF8C1A; }
.sw-notif-dot-reminder  { background: #60a5fa; }
.sw-notif-dot-read      { background: var(--ink-15); }
.sw-notif-text { font-size: .78rem; color: var(--ink-75); line-height: 1.45; flex: 1; }
.sw-notif-time { font-size: .67rem; color: var(--ink-25); margin-top: .2rem; }
.sw-notif-empty { padding: 2rem 1rem; text-align: center; font-size: .8rem; color: var(--ink-25); }
.sw-notif-loading { padding: 1.5rem 1rem; text-align: center; font-size: .78rem; color: var(--ink-25); }

/* ── Pagination / ghost links ── */
.sw-page-link {
  display:inline-flex;align-items:center;padding:.6rem 1rem;border-radius:12px;
  background:var(--ink-05);border:1px solid var(--ink-1);
  color:var(--ink-6);font-size:.85rem;font-weight:600;
  min-width:40px;justify-content:center;text-decoration:none;transition:all .2s;
}
.sw-page-link:hover { border-color:rgba(255,107,0,.4); color:#FF8C1A; }
.sw-page-link-wide {
  display:inline-flex;align-items:center;padding:.6rem 1.2rem;border-radius:12px;
  background:var(--ink-05);border:1px solid var(--ink-1);
  color:var(--ink-7);font-size:.85rem;font-weight:600;
  text-decoration:none;transition:all .2s;
}
.sw-page-link-wide:hover { border-color:rgba(255,107,0,.4); color:#FF8C1A; }

/* ── Big rounded ghost pill (owner CTAs) ── */
.sw-ghost-pill {
  display:flex;align-items:center;justify-content:center;padding:.85rem 2rem;border-radius:999px;
  border:1px solid var(--ink-12);color:var(--ink-7);
  font-size:.9rem;font-weight:600;text-decoration:none;transition:all .2s;
}
.sw-ghost-pill:hover { border-color:var(--ink-25); color:var(--text); }

/* ── Small back-to-home link ── */
.sw-back-soft {
  display:inline-flex;align-items:center;gap:6px;font-size:.82rem;
  color:var(--ink-35);text-decoration:none;transition:color .15s;
}
.sw-back-soft:hover { color:var(--ink-7); }

/* ── Search autocomplete dropdown ── */
.sw-ac-box {
  display:none;position:absolute;top:calc(100% + 6px);left:0;
  min-width:100%;width:max(100%, 420px);max-width:min(560px, 92vw);
  z-index:1000;
  background:var(--surface);border:1px solid var(--ink-08);
  border-radius:14px;
  box-shadow:0 18px 50px rgba(0,0,0,.55), 0 0 0 1px var(--ink-02);
  overflow:hidden;text-align:left;
  max-height:60vh;overflow-y:auto;
  backdrop-filter:blur(8px);
}
.sw-ac-box::-webkit-scrollbar { width:6px; }
.sw-ac-box::-webkit-scrollbar-thumb { background:var(--ink-1); border-radius:99px; }
.sw-ac-item {
  display:flex;align-items:center;gap:.85rem;
  padding:.7rem 1rem;
  color:var(--text);text-decoration:none;
  border-bottom:1px solid var(--ink-04);
  transition:background .15s, padding-left .15s;
  text-align:left;
}
.sw-ac-item:last-child { border-bottom:0; }
.sw-ac-item:hover,
.sw-ac-item.is-active {
  background:linear-gradient(90deg, rgba(255,107,0,.10) 0%, rgba(255,107,0,.02) 100%);
  padding-left:1.15rem;
}
.sw-ac-icon {
  flex-shrink:0;width:34px;height:34px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:10px;font-size:1rem;
  background:rgba(255,107,0,.12);border:1px solid rgba(255,107,0,.2);
}
.sw-ac-text { display:flex;flex-direction:column;min-width:0;flex:1; }
.sw-ac-title {
  font-size:.9rem;font-weight:600;color:var(--text);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.25;
}
.sw-ac-sub {
  font-size:.75rem;color:var(--ink-45);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3;margin-top:1px;
}
.sw-ac-chev {
  flex-shrink:0;color:var(--ink-25);font-size:.9rem;
  transition:color .15s, transform .15s;
}
.sw-ac-item:hover .sw-ac-chev { color:#FF8C1A;transform:translateX(2px); }

/* ─────────────────────────────────────────────────────────────────────── */
/*  Native form controls — global dark theme                              */
/*  Targets unstyled inputs so the whole site looks consistent without    */
/*  needing per-template class changes. Tailwind/.fi-input still wins.    */
/* ─────────────────────────────────────────────────────────────────────── */

/* Reset native look on textual inputs, select, textarea */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
select,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font: inherit;
  color: var(--text);
  background: rgba(var(--surface-rgb), 0.7);
  border: 1px solid var(--ink-08);
  border-radius: 12px;
  padding: 0.65rem 0.95rem;
  width: 100%;
  min-height: 2.75rem;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="search"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="time"]:hover,
input[type="datetime-local"]:hover,
input[type="month"]:hover,
input[type="week"]:hover,
select:hover,
textarea:hover {
  border-color: var(--ink-16);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
select:focus,
textarea:focus {
  border-color: rgba(255,107,0, 0.45);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(255,107,0, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-32);
  opacity: 1;
}

input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input[readonly],
textarea[readonly] {
  background: rgba(var(--surface-rgb), 0.45);
  color: var(--ink-6);
}

textarea {
  min-height: 6.5rem;
  resize: vertical;
}

/* Select: custom chevron */
select {
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23ffffff' stroke-opacity='0.55' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  cursor: pointer;
}

select option,
select optgroup {
  background: var(--surface);
  color: var(--text);
}

/* Calendar / time picker indicator (WebKit) */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="week"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85);
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.15s;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Number input — hide spin buttons for cleaner look */
input[type="number"] {
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Search clear button */
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 3l8 8M11 3l-8 8' stroke='%23ffffff' stroke-opacity='0.5' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  cursor: pointer;
  opacity: 0.7;
}
input[type="search"]::-webkit-search-cancel-button:hover { opacity: 1; }

/* WebKit autofill — kill the yellow */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset;
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}

/* Checkboxes & radios — fully custom */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  vertical-align: middle;
  background: rgba(var(--surface-rgb), 0.85);
  border: 1.5px solid var(--ink-22);
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="checkbox"] { border-radius: 6px; }
input[type="radio"]    { border-radius: 50%; }

input[type="checkbox"]:hover,
input[type="radio"]:hover {
  border-color: rgba(255,107,0, 0.55);
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,107,0, 0.25);
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background: linear-gradient(135deg, #FF6B00, #FF6B00);
  border-color: transparent;
}

input[type="checkbox"]:checked::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5l3.5 3.5L13 5' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

input[type="radio"]:checked::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #fff;
}

input[type="checkbox"]:indeterminate {
  background: linear-gradient(135deg, #FF6B00, #FF6B00);
  border-color: transparent;
}
input[type="checkbox"]:indeterminate::before {
  content: "";
  width: 0.55rem;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* File input */
input[type="file"] {
  width: 100%;
  font-size: 0.85rem;
  color: var(--ink-6);
  background: rgba(var(--surface-rgb), 0.6);
  border: 1px dashed var(--ink-14);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.18s, background-color 0.18s;
}
input[type="file"]:hover {
  border-color: rgba(255,107,0, 0.45);
  background: rgba(var(--surface-rgb), 0.85);
}
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  margin-right: 0.85rem;
  padding: 0.45rem 0.95rem;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #FF6B00, #FF6B00);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s;
}
input[type="file"]::file-selector-button:hover {
  filter: brightness(1.1);
}
input[type="file"]::-webkit-file-upload-button:hover {
  filter: brightness(1.1);
}

/* Range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--ink-12);
  border-radius: 999px;
}
input[type="range"]::-moz-range-track {
  height: 4px;
  background: var(--ink-12);
  border-radius: 999px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B00, #FF6B00);
  border: 2px solid var(--bg-2);
  box-shadow: 0 2px 8px rgba(255,107,0, 0.5);
  margin-top: -7px;
  cursor: pointer;
  transition: transform 0.12s;
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B00, #FF6B00);
  border: 2px solid var(--bg-2);
  box-shadow: 0 2px 8px rgba(255,107,0, 0.5);
  cursor: pointer;
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }

/* Color picker */
input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 3rem;
  height: 2.5rem;
  border: 1px solid var(--ink-12);
  border-radius: 10px;
  background: rgba(var(--surface-rgb), 0.7);
  padding: 3px;
  cursor: pointer;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 7px; }
input[type="color"]::-moz-color-swatch { border: none; border-radius: 7px; }

/* Labels / fieldsets */
label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-75);
  display: inline-block;
}
label.sw-inline,
.sw-check-row label {
  font-weight: 500;
  color: var(--ink-85);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

fieldset {
  border: 1px solid var(--ink-08);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 0 0 1rem 0;
}
legend {
  padding: 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-55);
}

/* Field error/help messages from Django */
.errorlist,
ul.errorlist {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0 0;
  font-size: 0.78rem;
  color: #F87171;
}
.helptext,
small.form-text {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.74rem;
  color: var(--ink-4);
}

/* Selection */
::selection {
  background: rgba(255,107,0, 0.35);
  color: var(--text);
}

/* Custom dark scrollbar */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: var(--ink-02); }
*::-webkit-scrollbar-thumb {
  background: var(--ink-1);
  border-radius: 999px;
  border: 2px solid var(--bg-2);
}
*::-webkit-scrollbar-thumb:hover { background: rgba(255,107,0, 0.4); }
html { scrollbar-color: var(--ink-12) var(--bg-2); scrollbar-width: thin; }

/* ═══════════════════════════════════════════════════
   Navbar  (swn- prefix)
   ═══════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   Swaygo — Premium Navbar  (swn- prefix)
   Compatible with notifications.js + mobnav.js hook IDs
   ═══════════════════════════════════════════════════════════ */

/* Shell */
.swn-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid var(--ink-055);
  background: rgba(var(--surface-rgb), .6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: background .3s, box-shadow .3s;
}
.swn-wrap.is-scrolled {
  background: var(--surface);
  box-shadow: 0 1px 0 var(--ink-05), 0 8px 32px rgba(0,0,0,.45);
}
.swn-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo */
.swn-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  margin-right: 2.5rem;
  flex-shrink: 0;
  outline: none;
}
.swn-logo-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #FF6B00, #FF6B00);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: .95rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.04em;
  flex-shrink: 0;
  box-shadow: 0 3px 14px rgba(255,107,0,.3);
  transition: box-shadow .2s, transform .15s;
}
.swn-logo:hover .swn-logo-mark {
  box-shadow: 0 4px 22px rgba(255,107,0,.55);
  transform: scale(1.07) rotate(-3deg);
}
.swn-logo-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.04em;
  transition: opacity .22s ease, max-width .28s cubic-bezier(.4,0,.2,1), margin .28s ease;
  max-width: 120px;
  overflow: hidden;
}

/* Desktop nav links */
.swn-links {
  display: flex;
  align-items: center;
  gap: .1rem;
  /* flex:1 removed — now inside .swn-center which handles sizing */
}
.swn-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .8rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-48);
  text-decoration: none;
  border-radius: 8px;
  transition: color .15s, background .15s;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.swn-link::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: .8rem; right: .8rem;
  height: 1.5px;
  background: linear-gradient(90deg, #FF6B00, #FF6B00);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s cubic-bezier(.4,0,.2,1);
}
.swn-link:hover { color: var(--ink-88); background: var(--ink-05); }
.swn-link:hover::after,
.swn-link.is-active::after { transform: scaleX(1); }
.swn-link.is-active { color: var(--text); }
.swn-link--owner { color: var(--ink-32); border: 1px solid var(--ink-07); border-radius: 8px; }
.swn-link--owner:hover { color: var(--ink-75); border-color: var(--ink-14); background: var(--ink-04); }
.swn-link--owner::after { display: none; }

/* Right side */
.swn-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-left: auto;
}

/* Ghost button */
.swn-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .48rem 1rem;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-58);
  text-decoration: none;
  border: 1px solid var(--ink-1);
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s, background .15s, border-color .15s;
}
.swn-btn-ghost:hover { color: var(--text); background: var(--ink-07); border-color: var(--ink-18); }

/* CTA */
.swn-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .52rem 1.1rem;
  border-radius: 9px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(135deg, #FF6B00, #FF6B00);
  box-shadow: 0 2px 14px rgba(255,107,0,.32);
  transition: box-shadow .18s, transform .14s;
  white-space: nowrap;
  letter-spacing: -.01em;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.swn-btn-cta:hover { box-shadow: 0 4px 22px rgba(255,107,0,.55); transform: translateY(-1px); }
.swn-btn-cta:active { transform: none; }
.swn-btn-cta svg { transition: transform .16s; }
.swn-btn-cta:hover svg { transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════════════════════════
 * NAVBAR v2 — richer gradients, glow, shine-sweep CTA, refined accents.
 * Layered after the base rules so it wins the cascade.
 * ═══════════════════════════════════════════════════════════════════════════ */
.swn-wrap {
  background: rgba(var(--surface-rgb), .55);
  border-bottom: 1px solid transparent;
  background-image:
    linear-gradient(rgba(8,9,14,.55), rgba(8,9,14,.55)),
    linear-gradient(90deg, rgba(255,107,0,.35), rgba(255,140,26,.12) 40%, transparent 75%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.swn-wrap.is-scrolled {
  background-image:
    linear-gradient(var(--surface), var(--surface)),
    linear-gradient(90deg, rgba(255,107,0,.5), rgba(255,140,26,.18) 45%, transparent 80%);
  box-shadow: 0 1px 0 rgba(255,107,0,.1), 0 10px 40px rgba(0,0,0,.5);
}

/* Logo mark — real two-tone gradient + glossy highlight + glow */
.swn-logo-mark {
  background: linear-gradient(140deg, #ff8c1a 0%, #ff6b00 55%, #e85d00 100%);
  border-radius: 11px;
  box-shadow: 0 4px 16px rgba(255,107,0,.45), inset 0 1px 0 var(--ink-35);
  position: relative;
  overflow: hidden;
}
.swn-logo-mark::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 18%, var(--ink-5), transparent 55%);
  pointer-events: none;
}
.swn-logo:hover .swn-logo-mark {
  box-shadow: 0 6px 26px rgba(255,107,0,.65), inset 0 1px 0 var(--ink-4);
}

/* Nav link underline — two-tone gradient, a touch bolder */
.swn-link::after {
  height: 2px;
  background: linear-gradient(90deg, #ff6b00, #ff8c1a);
  box-shadow: 0 0 8px rgba(255,107,0,.5);
}

/* "NEW" badge — gradient pill with a soft pulse */
.swn-badge-new {
  background: linear-gradient(135deg, #ff6b00, #ff8c1a) !important;
  color: var(--surface) !important;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(255,107,0,.45);
  animation: swn-pulse 2.4s ease-in-out infinite;
}
@keyframes swn-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255,107,0,.35); }
  50%      { box-shadow: 0 0 18px rgba(255,107,0,.7); }
}

/* Ghost button — subtle glass refinement */
.swn-btn-ghost {
  background: var(--ink-03);
  backdrop-filter: blur(4px);
}
.swn-btn-ghost:hover {
  border-color: rgba(255,107,0,.4);
  color: var(--text);
  background: rgba(255,107,0,.08);
}

/* CTA — real gradient, stronger glow, and a shine sweep on hover */
.swn-btn-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff7a14 0%, #ff6b00 55%, #ec5e00 100%);
  box-shadow: 0 2px 16px rgba(255,107,0,.4), inset 0 1px 0 var(--ink-25);
}
.swn-btn-cta::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -130%;
  width: 55%;
  background: linear-gradient(100deg, transparent, var(--ink-5), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
.swn-btn-cta:hover { box-shadow: 0 6px 28px rgba(255,107,0,.62), inset 0 1px 0 var(--ink-3); transform: translateY(-1px); }
.swn-btn-cta:hover::before { animation: swn-shine .75s ease; }
@keyframes swn-shine { from { left: -130%; } to { left: 140%; } }

/* Avatar — branded gradient */
.swn-avatar {
  background: linear-gradient(135deg, #ff7a14, #ff6b00) !important;
  color: var(--text) !important;
  box-shadow: inset 0 1px 0 var(--ink-3);
}

/* ── Mega-menu dropdowns (Cuisines / Villes) — CSS-only hover panels ─────── */
.swn-mega { position: relative; }
.swn-mega-btn {
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.swn-mega-chev { opacity: .55; margin-left: 1px; transition: transform .22s var(--sg-ease, ease), opacity .15s; }
.swn-mega:hover .swn-mega-btn { color: var(--ink-92); background: var(--ink-05); }
.swn-mega:hover .swn-mega-chev { transform: rotate(180deg); opacity: 1; }

.swn-mega-panel {
  position: absolute; top: calc(100% + 12px); left: 0;
  width: 360px; padding: 16px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--ink-08);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,107,0,.05), inset 0 1px 0 var(--ink-04);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.97);
  transform-origin: top left;
  transition: opacity .2s ease, transform .2s cubic-bezier(.4,0,.2,1), visibility .2s;
  z-index: 200;
}
.swn-mega-panel--cities { width: 300px; }
.swn-mega-panel--cuisines { width: 420px; }
/* invisible bridge so the cursor can travel from button to panel */
.swn-mega-panel::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.swn-mega:hover .swn-mega-panel,
.swn-mega:focus-within .swn-mega-panel {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.swn-mega-title {
  font-size: .64rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-42); font-weight: 800; margin: 2px 6px 12px;
}
.swn-mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.swn-mega-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.swn-chip {
  display: flex; align-items: center; gap: 9px;
  min-width: 0; overflow: hidden;
  padding: 10px 11px; border-radius: 11px;
  color: var(--ink-82); text-decoration: none;
  font-size: .82rem; font-weight: 600; white-space: nowrap;
  transition: background .14s, color .14s, transform .14s;
}
.swn-chip span { flex-shrink: 0; }
.swn-chip span { font-size: 1.1rem; line-height: 1; filter: saturate(1.1); }
.swn-chip:hover {
  background: linear-gradient(135deg, rgba(255,107,0,.18), rgba(255,140,26,.06));
  color: var(--text); transform: translateX(2px);
}

/* GPS "nearest city" button + result (Villes panel) */
.swn-geo-btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 10px 12px; margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(255,107,0,.16), rgba(255,140,26,.05));
  border: 1px solid rgba(255,107,0,.3);
  border-radius: 12px; color: #ffb066; font-family: inherit;
  font-size: .8rem; font-weight: 700; cursor: pointer; text-align: left;
  transition: background .15s, border-color .15s;
}
.swn-geo-btn svg { flex-shrink: 0; }
.swn-geo-btn:hover { background: rgba(255,107,0,.24); border-color: rgba(255,107,0,.5); color: #ffc285; }
.swn-geo-btn.is-loading { opacity: .7; cursor: progress; }
.swn-geo-out { margin-bottom: 10px; }
.swn-geo-chip {
  width: 100%;
  background: linear-gradient(135deg, rgba(255,107,0,.2), rgba(255,140,26,.08)) !important;
  border: 1px solid rgba(255,107,0,.4);
  color: var(--text) !important;
}
.swn-geo-chip b { font-weight: 800; }
.swn-geo-chip small { margin-left: auto; color: var(--ink-55); font-weight: 600; flex-shrink: 0; }
.swn-geo-chip:hover { transform: none; background: rgba(255,107,0,.28) !important; }

/* ── Notification bell (visual restyle, IDs kept for notifications.js) ── */
.swn-notif-shell {
  position: relative;
}
/* Override existing sw-notif-btn */
#swNotifBtn.sw-notif-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--ink-09);
  background: var(--ink-04);
  color: var(--ink-5);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  position: relative;
  flex-shrink: 0;
  padding: 0;
}
#swNotifBtn.sw-notif-btn:hover,
#swNotifBtn.sw-notif-btn[aria-expanded="true"] {
  background: var(--ink-09);
  color: var(--text);
  border-color: var(--ink-16);
}
/* Override badge */
#swNotifBadge.sw-notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF6B00, #FF6B00);
  color: var(--text);
  font-size: .54rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg-2);
  line-height: 1;
}
/* Override dropdown (notifications.js uses .open class) */
#swNotifDropdown.sw-notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  background: var(--bg-2);
  border: 1px solid var(--ink-07);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.65), 0 2px 8px rgba(0,0,0,.3);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(.97);
  transform-origin: top right;
  transition: opacity .18s, transform .18s;
}
#swNotifDropdown.sw-notif-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: none;
}
.sw-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1rem .65rem;
  border-bottom: 1px solid var(--ink-05);
  font-size: .73rem;
  font-weight: 700;
  color: var(--ink-7);
  letter-spacing: -.01em;
}
.sw-notif-mark-all {
  font-size: .64rem;
  font-weight: 600;
  color: #FF6B00;
  background: none;
  border: none;
  cursor: pointer;
  padding: .22rem .45rem;
  border-radius: 5px;
  transition: background .13s;
  font-family: inherit;
}
.sw-notif-mark-all:hover { background: rgba(255,107,0,.1); color: #FF8C1A; }

/* ── User dropdown ── */
.swn-user { position: relative; }
.swn-user-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .28rem .5rem .28rem .28rem;
  border-radius: 10px;
  border: 1px solid var(--ink-08);
  background: var(--ink-04);
  cursor: pointer;
  transition: background .15s, border-color .15s;
  outline: none;
}
.swn-user-btn:hover { background: var(--ink-08); border-color: var(--ink-14); }
.swn-avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #FF6B00, #FF6B00);
  display: grid;
  place-items: center;
  font-size: .64rem;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
  letter-spacing: -.02em;
  overflow: hidden;
}
.swn-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swn-user-name {
  font-size: .76rem;
  font-weight: 600;
  color: var(--ink-8);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.swn-chevron {
  color: var(--ink-3);
  transition: transform .2s;
  flex-shrink: 0;
}
.swn-user-btn[aria-expanded="true"] .swn-chevron { transform: rotate(180deg); }
.swn-user-drop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: var(--bg-2);
  border: 1px solid var(--ink-07);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.65), 0 2px 8px rgba(0,0,0,.3);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(.97);
  transform-origin: top right;
  transition: opacity .18s, transform .18s;
  z-index: 10;
}
.swn-user-drop.is-open { opacity: 1; pointer-events: auto; transform: none; }
.swn-ud-head {
  padding: .85rem 1rem .72rem;
  border-bottom: 1px solid var(--ink-05);
}
.swn-ud-head-inner { display: flex; align-items: center; gap: .65rem; }
.swn-ud-avatar {
  width: 36px; height: 36px; min-width: 36px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, #FF6B00, #FF6B00);
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800; color: var(--text);
  overflow: hidden; letter-spacing: -.02em;
}
.swn-ud-head-text { flex: 1; min-width: 0; }
.swn-ud-name {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: .15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.swn-ud-email {
  font-size: .66rem;
  color: var(--ink-28);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.swn-ud-items { padding: .35rem 0; }
.swn-dd-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .58rem 1rem;
  font-size: .77rem;
  font-weight: 500;
  color: var(--ink-58);
  text-decoration: none;
  transition: background .12s, color .12s;
  cursor: pointer;
  width: 100%;
  border: none;
  background: none;
  font-family: inherit;
  text-align: left;
}
.swn-dd-item:hover { background: var(--ink-05); color: var(--text); }
.swn-dd-item svg { flex-shrink: 0; opacity: .55; transition: opacity .12s; }
.swn-dd-item:hover svg { opacity: 1; }
.swn-dd-sep { height: 1px; background: var(--ink-05); margin: .3rem 0; }
.swn-dd-item--danger { color: rgba(248,113,113,.65); }
.swn-dd-item--danger:hover { background: rgba(248,113,113,.06); color: #fca5a5; }

/* ── Hamburger — mobile ── */
.swn-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--ink-1);
  background: var(--ink-04);
  color: var(--ink-65);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
  margin-left: auto;
}
.swn-hamburger:hover { background: var(--ink-09); color: var(--text); }

/* ── Mobile overlay (mobnav.js uses #mob-nav + .open) ── */
#mob-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 1.25rem 1.5rem 2rem;
}
#mob-nav.open { display: flex; }
.swn-mob-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.swn-mob-close {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--ink-1);
  background: var(--ink-05);
  color: var(--ink-65);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background .13s, color .13s;
}
.swn-mob-close:hover { background: var(--ink-1); color: var(--text); }
.swn-mob-links { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.swn-mob-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1rem;
  border-radius: 11px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-6);
  text-decoration: none;
  transition: background .13s, color .13s;
  cursor: pointer;
  width: 100%;
  border: none;
  background: none;
  font-family: inherit;
  text-align: left;
}
.swn-mob-link:hover { background: var(--ink-06); color: var(--text); }
.swn-mob-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink-05);
  display: grid;
  place-items: center;
  font-size: .9rem;
  flex-shrink: 0;
}
.swn-mob-sep { height: 1px; background: var(--ink-05); margin: .5rem 0; }
.swn-mob-foot {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--ink-06);
}
.swn-mob-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #FF6B00, #FF6B00);
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255,107,0,.32);
}
.swn-mob-login {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .78rem;
  border-radius: 12px;
  border: 1px solid var(--ink-1);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-58);
  text-decoration: none;
  transition: background .13s, color .13s;
}
.swn-mob-login:hover { background: var(--ink-05); color: var(--text); }

@media (max-width: 768px) {
  .swn-links, .swn-actions { display: none; }
  .swn-hamburger { display: flex; }
  .swn-inner { height: 56px; }
}

.swn-mob-link--danger { color: rgba(248,113,113,.75); }
.swn-mob-ico--danger  { background: rgba(248,113,113,.07); }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.swn-ann {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  background: linear-gradient(90deg, #FF6B00 0%, #FF6B00 100%);
  color: var(--text);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .01em;
  position: relative;
  z-index: 1000;
}
.swn-ann[hidden] { display: none; }
.swn-ann-text { text-align: center; flex: 1; }
.swn-ann-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.swn-ann-link:hover { opacity: .85; }
.swn-ann-close {
  background: transparent;
  border: none;
  color: var(--ink-8);
  cursor: pointer;
  padding: 2px 6px;
  font-size: .85rem;
  line-height: 1;
  flex-shrink: 0;
}
.swn-ann-close:hover { color: var(--text); }

/* ============================================================
   PAGE PROGRESS BAR
   ============================================================ */
#swn-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #FF6B00, #FF6B00);
  z-index: 9999;
  transition: width .2s ease, opacity .3s ease;
  pointer-events: none;
  opacity: 0;
}
#swn-progress.is-loading { opacity: 1; }

/* ============================================================
   NEW BADGE
   ============================================================ */
.swn-badge-new {
  display: inline-block;
  background: linear-gradient(90deg, #FF6B00, #FF6B00);
  color: var(--text);
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 1px 5px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 5px;
  text-transform: uppercase;
}

/* ============================================================
   LIVE AVAILABILITY PILL
   ============================================================ */
.swn-avail {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  color: var(--ink-65);
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid var(--ink-1);
  background: var(--ink-04);
  white-space: nowrap;
}
.swn-avail.is-loaded { display: flex; }
.swn-avail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.5);
  animation: swn-pulse 1.8s ease-out infinite;
  flex-shrink: 0;
}
@keyframes swn-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.55); }
  70%  { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
@media (max-width: 768px) {
  .swn-avail { display: none !important; }
}

/* ============================================================
   NAVBAR CENTER COLUMN
   ============================================================ */

/* Navbar inner */
.swn-inner {
  transition: height .3s cubic-bezier(.4,0,.2,1);
}

/* Logo name */
.swn-logo-name {
  transition: opacity .22s ease, max-width .25s ease, margin .25s ease;
}

/* Center column — holds the nav links */
.swn-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-width: 0;
}

/* Nav links */
.swn-links {
  transition: opacity .22s cubic-bezier(.4,0,.2,1), transform .22s cubic-bezier(.4,0,.2,1);
}

/* On mobile: center column hidden, hamburger takes over */
@media (max-width: 768px) {
  .swn-center { display: none; }
}





/* ════════════════════════════════════════════════════════════════════
   Swaygo — Modern footer  (global; overrides old inline footer)
   Top CTA band → brand + socials → link columns → bottom status bar.
   ════════════════════════════════════════════════════════════════════ */
.sw-footer {
  position: relative;
  margin-top: 4rem;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,107,0,.07), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg-2));
  border-top: 1px solid var(--ink-07);
  overflow: hidden;
}

/* ── Top CTA band ──────────────────────────────────────────────────── */
.sw-foot-cta {
  max-width: 1180px; margin: 0 auto; padding: 2.5rem 1.5rem;
  border-bottom: 1px solid var(--ink-06);
}
.sw-foot-cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 2rem 2.25rem; border-radius: 24px;
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(255,107,0,.16), transparent 55%),
    linear-gradient(135deg, var(--surface), var(--surface));
  border: 1px solid var(--ink-09);
  box-shadow: 0 30px 70px -42px rgba(0,0,0,.95), inset 0 1px 0 var(--ink-05);
}
.sw-foot-cta-text h2 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 900; color: var(--text); letter-spacing: -.03em; line-height: 1.1; }
.sw-foot-cta-text p { font-size: .9rem; color: var(--ink-5); margin-top: .35rem; }
.sw-foot-cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.sw-foot-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .85rem 1.6rem; border-radius: 999px; white-space: nowrap;
  font-size: .9rem; font-weight: 800; color: var(--text); text-decoration: none;
  background: linear-gradient(135deg, #FF6B00, #FF9F45);
  box-shadow: 0 12px 30px -10px rgba(255,107,0,.7);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.sw-foot-cta-btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 16px 38px -12px rgba(255,107,0,.8); }
.sw-foot-cta-btn svg { transition: transform .2s; }
.sw-foot-cta-btn:hover svg { transform: translateX(3px); }
.sw-foot-cta-ghost {
  display: inline-flex; align-items: center; padding: .85rem 1.4rem; border-radius: 999px; white-space: nowrap;
  font-size: .9rem; font-weight: 700; color: var(--ink-8); text-decoration: none;
  background: var(--ink-05); border: 1px solid var(--ink-14);
  transition: all .2s;
}
.sw-foot-cta-ghost:hover { color: var(--text); border-color: rgba(255,107,0,.4); background: rgba(255,107,0,.07); }

/* ── Main grid ─────────────────────────────────────────────────────── */
.sw-foot-main {
  max-width: 1180px; margin: 0 auto; padding: 3rem 1.5rem 2.5rem;
  display: grid; grid-template-columns: 1.4fr 2.6fr; gap: 3rem;
}
.sw-foot-logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-bottom: 1rem; }
.sw-foot-logo img { border-radius: 11px; }
.sw-foot-logo span { font-size: 1.25rem; font-weight: 900; color: var(--text); letter-spacing: -.02em; }
.sw-foot-tagline { font-size: .85rem; color: var(--ink-4); line-height: 1.7; max-width: 280px; margin-bottom: 1.5rem; }

.sw-foot-socials { display: flex; gap: .6rem; }
.sw-foot-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; color: var(--ink-6);
  background: var(--ink-05); border: 1px solid var(--ink-1);
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.sw-foot-social:hover { transform: translateY(-3px); color: var(--text); background: linear-gradient(135deg, #FF6B00, #FF9F45); border-color: transparent; box-shadow: 0 10px 24px -10px rgba(255,107,0,.7); }

.sw-foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; }
.sw-foot-head {
  font-size: .62rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 1.1rem;
}
.sw-foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.sw-foot-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .84rem; font-weight: 500; color: var(--ink-45);
  text-decoration: none; transition: color .18s, transform .18s; width: fit-content;
}
.sw-foot-link:hover { color: var(--text); transform: translateX(3px); }
.sw-foot-link--cta { color: rgba(255,159,69,.85); font-weight: 700; }
.sw-foot-link--cta:hover { color: #FF9F45; }
.sw-foot-badge {
  font-size: .54rem; font-weight: 900; letter-spacing: .06em; color: var(--text);
  background: linear-gradient(135deg, #FF6B00, #FF9F45); border-radius: 5px; padding: 1px 5px;
}

/* ── Bottom bar ────────────────────────────────────────────────────── */
.sw-foot-bottom { border-top: 1px solid var(--ink-06); }
.sw-foot-bottom-inner {
  max-width: 1180px; margin: 0 auto; padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
}
.sw-foot-copy { font-size: .76rem; color: var(--ink-3); }
.sw-foot-meta { display: flex; align-items: center; gap: .6rem; font-size: .76rem; color: var(--ink-35); flex-wrap: wrap; }
.sw-foot-sep { color: var(--ink-15); }
.sw-foot-status { display: inline-flex; align-items: center; gap: 6px; }
.sw-foot-dot { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.18); animation: sw-foot-pulse 2.4s ease-in-out infinite; }
@keyframes sw-foot-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .sw-foot-main { grid-template-columns: 1fr; gap: 2.25rem; }
  .sw-foot-cols { grid-template-columns: 1fr 1fr; }
  .sw-foot-cta-inner { flex-direction: column; align-items: flex-start; padding: 1.6rem; }
}
@media (max-width: 460px) {
  .sw-foot-cols { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
  .sw-foot-cta-actions { width: 100%; }
  .sw-foot-cta-btn, .sw-foot-cta-ghost { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .sw-foot-dot { animation: none; }
  .sw-foot-social, .sw-foot-link, .sw-foot-cta-btn { transition: none; }
}

/* ── Theme toggle button (navbar) ───────────────────────────────────────── */
.swn-theme {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  background: var(--ink-05); border: 1px solid var(--ink-1); color: var(--text);
  transition: background .15s, border-color .15s, color .15s;
}
.swn-theme:hover { background: var(--ink-08); border-color: rgba(255,107,0,.4); color: var(--accent); }
.swn-theme-i { display: none; }
.swn-theme-moon { display: block; }
:root[data-theme="dark"] .swn-theme-moon { display: none; }
:root[data-theme="dark"] .swn-theme-sun { display: block; }

/* ── Navbar background: theme-aware frosted glass (overrides the v2 dark gradient) ── */
.swn-wrap {
  background: rgba(var(--surface-rgb), .72) !important;
  background-image:
    linear-gradient(rgba(var(--surface-rgb), .72), rgba(var(--surface-rgb), .72)),
    linear-gradient(90deg, rgba(255,107,0,.10), rgba(255,140,26,.04) 40%, transparent 75%) !important;
  border-bottom: 1px solid var(--ink-08);
}
.swn-wrap.is-scrolled {
  background: rgba(var(--surface-rgb), .92) !important;
  background-image:
    linear-gradient(rgba(var(--surface-rgb), .92), rgba(var(--surface-rgb), .92)),
    linear-gradient(90deg, rgba(255,107,0,.12), rgba(255,140,26,.05) 45%, transparent 80%) !important;
}
