/* ==========================================================================
   Charles Braun Photography — Contact Card (mockup)
   Design tokens mirror charlesbraunphotography.com :root variables.
   ========================================================================== */

:root {
  --bg-primary: #0b0f19;
  --bg-card: #111827;
  --bg-card-hover: #1f2937;
  --text-main: #f5f8f9;
  --text-body: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #3b82f6;
  --accent-blue-hover: #60a5fa;
  --accent-blue-deep: #1d4ed8;
  --accent-blue-light: rgba(59, 130, 246, 0.16);
  --accent-blue-glow: rgba(59, 130, 246, 0.35);
  --accent-amber: #3b82f6;
  --accent-amber-hover: #60a5fa;
  --accent-amber-deep: #1d4ed8;
  --accent-amber-light: rgba(59, 130, 246, 0.16);
  --accent-nature: #10b981;
  --accent-nature-hover: #34d399;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.3s var(--ease);
  --font-heading: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --shell-w: 440px;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg.icon { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--accent-blue-hover); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Desktop backdrop (subtle ambient glow) ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 50% 10%, rgba(59, 130, 246, 0.18), transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(29, 78, 216, 0.10), transparent 55%),
    var(--bg-primary);
}

/* ---------- Card shell (Linktree layout) ---------- */
.shell {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  margin: 0 auto;
  background: var(--bg-primary);
  min-height: 100vh;
  padding: 24px 0 calc(96px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  box-sizing: border-box;
}
@media (min-width: 560px) {
  .shell {
    margin: 20px auto 40px; min-height: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 100px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.05);
    overflow: clip;
    padding: 28px 0 calc(96px + env(safe-area-inset-bottom));
  }
}

.icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  color: var(--text-body); transition: var(--transition); flex-shrink: 0;
}
.icon-btn:hover { background: var(--bg-card-hover); color: var(--text-main); transform: translateY(-1px); }
.icon-btn svg.icon { width: 16px; height: 16px; }

/* ---------- Identity (Linktree Profile Header) ---------- */
.identity {
  position: relative;
  padding: 4px 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
}
.avatar-wrap {
  position: relative;
  display: block;
  width: 90px;
  height: 90px;
  margin: 0 auto;
}
.avatar {
  width: 90px; height: 90px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(59, 130, 246, 0.28), transparent 55%),
    linear-gradient(145deg, #1f2937, #0f1522);
  border: 3px solid rgba(59, 130, 246, 0.45);
  box-shadow: 0 10px 28px rgba(0,0,0,.6), 0 0 24px rgba(59, 130, 246, 0.25);
  font-family: var(--font-heading); font-weight: 700; font-size: 26px; letter-spacing: .06em;
  color: #eff6ff;
}
.avatar--nature {
  background:
    radial-gradient(circle at 30% 25%, rgba(16,185,129,.25), transparent 55%),
    linear-gradient(145deg, #064e3b, #09171b);
  border-color: rgba(16,185,129,.45);
  box-shadow: 0 10px 28px rgba(0,0,0,.6), 0 0 20px rgba(16,185,129,.25);
  color: #a7f3d0;
}
.avatar-badge {
  position: absolute; bottom: 2px; right: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-blue); border: 2px solid var(--bg-primary);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.avatar-badge svg.icon { width: 13px; height: 13px; }
.avatar--nature ~ .avatar-badge { background: #10b981; }

.identity__name {
  margin-top: 12px;
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(20px, 5.5vw, 24px); line-height: 1.2; letter-spacing: .03em;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; max-width: 100%;
}
.verified-icon { width: 18px; height: 18px; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.4)); }
.identity__title { margin-top: 4px; font-size: clamp(12.5px, 3.4vw, 14px); font-weight: 600; color: var(--text-main); opacity: .94; padding: 0 6px; }
.identity__loc {
  margin-top: 5px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-muted);
}
.identity__loc svg.icon { width: 13px; height: 13px; }

.chips { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; padding: 0 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border-color);
  font-size: 11px; font-weight: 600; color: var(--text-body);
}
.chip svg.icon { width: 12px; height: 12px; color: var(--accent-blue-hover); }

/* ---------- Quick Communication Actions (3-Column) ---------- */
.quick {
  margin: 14px 14px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  box-sizing: border-box;
}
.quick__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 10px 4px 8px; border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)), var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 12px; font-weight: 600; color: var(--text-body);
  transition: var(--transition); cursor: pointer;
  min-width: 0; overflow: hidden; box-sizing: border-box;
}
.quick__btn span {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.quick__btn:hover {
  background: var(--bg-card-hover); color: var(--text-main);
  transform: translateY(-2px); border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}
.quick__btn svg.icon { width: 18px; height: 18px; color: var(--text-main); }

/* ---------- Social Media Strip (Linktree Social Icons Row) ---------- */
.socials-wrap { margin: 12px 14px 0; box-sizing: border-box; }
.socials {
  padding: 6px 12px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.025); border: 1px solid var(--border-color);
  box-sizing: border-box;
}
.social-item {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--border-color);
  color: var(--text-body); transition: var(--transition); flex-shrink: 0;
}
.social-item:hover {
  color: var(--accent-blue-hover); background: var(--bg-card-hover);
  border-color: rgba(59, 130, 246, 0.35); transform: translateY(-2px);
}
.social-item svg.icon { width: 17px; height: 17px; }

/* ---------- Linktree Category Switcher (Segmented Tab Bar) ---------- */
.filter-wrap { margin: 14px 14px 0; display: flex; justify-content: center; box-sizing: border-box; }
.filter-wrap .segmented {
  width: 100%;
  display: flex; gap: 3px; padding: 3px;
  background: rgba(17,24,39,.75); border: 1px solid var(--border-color);
  border-radius: 999px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
}
.filter-wrap .segmented button {
  flex: 1; text-align: center;
  padding: 7px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  transition: var(--transition); white-space: nowrap;
  min-width: 0; box-sizing: border-box;
}
.filter-wrap .segmented button span {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.filter-wrap .segmented button[aria-selected="true"] {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-deep));
  color: #fff; box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}
.filter-wrap .segmented button[data-card="nature"][aria-selected="true"] {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
@media (max-width: 360px) {
  .filter-wrap .segmented button { font-size: 11px; padding: 6px 4px; }
}

/* ---------- Core Linktree Stack (Priority Navigating to Links) ---------- */
.section--links { margin: 14px 14px 0; box-sizing: border-box; }
.links { display: grid; gap: 8px; width: 100%; box-sizing: border-box; }
.link {
  display: flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 9px 12px 9px 10px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)), var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-align: left; width: 100%; max-width: 100%; cursor: pointer;
  box-sizing: border-box; overflow: hidden;
}
.link:hover {
  background: var(--bg-card-hover);
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.45), 0 0 16px rgba(59, 130, 246, 0.15);
}
.link:active { transform: scale(0.988); }
.link__icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(255,255,255,.05); color: var(--text-main);
  border: 1px solid rgba(255,255,255,.06); transition: var(--transition);
}
.link__icon svg.icon { width: 18px; height: 18px; }
.link:hover .link__icon {
  background: rgba(59, 130, 246, 0.16); color: var(--accent-blue-hover);
  border-color: rgba(59, 130, 246, 0.35);
}
.link__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.link__label {
  display: block; font-size: 13.5px; font-weight: 700; color: var(--text-main);
  letter-spacing: .01em; line-height: 1.25;
  word-break: break-word;
}
.link__sub {
  display: block; font-size: 11px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3;
}
.link__badge {
  font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: var(--text-body); flex-shrink: 0;
  white-space: nowrap;
}
.link__badge--blue,
.link__badge--amber {
  background: rgba(59, 130, 246, 0.18); color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.32);
}
.link__badge--square {
  background: rgba(34,197,94,.15); color: #86efac;
  border: 1px solid rgba(34,197,94,.3);
}
.link__badge--venmo {
  background: rgba(0,140,255,.15); color: #7dd3fc;
  border: 1px solid rgba(0,140,255,.3);
}
.link__badge--google {
  background: rgba(66,133,244,.15); color: #93c5fd;
  border: 1px solid rgba(66,133,244,.3);
}
.link__badge--star {
  background: rgba(59, 130, 246, 0.18); color: #93c5fd;
}
.link__arrow {
  color: var(--text-muted); transition: var(--transition);
  width: 14px; height: 14px; flex-shrink: 0;
}
.link:hover .link__arrow { color: var(--text-main); transform: translate(2px, -2px); }

/* Featured Link (Hero official link) */
.link--featured {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(29, 78, 216, 0.08) 60%, var(--bg-card));
  border-color: rgba(59, 130, 246, 0.38);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.22);
}
.link--featured .link__icon {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-deep));
  color: #fff; border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.35);
}
.link--featured .link__sub { color: #93c5fd; opacity: .95; }

/* Nature Link styling */
.link--nature {
  border-color: rgba(16,185,129,.24);
}
.link--nature .link__icon {
  background: rgba(16,185,129,.12); color: #6ee7b7;
  border-color: rgba(16,185,129,.25);
}
.link--nature:hover {
  border-color: rgba(16,185,129,.5);
}
.link--nature:hover .link__icon {
  background: rgba(16,185,129,.2); color: #a7f3d0;
}

/* Clean visual separation divider in Linktree */
.links-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 2px;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  width: 100%;
  box-sizing: border-box;
}
.links-divider::before,
.links-divider::after {
  content: "";
  flex: 1;
  min-width: 8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
}
.links-divider span {
  padding: 0 4px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 85%;
}

/* Subtle branded styles for social channels */
.link--instagram:hover { border-color: rgba(225,48,108,.4); }
.link--instagram:hover .link__icon { background: rgba(225,48,108,.15); color: #f43f5e; border-color: rgba(225,48,108,.3); }

.link--facebook:hover { border-color: rgba(24,119,242,.4); }
.link--facebook:hover .link__icon { background: rgba(24,119,242,.15); color: #38bdf8; border-color: rgba(24,119,242,.3); }

.link--youtube:hover { border-color: rgba(255,0,0,.4); }
.link--youtube:hover .link__icon { background: rgba(255,0,0,.15); color: #ef4444; border-color: rgba(255,0,0,.3); }

.link--google:hover { border-color: rgba(66,133,244,.45); }
.link--google:hover .link__icon { background: rgba(66,133,244,.15); color: #60a5fa; border-color: rgba(66,133,244,.3); }

.link--square:hover { border-color: rgba(34,197,94,.45); }
.link--square:hover .link__icon { background: rgba(34,197,94,.15); color: #4ade80; border-color: rgba(34,197,94,.3); }

.link--venmo:hover { border-color: rgba(0,140,255,.45); }
.link--venmo:hover .link__icon { background: rgba(0,140,255,.15); color: #38bdf8; border-color: rgba(0,140,255,.3); }

/* ---------- Footer ---------- */
.foot { margin: 24px 14px 0; padding-bottom: 24px; text-align: center; font-size: 12px; color: var(--text-muted); box-sizing: border-box; }
.foot a { color: var(--text-body); }
.foot__mark { margin-top: 4px; opacity: .7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 16px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 700; letter-spacing: .01em; line-height: 1.2;
  transition: var(--transition); white-space: nowrap; box-sizing: border-box;
}
.btn svg.icon { width: 17px; height: 17px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-deep));
  color: #fff; border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 4px 18px rgba(0,0,0,.5), 0 0 18px rgba(59, 130, 246, 0.35);
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.55), 0 0 28px rgba(96, 165, 250, 0.5); }
.btn-secondary {
  background: rgba(11,15,25,.85); color: var(--text-main);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-secondary:hover { background: var(--bg-card-hover); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-square { width: 46px; height: 46px; min-height: 46px; padding: 0; flex-shrink: 0; }

/* ---------- Persistent Bottom Action Bar ---------- */
.dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  z-index: 40;
  display: flex;
  gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 15, 25, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.65);
  box-sizing: border-box;
}
@media (min-width: 560px) {
  .dock {
    border-radius: 16px 16px 0 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
}
.dock .btn-primary { flex: 1; min-height: 46px; font-size: 14px; }

/* ---------- Bottom sheets ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  visibility: hidden; pointer-events: none;
}
.sheet.is-open { visibility: visible; pointer-events: auto; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(3,6,12,.66); opacity: 0; transition: opacity .35s var(--ease); backdrop-filter: blur(3px); }
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet__panel {
  position: relative; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto;
  box-sizing: border-box;
  background: linear-gradient(180deg, #131b2c, var(--bg-primary) 40%);
  border: 1px solid var(--border-strong); border-bottom: 0;
  border-radius: 24px 24px 0 0;
  padding: 10px 16px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .45s var(--ease);
  box-shadow: 0 -20px 60px rgba(0,0,0,.6);
}
.sheet.is-open .sheet__panel { transform: none; }
@media (min-width: 560px) {
  .sheet { align-items: center; }
  .sheet__panel { border-radius: 24px; border-bottom: 1px solid var(--border-strong); transform: translateY(30px) scale(.98); opacity: 0; transition: transform .4s var(--ease), opacity .3s var(--ease); }
  .sheet.is-open .sheet__panel { transform: none; opacity: 1; }
}
.sheet__grab { width: 40px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); margin: 0 auto 14px; }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sheet__title { font-family: var(--font-heading); font-size: 21px; font-weight: 700; letter-spacing: .04em; line-height: 1.25; }
.sheet__sub { margin-top: 4px; font-size: 13.5px; color: var(--text-body); }
.sheet__close { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); flex-shrink: 0; }
.sheet__close:hover { background: rgba(255,255,255,.12); }

/* Dedicated Portfolio Modal Grid */
.portfolio-tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 4px; }
.portfolio-tab {
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-body);
  transition: var(--transition); white-space: nowrap;
}
.portfolio-tab[aria-pressed="true"] {
  background: var(--accent-blue-light); border-color: rgba(59, 130, 246, 0.45); color: #93c5fd;
}
.portfolio-tab[data-filter="nature"][aria-pressed="true"] {
  background: rgba(16, 185, 129, 0.16); border-color: rgba(16, 185, 129, 0.4); color: #6ee7b7;
}
.portfolio-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.portfolio-card {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border-color); cursor: pointer;
}
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.portfolio-card:hover img { transform: scale(1.06); }
.portfolio-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px;
  background: linear-gradient(180deg, transparent, rgba(8,11,18,.9));
  font-size: 11px; font-weight: 600; color: #fff; text-align: left;
}

/* VCF Info Modal */
.vcf-info-box {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 14px; margin-bottom: 14px; font-size: 13px; color: var(--text-body);
}
.vcf-info-box ul { list-style: none; margin-top: 8px; display: grid; gap: 6px; }
.vcf-info-box li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.vcf-info-box li svg.icon { width: 14px; height: 14px; color: var(--accent-blue-hover); }
.vcf-code-preview {
  background: #080b12; border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 12px; font-family: monospace; font-size: 11.5px; color: #93c5fd; overflow-x: auto;
  line-height: 1.5; max-height: 220px;
}

/* Share sheet */
.qr-card {
  margin: 4px auto 0; width: 100%; max-width: 280px; padding: 18px 18px 14px; border-radius: var(--radius-lg);
  background: #f5f8f9; color: var(--bg-primary); text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.qr-card canvas, .qr-card img, .qr-card svg { width: 100%; height: auto; display: block; }
.qr-card__name { margin-top: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 16px; letter-spacing: .06em; }
.qr-card__url { font-size: 12px; color: #475569; word-break: break-all; }
.share-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.share-grid button {
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 4px;
  border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border-color);
  font-size: 12px; font-weight: 600; color: var(--text-body); transition: var(--transition);
}
.share-grid button:hover { background: var(--bg-card-hover); color: var(--text-main); }
.share-grid svg.icon { width: 22px; height: 22px; color: var(--text-main); }
.hint { margin-top: 14px; font-size: 12px; color: var(--text-muted); text-align: center; }

/* Forms */
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: 13px; font-weight: 600; color: var(--text-body); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--text-main);
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  transition: var(--transition);
}
.field textarea { min-height: 84px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(59,130,246,.25); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 8px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--bg-card); border: 1px solid var(--border-strong); color: var(--text-body);
  transition: var(--transition);
}
.pill[aria-pressed="true"] { background: var(--accent-blue-light); border-color: rgba(59, 130, 246, 0.55); color: #93c5fd; }
.tag-note {
  display: none; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-md);
  background: rgba(59,130,246,.1); color: #bfdbfe; font-size: 13px;
}
.tag-note.is-on { display: flex; }
.tag-note svg.icon { width: 16px; height: 16px; }
.fine { font-size: 12px; color: var(--text-muted); text-align: center; }

/* Booking sheet */
.days { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 64px; padding: 10px 0; border-radius: var(--radius-md); text-align: center; scroll-snap-align: start;
  background: var(--bg-card); border: 1px solid var(--border-strong); transition: var(--transition);
}
.day[aria-pressed="true"] { background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-deep)); border-color: transparent; color: #fff; }
.day__dow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.day__num { display: block; font-size: 20px; font-weight: 700; line-height: 1.2; }
.day__tag { display: block; font-size: 12px; opacity: .7; }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.time {
  padding: 11px 4px; border-radius: var(--radius-md); font-size: 14px; font-weight: 700;
  background: var(--bg-card); border: 1px solid var(--border-strong); transition: var(--transition);
}
.time:hover:not(:disabled) { border-color: rgba(59, 130, 246, 0.55); }
.time[aria-pressed="true"] { background: var(--accent-blue-light); border-color: rgba(59, 130, 246, 0.7); color: #93c5fd; }
.time:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.time.is-golden::after { content: " ☀"; color: #fbbf24; }
.book-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-body); margin: 4px 0 2px; }
.book-meta svg.icon { width: 16px; height: 16px; color: #fbbf24; }
.step-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin: 18px 0 10px; }

/* Success state */
.success { text-align: center; padding: 10px 0 6px; }
.success__badge {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(16,185,129,.14); color: #34d399;
  animation: pop .5s var(--ease);
}
.success__badge svg.icon { width: 30px; height: 30px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.success h3 { font-family: var(--font-heading); font-size: 21px; letter-spacing: .04em; }
.success p { margin: 8px auto 0; font-size: 14px; color: var(--text-body); max-width: 34ch; }
.success .btn { margin-top: 18px; }

/* Share Mode (full-screen QR) */
.share-mode {
  position: fixed; inset: 0; z-index: 60; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding: 24px; background: radial-gradient(ellipse at top, #18233a, var(--bg-primary) 65%);
  animation: fade .3s var(--ease);
}
.share-mode.is-open { display: flex; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.share-mode .qr-card { max-width: 340px; padding: 24px 24px 18px; }
.share-mode__tip { font-size: 13px; color: var(--text-body); display: flex; align-items: center; gap: 8px; }
.share-mode__close { position: absolute; top: 18px; right: 18px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 70; display: none; place-items: center; background: rgba(3,6,12,.94); padding: 20px; }
.lightbox.is-open { display: grid; animation: fade .25s var(--ease); }
.lightbox img { max-height: 82vh; border-radius: var(--radius-md); box-shadow: var(--shadow-hover); }
.lightbox figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--text-body); }
.lightbox .icon-btn { position: absolute; top: 18px; right: 18px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 80; transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 999px;
  background: #f5f8f9; color: var(--bg-primary); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-hover); opacity: 0; pointer-events: none; transition: all .35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast svg.icon { width: 18px; height: 18px; color: #059669; stroke-width: 2.4; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
