/* Fonts are defined in fonts.css (--font-body, --font-latin). */

/* ---- Design tokens: "sunrise over a calm sea" palette (owner #39: colours that make visitors feel good).
   Warm sand + peach sky, bright sea-teal, coral/gold sunrise warmth, seafoam freshness.
   Token names are unchanged from the original design (desghin/), so every page picks the palette up. ---- */
:root {
    --pono-bg: #FFF8F0;          /* warm sand */
    --pono-bg-soft: #FFF1E4;     /* peach haze */
    --pono-paper: #F2FAF7;       /* seafoam section */
    --pono-card: #FFFFFF;
    --pono-ink: #213A3D;
    --pono-ink-2: #3B5558;
    --pono-muted: #5B7271;
    --pono-teal: #23807C;        /* sea (AA on sand) */
    --pono-teal-2: #5FB3AC;
    --pono-mist: #BFE3DC;
    --pono-deep: #1F4E5A;        /* deep ocean */
    --pono-deep-2: #17404B;
    --pono-cream: #FFF6EC;
    --pono-clay: #BF5536;        /* coral for text (AA on sand) */
    --pono-coral: #F28C6B;       /* decorative coral */
    --pono-gold: #F6C667;        /* sunlight */
    --pono-on-dark: #DCEFEA;     /* body text on deep sections */
    --pono-on-dark-muted: #B4D3CD;
    --pono-line: rgba(33, 58, 61, .1);
    --pono-sunrise: linear-gradient(135deg, #F6C667 0%, #F28C6B 55%, #E9795B 100%);
    --pono-sea: linear-gradient(135deg, #2A8C88 0%, #1F4E5A 100%);

    --bs-body-font-family: var(--font-body);
    --bs-body-bg: var(--pono-bg);
    --bs-body-color: var(--pono-ink);
    --bs-primary: var(--pono-teal);
    --bs-primary-rgb: 35, 128, 124;
    --bs-link-color: var(--pono-teal);
    --bs-link-color-rgb: 35, 128, 124;
    --bs-link-hover-color: var(--pono-clay);
    --bs-link-hover-color-rgb: 191, 85, 54;
    --bs-border-radius: .9rem;
    --bs-focus-ring-color: rgba(95, 179, 172, .3);
}

html, body { background: var(--pono-bg); }
body { background: radial-gradient(1200px 520px at 85% -120px, rgba(246, 198, 103, .28), transparent 70%), radial-gradient(900px 480px at 0% 0%, rgba(191, 227, 220, .45), transparent 70%), var(--pono-bg); background-repeat: no-repeat; }
body { font-family: var(--bs-body-font-family); -webkit-font-smoothing: antialiased; line-height: 1.9; }
::selection { background: rgba(246, 198, 103, .45); }

.btn-primary { --bs-btn-bg: var(--pono-teal); --bs-btn-border-color: var(--pono-teal); --bs-btn-hover-bg: var(--pono-deep); --bs-btn-hover-border-color: var(--pono-deep); --bs-btn-active-bg: var(--pono-deep); --bs-btn-disabled-bg: var(--pono-teal-2); --bs-btn-disabled-border-color: var(--pono-teal-2); }
.btn-outline-primary { --bs-btn-color: var(--pono-teal); --bs-btn-border-color: var(--pono-teal); --bs-btn-hover-bg: var(--pono-teal); --bs-btn-hover-border-color: var(--pono-teal); --bs-btn-active-bg: var(--pono-deep); }
.form-check-input:checked { background-color: var(--pono-teal); border-color: var(--pono-teal); }
.form-check-input:focus, .btn:focus-visible { box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }
.form-range::-webkit-slider-thumb { background: var(--pono-teal); }
.form-range::-moz-range-thumb { background: var(--pono-teal); }
.text-bg-success { background-color: var(--pono-teal) !important; }
.form-control:focus, .form-select:focus { border-color: var(--pono-teal-2); box-shadow: 0 0 0 .2rem rgba(110, 156, 151, .25); }
.ltr { direction: ltr; text-align: right; }

/* ---- Boot screen shown before WASM loads ---- */
.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--pono-muted); letter-spacing: .1em; }
.boot-ring { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--pono-teal-2); animation: breathe-ring 2.4s ease-in-out infinite alternate; }

@keyframes breathe-ring { from { transform: scale(.85); opacity: .5; } to { transform: scale(1.25); opacity: 1; } }
@keyframes driftIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---- Site ---- */
.pono-container { max-width: 1160px; margin: 0 auto; padding-inline: clamp(18px, 5vw, 48px); }
.pono-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); background: rgba(255, 248, 240, .86); border-bottom: 1px solid rgba(33, 58, 61, .08); }
.pono-logo { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--pono-teal-2); position: relative; flex: none; }
.pono-logo::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--pono-teal-2); opacity: .6; }
.pono-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--pono-ink); }
.pono-brand img { flex: none; }
.pono-brand-text { display: grid; line-height: 1.25; white-space: nowrap; }
.pono-brand-text strong { font-size: 17px; font-weight: 500; }
.pono-brand-text small { font-size: 11.5px; color: var(--pono-muted); word-spacing: .2em; }
.pono-brand.light, .pono-brand.light small { color: var(--pono-cream); }
.boot-logo { animation: breathe-ring 2.4s ease-in-out infinite alternate; }
.pono-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.pono-nav a, .pono-nav-link-btn { color: var(--pono-muted); text-decoration: none; font-size: 14px; background: none; border: 0; padding: 0; }
.pono-nav a:hover, .pono-nav a.active, .pono-nav-link-btn:hover { color: var(--pono-clay); }
.pono-nav a.pono-nav-accent { color: var(--pono-clay); }
.pono-menu-btn { border: 0; background: transparent; color: var(--pono-ink); font-size: 26px; line-height: 1; width: 44px; height: 44px; border-radius: 50%; }
.pono-menu-btn:hover { background: rgba(33, 58, 61, .06); }
/* Phones and tablets: the links become a full-width panel under the header. */
@media (max-width: 991.98px) {
    .pono-header { position: sticky; }
    .pono-nav {
        position: absolute; inset-inline: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(255, 248, 240, .98); backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--pono-line); box-shadow: 0 12px 24px rgba(33, 58, 61, .08);
        padding: 8px clamp(18px, 5vw, 48px) 16px;
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .pono-nav.open { visibility: visible; opacity: 1; transform: none; }
    .pono-nav a, .pono-nav-link-btn { font-size: 16px; padding: 12px 4px; border-bottom: 1px solid var(--pono-line); text-align: right; }
    .pono-nav > :last-child { border-bottom: 0; }
}

/* The design uses letter-spacing .24em here, but letter-spacing breaks Persian letter joining; word-spacing keeps the airy look. */
.pono-eyebrow { margin: 0 0 12px; font-size: 13px; word-spacing: .35em; color: var(--pono-clay); }
.pono-dark .pono-eyebrow { color: var(--pono-mist); }
.pono-section { padding-block: clamp(46px, 8vw, 96px); }
.pono-dark > :not(.mu-particles) { position: relative; }
.pono-dark { position: relative; background: radial-gradient(900px 420px at 80% 0%, rgba(246, 198, 103, .14), transparent 70%), var(--pono-sea); color: var(--pono-cream); }
.pono-paper { background: var(--pono-paper); border-block: 1px solid var(--pono-line); }
.pono-h1 { font-size: clamp(38px, 7vw, 78px); line-height: 1.1; font-weight: 200; }
.pono-h2 { font-size: clamp(25px, 3.6vw, 38px); font-weight: 400; line-height: 1.3; }
.pono-dark .pono-h2 { font-weight: 200; }
.pono-lead { color: var(--pono-ink-2); max-width: 52ch; }
.pono-dark .pono-lead { color: var(--pono-on-dark-muted); }

.pono-pill { display: inline-block; border: 0; border-radius: 999px; padding: 13px 26px; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.pono-pill-dark { background: var(--pono-sea); color: #fff; box-shadow: 0 8px 22px -10px rgba(31, 78, 90, .55); }
.pono-pill-dark:hover { color: #fff; filter: brightness(1.08); }
.pono-pill-warm { background: var(--pono-sunrise); color: #3A1D10; box-shadow: 0 10px 26px -12px rgba(233, 121, 91, .7); font-weight: 500; }
.pono-pill-warm:hover { color: #3A1D10; filter: brightness(1.05); }
.pono-pill-ghost { background: transparent; color: var(--pono-ink); box-shadow: inset 0 0 0 1px rgba(33, 58, 61, .22); }
.pono-pill-light { background: var(--pono-cream); color: var(--pono-deep); }
.pono-pill-outline-light { background: transparent; color: var(--pono-on-dark-muted); box-shadow: inset 0 0 0 1px rgba(255, 246, 236, .22); }

.pono-card { position: relative; background: var(--pono-card); border-radius: 20px; padding: 26px 24px; box-shadow: inset 0 0 0 1px rgba(33, 58, 61, .08); transition: transform .3s ease, box-shadow .3s ease; }
.pono-card.selectable { cursor: pointer; }
.pono-card.selectable:hover { transform: translateY(-3px); }
.pono-card.selected { box-shadow: inset 0 0 0 1px rgba(33, 58, 61, .08), 0 0 0 2px var(--pono-teal-2); }
.pono-principle { background: var(--pono-card); box-shadow: inset 0 0 0 1px var(--pono-line); border-radius: 16px; padding: 20px 22px; }
.pono-principle small { display: block; font-size: 12px; word-spacing: .3em; color: var(--pono-clay); margin-bottom: 6px; }
.pono-latin { font-family: var(--font-latin); font-style: italic; direction: ltr; text-align: right; color: var(--pono-teal); }
.pono-dark .pono-latin { color: var(--pono-mist); }
.pono-hero-art { aspect-ratio: 4/5; border-radius: 220px 220px 16px 16px; background: radial-gradient(circle at 50% 38%, rgba(246, 198, 103, .45), transparent 55%), linear-gradient(180deg, #FFE3CF, #FFF1E4 60%, #CFEAE4); box-shadow: 0 30px 60px -30px rgba(233, 121, 91, .45); }

.pono-choice { cursor: pointer; background: rgba(191, 227, 220, .08); border-radius: 16px; padding: 18px 20px; transition: background .3s ease; border: 0; width: 100%; text-align: right; color: inherit; }
.pono-choice:hover { background: rgba(191, 227, 220, .16); }
.pono-choice.selected { box-shadow: inset 0 0 0 1px var(--pono-mist); }
.pono-dark .form-control, .pono-dark .form-select { background: rgba(255, 246, 236, .06); border: 1px solid rgba(255, 246, 236, .18); color: var(--pono-cream); }
.pono-dark .form-control::placeholder { color: #9DC2BB; }
.pono-dark .form-check-input { background-color: transparent; border-color: rgba(255, 246, 236, .4); }
.pono-quote { background: rgba(191, 227, 220, .1); border-radius: 18px; padding: 24px; }
.pono-footer { border-top: 1px solid var(--pono-line); color: var(--pono-muted); font-size: 14px; }

/* ---- Media (job/2.txt): hero photo, masonry gallery, lightbox, videos ---- */
.pono-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pono-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(34, 64, 62, .35)); pointer-events: none; }
.pono-hero-art .mu-ripple { z-index: 1; mix-blend-mode: screen; }

.pono-masonry { column-count: 1; column-gap: 16px; }
@media (min-width: 576px) { .pono-masonry { column-count: 2; } }
@media (min-width: 992px) { .pono-masonry { column-count: 3; column-gap: 20px; } }
.pono-masonry-item { break-inside: avoid; margin-bottom: 16px; }
.pono-photo { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #FFE9DA; cursor: zoom-in; }
.pono-photo img { display: block; width: 100%; height: auto; transition: transform .8s ease; }
.pono-photo:hover img, .pono-photo:focus-visible img { transform: scale(1.04); }
.pono-photo-caption { position: absolute; inset-inline: 0; bottom: 0; display: grid; gap: 2px; padding: 40px 16px 14px; text-align: right; color: #fff; font-size: 14px; line-height: 1.8;
    background: linear-gradient(180deg, transparent, rgba(18, 48, 56, .78)); }
.pono-photo-caption strong { font-size: 16px; font-weight: 500; }
@media (hover: hover) {
    .pono-photo-caption span { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease, opacity .4s ease; }
    .pono-photo:hover .pono-photo-caption span, .pono-photo:focus-visible .pono-photo-caption span { max-height: 6em; opacity: 1; }
}

.pono-lightbox { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 56px 12px 16px; background: rgba(15, 24, 23, .96); animation: driftIn .25s ease both; }
.pono-lightbox:focus { outline: none; }
.pono-lightbox figure { margin: 0; max-width: min(1100px, 100%); display: grid; gap: 12px; }
.pono-lightbox img { max-width: 100%; max-height: 72vh; object-fit: contain; border-radius: 14px; margin-inline: auto; }
.pono-lightbox figcaption { color: var(--pono-on-dark); text-align: center; font-size: 15px; }
.pono-lightbox figcaption strong { display: block; font-size: 18px; font-weight: 400; margin-bottom: 4px; }
.pono-lightbox-btn { position: absolute; border: 0; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 246, 236, .12); color: #fff; font-size: 20px; }
.pono-lightbox-btn:hover { background: rgba(255, 246, 236, .24); }
.pono-lightbox-btn.close { top: 12px; inset-inline-end: 12px; }
.pono-lightbox-btn.prev { top: 50%; inset-inline-start: 8px; transform: translateY(-50%); }
.pono-lightbox-btn.next { top: 50%; inset-inline-end: 8px; transform: translateY(-50%); }
.pono-credit { color: var(--pono-on-dark-muted); }
.pono-credit a { color: var(--pono-mist); }

.pono-video-feature { position: relative; border-radius: 24px; overflow: hidden; min-height: 280px; background: #17404B; }
.pono-video-feature video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pono-video-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(20px, 4vw, 40px); color: #fff;
    background: linear-gradient(180deg, rgba(18, 48, 56, 0) 35%, rgba(18, 48, 56, .75)); }
@media (min-width: 992px) { .pono-video-feature { min-height: 460px; } }
.pono-sound-btn { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
    border: 0; border-radius: 999px; padding: 9px 16px; font-size: 14px; color: #fff; background: rgba(18, 48, 56, .55); backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px rgba(255, 246, 236, .25); cursor: pointer; transition: background .2s; }
.pono-sound-btn:hover, .pono-sound-btn[aria-pressed="true"] { background: rgba(110, 156, 151, .75); }
.pono-sound-btn i { font-size: 18px; }
.pono-video-card { border-radius: 20px; overflow: hidden; background: rgba(191, 227, 220, .08); }
.pono-video-card video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #17404B; }
.pono-video-card.portrait video { aspect-ratio: 9 / 12; }
.pono-video-card figcaption { display: grid; gap: 2px; padding: 12px 16px 14px; font-size: 14px; color: var(--pono-on-dark); }
.pono-video-card figcaption strong { color: var(--pono-cream); font-weight: 400; font-size: 15px; }
.pono-credits summary { cursor: pointer; color: var(--pono-muted); font-size: 14px; }
.pono-credits li { font-size: 13px; color: var(--pono-muted); }
.pono-credits a { color: var(--pono-teal); }

.pono-shiny-clay { --shiny-base: var(--pono-clay); }
.pono-dark .pono-shiny-clay { --shiny-base: var(--pono-gold); }
/* ---- Account area (job/5.txt): right-hand menu, tabs on phones ---- */
.account-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; padding-block: 28px 64px; align-items: start; }
.account-menu { position: sticky; top: 86px; background: var(--pono-card); border-radius: 22px; padding: 16px; box-shadow: 0 18px 40px -28px rgba(31, 78, 90, .35), inset 0 0 0 1px var(--pono-line); }
.account-user { align-items: center; gap: 12px; padding: 6px 6px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--pono-line); }
.account-user small { color: var(--pono-muted); }
.account-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: #fff; background: var(--pono-sunrise); }
.account-nav { display: grid; gap: 4px; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--pono-ink-2); text-decoration: none; font-size: 15px; white-space: nowrap; transition: background .2s, color .2s; }
.account-nav a i { font-size: 18px; color: var(--pono-teal-2); }
.account-nav a:hover { background: var(--pono-paper); color: var(--pono-ink); }
.account-nav a.active { background: rgba(95, 179, 172, .16); color: var(--pono-deep); font-weight: 500; }
.account-nav a.active i { color: var(--pono-teal); }
.account-nav a.account-cta { background: var(--pono-sunrise); color: #3A1D10; font-weight: 500; margin-bottom: 6px; }
.account-nav a.account-cta i { color: #3A1D10; }
.account-nav-sep { font-size: 12px; color: var(--pono-clay); word-spacing: .3em; padding: 12px 12px 2px; }
.account-content { min-width: 0; }
.account-content > .account-page { background: transparent; }
.account-page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
@media (max-width: 991.98px) {
    .account-shell { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 14px; }
    .account-menu { position: sticky; top: 72px; z-index: 10; padding: 8px; border-radius: 16px; }
    .account-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .account-nav::-webkit-scrollbar { display: none; }
    .account-nav a { padding: 8px 12px; font-size: 14px; flex: none; }
    .account-nav a.account-cta { margin-bottom: 0; }
}

/* ---- Campaign wizard + detail ---- */
.wizard-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; }
.wizard-steps li { flex: 1 0 auto; }
.wizard-steps button { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: var(--pono-card); border-radius: 999px; padding: 8px 14px 8px 10px; color: var(--pono-muted); box-shadow: inset 0 0 0 1px var(--pono-line); white-space: nowrap; }
.wizard-steps .num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--pono-paper); color: var(--pono-teal); flex: none; }
.wizard-steps li.current button { color: var(--pono-deep); box-shadow: inset 0 0 0 2px var(--pono-teal-2); }
.wizard-steps li.current .num { background: var(--pono-sea); color: #fff; }
.wizard-steps li.done .num { background: var(--pono-sunrise); color: #3A1D10; }
.wizard-steps button:disabled { opacity: .55; }
.contact-pick { max-height: 240px; overflow-y: auto; display: grid; gap: 4px; padding-inline-end: 4px; }
.sms-bubble { white-space: pre-line; background: linear-gradient(135deg, #E9F7F3, #F2FAF7); border-radius: 18px 18px 18px 4px; padding: 14px 16px; line-height: 2; box-shadow: inset 0 0 0 1px var(--pono-line); }
.pay-option { display: flex; align-items: center; gap: 14px; width: 100%; text-align: right; border: 0; border-radius: 16px; padding: 14px 16px; background: var(--pono-paper); box-shadow: inset 0 0 0 1px var(--pono-line); color: var(--pono-ink); }
.pay-option i { font-size: 26px; color: var(--pono-teal); }
.pay-option span { display: grid; }
.pay-option small { color: var(--pono-muted); }
.pay-option.selected { box-shadow: inset 0 0 0 2px var(--pono-teal-2); background: #E9F7F3; }
.pay-option:disabled { opacity: .5; }
.stat-tile { background: var(--pono-card); border-radius: 18px; padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--pono-line); display: grid; }
.stat-tile small { color: var(--pono-muted); }
.stat-tile strong { font-size: 22px; font-weight: 500; color: var(--pono-deep); }
.rating-stars { display: flex; gap: 4px; direction: ltr; justify-content: flex-end; }
.rating-stars button { border: 0; background: none; font-size: 30px; line-height: 1; color: #E3D8CC; cursor: pointer; transition: transform .15s, color .15s; padding: 2px; }
.rating-stars button.on { color: var(--pono-gold); text-shadow: 0 2px 10px rgba(246, 198, 103, .6); }
.rating-stars button:hover { transform: scale(1.15); }
.rating-mini { color: var(--pono-gold); letter-spacing: 1px; direction: ltr; }
.rating-mini span { color: #E3D8CC; }
.recipient-list { max-height: 360px; overflow-y: auto; display: grid; gap: 2px; }
.recipient-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--pono-line); font-size: 14px; }
.recipient-list small { color: var(--pono-muted); }
.comment { display: flex; gap: 10px; }
.comment-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--pono-paper); color: var(--pono-teal); font-weight: 500; box-shadow: inset 0 0 0 1px var(--pono-line); }

.pono-auth-card { position: relative; background: var(--pono-card) !important; max-width: 440px; margin: clamp(32px, 8vw, 80px) auto; background: var(--pono-paper); border-radius: 24px; padding: clamp(24px, 5vw, 40px); box-shadow: inset 0 0 0 1px rgba(33, 58, 61, .08); }

/* ---- Admin panel (Bootstrap) ---- */
.admin-shell { display: flex; min-height: 100vh; background: #F7FBFA; }
.admin-sidebar { width: 250px; flex: none; background: var(--pono-deep); color: var(--pono-cream); }
.admin-sidebar .nav-link { color: var(--pono-on-dark); border-radius: 10px; padding: .55rem .9rem; display: flex; gap: .6rem; align-items: center; }
.admin-sidebar .nav-link:hover { background: rgba(191, 227, 220, .12); color: #fff; }
.admin-sidebar .nav-link.active { background: rgba(191, 227, 220, .22); color: #fff; }
.admin-main { flex: 1; min-width: 0; }
.admin-topbar { background: #fff; border-bottom: 1px solid #E3EEEB; }
@media (max-width: 991.98px) {
    .admin-sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 1040; transform: translateX(100%); transition: transform .25s; }
    .admin-sidebar.open { transform: none; }
    .admin-backdrop { position: fixed; inset: 0; z-index: 1030; background: rgba(33, 58, 61, .35); }
}

/* ---- Blazor defaults ---- */
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #b3261e; font-size: 13px; }

#blazor-error-ui { background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); display: none; left: 0; padding: 0.6rem 1.25rem 0.7rem 1.25rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; left: 0.75rem; top: 0.5rem; }

/* ---- Public content pages: blog, categories, masters, profile ---- */
.pono-page-head { padding-block: clamp(36px, 6vw, 72px) clamp(20px, 3vw, 32px); }
.post-card { display: flex; flex-direction: column; height: 100%; background: var(--pono-card); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--pono-ink);
    box-shadow: inset 0 0 0 1px rgba(33, 58, 61, .08); transition: transform .3s ease, box-shadow .3s ease; }
.post-card:hover { transform: translateY(-3px); color: var(--pono-ink); box-shadow: inset 0 0 0 1px rgba(33, 58, 61, .08), 0 18px 40px -24px rgba(31, 78, 90, .45); }
.post-card-media { position: relative; aspect-ratio: 16/10; background: linear-gradient(160deg, #FFE3CF, #CFEAE4); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-media .post-kind { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; background: rgba(255, 248, 240, .9); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.post-card-media .post-card-mark { position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; color: rgba(31, 78, 90, .35); }
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card-body h3 { font-size: 18px; font-weight: 500; line-height: 1.5; margin: 0; }
.post-card-body p { color: var(--pono-ink-2); font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { font-size: 12.5px; color: var(--pono-muted); margin-top: auto; }
.post-article { max-width: 760px; margin-inline: auto; }
.post-article .post-body p { font-size: 17px; line-height: 2.1; color: var(--pono-ink); margin-bottom: 1.1em; }
.post-hero { border-radius: 24px; overflow: hidden; margin-bottom: 28px; background: #FFE9DA; }
.post-hero img, .post-hero video { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.pono-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pono-chip { border-radius: 999px; padding: 6px 14px; font-size: 14px; background: var(--pono-card); color: var(--pono-ink-2); text-decoration: none; box-shadow: inset 0 0 0 1px var(--pono-line); }
.pono-chip.active, .pono-chip:hover { background: var(--pono-sea); color: #fff; }
.person-avatar { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: var(--pono-teal);
    background: radial-gradient(circle at 50% 35%, rgba(246, 198, 103, .45), transparent 60%), var(--pono-paper); box-shadow: inset 0 0 0 1px var(--pono-line); flex: none; }
.template-quote { position: relative; background: var(--pono-paper); border-radius: 16px; padding: 18px 20px; line-height: 2; }
.pono-footer-links a { color: inherit; text-decoration: none; opacity: .85; }
.pono-footer-links a:hover { opacity: 1; text-decoration: underline; }
/* ---- Master contract (job/LOG.md #41) ---- */
.contract-doc { border-top: 4px solid var(--pono-teal-2); }
.contract-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 24px; margin: 0; }
.contract-grid dt { font-size: 12.5px; font-weight: 400; color: var(--pono-muted); }
.contract-grid dd { margin: 2px 0 0; }
.contract-percent { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding: 18px 22px; border-radius: 18px;
    background: radial-gradient(420px 160px at 90% 0%, rgba(246, 198, 103, .35), transparent 70%), var(--pono-paper); }
.contract-percent small { color: var(--pono-ink-2); }
.contract-percent strong { font-size: clamp(30px, 6vw, 44px); font-weight: 300; color: var(--pono-teal); }

/* ---- Home: "what you send comes back" + daily ritual (job/LOG.md #48) ---- */
.return-art { position: relative; aspect-ratio: 1; max-width: 340px; margin-inline: auto; border-radius: 50%; overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(246, 198, 103, .45), transparent 62%), linear-gradient(180deg, #FFE3CF, #CFEAE4); }
.return-core { position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; color: var(--pono-teal); z-index: 1; }
.daily-ritual { position: relative; display: grid; gap: 20px; padding: clamp(22px, 4vw, 36px); border-radius: 24px; background: var(--pono-card);
    box-shadow: inset 0 0 0 1px var(--pono-line), 0 24px 50px -34px rgba(31, 78, 90, .45); }
.daily-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 768px) { .daily-steps { grid-template-columns: repeat(3, 1fr); } }
.daily-steps li { position: relative; display: grid; gap: 4px; padding: 16px 18px 16px 18px; border-radius: 16px; background: var(--pono-paper); counter-increment: step; }
.daily-steps li::before { content: counter(step, persian); position: absolute; inset-block-start: 12px; inset-inline-end: 14px; font-size: 22px; font-weight: 300; color: var(--pono-teal-2); opacity: .7; }
.daily-steps small { color: var(--pono-clay); font-size: 12.5px; }
.daily-steps strong { font-weight: 500; }
.daily-steps span { font-size: 14px; color: var(--pono-ink-2); line-height: 1.9; }
.daily-ritual .pono-pill { justify-self: start; }
@media (max-width: 991.98px) { .return-art { max-width: 220px; } }

/* ---- Home design sections: #timer, #release, #cards ---- */
.timer-choice { background: transparent; color: var(--pono-ink-2); box-shadow: inset 0 0 0 1px rgba(33, 58, 61, .16); padding: 11px 22px; }
.timer-choice.active { background: var(--pono-sea); color: #fff; box-shadow: none; }
.timer-label { margin: 0 0 8px; font-size: 13px; color: var(--pono-muted); }
.timer-ring.running { box-shadow: 0 0 0 10px rgba(110, 156, 151, .08), 0 0 60px -10px rgba(110, 156, 151, .45); }
.timer-ring { position: relative; width: min(280px, 70vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(var(--pono-teal-2) var(--pct), #E6EAE3 0); transition: background .6s linear; }
.timer-face { position: absolute; inset: 14px; border-radius: 50%; background: var(--pono-bg); display: grid; place-content: center; text-align: center; }
.timer-text { margin: 0; font-size: clamp(34px, 5vw, 46px); font-weight: 200; font-variant-numeric: tabular-nums; }
.timer-note { margin: 6px 0 0; font-size: 14px; color: var(--pono-muted); }
.release-input { background: var(--pono-card); border-radius: 16px; padding: 16px 18px; font-size: 16px; line-height: 1.8; }
.release-stage { position: relative; min-height: 270px; border-radius: 20px; background: var(--pono-card); box-shadow: inset 0 0 0 1px var(--pono-line);
    padding: 26px; overflow: hidden; display: grid; place-items: center; }
.release-hint { margin: 0; font-size: 15px; color: var(--pono-muted); text-align: center; max-width: 26ch; }
.release-float { position: absolute; inset-inline: 0; top: 50%; text-align: center; font-size: 19px; color: var(--pono-ink-2); padding: 0 26px;
    overflow-wrap: anywhere; animation: pono-dissolve 5s ease-in forwards; }
@keyframes pono-dissolve { 0% { opacity: 1; transform: translateY(-50%) scale(1); filter: blur(0); } 100% { opacity: 0; transform: translateY(calc(-50% - 34px)) scale(.96); filter: blur(7px); } }
.reflection-card { border-radius: 24px; padding: clamp(28px, 5vw, 50px); min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; }
.reflection-no { margin: 0 0 14px; font-size: 12px; word-spacing: .3em; color: var(--pono-mist); }
.reflection-q { margin: 0; font-size: clamp(20px, 2.8vw, 27px); font-weight: 200; line-height: 1.6; animation: mu-blur-in-up .6s ease forwards; opacity: 0; filter: blur(6px); transform: translateY(8px); }
@media (prefers-reduced-motion: reduce) { .release-float { animation-duration: .01s; } .reflection-q { animation: none; opacity: 1; filter: none; transform: none; } }
