/* ==========================================================================
   Winter appeals — branded short-video showcase for Al-Amal Center.
   Palette follows the logo: bright green + navy, with a warm amber for
   "warmth" calls to action against the cold winter night.
   ========================================================================== */

:root {
    --ap-night: #0c1d3a;
    --ap-night-2: #12284d;
    --ap-night-3: #1b3a6b;
    --ap-navy: #1b3a6b;
    --ap-green: #3fd32a;
    --ap-green-soft: #c9f7c2;
    --ap-action: #13795b;
    --ap-action-2: #22a447;
    --ap-action-ink: #ffffff;
    --ap-critical: #3fd32a;
    --ap-urgent: #1b3a6b;
    --ap-normal: #ffffff;
    --ap-text-soft: rgba(226, 236, 255, 0.84);
    --ap-frame-gradient: linear-gradient(150deg, #3fd32a 0%, #1b3a6b 52%, #12284d 100%);
}

:lang(ar) .appeal-card q,
:lang(ar) .appeal-quote q {
    quotes: "«" "»";
}

.appeal-card q,
.appeal-quote q {
    quotes: "“" "”";
}

/* ---------- Buttons ---------- */

.appeal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.7rem 1.4rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.appeal-btn--lg {
    min-height: 54px;
    padding: 0.85rem 1.8rem;
    font-size: 1.06rem;
}

.appeal-btn--primary {
    background: linear-gradient(180deg, var(--ap-action-2), var(--ap-action));
    color: var(--ap-action-ink);
    box-shadow: 0 10px 26px rgba(34, 164, 71, 0.35);
}

.appeal-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(34, 164, 71, 0.45);
}

.appeal-btn--ghost-light {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.appeal-btn--ghost-light:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.appeal-btn:focus-visible,
.appeal-card__open:focus-visible,
.appeal-share__btn:focus-visible,
.appeals-viewer__nav:focus-visible,
.appeals-viewer__close:focus-visible,
.appeal-frame__fullscreen:focus-visible,
.appeals-filters button:focus-visible {
    outline: 3px solid #7be06b;
    outline-offset: 3px;
}

/* ---------- Kicker, ticks, pulse ---------- */

.appeals-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.35rem 0.95rem;
    border: 1px solid rgba(63, 211, 42, 0.38);
    border-radius: 999px;
    background: rgba(63, 211, 42, 0.13);
    color: #b9f5b0;
    font-size: 0.86rem;
    font-weight: 800;
}

.appeals-kicker--dark {
    border-color: rgba(19, 121, 91, 0.25);
    background: rgba(19, 121, 91, 0.09);
    color: #0e5b45;
}

.appeals-tick {
    position: relative;
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ap-green);
}

.appeals-tick::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 8px;
    width: 5px;
    height: 10px;
    border: solid #06240a;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.appeals-pulse {
    position: relative;
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ap-critical);
}

.appeals-pulse::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--ap-critical);
    animation: ap-pulse 1.8s ease-out infinite;
}

/* ---------- Winter rain layer ---------- */

.appeals-weather {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg stroke='white' stroke-opacity='.32' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M12 4l-4 16M52 34l-4 16M92 12l-4 16M32 74l-4 16M72 62l-4 16M112 84l-4 16M22 104l-3 12M84 100l-4 16'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg stroke='white' stroke-opacity='.18' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M20 10l-5 22M90 50l-5 22M150 20l-5 22M60 120l-5 22M130 110l-5 22M170 150l-4 18'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 120px, 180px 180px;
    animation: ap-rain 0.9s linear infinite;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 65%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.55) 65%, transparent 100%);
}

.appeals-weather--soft {
    opacity: 0.3;
}

/* ---------- Branded frame (the logo "wrapper") ---------- */

.appeal-frame {
    position: relative;
    margin: 0;
    padding: 6px 6px 0;
    border-radius: 28px;
    background: var(--ap-frame-gradient);
    box-shadow: 0 30px 60px rgba(3, 10, 25, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.appeal-frame__screen {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    isolation: isolate;
    border-radius: 22px;
    background: #030a16;
}

.appeal-frame__video,
.appeal-frame__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #030a16;
    object-fit: contain;
}

/* The cover fills the vertical frame; once playback starts the whole picture is shown. */
.appeal-frame__video {
    object-fit: cover;
}

.appeal-frame.is-playing .appeal-frame__video {
    object-fit: contain;
}

.appeal-frame__video[hidden],
.appeal-frame__iframe[hidden] {
    display: none;
}

.appeal-brand {
    position: absolute;
    z-index: 3;
    top: 12px;
    inset-inline-start: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: calc(100% - 74px);
    padding-block: 5px;
    padding-inline: 5px 14px;
    border-radius: 999px;
    background: rgba(5, 14, 30, 0.58);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    pointer-events: none;
}

.appeal-brand__logo {
    display: grid;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(63, 211, 42, 0.95);
}

.appeal-brand__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.appeal-brand__text {
    min-width: 0;
    line-height: 1.25;
}

.appeal-brand__text strong {
    display: block;
    overflow: hidden;
    font-size: 0.8rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.appeal-brand__text small {
    display: block;
    color: var(--ap-green-soft);
    font-size: 0.7rem;
    font-weight: 700;
}

.appeal-urgency {
    position: absolute;
    z-index: 3;
    top: 64px;
    inset-inline-start: 12px;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: var(--ap-urgent);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.appeal-urgency[hidden] {
    display: none;
}

.appeal-urgency--urgent {
    border: 1px solid rgba(63, 211, 42, 0.75);
}

.appeal-urgency--critical {
    background: var(--ap-critical);
    color: #0c1d3a;
}

.appeal-urgency--normal {
    background: var(--ap-normal);
    color: var(--ap-navy);
}

.appeal-urgency--static {
    position: static;
    display: inline-block;
}

.appeal-frame__fullscreen {
    position: absolute;
    z-index: 4;
    top: 12px;
    inset-inline-end: 12px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(5, 14, 30, 0.58);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.appeal-frame__fullscreen:hover {
    background: rgba(5, 14, 30, 0.85);
}

.appeal-frame__fullscreen svg,
.appeals-viewer__nav svg,
.appeals-viewer__close svg,
.appeal-share__btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.appeal-endcard {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 50% 28%, rgba(63, 211, 42, 0.26), transparent 55%),
        linear-gradient(180deg, rgba(6, 18, 42, 0.93), rgba(6, 18, 42, 0.98));
    color: #fff;
    text-align: center;
    animation: ap-fade-in 0.45s ease;
}

.appeal-endcard[hidden] {
    display: none;
}

.appeal-endcard__logo {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(63, 211, 42, 0.55), 0 14px 32px rgba(0, 0, 0, 0.45);
}

.appeal-endcard__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.appeal-endcard__title {
    margin: 0.4rem 0 0;
    font-size: clamp(1.05rem, 2.6vw, 1.3rem);
    font-weight: 800;
    line-height: 1.5;
    text-wrap: balance;
}

.appeal-endcard__text {
    margin: 0;
    color: var(--ap-text-soft);
    font-size: 0.9rem;
}

.appeal-endcard__replay {
    border: 0;
    background: none;
    color: var(--ap-green-soft);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

.appeal-frame__ribbon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.4rem 0.6rem;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.appeal-frame__ribbon img {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
}

.appeal-frame__center {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.appeal-frame__hashtag {
    flex: none;
    margin-inline-start: auto;
    color: var(--ap-green-soft);
    font-weight: 800;
    unicode-bidi: plaintext;
}

/* Fullscreen keeps the brand wrapper visible (the frame is what goes fullscreen). */
.appeal-frame:fullscreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    background: #000;
}

.appeal-frame:fullscreen .appeal-frame__screen {
    width: 100%;
    height: calc(100dvh - 46px);
    aspect-ratio: auto;
    border-radius: 0;
}

.appeal-frame:fullscreen .appeal-frame__ribbon {
    width: min(100%, 720px);
    margin-inline: auto;
}

/* ---------- Reel cards ---------- */

.appeal-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
}

.appeal-card[hidden] {
    display: none;
}

.appeal-card__open {
    display: block;
    padding: 4px;
    border-radius: 22px;
    background: var(--ap-frame-gradient);
    box-shadow: 0 18px 36px rgba(7, 21, 43, 0.22);
    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.appeal-card__open:hover,
.appeal-card__open:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 28px 48px rgba(7, 21, 43, 0.34);
}

.appeal-card__media {
    position: relative;
    display: block;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 18px;
    background: var(--ap-night-2);
}

.appeal-card__poster,
.appeal-card__preview,
.appeal-card__placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.appeal-card__placeholder {
    background:
        radial-gradient(circle at 70% 85%, rgba(34, 164, 71, 0.25), transparent 50%),
        radial-gradient(circle at 20% 15%, rgba(63, 211, 42, 0.2), transparent 45%),
        linear-gradient(165deg, var(--ap-night-3), var(--ap-night));
}

.appeal-card__preview {
    opacity: 0;
    transition: opacity 0.45s ease;
}

.appeal-card.is-previewing .appeal-card__preview {
    opacity: 1;
}

.appeal-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 10, 22, 0.55) 0%, transparent 24%, transparent 42%, rgba(3, 10, 22, 0.94) 100%);
}

.appeal-card__brand {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(63, 211, 42, 0.95);
}

.appeal-card__brand img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.appeal-card .appeal-urgency {
    top: 14px;
    inset-inline-start: auto;
    inset-inline-end: 10px;
}

.appeal-card__duration {
    position: absolute;
    top: 46px;
    inset-inline-end: 10px;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: rgba(3, 10, 22, 0.6);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

.appeal-card__play {
    position: absolute;
    top: 46%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease, background-color 0.25s ease, opacity 0.3s ease;
}

.appeal-card__play svg {
    width: 26px;
    height: 26px;
    fill: #fff;
    margin-inline-start: 3px;
}

html[dir="rtl"] .appeal-card__play svg {
    margin-inline-start: 0;
    margin-inline-end: 3px;
}

.appeal-card__open:hover .appeal-card__play,
.appeal-card__open:focus-visible .appeal-card__play {
    border-color: transparent;
    background: var(--ap-action);
    transform: translate(-50%, -50%) scale(1.08);
}

.appeal-card.is-previewing .appeal-card__play {
    opacity: 0;
}

.appeal-card__caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    display: grid;
    gap: 0.25rem;
    padding: 1rem 0.95rem 0.95rem;
    color: #fff;
}

.appeal-card__caption small {
    color: var(--ap-green-soft);
    font-size: 0.76rem;
    font-weight: 700;
}

.appeal-card__caption strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 1.02rem;
    line-height: 1.45;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.appeal-card__caption q {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.appeal-card__footer {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding-inline: 0.4rem;
    font-size: 0.9rem;
    font-weight: 800;
}

.appeal-card__footer a {
    color: var(--ap-navy);
}

.appeal-card__footer .appeal-card__give {
    color: #13795b;
}

.appeal-card__footer a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---------- Grids & rails ---------- */

.appeals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.5rem 1.25rem;
}

.appeals-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(205px, 240px);
    gap: 1.25rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
}

.appeals-rail > * {
    scroll-snap-align: start;
}

/* ---------- Hero ---------- */

.appeals-hero,
.appeal-detail {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 420px at 85% 110%, rgba(34, 164, 71, 0.22), transparent 60%),
        radial-gradient(700px 400px at 8% -10%, rgba(63, 211, 42, 0.14), transparent 60%),
        linear-gradient(180deg, var(--ap-night) 0%, var(--ap-night-2) 60%, var(--ap-night-3) 100%);
}

.appeals-hero {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.appeals-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 370px);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.appeals-hero__inner.is-solo {
    grid-template-columns: minmax(0, 780px);
}

.appeals-hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 5.2vw, 3.9rem);
    font-weight: 800;
    line-height: 1.15;
    text-wrap: balance;
}

.appeals-hero__lead {
    max-width: 60ch;
    margin: 0;
    color: var(--ap-text-soft);
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    line-height: 1.9;
}

.appeals-hero__actions,
.appeal-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.appeals-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.6rem;
    margin: 2.2rem 0 0;
    padding: 0;
    list-style: none;
}

.appeals-hero__facts li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ap-text-soft);
    font-weight: 700;
}

.appeals-hero__facts strong {
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
}

.appeals-hero__feature-kicker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.8rem;
    color: #a8ecaf;
    font-weight: 800;
}

.appeals-hero__feature-info {
    display: grid;
    gap: 0.2rem;
    margin-top: 0.9rem;
}

.appeals-hero__feature-info a {
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.5;
}

.appeals-hero__feature-info a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.appeals-hero__feature-info span {
    color: var(--ap-text-soft);
    font-size: 0.92rem;
}

/* ---------- Appeals wall ---------- */

.appeals-wall {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: linear-gradient(180deg, #eef5ef 0%, #f6faf6 100%);
}

.appeals-wall__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    margin-bottom: 2rem;
}

.appeals-wall__head h2 {
    margin: 0 0 0.5rem;
    color: #12284d;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    line-height: 1.25;
}

.appeals-wall__head p {
    max-width: 62ch;
    margin: 0;
    color: #5d6f61;
}

.appeals-wall__head--light h2 {
    color: #fff;
}

.appeals-wall__head--light p {
    color: var(--ap-text-soft);
}

.appeals-wall__more {
    color: var(--ap-navy);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.appeals-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.appeals-filters button {
    padding: 0.5rem 1.05rem;
    border: 1px solid #d8e5db;
    border-radius: 999px;
    background: #fff;
    color: var(--ap-navy);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.appeals-filters button[aria-pressed="true"] {
    border-color: #12284d;
    background: #12284d;
    color: #fff;
}

.appeals-empty {
    display: grid;
    justify-items: center;
    gap: 0.6rem;
    max-width: 560px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    border: 1px dashed #cfe3d4;
    border-radius: 24px;
    background: #fff;
    text-align: center;
}

.appeals-empty img {
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(63, 211, 42, 0.35);
}

.appeals-empty h3 {
    margin: 0.4rem 0 0;
    color: #12284d;
    font-size: 1.35rem;
}

.appeals-empty p {
    margin: 0 0 0.6rem;
    color: #5d6f61;
}

/* ---------- Home section ---------- */


/* ---------- Trust ---------- */

.appeals-trust {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: #fff;
}

.appeals-trust__head h2 {
    margin: 0 0 1.8rem;
    color: #12284d;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.appeals-trust__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.appeals-trust__steps li {
    padding: 1.6rem;
    border: 1px solid #d8e5db;
    border-radius: 22px;
    background: linear-gradient(180deg, #f6faf6, #eef5ef);
}

.appeals-trust__number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ap-frame-gradient);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
}

.appeals-trust__steps h3 {
    margin: 1rem 0 0.4rem;
    color: #12284d;
    font-size: 1.15rem;
}

.appeals-trust__steps p {
    margin: 0;
    color: #5d6f61;
    line-height: 1.85;
}

.appeals-trust__link {
    display: inline-block;
    margin-top: 1.5rem;
    color: #0e5b45;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* ---------- Final CTA ---------- */

.appeals-final {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background: linear-gradient(120deg, #12284d 0%, #1b3a6b 55%, #13795b 100%);
    color: #fff;
}

.appeals-final__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 1.75rem;
}

.appeals-final__logo img {
    display: block;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(63, 211, 42, 0.45);
}

.appeals-final__inner > div {
    flex: 1 1 320px;
}

.appeals-final h2 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.appeals-final p {
    margin: 0;
    color: var(--ap-text-soft);
}

/* ---------- Detail page ---------- */

.appeal-detail {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.appeal-detail__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.appeal-detail__player {
    position: sticky;
    top: 96px;
}

.appeal-detail__crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: var(--ap-text-soft);
    font-size: 0.9rem;
}

.appeal-detail__crumbs a {
    color: var(--ap-green-soft);
    font-weight: 700;
}

.appeal-detail__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.8rem;
}

.appeal-detail__chip {
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--ap-text-soft);
    font-size: 0.8rem;
    font-weight: 700;
}

.appeal-detail h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.25;
    text-wrap: balance;
}

.appeal-detail__person {
    margin: 0;
    color: #a8ecaf;
    font-weight: 700;
}

.appeal-quote {
    margin: 1.4rem 0;
    padding: 1.1rem 1.3rem;
    border-inline-start: 4px solid var(--ap-action);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    font-size: clamp(1.05rem, 1.8vw, 1.22rem);
    font-weight: 600;
    line-height: 1.85;
}

.appeal-quote[hidden] {
    display: none;
}

.appeal-quote--compact {
    margin: 0.9rem 0;
    padding: 0.85rem 1rem;
    font-size: 1rem;
}

.appeal-detail__block h2,
.appeals-viewer__needs h3 {
    margin: 1.6rem 0 0.5rem;
    color: #fff;
    font-size: 1.08rem;
}

.appeal-detail__story p {
    margin: 0;
    color: var(--ap-text-soft);
    line-height: 1.95;
}

.appeal-needs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.4rem 0 0;
    padding: 0;
    list-style: none;
}

.appeal-needs li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.9rem;
    border: 1px solid rgba(63, 211, 42, 0.42);
    border-radius: 999px;
    background: rgba(63, 211, 42, 0.13);
    color: #d7fbd2;
    font-size: 0.92rem;
    font-weight: 700;
}

.appeal-needs li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ap-green);
}

.appeal-detail__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 1.8rem 0 0;
    padding: 0.95rem 1.1rem;
    border-radius: 14px;
    background: rgba(63, 211, 42, 0.08);
    color: var(--ap-text-soft);
    font-size: 0.92rem;
}

/* ---------- Share ---------- */

.appeal-share {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem 0.9rem;
    margin-top: 1.4rem;
}

.appeal-share__label {
    font-weight: 800;
    opacity: 0.88;
}

.appeal-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.appeal-share__btn {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.appeal-share__btn[hidden] {
    display: none;
}

.appeal-share__btn--native {
    display: inline-flex;
    gap: 0.4rem;
    width: auto;
    padding: 0 1rem;
    border-radius: 999px;
    font-weight: 800;
}

.appeal-share__btn .is-fill {
    fill: currentColor;
    stroke: none;
}

.appeal-share__btn:hover {
    transform: translateY(-2px);
    border-color: transparent;
}

.appeal-share__btn:hover {
    background: var(--ap-action);
    color: var(--ap-action-ink);
}

.appeal-share__toast {
    position: absolute;
    top: calc(100% + 0.4rem);
    inset-inline-start: 0;
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    background: var(--ap-green);
    color: #06240a;
    font-size: 0.85rem;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.appeal-share__toast.is-visible {
    opacity: 1;
}

/* ---------- Viewer (reels dialog) ---------- */

html.appeals-viewer-open {
    overflow: hidden;
}

.appeals-viewer {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
}

.appeals-viewer::backdrop {
    background: rgba(3, 8, 18, 0.9);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.appeals-viewer__layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 2rem clamp(1rem, 4vw, 3rem);
}

.appeals-viewer__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 0;
}

.appeal-frame--viewer {
    width: min(100%, calc((100dvh - 4rem - 52px) * 0.5625));
}

.appeals-viewer__nav,
.appeals-viewer__close {
    display: grid;
    flex: none;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.appeals-viewer__nav:hover,
.appeals-viewer__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.appeals-viewer__nav:disabled {
    opacity: 0.3;
    cursor: default;
}

html[dir="rtl"] .appeals-viewer__nav svg {
    transform: scaleX(-1);
}

.appeals-viewer__close {
    position: absolute;
    z-index: 6;
    top: 1rem;
    inset-inline-end: 1rem;
}

.appeals-viewer__panel {
    max-height: calc(100dvh - 4rem);
    overflow-y: auto;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(11, 31, 61, 0.78);
}

.appeals-viewer__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
}

.appeals-viewer__campaign {
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: rgba(63, 211, 42, 0.15);
    color: var(--ap-green-soft);
    font-size: 0.82rem;
    font-weight: 800;
}

.appeals-viewer__counter {
    color: var(--ap-text-soft);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.appeals-viewer__title {
    margin: 0.8rem 0 0.3rem;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    line-height: 1.4;
}

.appeals-viewer__person {
    margin: 0;
    color: #a8ecaf;
    font-weight: 700;
}

.appeals-viewer__person:empty {
    display: none;
}

.appeals-viewer__needs[hidden] {
    display: none;
}

.appeals-viewer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.3rem;
}

/* ---------- Animations ---------- */

@keyframes ap-rain {
    to {
        background-position: -30px 120px, -45px 180px;
    }
}

@keyframes ap-pulse {
    from {
        opacity: 0.9;
        transform: scale(0.6);
    }
    to {
        opacity: 0;
        transform: scale(1.6);
    }
}

@keyframes ap-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .appeals-hero__inner,
    .appeal-detail__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .appeals-hero__feature,
    .appeal-detail__player {
        width: min(100%, 360px);
        margin-inline: auto;
    }

    .appeal-detail__player {
        position: static;
    }

    .appeals-trust__steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 860px) {
    .appeals-viewer__layout {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 1rem;
        overflow-y: auto;
        padding: 4rem 0.75rem 1.25rem;
    }

    .appeals-viewer__stage {
        position: relative;
    }

    .appeal-frame--viewer {
        width: min(100%, calc((100dvh - 9rem) * 0.5625));
    }

    .appeals-viewer__nav {
        position: absolute;
        z-index: 6;
        top: 45%;
        background: rgba(3, 10, 22, 0.55);
    }

    .appeals-viewer__nav--prev {
        inset-inline-start: 0.25rem;
    }

    .appeals-viewer__nav--next {
        inset-inline-end: 0.25rem;
    }

    .appeals-viewer__panel {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 560px) {
    .appeals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 0.75rem;
    }

    .appeal-card__caption {
        padding: 0.75rem 0.7rem;
    }

    .appeal-card__caption strong {
        font-size: 0.9rem;
    }

    .appeal-card__caption q {
        display: none;
    }

    .appeal-card__play {
        width: 48px;
        height: 48px;
    }

    .appeals-hero__actions .appeal-btn,
    .appeal-detail__actions .appeal-btn {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .appeals-weather,
    .appeals-pulse::after,
    .appeal-endcard {
        animation: none;
    }

    .appeal-btn,
    .appeal-card__open,
    .appeal-card__play,
    .appeal-share__btn {
        transition: none;
    }

    .appeal-btn--primary:hover,
    .appeal-card__open:hover,
    .appeal-share__btn:hover {
        transform: none;
    }
}
