:root {
    color-scheme: light;
    --brand-50: #fff1f1;
    --brand-100: #ffe0e0;
    --brand-200: #ffc7c7;
    --brand-300: #ff9b9b;
    --brand-400: #ff5c5c;
    --brand-500: #ff0000;
    --brand-600: #e60000;
    --brand-700: #c90000;
    --brand-800: #a60000;
    --brand-900: #870808;
    --ink-950: #171717;
    --ink-900: #262626;
    --ink-800: #404040;
    --ink-700: #525252;
    --ink-600: #737373;
    --ink-500: #8a8a8a;
    --ink-400: #a3a3a3;
    --ink-300: #d4d4d4;
    --ink-200: #e5e5e5;
    --ink-100: #f5f5f5;
    --ink-50: #fafafa;
    --surface: #ffffff;
    --surface-soft: #f8f8f8;
    --surface-raised: #ffffff;
    --text: #262626;
    --text-muted: #686868;
    --border: #e6e6e6;
    --focus: #111111;
    --success: #167647;
    --success-soft: #eaf8f0;
    --warning: #9a5b00;
    --warning-soft: #fff6dd;
    --danger: #b30000;
    --danger-soft: #fff0f0;
    --brand-action: #d90000;
    --brand-action-hover: #c00000;
    --brand-text: #c90000;
    --selection-text: #300000;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.06);
    --shadow-md: 0 12px 36px rgb(24 24 27 / 0.1);
    --shadow-lg: 0 26px 70px rgb(24 24 27 / 0.14);
    --radius-sm: 0.65rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --shell: 76rem;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --surface: #111111;
    --surface-soft: #191919;
    --surface-raised: #222222;
    --text: #f5f5f5;
    --text-muted: #b8b8b8;
    --border: #343434;
    --focus: #ffffff;
    --ink-950: #fafafa;
    --ink-900: #f5f5f5;
    --ink-800: #e5e5e5;
    --ink-700: #d4d4d4;
    --ink-600: #b8b8b8;
    --ink-100: #262626;
    --ink-50: #1b1b1b;
    --brand-50: #2b1111;
    --brand-100: #411313;
    --brand-200: #631515;
    --brand-text: #ff8585;
    --selection-text: #ffffff;
    --success-soft: #10291c;
    --warning: #ffd27a;
    --warning-soft: #30240e;
    --danger: #ff9b9b;
    --danger-soft: #351010;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-md: 0 12px 36px rgb(0 0 0 / 0.32);
    --shadow-lg: 0 26px 70px rgb(0 0 0 / 0.42);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 20rem;
    margin: 0;
    background: var(--surface);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body.dialog-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-underline-offset: 0.22em;
}

button {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

::selection {
    background: var(--brand-200);
    color: var(--selection-text);
}

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

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 999;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--ink-950);
    color: var(--surface);
    transform: translateY(-180%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.shell {
    width: min(100% - 2rem, var(--shell));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.nav-shell {
    position: relative;
    display: flex;
    min-height: 4.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.brand img {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
}

.brand span,
.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand strong,
.brand-name {
    color: #c90000;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.brand small,
.brand-tagline {
    color: #e11d48;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-top: 0.15rem;
}

.primary-nav {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 1.25rem;
    width: 17.5rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-raised);
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.primary-nav.is-open {
    display: flex;
}

.drawer-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.5rem 0.85rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.35rem;
}

.drawer-user-info strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text);
}

.drawer-user-info small {
    display: block;
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
}

.primary-nav > a,
.primary-nav .theme-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2.35rem;
    padding: 0.5rem 0.75rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.primary-nav > a:hover,
.primary-nav > a[aria-current="page"],
.primary-nav .theme-toggle:hover {
    background: var(--brand-50);
    color: var(--brand-text);
}

.primary-nav .theme-toggle {
    margin-top: 0.4rem;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    border-radius: 0;
    justify-content: space-between;
}

.theme-toggle svg,
.icon-button svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-button {
    display: inline-grid;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-raised);
    cursor: pointer;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

main {
    min-height: 58vh;
}

.route-loading {
    min-height: 24rem;
    display: grid;
    place-items: center;
    color: var(--text-muted);
}

.section {
    padding-block: clamp(4rem, 7vw, 7.5rem);
}

.section--soft {
    background: var(--surface-soft);
}

.section--compact {
    padding-block: 3rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1rem;
    color: var(--brand-text);
    font-size: 0.77rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 1.75rem;
    height: 2px;
    background: currentColor;
    content: "";
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin-top: 0;
    color: var(--text);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

h1 {
    margin-bottom: 1.35rem;
    font-size: clamp(2.45rem, 6vw, 5.4rem);
}

h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
    margin-bottom: 0.65rem;
    font-size: 1.15rem;
}

.lead {
    max-width: 45rem;
    margin: 0;
    color: var(--text-muted);
    font-size: clamp(1.02rem, 1.7vw, 1.22rem);
}

.muted {
    color: var(--text-muted);
}

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3.5rem, 7vw, 7rem);
    background:
        radial-gradient(circle at 8% 15%, rgb(255 0 0 / 0.1), transparent 32rem),
        linear-gradient(145deg, var(--surface) 55%, var(--brand-50));
}

.hero::after {
    position: absolute;
    right: -8rem;
    bottom: -14rem;
    width: 32rem;
    height: 32rem;
    border: 4rem solid rgb(255 0 0 / 0.055);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 6rem);
}

.hero h1 span {
    color: var(--brand-text);
}

.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.3rem;
    margin-top: 2.2rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.trust-row span::before {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--brand-500);
    content: "";
}

.hero-media {
    position: relative;
    min-height: 31rem;
}

.hero-media img {
    width: 100%;
    height: 31rem;
    border-radius: var(--radius-xl);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.hero-note {
    position: absolute;
    right: -1.2rem;
    bottom: 1.6rem;
    width: min(19rem, 85%);
    padding: 1rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-raised);
    box-shadow: var(--shadow-md);
}

.hero-note strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--brand-text);
}

.hero-note p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.button {
    display: inline-flex;
    min-height: 2.85rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.button--primary {
    background: var(--brand-action);
    color: #ffffff;
    box-shadow: 0 10px 28px rgb(255 0 0 / 0.22);
}

.button--primary:hover:not(:disabled) {
    background: var(--brand-action-hover);
}

.button--secondary {
    border-color: var(--border);
    background: var(--surface-raised);
    color: var(--text);
}

.button--secondary:hover:not(:disabled) {
    border-color: var(--brand-300);
    background: var(--brand-50);
    color: var(--brand-text);
}

.button--danger {
    border-color: var(--brand-200);
    background: var(--danger-soft);
    color: var(--danger);
}

.button--small {
    min-height: 2.35rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.84rem;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-heading > div {
    max-width: 46rem;
}

.section-heading p {
    margin: 0;
    color: var(--text-muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.card,
.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-raised);
    box-shadow: var(--shadow-sm);
}

.card {
    overflow: hidden;
}

.card__image {
    width: 100%;
    height: 13.5rem;
    object-fit: cover;
}

.card__body {
    padding: 1.35rem;
}

.card__body > :last-child {
    margin-bottom: 0;
}

.card__body p {
    color: var(--text-muted);
}

.feature-card {
    padding: 1.55rem;
}

.feature-number {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    margin-bottom: 1.2rem;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand-text);
    font-weight: 900;
}

.feature-card p {
    margin-bottom: 0;
    color: var(--text-muted);
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(2rem, 6vw, 5.5rem);
}

.split__media img {
    width: 100%;
    max-height: 34rem;
    border-radius: var(--radius-xl);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.clean-list,
.check-list,
.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.check-list li {
    position: relative;
    padding-left: 1.8rem;
}

.check-list li::before {
    position: absolute;
    top: 0.42rem;
    left: 0;
    width: 0.85rem;
    height: 0.85rem;
    border: 2px solid var(--brand-500);
    border-radius: 50%;
    content: "";
}

.cta-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    padding: clamp(1.7rem, 4vw, 3rem);
    border-radius: var(--radius-xl);
    background: var(--brand-600);
    color: #ffffff;
    box-shadow: 0 24px 60px rgb(230 0 0 / 0.24);
}

.cta-band h2,
.cta-band p {
    color: #ffffff;
}

.cta-band h2 {
    margin-bottom: 0.55rem;
}

.cta-band p {
    max-width: 45rem;
    margin: 0;
}

.cta-band .button--secondary {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--brand-700);
}

.page-hero {
    padding-block: clamp(3.5rem, 6vw, 6rem);
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 85% 20%, rgb(255 0 0 / 0.11), transparent 25rem),
        var(--surface-soft);
}

.page-hero .lead {
    max-width: 52rem;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.breadcrumbs a {
    color: var(--brand-text);
}

.status-panel {
    display: grid;
    min-height: 13rem;
    place-items: center;
    padding: 2rem;
    border: 1px dashed var(--ink-300);
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
    text-align: center;
}

.status-panel__inner {
    max-width: 35rem;
}

.status-panel h2,
.status-panel h3 {
    margin-bottom: 0.5rem;
}

.status-panel p {
    margin: 0;
    color: var(--text-muted);
}

.status-panel .button {
    margin-top: 1.2rem;
}

.status-panel--error {
    border-color: var(--brand-200);
    background: var(--danger-soft);
}

.loading-stack {
    display: grid;
    gap: 0.9rem;
    width: 100%;
}

.skeleton {
    position: relative;
    height: 6.5rem;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--ink-100);
}

.skeleton::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.5), transparent);
    content: "";
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    to { transform: translateX(100%); }
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.9rem;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 1.85rem;
    padding: 0.28rem 0.68rem;
    border-radius: 999px;
    background: var(--brand-50);
    color: var(--brand-text);
    font-size: 0.76rem;
    font-weight: 800;
}

.pill--neutral {
    background: var(--ink-100);
    color: var(--text-muted);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.news-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 1.4rem;
}

.news-card h2,
.news-card h3 {
    margin: 1rem 0 0.65rem;
    font-size: 1.25rem;
}

.news-card p {
    margin-top: 0;
    color: var(--text-muted);
}

.news-card__link {
    margin-top: auto;
    color: var(--brand-text);
    font-weight: 800;
}

.article {
    width: min(100% - 2rem, 51rem);
    margin-inline: auto;
    padding-block: clamp(3rem, 6vw, 6rem);
}

.article__header {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.article__body {
    margin-top: 2rem;
    font-size: 1.05rem;
}

.article__body p {
    margin-block: 0 1.25rem;
}

.newsletter {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(20rem, 1.15fr);
    align-items: center;
    gap: 2rem;
    padding: clamp(1.6rem, 4vw, 2.8rem);
    border: 1px solid var(--brand-200);
    border-radius: var(--radius-xl);
    background: var(--brand-50);
}

.newsletter h2 {
    margin-bottom: 0.5rem;
}

.newsletter p {
    margin: 0;
    color: var(--text-muted);
}

.inline-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.7rem;
    align-items: end;
}

.inline-form .form-status {
    grid-column: 1 / -1;
}

.newsletter-consent {
    display: flex;
    grid-column: 1 / -1;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.newsletter-consent input {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    margin-top: 0.16rem;
    accent-color: var(--brand-600);
}

.newsletter-consent input:focus-visible {
    outline: 3px solid rgb(230 0 0 / 0.24);
    outline-offset: 2px;
}

.capability-shell {
    width: min(100%, 48rem);
}

.capability-panel {
    min-height: 20rem;
    border-style: solid;
}

.status-panel--success {
    border-color: #8bc9a5;
    background: #edf9f1;
}

.status-panel--warning {
    border-color: #e9cf8e;
    background: var(--warning-soft);
}

.status-panel--info {
    border-color: #9bc4ea;
    background: #eef7ff;
}

[data-theme="dark"] .status-panel--success {
    background: rgb(27 112 61 / 0.2);
}

[data-theme="dark"] .status-panel--info {
    background: rgb(25 99 165 / 0.2);
}

.capability-actions,
.capability-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.capability-form .form-status {
    width: 100%;
}

.capability-note {
    margin-top: 1.15rem !important;
    font-size: 0.82rem;
}

.auth-section {
    min-height: 42rem;
    background:
        radial-gradient(circle at 12% 14%, rgb(255 0 0 / 0.1), transparent 28rem),
        var(--surface-soft);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(17rem, 0.82fr) minmax(24rem, 1.18fr);
    align-items: stretch;
    gap: 1.25rem;
    max-width: 68rem;
}

.auth-aside,
.auth-panel {
    padding: clamp(1.5rem, 4vw, 3rem);
}

.auth-aside {
    display: flex;
    min-height: 34rem;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 90% 10%, rgb(255 255 255 / 0.2), transparent 14rem),
        linear-gradient(145deg, var(--brand-700), var(--brand-900));
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.auth-aside .auth-brand,
.auth-aside .auth-brand small,
.auth-aside .eyebrow {
    color: #ffffff;
}

.auth-aside .auth-brand img {
    padding: 0.3rem;
    border-radius: 50%;
    background: #ffffff;
}

.auth-aside .eyebrow::before {
    background: #ffffff;
}

.auth-aside h2 {
    max-width: 13ch;
    margin-bottom: 0.8rem;
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.auth-aside p {
    max-width: 33rem;
    margin: 0;
    color: rgb(255 255 255 / 0.86);
}

.auth-assurances {
    display: grid;
    gap: 0.7rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.auth-assurances li {
    position: relative;
    padding-left: 1.55rem;
    color: rgb(255 255 255 / 0.92);
    font-size: 0.86rem;
    font-weight: 700;
}

.auth-assurances li::before {
    position: absolute;
    top: 0.48rem;
    left: 0;
    width: 0.55rem;
    height: 0.55rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    content: "";
}

.auth-panel {
    align-self: center;
    border-radius: var(--radius-xl);
}

.auth-panel h1 {
    margin-bottom: 0.65rem;
    font-size: clamp(2rem, 4vw, 3.1rem);
}

.auth-description {
    max-width: 42rem;
    margin: 0 0 1.75rem;
    color: var(--text-muted);
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-form .form-status {
    margin-top: 0;
}

.auth-submit {
    width: 100%;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.88rem;
}

.auth-links a {
    color: var(--brand-text);
    font-weight: 800;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.auth-progress {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    color: var(--text-muted);
    font-weight: 750;
}

.auth-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--brand-200);
    border-top-color: var(--brand-700);
    border-radius: 50%;
    animation: auth-spin 700ms linear infinite;
}

.account-details {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.account-details div {
    display: grid;
    grid-template-columns: minmax(7rem, 0.35fr) minmax(0, 1fr);
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.account-details dt {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.account-details dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 750;
}

.auth-form input:-webkit-autofill {
    -webkit-text-fill-color: var(--text);
    box-shadow: 0 0 0 1000px var(--surface-raised) inset;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

.forum-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.forum-filters {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) minmax(11rem, 0.55fr) auto;
    gap: 0.7rem;
    align-items: end;
}

.field {
    display: grid;
    gap: 0.42rem;
}

.field > span,
.field > label {
    font-size: 0.82rem;
    font-weight: 800;
}

.field__hint {
    margin: -0.1rem 0 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.input,
.select,
.textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-raised);
    color: var(--text);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input,
.select {
    min-height: 2.9rem;
    padding: 0.68rem 0.82rem;
}

.textarea {
    min-height: 8rem;
    padding: 0.75rem 0.82rem;
    resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgb(255 0 0 / 0.13);
    outline: 0;
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
    border-color: var(--danger);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-grid .field--full {
    grid-column: 1 / -1;
}

.form-status {
    min-height: 1.4rem;
    margin: 0.8rem 0 0;
    color: var(--danger);
    font-size: 0.86rem;
}

.topic-list {
    display: grid;
    gap: 0.9rem;
}

.topic-list--separated {
    margin-top: 1.25rem;
}

.forum-privacy {
    margin-bottom: 1.25rem;
}

.topic-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-raised);
    box-shadow: var(--shadow-sm);
}

.topic-card:hover {
    border-color: var(--brand-200);
    box-shadow: var(--shadow-md);
}

.topic-card h2 {
    margin: 0.65rem 0 0.55rem;
    font-size: 1.3rem;
}

.topic-card h2 a {
    text-decoration: none;
}

.topic-card h2 a:hover {
    color: var(--brand-text);
    text-decoration: underline;
}

.topic-card p {
    margin: 0;
    color: var(--text-muted);
}

.topic-card__counts {
    display: grid;
    min-width: 7rem;
    align-content: center;
    gap: 0.55rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-align: right;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.75rem;
}

.pagination p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.topic-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18rem;
    align-items: start;
    gap: 1.5rem;
}

.topic-header {
    padding: clamp(1.4rem, 3vw, 2.2rem);
}

.topic-header h1 {
    margin: 0.8rem 0 1rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.topic-header__body {
    margin-top: 1.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--border);
    white-space: pre-wrap;
}

.topic-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.4rem;
}

.topic-aside {
    position: sticky;
    top: 7.5rem;
    padding: 1.25rem;
}

.topic-aside h2 {
    font-size: 1.08rem;
}

.topic-aside p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.reply-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.25rem;
}

.discussion-heading {
    margin-top: 2rem;
}

.reply {
    padding: 1.1rem;
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand-200);
    border-radius: var(--radius-md);
    background: var(--surface-raised);
}

.reply[data-depth="1"] { margin-left: 1.5rem; }
.reply[data-depth="2"] { margin-left: 3rem; }
.reply[data-depth="3"] { margin-left: 4.5rem; }

.reply__body {
    margin: 0.8rem 0;
    white-space: pre-wrap;
}

.reply-form {
    margin-top: 1.5rem;
    padding: 1.35rem;
}

.dialog {
    width: min(100% - 2rem, 42rem);
    max-height: calc(100vh - 2rem);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-raised);
    color: var(--text);
    box-shadow: var(--shadow-lg);
}

.dialog::backdrop {
    background: rgb(0 0 0 / 0.58);
    backdrop-filter: blur(3px);
}

.dialog__header,
.dialog__body,
.dialog__footer {
    padding: 1.25rem 1.4rem;
}

.dialog__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}

.dialog__header h2 {
    margin: 0;
    font-size: 1.45rem;
}

.dialog__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
    border-top: 1px solid var(--border);
}

.guidance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.contact-guidance--after-notice {
    margin-top: 1.25rem;
}

.center-actions {
    margin-top: 1.25rem;
    text-align: center;
}

.guidance-card {
    padding: 1.5rem;
}

.guidance-card--urgent {
    border-color: var(--brand-200);
    background: var(--danger-soft);
}

.guidance-card h2 {
    font-size: 1.45rem;
}

.contact-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.contact-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-raised);
    color: var(--brand-text);
    font-weight: 800;
    text-decoration: none;
}

.contact-list a:hover {
    border-color: var(--brand-300);
    background: var(--brand-50);
}

.notice {
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.notice--warning {
    border-color: #e9cf8e;
    background: var(--warning-soft);
    color: var(--warning);
}

.notice--danger {
    border-color: var(--brand-200);
    background: var(--danger-soft);
    color: var(--danger);
}

.notice--success {
    border-color: #8bc9a8;
    background: var(--success-soft);
    color: var(--success);
}

.notice p:last-child {
    margin-bottom: 0;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface-soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 0.7fr));
    gap: 2.5rem;
    padding-block: 3.5rem;
}

.brand--footer {
    margin-bottom: 1rem;
}

.footer-grid p,
.footer-grid li {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-grid h2 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-grid ul {
    display: grid;
    gap: 0.55rem;
}

.footer-grid a:hover {
    color: var(--brand-text);
}

.service-status {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-weight: 750;
}

.service-status span {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--warning);
    box-shadow: 0 0 0 4px var(--warning-soft);
}

.service-status[data-state="online"] span {
    background: var(--success);
    box-shadow: 0 0 0 4px var(--success-soft);
}

.service-status[data-state="offline"] span {
    background: var(--danger);
    box-shadow: 0 0 0 4px var(--danger-soft);
}

.footer-small {
    margin-top: 0.8rem;
}

.footer-base {
    padding-block: 1.2rem;
    border-top: 1px solid var(--border);
}

.footer-base p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.toast-region {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 100;
    display: grid;
    width: min(24rem, calc(100% - 2rem));
    gap: 0.65rem;
}

.toast {
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-raised);
    box-shadow: var(--shadow-lg);
}

.toast--success {
    border-color: #8bc9a8;
    background: var(--success-soft);
}

.toast--error {
    border-color: var(--brand-200);
    background: var(--danger-soft);
}

.noscript {
    position: fixed;
    inset: auto 1rem 1rem;
    z-index: 200;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--brand-action);
    color: #ffffff;
    text-align: center;
}

@media (max-width: 64rem) {
    .card-grid,
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topic-layout {
        grid-template-columns: 1fr;
    }

    .topic-aside {
        position: static;
        order: -1;
    }
}

@media (max-width: 52rem) {
    .hero-grid,
    .split,
    .newsletter,
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        min-height: auto;
    }

    .auth-aside h2 {
        max-width: 24ch;
    }

    .hero-media {
        min-height: 23rem;
    }

    .hero-media img {
        height: 24rem;
    }

    .hero-note {
        right: 1rem;
    }

    .forum-toolbar {
        grid-template-columns: 1fr;
    }

    .forum-toolbar > .button {
        justify-self: start;
    }

    .forum-filters {
        grid-template-columns: 1fr 1fr;
    }

    .forum-filters .field:first-child {
        grid-column: 1 / -1;
    }

    .inline-form {
        grid-template-columns: 1fr 1fr;
    }

    .inline-form .button {
        grid-column: 1 / -1;
    }

    .cta-band {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   DamuMoja Social Network Styles (damumoja.co.tz.pdf)
   ========================================================================== */

.header-search-bar {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 480px;
    max-width: 480px;
    margin-inline: 1.5rem;
}

.header-search-bar input[type="search"] {
    width: 100%;
    height: 2.75rem;
    padding: 0 1.35rem;
    border-radius: 9999px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: var(--text);
    font-size: 0.88rem;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.header-search-bar input[type="search"]::placeholder {
    color: #94a3b8;
    font-size: 0.88rem;
}

html[data-theme="dark"] .header-search-bar input[type="search"] {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

.header-search-bar input[type="search"]:focus {
    border-color: #c90000;
    box-shadow: 0 0 0 3px rgba(201, 0, 0, 0.12);
}

.header-social-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.social-nav-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 3.6rem;
    padding: 0.35rem 0.45rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #1e293b;
    transition: background 0.15s ease;
}

html[data-theme="dark"] .social-nav-tab {
    color: #cbd5e1;
}

.social-nav-tab:hover {
    background: rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .social-nav-tab:hover {
    background: rgba(255, 255, 255, 0.06);
}

.social-tab-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
}

.social-tab-icon svg {
    width: 1.4rem;
    height: 1.4rem;
    fill: currentColor;
}

.social-nav-tab.is-active {
    color: #c90000;
}

.social-nav-tab.is-active .social-tab-icon svg {
    fill: #c90000;
    color: #c90000;
}

.social-tab-label {
    font-size: 0.72rem;
    font-weight: 500;
    margin-top: 0.2rem;
    line-height: 1;
    color: #1e293b;
}

html[data-theme="dark"] .social-tab-label {
    color: #94a3b8;
}

.social-nav-tab.is-active .social-tab-label {
    color: #0f172a;
    font-weight: 600;
}

html[data-theme="dark"] .social-nav-tab.is-active .social-tab-label {
    color: #f8fafc;
}

.tab-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.55rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.22rem;
    border-radius: 9999px;
    background: #c90000;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

html[data-theme="dark"] .tab-badge {
    border-color: #0f172a;
}

.header-user-widget {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.5rem;
}

.header-user-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #0f172a;
    padding: 0.25rem 0.35rem;
    border-radius: 9999px;
    transition: background 0.15s ease;
}

.header-user-profile:hover {
    background: rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .header-user-profile {
    color: #f8fafc;
}

.header-user-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: #c90000;
    flex-shrink: 0;
    display: block;
}

.header-user-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f172a;
}

html[data-theme="dark"] .header-user-name {
    color: #f8fafc;
}

.header-user-widget .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #475569;
    cursor: pointer;
    border-radius: 9999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.header-user-widget .nav-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

html[data-theme="dark"] .header-user-widget .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.header-user-caret {
    width: 0.95rem;
    height: 0.95rem;
}

@media (max-width: 62rem) {
    .header-search-bar {
        max-width: 260px;
    }
    .social-tab-label {
        display: none;
    }
    .social-nav-tab {
        min-width: 2.5rem;
        height: 2.5rem;
        padding: 0;
    }
}

@media (max-width: 48rem) {
    .nav-shell {
        min-height: 4rem;
        gap: 0.5rem;
    }
    .brand img {
        width: 2.25rem;
        height: 2.25rem;
    }
    .brand-name {
        font-size: 1.1rem;
    }
    .header-search-bar {
        display: none;
    }
    .header-user-name {
        display: none;
    }
    .brand-tagline {
        display: none;
    }
    .header-user-avatar {
        width: 2rem;
        height: 2rem;
    }
    .header-social-actions {
        gap: 0.35rem;
    }
    .social-nav-tab {
        min-width: 2.2rem;
        height: 2.2rem;
        padding: 0;
    }
    .primary-nav {
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }
}

@media (max-width: 32rem) {
    .social-nav-tab[title="Friends"],
    .social-nav-tab[title="Messages"] {
        display: none;
    }
    .header-social-actions {
        gap: 0.25rem;
    }
    .header-user-widget {
        margin-left: 0.15rem;
        gap: 0.15rem;
    }
}

/* 3-Column Social Network Layout */
.social-layout-shell {
    width: 100%;
    background: var(--surface-soft);
    padding-block: 1.5rem 3rem;
}

.social-network-layout {
    display: grid;
    grid-template-columns: 280px minmax(460px, 1fr) 330px;
    gap: 1.25rem;
    width: min(100% - 2rem, 88rem);
    margin: 0 auto;
    align-items: start;
}

.social-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.04);
}

.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.card-header-row h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.link-small {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-600);
    text-decoration: none;
}

.link-small:hover {
    text-decoration: underline;
}

/* User Mini Card */
.user-mini-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.user-avatar-wrap {
    position: relative;
}

.avatar-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-900));
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background: #10b981;
    border: 2px solid var(--surface);
}

.user-mini-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-mini-name {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-mini-status {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
}

.user-mini-link {
    font-size: 0.78rem;
    color: var(--ink-500);
    text-decoration: none;
    margin-top: 0.2rem;
}

.user-mini-link:hover {
    color: var(--brand-600);
}

/* Social Side Nav */
.social-side-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.side-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    color: var(--ink-800);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.side-nav-item:hover {
    background: var(--surface-soft);
    color: var(--brand-600);
}

.side-nav-item.is-active {
    background: var(--brand-50);
    color: var(--brand-600);
    font-weight: 700;
}

.side-nav-icon {
    font-size: 1.15rem;
    line-height: 1;
    width: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-badge {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    background: var(--ink-200);
    color: var(--ink-800);
}

.side-badge--red {
    background: var(--brand-600);
    color: #ffffff;
}

.side-nav-section {
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px dashed var(--border);
}

.side-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink-600);
}

.side-sub-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-left: 1.5rem;
}

.side-sub-item {
    display: flex;
    align-items: center;
    padding: 0.45rem 0.6rem;
    border-radius: 0.4rem;
    color: var(--ink-700);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
}

.side-sub-item:hover {
    background: var(--surface-soft);
    color: var(--brand-600);
}

/* My Groups List */
.my-groups-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.group-list-link {
    display: flex;
    flex-direction: column;
    padding: 0.45rem 0.6rem;
    border-radius: 0.4rem;
    text-decoration: none;
    transition: background 0.15s ease;
}

.group-list-link:hover {
    background: var(--surface-soft);
}

.group-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.group-members {
    font-size: 0.72rem;
    color: var(--ink-500);
}

/* Left CTA Blood Banner */
.cta-blood-banner {
    background: linear-gradient(135deg, #c90000 0%, #870808 100%);
    color: #ffffff;
    border: none;
    text-align: center;
    padding: 1.25rem 1rem;
}

.cta-blood-icon {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.cta-blood-banner h4 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.cta-blood-banner p {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    opacity: 0.9;
}

/* Center Column Stories */
.social-center-col {
    min-width: 0;
}

.stories-track {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0.25rem 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.stories-track::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
    text-align: center;
}

.story-avatar-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    padding: 2.5px;
    background: linear-gradient(45deg, #ff0000, #ff8585, #ff5c5c);
    box-shadow: 0 2px 6px rgb(255 0 0 / 0.2);
    transition: transform 0.15s ease;
}

.story-item:hover .story-avatar-ring {
    transform: scale(1.06);
}

.story-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background: var(--surface);
    color: var(--brand-700);
    font-size: 0.88rem;
    font-weight: 700;
    border: 2px solid var(--surface);
}

.story-item--add .story-add-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: var(--surface-soft);
    border: 2px dashed var(--brand-400);
    color: var(--brand-600);
    font-size: 1.5rem;
    font-weight: 700;
    transition: background 0.15s ease, transform 0.15s ease;
}

.story-item--add:hover .story-add-icon {
    background: var(--brand-50);
    transform: scale(1.06);
}

.story-name {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text);
    max-width: 4.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Post Composer */
.social-composer {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.composer-top {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.composer-input {
    flex: 1 1 auto;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: var(--surface-soft);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.composer-input:focus {
    background: var(--surface);
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px var(--brand-100);
}

.composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.composer-pills {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.composer-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    color: var(--ink-700);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.composer-pill:hover {
    background: var(--brand-50);
    border-color: var(--brand-200);
    color: var(--brand-700);
}

/* Social Feed Posts */
.social-feed {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.social-post {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-author-meta {
    display: flex;
    flex-direction: column;
}

.author-title-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
    color: var(--text);
}

.badge-verified {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 9999px;
    background: #e0f2fe;
    color: #0369a1;
}

.post-group {
    font-size: 0.82rem;
    color: var(--brand-600);
    font-weight: 600;
}

.post-time {
    font-size: 0.75rem;
    color: var(--ink-500);
}

.post-body p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text);
}

.post-hashtags {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.post-hashtag {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-600);
}

.post-media-frame {
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.post-media-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.post-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--ink-500);
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

.reaction-icons {
    margin-right: 0.3rem;
}

.post-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-block: 0.2rem 0.4rem;
    border-bottom: 1px solid var(--border);
}

.post-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    color: var(--ink-700);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.post-act-btn:hover {
    background: var(--surface-soft);
    color: var(--brand-600);
}

.post-act-btn.is-liked {
    color: var(--brand-600);
    font-weight: 700;
}

.post-comments-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.4rem;
}

.comments-thread {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.comment-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.comment-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: var(--ink-200);
    color: var(--ink-800);
    font-size: 0.75rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.comment-bubble {
    background: var(--surface-soft);
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    flex: 1 1 auto;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    margin-bottom: 0.2rem;
}

.comment-header strong {
    color: var(--text);
}

.comment-header time {
    color: var(--ink-500);
    font-size: 0.72rem;
}

.comment-bubble p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text);
}

.comment-composer-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.comment-avatar-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.comment-input {
    flex: 1 1 auto;
    padding: 0.45rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    color: var(--text);
    font-size: 0.84rem;
    outline: none;
}

.comment-input:focus {
    background: var(--surface);
    border-color: var(--brand-500);
}

/* Right Column: Verified Requests */
.social-right-col {
    min-width: 0;
}

.verified-requests-card {
    border-top: 3px solid var(--brand-600);
}

.requests-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.blood-req-card {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    padding: 0.75rem;
}

.req-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
}

.req-header strong {
    color: var(--text);
}

.req-urgency-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-600);
}

.req-hospital {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    color: var(--ink-600);
}

.req-pills-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.blood-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.5rem;
    border-radius: 0.35rem;
    background: var(--brand-600);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.req-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.4rem;
    border-top: 1px dashed var(--border);
}

.req-time {
    font-size: 0.72rem;
    color: var(--ink-500);
}

.req-share-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.35rem;
    border: 1px solid #10b981;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.req-share-whatsapp-btn:hover {
    background: #d1fae5;
}

.btn-new-request {
    margin-top: 0.25rem;
    font-weight: 700;
}

/* Popular Groups */
.popular-groups-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.popular-group-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.popular-group-row .group-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.popular-group-row .group-info strong {
    font-size: 0.82rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-group-row .group-info small {
    font-size: 0.72rem;
    color: var(--ink-500);
}

.button-join {
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid var(--brand-600);
    background: transparent;
    color: var(--brand-600);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    flex: 0 0 auto;
}

.button-join:hover {
    background: var(--brand-50);
}

.button-join.is-joined {
    background: var(--brand-600);
    color: #ffffff;
}

/* Edu & News Widget */
.edu-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.edu-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.15s ease;
}

.edu-item:hover {
    background: var(--surface-soft);
}

.edu-item strong {
    font-size: 0.84rem;
    color: var(--text);
}

.edu-tag {
    font-size: 0.72rem;
    color: var(--ink-500);
}

/* Directory Finder Card */
.directory-finder-card p {
    margin: 0 0 0.75rem;
    font-size: 0.84rem;
    color: var(--text);
}

/* Upcoming Events Widget */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.event-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed var(--border);
}

.event-item:last-child {
    border-bottom: none;
}

.event-item strong {
    font-size: 0.82rem;
    color: var(--text);
}

.event-item span {
    font-size: 0.72rem;
    color: var(--ink-500);
}

.events-all-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-600);
    text-decoration: none;
}

.events-all-link:hover {
    text-decoration: underline;
}

/* Campaign Banner Card */
.campaign-banner-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--brand-50) 100%);
    border: 1px solid var(--brand-200);
    text-align: center;
    padding: 1.25rem 1rem;
}

.campaign-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    background: var(--brand-100);
    color: var(--brand-700);
    font-size: 0.68rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.campaign-banner-card h4 {
    margin: 0 0 0.25rem;
    font-size: 0.98rem;
    color: var(--brand-700);
}

.campaign-banner-card p {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    color: var(--ink-600);
}

/* Footer Enhancements */
.footer-brand-col .brand--footer {
    margin-bottom: 0.5rem;
}

.footer-slogan {
    font-size: 0.82rem;
    color: var(--ink-600);
    margin: 0 0 0.35rem;
}

.footer-hashtag {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-600);
    margin: 0 0 0.75rem;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-circle-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--ink-700);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.15s ease, color 0.15s ease;
}

.social-circle-link:hover {
    background: var(--brand-50);
    color: var(--brand-600);
    border-color: var(--brand-200);
}

.footer-contact-block p {
    margin: 0 0 0.4rem;
    font-size: 0.82rem;
    color: var(--ink-600);
}

.footer-contact-block a {
    color: var(--brand-600);
    text-decoration: none;
}

.footer-contact-block a:hover {
    text-decoration: underline;
}

.footer-newsletter-box {
    margin-top: 0.75rem;
}

.newsletter-lead {
    font-size: 0.78rem;
    color: var(--ink-500);
    margin-bottom: 0.5rem;
}

/* Social Dialogs */
.social-dialog {
    border: none;
    border-radius: 1.25rem;
    padding: 0;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    max-width: 32rem;
    width: 90vw;
}

.social-dialog::backdrop {
    background: rgb(0 0 0 / 0.45);
    backdrop-filter: blur(4px);
}

.social-dialog .dialog__content {
    display: flex;
    flex-direction: column;
}

.social-dialog .dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.social-dialog .dialog__header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.social-dialog .dialog__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dialog-note {
    margin: 0;
    font-size: 0.84rem;
    color: var(--ink-600);
}

.dialog-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dialog-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-800);
}

.social-dialog .dialog__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

/* Story Viewer Modal */
.story-viewer-body {
    padding: 1.5rem;
    text-align: center;
}

.story-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.story-progress-fill {
    width: 100%;
    height: 100%;
    background: var(--brand-600);
    animation: storyProgress 6s linear forwards;
}

@keyframes storyProgress {
    from { width: 0%; }
    to { width: 100%; }
}

.story-card-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.story-large-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-900));
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 800;
}

.story-viewer-text {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--text);
    margin: 0;
}

.story-heart-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--brand-200);
}

/* Responsive Grid Adjustments */
@media (max-width: 72rem) {
    .social-network-layout {
        grid-template-columns: 260px 1fr;
    }
    .social-right-col {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 54rem) {
    .social-network-layout {
        grid-template-columns: 1fr;
    }
    .social-left-col {
        display: none;
    }
    .header-search-bar {
        margin-inline: 0.5rem;
    }
}

@media (max-width: 38rem) {
    .shell {
        width: min(100% - 1.25rem, var(--shell));
    }

    .brand small {
        display: none;
    }

    .nav-shell {
        min-height: 4.5rem;
    }

    .hero,
    .page-hero {
        padding-block: 3rem;
    }

    .auth-section {
        min-height: 0;
        padding-block: 1.25rem;
    }

    .auth-aside,
    .auth-panel {
        padding: 1.35rem;
        border-radius: var(--radius-lg);
    }

    .auth-actions .button {
        width: 100%;
    }

    .account-details div {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .hero-media {
        min-height: 20rem;
    }

    .hero-media img {
        height: 21rem;
        border-radius: var(--radius-lg);
    }

    .hero-note {
        right: 0.65rem;
        bottom: 0.65rem;
    }

    .hero-actions .button,
    .button-row .button {
        width: 100%;
    }

    .card-grid,
    .news-grid,
    .guidance-grid,
    .form-grid,
    .footer-grid,
    .forum-filters,
    .inline-form {
        grid-template-columns: 1fr;
    }

    .forum-filters .field:first-child,
    .inline-form .button,
    .form-grid .field--full {
        grid-column: auto;
    }

    .section-heading {
        display: block;
    }

    .section-heading .button {
        margin-top: 1rem;
    }

    .topic-card {
        grid-template-columns: 1fr;
    }

    .topic-card__counts {
        display: flex;
        min-width: 0;
        text-align: left;
    }

    .reply[data-depth="1"] { margin-left: 0.65rem; }
    .reply[data-depth="2"] { margin-left: 1.3rem; }
    .reply[data-depth="3"] { margin-left: 1.95rem; }

    .dialog__footer {
        flex-direction: column-reverse;
    }

    .dialog__footer .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
