/* Kesh Fitness: soft, feminine, red, black, white and light pink. Font: Lexend. */
:root {
  --red: #B31F24; --red-dark: #8E171B; --ink: #111111; --text: #3D2E34; --muted: #5E4650;
  --pink-50: #FDEEF2; --pink-100: #FBE3EA; --pink-200: #F9D7E0; --pink-300: #F3C4D0; --line: #F6DDE4; --line-strong: #EBC3CE;
  --white: #FFFFFF; --radius: 22px; --font: Lexend, system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-weight: 300; color: var(--ink); background: var(--white); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-weight: 400; letter-spacing: -0.01em; margin: 0; line-height: 1.2; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons and pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--pink-300); }
.btn-light:hover { background: var(--pink-50); color: var(--ink); }
.btn-pink { background: var(--pink-200); color: var(--ink); }
.btn-pink:hover { background: var(--pink-300); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #333; color: var(--white); }
.btn-outline { background: transparent; border-color: var(--red); color: var(--red); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--red); cursor: pointer; text-decoration: underline; }
.label { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.pill { display: inline-flex; align-items: center; font-size: 12px; border-radius: 999px; padding: 5px 12px; background: var(--white); color: var(--muted); }
.badge-creator { display: inline-block; font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; background: var(--red); color: var(--white); border-radius: 999px; padding: 3px 8px; vertical-align: middle; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--pink-300); background: var(--white); color: var(--ink); text-decoration: none; font-size: 14px; white-space: nowrap; cursor: pointer; font-family: inherit; }
.chip.is-on, .chip[aria-current="true"] { background: var(--red); border-color: var(--red); color: var(--white); }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.input, .select, .textarea { width: 100%; min-height: 48px; border: 1.5px solid var(--line-strong); border-radius: 16px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); }
.textarea { padding: 12px 14px; min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--red); outline: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--red); flex-shrink: 0; }
.error { color: var(--red-dark); font-size: 13px; }
.errors { background: var(--pink-100); color: var(--red-dark); border-radius: 16px; padding: 12px 16px; font-size: 14px; }
.errors ul { margin: 0; padding-left: 18px; }
.flash { background: var(--ink); color: var(--white); border-radius: 16px; padding: 12px 16px; font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Website ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 96px; height: auto; }
.brand .pill { background: var(--pink-100); color: var(--red-dark); font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; padding: 4px 10px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 20px; }
.site-nav a { text-decoration: none; color: var(--ink); font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a.is-active { color: var(--red); font-weight: 500; }
.site-nav .btn { color: var(--white); min-height: 44px; }
.hero { background: var(--pink-50); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; }
.hero-img { width: 100%; max-width: 440px; height: 540px; object-fit: cover; object-position: top; border-radius: 220px 220px 32px 32px; margin: 0 auto; }
.section { padding: 80px 0; }
.section-pink { background: var(--pink-50); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.section-head h2, .page-hero h1 { font-size: clamp(26px, 3vw, 36px); }
.page-hero { background: var(--pink-50); text-align: center; padding: 64px 24px 52px; }
.page-hero .inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.page-hero p { font-size: 17px; color: var(--muted); line-height: 1.65; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-img { width: 100%; height: 260px; object-fit: cover; }
.card h3 { font-size: 21px; font-weight: 500; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 4px; background: var(--red); margin-top: 8px; }
.card-red { background: var(--red); border-color: var(--red); color: var(--white); }
.card-red .ticks { color: var(--white); }
.card-red .ticks li::before { background: var(--white); }
.price { font-size: 30px; font-weight: 300; }
.quote { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 16px; break-inside: avoid; }
.quote blockquote { margin: 0; font-size: 15px; line-height: 1.75; color: var(--text); }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.initials { width: 40px; height: 40px; border-radius: 20px; background: var(--pink-200); color: var(--red-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; flex-shrink: 0; }
.masonry { columns: 3 300px; column-gap: 20px; }
.masonry .quote { margin-bottom: 20px; }
.band { background: var(--ink); color: var(--white); border-radius: 32px; padding: 32px 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.band .label { color: #F3A9BA; }
.journey { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.journey img { width: 100%; max-width: 480px; height: 560px; object-fit: cover; border-radius: 32px; margin: 0 auto; }
.journey .copy { flex: 1 1 460px; display: flex; flex-direction: column; gap: 18px; font-size: 16px; line-height: 1.75; color: var(--text); }
.post-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 12px; }
.post-card img { width: 100%; height: 240px; object-fit: cover; border-radius: 26px; background: var(--pink-50); }
.post-card .meta { font-size: 12px; color: var(--red-dark); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.post-card .title { font-size: 20px; line-height: 1.35; }
.article { max-width: 760px; }
.article h2 { font-size: 22px; font-weight: 500; margin: 28px 0 10px; }
.article h3 { font-size: 18px; font-weight: 500; margin: 22px 0 8px; }
.article p, .article li { font-size: 17px; line-height: 1.8; color: var(--text); }
.article p { margin: 0 0 16px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 16px; }
.event-card .poster { position: relative; }
.event-card .poster img, .poster-empty { width: 100%; height: 320px; object-fit: cover; }
.poster-empty { background: var(--pink-200); display: flex; align-items: center; justify-content: center; color: var(--red-dark); font-size: 14px; }
.tag { position: absolute; top: 14px; left: 14px; font-size: 12px; font-weight: 500; border-radius: 999px; padding: 6px 12px; background: var(--red); color: var(--white); }
.tag-partner { background: var(--white); color: var(--ink); }
.price-box { margin: 0 24px; padding: 14px 16px; border-radius: 18px; background: var(--pink-50); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.price-box .p1 { font-size: 17px; font-weight: 500; color: var(--red); }
.price-box .p2 { font-size: 17px; }
.site-footer { background: var(--pink-100); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding: 56px 0 32px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer .col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--pink-300); padding: 20px 0 28px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 28px; }
.center-card { max-width: 480px; margin: 48px auto; }
.auth-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 20px; }
.auth-head img { width: 120px; }
.level-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.level-grid label { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 6px; border-radius: 14px; border: 1.5px solid var(--line-strong); font-size: 14px; cursor: pointer; }
.level-grid input { position: absolute; opacity: 0; pointer-events: none; }
.level-grid input:checked + span { color: var(--red-dark); }
.level-grid label:has(input:checked) { background: var(--pink-100); border-color: var(--red); }
.consents { background: var(--pink-50); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mama { background: var(--pink-50); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Member app (mobile first) ---------- */
.app-body { background: var(--pink-50); min-height: 100vh; min-height: 100dvh; }
.app-shell { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.app-top { background: var(--pink-200); padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 18px; border-radius: 0 0 28px 28px; display: flex; flex-direction: column; gap: 12px; }
.app-top h1 { font-size: 20px; font-weight: 500; }
.app-top .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.app-main { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.tile { background: var(--white); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.tile-dark { background: var(--ink); color: var(--white); }
.tile-red { background: var(--red); color: var(--white); }
.tile-outline { border: 1.5px solid var(--red); }
.cat { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-dark); }
.goal-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.goal-title { font-size: 16px; font-weight: 500; line-height: 1.35; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--white); font: inherit; font-size: 20px; cursor: pointer; color: var(--ink); }
.num-input { width: 120px; min-height: 46px; border-radius: 14px; border: 1.5px solid var(--line-strong); padding: 0 12px; font: inherit; font-size: 18px; font-weight: 500; text-align: right; }
.tick-card { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: var(--radius); padding: 14px 16px; border: 1.5px solid var(--white); cursor: pointer; }
.tick-card input { position: absolute; opacity: 0; pointer-events: none; }
.tick-card .box { flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; border: 2px solid #D9A3B2; display: flex; align-items: center; justify-content: center; }
.tick-card .box svg { opacity: 0; }
.tick-card:has(input:checked) { background: var(--pink-100); border-color: var(--red); }
.tick-card:has(input:checked) .box { background: var(--red); border-color: var(--red); }
.tick-card:has(input:checked) .box svg { opacity: 1; }
.progress-bar { height: 10px; border-radius: 5px; background: var(--white); overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--red); border-radius: 5px; }
.streak { display: flex; flex-direction: column; align-items: center; background: var(--red); color: var(--white); border-radius: 14px; padding: 8px 12px; }
.streak b { font-size: 22px; font-weight: 500; line-height: 1; }
.streak small { font-size: 11px; }
.tip { font-size: 13px; line-height: 1.5; color: var(--muted); background: var(--pink-100); border-radius: 12px; padding: 10px 12px; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; background: var(--white); border-top: 1px solid var(--pink-300); z-index: 30; padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
.bottom-nav .inner { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; text-decoration: none; color: var(--muted); font-size: 11px; }
.bottom-nav a[aria-current="page"] { color: var(--red); font-weight: 500; }
.avatar { width: 44px; height: 44px; border-radius: 22px; object-fit: cover; flex-shrink: 0; background: var(--pink-200); color: var(--red-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; }
.avatar-lg { width: 96px; height: 96px; border-radius: 48px; font-size: 28px; }
.avatar-creator { background: var(--red); color: var(--white); }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--white); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.stat span { font-size: 12px; color: var(--muted); }
.stat b { font-size: 22px; font-weight: 500; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 90px; border-bottom: 1px solid var(--pink-300); }
.bars span { flex: 1; min-width: 0; border-radius: 3px 3px 0 0; background: #EFA9B9; }
.bars span.met { background: var(--red); }
.bars span.empty { background: var(--pink-300); }
.meter { height: 8px; border-radius: 4px; background: #F8DCE3; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--red); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: var(--white); border-radius: 999px; padding: 4px; }
.seg a { min-height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--muted); font-size: 13px; }
.seg a[aria-current="true"] { background: var(--red); color: var(--white); }
.period { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: center; }
.arrow { width: 44px; height: 44px; border-radius: 22px; background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; }
.arrow.is-off { background: transparent; color: #E3B9C5; pointer-events: none; }
.feed-post { background: var(--white); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); }
.feed-post.is-creator { border: 1.5px solid var(--red); }
.feed-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.feed-actions form { margin: 0; }
.like { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.like.is-on { background: var(--pink-100); border-color: var(--red); }
.cheer { min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); font: inherit; font-size: 12px; cursor: pointer; color: var(--ink); }
.switch { flex-shrink: 0; width: 50px; height: 30px; border-radius: 15px; border: none; padding: 3px; cursor: pointer; display: flex; background: #E3B9C5; justify-content: flex-start; }
.switch.is-on { background: var(--red); justify-content: flex-end; }
.switch span { width: 24px; height: 24px; border-radius: 12px; background: var(--white); }
.resource-thumb { position: relative; display: block; height: 180px; background: var(--pink-200); }
.resource-thumb img { width: 100%; height: 100%; object-fit: cover; }
.resource-thumb .play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 28px; background: var(--red); display: flex; align-items: center; justify-content: center; }
.modal { position: fixed; inset: 0; background: rgba(17, 17, 17, 0.55); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 50; }
.modal[hidden] { display: none; }
.modal-card { width: 100%; max-width: 420px; background: var(--white); border-radius: 24px; overflow: hidden; text-align: center; }
.modal-card .top { background: var(--pink-200); padding: 28px 24px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.modal-card .heart { width: 76px; height: 76px; border-radius: 38px; background: var(--red); display: flex; align-items: center; justify-content: center; }
.modal-card .body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.modal-card h2 { font-size: 20px; font-weight: 500; }
.danger-zone { border: 1.5px solid var(--red); }

/* ---------- Admin ---------- */
.admin { display: flex; flex-wrap: wrap; min-height: 100vh; background: var(--pink-50); }
.admin-side { flex: 1 1 220px; max-width: 100%; background: var(--pink-200); padding: 24px 18px; display: flex; flex-direction: column; gap: 22px; }
.admin-side .brandbox { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.admin-side .brandbox img { width: 110px; }
.admin-side nav { display: flex; flex-direction: column; gap: 4px; }
.admin-side nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; }
.admin-side nav a.is-active { background: var(--red); color: var(--white); font-weight: 500; }
.admin-main { flex: 999 1 560px; min-width: 0; padding: 28px clamp(16px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.admin-main h1 { font-size: 24px; font-weight: 500; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stats .stat b { font-size: 28px; }
.box { background: var(--white); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.box h2 { font-size: 18px; font-weight: 500; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th { text-align: left; color: var(--muted); font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 8px; border-bottom: 1.5px solid var(--line); }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.flag-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.flag-card { border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.flag { font-size: 12px; font-weight: 500; color: var(--red-dark); background: var(--pink-100); border-radius: 8px; padding: 4px 8px; white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; }
.is-off { opacity: .6; }
