/* =====================================================================
   ÜniKSK üyelik sistemi — tasarım sistemi
   Bootstrap 5.3 üzerine: Karşıyaka yeşili ve kırmızısı, Inter yazı tipi, yumuşak kartlar.
   Bölümler: yazı tipi · renkler · temel · site · giriş sayfaları · panel iskeleti · bileşenler · grafikler
   ===================================================================== */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Karşıyaka SK renkleri: ana renk kırmızı, vurgu yeşil */
    --brand: #d3151e;
    --brand-600: #b3111a;
    --brand-700: #8f0d14;
    --brand-900: #3b0508;
    --brand-50: #fdeeee;
    --brand-100: #f9d3d5;
    --accent: #0b8a3e;
    --accent-600: #077130;
    --accent-50: #e7f5ec;
    --danger: #c0161d;
    --danger-600: #9e1117;
    --danger-50: #fdecec;
    --brand-gradient: linear-gradient(135deg, #e5262f 0%, #d3151e 45%, #a50f16 100%);
    --accent-gradient: linear-gradient(135deg, #14a24c 0%, #0b8a3e 55%, #076a2f 100%);
    --ink: #1b1011;
    --text: #1c2921;
    --muted: #6f6364;
    --line: #ebe3e3;
    --canvas: #f7f4f4;
    --surface: #fff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-xs: 0 1px 2px rgba(27, 16, 17, .05);
    --shadow: 0 1px 3px rgba(27, 16, 17, .05), 0 12px 32px -14px rgba(27, 16, 17, .16);
    --sidebar-width: 264px;
    --topbar-height: 64px;
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: var(--text);
    --bs-danger: var(--danger);
    --bs-danger-rgb: 192, 22, 29;
    --bs-body-bg: var(--canvas);
    --bs-border-color: var(--line);
    --bs-primary: var(--brand);
    --bs-primary-rgb: 10, 125, 59;
    --bs-link-color: var(--brand-600);
    --bs-link-color-rgb: 8, 107, 51;
    --bs-link-hover-color: var(--brand-700);
    --bs-border-radius: var(--radius-sm);
    --bs-focus-ring-color: rgba(211, 21, 30, .25);
}

body {
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    letter-spacing: -.005em;
}

::selection {
    background: rgba(211, 21, 30, .18);
}

a {
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.min-w-0 {
    min-width: 0;
}

.text-brand {
    color: var(--brand) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.fw-600 {
    font-weight: 600;
}

.small-muted {
    font-size: 13px;
    color: var(--muted);
}

.visually-hidden-trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Telefonda kenar boşluğu 16 px (Bootstrap'in 12 px'i metni kenara yapışık gösteriyordu). Satır aralıkları (.row)
   kendi değişkenini tanımladığı için etkilenmez. */
@media (max-width: 575.98px) {
    .container {
        --bs-gutter-x: 2rem;
    }
}

/* =====================================================================
   HERKESE AÇIK SİTE
   ===================================================================== */
body.site {
    background: var(--canvas);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid rgba(235, 227, 227, .9);
}

    .site-header .inner {
        display: flex;
        align-items: center;
        gap: 14px;
        height: 68px;
    }

.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
    min-width: 0;
}

    .brand-mark img {
        width: 44px;
        height: 44px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .brand-mark strong {
        display: block;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: -.02em;
        line-height: 1.15;
    }

    .brand-mark small {
        display: block;
        font-size: 12px;
        color: var(--muted);
    }

.site-main {
    flex: 1;
}

/* ---------------------------------------------------------------- tanıtım */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--brand-900) url("../img/hero.jpg") center 40% / cover no-repeat;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(115deg, rgba(48, 4, 7, .95) 0%, rgba(122, 11, 17, .86) 48%, rgba(190, 18, 27, .5) 100%);
    }

    .hero::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 6px;
        background: linear-gradient(90deg, var(--brand) 0 33%, #fff 33% 66%, var(--accent) 66%);
    }

    .hero .inner {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: 1.35fr .65fr;
        align-items: center;
        gap: 40px;
        /* Yalnızca dikey: yatay boşluk .container'dan gelir (kısaltma yazılırsa metin kenara yapışır). */
        padding-block: 64px 72px;
    }

@media (max-width: 991.98px) {
    .hero .inner {
        grid-template-columns: 1fr;
        padding-block: 40px 52px;
        gap: 12px;
    }
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.04;
    margin: 18px 0 16px;
}

    .hero h1 span {
        color: #fff;
        text-decoration: underline;
        text-decoration-color: #19b35a;
        text-decoration-thickness: .1em;
        text-underline-offset: .14em;
    }

.hero-text p {
    font-size: 16.5px;
    line-height: 1.65;
    opacity: .92;
    max-width: 640px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-logo {
    justify-self: center;
    width: min(260px, 60vw);
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45));
}

@media (max-width: 991.98px) {
    .hero-logo {
        display: none;
    }
}

.btn-white {
    --bs-btn-bg: #fff;
    --bs-btn-color: var(--brand-700);
    --bs-btn-border-color: #fff;
    --bs-btn-hover-bg: #fff3f3;
    --bs-btn-hover-color: var(--brand-900);
    --bs-btn-hover-border-color: #fff3f3;
    --bs-btn-active-bg: #ffe5e5;
    --bs-btn-active-color: var(--brand-900);
    font-weight: 600;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5);
}

.btn-ghost {
    --bs-btn-bg: rgba(255, 255, 255, .12);
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255, 255, 255, .4);
    --bs-btn-hover-bg: rgba(255, 255, 255, .22);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-border-color: rgba(255, 255, 255, .6);
    --bs-btn-active-bg: rgba(255, 255, 255, .28);
    --bs-btn-active-color: #fff;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: -34px;
    position: relative;
    z-index: 2;
}

@media (max-width: 767.98px) {
    .feature-strip {
        grid-template-columns: 1fr;
        margin-top: 18px;
    }
}

.feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

    .feature strong {
        display: block;
        font-size: 15px;
        color: var(--ink);
    }

    .feature span {
        font-size: 13.5px;
        color: var(--muted);
    }

/* ---------------------------------------------------------------- başvuru formu */
.register-wrap {
    max-width: 980px;
    margin: 44px auto 64px;
}

.register-head {
    text-align: center;
    margin-bottom: 26px;
}

    .register-head h2 {
        font-size: 30px;
        font-weight: 800;
        letter-spacing: -.03em;
        color: var(--ink);
        margin-bottom: 6px;
    }

    .register-head p {
        color: var(--muted);
        margin: 0;
    }

.form-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    padding: 24px 26px;
    margin-bottom: 16px;
}

@media (max-width: 575.98px) {
    .form-section {
        padding: 18px 16px;
    }
}

.form-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

    .form-section-head h3 {
        font-size: 17px;
        font-weight: 700;
        letter-spacing: -.015em;
        margin: 0;
        color: var(--ink);
    }

    .form-section-head p {
        margin: 2px 0 0;
        font-size: 13px;
        color: var(--muted);
    }

.step-badge {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--brand-50);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .choice-group input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .choice-group label {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border: 1px solid #e3d7d8;
        background: #fff;
        border-radius: 999px;
        padding: 8px 16px;
        font-size: 14px;
        cursor: pointer;
        transition: border-color .15s, background .15s, color .15s;
    }

        .choice-group label:hover {
            border-color: var(--brand);
        }

    .choice-group input:checked + label {
        background: var(--brand-50);
        border-color: var(--brand);
        color: var(--brand-700);
        font-weight: 600;
    }

    .choice-group input:focus-visible + label {
        box-shadow: 0 0 0 .22rem rgba(211, 21, 30, .18);
    }

.switch-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    background: #fcfafa;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

    .switch-card:hover {
        border-color: #dccfd0;
    }

    .switch-card .form-check-input {
        margin: 3px 0 0;
        flex-shrink: 0;
    }

    .switch-card strong {
        display: block;
        font-size: 14.5px;
        font-weight: 600;
        color: var(--ink);
    }

    .switch-card span {
        display: block;
        font-size: 13px;
        color: var(--muted);
    }

    .switch-card:has(input:checked) {
        border-color: var(--accent);
        background: var(--accent-50);
    }

.reveal {
    padding: 16px 0 0;
}

[data-show-when][hidden],
[data-hide-when][hidden] {
    display: none !important;
}

.submit-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow);
    position: sticky;
    bottom: 12px;
    z-index: 10;
}

    .submit-bar p {
        margin: 0;
        font-size: 13px;
        color: var(--muted);
        max-width: 520px;
    }

/* Dar ekranda yapışkan çubuk yalnızca düğme: form alanlarını örtmesin */
@media (max-width: 575.98px) {
    .submit-bar {
        padding: 10px;
        bottom: 8px;
    }

        .submit-bar p {
            display: none;
        }

        .submit-bar .btn {
            flex: 1 1 auto;
        }
}

.password-field {
    position: relative;
}

    .password-field .form-control {
        padding-right: 46px;
    }

    .password-field .toggle-password {
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        border: 0;
        background: none;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        color: var(--muted);
    }

        .password-field .toggle-password:hover {
            background: var(--canvas);
            color: var(--ink);
        }

.select-search {
    margin-bottom: 8px;
}

.closed-card {
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 48px 24px;
    box-shadow: var(--shadow-xs);
}

.success-card {
    max-width: 620px;
    margin: 56px auto;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 44px 28px;
    box-shadow: var(--shadow);
}

    .success-card .success-icon {
        width: 76px;
        height: 76px;
        border-radius: 50%;
        margin: 0 auto 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 38px;
        background: var(--accent-50);
        color: var(--accent);
    }

.steps-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    text-align: left;
    display: grid;
    gap: 12px;
}

    .steps-list li {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        font-size: 14.5px;
    }

    .steps-list .bi {
        color: var(--brand);
        font-size: 18px;
        line-height: 1.3;
    }

.prose {
    max-width: 820px;
    margin: 40px auto 64px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 34px;
    line-height: 1.7;
}

    .prose h1 {
        font-size: 28px;
        font-weight: 800;
        letter-spacing: -.03em;
        color: var(--ink);
    }

    .prose h2 {
        font-size: 18px;
        font-weight: 700;
        margin-top: 28px;
        color: var(--ink);
    }

@media (max-width: 575.98px) {
    .prose {
        padding: 22px 18px;
        margin-top: 20px;
    }
}

/* ---------------------------------------------------------------- alt bilgi */
.site-footer {
    background: var(--brand-900);
    color: #dcc0c2;
    font-size: 14px;
    padding: 30px 0;
}

    .site-footer .inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .site-footer a {
        color: #f7e4e5;
        text-decoration: none;
    }

        .site-footer a:hover {
            color: #fff;
            text-decoration: underline;
        }

.social-links {
    display: flex;
    gap: 8px;
}

    .social-links a {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, .08);
        font-size: 17px;
    }

        .social-links a:hover {
            background: var(--accent);
            text-decoration: none;
        }

/* Geliştirici bilgisi (_Credit): alt bilgide, panelde ve giriş sayfalarında küçük bir satır */
.credit {
    font-size: 12.5px;
}

    .credit a {
        color: inherit;
        font-weight: 600;
        text-decoration: none;
    }

        .credit a:hover {
            text-decoration: underline;
        }

.site-footer-bottom {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #c9a3a6;
}

/* =====================================================================
   GİRİŞ VE PAROLA SAYFALARI
   ===================================================================== */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: #fff;
}

@media (max-width: 991.98px) {
    .auth-page {
        grid-template-columns: 1fr;
    }
}

.auth-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--brand-900) url("../img/hero.jpg") center / cover no-repeat;
}

    .auth-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(160deg, rgba(48, 4, 7, .96) 10%, rgba(122, 11, 17, .84) 62%, rgba(11, 138, 62, .5) 100%);
    }

    .auth-hero > * {
        position: relative;
        z-index: 1;
    }

    .auth-hero .brand-mark {
        color: #fff;
    }

        .auth-hero .brand-mark small {
            color: rgba(255, 255, 255, .75);
        }

        .auth-hero .brand-mark img {
            width: 56px;
            height: 56px;
        }

    .auth-hero h1 {
        font-size: 44px;
        font-weight: 800;
        letter-spacing: -.04em;
        line-height: 1.05;
        max-width: 460px;
    }

    .auth-hero p {
        font-size: 16px;
        opacity: .9;
        max-width: 440px;
    }

@media (max-width: 991.98px) {
    .auth-hero {
        display: none;
    }
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 22px;
}

.auth-box {
    width: 100%;
    max-width: 400px;
}

    .auth-box h2 {
        font-size: 28px;
        font-weight: 800;
        letter-spacing: -.03em;
        color: var(--ink);
    }

    .auth-box .mobile-brand {
        margin-bottom: 28px;
    }

@media (min-width: 992px) {
    .auth-box .mobile-brand {
        display: none;
    }
}

.auth-foot {
    margin-top: 32px;
    text-align: center;
    color: var(--muted);
}

    .auth-foot .credit a:hover {
        color: var(--brand);
    }

/* =====================================================================
   PANEL İSKELETİ
   ===================================================================== */
.panel-shell {
    display: flex;
    min-height: 100vh;
}

.main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.content {
    padding: 28px 32px 56px;
    width: 100%;
    max-width: 1440px;
}

@media (max-width: 575.98px) {
    .content {
        padding: 18px 14px 44px;
    }
}

/* İçerik kısaysa sayfanın altına iner */
.panel-foot {
    margin-top: auto;
    padding: 0 32px 24px;
    color: var(--muted);
}

    .panel-foot .credit a:hover {
        color: var(--brand);
    }

@media (max-width: 575.98px) {
    .panel-foot {
        padding: 0 14px 20px;
    }
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    color: #efd6d8;
    /* Bootstrap geniş ekranda .offcanvas-lg arka planını şeffaf yapar; bu yüzden !important */
    background: radial-gradient(420px 260px at -20% -10%, rgba(229, 38, 47, .38), transparent 70%),
                radial-gradient(380px 300px at 130% 105%, rgba(11, 138, 62, .3), transparent 70%),
                var(--brand-900) !important;
}

@media (min-width: 992px) {
    .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
    }
}

@media (max-width: 991.98px) {
    .sidebar.offcanvas-lg {
        --bs-offcanvas-width: 282px;
    }
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px 14px;
    overflow-y: auto;
    width: 100%;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px 16px;
}

    .sidebar-brand .brand-mark {
        color: #fff;
    }

        .sidebar-brand .brand-mark small {
            color: #d49ea2;
        }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #c98f94;
    padding: 16px 12px 6px;
}

.nav-item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f0d9db;
    text-decoration: none;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 14.5px;
    font-weight: 500;
    transition: background .15s, color .15s;
}

    .nav-item-link .bi {
        font-size: 18px;
        width: 20px;
        text-align: center;
        opacity: .9;
    }

    .nav-item-link:hover {
        background: rgba(255, 255, 255, .07);
        color: #fff;
    }

    .nav-item-link.active {
        background: var(--brand-gradient);
        color: #fff;
        box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .7), inset 3px 0 0 var(--accent);
    }

.nav-badge {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-foot {
    margin-top: auto;
    padding-top: 16px;
}

.sidebar-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    color: #f7e4e5;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.3;
}

    .sidebar-card:hover {
        background: rgba(255, 255, 255, .1);
        color: #fff;
    }

    .sidebar-card > .bi:first-child {
        font-size: 20px;
        color: #4ade80;
    }

    .sidebar-card small {
        display: block;
        color: #d49ea2;
    }

.topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 32px;
    background: rgba(247, 244, 244, .85);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid rgba(235, 227, 227, .85);
}

@media (max-width: 575.98px) {
    .topbar {
        padding: 0 14px;
    }
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 20px;
}

.topbar-brand {
    font-weight: 700;
    letter-spacing: -.02em;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 4px 12px 4px 4px;
    box-shadow: var(--shadow-xs);
}

    .user-chip .bi {
        font-size: 12px;
        color: var(--muted);
    }

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0;
}

.avatar-soft {
    background: var(--brand-50);
    color: var(--brand-700);
}

.avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 22px;
}

.user-name {
    display: block;
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.1;
}

.user-role {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
}

    .page-head h1 {
        font-size: 26px;
        font-weight: 750;
        letter-spacing: -.025em;
        margin: 0;
        color: var(--ink);
    }

    .page-head p {
        margin: 6px 0 0;
        color: var(--muted);
        max-width: 760px;
    }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 8px;
}

    .back-link:hover {
        color: var(--ink);
    }

.page-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* =====================================================================
   BİLEŞENLER
   ===================================================================== */
.card {
    --bs-card-border-color: var(--line);
    --bs-card-border-radius: var(--radius);
    --bs-card-inner-border-radius: calc(var(--radius) - 1px);
    --bs-card-cap-bg: transparent;
    --bs-card-spacer-y: 1.2rem;
    --bs-card-spacer-x: 1.3rem;
    box-shadow: var(--shadow-xs);
}

.card-header {
    font-weight: 600;
    padding-top: .95rem;
    padding-bottom: .95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .card-header .ms-auto {
        font-weight: 400;
    }

.card-footer {
    background: #fbf9f9;
}

.section-title {
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    margin: 4px 0 12px;
}

/* ---------------------------------------------------------------- düğmeler */
.btn {
    --bs-btn-font-weight: 500;
    --bs-btn-border-radius: 10px;
    --bs-btn-padding-x: .95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-sm {
    --bs-btn-border-radius: 9px;
}

.btn-lg {
    --bs-btn-border-radius: 12px;
    --bs-btn-font-size: 1.02rem;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-600);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-700);
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #e39a9e;
    --bs-btn-disabled-border-color: transparent;
    background-image: var(--brand-gradient);
    box-shadow: 0 8px 20px -10px rgba(211, 21, 30, .85);
}

    .btn-primary:hover {
        background-image: linear-gradient(135deg, #d11a23 0%, #b3111a 60%, #8f0d14 100%);
    }

.btn-accent {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--accent-600);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #055a27;
    --bs-btn-active-border-color: transparent;
    background-image: var(--accent-gradient);
    box-shadow: 0 8px 20px -10px rgba(11, 138, 62, .9);
}

.btn-light {
    --bs-btn-bg: #fff;
    --bs-btn-border-color: var(--line);
    --bs-btn-hover-bg: #faf6f6;
    --bs-btn-hover-border-color: #e2d6d7;
    --bs-btn-color: var(--text);
}

.btn-soft {
    --bs-btn-color: var(--text);
    --bs-btn-bg: #f3eeee;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: #eae1e2;
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-border-color: transparent;
}

.btn-soft-brand {
    --bs-btn-color: var(--brand-700);
    --bs-btn-bg: var(--brand-50);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: var(--brand-700);
    --bs-btn-active-color: #fff;
}

.btn-soft-danger {
    --bs-btn-color: var(--danger-600);
    --bs-btn-bg: var(--danger-50);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--danger);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: var(--danger-600);
    --bs-btn-active-color: #fff;
}

.btn-whatsapp {
    --bs-btn-color: #fff;
    --bs-btn-bg: #1faa55;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #188f47;
    --bs-btn-hover-border-color: transparent;
}

.btn-square {
    width: 34px;
    height: 34px;
    padding: 0;
}

/* ---------------------------------------------------------------- form alanları */
.form-label {
    font-weight: 500;
    font-size: 14px;
    color: #354239;
    margin-bottom: 6px;
}

    .form-label .req {
        color: var(--danger);
        margin-left: 2px;
    }

.form-control,
.form-select {
    background-color: #fff;
    border-color: #e3d9da;
    border-radius: 10px;
    padding: .6rem .85rem;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--brand);
        box-shadow: 0 0 0 .22rem rgba(211, 21, 30, .14);
    }

    .form-control.input-validation-error,
    .form-select.input-validation-error {
        border-color: var(--danger);
        background-color: #fffafa;
    }

.field-validation-error {
    display: block;
    font-size: 13px;
    color: var(--danger-600);
    margin-top: 5px;
}

.validation-summary-valid {
    display: none;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 18px;
}

    .validation-summary-errors ul:has(> li:only-child) {
        list-style: none;
        padding-left: 0;
    }

.is-busy {
    position: relative;
    color: transparent !important;
}

    .is-busy::after {
        content: "";
        position: absolute;
        width: 18px;
        height: 18px;
        border: 2px solid rgba(255, 255, 255, .6);
        border-top-color: #fff;
        border-radius: 50%;
        animation: spin .7s linear infinite;
    }

.btn-light.is-busy::after,
.btn-soft.is-busy::after {
    border-color: rgba(0, 0, 0, .2);
    border-top-color: var(--brand);
}

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

.form-text {
    color: var(--muted);
    font-size: 12.5px;
}

/* İşaretli kutu ve açık anahtar yeşil ("evet") */
.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.form-check-input:focus {
    box-shadow: 0 0 0 .2rem rgba(11, 138, 62, .2);
    border-color: #8cc5a3;
}

.form-switch .form-check-input {
    width: 2.4em;
    height: 1.3em;
    cursor: pointer;
}

.input-group-text {
    background: #faf7f7;
    border-color: #e3d9da;
    color: var(--muted);
}

.form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 1.3rem;
    border-top: 1px solid var(--line);
    background: #fbf9f9;
    border-radius: 0 0 var(--radius) var(--radius);
}

/* ---------------------------------------------------------------- uyarılar */
.alert {
    border-radius: 12px;
    border: 0;
    box-shadow: var(--shadow-xs);
}

.alert-success {
    background: #e7f6ec;
    color: #0e5e30;
}

.alert-danger {
    background: #fdeceb;
    color: #9a1a12;
}

.alert-warning {
    background: #fff4e0;
    color: #8a5300;
}

.alert-info {
    background: #e8f3fb;
    color: #1b5d86;
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .flash > .bi {
        font-size: 18px;
        margin-top: 1px;
    }

/* ---------------------------------------------------------------- karşılama ve üye kartı */
.welcome {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 28px 30px;
    color: #fff;
    background: var(--brand-gradient);
    box-shadow: 0 24px 50px -28px rgba(122, 11, 17, .9);
    margin-bottom: 22px;
}

    .welcome::after {
        content: "";
        position: absolute;
        right: -60px;
        top: -80px;
        width: 260px;
        height: 260px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .08);
    }

    .welcome h2 {
        font-size: 26px;
        font-weight: 750;
        letter-spacing: -.03em;
        margin: 0 0 6px;
    }

    .welcome p {
        margin: 0;
        opacity: .9;
        max-width: 620px;
    }

    .welcome .welcome-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 18px;
        position: relative;
        z-index: 1;
    }

.member-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 22px 22px 20px;
    color: #fff;
    min-height: 196px;
    background: linear-gradient(140deg, #3b0508 0%, #7a0b11 55%, #c8141c 100%);
    box-shadow: 0 24px 48px -26px rgba(59, 5, 8, .95);
    display: flex;
    flex-direction: column;
}

    .member-card::before {
        content: "";
        position: absolute;
        right: -40px;
        bottom: -50px;
        width: 210px;
        height: 210px;
        background: url("../img/logo.png?v=2") center / contain no-repeat;
        opacity: .14;
    }

    .member-card::after {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 6px;
        background: linear-gradient(180deg, var(--brand), #fff 50%, var(--accent));
    }

    .member-card .label {
        font-size: 11px;
        letter-spacing: .12em;
        text-transform: uppercase;
        opacity: .7;
    }

    .member-card .name {
        font-size: 21px;
        font-weight: 750;
        letter-spacing: -.02em;
        margin: 4px 0 2px;
    }

    .member-card .number {
        font-size: 30px;
        font-weight: 800;
        letter-spacing: .02em;
        font-variant-numeric: tabular-nums;
        margin-top: auto;
    }

    .member-card .meta {
        display: flex;
        gap: 18px;
        font-size: 13px;
        opacity: .88;
    }

/* ---------------------------------------------------------------- istatistik kutuları */
.stat {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, box-shadow .15s;
}

a.stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: inherit;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    flex-shrink: 0;
}

.stat-value {
    font-size: 26px;
    font-weight: 750;
    letter-spacing: -.03em;
    line-height: 1.1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 575.98px) {
    .stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 19px;
        border-radius: 11px;
    }

    .stat-value {
        font-size: 22px;
    }
}

.stat-icon-sm {
    width: 38px;
    height: 38px;
    font-size: 17px;
    border-radius: 11px;
}

.tint-green { background: rgba(11, 138, 62, .12); color: var(--accent); }
.tint-red { background: rgba(211, 21, 30, .1); color: var(--brand-600); }
.tint-amber { background: rgba(245, 158, 11, .15); color: #b45309; }
.tint-blue { background: rgba(37, 99, 235, .1); color: #1d4ed8; }
.tint-violet { background: rgba(124, 58, 237, .11); color: #6d28d9; }
.tint-gray { background: #f1eded; color: #5d5354; }

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.quick-tile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    color: var(--text);
    transition: border-color .15s, transform .15s, box-shadow .15s;
}

    .quick-tile:hover {
        border-color: #dccfd0;
        transform: translateY(-2px);
        box-shadow: var(--shadow);
        color: var(--ink);
    }

    .quick-tile .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 19px;
        border-radius: 12px;
    }

    .quick-tile strong {
        font-size: 14.5px;
    }

    .quick-tile span {
        font-size: 12.5px;
        color: var(--muted);
    }

/* ---------------------------------------------------------------- listeler (başvuru kartları) */
.list-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

    .list-card + .list-card {
        margin-top: 10px;
    }

    .list-card .list-title {
        font-weight: 650;
        color: var(--ink);
    }

    .list-card .list-desc {
        font-size: 13.5px;
        color: var(--muted);
    }

@media (max-width: 575.98px) {
    .list-card {
        flex-direction: column;
        align-items: stretch;
    }
}

.row-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 1.3rem;
    border-top: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
}

    .row-item:first-child {
        border-top: 0;
    }

a.row-item:hover {
    background: #fcf9f9;
    color: inherit;
}

/* ---------------------------------------------------------------- rozetler */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
    vertical-align: middle;
}

.pill-live { background: #e4f5ea; color: #0f6b35; }
.pill-muted { background: #f1eded; color: #64595a; }
.pill-info { background: #e6f1fb; color: #185f8f; }
.pill-warn { background: #fff1dc; color: #a15c00; }
.pill-new { background: #fde6e4; color: #b3170f; }
.pill-brand { background: var(--brand-50); color: var(--brand-700); }
.pill-dark { background: var(--brand-900); color: #fff; }

/* ---------------------------------------------------------------- filtreler ve sekmeler */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 14px 1.3rem;
    border-bottom: 1px solid var(--line);
}

    .filter-bar .search {
        flex: 1 1 240px;
        position: relative;
        min-width: 0;
    }

        .filter-bar .search .bi {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--muted);
        }

        .filter-bar .search .form-control {
            padding-left: 36px;
        }

    .filter-bar .form-select {
        flex: 0 1 220px;
        width: auto;
        /* Seçim kutusu en uzun seçenek (okul adı) kadar genişlemek ister; esnek düzende daralabilsin. */
        min-width: 0;
    }

@media (max-width: 575.98px) {
    .filter-bar .form-select {
        flex: 1 1 100%;
    }
}

/* Canlı filtre: yenilenen bölgenin yer tutucusu kutu oluşturmaz (filtre çubuğunda boş aralık bırakmaz). Yanıt
   150 ms'den uzun sürerse sonuçlar soluklaşır; hızlı yanıtta titreme olmaz. */
.live-slot {
    display: contents;
}

[data-live-region] {
    transition: opacity .15s ease;
}

    [data-live-region].is-loading {
        opacity: .55;
        transition-delay: .15s;
    }

.status-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 8px 1rem 0;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
}

    .status-tabs a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 12px;
        font-size: 14px;
        font-weight: 500;
        color: var(--muted);
        text-decoration: none;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
    }

        .status-tabs a:hover {
            color: var(--ink);
        }

        .status-tabs a.active {
            color: var(--brand-700);
            border-bottom-color: var(--brand);
        }

    .status-tabs .count {
        font-size: 11.5px;
        font-weight: 600;
        background: #f1eded;
        color: #64595a;
        border-radius: 999px;
        padding: 1px 8px;
    }

    .status-tabs a.active .count {
        background: var(--brand-50);
        color: var(--brand-700);
    }

/* ---------------------------------------------------------------- tablolar */
.table {
    --bs-table-hover-bg: #fbf8f8;
    margin: 0;
}

    .table > thead th {
        font-size: 11.5px;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: var(--muted);
        font-weight: 600;
        background: #fbf9f9;
        border-bottom-color: var(--line);
        padding: 11px 1rem;
        white-space: nowrap;
    }

    .table > tbody td {
        padding: 11px 1rem;
        border-color: var(--line);
        vertical-align: middle;
    }

        .table > tbody tr.row-muted td {
            background: #fcfcfc;
            color: var(--muted);
        }

tr.unread td {
    background: #fffaf0;
}

.person {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

    .person a {
        font-weight: 600;
        color: var(--ink);
        text-decoration: none;
    }

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

    .person small {
        display: block;
        font-size: 12.5px;
        color: var(--muted);
    }

.col-check {
    width: 36px;
}

.pre-line {
    white-space: pre-line;
}

/* Uzun hücre metni (okul adı, e-posta) tek satırda üç noktayla kısalır; tamamı title'da */
.cell-clip {
    display: block;
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cell-clip-wide {
    max-width: 520px;
}

@media (max-width: 767.98px) {
    .cell-clip {
        max-width: 60vw;
    }
}

.social-inline a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    margin-right: 10px;
    white-space: nowrap;
}

    .social-inline a:hover {
        color: var(--brand);
    }

/* Dar ekranda tablo satırları kart gibi alt alta dizilir; hücre başlığı data-label'dan gelir. Tablo ve gövdesi blok
   olur: tablo düzeni içeriğe göre genişleyip (telefon + e-posta yan yana) ekranı taşırmasın. Etiket solda, değerler
   sağda; sığmayan değer alt satıra iner. */
@media (max-width: 767.98px) {
    .table-stack,
    .table-stack tbody {
        display: block;
        width: 100%;
    }

    .table-stack thead {
        display: none;
    }

    .table-stack tr {
        display: block;
        padding: 12px 14px;
        border-bottom: 1px solid var(--line);
    }

    .table-stack td {
        display: flex;
        flex-wrap: wrap;
        column-gap: 12px;
        row-gap: 2px;
        justify-content: flex-end;
        align-items: center;
        padding: 4px 0 !important;
        border: 0 !important;
        text-align: right;
        min-width: 0;
    }

        .table-stack td > * {
            min-width: 0;
            max-width: 100%;
        }

        .table-stack td::before {
            content: attr(data-label);
            font-size: 12px;
            color: var(--muted);
            text-align: left;
            flex-shrink: 0;
            margin-right: auto;
        }

        .table-stack td[data-label=""]::before,
        .table-stack td:not([data-label])::before {
            display: none;
        }

        .table-stack td.cell-main {
            justify-content: flex-start;
            text-align: left;
            padding-bottom: 8px !important;
        }
}

/* ---------------------------------------------------------------- sayfalama */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 1.3rem;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--muted);
}

    .pager .pagination {
        margin: 0;
        --bs-pagination-border-radius: 9px;
        --bs-pagination-active-bg: var(--brand);
        --bs-pagination-active-border-color: var(--brand);
        --bs-pagination-color: var(--text);
        --bs-pagination-hover-color: var(--brand-700);
        --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(211, 21, 30, .2);
    }

/* ---------------------------------------------------------------- boş durum */
.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 44px 20px;
}

    .empty-state .stat-icon {
        margin: 0 auto 14px;
    }

    .empty-state h3 {
        font-size: 17px;
        font-weight: 650;
        color: var(--ink);
    }

/* ---------------------------------------------------------------- bilgi listesi (üye detayı) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2px 18px;
    margin: 0;
}

    .info-grid > div {
        padding: 10px 0;
        border-bottom: 1px dashed var(--line);
        min-width: 0;
    }

    .info-grid dt {
        font-size: 12px;
        font-weight: 500;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .info-grid dd {
        margin: 2px 0 0;
        font-weight: 500;
        color: var(--ink);
        overflow-wrap: anywhere;
    }

.quote-box {
    background: #fbf8f8;
    border-left: 4px solid var(--brand);
    border-radius: 8px;
    padding: 12px 16px;
    white-space: pre-line;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .timeline li {
        display: flex;
        gap: 12px;
        padding: 10px 0;
        border-top: 1px solid var(--line);
        font-size: 14px;
    }

        .timeline li:first-child {
            border-top: 0;
        }

    .timeline .when {
        flex: 0 0 128px;
        color: var(--muted);
        font-size: 13px;
    }

@media (max-width: 575.98px) {
    .timeline li {
        flex-direction: column;
        gap: 2px;
    }

    .timeline .when {
        flex-basis: auto;
    }
}

.nav-tabs-soft {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

    .nav-tabs-soft a {
        padding: 8px 14px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 500;
        color: var(--muted);
        text-decoration: none;
        background: #fff;
        border: 1px solid var(--line);
    }

        .nav-tabs-soft a:hover {
            color: var(--ink);
        }

        .nav-tabs-soft a.active {
            color: #fff;
            background: var(--brand);
            border-color: var(--brand);
        }

.action-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    background: #fff;
}

    .action-card + .action-card {
        margin-top: 12px;
    }

    .action-card h3 {
        font-size: 15px;
        font-weight: 650;
        margin: 0 0 4px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .action-card p {
        font-size: 13px;
        color: var(--muted);
        margin: 0 0 12px;
    }

.action-card-danger {
    border-color: #f5c9c6;
    background: #fffafa;
}

/* ---------------------------------------------------------------- pencereler ve bildirimler */
.modal-content {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 30px 60px -20px rgba(27, 16, 17, .45);
}

.confirm-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--danger-50);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

    .confirm-icon.is-brand {
        background: var(--accent-50);
        color: var(--accent);
    }

.toast {
    border-radius: 12px;
    box-shadow: 0 16px 30px -14px rgba(27, 16, 17, .45);
}

/* ---------------------------------------------------------------- e-posta önizleme ve ilerleme */
.mail-preview {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #f4f1f1;
}

    .mail-preview .mp-head {
        background: var(--brand);
        color: #fff;
        padding: 14px 18px;
        font-weight: 700;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 10px;
        border-bottom: 4px solid var(--accent);
    }

        .mail-preview .mp-head img {
            width: 30px;
            height: 30px;
        }

    .mail-preview .mp-body {
        background: #fff;
        margin: 14px;
        border-radius: 10px;
        padding: 18px;
        font-size: 14px;
        line-height: 1.6;
    }

        .mail-preview .mp-body h4 {
            font-size: 17px;
            font-weight: 700;
            color: #5c0a0f;
            margin-bottom: 10px;
        }

    .mail-preview .mp-text {
        white-space: pre-line;
        overflow-wrap: anywhere;
    }

    .mail-preview .mp-button {
        display: inline-block;
        margin-top: 12px;
        background: var(--brand);
        color: #fff;
        border-radius: 9px;
        padding: 9px 16px;
        font-weight: 600;
    }

.progress-lg {
    height: 12px;
    border-radius: 999px;
    background: #eee8e8;
}

    .progress-lg .progress-bar {
        background: var(--accent-gradient);
        border-radius: 999px;
        transition: width .6s ease;
    }

    .progress-lg .progress-bar.bg-failed {
        background: var(--danger);
    }

/* =====================================================================
   GRAFİKLER (sunucuda çizilir; betik gerekmez)
   ===================================================================== */
.bar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

    .bar-list .bar-row {
        display: flex;
        align-items: baseline;
        gap: 10px;
        font-size: 13.5px;
        margin-bottom: 5px;
    }

    .bar-list .bar-name {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

        .bar-list .bar-name small {
            color: var(--muted);
            margin-left: 4px;
        }

    .bar-list .bar-value {
        font-weight: 650;
        color: var(--ink);
        font-variant-numeric: tabular-nums;
    }

        .bar-list .bar-value small {
            font-weight: 500;
            color: var(--muted);
            margin-left: 4px;
        }

    .bar-list .bar-track {
        height: 8px;
        border-radius: 8px;
        background: #f1ecec;
        overflow: hidden;
    }

    .bar-list .bar-fill {
        display: block;
        height: 100%;
        border-radius: 8px;
        background: var(--brand-gradient);
    }

    .bar-list li:nth-child(even) .bar-fill {
        background: var(--accent-gradient);
    }

.col-chart {
    --chart-height: 190px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: calc(var(--chart-height) + 44px);
    padding-top: 22px;
    background: linear-gradient(to bottom, var(--line) 1px, transparent 1px) 0 22px / 100% calc(var(--chart-height) / 2) repeat-y;
}

    .col-chart .col {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        height: 100%;
    }

    .col-chart .col-bar {
        width: 72%;
        max-width: 42px;
        border-radius: 6px 6px 2px 2px;
        background: var(--brand-gradient);
        position: relative;
        min-height: 2px;
    }

    .col-chart .col:hover .col-bar {
        background: var(--accent-gradient);
    }

    .col-chart .col-value {
        font-size: 11px;
        font-weight: 600;
        color: var(--ink);
        margin-bottom: 4px;
        font-variant-numeric: tabular-nums;
    }

    .col-chart .col-label {
        font-size: 11px;
        color: var(--muted);
        height: 22px;
        line-height: 22px;
        white-space: nowrap;
        overflow: hidden;
        max-width: 100%;
    }

@media (max-width: 767.98px) {
    .col-chart {
        gap: 2px;
    }

        .col-chart .col:nth-child(even) .col-label {
            visibility: hidden;
        }

        .col-chart .col-value {
            display: none;
        }
}

.donut-wrap {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.donut {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

    .donut::after {
        content: "";
        position: absolute;
        inset: 26px;
        border-radius: 50%;
        background: #fff;
    }

    .donut .donut-center {
        position: absolute;
        inset: 0;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: var(--muted);
    }

        .donut .donut-center strong {
            font-size: 22px;
            color: var(--ink);
            letter-spacing: -.02em;
        }

.legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    font-size: 14px;
}

    .legend li {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .legend b {
        font-variant-numeric: tabular-nums;
        margin-left: auto;
        padding-left: 12px;
    }

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* ---------------------------------------------------------------- hata sayfası */
.error-page {
    text-align: center;
    max-width: 520px;
    margin: 70px auto;
    padding: 0 16px;
}

    .error-page .code {
        font-size: 84px;
        font-weight: 850;
        letter-spacing: -.05em;
        line-height: 1;
        background: linear-gradient(135deg, var(--brand), var(--accent));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
