/* =========================================================
   Greatest Interactive — Donate
   Rebuilt to be fully self-contained: this stylesheet previously
   relied on .pill-button and .eyebrow, both of which only exist in
   home.css — a file this page never loads. Those elements were
   rendering with zero styling (default browser buttons, plain
   text labels), which was the bulk of what read as "dirty." Both
   are now defined here.

   Hero also rebuilt to match the current site-wide hero language
   (see home.css): no floating avatar cards, no spinning sparkle
   decorations, no rounded overlapping content panel — clean
   gradient-or-image background with a scrim, single eyebrow +
   headline + CTA. --hero-image is now actually applied (it was set
   by the template but never consumed by any rule before).
   ========================================================= */

h1, h2, h3 {
    line-height: 1.08;
    margin: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-blue);
    background: var(--brand-blue-soft);
    border: 1px solid rgba(45, 125, 246, 0.2);
    border-radius: 999px;
    padding: 8px 12px;
    margin-bottom: 10px;
}

/* ---------------------------------------------------------
   Pill buttons — defined here since this page doesn't load
   home.css, where the class originally lived.
   --------------------------------------------------------- */

.pill-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 26px;
    background: #111111;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    font-family: inherit;
    text-decoration: none;
    border: 1px solid #111111;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pill-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.45);
    background: var(--brand-red);
    border-color: var(--brand-red);
}

.pill-button--blue:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
}

.pill-button--yellow:hover {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: var(--ink);
}

.pill-button--ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
}

.pill-button--ghost:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
}

:root[data-theme="dark"] .pill-button {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #ffffff;
}

:root[data-theme="dark"] .pill-button:hover {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: var(--ink);
}

/* ---------------------------------------------------------
   Hero — clean, single background layer (gradient by default,
   the configured hero image when present), scrim for text
   contrast on an image, no decorative floaters/sparkles.
   --------------------------------------------------------- */

.hero.donate-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(90px, 16vh, 130px) 20px clamp(64px, 10vh, 96px);
    background-image: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    overflow: hidden;
}

.hero.donate-hero.has-image {
    background-image: var(--hero-image);
}

.hero.donate-hero.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 12, 26, 0.5) 0%,
        rgba(15, 12, 26, 0.3) 45%,
        rgba(15, 12, 26, 0.6) 100%
    );
}

.donate-hero .hero-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.donate-hero h1 {
    font-size: clamp(30px, 5vw, 50px);
    font-weight: 800;
    color: var(--ink);
}

.donate-hero.has-image h1 {
    color: #ffffff;
}

.donate-hero p {
    margin-top: 16px;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.6;
    color: var(--muted);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.donate-hero.has-image p {
    color: rgba(255, 255, 255, 0.86);
}

.donate-hero .hero-cta {
    margin-top: 26px;
}

.donate-hero.has-image .eyebrow {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.95);
    color: #6b5000;
    box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.7);
}

.donate-hero .hero-cta {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: var(--ink);
    box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.7);
}

.donate-hero .hero-cta:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #ffffff;
}

/* ---------------------------------------------------------
   Content — plain background, straight edge from the hero
   (no rounded overlap trick).
   --------------------------------------------------------- */

.content-panel {
    background: var(--paper);
}

.section {
    padding: 72px 20px;
}

.section-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 36px;
}

.section-header h2 {
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 800;
    color: var(--ink);
}

.section-header p {
    color: var(--muted);
    max-width: 340px;
    font-size: 15px;
}

.donate-custom-cta {
    padding-top: 16px;
}

.donate-custom-cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    max-width: 980px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg, 28px);
    background: linear-gradient(135deg, var(--brand-red), var(--brand-blue));
    box-shadow: var(--shadow-soft);
}

.donate-custom-cta-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.donate-custom-cta-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    color: #fff;
    text-align: center;
    width: 100%;
}

.donate-custom-cta-copy .eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.24);
}

.donate-custom-cta-copy h2 {
    margin: 16px 0 10px;
    color: #fff;
    font-size: clamp(26px, 4vw, 42px);
    white-space: normal;
}

.donate-custom-cta-copy p {
    max-width: 520px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.donate-custom-cta-copy .pill-button {
    margin-top: 0;
}

@media (max-width: 720px) {
    .donate-custom-cta-image {
        min-height: 180px;
        max-height: 240px;
        height: 200px;
    }

    .donate-custom-cta-copy {
        padding: 32px 24px;
    }

    .donate-custom-cta-copy h2 {
        font-size: clamp(24px, 8vw, 34px);
    }
}

/* ---------------------------------------------------------
   Summary — copy + progress card, side by side.
   --------------------------------------------------------- */

.donate-summary-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 32px;
    align-items: start;
}

.donate-copy h2 {
    font-size: clamp(26px, 3.6vw, 38px);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--ink);
}

.donate-copy p {
    color: var(--muted);
    line-height: 1.7;
    max-width: 620px;
}

.donation-form-card,
.donate-progress-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 28px;
}

.progress-head,
.progress-meta,
.progress-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.progress-head strong {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.progress-head span {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
}

.progress-track {
    margin: 16px 0 10px;
    height: 6px;
    background: var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--pill-bg);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.progress-meta,
.progress-footer {
    color: var(--muted);
    font-size: 13.5px;
}

.progress-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.stat-value {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------
   Donation form
   --------------------------------------------------------- */

.donation-form-section {
    padding-top: 0;
}

.donation-form-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: start;
}

.donation-form-card h2 {
    margin-top: 8px;
    font-size: clamp(22px, 2.8vw, 28px);
    font-weight: 800;
    color: var(--ink);
}

.donation-form-card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 14.5px;
}

.donation-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.field-group {
    display: grid;
    gap: 8px;
}

.field-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    overflow: hidden;
}

.currency {
    padding: 0 12px;
    color: var(--muted);
    font-weight: 700;
}

.donation-form select,
.donation-form input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    outline: none;
    background: var(--paper);
}

.input-group input {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.donation-form select:focus,
.donation-form input:focus {
    border-color: var(--violet-500);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.16);
}

.donation-form select:disabled,
.donation-form input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-panel {
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 4px;
}

.payment-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.payment-panel p {
    font-size: 13.5px;
    color: var(--muted);
    margin: 10px 0 0;
    line-height: 1.6;
}

.payment-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--tile-a);
    color: var(--ink);
}

.payment-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-column {
    display: grid;
    gap: 8px;
}

.donation-form .pill-button {
    width: fit-content;
    max-width: 100%;
}

.donation-form .donate-submit {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: var(--ink);
    justify-self: start;
}

.donation-form .donate-submit:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #ffffff;
}

.donation-note {
    font-size: 13.5px;
    color: var(--muted);
    margin: 0;
}

.donation-success {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(127, 224, 192, 0.18);
    border: 1px solid var(--mint);
    color: var(--ink);
    font-size: 14px;
}

.donation-highlights {
    display: grid;
    gap: 16px;
}

.highlight-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: 0 10px 20px -18px rgba(27, 19, 48, 0.28);
}

.highlight-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.highlight-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    border: 1px solid transparent;
}

.highlight-badge--red {
    background: var(--brand-red-soft);
    color: var(--brand-red);
    border-color: rgba(218, 67, 50, 0.12);
}

.highlight-badge--blue {
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
    border-color: rgba(45, 125, 246, 0.12);
}

.highlight-badge--yellow {
    background: var(--brand-yellow-soft);
    color: var(--brand-yellow);
    border-color: rgba(245, 196, 81, 0.18);
}

.highlight-card .stat-value,
.highlight-card .support-text,
.highlight-card .highlight-list {
    display: block;
}

.highlight-card .stat-value {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.04em;
}

.support-text {
    color: var(--ink);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
}

.highlight-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.highlight-list span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* ---------------------------------------------------------
   Payment options grid — auto-fill + capped width so it can
   never stretch a lone/partial row of cards.
   --------------------------------------------------------- */

.donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 280px));
    justify-content: center;
    gap: 20px;
}

.donate-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.donate-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-blue);
}

.donate-card:nth-child(2):hover {
    border-color: var(--brand-red);
}

.donate-card:nth-child(3):hover {
    border-color: var(--brand-yellow);
}

.donate-card:nth-child(4):hover {
    border-color: var(--brand-blue);
}

.card-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.donate-card:hover .card-arrow {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
    transform: rotate(45deg);
}

.card-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 16px;
    color: var(--ink);
}

.tile-a { background: var(--tile-a); color: var(--brand-red); }
.tile-b { background: var(--tile-b); color: var(--brand-blue); }
.tile-c { background: var(--tile-c); color: #9a7200; }
.tile-d { background: var(--tile-d); color: var(--brand-red); }

:root[data-theme="dark"] .donate-card:hover {
    border-color: var(--brand-yellow);
}

:root[data-theme="dark"] .card-arrow {
    background: var(--surface);
    color: var(--ink);
}

:root[data-theme="dark"] .donate-card:hover .card-arrow {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: #17121f;
}

:root[data-theme="dark"] .tile-a {
    background: rgba(218, 67, 50, 0.18);
    color: #ff9b90;
}

:root[data-theme="dark"] .tile-b {
    background: rgba(45, 125, 246, 0.18);
    color: #9bc4ff;
}

:root[data-theme="dark"] .tile-c {
    background: rgba(245, 196, 81, 0.18);
    color: #ffd879;
}

:root[data-theme="dark"] .tile-d {
    background: rgba(218, 67, 50, 0.18);
    color: #ff9b90;
}

.donate-card h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
}

.donate-card p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
}

/* ---------------------------------------------------------
   Scroll reveal
   --------------------------------------------------------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 900px) {
    .donate-summary-grid,
    .donation-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .section { padding: 56px 20px; }
    .payment-row { grid-template-columns: 1fr; }
    .donate-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

.donation-form .donate-submit {
    width: fit-content;
    max-width: 100%;
}

:root[data-theme="dark"] .donation-form-card .eyebrow {
    background: rgba(245, 196, 81, 0.16);
    border-color: rgba(255, 216, 121, 0.28);
    color: #ffd879;
}

:root[data-theme="dark"] .highlight-badge--red {
    background: rgba(218, 67, 50, 0.18);
    border-color: rgba(255, 139, 127, 0.24);
    color: #ff9b90;
}

:root[data-theme="dark"] .highlight-badge--blue {
    background: rgba(45, 125, 246, 0.18);
    border-color: rgba(138, 184, 255, 0.26);
    color: #9bc4ff;
}

:root[data-theme="dark"] .highlight-badge--yellow {
    background: rgba(245, 196, 81, 0.16);
    border-color: rgba(255, 216, 121, 0.28);
    color: #ffd879;
}

.donate-card:hover .card-tile {
    color: var(--brand-blue);
}

.donate-card:nth-child(2):hover .card-tile {
    color: var(--brand-red);
}

.donate-card:nth-child(3):hover .card-tile {
    color: var(--brand-yellow);
}

.donate-card:nth-child(4):hover .card-tile {
    color: var(--brand-blue);
}

:root[data-theme="dark"] .donor-dashboard .eyebrow,
:root[data-theme="dark"] .donation-options > .section-inner > .section-header .eyebrow {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: #f5f1ff;
}