:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-size-base: 1rem;
  --radius-xs: 3px; --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px; --radius-xl: 12px;
  --radius-pill: 999px; --radius: var(--radius-md); --btn-radius: 3px; --social-radius: var(--radius-sm);
  --bg:#fdf9f3; --hero:#c9b8e8; --card:#fff; --text:#2f2440; --muted:#6b5f80;
  --purple:#7c5bd4; --purple-dark:#6849bd; --accent-text:#fff;
  --soft-purple:#f0e6fa; --soft-coral:#fce8e2; --soft-mint:#e2f2ec; --soft-butter:#fdf3d9;
  --nav-bg:#fff; --nav-active:#7c5bd4;
  --chip-bg:rgba(255,255,255,.75); --icon-bg:rgba(255,255,255,.72);
  --hero-sub-text:#3d3254;
  --donate-bg:#fce8e2; --donate-text:#7a3a2a; --donate-amount-bg:#fff;
  --btn-secondary-bg:#2f2440; --btn-secondary-text:#fff;
  --donate-selected-bg:#e8836b; --donate-selected-text:#fff;
  --footer-rule:rgba(47,36,64,.12);
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 2px 8px -4px rgba(0,0,0,.12);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; font-family: var(--font-sans); font-size: var(--font-size-base); -webkit-tap-highlight-color: transparent; }
html, body { scrollbar-width: none; -ms-overflow-style: none; }
::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
body { background: var(--bg); color: var(--text); height: 100dvh; overflow: hidden; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }

.app-shell { display: flex; flex-direction: column; height: 100dvh; width: 100%; position: relative; overflow: hidden; }
#main-scroll { flex: 1; position: relative; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding-bottom: 100px; }
.content { padding: 30px 16px 10px; max-width: 620px; margin: 0 auto; }

.btn { border: 0; padding: 15px 20px; border-radius: var(--btn-radius); font-weight: 800; font-size: .94rem; cursor: pointer; width: 100%; font-family: inherit; }
.btn-primary { background: var(--purple); color: var(--accent-text); }
.btn-secondary { background: var(--btn-secondary-bg); color: var(--btn-secondary-text); }
.btn-ghost { background: transparent; color: var(--text); font-weight: 700; text-decoration: underline; padding: 10px; border-radius: 0; }

.section-title { font-size: 1.24rem; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.section-sub { font-size: .88rem; color: var(--muted); line-height: 1.55; margin-bottom: 18px; }

.pillar-tag, .goal-label, .badge { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; background: var(--chip-bg); color: var(--text); padding: 6px 12px; border-radius: var(--radius-pill); }

.hero { background: var(--hero); padding: 36px 22px 46px; text-align: center; border-bottom-left-radius: var(--radius-xl); border-bottom-right-radius: var(--radius-xl); }
.hero-inner { position: relative; z-index: 2; }
.hero-logo-wrap { width: 140px; height: 140px; margin: 0 auto 22px; border: 2px dashed rgba(47,36,64,.2); border-radius: 14px; }
.hero-title { font-size: calc(var(--font-size-base) * 1.6); font-weight: 800; line-height: 1.22; margin-bottom: 12px; color: var(--text); }
.hero-title span { color: var(--purple); display: block; margin-top: 6px; }
.hero-sub { max-width: 400px; margin: 0 auto 24px; color: var(--hero-sub-text); font-size: .96rem; line-height: 1.55; font-weight: 500; }
.hero-btns { max-width: 360px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }

.welcome { background: var(--soft-purple); border-radius: var(--radius); padding: 22px 20px; margin-bottom: 28px; }
.welcome .hello { font-size: 1.6rem; display: inline-block; margin-bottom: 8px; }
.welcome h3 { font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; }
.welcome p { font-size: .92rem; color: var(--muted); line-height: 1.65; margin-bottom: 10px; }
.welcome strong { color: var(--purple); font-weight: 800; }

.pillars-home { margin-bottom: 26px; }
.pillar-card-home { display: block; width: 100%; background: none; border: none; padding: 0; margin-bottom: 28px; cursor: pointer; text-align: left; font-family: inherit; }
.pillar-square { position: relative; width: 100%; aspect-ratio: 1/1; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 30px 24px; }
.pillar-square .pillar-tag { position: absolute; top: 20px; left: 20px; }
.pillar-square .pillar-icon { width: 88px; height: 88px; border-radius: var(--radius-lg); background: var(--icon-bg); display: grid; place-items: center; }
.pillar-square .pillar-icon svg { width: 44px; height: 44px; }
.pillar-square h3 { font-size: 1.55rem; font-weight: 800; color: var(--text); text-align: center; }
.pillar-desc { margin-top: 14px; font-size: .93rem; color: var(--muted); line-height: 1.6; }
.pillar-desc .read-more { display: inline-block; margin-top: 8px; color: var(--purple); font-weight: 800; font-size: .85rem; }
.pillar-card-home.t1 .pillar-square { background: var(--soft-purple); }
.pillar-card-home.t1 .pillar-icon svg { fill: var(--purple); }
.pillar-card-home.t2 .pillar-square { background: var(--soft-mint); }
.pillar-card-home.t2 .pillar-icon svg { fill: #6fbfa0; }
.pillar-card-home.t3 .pillar-square { background: var(--soft-coral); }
.pillar-card-home.t3 .pillar-icon svg { fill: #e8836b; }
.pillar-card-home.t4 .pillar-square { background: var(--soft-butter); }
.pillar-card-home.t4 .pillar-icon svg { fill: #c99b2f; }

.big-goal { background: var(--soft-butter); border-radius: var(--radius); padding: 22px 20px; margin-bottom: 24px; cursor: pointer; }
.big-goal .goal-label { margin-bottom: 12px; }
.big-goal h3 { font-weight: 800; font-size: 1.15rem; margin-bottom: 8px; }
.big-goal p { font-size: .88rem; color: var(--muted); line-height: 1.6; }

.closing { text-align: center; font-size: .86rem; color: var(--muted); line-height: 1.65; margin-bottom: 36px; padding: 16px 20px; background: var(--soft-mint); border-radius: var(--radius); font-weight: 500; }
.closing strong { color: var(--text); }

.diseases { margin-bottom: 40px; }
.disease-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.disease-chip { background: var(--card); border: 1px solid transparent; border-radius: var(--radius-sm); padding: 12px 14px; font-size: .82rem; font-weight: 700; color: var(--text); text-align: left; cursor: pointer; font-family: inherit; }
.disease-chip:hover { background: var(--soft-purple); border-color: var(--purple); }
.disease-chip.disease-hidden { display: none; }
.more-illnesses-btn { display: block; margin: 16px auto 0; background: var(--soft-purple); border: none; color: var(--text); font-weight: 800; font-size: .86rem; padding: 12px 22px; border-radius: var(--btn-radius); cursor: pointer; font-family: inherit; }

.home-section { margin-bottom: 40px; }
.contact-card { background: var(--card); border-radius: var(--radius); padding: 22px 20px; }
.contact-card p.intro { font-size: .9rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.home-input, .home-textarea { width: 100%; padding: 14px; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--soft-purple); color: var(--text); font-family: inherit; font-size: .95rem; outline: none; }
.home-textarea { resize: vertical; min-height: 100px; }
.home-input, .home-textarea { margin-bottom: 10px; }

.social-section { margin-bottom: 40px; }
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.social-tile { aspect-ratio: 1/1; border: none; border-radius: var(--social-radius); cursor: pointer; display: grid; place-items: center; padding: 0; }
.social-tile svg { width: 52%; height: 52%; fill: #fff; }
.social-facebook { background: #1877f2; }
.social-instagram { background: #e1306c; }
.social-youtube { background: #ff0000; }
.social-tiktok { background: #000; }
.social-x { background: #000; }
.social-linkedin { background: #0a66c2; }
.social-handle { text-align: center; margin-top: 14px; font-size: .78rem; color: var(--muted); font-weight: 600; }

.best-way-card { background: var(--soft-mint); border-radius: var(--radius); padding: 24px 20px; margin-bottom: 22px; }
.best-way-title { font-size: 1.08rem; font-weight: 800; margin-bottom: 12px; }
.best-way-intro { font-size: .9rem; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.best-way-points { list-style: none; padding: 0; margin: 0 0 18px; }
.best-way-points li { font-size: .87rem; line-height: 1.5; padding-left: 24px; position: relative; margin-bottom: 9px; }
.best-way-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #6fbfa0; font-weight: 800; }

.donate-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 18px; color: var(--muted); font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.donate-divider::before, .donate-divider::after { content: ""; flex: 1; height: 1px; background: var(--footer-rule); }
.donate-card { background: var(--donate-bg); border-radius: var(--radius); padding: 24px 20px; text-align: center; }
.donate-card .kind-note { background: var(--card); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 20px; text-align: left; }
.donate-card .kind-note p { font-size: .9rem; color: var(--donate-text); line-height: 1.6; margin-bottom: 8px; }
.donate-card .kind-note strong { color: var(--text); font-weight: 800; }
.donate-card .give-if { font-size: .88rem; color: var(--donate-text); font-weight: 700; margin-bottom: 14px; }
.donate-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.donate-amount { background: var(--donate-amount-bg); border: 2px solid transparent; border-radius: var(--radius-sm); padding: 16px 8px; font-weight: 800; font-size: 1rem; cursor: pointer; color: var(--text); font-family: inherit; }
.donate-amount.selected { background: var(--donate-selected-bg); color: var(--donate-selected-text); border-color: var(--donate-selected-bg); }

.footer { margin-top: 44px; padding: 26px 4px 20px; border-top: 1px solid var(--footer-rule); text-align: center; }
.footer-brand { font-size: .95rem; font-weight: 800; color: var(--text); }
.footer-brand span { display: block; font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 4px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 22px 0 0; }
.footer-link { background: none; border: none; padding: 0; color: var(--muted); font-size: .82rem; cursor: pointer; font-family: inherit; }
.copyright { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--footer-rule); font-size: .74rem; line-height: 1.6; color: var(--muted); }

.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; height: calc(72px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--nav-bg); color: var(--text); display: flex; justify-content: space-around; align-items: center; z-index: 1900; box-shadow: 0 -2px 12px rgba(0,0,0,.08); }
.nav-btn { background: none; border: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; flex: 1; height: 100%; color: var(--muted); font-size: .62rem; font-weight: 800; cursor: pointer; font-family: inherit; position: relative; }
.nav-btn svg { width: 22px; height: 22px; fill: currentColor; }
.nav-btn.active { color: var(--nav-active); }
.nav-badge { position: absolute; top: 6px; right: calc(50% - 14px); background: #e8836b; color: #fff; font-size: .56rem; font-weight: 800; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--radius-pill); display: grid; place-items: center; }

#globalPPBtn { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; z-index: 3500; width: 52px; height: 52px; border-radius: 50%; background: rgba(124,91,212,.95); color: #fff; border: none; cursor: pointer; display: none; place-items: center; font-family: inherit; padding: 0; box-shadow: 0 4px 16px rgba(0,0,0,.28); transition: transform .15s ease, background-color .15s ease; }
#globalPPBtn.visible { display: grid; }
#globalPPBtn:hover { transform: scale(1.06); background: rgba(104,73,189,1); }
#globalPPBtn svg { width: 22px; height: 22px; fill: currentColor; display: block; }

#menu-overlay { position: fixed; inset: 0; background: var(--bg); z-index: 1850; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
#menu-overlay.active { opacity: 1; pointer-events: auto; }
.menu-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; }
.menu-header h2 { font-size: 1.3rem; font-weight: 800; }
.menu-close { background: var(--soft-purple); border: none; width: 42px; height: 42px; border-radius: var(--radius-sm); font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; font-family: inherit; }
.menu-body { flex: 1; overflow-y: auto; padding: 8px 22px 100px; }

.profile-card { background: var(--card); border-radius: var(--radius); padding: 22px 20px; margin-bottom: 26px; max-width: 500px; margin-left: auto; margin-right: auto; text-align: center; }
.profile-section-title { font-size: .72rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--purple); margin-bottom: 14px; }
.profile-avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--soft-purple); display: grid; place-items: center; margin: 0 auto 14px; font-weight: 800; font-size: 1.6rem; color: var(--purple); overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-avatar svg { display: block; }
.profile-rows { display: flex; flex-direction: column; gap: 10px; }
.profile-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: .95rem; }
.profile-row .value { font-weight: 800; color: var(--text); }
.profile-row .label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.badge.private { background: var(--soft-coral); color: var(--text); }
.badge.public { background: var(--soft-mint); color: var(--text); }
.profile-country { margin-top: 4px; font-size: .85rem; color: var(--muted); font-weight: 700; }
.menu-section-label { font-size: .72rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin: 22px auto 12px; max-width: 500px; padding-left: 4px; }
.square-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 500px; margin: 0 auto; }
.square-tile { position: relative; background: var(--card); border: none; border-radius: var(--radius); overflow: hidden; cursor: pointer; text-align: center; aspect-ratio: 1/1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: inherit; padding: 16px; gap: 12px; }
.square-tile .tile-icon { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--icon-bg); display: grid; place-items: center; }
.square-tile .tile-icon svg { width: 30px; height: 30px; }
.square-tile .tile-title { font-weight: 800; font-size: .9rem; color: var(--text); line-height: 1.25; padding: 0 4px; }
.square-tile.t1, .square-tile.e1, .square-tile.x1 { background: var(--soft-purple); }
.square-tile.t1 .tile-icon svg, .square-tile.e1 .tile-icon svg, .square-tile.x1 .tile-icon svg { fill: var(--purple); }
.square-tile.t2, .square-tile.e2, .square-tile.x2 { background: var(--soft-mint); }
.square-tile.t2 .tile-icon svg, .square-tile.e2 .tile-icon svg, .square-tile.x2 .tile-icon svg { fill: #6fbfa0; }
.square-tile.t3, .square-tile.e3, .square-tile.x3 { background: var(--soft-coral); }
.square-tile.t3 .tile-icon svg, .square-tile.e3 .tile-icon svg, .square-tile.x3 .tile-icon svg { fill: #e8836b; }
.square-tile.t4, .square-tile.e4, .square-tile.x4 { background: var(--soft-butter); }
.square-tile.t4 .tile-icon svg, .square-tile.e4 .tile-icon svg, .square-tile.x4 .tile-icon svg { fill: #c99b2f; }

.disease-pillars-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.disease-pillar-tile { aspect-ratio: 1/1; border-radius: var(--radius-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px; cursor: pointer; font-family: inherit; border: none; text-align: center; color: var(--text); }
.disease-pillar-tile svg { width: 30px; height: 30px; }
.disease-pillar-tile .tile-label { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.disease-pillar-tile .tile-label strong { font-weight: 800; font-size: .66rem; color: var(--text); }
.disease-pillar-tile .tile-label em { font-style: normal; font-weight: 700; font-size: .58rem; color: var(--muted); }
.disease-pillar-tile.t1 { background: var(--soft-purple); }
.disease-pillar-tile.t1 svg { fill: var(--purple); }
.disease-pillar-tile.t2 { background: var(--soft-mint); }
.disease-pillar-tile.t2 svg { fill: #6fbfa0; }
.disease-pillar-tile.t3 { background: var(--soft-coral); }
.disease-pillar-tile.t3 svg { fill: #e8836b; }
.disease-pillar-tile.t4 { background: var(--soft-butter); }
.disease-pillar-tile.t4 svg { fill: #c99b2f; }

#sub-app { position: fixed; inset: 0; background: var(--bg); z-index: 1800; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity .18s ease; }
#sub-app.active { opacity: 1; pointer-events: auto; }
.sub-topbar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--soft-purple); color: var(--text); }
.sub-back { background: var(--nav-bg); border: none; width: 42px; height: 42px; border-radius: var(--radius-sm); font-size: 1.15rem; font-weight: 800; cursor: pointer; color: var(--text); display: grid; place-items: center; font-family: inherit; margin-left: auto; }
.sub-back svg { width: 20px; height: 20px; fill: currentColor; }
.sub-title-block { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sub-title { font-weight: 800; font-size: 1.05rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-tab-label { font-size: .78rem; font-weight: 700; color: var(--muted); }
#sub-viewport { flex: 1; overflow: hidden; position: relative; }
#subTrack { display: flex; height: 100%; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.sub-panel { width: 100vw; height: 100%; flex-shrink: 0; overflow-y: auto; overflow-x: hidden; padding: 24px 20px 110px; -webkit-overflow-scrolling: touch; }
.sub-panel-inner { max-width: 620px; margin: 0 auto; }
.sub-panel h2 { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.sub-panel p { color: var(--muted); font-size: .94rem; line-height: 1.65; margin-bottom: 14px; }
.sub-panel .placeholder { background: var(--card); border-radius: var(--radius); padding: 24px 20px; text-align: center; color: var(--muted); font-size: .9rem; line-height: 1.6; margin-top: 12px; }

#notifications-page { position: fixed; inset: 0; background: var(--bg); z-index: 1860; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .4s cubic-bezier(.22,1,.36,1); pointer-events: none; }
#notifications-page.active { transform: translateY(0); pointer-events: auto; }
.notif-topbar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--soft-purple); }
.notif-title { font-weight: 800; font-size: 1.05rem; flex: 1; }
.notif-close { background: var(--nav-bg); border: none; width: 42px; height: 42px; border-radius: var(--radius-sm); font-size: 1.15rem; font-weight: 800; cursor: pointer; display: grid; place-items: center; font-family: inherit; margin-left: auto; }
.notif-body { flex: 1; overflow-y: auto; padding: 20px 16px; }
.notif-list { display: flex; flex-direction: column; gap: 10px; max-width: 620px; margin: 0 auto; }
.notif-item { background: var(--card); border-radius: var(--radius); padding: 16px 18px; display: flex; gap: 14px; }
.notif-item.unread { background: var(--soft-purple); }
.notif-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--purple); flex-shrink: 0; margin-top: 6px; }
.notif-item:not(.unread) .notif-dot { background: transparent; }
.notif-content { flex: 1; min-width: 0; }
.notif-item-title { font-weight: 800; font-size: .94rem; margin-bottom: 4px; }
.notif-item-body { font-size: .86rem; color: var(--muted); line-height: 1.5; margin-bottom: 6px; }
.notif-item-time { font-size: .72rem; color: var(--muted); font-weight: 600; }
.notif-empty { text-align: center; padding: 60px 20px; color: var(--muted); font-size: .92rem; }
.notif-filter-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--bg); border-top: 1px solid var(--footer-rule); }
.notif-filter-tile { flex: 1; border: 2px solid transparent; border-radius: var(--radius-sm); padding: 10px 4px; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: .6rem; font-weight: 800; color: var(--text); text-align: center; }
.notif-filter-tile.active { border-color: currentColor; }
.notif-filter-tile svg { width: 22px; height: 22px; fill: currentColor; }
.notif-filter-tile.f1 { background: var(--soft-purple); color: var(--purple); }
.notif-filter-tile.f2 { background: var(--soft-mint); color: #6fbfa0; }
.notif-filter-tile.f3 { background: var(--soft-coral); color: #e8836b; }
.notif-filter-tile.f4 { background: var(--soft-butter); color: #c99b2f; }
.notif-filter-tile span { color: var(--text); }

.modal { position: fixed; inset: 0; background: var(--bg); color: var(--text); z-index: 1880; display: flex; flex-direction: column; padding-bottom: 72px; transform: translateY(100%); transition: transform .4s cubic-bezier(.22,1,.36,1); pointer-events: none; }
.modal.active { transform: translateY(0); pointer-events: auto; }
.modal-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; width: 100%; background: var(--bg); }
.modal-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; background: var(--soft-purple); }
.modal-header h2 { font-size: 1.15rem; font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-close { background: var(--nav-bg); border: none; width: 42px; height: 42px; border-radius: var(--radius-sm); font-size: 1.15rem; font-weight: 800; cursor: pointer; display: grid; place-items: center; font-family: inherit; }
.modal-body { flex: 1; overflow-y: auto; padding: 22px 20px; }
.modal-body p { font-size: .92rem; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.modal-body h3 { font-size: .78rem; font-weight: 800; margin: 22px 0 4px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.modal-body strong { color: var(--text); font-weight: 800; }
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.modal-form .btn { margin-top: 6px; }
.modal-body .pillars-home { margin-bottom: 0; }
.modal-input, .modal-textarea { width: 100%; padding: 14px; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--card); color: var(--text); font-family: inherit; font-size: .95rem; outline: none; }
.modal-textarea { resize: vertical; min-height: 100px; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; margin-bottom: 10px; }
.settings-square { aspect-ratio: 1/1; background: var(--card); border: 2px solid transparent; border-radius: var(--radius); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; font-family: inherit; color: var(--text); }
.settings-square.active { border-color: var(--purple); }
.settings-square .preview-text { font-weight: 800; color: var(--text); }
.settings-square .settings-label { font-size: .8rem; font-weight: 700; color: var(--muted); text-align: center; }
.swatch { width: 60px; height: 60px; border-radius: var(--radius-md); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; border: 2px solid rgba(0,0,0,.12); }
.swatch-default { background: #c9b8e8; color: #2f2440; }
.swatch-ocean { background: #7eb8e0; color: #fff; }
.swatch-electric { background: linear-gradient(135deg, #00d4ff, #0a0a0f 70%); color: #fff; border-color: #00d4ff; }
.swatch-bw { background: #000; color: #fff; border-color: #444; }
.swatch-wb { background: #fff; color: #000; border-color: #000; }
.swatch-grey { background: #2b2b2b; color: #fff; border-color: #555; }
.layout-preview { width: 56px; height: 56px; display: flex; flex-direction: column; gap: 3px; padding: 6px; background: var(--bg); border: 1px solid var(--footer-rule); border-radius: var(--radius-sm); overflow: hidden; }
.layout-preview span { display: block; background: var(--purple); border-radius: 1px; }
.layout-preview-classic span { flex: 1; }
.layout-preview-classic span:nth-child(2) { flex: 1.6; }
.layout-preview-spacious { gap: 4px; padding: 5px; }
.layout-preview-spacious span { flex: 1; background: #e8836b; }
.layout-preview-glass { background: linear-gradient(135deg, var(--soft-purple), var(--soft-mint)); }
.layout-preview-glass span { background: rgba(124,91,212,.55); border-radius: 2px; flex: 1; }

.settings-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.settings-btn { background: var(--card); border: none; border-radius: var(--radius-sm); padding: 15px 16px; font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--text); text-align: left; font-family: inherit; }

.videos-title { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.videos-subtitle { font-size: .94rem; color: var(--muted); margin-bottom: 14px; }
.videos-diagnostic { font-size: .72rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft-purple); padding: 8px 10px; border-radius: var(--radius-sm); margin-bottom: 16px; word-break: break-all; }
.filter-bar { margin: 16px 0 8px; }
.filter-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; background: #6fbfa0; border: 2px solid #6fbfa0; color: #fff; font-family: inherit; font-size: .8rem; font-weight: 800; padding: 8px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.filter-chip .chip-icon { display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 900; line-height: 1; width: 14px; text-align: center; }
.filter-chip.excluded { background: #e2e2e6; border-color: #d0d0d6; color: #8a8a92; }
.filter-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .76rem; font-weight: 700; color: var(--muted); margin-top: 4px; min-height: 20px; }
.filter-count strong { color: #4a9d7c; font-weight: 800; }
.filter-clear { background: none; border: none; color: #6fbfa0; font-family: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; padding: 0; display: none; }
.filter-clear.visible { display: inline; }

.video-card { background: var(--card); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.video-card.hidden { display: none; }
.video-thumb { position: relative; width: 100%; aspect-ratio: 16/9; background: #1a1a2e; overflow: hidden; cursor: pointer; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.15); pointer-events: none; }
.video-play svg { width: 56px; height: 56px; fill: #fff; filter: drop-shadow(0 2px 12px rgba(0,0,0,.6)); }
.video-player-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.video-player-wrap > div { position: absolute; inset: 0; }
.video-player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video-info { padding: 14px 16px 16px; }
.video-title-text { font-weight: 800; font-size: .92rem; color: var(--text); line-height: 1.35; margin-bottom: 4px; }
.video-channel-text { font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.channel-link { display: inline-flex; align-items: center; gap: 6px; background: var(--soft-purple); color: var(--purple); text-decoration: none; font-size: .8rem; font-weight: 800; padding: 8px 12px; border-radius: 4px; font-family: inherit; }
.channel-link svg { width: 14px; height: 14px; fill: currentColor; }
.no-results { background: var(--card); border-radius: var(--radius); padding: 30px 20px; text-align: center; color: var(--muted); font-size: .9rem; display: none; }
.no-results.visible { display: block; }
#subViewport { flex: 1; overflow: hidden; position: relative; min-height: 0; }
/* A-Z hub */
.az-sticky-chips {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fdf9f3;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 0 10px;
  margin: 0 -20px 8px;
  padding-left: 20px;
  padding-right: 20px;
  border-bottom: 1px solid var(--footer-rule);
}
.sub-panel.az-panel { padding-top: 0; }
.az-chip {
  background: var(--soft-purple);
  color: var(--text);
  border: none;
  border-radius: var(--radius-sm);
  width: 30px;
  height: 30px;
  font-weight: 800;
  font-size: .82rem;
  cursor: pointer;
  font-family: inherit;
  display: grid;
  place-items: center;
}
.az-chip:hover { background: var(--purple); color: var(--accent-text); }
.az-chip.az-chip-active { background: var(--purple); color: var(--accent-text); }
.az-chip.az-chip-empty { background: var(--card); color: var(--muted); opacity: .35; cursor: default; }
.az-list { padding-bottom: 60px; }
.az-group { margin-bottom: 22px; }
.az-group-heading {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 8px;
  padding-left: 2px;
}
.az-group-items { display: flex; flex-direction: column; gap: 4px; }
.az-item {
  background: var(--card);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.az-item:hover { background: var(--soft-purple); }

/* Animations off — kill all transitions and animations */
html[data-animations="off"] *,
html[data-animations="off"] *::before,
html[data-animations="off"] *::after {
  transition: none !important;
  animation: none !important;
}
