/* ============================================================
   Public Bağış Sitesi (Faz 10) — admin.css'ten tamamen bağımsız.
   Tüm seçiciler .pub kapsamında ve pub- önekli tutulur.
   ============================================================ */

:root {
    --public-primary: #047857;
    --public-primary-dark: #065f46;
    --public-cta: #ea580c;
    --public-cta-dark: #c2410c;
    --public-accent: #059669;
    --public-bg: #faf8f5;
    --public-card: #ffffff;
    --public-text: #0f3d2e;
    --public-heading: #0c4a6e;
    --public-muted: #64748b;
    --public-border: #e2e8f0;
    --public-radius: 14px;
    --public-shadow: 0 8px 28px rgba(15, 23, 42, .08);

    --pub-primary: var(--public-primary, #0b3d91);
    --pub-primary-dark: var(--public-primary-dark, #082d6b);
    --pub-accent: var(--public-accent, #16a34a);
    --pub-dark: var(--public-text, #0f172a);
    --pub-muted: var(--public-muted, #64748b);
    --pub-bg: var(--public-bg, #f4f7fb);
    --pub-border: var(--public-border, #e2e8f0);
    --pub-radius: var(--public-radius, 14px);
    --pub-shadow: var(--public-shadow, 0 8px 28px rgba(15, 23, 42, .08));
}

body.pub {
    margin: 0;
    background: var(--pub-bg);
    color: var(--pub-dark);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.pub a { text-decoration: none; }

/* --- Üst ince bar --- */
.pub-topbar {
    background: var(--pub-dark);
    color: #cbd5e1;
    font-size: .78rem;
    padding: .35rem 0;
}
.pub-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: nowrap;
}
.pub-topbar__contact { display: flex; align-items: center; gap: .5rem; flex-wrap: nowrap; overflow: hidden; }
.pub-topbar__social a {
    color: rgba(255,255,255,.75);
    font-size: .85rem;
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 6px;
    transition: color .12s ease, background .12s ease;
}
.pub-topbar__social a:hover { color: #fff; background: rgba(255,255,255,.12); }
.pub-topbar__item { white-space: nowrap; }
.pub-topbar__item--muted { opacity: .85; }
.pub-topbar__sep { opacity: .45; user-select: none; }

/* --- Header --- */
.pub-header {
    background: #fff;
    border-bottom: 1px solid var(--pub-border);
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: .65rem 0;
    box-shadow: 0 1px 0 rgba(15,23,42,.03);
}
.pub-navbar {
    width: 100%;
    gap: .75rem;
}
.pub-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-right: 0;
    flex-shrink: 0;
    max-width: min(280px, 55vw);
}
.pub-brand__img {
    max-height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}
.pub-brand__logo {
    width: 38px; height: 38px;
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--pub-primary), var(--pub-accent));
    color: #fff; font-size: 1.05rem;
}
.pub-brand__name {
    font-weight: 800;
    font-size: 1.02rem;
    color: var(--pub-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pub-navbar-toggler {
    border: 1px solid var(--pub-border);
    padding: .35rem .55rem;
    border-radius: 8px;
    margin-left: auto;
}
.pub-navbar-toggler:focus { box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--pub-primary) 20%, transparent); }

.pub-navbar-collapse {
    width: 100%;
}

.pub-header__toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    flex-shrink: 0;
}
.pub-header__lang {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    padding: .25rem .5rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--pub-border);
    flex-shrink: 0;
}
.pub-header__lang .pub-lang {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: .78rem;
    font-weight: 600;
    padding: 0 .3rem;
    line-height: 1.2;
}
.pub-header__lang .pub-lang.active { color: var(--pub-primary); font-weight: 800; }
.pub-header__lang .pub-lang-sep { color: #cbd5e1; }

.pub-menu {
    align-items: center;
    gap: .1rem;
    margin-right: auto;
}
.pub-menu .nav-link {
    color: #334155;
    font-weight: 600;
    font-size: .9rem;
    padding: .5rem .65rem;
    border-radius: 8px;
    white-space: nowrap;
}
.pub-menu .nav-link:hover { color: var(--pub-primary); }
.pub-menu .nav-link.active { color: var(--pub-primary); background: color-mix(in srgb, var(--pub-primary) 10%, transparent); }
.pub-menu .dropdown-toggle::after { margin-left: .35rem; vertical-align: .15em; opacity: .55; }

.pub-dropdown {
    border: 1px solid var(--pub-border);
    border-radius: 12px;
    box-shadow: var(--pub-shadow);
    padding: .4rem;
    min-width: 220px;
}
.pub-dropdown .dropdown-item {
    border-radius: 8px;
    font-weight: 600;
    font-size: .88rem;
    padding: .55rem .75rem;
    color: #334155;
}
.pub-dropdown .dropdown-item:hover { background: #f8fafc; color: var(--pub-primary); }
.pub-dropdown .dropdown-item.active { background: rgba(13,110,253,.08); color: var(--pub-primary); }
.pub-dropdown .dropdown-item i { opacity: .65; width: 1.1rem; }

.pub-btn-donate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pub-accent), color-mix(in srgb, var(--pub-accent) 80%, #000));
    color: #fff !important;
    font-weight: 700;
    border-radius: 999px;
    padding: .55rem 1.35rem;
    white-space: nowrap;
    border: 0;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--pub-accent) 35%, transparent);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.pub-btn-donate--compact { padding: .48rem 1.15rem; font-size: .88rem; }
.pub-btn-donate:hover { filter: brightness(1.06); color: #fff; transform: translateY(-1px); }

@media (min-width: 992px) {
    .pub-navbar-toggler { display: none; }
    .pub-navbar-collapse {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: .5rem 1rem;
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
    }
    .pub-menu {
        flex-wrap: nowrap;
        min-width: 0;
    }
    .pub-header__toolbar {
        margin-left: .25rem;
        padding-left: .75rem;
        border-left: 1px solid var(--pub-border);
    }
}

@media (max-width: 991.98px) {
    .pub-navbar-collapse {
        padding: .5rem 0 .75rem;
        border-top: 1px solid var(--pub-border);
        margin-top: .5rem;
    }
    .pub-menu {
        width: 100%;
        margin-right: 0;
        padding-bottom: .25rem;
    }
    .pub-menu .nav-link {
        padding: .6rem .15rem;
        font-size: 1rem;
    }
    .pub-menu .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: 0;
        background: #f8fafc;
        margin: 0 0 .35rem .5rem;
        padding: .25rem 0;
    }
    .pub-header__toolbar {
        width: 100%;
        padding-top: .75rem;
        margin-top: .25rem;
        border-top: 1px solid var(--pub-border);
        justify-content: space-between;
    }
    .pub-header__toolbar .pub-btn-donate {
        flex: 1 1 auto;
        justify-content: center;
        max-width: 280px;
    }
}

/* --- Main --- */
.pub-main { flex: 1 0 auto; }

/* --- Hero --- */
.pub-hero {
    background: linear-gradient(135deg, #0b3d91 0%, #0d6efd 55%, #16a34a 100%);
    color: #fff;
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}
.pub-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 45%);
}
.pub-hero__content { position: relative; z-index: 1; max-width: 640px; }
.pub-hero h1 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; }
.pub-hero p { font-size: 1.1rem; opacity: .92; margin-top: 1rem; }
.pub-hero__actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.pub-hero .btn-hero-primary {
    background: #fff; color: var(--pub-primary); font-weight: 700;
    border-radius: 999px; padding: .7rem 1.6rem;
}
.pub-hero .btn-hero-primary:hover { background: #f1f5f9; }
.pub-hero .btn-hero-outline {
    border: 2px solid rgba(255,255,255,.8); color: #fff; font-weight: 700;
    border-radius: 999px; padding: .7rem 1.6rem;
}
.pub-hero .btn-hero-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.pub-hero__trust { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .9rem; opacity: .92; }
.pub-hero__trust span { display: inline-flex; align-items: center; gap: .4rem; }

/* --- Bölüm başlıkları --- */
.pub-section { padding: 3.5rem 0; }
.pub-section--alt { background: #fff; }
.pub-section__head { text-align: center; margin-bottom: 2.25rem; }
.pub-section__head h2 { font-weight: 800; font-size: 1.75rem; }
.pub-section__head p { color: var(--pub-muted); max-width: 560px; margin: .5rem auto 0; }

/* --- Kampanya kartı --- */
.pub-card {
    background: #fff;
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}
.pub-card:hover { transform: translateY(-4px); box-shadow: var(--pub-shadow); }
.pub-card__media {
    height: 180px;
    background: linear-gradient(135deg, #e0e7ff, #ccfbf1);
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: 2.5rem;
    position: relative;
    background-size: cover; background-position: center;
    overflow: hidden;
}
.pub-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-card__media-placeholder {
    width: 100%; height: 100%; min-height: 180px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e8eef7 0%, #f1f5f9 100%);
    color: var(--pub-muted); font-size: 2.5rem;
}
.public-campaign-card { display: flex; flex-direction: column; box-shadow: var(--pub-shadow); transition: transform .15s ease, box-shadow .15s ease; }
.public-campaign-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15,23,42,.1); }
.pub-card__badge {
    position: absolute; top: .65rem; left: .65rem;
    font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px;
}
.pub-badge-open { background: #dcfce7; color: #166534; }
.pub-badge-closed { background: #fee2e2; color: #991b1b; }
.pub-badge-featured {
    position: absolute; top: .65rem; right: .65rem;
    background: #fef9c3; color: #854d0e;
    font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px;
}
.pub-card__body {
    padding: 1.1rem 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.pub-card__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.pub-card__stats {
    margin-top: auto;
    padding-top: .75rem;
}
.pub-card__cat { font-size: .74rem; font-weight: 700; color: var(--pub-primary); text-transform: uppercase; letter-spacing: .03em; }
.pub-card__title { font-weight: 700; font-size: 1.05rem; margin: .35rem 0 .4rem; color: var(--pub-dark); }
.pub-card__desc {
    color: var(--pub-muted);
    font-size: .9rem;
    flex: 1 1 auto;
    min-height: 2.75rem;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pub-card__meta { min-height: 1.35rem; margin-top: .35rem; }

/* --- İlerleme --- */
.pub-card__stats .pub-progress { margin-top: 0; }
.pub-progress { margin-top: 1rem; }
.pub-progress__bar { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.pub-progress__fill { height: 100%; background: linear-gradient(90deg, var(--pub-primary), var(--pub-accent)); border-radius: 999px; }
.pub-progress__meta { display: flex; justify-content: space-between; font-size: .82rem; margin-top: .5rem; }
.pub-progress__meta .amount { font-weight: 700; color: var(--pub-dark); }
.pub-progress__meta .muted { color: var(--pub-muted); }

.pub-card-link { display: flex; color: inherit; }
.pub-card-link:hover { color: inherit; }

.pub-card__actions {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    gap: .5rem;
    align-items: stretch;
    flex-shrink: 0;
}
.pub-card__actions .pub-btn-primary,
.pub-card__actions .pub-btn-outline,
.pub-card__action-btn {
    flex: 1 1 0;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pub-btn-primary {
    background: linear-gradient(135deg, var(--pub-primary), var(--pub-primary-dark));
    color: #fff; font-weight: 700;
    border-radius: 10px; padding: .6rem 1rem; flex: 1; text-align: center; border: 0;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--pub-primary) 30%, transparent);
    transition: transform .12s ease, filter .12s ease;
}
.pub-btn-primary:hover { filter: brightness(1.05); color: #fff; transform: translateY(-1px); }
.pub-btn-outline {
    border: 1px solid var(--pub-border); color: #334155; font-weight: 600;
    border-radius: 8px; padding: .5rem .9rem; text-align: center; background: #fff;
}
.pub-btn-outline:hover { background: #f1f5f9; color: var(--pub-dark); }

/* Kart grid: sütunlar eşit yükseklik */
.pub .row.g-4 > [class*="col"].d-flex,
.pub .row.g-3 > [class*="col"].d-flex {
    align-items: stretch;
}

/* --- Hızlı kategoriler --- */
.pub-cat {
    display: flex; flex-direction: column; align-items: center; gap: .6rem;
    background: #fff; border: 1px solid var(--pub-border); border-radius: var(--pub-radius);
    padding: 1.5rem 1rem; text-align: center; height: 100%;
    transition: transform .15s ease, box-shadow .15s ease;
}
.pub-cat:hover { transform: translateY(-3px); box-shadow: var(--pub-shadow); }
.pub-cat__icon { width: 54px; height: 54px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; }
.pub-cat__title { font-weight: 700; color: var(--pub-dark); font-size: .95rem; }

/* --- Kurban çağrı --- */
.pub-qurban {
    background: linear-gradient(135deg, #14532d, #16a34a);
    color: #fff; border-radius: var(--pub-radius); padding: 2.5rem;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.pub-qurban h3 { font-weight: 800; margin: 0; }
.pub-qurban p { opacity: .9; margin: .35rem 0 0; }
.pub-qurban .btn {
    background: #fff; color: #14532d; font-weight: 700; border-radius: 999px; padding: .7rem 1.6rem; white-space: nowrap;
}

/* --- İstatistik kartları --- */
.pub-stat {
    background: #fff; border: 1px solid var(--pub-border); border-radius: var(--pub-radius);
    padding: 1.75rem 1rem; text-align: center; height: 100%;
}
.pub-stat__value { font-weight: 800; font-size: 1.9rem; color: var(--pub-primary); }
.pub-stat__label { color: var(--pub-muted); font-size: .9rem; margin-top: .25rem; }

/* --- Bağış takip çağrısı --- */
.pub-track {
    background: var(--pub-dark); color: #fff; border-radius: var(--pub-radius);
    padding: 2.5rem; text-align: center;
}
.pub-track h3 { font-weight: 800; }
.pub-track p { opacity: .85; }
.pub-track .btn { background: var(--pub-primary); color: #fff; font-weight: 700; border-radius: 999px; padding: .65rem 1.5rem; }

/* --- Detay --- */
.pub-detail__hero {
    height: 340px; border-radius: var(--pub-radius);
    background: linear-gradient(135deg, #e0e7ff, #ccfbf1);
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 4rem;
}
.pub-detail__title { font-weight: 800; font-size: 2rem; margin-top: 1.5rem; }
.pub-detail__lead { color: var(--pub-muted); font-size: 1.1rem; }
.pub-detail__body { color: #334155; line-height: 1.8; }
.pub-side-card {
    background: #fff; border: 1px solid var(--pub-border); border-radius: var(--pub-radius);
    padding: 1.5rem; position: sticky; top: 90px;
}
.pub-side-card .pub-btn-primary { width: 100%; display: block; padding: .75rem; font-size: 1.05rem; }
.pub-meta-row { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed var(--pub-border); font-size: .9rem; }
.pub-meta-row:last-child { border-bottom: 0; }
.pub-meta-row .muted { color: var(--pub-muted); }
.pub-share a { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #f1f5f9; color: #334155; margin-right: .4rem; }
.pub-share a:hover { background: var(--pub-primary); color: #fff; }

/* --- Empty / coming soon --- */
.pub-empty { text-align: center; padding: 4rem 1rem; }
.pub-empty__icon { font-size: 3.5rem; color: var(--pub-primary); }
.pub-empty h3 { font-weight: 800; margin-top: 1rem; }
.pub-empty p { color: var(--pub-muted); max-width: 480px; margin: .5rem auto 1.5rem; }

/* --- Footer --- */
.pub-footer { background: var(--pub-dark); color: #cbd5e1; padding: 3rem 0 1.5rem; margin-top: 3rem; }
.pub-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.pub-footer__brand { display: flex; align-items: center; gap: .6rem; color: #fff; }
.pub-footer__logo { max-height: 40px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.pub-footer__about { margin-top: .9rem; font-size: .9rem; opacity: .8; }
.pub-footer__links { list-style: none; padding: 0; margin: 0; }
.pub-footer__links li { margin-bottom: .55rem; font-size: .9rem; }
.pub-footer__links a { color: #cbd5e1; }
.pub-footer__links a:hover { color: #fff; }
.pub-social { margin-top: 1rem; display: flex; gap: .5rem; }
.pub-social a { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: #fff; }
.pub-social a:hover { background: var(--pub-primary); }
.pub-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .85rem; opacity: .85; }
.pub-footer__legal a { color: #cbd5e1; margin-left: 1rem; }
.pub-footer__legal a:hover { color: #fff; }
.pub-footer__admin { opacity: .55; }

/* --- Public bağış formu (Faz 11) --- */
.pub-form-card {
    background: #fff; border: 1px solid var(--pub-border); border-radius: var(--pub-radius);
    padding: 1.5rem; margin-bottom: 1.25rem;
}
.pub-form-card h5 { font-weight: 700; margin-bottom: 1rem; }
.pub-form .form-label { font-weight: 600; font-size: .9rem; }

.pub-selected-campaign { display: flex; align-items: center; gap: 1rem; }
.pub-selected-campaign__media {
    width: 72px; height: 72px; border-radius: 12px; flex: 0 0 auto;
    background: linear-gradient(135deg, #e0e7ff, #ccfbf1);
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 1.6rem;
}

.pub-amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.pub-amount-btn {
    border: 1.5px solid var(--pub-border); background: #fff; border-radius: 10px;
    padding: .8rem .5rem; font-weight: 700; color: var(--pub-dark); cursor: pointer; transition: all .12s ease;
}
.pub-amount-btn:hover { border-color: var(--pub-primary); }
.pub-amount-btn.active { border-color: var(--pub-primary); background: rgba(13,110,253,.08); color: var(--pub-primary); }

.pub-pay-option {
    display: flex; align-items: center; gap: .9rem; padding: 1rem;
    border: 1.5px solid var(--pub-border); border-radius: 12px; margin-bottom: .6rem;
}
.pub-pay-option i:first-child { font-size: 1.5rem; color: var(--pub-primary); }
.pub-pay-option.active { border-color: var(--pub-accent); background: rgba(22,163,74,.05); }
.pub-pay-option.disabled { opacity: .55; }

/* --- Ödeme talimatı --- */
.pub-success-icon { font-size: 3.5rem; color: var(--pub-accent); }
.pub-ref-box {
    background: linear-gradient(135deg, #0b3d91, #0d6efd); color: #fff;
    border-radius: var(--pub-radius); padding: 1.75rem; text-align: center; margin-bottom: 1.25rem;
}
.pub-ref-box__label { font-size: .85rem; opacity: .85; text-transform: uppercase; letter-spacing: .05em; }
.pub-ref-box__code {
    font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 800; letter-spacing: .04em;
    margin-top: .35rem; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    word-break: break-all;
}
.pub-ref-box .pub-btn-outline { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.pub-ref-box .pub-btn-outline:hover { background: rgba(255,255,255,.2); color: #fff; }

.pub-bank-card { border: 1px solid var(--pub-border); border-radius: 10px; padding: 1rem; margin-bottom: .6rem; }
.pub-iban {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-weight: 700; letter-spacing: .03em; margin-top: .35rem; word-break: break-all;
}

/* --- Faz 22: CMS public içerik --- */
.pub-home-slider .pub-slide {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.pub-slide__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(15,23,42,.72), rgba(15,23,42,.25));
}
.pub-slide__content { position: relative; z-index: 1; color: #fff; max-width: 640px; }
.pub-slide__content h1 { font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
.pub-slide__content p { font-size: 1.05rem; opacity: .95; margin-top: .75rem; }

.pub-announcement-bar { background: #eff6ff; border-bottom: 1px solid #dbeafe; padding: .6rem 0; font-size: .9rem; }
.pub-announcement-bar__text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pub-announcement-bar__text a { color: var(--pub-dark); text-decoration: none; }
.pub-announcement-bar__text a:hover { color: var(--pub-primary); }

.pub-content { line-height: 1.75; color: #334155; }
.pub-content img { max-width: 100%; height: auto; border-radius: 8px; }
.pub-content h2, .pub-content h3 { font-weight: 700; margin-top: 1.5rem; }
.pub-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.pub-content table th, .pub-content table td { border: 1px solid #e2e8f0; padding: .5rem .75rem; }
.pub-content iframe { max-width: 100%; }

.news-detail-cover { background: #e2e8f0; border: 1px solid var(--pub-border, #e2e8f0); }

.news-photo-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.news-photo-gallery__item {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--pub-border, #e2e8f0);
    background: #f1f5f9;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.news-photo-gallery__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}

.news-photo-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.news-gallery-modal {
    background: rgba(15, 23, 42, .96);
    border: 0;
}

.news-gallery-modal__body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(70vh, 720px);
    position: relative;
    padding: 0 3rem !important;
}

.news-gallery-modal__stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: min(75vh, 800px);
}

.news-gallery-modal__image {
    max-width: 100%;
    max-height: min(75vh, 800px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.news-gallery-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    z-index: 2;
}

.news-gallery-modal__nav:hover { background: rgba(255, 255, 255, .22); }
.news-gallery-modal__nav--prev { left: .75rem; }
.news-gallery-modal__nav--next { right: .75rem; }
.news-gallery-modal__nav:disabled { opacity: .35; cursor: default; }

@media (max-width: 575.98px) {
    .news-gallery-modal__body { padding: 0 2.5rem !important; min-height: 60vh; }
    .news-gallery-modal__nav { width: 2.25rem; height: 2.25rem; }
}

@media (max-width: 575.98px) {
    .pub-home-slider .pub-slide { min-height: 300px; }
}

@media print {
    .pub-topbar, .pub-header, .pub-footer, .pub-btn-primary, .pub-btn-outline, #copyBtn { display: none !important; }
}

@media (max-width: 575.98px) {
    .pub-amount-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991.98px) {
    .pub-side-card { position: static; margin-top: 1.5rem; }
}

/* ============================================================
   UI/UX Faz — ortak app-* componentleri (public kapsamı)
   ============================================================ */
.pub .app-card {
    background: #fff;
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--pub-shadow);
}
.pub .app-form-card {
    background: #fff; border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius); padding: 1.25rem; margin-bottom: 1rem;
}

.pub .app-stat-card {
    background: #fff;
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius);
    padding: 1.1rem;
    text-align: center;
    height: 100%;
    transition: transform .12s ease, box-shadow .12s ease;
}
.pub .app-stat-card:hover { transform: translateY(-2px); box-shadow: var(--pub-shadow); }
.pub .app-stat-card__icon { font-size: 1.75rem; line-height: 1; margin-bottom: .35rem; }
.pub .app-stat-card__value { font-weight: 800; font-size: 1.15rem; color: var(--pub-dark); }
.pub .app-stat-card__label { font-size: .78rem; color: var(--pub-muted); font-weight: 600; margin-top: .15rem; }

.pub .app-section { padding: 2.5rem 0; }
.pub .app-badge {
    display: inline-flex; align-items: center;
    padding: .25rem .65rem; border-radius: 999px;
    font-size: .75rem; font-weight: 700; line-height: 1.3;
}
.pub .app-badge--success { background: #dcfce7; color: #166534; }
.pub .app-badge--warning { background: #fef3c7; color: #92400e; }
.pub .app-badge--danger { background: #fee2e2; color: #991b1b; }
.pub .app-badge--info { background: #dbeafe; color: #1e40af; }
.pub .app-badge--secondary { background: #f1f5f9; color: #475569; }
.pub .app-badge--muted { background: #f8fafc; color: #64748b; border: 1px solid var(--pub-border); }

.pub .app-stepper { margin-bottom: 1.25rem; }
.pub .app-stepper__header {
    display: flex; gap: .35rem; margin-bottom: 1.25rem;
    overflow-x: auto; padding-bottom: .25rem;
}
.pub .app-stepper__step {
    flex: 1; min-width: 0;
    display: flex; align-items: center; gap: .5rem;
    border: 1.5px solid var(--pub-border); background: #fff;
    border-radius: 10px; padding: .65rem .75rem;
    cursor: pointer; transition: all .12s ease;
    font-size: .82rem; font-weight: 600; color: var(--pub-muted);
}
.pub .app-stepper__step.active { border-color: var(--pub-primary); background: rgba(13,110,253,.06); color: var(--pub-primary); }
.pub .app-stepper__step.done { border-color: var(--pub-accent); color: var(--pub-accent); }
.pub .app-stepper__num {
    width: 26px; height: 26px; border-radius: 999px;
    display: grid; place-items: center;
    background: #f1f5f9; font-size: .78rem; font-weight: 800; flex-shrink: 0;
}
.pub .app-stepper__step.active .app-stepper__num { background: var(--pub-primary); color: #fff; }
.pub .app-stepper__step.done .app-stepper__num { background: var(--pub-accent); color: #fff; }
.pub .app-stepper__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub .app-stepper__nav {
    display: flex; gap: .75rem; margin-top: 1rem;
    flex-wrap: wrap;
}
.pub .app-stepper__nav .pub-btn-outline,
.pub .app-stepper__nav .pub-btn-primary { min-height: 48px; padding-left: 1.25rem; padding-right: 1.25rem; }
.pub .app-step-panel[hidden] { display: none !important; }

.pub .app-copy-box__warn {
    margin-top: .85rem; padding: .65rem .85rem;
    background: rgba(255,255,255,.15); border-radius: 8px;
    font-size: .88rem; text-align: left;
}
.pub .app-copy-box__inline {
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.pub .app-copy--done { background: var(--pub-accent) !important; border-color: var(--pub-accent) !important; color: #fff !important; }

.pub .app-timeline { list-style: none; padding: 0; margin: 1rem 0 0; }
.pub .app-timeline__item {
    position: relative; padding: 0 0 1.25rem 1.75rem;
    border-left: 2px solid var(--pub-border);
}
.pub .app-timeline__item:last-child { border-left-color: transparent; padding-bottom: 0; }
.pub .app-timeline__dot {
    position: absolute; left: -9px; top: .15rem;
    width: 16px; height: 16px; border-radius: 999px;
    background: #fff; border: 2px solid var(--pub-border);
}
.pub .app-timeline__item.done .app-timeline__dot { background: var(--pub-accent); border-color: var(--pub-accent); }
.pub .app-timeline__item.active .app-timeline__dot { background: var(--pub-primary); border-color: var(--pub-primary); box-shadow: 0 0 0 4px rgba(13,110,253,.15); }
.pub .app-timeline__item.pending .app-timeline__dot { background: #f8fafc; }
.pub .app-timeline__title { font-weight: 700; font-size: .92rem; color: var(--pub-dark); }
.pub .app-timeline__meta { font-size: .78rem; color: var(--pub-muted); margin-top: .1rem; }

.pub .app-empty-state { text-align: center; padding: 2rem 1rem; color: var(--pub-muted); }
.pub .app-empty-state__icon { font-size: 2.5rem; display: block; margin-bottom: .75rem; opacity: .45; }
.pub .app-empty-state__title { font-weight: 700; color: var(--pub-dark); }

.pub .app-action-bar { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }

.pub .app-trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
@media (min-width: 768px) { .pub .app-trust-grid { grid-template-columns: repeat(4, 1fr); } }
.pub .app-trust-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: #fff; border: 1px solid var(--pub-border); border-radius: 12px;
    padding: 1.1rem .75rem; color: var(--pub-dark); transition: all .12s ease;
}
.pub .app-trust-card:hover { border-color: var(--pub-primary); box-shadow: var(--pub-shadow); color: var(--pub-primary); }
.pub .app-trust-card i { font-size: 1.5rem; color: var(--pub-primary); margin-bottom: .4rem; }
.pub .app-trust-card span { font-size: .82rem; font-weight: 700; }

.pub .pub-side-card {
    position: sticky; top: 5.5rem;
    background: linear-gradient(135deg, #0b3d91, #0d6efd);
    color: #fff; border-radius: var(--pub-radius); padding: 1.25rem;
}
.pub .pub-side-card__label { font-size: .78rem; opacity: .85; text-transform: uppercase; letter-spacing: .04em; }
.pub .pub-side-card__amount { font-size: 2rem; font-weight: 800; line-height: 1.1; margin: .25rem 0; }

.pub .pub-qty-control {
    display: inline-flex; align-items: stretch; border: 1.5px solid var(--pub-border); border-radius: 10px; overflow: hidden;
}
.pub .pub-qty-control button {
    width: 44px; border: 0; background: #f8fafc; font-size: 1.2rem; font-weight: 700; cursor: pointer;
}
.pub .pub-qty-control button:hover { background: #e2e8f0; }
.pub .pub-qty-control input {
    width: 56px; border: 0; text-align: center; font-weight: 700;
}

.pub .app-progress { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.pub .app-progress__bar { height: 100%; background: linear-gradient(90deg, var(--pub-primary), var(--pub-accent)); border-radius: 999px; }

@media (max-width: 575.98px) {
    .pub .app-stepper__label { display: none; }
    .pub .app-stepper__step { justify-content: center; padding: .55rem; }
}

/* UI/UX Faz 2 — Kampanya detay */
.pub-campaign-hero {
    position: relative; min-height: 280px; background-size: cover; background-position: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pub-primary) 88%, #000), var(--pub-primary));
    color: #fff; padding: 2.5rem 0 2rem;
}
.pub-campaign-hero[style*="background-image"]::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(15,23,42,.78), rgba(15,23,42,.35));
}
.pub-campaign-hero .container { position: relative; z-index: 1; }
.pub-campaign-hero__crumb { font-size: .85rem; opacity: .85; margin-bottom: 1rem; }
.pub-campaign-hero__crumb a { color: #fff; text-decoration: none; }
.pub-campaign-hero__crumb span { margin: 0 .35rem; opacity: .6; }
.pub-campaign-hero h1 { font-weight: 800; font-size: clamp(1.65rem, 3vw, 2.35rem); margin-bottom: .65rem; }
.pub-campaign-hero__lead { font-size: 1.05rem; opacity: .92; max-width: 640px; margin: 0; }
.pub-campaign-hero__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .85rem; }
.pub-campaign-hero__badges .badge {
    background: rgba(255,255,255,.15); color: #fff; font-weight: 600; border: 1px solid rgba(255,255,255,.25);
}
.pub-campaign-hero__badges .badge--open { background: rgba(22,163,74,.35); border-color: rgba(22,163,74,.5); }
.pub-campaign-hero__badges .badge--closed { background: rgba(220,38,38,.35); border-color: rgba(220,38,38,.5); }

.pub-section--campaign-detail { padding-top: 2rem; }
.pub-side-card--campaign { padding: 0; overflow: hidden; }
.pub-campaign-donate { padding: 1.35rem; }
.pub-campaign-donate__title { font-size: 1.05rem; font-weight: 800; margin-bottom: .75rem; line-height: 1.35; }
.pub-campaign-donate__stats { display: flex; flex-wrap: wrap; gap: .65rem 1rem; font-size: .82rem; opacity: .9; }
.pub-campaign-donate__cta { width: 100%; display: block; text-align: center; padding: .8rem; font-size: 1.05rem; border-radius: 10px; }
.pub-campaign-donate__pay-icons { display: flex; gap: .85rem; font-size: 1.25rem; opacity: .85; }
.pub-amount-grid--compact { grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.pub-amount-grid--compact .pub-amount-btn { padding: .4rem .25rem; font-size: .82rem; border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.08); }
.pub-amount-grid--compact .pub-amount-btn.active,
.pub-amount-grid--compact .pub-amount-btn:hover { background: rgba(255,255,255,.2); border-color: #fff; color: #fff; }
.pub-campaign-donate #campaignCustomAmount { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.pub-campaign-donate #campaignCustomAmount::placeholder { color: rgba(255,255,255,.55); }
.pub-campaign-donate__freq .btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff; font-size: .78rem; }
.pub-campaign-donate__freq .btn-check:checked + .btn-outline-light { background: rgba(255,255,255,.2); border-color: #fff; }

.pub-campaign-gallery__img { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; border: 1px solid var(--pub-border); }
.pub-campaign-hero--placeholder { background: linear-gradient(135deg, var(--pub-primary), color-mix(in srgb, var(--pub-primary) 60%, #0f172a)); }
.pub-campaign-cover-placeholder {
    display: flex; align-items: center; gap: 1rem; padding: 1.5rem; border-radius: 14px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pub-primary) 12%, #fff), #f8fafc);
    border: 1px dashed var(--pub-border); color: var(--pub-primary);
}
.pub-campaign-cover-placeholder i { font-size: 2rem; }
.pub-recent-donations__item {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .75rem;
    padding: .55rem 0; border-bottom: 1px solid var(--pub-border);
}
.pub-recent-donations__item:last-child { border-bottom: 0; }
.pub-recent-donations__anon { color: var(--pub-muted); }

/* Form layout — mobilde özet altta */
.pub-form-layout .pub-form-summary { order: 2; }
.pub-form-layout .pub-form-main { order: 1; }
@media (min-width: 992px) {
    .pub-form-layout .pub-form-summary { order: 2; }
    .pub-form-layout .pub-form-main { order: 1; }
}

.pub-form-card h5 { font-weight: 800; font-size: 1rem; margin-bottom: 1rem; color: var(--pub-dark); }
.pub-form-card { border: 1px solid var(--pub-border); box-shadow: 0 4px 18px rgba(15,23,42,.05); }
.pub-amount-btn { min-height: 48px; font-size: .95rem; font-weight: 700; }
.pub-pay-option { border-width: 1.5px; border-radius: 12px; padding: 1rem; min-height: 72px; }
.pub-pay-option.active { border-color: var(--pub-primary); background: rgba(13,110,253,.05); box-shadow: 0 0 0 3px rgba(13,110,253,.1); }
.pub-pay-option i { font-size: 1.5rem; color: var(--pub-primary); }

.pub-qurban-trust {
    margin-top: 1rem; padding: .85rem 1rem; border-radius: 12px;
    background: rgba(22,163,74,.08); border: 1px solid rgba(22,163,74,.2);
    font-size: .88rem; color: #166534;
}
.pub-qurban-trust i { margin-right: .35rem; }

/* Zengin footer */
.pub-footer__tagline { font-size: .9rem; color: rgba(255,255,255,.75); line-height: 1.6; max-width: 320px; }
.pub-footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.pub-footer__powered {
    margin-top: .85rem;
    padding-top: .85rem;
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center;
}
.pub-footer__powered .app-powered-by { font-size: .8rem; color: rgba(255,255,255,.55); }
.pub-footer__powered .app-powered-by a { color: rgba(255,255,255,.82); font-weight: 600; text-decoration: none; }
.pub-footer__powered .app-powered-by a:hover { color: #fff; text-decoration: underline; }
.pub-footer__note {
    margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12);
    font-size: .78rem; color: rgba(255,255,255,.55); line-height: 1.5;
}

/* --- Sayfa hero banner (iç sayfalar) --- */
.pub-page-hero {
    background: linear-gradient(135deg, color-mix(in srgb, var(--pub-primary) 92%, #000), var(--pub-primary) 50%, color-mix(in srgb, var(--pub-accent) 40%, var(--pub-primary)));
    color: #fff;
    padding: 2.75rem 0 2.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pub-page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.12), transparent 45%);
    pointer-events: none;
}
.pub-page-hero .container { position: relative; z-index: 1; }
.pub-page-hero h1, .pub-page-hero h2 {
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: .5rem;
}
.pub-page-hero p { opacity: .9; max-width: 560px; margin: 0 auto; font-size: 1.02rem; }
.pub-page-hero--compact { padding: 2rem 0 1.75rem; }

/* --- Ortak component alias sınıfları --- */
.public-section, .pub-section { padding: 3.5rem 0; }
.public-section-header, .pub-section__head { text-align: center; margin-bottom: 2.25rem; }
.public-section-header h2, .pub-section__head h2 { font-weight: 800; font-size: clamp(1.35rem, 2.5vw, 1.75rem); color: var(--pub-dark); }
.public-section-header p, .pub-section__head p { color: var(--pub-muted); max-width: 560px; margin: .5rem auto 0; }

.public-card, .pub-card, .pub-form-card, .pub .app-card {
    background: var(--public-card, #fff);
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-radius);
}
.public-hero { /* premium hero uses pub-premium-hero */ }
.public-cta, .pub-btn-donate, .pub-btn-primary, .pub-premium-btn--primary { /* unified above */ }
.public-stat-card, .pub .app-stat-card, .pub-premium-stat { /* defined in sections above */ }
.public-donation-card, .pub-premium-work-card { /* premium work cards */ }
.public-campaign-card, .pub-card { /* campaign cards */ }
.public-progress, .pub-progress, .pub .app-progress { /* progress bars */ }
.public-badge, .pub .app-badge, .pub-card__badge { /* badges */ }
.public-stepper, .pub .app-stepper { /* stepper */ }
.public-copy-box, .pub-ref-box, .pub .app-copy-box { /* reference copy */ }
.public-bank-card, .pub-bank-card, .pub .pub-bank-card { /* bank cards */ }
.public-timeline, .pub .app-timeline { /* timeline */ }
.public-empty-state, .pub-empty, .pub .app-empty-state { /* empty states */ }
.public-trust-card, .pub-premium-trust-card, .pub .app-trust-card { /* trust cards */ }
.public-quick-donation, .pub-premium-quick__box { /* quick donate */ }

/* Gelişmiş referans kodu kutusu */
.pub-ref-box.public-copy-box {
    background: linear-gradient(145deg, var(--pub-primary-dark), var(--pub-primary));
    border: 2px solid color-mix(in srgb, var(--pub-accent) 40%, transparent);
    box-shadow: var(--pub-shadow);
}
.pub-ref-box__code { font-size: clamp(1.65rem, 5vw, 2.35rem); }
.pub-ref-box .pub-btn-outline, .pub-ref-box .public-copy-box__btn {
    background: rgba(255,255,255,.14);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.4);
    border-radius: 999px;
    padding: .55rem 1.25rem;
    font-weight: 700;
}
.pub-ref-box .pub-btn-outline:hover { background: rgba(255,255,255,.24); color: #fff; }

/* Gelişmiş banka kartı */
.pub-bank-card.public-bank-card {
    background: linear-gradient(180deg, #fff, #f8fafc);
    border: 1.5px solid var(--pub-border);
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 4px 16px rgba(15,23,42,.05);
    transition: border-color .12s ease, box-shadow .12s ease;
}
.pub-bank-card.public-bank-card:hover {
    border-color: color-mix(in srgb, var(--pub-primary) 35%, var(--pub-border));
    box-shadow: var(--pub-shadow);
}
.pub-bank-card .pub-iban { font-size: .95rem; letter-spacing: .04em; }

/* Bağışçı paneli */
.pub-portal-login {
    background: var(--public-card, #fff);
    border-radius: 18px;
    border: 1px solid var(--pub-border);
    box-shadow: var(--pub-shadow);
    padding: 2rem 1.75rem;
}
.pub-portal-login__icon {
    width: 64px; height: 64px; border-radius: 16px;
    background: linear-gradient(135deg, var(--pub-primary), var(--pub-accent));
    color: #fff; display: grid; place-items: center; font-size: 1.75rem;
    margin: 0 auto 1rem;
}
.pub-portal-nav {
    display: flex; flex-wrap: wrap; gap: .35rem;
    padding: .35rem; background: #fff; border: 1px solid var(--pub-border);
    border-radius: 12px; margin-bottom: 1.25rem;
}
.pub-portal-nav a {
    padding: .45rem .85rem; border-radius: 8px; font-weight: 600; font-size: .85rem;
    color: var(--pub-muted); white-space: nowrap;
}
.pub-portal-nav a:hover { color: var(--pub-primary); background: rgba(11,61,145,.06); }
.pub-portal-nav a.active { background: var(--pub-primary); color: #fff; }

.pub-portal-kpi {
    background: #fff;
    border: 1px solid var(--pub-border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    height: 100%;
}
.pub-portal-kpi__value {
    font-weight: 800;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--pub-dark);
    line-height: 1.2;
}
.pub-portal-kpi__value small { font-size: .75rem; font-weight: 600; }
.pub-portal-kpi__label {
    font-size: .78rem;
    color: var(--pub-muted);
    font-weight: 600;
    margin-top: .25rem;
}
.pub-portal-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.pub-portal-quicklinks a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .85rem;
    border-radius: 999px;
    border: 1px solid var(--pub-border);
    background: #fff;
    color: var(--pub-dark);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.pub-portal-quicklinks a:hover {
    border-color: var(--pub-primary);
    color: var(--pub-primary);
    background: rgba(11, 61, 145, .04);
}
.pub-portal-details {
    border: 1px solid var(--pub-border);
    border-radius: 12px;
    padding: .65rem 1rem;
    background: #f8fafc;
}
.pub-portal-details summary {
    cursor: pointer;
    font-weight: 600;
    font-size: .88rem;
    color: var(--pub-muted);
    list-style: none;
}
.pub-portal-details summary::-webkit-details-marker { display: none; }
.pub-portal-details summary::after {
    content: "▾";
    float: right;
    color: var(--pub-primary);
}
.pub-portal-details[open] summary::after { content: "▴"; }

.pub-timeline { list-style: none; margin: 0; padding: 0; }
.pub-timeline__item {
    display: flex; gap: .75rem; padding: .65rem 0; position: relative;
    border-left: 2px solid var(--pub-border); margin-left: .55rem; padding-left: 1.25rem;
}
.pub-timeline__item:last-child { border-left-color: transparent; }
.pub-timeline__dot {
    width: 12px; height: 12px; border-radius: 50%; background: var(--pub-border);
    position: absolute; left: -.37rem; top: .85rem;
}
.pub-timeline__item--done .pub-timeline__dot { background: var(--pub-primary); }
.pub-timeline__item--done { color: var(--pub-text); }
.pub-timeline__item--current .pub-timeline__dot {
    background: #fff; border: 3px solid var(--pub-primary); box-shadow: 0 0 0 3px rgba(11,61,145,.15);
}
.pub-timeline__item--current { font-weight: 600; }

/* Mobil tablo → kart */
@media (max-width: 767.98px) {
    .pub-portal-table-cards .table thead { display: none; }
    .pub-portal-table-cards .table tbody tr {
        display: block; border: 1px solid var(--pub-border); border-radius: 12px;
        padding: .75rem; margin-bottom: .65rem; background: #fff;
    }
    .pub-portal-table-cards .table tbody td {
        display: flex; justify-content: space-between; align-items: center;
        border: 0; padding: .25rem 0;
    }
    .pub-portal-table-cards .table tbody td::before {
        content: attr(data-label);
        font-weight: 600; font-size: .78rem; color: var(--pub-muted);
        margin-right: .5rem;
    }
}

/* Kampanya listesi filtre kartı */
.pub-filter-card {
    background: #fff; border: 1px solid var(--pub-border); border-radius: var(--pub-radius);
    padding: 1.25rem; box-shadow: 0 4px 18px rgba(15,23,42,.04); margin-bottom: 2rem;
}

/* Form sayfaları — yumuşak hata */
.pub-form .alert-danger {
    background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
    border-radius: 12px;
}

/* Sprint 17: bağışçı paneli yardım kutusu */
.pub-help-box__inner {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 1rem 1.15rem;
}
.pub-help-box__title {
    font-weight: 600;
    color: #0c4a6e;
    font-size: .95rem;
}
.pub-help-box__desc { color: #475569; font-size: .875rem; }
.pub-help-box__steps { color: #64748b; }
.pub-help-box__warn { color: #b45309; }

/* İletişim sayfası */
.pub-contact { max-width: 1080px; }
.pub-contact__alert { border-radius: 12px; }
.pub-contact-map__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 280px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .08);
    background: #eef2f7;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.pub-contact-map__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 575.98px) {
    .pub-page-hero { padding: 2rem 0 1.5rem; }
    .pub-section { padding: 2.5rem 0; }
    .pub-brand__name { max-width: 140px; }
    .pub-card__title { font-size: 1.05rem; }
    .pub-card__actions { flex-direction: column; align-items: stretch; }
    .pub-card__actions .pub-btn-primary,
    .pub-card__actions .pub-btn-outline { width: 100%; text-align: center; }
}
