/* ============================================================================
   Tahmin Paneli özel stilleri. En son yüklenir (StylePartialView); tema ve
   layouts/modern.css üzerine yazar, o dosyalara dokunulmaz.

   İçindekiler
     00  Bölüm renkleri ve ortak değerler
     01  Temel
     02  Üst başlık: logo, bölüm menüsü, Sözlük ve kullanıcı menüsü
     03  Sol menü ve telefon bölüm sekmeleri
     04  Sayfa başlığı
     05  Tema tuzakları
     06  Bootstrap renklerinin bölüm rengine çevrilmesi
     07  Ortak bileşenler (app-*)
     08  Veri kaynağı seçici
     09  Maç tahmini (tahmin, geçmiş, detay, model karnesi)
     10  Kupon ve Claude ile Kupon
     11  Ana sayfa
     12  Giriş ekranları
     13  Sayfa ekleri

   Kurallar: yeni ortak sınıflar "app-" ile başlar; jQuery ile gösterilip gizlenen
   öğeye display veren !important yazılmaz; metin en az 12.5px (.8rem).
   ========================================================================== */


/* ============================================================================
   00  Bölüm renkleri ve ortak değerler
   <html data-section="..."> sayfanın rengini seçer; aynı öznitelik tek bir
   öğeyi (üst menü maddesi, kart) başka bölümün rengine boyar.
   ========================================================================== */
:root,
[data-section="home"] {
    --sec: #4338ca;
    --sec-hover: #3730a3;
    --sec-active: #312e81;
    --sec-soft: #eef2ff;
    --sec-soft-2: #e0e7ff;
    --sec-border: #c7d2fe;
    --sec-ink: #312e81;
    --sec-rgb: 67, 56, 202;
}

[data-section="prediction"] {
    --sec: #0369a1;
    --sec-hover: #075985;
    --sec-active: #0c4a6e;
    --sec-soft: #f0f9ff;
    --sec-soft-2: #e0f2fe;
    --sec-border: #bae6fd;
    --sec-ink: #0c4a6e;
    --sec-rgb: 3, 105, 161;
}

[data-section="coupon"] {
    --sec: #a21caf;
    --sec-hover: #86198f;
    --sec-active: #701a75;
    --sec-soft: #fdf4ff;
    --sec-soft-2: #fae8ff;
    --sec-border: #f5d0fe;
    --sec-ink: #701a75;
    --sec-rgb: 162, 28, 175;
}

[data-section="manage"] {
    --sec: #475569;
    --sec-hover: #334155;
    --sec-active: #1e293b;
    --sec-soft: #f8fafc;
    --sec-soft-2: #f1f5f9;
    --sec-border: #cbd5e1;
    --sec-ink: #1e293b;
    --sec-rgb: 71, 85, 105;
}

[data-section="help"] {
    --sec: #92400e;
    --sec-hover: #78350f;
    --sec-active: #451a03;
    --sec-soft: #fffbeb;
    --sec-soft-2: #fef3c7;
    --sec-border: #fde68a;
    --sec-ink: #78350f;
    --sec-rgb: 146, 64, 14;
}

:root {
    --app-bg: #f5f7fb;
    --app-surface: #ffffff;
    --app-surface-2: #f8fafc;
    --app-border: #e2e8f0;
    --app-border-strong: #cbd5e1;
    --app-text: #334155;
    --app-muted: #56657a;
    --app-heading: #0f172a;

    /* Anlam renkleri: yalnız sonuç/durum için, bölüm rengi yerine kullanılmaz. */
    --app-ok-ink: #166534;
    --app-ok-bg: #dcfce7;
    --app-ok-text: #15803d;
    --app-bad-ink: #991b1b;
    --app-bad-bg: #fee2e2;
    --app-bad-text: #b91c1c;
    --app-warn-ink: #92400e;
    --app-warn-bg: #fef3c7;
    --app-neutral-ink: #334155;
    --app-neutral-bg: #e2e8f0;
    --app-info-ink: #1e40af;
    --app-info-bg: #dbeafe;

    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
    --shadow-1: 0 1px 3px rgba(15, 23, 42, .08);
    --shadow-2: 0 12px 28px -14px rgba(15, 23, 42, .25);

    --hdr-h: 70px;
    --side-w: 200px;
    --content-pad: 24px;
    /* AppScroll yükleme ve boyut değişiminde günceller. */
    --app-scroll-offset: 70px;
}

@media (max-width: 767.98px) {
    :root {
        --hdr-h: 60px;
        --content-pad: 12px;
        --app-scroll-offset: 60px;
    }
}


/* ============================================================================
   01  Temel
   ========================================================================== */
html.modern,
html.modern body,
html.app-auth-page,
html.app-auth-page body {
    background: var(--app-bg);
}

html.modern body,
html.app-auth-page body {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: var(--app-text);
}

/* Tema başlıkları ince ve sıkışık çizer; sınıfla verilen ağırlıklar (ör. .pred-headline) yine geçerlidir. */
:where(.modern, .app-auth-page) h1,
:where(.modern, .app-auth-page) h2,
:where(.modern, .app-auth-page) h3,
:where(.modern, .app-auth-page) h4,
:where(.modern, .app-auth-page) h5,
:where(.modern, .app-auth-page) h6 {
    font-weight: 600;
    letter-spacing: normal;
}

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

/* Temanın açık gri (#777) paragraf rengi beyaz üzerinde bile AA sınırının altında kalıyor. */
:where(.modern, .app-auth-page) p {
    color: var(--app-muted);
}

/* Bootstrap'in yardım metni rengi açık gri zeminde AA sınırının hemen altında. */
.form-text {
    color: var(--app-muted);
}

.app-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
}

.app-skip:focus {
    left: 8px;
    top: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--sec-ink);
    font-weight: 600;
    box-shadow: var(--shadow-2);
}

html:root a:focus-visible,
html:root button:focus-visible,
html:root summary:focus-visible,
html:root .btn:focus-visible,
html:root [tabindex]:focus-visible,
html:root input[type="checkbox"]:focus-visible,
html:root input[type="radio"]:focus-visible {
    outline: 2px solid var(--sec);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(var(--sec-rgb), .25);
}

html:root #app-main:focus,
html:root #app-main:focus-visible {
    outline: 0;
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    *:not(.spinner-border):not(.app-spinner):not(.eval-spinner):not(.fa-spin),
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

.modal,
.modal.fade .modal-dialog {
    transition: none !important;
    animation: none !important;
}

.iziToast-wrapper {
    z-index: 9999999 !important;
}

.iziToast-overlay {
    z-index: 9999998 !important;
}

.brand-logo-img--lg {
    height: 88px;
    width: auto;
    max-width: 96px;
}


/* ============================================================================
   02  Üst başlık
   >=992: [logo 200px | bölüm menüsü | Sözlük + kullanıcı]
   768-991: bölüm menüsü gizli. <768: [menü düğmesi | logo] ... [Sözlük | hesap]
   ========================================================================== */
html.modern .header.app-header {
    background: #fff;
    border-top: 4px solid var(--sec);
    border-bottom: 1px solid var(--app-border);
}

.app-header .app-menu-btn {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--app-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--app-heading);
    font-size: 18px;
}

html.modern .header.app-header .logo {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    float: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

html.modern .header.app-header .logo:after {
    display: none;
}

html.modern .header.app-header .logo img.brand-logo-img {
    width: auto;
    height: 40px;
    max-width: 44px;
}

.app-header .app-brand {
    overflow: hidden;
    color: var(--app-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.modern .header.app-header .header-right {
    display: flex;
    align-items: center;
    float: none;
    gap: 8px;
}

.app-icon-btn,
.app-user-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--app-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--app-text);
    font-size: 13.5px;
    font-weight: 600;
}

.app-icon-btn:hover,
.app-user-btn:hover,
.app-user-btn[aria-expanded="true"] {
    border-color: var(--sec-border);
    background: var(--sec-soft);
    color: var(--sec-ink);
}

.app-user-btn {
    border-color: transparent;
    padding: 0 6px;
}

.app-user-name {
    display: none;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-user-caret {
    font-size: 11px;
}

.app-user-menu {
    min-width: 240px;
    padding: 6px;
    border: 1px solid var(--app-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-2);
    font-size: 13.5px;
}

.app-user-menu .app-user-mail {
    display: block;
    max-width: 280px;
    overflow-wrap: anywhere;
    color: var(--app-muted);
    font-size: 12.5px;
}

.app-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    border-radius: var(--radius-sm);
    color: var(--app-text);
}

.app-user-menu .dropdown-item i {
    width: 18px;
    color: var(--sec);
    text-align: center;
}

.app-user-menu .dropdown-item:hover,
.app-user-menu .dropdown-item:focus {
    background: var(--sec-soft);
    color: var(--sec-ink);
}

.app-user-menu .dropdown-item:active,
.app-user-menu .dropdown-item:active i {
    background: var(--sec);
    color: #fff;
}

@media (min-width: 1200px) {
    .app-user-name {
        display: inline-block;
    }
}

@media (min-width: 768px) {
    html.modern .header.app-header {
        display: flex;
        align-items: stretch;
        height: var(--hdr-h);
    }

    html.modern .header.app-header .logo-container {
        display: flex;
        align-items: center;
        flex: 0 0 var(--side-w);
        float: none;
        width: var(--side-w);
        height: 100%;
        margin: 0;
        padding: 0 16px;
        border-right: 1px solid var(--app-border);
    }

    html.modern .header.app-header .header-right {
        height: 100%;
        margin: 0 0 0 auto;
        padding: 0 16px 0 8px;
    }
}

@media (max-width: 991.98px) {
    html.modern .header.app-header .header-nav {
        display: none !important;
    }
}

@media (min-width: 992px) {
    html.modern .header.app-header .header-nav {
        display: flex !important;
        align-items: center;
        flex: 1 1 auto;
        float: none;
        min-width: 0;
        margin: 0;
    }

    html.modern .header.app-header .header-nav-main {
        display: flex !important;
        float: none;
        min-height: 0;
        margin: 0 0 0 12px;
    }

    .app-header ul#mainNav {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 4px;
        margin: 0;
    }

    .app-header #mainNav > li {
        margin: 0;
    }

    .app-header #mainNav > li > a.nav-link {
        display: flex;
        align-items: center;
        gap: 8px;
        height: 44px;
        margin: 0;
        padding: 0 10px;
        border-radius: 5px;
        background: transparent !important;
        color: var(--app-text) !important;
        font-size: 13.5px;
        font-weight: 600;
        text-transform: none;
        white-space: nowrap;
    }

    .app-header #mainNav > li > a.nav-link i {
        color: var(--sec);
    }

    .app-header #mainNav > li > a.nav-link:hover {
        background: var(--sec-soft) !important;
        color: var(--sec-ink) !important;
    }

    .app-header #mainNav > li.active > a.nav-link {
        background: var(--sec-soft-2) !important;
        color: var(--sec-ink) !important;
        box-shadow: inset 0 -3px 0 var(--sec);
    }
}

@media (min-width: 1200px) {
    .app-header #mainNav > li > a.nav-link {
        padding: 0 14px;
        font-size: 14px;
    }
}

@media (max-width: 767.98px) {
    html.modern .header.app-header {
        height: auto;
        border: 0;
        background: transparent;
    }

    html.modern .header.app-header .logo-container {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 99;
        display: flex;
        align-items: center;
        gap: 8px;
        width: auto;
        height: var(--hdr-h);
        margin: 0;
        /* Sağda Sözlük ve hesap düğmelerine yer bırakılır. */
        padding: 0 118px 0 8px;
        border-top: 4px solid var(--sec);
        border-bottom: 1px solid var(--app-border);
        background: #fff;
    }

    html.modern .header.app-header .logo img.brand-logo-img {
        height: 34px;
        max-width: 36px;
    }

    html.modern .header.app-header .header-right {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 100;
        width: auto;
        height: var(--hdr-h) !important;
        margin: 0;
        padding: 3px 8px 0 0;
        background: transparent;
    }

    .app-icon-btn {
        padding: 0;
    }

    .app-icon-btn-label {
        display: none;
    }
}

@media (max-width: 359.98px) {
    .app-header .app-brand {
        display: none;
    }
}


/* ============================================================================
   03  Sol menü ve telefon bölüm sekmeleri
   >=992 yalnız bulunulan bölüm; daha dar ekranda tüm bölümler (bulunulan üstte).
   ========================================================================== */
html.modern .sidebar-left {
    border-right: 1px solid var(--app-border);
    background: #fff;
}

html.modern .sidebar-left .nano {
    background: #fff;
    box-shadow: none;
}

.app-nav-group {
    margin: 0 0 8px;
}

.app-nav-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 16px;
    background: var(--sec-soft-2);
    color: var(--sec-ink);
    font-size: 12.5px;
    font-weight: 700;
}

#sidebar-left #menu.app-nav ul.nav-main {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

#sidebar-left #menu.app-nav ul.nav-main > li {
    width: 100%;
    margin: 0;
}

#sidebar-left #menu.app-nav ul.nav-main > li > a.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0;
    padding: 10px 14px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--app-text);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.3;
    text-overflow: clip;
    white-space: normal;
}

#sidebar-left #menu.app-nav ul.nav-main > li > a.nav-link > i {
    flex: 0 0 20px;
    width: 20px;
    margin: 0;
    color: var(--sec);
    font-size: 15px;
    text-align: center;
}

#sidebar-left #menu.app-nav ul.nav-main > li > a.nav-link:hover {
    background: var(--sec-soft);
    color: var(--sec-ink);
}

#sidebar-left #menu.app-nav ul.nav-main > li.nav-active > a.nav-link {
    background: var(--sec-soft-2);
    box-shadow: inset 4px 0 0 var(--sec);
    color: var(--sec-ink);
    font-weight: 700;
}

#sidebar-left #menu.app-nav ul.nav-main > li > a.nav-link:focus-visible {
    outline: 2px solid var(--sec);
    outline-offset: -3px;
}

.app-sidebar-top {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 8px 0 16px;
    border-bottom: 1px solid var(--app-border);
    background: #fff;
}

.app-sidebar-heading {
    color: var(--app-heading);
    font-size: 16px;
    font-weight: 700;
}

.app-sidebar-top .app-menu-close {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--app-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--app-heading);
    font-size: 20px;
}

@media (min-width: 992px) {
    .app-nav-group:not(.is-current) {
        display: none;
    }

    .app-nav-group.is-current > .app-nav-title {
        background: var(--sec);
        color: #fff;
    }
}

@media (max-width: 991.98px) {
    #sidebar-left #menu.app-nav {
        display: flex;
        flex-direction: column;
    }

    .app-nav-group.is-current {
        order: -1;
    }
}

@media (min-width: 768px) {
    html.modern.fixed .sidebar-left {
        top: var(--hdr-h);
        padding-bottom: 0;
    }

    html.modern.fixed .sidebar-left .nano-content {
        padding-bottom: 24px;
    }
}

@media (max-width: 767.98px) {
    /* Açık menü sabit üst başlığın üstünde durur; kapalıyken klavye ve ekran okuyucudan da gizlenir. */
    html.modern .sidebar-left {
        z-index: 1030 !important;
        visibility: hidden;
        transition-property: margin, visibility !important;
        transition-delay: 0s, .25s !important;
    }

    html.modern.sidebar-left-opened .sidebar-left {
        visibility: visible;
        transition-delay: 0s, 0s !important;
    }

    /* Mobil menü dokunma kaydırması (custom.js'teki korumayla birlikte). */
    html.mobile-device .sidebar-left,
    html.mobile-device .sidebar-left .nano-content {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    /* Tema, telefon kimliği olmayan dar pencerede sayfayı .inner-wrapper içinde kaydırır; bu, yapışık
       düğmeleri ve window kaydırmasını bozar. Menü açıkken sayfayı kilitleyen kural korunur. */
    html.modern.no-mobile-device .body,
    html.modern.no-mobile-device .inner-wrapper {
        overflow: visible;
    }
}

.app-subnav {
    display: flex;
    gap: 8px;
    margin: -8px 0 12px;
    padding: 2px 2px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.app-pill {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--sec-border);
    border-radius: 999px;
    background: #fff;
    color: var(--sec-ink);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}

.app-pill:hover {
    background: var(--sec-soft);
    color: var(--sec-ink);
}

.app-pill.is-active,
.app-pill.is-active:hover {
    border-color: var(--sec);
    background: var(--sec);
    color: #fff;
}


/* ---------- Yerleşim (başlık + sol menü + içerik) ---------- */
@media (min-width: 768px) {
    html.modern.fixed .inner-wrapper,
    html.modern.scroll .inner-wrapper {
        padding-top: var(--hdr-h);
    }

    html.modern.mobile-device.flexbox:not(.has-tab-navigation) .content-body {
        width: calc(100vw - var(--side-w)) !important;
    }
}

@media (max-width: 767.98px) {
    html.modern .inner-wrapper {
        padding-top: var(--hdr-h);
    }

    html.modern.mobile-device.flexbox:not(.has-tab-navigation) .content-body {
        width: 100% !important;
    }
}

html.modern .content-body,
html.modern.fixed .content-body {
    margin-top: 0;
    padding: 0 var(--content-pad) var(--content-pad);
}

html.modern .content-body:not(.card-margin) > .row + .row {
    padding-top: 16px;
}


/* ============================================================================
   04  Sayfa başlığı (yalnız _Layout üretir)
   ========================================================================== */
html.modern .page-header.app-pagehead,
html.modern.fixed .page-header.app-pagehead {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    height: auto;
    margin: 0 calc(var(--content-pad) * -1) 20px;
    padding: 14px var(--content-pad);
    border: 0;
    border-bottom: 1px solid var(--sec-border);
    background: linear-gradient(90deg, var(--sec-soft-2) 0%, var(--sec-soft) 45%, #fff 100%);
    box-shadow: none;
}

.app-pagehead-icon {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--sec);
    color: #fff;
    font-size: 19px;
}

.app-pagehead-text {
    flex: 1 1 220px;
    min-width: 0;
}

.app-pagehead-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    color: var(--sec);
    font-size: 12.5px;
    font-weight: 600;
}

.app-pagehead-back:hover {
    color: var(--sec-hover);
    text-decoration: underline;
}

html.modern .app-pagehead .app-pagehead-title {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--sec-ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: normal;
    text-transform: none;
}

.app-pagehead-sub {
    margin: 2px 0 0;
    color: var(--app-muted);
    font-size: 13.5px;
    line-height: 1.45;
}

html.modern .page-header.app-pagehead .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 12.5px;
    line-height: 1.4;
    list-style: none;
}

html.modern .page-header.app-pagehead .breadcrumbs li {
    display: inline-flex;
    align-items: center;
    color: var(--app-muted);
    font-weight: 400;
}

html.modern .page-header.app-pagehead .breadcrumbs li:after {
    margin: 0 8px;
    color: var(--app-muted);
    content: "/";
    font-size: 12.5px;
}

html.modern .page-header.app-pagehead .breadcrumbs li:last-child:after {
    display: none;
}

html.modern .page-header.app-pagehead .breadcrumbs a {
    color: var(--sec-ink);
    font-size: 12.5px;
    line-height: 1.4;
    text-transform: none;
}

html.modern .page-header.app-pagehead .breadcrumbs span {
    color: var(--app-muted);
    font-size: 12.5px;
    line-height: 1.4;
    text-transform: none;
}

.app-pagehead-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.app-guide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--sec-border);
    background: #fff;
    color: var(--sec-ink);
    font-weight: 600;
}

.app-guide-btn:hover,
.app-guide-btn[aria-expanded="true"] {
    border-color: var(--sec);
    background: var(--sec-soft-2);
    color: var(--sec-ink);
}

@media (min-width: 992px) {
    html.modern.fixed .page-header.app-pagehead {
        position: sticky;
        top: var(--hdr-h);
        z-index: 990;
    }

    /* Tahmin sonucunun kendi yapışık gezinme çubuğu vardır; iki yapışık şerit ekranı doldurmasın. */
    html.modern.fixed body[data-page="prediction.new"] .page-header.app-pagehead,
    html.modern.fixed body[data-page="prediction.detail"] .page-header.app-pagehead {
        position: static;
    }
}

@media (max-width: 991.98px) {
    .app-pagehead-crumbs {
        display: none;
    }

    .app-pagehead-actions {
        flex: 1 1 100%;
    }

    .app-pagehead-actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 44px;
    }
}

@media (max-width: 767.98px) {
    html.modern .app-pagehead .app-pagehead-title {
        font-size: 18px;
    }
}

/* Telefonda düğmeler satırı paylaşır; sığmayan alta geçer. */
@media (max-width: 575.98px) {
    .app-pagehead-actions > * {
        flex: 1 1 130px;
    }

    .app-pagehead-actions > .app-guide-btn {
        flex: 0 1 auto;
        padding-right: 14px;
        padding-left: 14px;
    }
}


/* ============================================================================
   05  Tema tuzakları
   ========================================================================== */
/* theme.css tablo kenarlıklarını siyah yapıyor. */
thead,
tbody,
tfoot,
tr,
td,
th {
    border-color: var(--app-border);
}

.card.card-modern .card-title {
    font-size: 16px;
    letter-spacing: normal;
}

/* Temanın eski Font Awesome adını kullanan simgeleri boş görünür. */
.page-header.page-header-left-inline-breadcrumb .breadcrumbs li:after,
.header.header-nav-menu.header-nav-links nav > ul > li > a.dropdown-toggle:after,
.header.header-nav-menu.header-nav-links nav > ul > li.dropdown .dropdown-menu li.dropdown-submenu > a:after,
.header.header-nav-menu.header-nav-links nav > ul > li.dropdown-mega .dropdown-mega-sub-nav .mega-sub-nav-toggle:before,
.card.card-modern .card-action-toggle:before {
    font-family: "Font Awesome 6 Pro";
}


/* ---------- Accordion: sıfır iç boşluk yalnız eski metrik seçici başlıklarında ---------- */
.accordion-header {
    margin-top: 0;
}

#MetricSelector .accordion-header > .accordion-button {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#MetricSelector .pred-metric-header .accordion-button {
    padding: .6rem !important;
}

/* ---------- Select2 ---------- */
.select2-container--bootstrap .select2-selection--single {
    height: 38px !important;
    line-height: 26px !important;
}

.select2-dropdown {
    z-index: 999999 !important;
}

.select2-container--bootstrap .select2-results__option--highlighted[aria-selected] {
    background-color: var(--sec);
    color: #fff !important;
}

/* Tablo "satır sayısı" seçicisi: yüklü dosyalarda bu seçicinin çerçevesi ve oku yok. */
.dataTables_wrapper .select2-container--bootstrap .select2-selection--single {
    position: relative;
    border: 1px solid #ced4da;
    border-radius: .125rem;
    background-color: #fff;
}

.dataTables_wrapper .select2-container--bootstrap .select2-selection__arrow {
    position: absolute;
    top: 0;
    right: 8px;
    bottom: 0;
    width: 10px;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") center / 10px no-repeat;
}

.dataTables_wrapper .select2-container--bootstrap .select2-selection__arrow b {
    display: none;
}

.dataTables_wrapper .select2-container--bootstrap.select2-container--focus .select2-selection--single {
    border-color: var(--sec);
    box-shadow: 0 0 0 .2rem rgba(var(--sec-rgb), .25);
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: 1px solid #ced4da !important;
}

/* ---------- DataTables ---------- */
.dataTables_length {
    margin-bottom: 20px !important;
}

html .dataTables_wrapper .dataTables_length label {
    color: var(--app-muted);
}

html .dataTables_wrapper .dataTables_filter {
    position: static;
    width: auto;
    text-align: right;
}

html .dataTables_wrapper .dataTables_filter label {
    width: 100% !important;
    max-width: 320px;
    margin: 0 0 12px auto;
}

.dataTables_wrapper .dataTables_filter input {
    min-height: 40px;
}

div.dataTables_wrapper div.dataTables_processing {
    z-index: 9 !important;
}

.buttons-html5 {
    display: none;
}

.table-head-position-sticky {
    position: sticky;
    top: 0;
    z-index: 9;
}

@media (max-width: 767.98px) {
    html .dataTables_wrapper .dataTables_filter label {
        max-width: none;
    }

    .dataTables_wrapper .dataTables_filter input {
        min-height: 44px;
        font-size: 16px;
    }

    /* Alt alta gelen tablo sütunlarında yan boşluk kalmasın: arama kutusu diğer süzgeçlerle aynı hizadan başlar. */
    html div.dataTables_wrapper > div.row > div[class*="col-"] {
        padding-right: 0;
        padding-left: 0;
    }

    html div.dataTables_wrapper div.dataTables_filter input {
        display: block;
        margin-left: 0;
    }

    .card.card-modern > .card-body {
        padding: 12px 14px;
    }

    .card.card-modern > .card-footer {
        padding: 10px 12px;
    }

    .card.card-modern .row.g-3 {
        --bs-gutter-y: .65rem;
    }

    .card.card-modern .form-label {
        margin-bottom: .25rem;
        font-size: .8rem;
    }

    /* 16px altındaki alanlar iOS'ta odaklanınca sayfayı yakınlaştırır. */
    .card.card-modern .form-control,
    .card.card-modern .form-select {
        min-height: 44px;
        padding: .4rem .65rem;
        font-size: 16px;
    }

    .card.card-modern select.form-select {
        padding-right: 2.25rem;
    }
}


/* ============================================================================
   06  Bootstrap mavisi -> bölüm rengi (ana düğme ve bağlantılar skins/default.css'te)
   ========================================================================== */
html .btn-outline-primary {
    border-color: var(--sec);
    background-color: transparent;
    color: var(--sec);
}

html .btn-outline-primary:hover,
html .btn-outline-primary:active,
html .btn-outline-primary.active,
html .btn-outline-primary.show,
html .btn-check:checked + .btn-outline-primary,
html .btn-check:active + .btn-outline-primary {
    border-color: var(--sec);
    background-color: var(--sec);
    color: #fff;
}

html .btn-outline-primary:focus,
html .btn-check:focus + .btn-outline-primary {
    box-shadow: 0 0 0 .2rem rgba(var(--sec-rgb), .3);
}

html .btn-outline-primary.disabled,
html .btn-outline-primary:disabled {
    border-color: var(--sec);
    background-color: transparent;
    color: var(--sec);
}

html .btn-link {
    color: var(--sec);
}

html .btn-link:hover {
    color: var(--sec-hover);
}

html .link-primary {
    color: var(--sec) !important;
}

html .border-primary {
    border-color: var(--sec) !important;
}

html .form-control:focus,
html .form-select:focus,
html .form-check-input:focus {
    border-color: var(--sec);
    box-shadow: 0 0 0 .25rem rgba(var(--sec-rgb), .25);
}

html .form-check-input:checked,
html .form-check-input[type="checkbox"]:indeterminate {
    border-color: var(--sec);
    background-color: var(--sec);
}

html .form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
}

html .form-switch .form-check-input:checked,
html .form-switch .form-check-input:checked:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

html .accordion-button:not(.collapsed) {
    background-color: var(--sec-soft-2);
    color: var(--sec-ink);
}

html .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

html .accordion-button:focus {
    border-color: var(--sec);
    box-shadow: 0 0 0 .25rem rgba(var(--sec-rgb), .25);
}

html .page-link {
    color: var(--sec);
}

html .page-link:focus {
    box-shadow: 0 0 0 .25rem rgba(var(--sec-rgb), .25);
}

html .page-item.active .page-link {
    border-color: var(--sec);
    background-color: var(--sec);
    color: #fff;
}

html .page-item.disabled .page-link {
    color: var(--app-muted);
}

.progress-bar {
    background-color: var(--sec);
}

.dropdown-item.active,
.dropdown-item:active,
.list-group-item.active {
    border-color: var(--sec);
    background-color: var(--sec);
    color: #fff;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before {
    background-color: var(--sec);
}


/* ============================================================================
   07  Ortak bileşenler
   ========================================================================== */
.app-surface {
    margin-bottom: 16px;
    padding: 16px 20px;
    border: 1px solid var(--app-border);
    border-radius: var(--radius);
    background: var(--app-surface);
    box-shadow: var(--shadow-1);
}

.app-surface > h2 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
}

.app-anchor,
[id^="terim-"] {
    scroll-margin-top: calc(var(--app-scroll-offset) + 12px);
}

.app-avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sec);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.app-avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 18px;
}

/* ---------- Sayfa rehberi ---------- */
.app-guide {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-left: 4px solid var(--sec);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-1);
}

.app-guide[hidden] {
    display: none !important;
}

.app-guide-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--sec-soft);
    color: var(--sec-ink);
}

html.modern .app-guide-head h2,
.app-guide-head h2 {
    flex: 1 1 180px;
    margin: 0;
    color: var(--sec-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.app-guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px 16px;
    margin: 0;
    padding: 12px 16px 6px;
    list-style: none;
}

.app-guide-steps > li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.app-guide-num {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sec);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.app-guide-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 13.5px;
    line-height: 1.45;
}

.app-guide-body strong {
    color: var(--app-heading);
}

.app-guide-foot {
    margin: 0;
    padding: 4px 16px 12px;
    color: var(--app-muted);
    font-size: 13px;
}

html .btn.app-guide-glossary {
    padding: 0 4px;
    border: 0;
    font-size: inherit;
    font-weight: 600;
    text-decoration: underline;
    vertical-align: baseline;
}

@media (max-width: 767.98px) {
    .app-guide-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .app-guide-close {
        width: 100%;
        min-height: 44px;
    }
}

/* ---------- İpucu düğmesi ve açılır kutusu ---------- */
.app-tip {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 0 2px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--sec);
    font-size: 15px;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
}

.app-tip::before {
    content: "\f05a";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
}

/* Parmakla dokunma alanı 44px. */
.app-tip::after {
    position: absolute;
    top: -12px;
    right: -12px;
    bottom: -12px;
    left: -12px;
    content: "";
}

.app-tip:hover,
.app-tip[aria-expanded="true"] {
    color: var(--sec-active);
}

.app-tip[hidden] {
    display: none !important;
}

.popover {
    max-width: min(300px, 90vw);
    border-color: var(--sec-border);
    border-radius: 5px;
    box-shadow: var(--shadow-2);
    font-family: "Poppins", Arial, sans-serif;
}

.popover-header {
    border-bottom-color: var(--sec-border);
    background: var(--sec-soft-2);
    color: var(--sec-ink);
    font-size: 13.5px;
    font-weight: 700;
}

.popover-body {
    color: var(--app-text);
    font-size: 13px;
    line-height: 1.5;
}

/* ---------- Sözlük ---------- */
.offcanvas.app-glossary {
    width: min(420px, 100vw);
}

.app-glossary .offcanvas-header {
    border-bottom: 1px solid var(--sec-border);
    background: var(--sec-soft);
}

.app-glossary .offcanvas-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--sec-ink);
    font-size: 17px;
    font-weight: 700;
}

.app-glossary .offcanvas-body {
    padding-top: 0;
}

.app-glossary-search {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 12px 0;
    background: #fff;
}

.app-glossary-search .form-control {
    min-height: 44px;
    font-size: 16px;
}

.app-glossary-group > .app-glossary-group-title {
    margin: 12px 0 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--app-border);
    color: var(--app-muted);
    font-size: 12.5px;
    font-weight: 700;
}

.app-glossary-list dl {
    margin: 0;
}

.app-term {
    padding: 8px;
    border-radius: var(--radius-sm);
}

.app-glossary .app-term {
    scroll-margin-top: 80px;
}

.app-term dt {
    color: var(--app-heading);
    font-size: 13.5px;
    font-weight: 700;
}

.app-term dd {
    margin: 2px 0 0;
    color: var(--app-text);
    font-size: 13px;
    line-height: 1.55;
}

.app-term:target,
.app-term.is-target {
    background: var(--sec-soft-2);
}

.app-glossary-empty {
    padding: 8px;
    color: var(--app-muted);
}

.app-glossary-group[hidden],
.app-term[hidden],
[data-glossary-empty][hidden] {
    display: none !important;
}

/* ---------- Sihirbaz ---------- */
.app-wizard-panel[hidden],
.app-wizard-error[hidden],
.app-wizard-mobile[hidden] {
    display: none !important;
}

.app-wizard-steps {
    display: flex;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.app-wizard-steps > li {
    flex: 1 1 0;
    min-width: 0;
}

.app-wizard-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    min-height: 48px;
    padding: 8px 12px;
    border: 1px solid var(--app-border-strong);
    border-radius: var(--radius);
    background: #fff;
    color: var(--app-text);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}

.app-wizard-num {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sec-soft-2);
    color: var(--sec-ink);
    font-size: 13px;
    font-weight: 700;
}

.app-wizard-steps > li.is-done .app-wizard-num,
.app-wizard-tab[aria-current="step"] .app-wizard-num {
    background: var(--sec);
    color: #fff;
}

.app-wizard-tab[aria-current="step"] {
    border-color: var(--sec);
    background: var(--sec-soft);
    box-shadow: inset 0 -3px 0 var(--sec);
    color: var(--sec-ink);
}

.app-wizard-steps > li.is-locked .app-wizard-tab {
    border-style: dashed;
    background: var(--app-surface-2);
    color: var(--app-muted);
    cursor: not-allowed;
}

.app-wizard-steps > li.is-locked .app-wizard-num {
    background: var(--app-neutral-bg);
    color: var(--app-muted);
}

.app-wizard-tab:disabled {
    cursor: wait;
    opacity: .65;
}

.app-wizard-mobile {
    display: none;
}

html.modern .app-wizard-heading,
.app-wizard-heading {
    margin: 0 0 12px;
    color: var(--app-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    scroll-margin-top: calc(var(--app-scroll-offset) + 12px);
}

html:root .app-wizard-heading:focus:not(:focus-visible),
html:root .app-wizard-panel:focus:not(:focus-visible) {
    outline: 0;
    box-shadow: none;
}

.app-wizard-error {
    margin: 12px 0 0;
    padding: 10px 14px;
    border: 1px solid #fca5a5;
    border-radius: var(--radius-sm);
    background: var(--app-bad-bg);
    color: var(--app-bad-ink);
    font-size: 13.5px;
    font-weight: 600;
}

.app-wizard-nav {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--app-border);
}

.app-wizard-nav .btn {
    min-width: 130px;
    min-height: 44px;
}

.app-wizard-nav [data-wizard-next] {
    margin-left: auto;
}

.app-wizard-nav .btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: .55;
}

@media (max-width: 767.98px) {
    .app-wizard-steps {
        display: none;
    }

    .app-wizard-mobile {
        display: block;
        margin-bottom: 12px;
    }

    .app-wizard-mobile-label {
        margin: 0 0 6px;
        color: var(--sec-ink);
        font-size: 13.5px;
        font-weight: 700;
    }

    .app-wizard-bar {
        display: flex;
        gap: 4px;
    }

    .app-wizard-bar > span {
        flex: 1 1 0;
        height: 6px;
        border-radius: 999px;
        background: var(--app-neutral-bg);
    }

    .app-wizard-bar > span.is-done,
    .app-wizard-bar > span.is-current {
        background: var(--sec);
    }

    .app-wizard-nav {
        position: sticky;
        bottom: 0;
        z-index: 5;
        margin: 16px -4px 0;
        padding: 10px 4px;
        background: #fff;
    }

    .app-wizard-nav .btn {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* ---------- Tanıtım turu ---------- */
.app-tour-blocker {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1200;
    background: transparent;
}

.app-tour-blocker.is-dim {
    background: rgba(15, 23, 42, .65);
}

.app-tour-hole {
    position: fixed;
    z-index: 1201;
    border-radius: var(--radius);
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, .65);
    pointer-events: none;
}

.app-tour-card {
    position: fixed;
    z-index: 1202;
    width: min(340px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow: auto;
    padding: 16px;
    border-top: 4px solid var(--sec);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-2);
}

.app-tour-card.is-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.app-tour-hole[hidden],
.app-tour-card [hidden] {
    display: none !important;
}

.app-tour-count {
    display: block;
    color: var(--app-muted);
    font-size: 12.5px;
}

html.modern .app-tour-card h2,
.app-tour-card h2 {
    margin: 4px 0 6px;
    color: var(--sec-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.app-tour-card p {
    margin: 0 0 12px;
    font-size: 13.5px;
}

.app-tour-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.app-tour-actions .btn {
    min-height: 44px;
}

.app-tour-actions .app-tour-skip {
    margin-right: auto;
}

@media (max-width: 767.98px) {
    .app-tour-card:not(.is-center) {
        top: auto !important;
        right: 0;
        bottom: 0 !important;
        left: 0 !important;
        width: 100%;
        max-height: 55vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}

/* ---------- Eylem ve sayı kartları (data-section hedef bölümün rengini verir) ---------- */
.app-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.app-action {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 16px;
    border: 1px solid var(--app-border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-1);
    color: var(--app-text);
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.app-action:hover,
.app-action:focus,
.app-action:active {
    border-color: var(--sec);
    box-shadow: var(--shadow-2);
    color: var(--app-text);
    text-decoration: none;
    transform: translateY(-2px);
}

.app-action-icon {
    display: inline-flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--sec);
    color: #fff;
    font-size: 20px;
}

.app-action-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.app-action-title {
    color: var(--app-heading);
    font-size: 15px;
    font-weight: 700;
}

.app-action-text {
    color: var(--app-muted);
    font-size: 13px;
    line-height: 1.45;
}

.app-action > .fa-chevron-right {
    flex: 0 0 auto;
    color: var(--sec);
}

.app-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.app-stat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "icon value" "icon label";
    align-content: center;
    column-gap: 12px;
    padding: 14px;
    border: 1px solid var(--app-border);
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--app-text);
    text-decoration: none;
}

a.app-stat:hover,
a.app-stat:focus {
    border-color: var(--sec);
    box-shadow: var(--shadow-2);
    color: var(--app-text);
    text-decoration: none;
}

.app-stat-icon {
    display: inline-flex;
    grid-area: icon;
    align-self: center;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background: var(--sec);
    color: #fff;
    font-size: 17px;
}

.app-stat-value {
    grid-area: value;
    color: var(--app-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.app-stat-label {
    grid-area: label;
    color: var(--app-muted);
    font-size: 12.5px;
    line-height: 1.35;
}

.app-stat.is-ok .app-stat-icon {
    background: var(--app-ok-ink);
}

.app-stat.is-bad .app-stat-icon {
    background: var(--app-bad-ink);
}

.app-stat.is-warn .app-stat-icon {
    background: var(--app-warn-ink);
}

@media (max-width: 1199.98px) {
    .app-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .app-stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .app-action-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ---------- Boş durum ---------- */
.app-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 16px;
    border: 1px dashed var(--sec-border);
    border-radius: var(--radius);
    background: var(--sec-soft);
    color: var(--app-text);
    text-align: center;
    white-space: normal;
}

.app-empty[hidden] {
    display: none !important;
}

.app-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: var(--sec);
    font-size: 20px;
}

html.modern .app-empty-title,
.app-empty-title {
    margin: 4px 0 0;
    color: var(--app-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.app-empty-text {
    max-width: 520px;
    margin: 0;
    color: var(--app-muted);
    font-size: 13.5px;
}

.app-empty .btn {
    min-height: 44px;
    margin-top: 8px;
}

.app-empty a.btn:not(.btn-primary):not(.btn-outline-primary) {
    color: var(--app-text);
}

@media (max-width: 575.98px) {
    .app-empty .btn {
        width: 100%;
    }
}

/* ---------- Durum rozetleri ---------- */
.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--app-neutral-bg);
    color: var(--app-neutral-ink);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.app-badge-ok {
    background: var(--app-ok-bg);
    color: var(--app-ok-ink);
}

.app-badge-bad {
    background: var(--app-bad-bg);
    color: var(--app-bad-ink);
}

.app-badge-warn {
    background: var(--app-warn-bg);
    color: var(--app-warn-ink);
}

.app-badge-neutral {
    background: var(--app-neutral-bg);
    color: var(--app-neutral-ink);
}

.app-badge-info {
    background: var(--app-info-bg);
    color: var(--app-info-ink);
}

.app-badge[hidden] {
    display: none !important;
}

/* ---------- Bilgi / uyarı kutusu ---------- */
.app-notice {
    margin-bottom: 12px;
    padding: 12px 16px;
    border: 1px solid var(--sec-border);
    border-radius: var(--radius);
    background: var(--sec-soft);
    color: var(--app-text);
    font-size: 13.5px;
    line-height: 1.55;
}

.app-notice > i:first-child {
    margin-right: 8px;
}

.app-notice a:not(.btn) {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.app-notice .btn {
    margin: 2px 0 2px 8px;
}

.app-notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.app-notice-actions .btn {
    margin: 0;
}

.app-notice-warn {
    border-color: #fcd34d;
    background: var(--app-warn-bg);
    color: var(--app-warn-ink);
}

.app-notice-bad {
    border-color: #fca5a5;
    background: var(--app-bad-bg);
    color: var(--app-bad-ink);
}

.app-notice-ok {
    border-color: #86efac;
    background: var(--app-ok-bg);
    color: var(--app-ok-ink);
}

.app-notice[hidden] {
    display: none !important;
}

/* ---------- Bekleme göstergeleri ---------- */
.app-spinner {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    border: 2px solid var(--app-border-strong);
    border-top-color: var(--sec);
    border-radius: 50%;
    vertical-align: -.15em;
    animation: app-spin .7s linear infinite;
}

.app-spinner-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: var(--app-muted);
    font-size: 13.5px;
}

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

.btn[aria-busy="true"] {
    cursor: progress;
}

/* ---------- Form doğrulama ve yardımcıları ---------- */
.app-field-error {
    display: block;
    width: 100%;
    margin-top: 4px;
    color: var(--app-bad-ink);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
}

html .form-control.is-invalid,
html .form-select.is-invalid,
html .form-check-input.is-invalid {
    border-color: var(--app-bad-text);
}

html .form-control.is-invalid:focus,
html .form-select.is-invalid:focus {
    border-color: var(--app-bad-text);
    box-shadow: 0 0 0 .25rem rgba(185, 28, 28, .25);
}

.input-group > [data-password-toggle],
.input-group > [data-reveal] {
    min-width: 48px;
}

.app-form-error {
    margin: 0 0 12px;
    padding: 10px 14px;
    border: 1px solid #fca5a5;
    border-radius: var(--radius-sm);
    background: var(--app-bad-bg);
    color: var(--app-bad-ink);
    font-size: 13.5px;
    font-weight: 600;
}

.app-form-error[hidden] {
    display: none !important;
}

.app-rules {
    margin: 8px 0 0;
    padding: 0;
    font-size: 12.5px;
    list-style: none;
}

.app-rules > li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    color: var(--app-muted);
}

.app-rules > li::before {
    flex: 0 0 14px;
    content: "\f111";
    font-family: "Font Awesome 6 Pro";
    font-size: 7px;
    font-weight: 900;
    text-align: center;
}

.app-rules > li.is-ok {
    color: var(--app-ok-ink);
    font-weight: 600;
}

.app-rules > li.is-ok::before {
    content: "\f00c";
    font-size: 12px;
}

.app-rules[hidden] {
    display: none !important;
}

/* ---------- Açıklama kartı, kullanım çubuğu, satır notu ---------- */
.app-explain {
    font-size: 13.5px;
}

.app-explain h2 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
}

.app-explain ul,
.app-explain ol {
    margin-bottom: 0;
    padding-left: 20px;
}

.app-explain li {
    margin-bottom: 4px;
}

.app-explain dl {
    display: grid;
    grid-template-columns: minmax(130px, auto) minmax(0, 1fr);
    gap: 6px 16px;
    margin: 0;
}

.app-explain dt {
    color: var(--app-muted);
    font-weight: 600;
}

.app-explain dd {
    margin: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .app-explain dl {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .app-explain dd {
        margin-bottom: 6px;
    }
}

.app-usage {
    min-width: 120px;
}

.app-usage-bar {
    height: 6px;
    margin: 4px 0;
    overflow: hidden;
    border-radius: 999px;
    background: var(--app-neutral-bg);
}

.app-usage-bar > span {
    display: block;
    height: 100%;
    background: var(--sec);
}

.app-usage.is-warn .app-usage-bar > span {
    background: #b45309;
}

.app-usage.is-bad .app-usage-bar > span {
    background: var(--app-bad-text);
}

.app-row-note {
    display: block;
    color: var(--app-muted);
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.4;
}

/* ---------- Onay penceresi (AppUi.confirm) ---------- */
.iziToast-wrapper .iziToast.app-confirm {
    max-width: 460px;
    border-top: 4px solid var(--sec);
    border-radius: var(--radius);
    background: #fff !important;
    box-shadow: var(--shadow-2);
    text-align: left;
}

.iziToast-wrapper .iziToast.app-confirm .iziToast-title {
    color: var(--app-heading);
    font-size: 16px;
    line-height: 1.4;
}

.iziToast-wrapper .iziToast.app-confirm .iziToast-message {
    color: var(--app-text);
    font-size: 13.5px;
    line-height: 1.55;
    white-space: pre-line;
}

/* Uzun e-posta ya da ad onay kutusunun dışına taşıp kesilmesin. */
.iziToast-wrapper .iziToast.app-confirm .iziToast-texts {
    max-width: 100%;
}

.iziToast-wrapper .iziToast.app-confirm .iziToast-title,
.iziToast-wrapper .iziToast.app-confirm .iziToast-message {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.iziToast-wrapper .iziToast.app-confirm .iziToast-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    float: none;
    width: 100%;
    margin: 12px 0 4px;
}

.iziToast-wrapper .iziToast.app-confirm .iziToast-buttons > button {
    min-height: 44px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid var(--app-border-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--app-text);
    font-size: 13.5px;
    font-weight: 600;
}

.iziToast-wrapper .iziToast.app-confirm .iziToast-buttons > button.app-confirm-yes {
    border-color: var(--sec);
    background: var(--sec);
    color: #fff;
}

.iziToast-wrapper .iziToast.app-confirm.app-confirm-danger .iziToast-buttons > button.app-confirm-yes {
    border-color: var(--app-bad-text);
    background: var(--app-bad-text);
}

/* ---------- Tablo ---------- */
.app-table {
    width: 100%;
    margin-bottom: 0;
    color: var(--app-text);
}

.table.app-table > thead > tr > th,
table.dataTable.app-table > thead > tr > th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--sec-border);
    background: var(--sec-soft-2);
    color: var(--sec-ink);
    font-size: 13px;
    font-weight: 600;
    vertical-align: middle;
}

.table.app-table > tbody > tr > td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--app-border);
    font-size: 13.5px;
    vertical-align: middle;
}

.table.app-table > tbody > tr:hover > td {
    background-color: var(--sec-soft);
}

.table.app-table > tbody > tr.app-row-new > td,
.table.app-table > tbody > tr.app-row-new:hover > td {
    background-color: #f0fdf4;
}

.app-table-sort {
    display: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.app-table-sort > label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.app-table-sort > .form-select {
    flex: 1 1 auto;
    min-height: 44px;
    font-size: 16px;
}

@media (min-width: 768px) {
    .table.app-table > tbody > tr > td.app-td-actions {
        text-align: right;
        white-space: nowrap;
    }

    .table.app-table > tbody > tr > td.app-td-actions > .btn + .btn {
        margin-left: 4px;
    }
}

/* Dar ekranda tablo -> kart. .app-cards-lg 992, .app-cards-xl 1200 px altında da kart yapar. */
@media (max-width: 767.98px) {
    table.app-table-cards.app-table-cards,
    table.app-table-cards.app-table-cards > tbody {
        display: block;
        width: 100% !important;
        min-width: 0;
    }

    table.app-table-cards.app-table-cards > thead {
        position: absolute !important;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    table.app-table-cards.app-table-cards > tbody > tr {
        display: flex;
        flex-direction: column;
        height: auto;
        margin-bottom: 10px;
        padding: 6px 0;
        border: 1px solid var(--app-border);
        border-radius: var(--radius);
        background: #fff;
        box-shadow: var(--shadow-1);
    }

    table.app-table-cards.app-table-cards > tbody > tr > th,
    table.app-table-cards.app-table-cards > tbody > tr > td {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 4px 8px;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        padding: 6px 12px;
        border-width: 0;
        --bs-table-accent-bg: transparent;
        overflow-wrap: anywhere;
        text-align: right;
        white-space: normal;
    }

    table.app-table-cards.app-table-cards > tbody > tr > td[data-label]::before {
        max-width: 45%;
        margin-right: auto;
        color: var(--app-muted);
        content: attr(data-label);
        font-size: 12.5px;
        font-weight: 600;
        text-align: left;
    }

    table.app-table-cards.app-table-cards > tbody > tr > td.app-td-primary {
        justify-content: flex-start;
        order: -1;
        margin-bottom: 4px;
        padding-top: 4px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--app-border);
        color: var(--app-heading);
        font-size: 15px;
        font-weight: 700;
        text-align: left;
    }

    table.app-table-cards.app-table-cards > tbody > tr > td.app-td-actions {
        justify-content: flex-end;
        order: 1;
        gap: 8px;
        padding-top: 8px;
        padding-bottom: 4px;
        text-align: right;
        white-space: normal;
    }

    table.app-table-cards.app-table-cards > tbody > tr > td.app-td-actions > .btn {
        display: inline-flex;
        flex: 1 1 auto;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 44px;
        margin: 0;
    }

    table.app-table-cards.app-table-cards > tbody > tr > td[colspan] {
        display: block;
        text-align: center;
    }

    table.app-table-cards.app-table-cards > tbody > tr > td.app-td-primary::before,
    table.app-table-cards.app-table-cards > tbody > tr > td.app-td-actions::before,
    table.app-table-cards.app-table-cards > tbody > tr > td.app-td-nolabel::before,
    table.app-table-cards.app-table-cards > tbody > tr > td.coupon-col-toggle::before,
    table.app-table-cards.app-table-cards > tbody > tr > td[colspan]::before,
    table.app-table-cards.app-table-cards > tbody > tr > td[data-label=""]::before {
        content: none;
    }

    .app-table-sort {
        display: flex;
    }
}

@media (max-width: 991.98px) {
    table.app-table-cards.app-cards-lg,
    table.app-table-cards.app-cards-lg > tbody {
        display: block;
        width: 100% !important;
        min-width: 0;
    }

    table.app-table-cards.app-cards-lg > thead {
        position: absolute !important;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    table.app-table-cards.app-cards-lg > tbody > tr {
        display: flex;
        flex-direction: column;
        height: auto;
        margin-bottom: 10px;
        padding: 6px 0;
        border: 1px solid var(--app-border);
        border-radius: var(--radius);
        background: #fff;
        box-shadow: var(--shadow-1);
    }

    table.app-table-cards.app-cards-lg > tbody > tr > th,
    table.app-table-cards.app-cards-lg > tbody > tr > td {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 4px 8px;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        padding: 6px 12px;
        border-width: 0;
        --bs-table-accent-bg: transparent;
        overflow-wrap: anywhere;
        text-align: right;
        white-space: normal;
    }

    table.app-table-cards.app-cards-lg > tbody > tr > td[data-label]::before {
        max-width: 45%;
        margin-right: auto;
        color: var(--app-muted);
        content: attr(data-label);
        font-size: 12.5px;
        font-weight: 600;
        text-align: left;
    }

    table.app-table-cards.app-cards-lg > tbody > tr > td.app-td-primary {
        justify-content: flex-start;
        order: -1;
        margin-bottom: 4px;
        padding-top: 4px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--app-border);
        color: var(--app-heading);
        font-size: 15px;
        font-weight: 700;
        text-align: left;
    }

    table.app-table-cards.app-cards-lg > tbody > tr > td.app-td-actions {
        justify-content: flex-end;
        order: 1;
        gap: 8px;
        padding-top: 8px;
        padding-bottom: 4px;
        text-align: right;
        white-space: normal;
    }

    table.app-table-cards.app-cards-lg > tbody > tr > td.app-td-actions > .btn {
        display: inline-flex;
        flex: 1 1 auto;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 44px;
        margin: 0;
    }

    table.app-table-cards.app-cards-lg > tbody > tr > td[colspan] {
        display: block;
        text-align: center;
    }

    table.app-table-cards.app-cards-lg > tbody > tr > td.app-td-primary::before,
    table.app-table-cards.app-cards-lg > tbody > tr > td.app-td-actions::before,
    table.app-table-cards.app-cards-lg > tbody > tr > td.app-td-nolabel::before,
    table.app-table-cards.app-cards-lg > tbody > tr > td.coupon-col-toggle::before,
    table.app-table-cards.app-cards-lg > tbody > tr > td[colspan]::before,
    table.app-table-cards.app-cards-lg > tbody > tr > td[data-label=""]::before {
        content: none;
    }

    .app-table-sort.app-cards-lg {
        display: flex;
    }
}

@media (max-width: 1199.98px) {
    table.app-table-cards.app-cards-xl,
    table.app-table-cards.app-cards-xl > tbody {
        display: block;
        width: 100% !important;
        min-width: 0;
    }

    table.app-table-cards.app-cards-xl > thead {
        position: absolute !important;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    table.app-table-cards.app-cards-xl > tbody > tr {
        display: flex;
        flex-direction: column;
        height: auto;
        margin-bottom: 10px;
        padding: 6px 0;
        border: 1px solid var(--app-border);
        border-radius: var(--radius);
        background: #fff;
        box-shadow: var(--shadow-1);
    }

    table.app-table-cards.app-cards-xl > tbody > tr > th,
    table.app-table-cards.app-cards-xl > tbody > tr > td {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 4px 8px;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        padding: 6px 12px;
        border-width: 0;
        --bs-table-accent-bg: transparent;
        overflow-wrap: anywhere;
        text-align: right;
        white-space: normal;
    }

    table.app-table-cards.app-cards-xl > tbody > tr > td[data-label]::before {
        max-width: 45%;
        margin-right: auto;
        color: var(--app-muted);
        content: attr(data-label);
        font-size: 12.5px;
        font-weight: 600;
        text-align: left;
    }

    table.app-table-cards.app-cards-xl > tbody > tr > td.app-td-primary {
        justify-content: flex-start;
        order: -1;
        margin-bottom: 4px;
        padding-top: 4px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--app-border);
        color: var(--app-heading);
        font-size: 15px;
        font-weight: 700;
        text-align: left;
    }

    table.app-table-cards.app-cards-xl > tbody > tr > td.app-td-actions {
        justify-content: flex-end;
        order: 1;
        gap: 8px;
        padding-top: 8px;
        padding-bottom: 4px;
        text-align: right;
        white-space: normal;
    }

    table.app-table-cards.app-cards-xl > tbody > tr > td.app-td-actions > .btn {
        display: inline-flex;
        flex: 1 1 auto;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 44px;
        margin: 0;
    }

    table.app-table-cards.app-cards-xl > tbody > tr > td[colspan] {
        display: block;
        text-align: center;
    }

    table.app-table-cards.app-cards-xl > tbody > tr > td.app-td-primary::before,
    table.app-table-cards.app-cards-xl > tbody > tr > td.app-td-actions::before,
    table.app-table-cards.app-cards-xl > tbody > tr > td.app-td-nolabel::before,
    table.app-table-cards.app-cards-xl > tbody > tr > td.coupon-col-toggle::before,
    table.app-table-cards.app-cards-xl > tbody > tr > td[colspan]::before,
    table.app-table-cards.app-cards-xl > tbody > tr > td[data-label=""]::before {
        content: none;
    }

    .app-table-sort.app-cards-xl {
        display: flex;
    }
}


/* ============================================================================
   08  Veri kaynağı seçici (tahmin ve kupon sayfaları)
   ========================================================================== */
.data-source-picker-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.data-source-picker-title {
    color: var(--app-heading);
    font-size: 14px;
    font-weight: 700;
}

.data-source-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    height: 100%;
    margin: 0;
    padding: 12px 14px;
    border: 1.5px solid var(--app-border);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.data-source-option:hover {
    border-color: var(--app-border-strong);
}

.data-source-option.active {
    border-color: var(--sec);
    background: var(--sec-soft);
    box-shadow: 0 0 0 3px rgba(var(--sec-rgb), .15);
}

.data-source-option:focus-within {
    outline: 2px solid var(--sec);
    outline-offset: 2px;
}

.data-source-option .form-check-input {
    flex: 0 0 auto;
    margin: 3px 0 0;
}

.data-source-text {
    min-width: 0;
}

.data-source-text > strong {
    margin-right: 6px;
    color: var(--app-heading);
}

.data-source-desc {
    display: block;
    margin-top: 4px;
    color: var(--app-muted);
    font-size: 12.5px;
    line-height: 1.45;
}

.data-source-picker.is-disabled .data-source-option {
    cursor: not-allowed;
    opacity: .6;
}


/* ============================================================================
   09  Maç tahmini: Prediction/Index, Detail, History, Evaluate
   Tahmin sonucu bölümü (_ResultSection) iki sayfada ortaktır.
   ========================================================================== */
.pred-bar { height: 10px; border-radius: 999px; overflow: hidden; background: #e9ecef; }
.pred-bar > span { display: block; height: 100%; }
.pred-home { background: #22c55e; }
.pred-draw { background: #94a3b8; }
.pred-away { background: #ef4444; }
.match-row { border-bottom: 1px solid #eef1f4; padding: .55rem 0; font-size: .9rem; }
.match-row:last-child { border-bottom: 0; }
.team-logo { width: 36px; height: 36px; object-fit: contain; }
.team-logo-sm { width: 28px; height: 28px; object-fit: contain; }
.result-card { display: none; }
.metric-group-title { background: #f8fafc; font-weight: 600; }
.score-outcome-note { color: #475569; background: #f8fafc; border-left: 3px solid var(--sec); padding: .55rem .75rem; border-radius: .125rem; }
.prob-compare { font-size: .85rem; color: var(--app-muted); }
.prob-compare > div { margin-bottom: .2rem; }
.warning-box { background: #fff7ed; border: 1px solid #fed7aa; border-radius: .25rem; padding: .75rem 1rem; }
.warning-box .warning-title { font-weight: 700; color: #9a3412; margin-bottom: .25rem; }
.ai-reasoning-steps { padding-left: 1.25rem; }
.bet-pick { border: 1px solid #e2e8f0; border-radius: .3rem; padding: .6rem .75rem; height: 100%; background: #fff; }
.bet-pick.bet-top { border-left: 4px solid #22c55e; }
.bet-pick.bet-value { border-left: 4px solid var(--sec); }
.bet-pick.bet-avoid { border-left: 4px solid #ef4444; }
.bet-pick .bet-label { font-weight: 600; }
.bet-pick .bet-meta { font-size: .8rem; color: var(--app-muted); }
.bet-pick .bet-risks { font-size: .8rem; color: #92400e; margin: .35rem 0 0; padding-left: 1rem; }
.bet-headline { background: #f0fdf4; border-left: 3px solid #22c55e; padding: .6rem .75rem; border-radius: .125rem; }
.bet-disclaimer { font-size: .8rem; color: var(--app-muted); border-top: 1px solid #eef1f4; padding-top: .6rem; margin-top: .75rem; }
.bet-table td, .bet-table th { font-size: .84rem; vertical-align: middle; }
.metric-badge { font-size: .8rem; font-weight: 500; }
.metric-badge-off { opacity: .55; }
.metric-selector-item { padding: .35rem 0; border-bottom: 1px solid #f1f5f9; }
.metric-selector-item:last-child { border-bottom: 0; }
.metric-group-count { font-size: .8rem; color: var(--app-muted); }

/* Lig kartları, takım çipleri, fikstür satırları */
.league-group-title { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--app-muted); margin: .35rem 0 .65rem; }
.league-card { cursor: pointer; border: 1px solid #e2e8f0; border-radius: .375rem; padding: .85rem .7rem; text-align: center; height: 100%; background: #fff; transition: border-color .15s, box-shadow .15s; }
.league-card:hover { border-color: #94a3b8; }
.league-card.active { border-color: var(--sec); box-shadow: 0 0 0 3px rgba(var(--sec-rgb), .15); }
.league-card:focus-visible { outline: 2px solid var(--sec); outline-offset: 2px; }
.league-card img { width: 42px; height: 42px; object-fit: contain; }
.league-card .league-name { font-weight: 600; font-size: .9rem; margin-top: .4rem; }
.league-card .league-country { font-size: .8rem; color: var(--app-muted); }
.team-chip { display: flex; align-items: center; gap: .45rem; border: 1px solid #eef1f4; border-radius: .3rem; padding: .4rem .55rem; background: #fff; font-size: .85rem; }
.team-chip img { width: 24px; height: 24px; object-fit: contain; }
.fixture-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem 1rem; align-items: center; border: 1px solid #eef1f4; border-radius: .375rem; padding: .85rem 1rem; margin-bottom: .65rem; background: #fff; transition: border-color .15s, box-shadow .15s; }
.fixture-row.selected { border-color: var(--sec); box-shadow: 0 0 0 3px rgba(var(--sec-rgb), .15); }
.fixture-main { min-width: 0; }
.fixture-teams { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .5rem; font-size: .95rem; }
.fixture-team { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.fixture-vs { font-weight: 700; color: var(--app-muted); font-size: .8rem; }
.fixture-select-btn { white-space: nowrap; }
.fixture-countdown { display: inline-flex; align-items: center; gap: .35rem; margin-top: .3rem; font-size: .8rem; font-weight: 600; border-radius: 999px; padding: .18rem .65rem; }
.fixture-countdown.is-later { color: #1d4ed8; background: #eff6ff; }
.fixture-countdown.is-soon { color: #854d0e; background: #fefce8; }
.fixture-countdown.is-today { color: #9a3412; background: #fff7ed; }
.fixture-countdown.is-past { color: var(--app-muted); background: #f1f5f9; }
.predict-progress { display: none; border: 1px solid var(--sec-border); background: linear-gradient(180deg, var(--sec-soft), #fff); border-radius: .375rem; padding: 1rem 1.1rem; margin-top: 1rem; }
.predict-progress.is-visible { display: block; }
.predict-progress .progress { height: 16px; border-radius: 999px; background: #e2e8f0; }
.predict-progress .progress-bar { font-size: .8rem; font-weight: 600; }
#PredictPanel { display: none; }

/* Sihirbaz adımları (eski düzen) */
.pred-selected { border: 1px solid var(--sec-border); background: var(--sec-soft); border-radius: .375rem; padding: .75rem 1rem; }
.pred-selected:empty { display: none; }
.pred-cta { padding: .85rem 1.75rem; font-size: 1.1rem; font-weight: 700; border-radius: .375rem; }
.pred-cta-hint { max-width: 760px; line-height: 1.5; }
.pred-advanced-toggle,
.pred-details-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem; border: 1px solid #e2e8f0; border-radius: .375rem; background: #fff; color: #334155; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.pred-advanced-toggle:hover,
.pred-details-toggle:hover { border-color: #94a3b8; background: #f8fafc; }
.pred-advanced-toggle:focus-visible,
.pred-details-toggle:focus-visible { outline: 2px solid var(--sec); outline-offset: 2px; }
.pred-advanced-toggle[aria-expanded="true"] { border-radius: .375rem .375rem 0 0; }
.pred-advanced-meta { font-size: .8rem; font-weight: 500; color: var(--app-muted); white-space: nowrap; }
.pred-advanced-body { border: 1px solid #e2e8f0; border-top: 0; border-radius: 0 0 .375rem .375rem; padding: 1rem; background: #fff; }
.pred-advanced-body .accordion-body { padding-left: 1rem !important; }
.pred-chevron { transition: transform .2s; font-size: .8rem; }
[aria-expanded="true"] .pred-chevron { transform: rotate(180deg); }
.pred-details-toggle { margin-bottom: 0; }
.pred-details { padding-top: 1rem; }
.pred-details .card-modern { margin-bottom: 1rem; }
.pred-details .accordion-body { padding-left: .75rem !important; }
.pred-details .accordion-button { padding: .6rem 1rem !important; }
.pred-stale { opacity: .45; pointer-events: none; transition: opacity .2s; }

/* Karar kartı */
.pred-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .75rem; margin-bottom: 1rem; }
.pred-team { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.pred-team-away { justify-content: flex-end; text-align: right; }
.pred-team-text { min-width: 0; }
.pred-team-name { display: block; font-size: 1rem; line-height: 1.2; overflow-wrap: anywhere; }
.pred-team-side { display: block; font-size: .8rem; color: var(--app-muted); text-transform: uppercase; letter-spacing: .04em; }
.pred-vs { font-weight: 800; color: var(--app-muted); font-size: .9rem; }
.pred-headline { font-size: 1.45rem; font-weight: 800; line-height: 1.25; margin: 0 0 .35rem; color: #0f172a; overflow-wrap: anywhere; }
.pred-hero.is-home .pred-headline { color: #15803d; }
.pred-hero.is-away .pred-headline { color: #b91c1c; }
.pred-hero.is-draw .pred-headline,
.pred-hero.is-balanced .pred-headline { color: #475569; }
.pred-headline-sub { font-size: .92rem; margin-bottom: 1rem; line-height: 1.5; }
.pred-stack { display: flex; height: 22px; border-radius: 999px; overflow: hidden; background: #e2e8f0; }
.pred-stack-seg { display: block; height: 100%; width: 0; transition: width .4s ease; }
.pred-stack-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: .6rem; font-size: .85rem; color: #475569; }
.pred-legend-item { display: flex; align-items: center; gap: .4rem; border-radius: .25rem; padding: .3rem .5rem; min-width: 0; }
.pred-legend-item.is-fav { background: #f1f5f9; font-weight: 600; color: #0f172a; }
.pred-legend-item strong { margin-left: auto; font-size: 1rem; white-space: nowrap; }
.pred-legend-label { line-height: 1.2; }
.pred-dot { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; display: inline-block; }
.pred-confidence { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; font-size: .88rem; color: #475569; }
.pred-chip { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; padding: .3rem .75rem; font-weight: 700; font-size: .82rem; white-space: nowrap; }
.pred-chip::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.pred-chip-high { background: #dcfce7; color: #166534; }
.pred-chip-mid { background: #fef3c7; color: #92400e; }
.pred-chip-low { background: #e2e8f0; color: #475569; }

/* Önerilen oyun */
.pred-pick-headline { background: #f0fdf4; border-left: 3px solid #22c55e; padding: .6rem .75rem; border-radius: .125rem; font-weight: 600; color: #14532d; }
.pred-pick { border: 1px solid #e2e8f0; border-radius: .375rem; padding: .85rem .9rem; height: 100%; background: #fff; display: flex; flex-direction: column; gap: .4rem; }
.pred-pick-primary { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .12); }
.pred-pick-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.pred-pick-label { font-weight: 800; font-size: 1.05rem; color: #0f172a; }
.pred-pick-selection { font-size: .92rem; color: #334155; }
.pred-pick-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: .25rem; }
.pred-stat { background: #f8fafc; border-radius: .25rem; padding: .4rem .5rem; min-width: 0; }
.pred-stat-label { display: block; font-size: .8rem; color: var(--app-muted); line-height: 1.2; }
.pred-stat-value { display: block; font-size: 1rem; }
.pred-pick-verdict { font-size: .82rem; color: #475569; border-top: 1px dashed #e2e8f0; padding-top: .4rem; margin-top: auto; line-height: 1.4; }
.pred-pick-verdict.is-positive { color: #166534; }
.pred-pick-risk { font-size: .8rem; color: var(--app-muted); }
.pred-pick-why { font-size: .8rem; color: var(--app-muted); line-height: 1.35; }
.pred-tag { display: inline-block; border-radius: 999px; padding: .2rem .6rem; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.pred-tag-green { background: #dcfce7; color: #166534; }
.pred-tag-grey { background: #e2e8f0; color: #475569; }
.pred-no-pick { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: .375rem; padding: .9rem 1rem; font-weight: 600; color: #334155; }
.pred-avoid { background: #fef2f2; border: 1px solid #fecaca; border-radius: .375rem; padding: .75rem 1rem; margin-top: 1rem; font-size: .88rem; }
.pred-avoid-title { font-weight: 700; color: #991b1b; margin-bottom: .3rem; }
.pred-avoid ul { padding-left: 1.1rem; margin-bottom: 0; }
.pred-risk-line { font-size: .88rem; color: #334155; margin-top: 1rem; }

/* Bir bakışta */
.pred-fact { border: 1px solid #e2e8f0; border-radius: .375rem; padding: .75rem .85rem; height: 100%; background: #fff; }
.pred-fact-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--app-muted); font-weight: 700; margin-bottom: .35rem; }
.pred-fact-value { font-size: 1.5rem; font-weight: 800; line-height: 1.1; color: #0f172a; }
.pred-fact-sep { color: var(--app-muted); font-weight: 400; }
.pred-fact-note { font-size: .8rem; color: var(--app-muted); margin-top: .35rem; line-height: 1.35; }
.pred-duo { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #e2e8f0; margin: .35rem 0 .3rem; }
.pred-duo span { display: block; height: 100%; width: 50%; transition: width .4s ease; }
.pred-duo-a { background: #94a3b8; }
.pred-duo-b { background: var(--sec); }
.pred-duo-legend { display: flex; justify-content: space-between; gap: .5rem; font-size: .8rem; color: #475569; }

/* Neden böyle? */
.pred-why { padding-left: 1.2rem; margin-bottom: 0; }
.pred-why li { margin-bottom: .35rem; line-height: 1.45; }
.pred-why li::marker { color: var(--sec); }
.pred-more-btn.collapsed .pred-more-hide { display: none; }
.pred-more-btn:not(.collapsed) .pred-more-show { display: none; }
.pred-ai-comment { background: linear-gradient(135deg, #f5f3ff, #eff6ff); border: 1px solid #ddd6fe; border-radius: .375rem; padding: .85rem 1rem; font-size: .9rem; color: #312e81; line-height: 1.5; }
.pred-ai-comment-title { font-weight: 700; margin-bottom: .35rem; color: #4c1d95; }
.pred-ai-comment p { margin-bottom: .4rem; }
.pred-ai-comment p:last-child { margin-bottom: 0; }

/* Detaylar */
.pred-form-badge { font-size: .8rem; min-width: 1.4rem; }
.pred-recent-table td { vertical-align: middle; }

/* Model karnesi */
.eval-headline { border-left: 4px solid #94a3b8; background: #f8fafc; padding: .7rem .9rem; border-radius: .175rem; font-weight: 600; margin-bottom: 1rem; color: #0f172a; line-height: 1.45; }
.eval-headline-good { border-color: #22c55e; background: #f0fdf4; }
.eval-headline-bad { border-color: #ef4444; background: #fef2f2; }
.eval-headline-warn { border-color: #f59e0b; background: #fffbeb; }
.eval-tile { border: 1px solid #e2e8f0; border-radius: .375rem; padding: .7rem .85rem; height: 100%; background: #fff; }
.eval-tile-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; color: var(--app-muted); line-height: 1.3; }
.eval-tile-value { font-size: 1.35rem; font-weight: 800; color: #0f172a; line-height: 1.15; margin-top: .2rem; overflow-wrap: anywhere; }
.eval-tile-note { font-size: .8rem; color: var(--app-muted); margin-top: .3rem; line-height: 1.3; }
.eval-tile-good .eval-tile-value { color: #15803d; }
.eval-tile-bad .eval-tile-value { color: #b91c1c; }
.eval-block { background: #f8fafc; border-radius: .375rem; padding: .75rem 1rem; margin-bottom: 1rem; font-size: .9rem; line-height: 1.5; }
.eval-table td, .eval-table th { font-size: .85rem; vertical-align: middle; }
.eval-raw { white-space: pre-wrap; word-break: break-word; background: #0f172a; color: #e2e8f0; border-radius: .25rem; padding: .85rem 1rem; font-size: .8rem; max-height: 420px; overflow: auto; }
.eval-spinner { display: inline-block; width: 1rem; height: 1rem; border: 2px solid #cbd5e1; border-top-color: var(--sec); border-radius: 50%; animation: eval-spin .7s linear infinite; vertical-align: -2px; margin-right: .4rem; }
@keyframes eval-spin { to { transform: rotate(360deg); } }

/* Mobil (375px dahil): sütunlar alt alta, yatay kaydırma yalnızca tablolarda */
@media (max-width: 575.98px) {
    .pred-cta { width: 100%; }
    .pred-advanced-toggle, .pred-details-toggle { flex-wrap: wrap; }
    .pred-advanced-meta { white-space: normal; }
    .pred-teams { grid-template-columns: 1fr; gap: .4rem; }
    .pred-vs { display: none; }
    .pred-team-away { justify-content: flex-start; text-align: left; }
    .pred-team-away img { order: -1; }
    .pred-headline { font-size: 1.2rem; }
    .pred-stack-legend { grid-template-columns: 1fr; gap: .25rem; }
    .pred-pick-stats { gap: .35rem; }
    .pred-stat-value { font-size: .92rem; }
    .pred-fact-value { font-size: 1.25rem; }
    .fixture-row { grid-template-columns: 1fr; gap: .6rem; padding: .75rem .85rem; }
    .fixture-select-btn { width: 100%; }
    .eval-tile-value { font-size: 1.15rem; }
}


/* ============================================================================
   10  Kupon ve Claude ile Kupon (Coupon/Index, Coupon/Saved, CouponAi/Index)
   ========================================================================== */
.risk-card { display: block; width: 100%; height: 100%; padding: 1rem .8rem; border: 2px solid var(--app-border); border-radius: .45rem; background: #fff; color: var(--app-text); text-align: center; cursor: pointer; user-select: none; transition: border-color .15s, box-shadow .15s, transform .1s; }
.risk-card:hover { border-color: var(--app-border-strong); transform: translateY(-1px); }
.risk-card.active { border-color: var(--sec); box-shadow: 0 0 0 4px rgba(var(--sec-rgb), .15); }
.risk-card .risk-icon { display: block; font-size: 1.6rem; margin-bottom: .35rem; }
.risk-card[data-profile="guvenli"] .risk-icon { color: #15803d; }
.risk-card[data-profile="dengeli"] .risk-icon { color: var(--sec); }
.risk-card[data-profile="riskli"] .risk-icon { color: #c2410c; }
.risk-card[data-profile="cok-riskli"] .risk-icon { color: #b91c1c; }
.risk-card .risk-name { display: block; color: var(--app-heading); font-weight: 700; font-size: 1rem; }
.risk-card .risk-desc { display: block; font-size: .8rem; color: var(--app-muted); margin-top: .3rem; min-height: 2.6em; }
.risk-card .risk-hint { display: block; font-size: .8rem; color: var(--app-muted); margin-top: .3rem; }
.template-group-title { font-size: .8rem; font-weight: 700; color: var(--app-muted); text-transform: uppercase; letter-spacing: .04em; margin: .2rem 0 .4rem; }
.template-list { display: flex; flex-direction: column; gap: .4rem; }
.template-item { display: flex; gap: .6rem; align-items: flex-start; width: 100%; text-align: left; border: 1.5px solid var(--app-border); border-radius: .35rem; padding: .55rem .7rem; background: #fff; color: var(--app-text); cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.template-item:hover { border-color: var(--app-border-strong); }
.template-item.active { border-color: var(--sec); box-shadow: 0 0 0 3px rgba(var(--sec-rgb), .15); background: var(--sec-soft); }
.template-item .template-icon { width: 1.6rem; text-align: center; color: var(--sec); padding-top: .1rem; }
.template-item .template-name { font-weight: 700; font-size: .88rem; color: var(--app-heading); }
.template-item .template-desc { font-size: .8rem; color: var(--app-muted); }
.prompt-editor { font-size: .92rem; line-height: 1.45; min-height: 210px; }
.league-chip { display: inline-flex; align-items: center; gap: .4rem; border: 1.5px solid var(--app-border); border-radius: 999px; padding: .35rem .8rem; background: #fff; color: var(--app-text); cursor: pointer; font-size: .85rem; font-weight: 600; transition: border-color .12s, background-color .12s; user-select: none; }
.league-chip img { width: 20px; height: 20px; object-fit: contain; }
.league-chip:hover { border-color: var(--app-border-strong); }
.league-chip.active { border-color: var(--sec); background: var(--sec-soft-2); color: var(--sec-ink); }
.coupon-ticket { border: 1px solid var(--sec-border); border-radius: .5rem; overflow: hidden; background: #fff; }
.coupon-ticket-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--sec-border); background: var(--sec-soft-2); color: var(--sec-ink); }
.coupon-ticket-head .total-odds { color: var(--sec-ink); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.coupon-ticket-head .head-label { color: var(--sec-ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.coupon-ticket-head .head-value { color: var(--app-heading); font-size: 1.15rem; font-weight: 700; }
.coupon-ticket-head .text-warning { color: var(--app-warn-ink) !important; }
.coupon-ticket-head .ev-pos { color: var(--app-ok-ink); }
.coupon-ticket-head .ev-neg { color: var(--app-bad-ink); }
.coupon-leg { display: flex; gap: .85rem; padding: .8rem 1.25rem; border-bottom: 1px dashed var(--app-border); align-items: center; }
.coupon-leg:last-child { border-bottom: 0; }
#CouponAiResult .coupon-leg { align-items: flex-start; }
.coupon-leg .leg-date { font-size: .8rem; color: var(--app-muted); min-width: 86px; }
.coupon-leg .leg-main { flex: 1 1 auto; min-width: 0; }
.coupon-leg .leg-match { color: var(--app-heading); font-weight: 700; font-size: .92rem; }
.coupon-leg .leg-pick { font-size: .83rem; color: var(--app-text); margin-top: .1rem; }
.coupon-leg .leg-pick .badge { font-size: .8rem; }
.coupon-leg .leg-reason { font-size: .8rem; color: var(--app-text); margin-top: .35rem; background: var(--app-surface-2); border-left: 3px solid var(--sec); padding: .3rem .55rem; border-radius: .15rem; }
.coupon-leg .leg-odds { font-size: 1.15rem; font-weight: 800; color: var(--sec-ink); min-width: 56px; text-align: right; }
.coupon-leg .leg-prob { font-size: .8rem; color: var(--app-muted); text-align: right; }
.coupon-leg .leg-remove { color: var(--app-muted); padding: 0 .25rem; }
.coupon-leg .leg-remove:hover { color: var(--app-bad-text); }
.coupon-summary-foot { background: var(--app-surface-2); padding: .9rem 1.25rem; display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: space-between; }
.risk-badge-dusuk { background: #dcfce7; color: #166534; }
.risk-badge-orta { background: #fef9c3; color: #854d0e; }
.risk-badge-yuksek { background: #ffedd5; color: #9a3412; }
.risk-badge-cok { background: #fee2e2; color: #991b1b; }
.value-badge-pos { background: #dcfce7; color: #166534; }
.value-badge-neg { background: #fee2e2; color: #991b1b; }
.outcome-void { color: #b45309; }
.outcome-open { color: var(--app-muted); }
.outcome-won { color: #15803d; }
.outcome-lost { color: #b91c1c; }
#CouponResult { display: none; }
#CouponAiResult { display: none; }
#CouponProgress, #CouponAiProgress { display: none; border: 1px solid var(--sec-border); background: linear-gradient(180deg, var(--sec-soft), #fff); border-radius: .375rem; padding: 1rem 1.1rem; margin-top: 1rem; }
#CouponProgress.is-visible, #CouponAiProgress.is-visible { display: block; }
#CouponProgress .progress, #CouponAiProgress .progress { height: 16px; border-radius: 999px; background: #e2e8f0; }
#CouponProgress .progress-bar, #CouponAiProgress .progress-bar { font-size: .8rem; font-weight: 600; }
.ai-summary { border: 1px solid var(--sec-border); background: var(--sec-soft); border-radius: .375rem; padding: .8rem 1rem; font-size: .9rem; color: var(--sec-ink); }
.research-notes { white-space: pre-wrap; font-family: inherit; font-size: .84rem; background: var(--app-surface-2); border: 1px solid var(--app-border); border-radius: .25rem; padding: .7rem .9rem; margin-bottom: .6rem; }
.revise-box { border: 1px dashed var(--app-border-strong); border-radius: .375rem; padding: .8rem 1rem; }
.model-badge { background: var(--sec-soft); color: var(--sec-ink); border: 1px solid var(--sec-border); font-weight: 600; }

@media (max-width: 991.98px) {
    .league-chip { min-height: 44px; }
}

@media (max-width: 767.98px) {
    .card.card-modern .prompt-editor { font-size: 16px; }
}

@media (max-width: 575.98px) {
    .coupon-leg { flex-wrap: wrap; }
    .coupon-leg .leg-date { min-width: 100%; }
}


/* ============================================================================
   11  Ana sayfa
   ========================================================================== */
.dash-bar { display: flex; height: 8px; min-width: 90px; border-radius: 999px; overflow: hidden; background: #e9ecef; }
.dash-bar > span { display: block; height: 100%; }
.dash-bar .b-home { background: #22c55e; }
.dash-bar .b-draw { background: #94a3b8; }
.dash-bar .b-away { background: #ef4444; }


/* ============================================================================
   12  Giriş ekranları (_AuthLayout). Izgara yalnız main.app-auth üzerindedir.
   ========================================================================== */
main.app-auth {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    min-height: 100vh;
}

.app-auth-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    background: var(--sec);
    color: #fff;
}

.app-auth-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #fff;
}

.app-auth-logo img {
    width: 64px;
    height: auto;
    max-height: 64px;
}

.app-auth-brand .app-auth-name {
    margin: 16px 0 24px;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
}

.app-auth-features {
    max-width: 420px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.app-auth-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14.5px;
}

.app-auth-features i {
    flex: 0 0 22px;
    margin-top: 4px;
    text-align: center;
}

.app-auth-note {
    margin: 32px 0 0;
    color: #e0e7ff;
    font-size: 13px;
}

main.app-auth .body-sign {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 100vh;
    margin: 0;
    padding: 32px 16px;
}

main.app-auth .center-sign {
    display: block;
    width: 100%;
    max-width: 420px;
    padding: 0;
}

main.app-auth .card-sign {
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

main.app-auth .card-sign .card-body {
    padding: 28px;
    border: 0;
    border-top: 4px solid var(--sec);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-2);
}

main.app-auth h1 {
    margin: 0 0 6px;
    color: var(--app-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

main.app-auth .form-control {
    min-height: 44px;
    font-size: 16px;
}

main.app-auth .btn {
    min-height: 44px;
}

.app-auth-steps {
    margin: 12px 0 16px;
    padding-left: 20px;
    font-size: 13.5px;
}

.app-auth-steps li {
    margin-bottom: 4px;
}

/* Tema onay kutusunu gizleyip kendisi çizer; klavye odağı çizimde de görünsün. */
html .checkbox-custom input[type="checkbox"]:focus-visible + label:before {
    outline: 2px solid var(--sec);
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    main.app-auth {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .app-auth-brand {
        padding: 12px 16px;
    }

    .app-auth-id {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .app-auth-logo {
        width: 44px;
        height: 44px;
    }

    .app-auth-logo img {
        width: 30px;
        max-height: 30px;
    }

    .app-auth-brand .app-auth-name {
        margin: 0;
        font-size: 18px;
    }

    .app-auth-features,
    .app-auth-note {
        display: none;
    }

    main.app-auth .body-sign {
        align-items: flex-start;
        min-height: 0;
        padding: 20px 12px;
    }

    main.app-auth .card-sign .card-body {
        padding: 20px 16px;
    }
}


/* ============================================================================
   13  Sayfa ekleri
   Sayfa çalışmalarından gelen stil parçaları (scratchpad/css/<grup>.css) bu
   satırın altına, grup başlığıyla eklenir.
   ========================================================================== */

/* Boş durum düğmesi bağlantı olduğunda yazısı ortalanır. */
.app-empty a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Kart görünümünde tablonun üst çizgisi kalmaz (Bootstrap 5.0 tbody çizgisi ve başlık alt çizgisi). */
@media (max-width: 767.98px) {
    table.app-table-cards.app-table-cards > tbody,
    table.app-table-cards.app-table-cards > thead > tr > th {
        border: 0;
    }
}

@media (max-width: 991.98px) {
    table.app-table-cards.app-cards-lg > tbody,
    table.app-table-cards.app-cards-lg > thead > tr > th {
        border: 0;
    }
}

@media (max-width: 1199.98px) {
    table.app-table-cards.app-cards-xl > tbody,
    table.app-table-cards.app-cards-xl > thead > tr > th {
        border: 0;
    }
}


/* ---------- Ana Sayfa, Yardım, hesap ---------- */
/* ---------- ANA-SAYFA-HESAP: ortak (ana sayfa ve Erişim Yok) ---------- */
.app-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 575.98px) {
    .app-empty-actions {
        flex-direction: column;
        align-self: stretch;
    }
}

/* ---------- Ana sayfa: karşılama (yalnız yönetici olmayan) ---------- */
.app-hero {
    margin-bottom: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--sec), var(--sec-active));
    color: #fff;
}

html.modern .app-hero h2,
.app-hero h2 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.app-hero p {
    margin: 0;
    color: #fff;
}

@media (max-width: 575.98px) {
    .app-hero {
        padding: 16px;
    }
}

/* ---------- Ana sayfa: bölüm başlıkları ---------- */
html.modern .dash-title,
.dash-title {
    margin: 0 0 10px;
    color: var(--app-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.dash-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 12px;
}

html.modern .dash-head .dash-title,
.dash-head .dash-title {
    margin: 0;
}

.dash-all {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-left: auto;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: underline;
}

.dash-step-text,
.dash-prob-text,
.dash-coupon-line,
.dash-coupon-return {
    color: var(--app-text);
}

/* Boş durum düğmesi 44 px yüksekken bağlantı metni dikeyde ortalı kalsın (yalnız bu grubun sayfaları). */
.app-empty-actions a.btn,
.dash-recent-predictions .app-empty a.btn,
.dash-recent-coupons .app-empty a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Satır içindeki kartlar eşit boyda; alt boşluğu satır verir. */
.dash-split .app-surface,
.dash-recent-predictions,
.dash-recent-coupons {
    margin-bottom: 0;
}

/* ---------- Ana sayfa: başlangıç listesi ve "Durumun" ---------- */
.dash-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dash-steps > li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--app-border);
    border-radius: var(--radius);
}

.dash-steps > li.is-next {
    border-color: var(--sec);
    background: var(--sec-soft);
}

.dash-step-mark {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--app-neutral-bg);
    color: var(--app-neutral-ink);
    font-size: 13px;
    font-weight: 700;
}

.dash-steps > li.is-next .dash-step-mark {
    background: var(--sec);
    color: #fff;
}

.dash-steps > li.is-done .dash-step-mark {
    background: var(--app-ok-ink);
    color: #fff;
}

.dash-step-body {
    flex: 1 1 auto;
    min-width: 0;
}

.dash-step-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    min-height: 28px;
    margin: 0;
    color: var(--app-heading);
}

.dash-steps > li.is-done .dash-step-title {
    color: var(--app-muted);
}

.dash-step-text {
    margin: 2px 0 8px;
    font-size: 13.5px;
    line-height: 1.5;
}

.dash-step-body > .btn {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
}

.dash-step-body > .dash-step-title + .btn {
    margin-top: 6px;
}

/* Liste ile yan yanayken sayı kartları 2 x 2 kalır. */
@media (min-width: 1200px) {
    .dash-split.has-checklist .app-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.dash-keys {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--app-border);
    font-size: 13.5px;
}

.dash-keys-title {
    font-weight: 600;
}

.dash-keys .app-tip {
    margin-left: -10px;
}

.dash-keys a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    text-decoration: underline;
}

/* ---------- Ana sayfa: son tahminler ---------- */
.dash-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 24px;
    margin-bottom: 10px;
    font-size: 13px;
}

.dash-legend ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dash-legend li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dash-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 1.5px;
}

/* Beyaz üstünde en az 3:1 olacak tonlar (eski açık tonların yerine). */
.dash-swatch.b-home,
.dash-bar .b-home {
    background: #15803d;
}

.dash-swatch.b-draw,
.dash-bar .b-draw {
    background: #64748b;
}

.dash-swatch.b-away,
.dash-bar .b-away {
    background: #dc2626;
}

.dash-match {
    color: var(--app-heading);
    font-weight: 600;
}

.dash-prob-box {
    min-width: 170px;
}

.dash-prob-text {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
    margin: 4px 0 0;
    font-size: .8rem;
    line-height: 1.45;
}

.dash-prob-text > span {
    white-space: nowrap;
}

#dashRecentTable .dash-col-probs {
    min-width: 200px;
}

/* Kart görünümünde olasılık hücresi: etiket üstte, çubuk ve yüzdeler tam genişlikte. */
@media (max-width: 991.98px) {
    #dashRecentTable > tbody > tr > td.dash-probs {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    #dashRecentTable > tbody > tr > td.dash-probs::before {
        max-width: 100%;
        margin-right: 0;
    }
}

/* ---------- Ana sayfa: son kuponlar ---------- */
.dash-coupons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dash-coupons > li {
    padding: 10px 12px;
    border: 1px solid var(--app-border);
    border-left: 4px solid var(--sec);
    border-radius: var(--radius);
}

.dash-coupon-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.dash-coupon-date {
    color: var(--app-muted);
    font-size: 12.5px;
}

.dash-coupon-name {
    margin: 6px 0 0;
    color: var(--app-heading);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.dash-coupon-line,
.dash-coupon-return {
    margin: 0;
    font-size: 13px;
}

.dash-coupon-return {
    font-weight: 600;
}

/* ---------- Ana sayfa: diğer sayfalar ---------- */
.dash-more {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.dash-more a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--app-border);
    border-radius: 999px;
    background: #fff;
    color: var(--app-text);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.dash-more a > i {
    color: var(--sec);
}

.dash-more a:hover,
.dash-more a:focus {
    border-color: var(--sec);
    color: var(--app-heading);
    text-decoration: none;
}

/* ---------- Yardım Merkezi ve Profil: kart başlıkları ---------- */
html.modern .help-block > h2,
html.modern .help-side .app-surface > h2,
html.modern .profile-card > h2 {
    color: var(--app-heading);
}

/* ---------- Yardım Merkezi ---------- */
.help-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.help-steps .app-action-icon {
    font-weight: 700;
}

/* Sol menü açıkken 992 altında iki sütun sıkışır. */
@media (max-width: 991.98px) {
    .help-steps {
        grid-template-columns: 1fr;
    }
}

.help-side p {
    margin-bottom: 10px;
}

.help-side .app-surface p,
.profile-card p {
    color: var(--app-text);
}

.help-side .btn {
    min-height: 44px;
    white-space: normal;
}

.help-shortcut {
    color: var(--app-muted);
    font-size: 13px;
}

.help-shortcut kbd {
    padding: 1px 6px;
    border: 1px solid var(--app-border-strong);
    border-radius: 3px;
    background: #fff;
    color: var(--app-heading);
    font-size: 12.5px;
}

html .help-guides .accordion-button {
    gap: 10px;
    min-height: 48px;
    padding: 10px 14px;
    color: var(--app-heading);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

html .help-guides .accordion-button:not(.collapsed) {
    background-color: var(--sec-soft-2);
    color: var(--sec-ink);
}

.help-guide-icon {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--sec);
    color: #fff;
}

.help-guide-text {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.help-guide-context {
    margin-right: 10px;
    color: var(--app-muted);
    font-size: 12.5px;
    font-weight: 400;
    text-align: right;
}

@media (max-width: 575.98px) {
    .help-guide-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .help-guide-context {
        text-align: left;
    }
}

.help-guides .accordion-button:not(.collapsed) .help-guide-context {
    color: var(--sec-ink);
}

.help-guides .accordion-body {
    padding: 4px 14px 14px;
}

.help-guides .app-guide-steps {
    padding: 8px 0 12px;
}

.help-glossary-search {
    max-width: 480px;
}

.help-glossary-search .form-control {
    min-height: 44px;
    font-size: 16px;
}

.help-glossary-count {
    min-height: 1.55em;
    margin: 4px 0 0;
    color: var(--app-muted);
    font-size: 13px;
}

.help-glossary .app-glossary-group > dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px 16px;
}

@media (min-width: 1200px) {
    .help-glossary .app-glossary-group > dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

html.modern .help-glossary .app-glossary-group-title {
    font-size: 13.5px;
}

.help-note {
    color: var(--app-muted);
    font-size: 13px;
    text-align: center;
}

/* ---------- Giriş ekranları: sayfa ekleri ---------- */
.auth-lead {
    margin-bottom: 16px;
    color: var(--app-muted);
}

.auth-label {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.auth-label > .form-label {
    margin: 0;
}

main.app-auth .auth-reveal {
    border: 1px solid var(--app-border-strong);
    background: #fff;
    color: var(--app-text);
}

main.app-auth .auth-reveal:hover {
    border-color: var(--sec);
    color: var(--sec);
}

.auth-help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 6px;
    font-size: 13.5px;
}

.auth-help > a,
.auth-back > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    font-weight: 600;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.auth-remember .checkbox-custom {
    margin: 0;
}

.auth-back {
    margin: 16px 0 0;
    text-align: center;
}

main.app-auth .app-rules {
    margin-bottom: 16px;
}

/* ---------- Profil ---------- */
.profile-form .btn {
    min-height: 44px;
}

@media (max-width: 575.98px) {
    .profile-form .profile-save {
        width: 100%;
    }
}

.profile-id {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.profile-id-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: anywhere;
}

.profile-id-text > strong {
    color: var(--app-heading);
}

.profile-id-text > span {
    color: var(--app-muted);
    font-size: 13px;
}

.profile-role {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.profile-warn {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--app-warn-bg);
    color: var(--app-warn-ink);
    font-size: 13.5px;
}

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

.profile-actions .btn {
    display: inline-flex;
    flex: 1 1 100%;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    white-space: normal;
}

/* ---------- Erişim Yok ---------- */
.denied-box {
    max-width: 560px;
    margin: 0 auto 16px;
}

.denied-role {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 4px 0 0;
}


/* ---------- Kupon ---------- */
/* ===== KUPON grubu: Coupon/Index, Coupon/Saved, CouponAi/Index ===== */

/* ---------- Sihirbaz adımlarının ortak parçaları ---------- */
.coupon-step-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

html.modern .coupon-step-head .app-wizard-heading,
.coupon-step-head .app-wizard-heading {
    margin: 0;
}

.coupon-step-lead {
    margin: -4px 0 12px;
    color: var(--app-muted);
    font-size: 13.5px;
}

.coupon-sub-head {
    margin: 4px 0 8px;
}

html.modern .coupon-sub-head .template-group-title,
.coupon-sub-head .template-group-title {
    margin: 0;
}

.coupon-label-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.coupon-label-row > .form-label {
    margin-bottom: .25rem;
}

.coupon-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.btn.btn-link.coupon-collapse-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 0;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
}

.coupon-collapse-toggle .coupon-chevron {
    font-size: .8rem;
    transition: transform .15s;
}

.coupon-collapse-toggle:not(.collapsed) .coupon-chevron {
    transform: rotate(180deg);
}

.coupon-advanced {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--app-border);
    border-radius: var(--radius);
    background: var(--app-surface-2);
}

.coupon-switches {
    margin-top: 12px;
}

.coupon-switch-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.coupon-switch-row > .form-check {
    min-height: 28px;
    margin-bottom: 0;
}

.coupon-switch-note {
    display: block;
    margin: 0 0 12px;
    padding-left: 2.5em;
}

.coupon-build {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--app-border);
}

.coupon-build .btn-lg {
    min-height: 48px;
}

.coupon-summary {
    margin: 4px 0 8px;
    color: var(--app-heading);
    font-size: 13.5px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.coupon-cost-note {
    margin: 8px 0 0;
    color: var(--app-muted);
    font-size: .8rem;
}

.coupon-paid-note {
    margin: 0 0 10px;
    color: var(--app-warn-ink);
    font-size: .85rem;
    font-weight: 600;
}

.coupon-build-links {
    margin: 6px 0 0;
    color: var(--app-muted);
    font-size: .8rem;
}

.coupon-build-links a {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 0;
    font-weight: 600;
}

.coupon-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.coupon-progress-label {
    min-width: 0;
    color: var(--sec-ink);
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* ---------- Kupon oluştur: risk kartları ve hızlı yol ---------- */
.coupon-risk-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.coupon-risk-grid .risk-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.coupon-risk-grid .risk-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.coupon-risk-grid .risk-desc {
    min-height: 0;
}

.coupon-risk-grid .risk-warn {
    margin-top: .3rem;
    color: var(--app-warn-ink);
    font-size: .8rem;
    font-weight: 600;
}

.coupon-risk-grid .risk-hint {
    margin-top: auto;
    padding-top: .6rem;
}

.coupon-quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid var(--sec-border);
    border-radius: var(--radius);
    background: var(--sec-soft);
}

.coupon-quick-text {
    flex: 1 1 320px;
    min-width: 0;
}

.coupon-quick-text strong {
    color: var(--sec-ink);
}

.coupon-quick-text .coupon-summary {
    margin-bottom: 0;
}

.coupon-quick-text .coupon-cost-note {
    margin-top: 4px;
}

.coupon-quick > .btn {
    min-height: 44px;
}

.btn.btn-link.coupon-reset {
    display: block;
    min-height: 32px;
    padding: 4px 0;
    font-size: .8rem;
    font-weight: 600;
    text-align: left;
}

@media (max-width: 991.98px) {
    .coupon-risk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .coupon-risk-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .coupon-risk-grid .risk-card {
        flex-direction: row;
        align-items: flex-start;
        gap: .75rem;
        text-align: left;
    }

    .coupon-risk-grid .risk-icon {
        flex: 0 0 2rem;
        margin: 0;
        text-align: center;
    }

    .coupon-risk-grid .risk-hint {
        padding-top: .3rem;
    }

    .coupon-quick > .btn {
        width: 100%;
    }
}

/* ---------- Sonuç ve kupon fişi (iki kupon sayfası) ---------- */
.coupon-result-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    margin-bottom: 12px;
}

html.modern .coupon-result-title,
.coupon-result-title {
    margin: 0;
    color: var(--app-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.coupon-result-info {
    margin: 0;
    color: var(--app-muted);
    font-size: .8rem;
}

#CouponResult.is-stale .coupon-ticket,
#CouponAiResult.is-stale .coupon-ticket {
    opacity: .55;
}

#CouponMessages .app-notice,
#ResultMessages .app-notice {
    overflow-wrap: anywhere;
}

.coupon-warnings {
    margin-bottom: 12px;
}

.coupon-warnings > summary {
    margin-bottom: 8px;
    padding: 11px 14px;
    border: 1px solid #fcd34d;
    border-radius: var(--radius);
    background: var(--app-warn-bg);
    color: var(--app-warn-ink);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.coupon-ticket-head.coupon-ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    align-items: start;
    gap: 12px 16px;
}

.coupon-tile {
    min-width: 0;
}

.coupon-tile-label {
    display: flex;
    align-items: center;
    gap: 4px;
}

.coupon-tile .head-value {
    overflow-wrap: anywhere;
}

.coupon-leg .leg-date {
    display: flex;
    flex: 0 0 120px;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.coupon-leg-time {
    color: var(--app-text);
    font-weight: 600;
}

.coupon-leg .leg-pick .badge {
    text-align: left;
    white-space: normal;
}

.coupon-leg-numbers {
    flex: 0 0 auto;
    text-align: right;
}

/* "tahmini oran" bir sonuç değildir: kırmızı/yeşil yerine nötr. */
.badge.coupon-badge-neutral {
    background: var(--app-neutral-bg);
    color: var(--app-neutral-ink);
}

.coupon-leg-why {
    margin-top: 4px;
    font-size: .8rem;
}

.coupon-leg-why > summary {
    padding: 6px 0;
    color: var(--sec);
    font-weight: 600;
    cursor: pointer;
}

.coupon-leg-why > p {
    margin: 0;
    padding: 6px 10px;
    border-left: 3px solid var(--sec);
    border-radius: .15rem;
    background: var(--app-surface-2);
    overflow-wrap: anywhere;
}

.coupon-leg .btn.btn-link.leg-remove {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--app-muted);
}

.coupon-leg .btn.btn-link.leg-remove:hover {
    color: var(--app-bad-text);
}

.coupon-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    padding: 8px 1.25rem;
    border-top: 1px solid var(--app-border);
    color: var(--app-muted);
    font-size: .8rem;
}

.coupon-legend-term {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.coupon-legend .btn.btn-link.coupon-legend-glossary {
    min-height: 32px;
    padding: 0;
    font-size: .8rem;
    font-weight: 600;
}

.coupon-footnote {
    flex: 1 1 300px;
    min-width: 0;
    color: var(--app-muted);
    font-size: .8rem;
}

.coupon-footnote > p {
    margin: 0 0 2px;
}

.coupon-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.coupon-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
}

.coupon-action-tip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.coupon-result-actions {
    margin-bottom: 16px;
}

.coupon-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.coupon-empty-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Telefon ve tablette (sol menü yer kaplar) tarih ve lig satırın üstüne çıkar. */
@media (max-width: 991.98px) {
    .coupon-leg {
        flex-wrap: wrap;
    }

    .coupon-leg .leg-date {
        flex: 1 1 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 10px;
    }

    .coupon-leg .leg-main {
        flex: 1 1 0;
    }
}

@media (max-width: 575.98px) {
    .coupon-ticket-head.coupon-ticket-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .coupon-tile-total {
        grid-column: 1 / -1;
    }

    .coupon-ticket-head.coupon-ticket-grid .head-value {
        font-size: 1rem;
    }

    /* Claude'un gerekçesi tam genişlikte; oran ve çıkarma düğmesi altında. */
    #CouponAiResult .coupon-leg .leg-main {
        flex-basis: 100%;
    }

    #CouponAiResult .coupon-leg-numbers {
        display: flex;
        flex: 1 1 auto;
        align-items: baseline;
        gap: 10px;
        align-self: center;
        text-align: left;
    }

    .coupon-empty-actions {
        flex-direction: column;
        width: 100%;
    }

    .coupon-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .coupon-actions .btn {
        width: 100%;
    }

    .coupon-action-tip {
        width: 100%;
    }

    .coupon-action-tip .btn {
        flex: 1 1 auto;
    }
}

/* ---------- Claude ile Kupon ---------- */
.coupon-ai-model {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 12px;
    font-size: 13.5px;
}

.coupon-ai-model .model-badge {
    padding: .5rem .75rem;
    font-size: .85rem;
    white-space: normal;
}

.coupon-ai-model .btn {
    min-height: 40px;
}

.coupon-ai-model-note {
    flex: 1 1 260px;
    color: var(--app-muted);
}

.coupon-ai-classic {
    display: inline-block;
    padding: 8px 0;
    font-weight: 600;
}

html.modern .template-group-title {
    line-height: 1.4;
}

.coupon-template-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.coupon-template-grid .template-item {
    height: 100%;
}

.coupon-template-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.coupon-template-body .app-badge {
    white-space: normal;
}

.coupon-template-empty {
    color: var(--app-muted);
    font-size: 13.5px;
}

.coupon-prompt-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    margin: 4px 0;
    color: var(--app-muted);
    font-size: .8rem;
}

.coupon-template-state {
    color: var(--app-warn-ink);
    font-weight: 600;
}

.coupon-template-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 4px;
}

.coupon-template-actions .btn {
    min-height: 44px;
}

.coupon-summary-stale {
    margin: 0 0 12px;
    color: var(--app-warn-ink);
    font-size: .8rem;
    font-weight: 600;
}

html.modern .coupon-revise-title,
.coupon-revise-title {
    color: var(--app-heading);
    font-size: 15px;
    font-weight: 600;
}

.coupon-revise-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.coupon-revise-foot > .form-text {
    flex: 1 1 280px;
}

.coupon-revise-foot > .btn {
    min-height: 44px;
}

.coupon-research-sources {
    margin: 0 0 8px;
    font-size: .85rem;
    overflow-wrap: anywhere;
}

.coupon-failed-attempt {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px dashed var(--app-border-strong);
    border-radius: var(--radius);
    font-size: .88rem;
    overflow-wrap: anywhere;
}

.coupon-failed-title {
    margin: 0 0 6px;
    font-weight: 600;
}

.coupon-failed-summary {
    margin: 0 0 6px;
    white-space: pre-line;
}

.coupon-failed-attempt summary {
    min-height: 32px;
    cursor: pointer;
}

.coupon-failed-attempt .coupon-result-info {
    margin: 6px 0 0;
}

.coupon-tech {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    color: var(--app-muted);
    font-size: .8rem;
}

.coupon-tech summary {
    padding: 4px 0;
    font-weight: 600;
    cursor: pointer;
}

.coupon-tech details > p {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

.coupon-tech > .app-tip {
    margin-top: 4px;
}

.coupon-model-help {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 4px;
}

@media (max-width: 1199.98px) {
    .coupon-template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .coupon-template-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .coupon-template-grid .template-desc {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .coupon-template-actions .btn,
    .coupon-revise-foot > .btn {
        width: 100%;
    }
}

/* ---------- Kuponlarım ---------- */
.coupon-saved-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.coupon-saved-filter,
.coupon-saved-settle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coupon-saved-filter > label {
    margin: 0;
    font-weight: 600;
}

.coupon-saved-filter > .form-select {
    width: auto;
    min-width: 170px;
    min-height: 44px;
}

.coupon-saved-settle > .btn {
    min-height: 44px;
}

.coupon-settle-result .coupon-settle-hint {
    margin-top: 4px;
}

.coupon-outcome-legend {
    margin-bottom: 12px;
    color: var(--app-muted);
    font-size: .8rem;
}

.coupon-outcome-legend > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.coupon-outcome-legend li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.coupon-outcome-legend > p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    margin: 0;
}

.coupon-kind > i {
    margin-right: 4px;
    color: var(--sec);
}

.coupon-return-note,
.coupon-return-old {
    color: var(--app-muted);
}

.coupon-return-old {
    margin-left: 4px;
    white-space: nowrap;
}

.coupon-row-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 36px;
    min-height: 36px;
    padding: 0 8px;
    border: 1px solid var(--sec-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--sec);
}

.coupon-row-toggle[aria-expanded="true"] {
    background: var(--sec-soft-2);
    color: var(--sec-ink);
}

.coupon-toggle-text,
.coupon-delete-text {
    font-size: 13px;
    font-weight: 600;
}

.coupon-saved-table .couponDeleteButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 36px;
    min-height: 36px;
}

.table.app-table.coupon-saved-table > tbody > tr.coupon-child-row > td,
.table.app-table.coupon-saved-table > tbody > tr.coupon-child-row:hover > td {
    padding: 4px 12px;
    background-color: var(--app-surface-2);
    text-align: left;
    white-space: normal;
}

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

.coupon-child-item {
    display: grid;
    grid-template-columns: minmax(150px, auto) minmax(0, 1fr) auto;
    align-items: start;
    gap: 4px 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--app-border);
}

.coupon-child-item:last-child {
    border-bottom: 0;
}

.coupon-child-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.coupon-child-match {
    color: var(--app-heading);
    font-weight: 700;
}

.coupon-child-meta {
    color: var(--app-muted);
    font-size: .8rem;
}

.coupon-child-pick {
    font-size: .85rem;
}

.coupon-child-pick .badge {
    font-size: .8rem;
}

.coupon-child-numbers {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.coupon-child-odds {
    color: var(--sec-ink);
    font-size: 1.05rem;
    font-weight: 800;
}

.coupon-child-prob {
    color: var(--app-muted);
    font-size: .8rem;
}

@media (min-width: 1200px) {
    .coupon-toggle-text,
    .coupon-delete-text {
        display: none;
    }

    /* Düğme sütunları içerik kadar; eski kazanç kendi satırında. */
    .table.app-table.coupon-saved-table > thead > tr > th.coupon-col-toggle,
    .table.app-table.coupon-saved-table > thead > tr > th.coupon-col-delete,
    .table.app-table.coupon-saved-table > tbody > tr > td.coupon-col-toggle,
    .table.app-table.coupon-saved-table > tbody > tr > td.coupon-col-delete {
        width: 1%;
    }

    .coupon-saved-table .coupon-return-old {
        display: block;
        margin-left: 0;
    }
}

/* 1200 px altında kart: tarih başlık, altında durum; en altta "Maçları göster" ve sil yan yana. */
@media (max-width: 1199.98px) {
    table.dataTable.app-table-cards.coupon-saved-table > tbody > tr:not(.coupon-child-row) {
        flex-direction: row;
        flex-wrap: wrap;
    }

    table.dataTable.app-table-cards.coupon-saved-table > tbody > tr > td.app-td-primary {
        order: -3;
        margin-bottom: 0;
        padding-bottom: 2px;
        border-bottom: 0;
    }

    table.dataTable.app-table-cards.coupon-saved-table > tbody > tr > td.coupon-col-status {
        order: -2;
        justify-content: flex-start;
        margin-bottom: 4px;
        padding-top: 0;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--app-border);
    }

    table.dataTable.app-table-cards.coupon-saved-table > tbody > tr > td.coupon-col-status::before {
        content: none;
    }

    table.dataTable.app-table-cards.coupon-saved-table > tbody > tr > td.coupon-col-toggle {
        order: 2;
        flex: 1 1 0;
        justify-content: stretch;
        width: auto;
        padding-top: 8px;
        padding-right: 4px;
    }

    table.dataTable.app-table-cards.coupon-saved-table > tbody > tr > td.coupon-col-delete {
        order: 3;
        flex: 0 0 auto;
        width: auto;
        padding-top: 8px;
        padding-left: 4px;
    }

    .coupon-saved-table .coupon-row-toggle {
        width: 100%;
        min-height: 44px;
    }

    .coupon-saved-table .couponDeleteButton {
        min-height: 44px;
        padding-right: 14px;
        padding-left: 14px;
    }

    table.dataTable.app-table-cards.coupon-saved-table > tbody > tr.coupon-row-open {
        margin-bottom: 0;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    table.dataTable.app-table-cards.coupon-saved-table > tbody > tr.coupon-child-row {
        border-top: 0;
        border-radius: 0 0 var(--radius) var(--radius);
    }

    table.dataTable.app-table-cards.coupon-saved-table > tbody > tr.coupon-child-row > td {
        display: block;
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .coupon-saved-filter,
    .coupon-saved-settle {
        width: 100%;
    }

    .coupon-saved-filter > .form-select,
    .coupon-saved-settle > .btn {
        flex: 1 1 auto;
    }

    .coupon-child-item {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .coupon-child-outcome {
        grid-column: 1 / -1;
    }
}


/* ---------- Model Karnesi ve yönetim ---------- */
/* ============================================================================
   Model Karnesi + Yönetim (olcum-yonetim grubu). custom.css'in sonuna eklenir.
   ========================================================================== */

/* ---------- Model Karnesi: giriş, ayarlar, sonuç kutusu ---------- */
.eval-intro p {
    margin: 0 0 6px;
    color: var(--app-text);
}

.eval-legend summary,
.eval-howto summary {
    padding: 6px 0;
    color: var(--sec-ink);
    font-weight: 600;
    cursor: pointer;
}

.eval-legend ul {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.eval-legend li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    padding: 3px 0;
}

.eval-label-row,
.key-label-row,
.user-label-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    margin-bottom: 6px;
}

.eval-label-row > label,
.key-label-row > label,
.user-label-row > label {
    margin: 0;
}

.eval-settings .eval-label-row + .form-control,
.eval-settings .form-label + .form-control {
    min-height: 44px;
}

.eval-settings .col-md-6 > .form-label {
    display: flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 6px;
}

.eval-result-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    margin-bottom: 12px;
}

.eval-result .eval-result-head > h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.eval-result-meta {
    color: var(--app-muted);
    font-size: .8rem;
}

.eval-result-foot {
    margin-top: 8px;
}

.eval-busy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.eval-busy .eval-spinner {
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
}

.eval-busy-text {
    flex: 1 1 220px;
    min-width: 0;
}

.eval-elapsed {
    display: block;
    color: var(--app-muted);
    font-size: .8rem;
}

.eval-busy .eval-stop {
    min-height: 44px;
}

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

.eval-headline > i {
    flex: 0 0 auto;
    margin-top: .25rem;
}

.eval-headline-good > i {
    color: var(--app-ok-text);
}

.eval-headline-bad > i {
    color: var(--app-bad-text);
}

.eval-headline-warn > i {
    color: var(--app-warn-ink);
}

.eval-headline-neutral {
    border-color: var(--sec);
    background: var(--sec-soft);
}

.eval-headline-neutral > i {
    color: var(--sec);
}

.eval-note {
    margin-bottom: 12px;
    color: var(--app-muted);
    font-size: .85rem;
}

.eval-section-title,
.eval-block-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.eval-section-title {
    margin: 8px 0;
}

.eval-result .eval-section-title > h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.eval-tile-label {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
}

.eval-tile-good .eval-tile-value {
    color: var(--app-ok-ink);
}

.eval-tile-bad .eval-tile-value {
    color: var(--app-bad-ink);
}

.eval-tile-warn .eval-tile-value {
    color: var(--app-warn-ink);
}

.eval-live,
.eval-card-warn,
.key-inline-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.app-notice.eval-live > i:first-child,
.app-notice.eval-card-warn > i:first-child,
.app-notice.key-inline-notice > i:first-child {
    margin: 4px 0 0;
}

.eval-error-line {
    overflow-wrap: anywhere;
}

.eval-server-note {
    margin-top: 12px;
    font-size: .85rem;
    color: var(--app-muted);
    overflow-wrap: anywhere;
}

.eval-server-note summary {
    min-height: 32px;
    cursor: pointer;
}

.eval-server-note ul {
    margin: 4px 0 0;
    padding-left: 18px;
}

.eval-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.eval-synthetic {
    color: var(--app-muted);
    font-size: .85rem;
}

.eval-synthetic ul {
    columns: 3 160px;
}

.eval-result .app-empty {
    padding-top: 16px;
    padding-bottom: 16px;
}

/* ---------- Model Karnesi: araç kartları ---------- */
.eval-group {
    margin-bottom: 20px;
}

.eval-group > .eval-group-title {
    margin: 4px 0 12px;
    color: var(--app-heading);
    font-size: 16px;
    font-weight: 700;
}

.eval-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding: 16px;
    border: 1px solid var(--app-border);
    border-radius: var(--radius);
    background: var(--app-surface);
    box-shadow: var(--shadow-1);
}

.eval-card.is-running {
    border-color: var(--sec);
    box-shadow: 0 0 0 3px rgba(var(--sec-rgb), .25);
}

.eval-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.eval-card-icon {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 5px;
    background: var(--sec-soft-2);
    color: var(--sec);
    font-size: 17px;
}

.eval-card-heading {
    min-width: 0;
}

.eval-card-titlerow {
    display: flex;
    align-items: center;
    gap: 6px;
}

.eval-card .eval-card-title {
    margin: 0;
    color: var(--app-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.eval-card-alias {
    margin: 0;
    color: var(--app-muted);
    font-size: .8rem;
}

.eval-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.eval-card-facts {
    margin: 0;
    font-size: 13.5px;
}

.eval-card-facts dt {
    color: var(--app-muted);
    font-size: .8rem;
    font-weight: 600;
}

.eval-card-facts dd {
    margin: 0 0 6px;
}

.eval-card .eval-card-warn {
    margin: 0;
    font-size: .83rem;
}

.eval-card-need {
    margin: 0;
    color: var(--app-muted);
    font-size: .83rem;
}

.eval-card-need a,
.eval-intro .eval-goto {
    font-weight: 600;
    text-decoration: underline;
}

.eval-card-field .form-control {
    min-height: 44px;
}

.eval-howto {
    margin-top: auto;
    border-top: 1px solid var(--app-border);
    font-size: 13.5px;
}

.eval-howto p {
    margin: 0 0 4px;
    color: var(--app-text);
}

.eval-card .eval-run {
    width: 100%;
    min-height: 44px;
}

/* Bir şeyi değiştiren araçların düğmesi sade ama "kapalı" görünmesin. */
.eval-card .eval-run.btn-outline-secondary {
    border-color: #64748b;
    color: var(--app-heading);
}

.eval-card .eval-run.btn-outline-secondary:hover,
.eval-card .eval-run.btn-outline-secondary:focus {
    background: var(--app-neutral-bg);
    color: var(--app-heading);
}

@media (max-width: 767.98px) {
    table.app-table-cards.eval-table > thead > tr > th,
    table.app-table-cards.eval-table > tbody {
        border: 0;
    }
}

/* ---------- Yönetim: ortak form parçaları ---------- */
.app-req {
    color: var(--app-bad-text);
    font-weight: 700;
}

.key-head-row,
.user-head-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.app-explain .key-head-row > h2,
.app-explain .key-head-row > h3,
.app-explain .user-head-row > h2 {
    margin: 0;
}

.app-explain h3 {
    margin: 12px 0 8px;
    font-size: 14px;
    font-weight: 700;
}

.app-explain .key-head-row > h3 {
    margin: 0;
}

.key-form-actions,
.user-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.key-form-actions > .btn,
.user-form-actions > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
}

@media (max-width: 575.98px) {
    .key-form-actions > .btn,
    .user-form-actions > .btn {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .input-group > [data-password-toggle],
    .input-group > [data-reveal] {
        min-height: 44px;
    }
}

.key-order-field {
    max-width: 360px;
}

.key-inline-notice {
    margin: 12px 0 0;
}

/* ---------- Anahtarlar: açıklama, durum listesi, düzenleme düzeni ---------- */
.app-explain ul.key-legend,
.app-explain ul.user-roles {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.key-legend li,
.user-roles li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin-bottom: 8px;
}

.key-legend .app-badge {
    min-width: 108px;
}

.user-roles .app-badge {
    min-width: 142px;
}

.key-legend li > span:last-child,
.user-roles .user-role-text {
    flex: 1 1 180px;
}

.key-explain > details > summary {
    padding: 8px 0;
    color: var(--sec-ink);
    font-weight: 600;
    cursor: pointer;
}

@media (min-width: 768px) {
    .key-explain > details > summary {
        display: none;
    }
}

.key-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "state"
        "form"
        "legend";
    column-gap: 16px;
    align-items: start;
}

.key-edit-state {
    grid-area: state;
}

.key-edit-form {
    grid-area: form;
}

.key-edit-legend {
    grid-area: legend;
}

@media (min-width: 992px) {
    .key-edit-grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "form state"
            "form legend";
    }
}

.key-error-detail summary {
    color: var(--app-muted);
    font-size: .8rem;
    cursor: pointer;
}

.key-error-detail div {
    color: var(--app-muted);
    font-size: .8rem;
    overflow-wrap: anywhere;
}

/* ---------- Anahtar ve kullanıcı tabloları ---------- */
.app-key-status {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.app-key-mask {
    font-family: SFMono-Regular, Menlo, Consolas, monospace;
    white-space: nowrap;
}

.app-table-keys .app-usage {
    min-width: 130px;
}

.app-table-users td:nth-child(3) {
    overflow-wrap: anywhere;
}

.app-table-users .app-row-note {
    display: inline-block;
    margin-left: 8px;
    white-space: normal;
}

@media (min-width: 992px) {
    .app-table-users .app-btn-label {
        display: none;
    }

    .table.app-table.app-table-users > tbody > tr > td.app-td-actions > .btn {
        min-width: 38px;
    }
}

/* "Okunamıyor" uyarısı uzun: tabloyu genişletmek yerine satır kırar. */
.app-table-keys > tbody > tr > td:nth-child(6) .app-badge {
    white-space: normal;
}

/* Yedi sütun 1200-1399 px arasında dar iç boşlukla sığar. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .table.app-table.app-table-keys > thead > tr > th,
    .table.app-table.app-table-keys > tbody > tr > td {
        padding-right: 8px;
        padding-left: 8px;
    }
}

/* Yedi sütunlu anahtar tablosu 1200 px altında kart olur (app-cards-xl); düğme yazıları o zaman görünür. */
@media (min-width: 1200px) {
    .app-table-keys .app-btn-label {
        display: none;
    }

    .table.app-table.app-table-keys > tbody > tr > td.app-td-actions > .btn {
        min-width: 38px;
    }
}

@media (max-width: 1199.98px) {
    .app-table-keys .app-usage {
        flex: 0 1 62%;
        text-align: right;
    }

    table.app-table-cards.app-table-keys > thead > tr > th,
    table.app-table-cards.app-table-keys > tbody {
        border: 0;
    }
}

/* Tablette anahtar kartları yan yana. */
@media (min-width: 768px) and (max-width: 1199.98px) {
    table.app-table-cards.app-cards-xl.app-table-keys > tbody {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 12px;
    }

    table.app-table-cards.app-cards-xl.app-table-keys > tbody > tr {
        margin-bottom: 0;
    }

    table.app-table-cards.app-cards-xl.app-table-keys > tbody > tr > td.app-td-actions {
        margin-top: auto;
    }

    table.app-table-cards.app-cards-xl.app-table-keys > tbody > tr:only-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    table.app-table-cards.app-table-users > thead > tr > th,
    table.app-table-cards.app-table-users > tbody {
        border: 0;
    }

    /* Kart başlığı: Ad ve Soyad yan yana. */
    table.app-table-cards.app-cards-lg.app-table-users > tbody > tr {
        flex-direction: row;
        flex-wrap: wrap;
    }

    table.app-table-cards.app-cards-lg.app-table-users > tbody > tr > td:not([colspan]):nth-child(-n+2) {
        order: -1;
        justify-content: flex-start;
        width: auto;
        margin: 0;
        padding: 4px 0 4px 12px;
        border-bottom: 0;
        color: var(--app-heading);
        font-size: 15px;
        font-weight: 700;
        text-align: left;
    }

    /* Uzun ad soyadı sıkıştırmasın: sığmazsa soyad alt satıra geçer. */
    table.app-table-cards.app-cards-lg.app-table-users > tbody > tr > td:not([colspan]):nth-child(-n+2) {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    /* Yan yanayken ara 5 px; alt satıra geçen soyad adla aynı hizada kalır. */
    table.app-table-cards.app-cards-lg.app-table-users > tbody > tr > td:not([colspan]):nth-child(1) {
        max-width: calc(100% - 7px);
        margin-right: -7px;
    }

    table.app-table-cards.app-cards-lg.app-table-users > tbody > tr > td:not([colspan]):nth-child(2) {
        flex: 1 1 auto;
        padding-right: 12px;
        padding-left: 12px;
    }

    table.app-table-cards.app-cards-lg.app-table-users > tbody > tr > td:not([colspan]):nth-child(2)::before {
        content: none;
    }

    table.app-table-cards.app-cards-lg.app-table-users > tbody > tr > td:nth-child(3) {
        margin-top: 4px;
        border-top: 1px solid var(--app-border);
        padding-top: 10px;
    }

    .app-table-users .app-row-note {
        flex: 1 1 auto;
        margin-left: 0;
        text-align: right;
    }
}


/* ---------- Maç tahmini ---------- */
/* ============================================================================
   Maç tahmini sayfa ekleri (grup: tahmin). 09. bölümdeki kurallardan SONRA gelir.
   ========================================================================== */

/* ---------- Yeni Tahmin: 1. ve 2. adım ---------- */
.pred-league-step { display: flex; flex-direction: column; }
.pred-league-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 4px; }
.pred-league-head strong { color: var(--app-heading); font-size: 16px; }
.league-card[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
.pred-teams-toggle,
.pred-change-btn { min-height: 44px; }

/* Telefonda veri kaynağı lig listesinin altında durur; ilk lig kartı ekranda kalır. */
@media (max-width: 767.98px) {
    .pred-source-slot { order: 2; }
    .pred-source-slot .data-source-picker { margin: 16px 0 0 !important; }
}

/* ---------- Yeni Tahmin: 3. adım ---------- */
.pred-quick-odds { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; }
.pred-quick-odds .form-check-label { min-height: 44px; font-weight: 600; cursor: pointer; }
.pred-quick-odds .form-check-label > span { font-weight: 400; }
.pred-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pred-preset-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.pred-preset-buttons .btn { min-height: 40px; }
.pred-metric-header { display: flex; align-items: stretch; }
.pred-metric-check { display: flex; flex: 0 0 44px; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: 0; cursor: pointer; }
.pred-metric-check .form-check-input { float: none; margin: 0; }
.pred-metric-title { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 14px; line-height: 1.4; }
.pred-metric-title .accordion-button { height: 100%; min-height: 44px; font-size: 14px; font-weight: 600; }
.metric-selector-item .form-check-label { min-height: 44px; cursor: pointer; }
.app-badge.metric-badge { white-space: normal; font-weight: 600; }
.app-badge.metric-badge-off { opacity: 1; }

@media (max-width: 767.98px) {
    .pred-preset-buttons .btn { min-height: 44px; }
}

/* ---------- Okunurluk ve dokunma alanı ---------- */
/* Bootstrap küçük metni 12,25 px, sayaç rozetleri 9,6 px çizer; alt sınır 12,5 px. */
#PredictionWizard small,
#PredictionWizard .small,
.pred-result small,
.pred-result .small,
.pred-history-card .dataTables_wrapper .dataTables_info { font-size: 12.5px; }
#TeamsCount,
#SelectedMetricCount { font-size: 12.5px; }

/* Gri çerçeveli düğme yazısı renkli zeminde karşıtlık sınırının altında kalır. */
.pred-recent-table .btn-outline-secondary:not(:hover),
.pred-history-table .btn-outline-secondary:not(:hover) { color: #475569; }

@media (max-width: 767.98px) {
    .pred-cta,
    .fixture-select-btn,
    #FixturesRetryBtn,
    #DetailError .btn,
    .pred-more-btn,
    .pred-terms .btn-link { min-height: 44px; }
    .pred-provider summary { min-height: 44px; padding: 11px 0; }
}

/* ---------- Ortak küçük parçalar ---------- */
.pred-terms { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: .85rem; color: var(--app-text); }
.pred-term { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.pred-card-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
html.modern .pred-card-title,
.pred-card-title { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--app-heading); font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: normal; text-transform: none; }
html.modern .pred-card-subtitle,
.pred-card-subtitle { margin: 0; color: var(--app-heading); font-size: 14px; font-weight: 700; line-height: 1.4; text-transform: none; overflow-wrap: anywhere; }
html.modern .pred-report-title,
.pred-report-title { margin: 0 0 8px; color: var(--app-heading); font-size: 15px; font-weight: 700; line-height: 1.4; text-transform: none; }
html.modern .pred-report-subtitle,
.pred-report-subtitle { margin: 0 0 8px; color: var(--app-heading); font-size: 14px; font-weight: 700; text-transform: none; }

/* Karar ve G/B/M rozetleri: beyaz yazı için koyu zemin. */
.badge.pred-verdict-badge.bg-success,
.badge.pred-form-badge.bg-success { background-color: var(--app-ok-ink) !important; }
.badge.pred-verdict-badge.bg-danger,
.badge.pred-form-badge.bg-danger { background-color: var(--app-bad-ink) !important; }
.badge.pred-verdict-badge.bg-secondary,
.badge.pred-form-badge.bg-secondary { background-color: #475569 !important; }
.badge.pred-verdict-badge { font-size: .8rem; font-weight: 600; white-space: normal; }

.pred-pct-line { display: block; margin-top: 3px; color: var(--app-muted); font-size: .8rem; }

/* ---------- Sonuç: bölüm gezinme çubuğu ---------- */
.pred-result > .pred-nav { margin-bottom: 16px; padding: 4px; border: 1px solid var(--sec-border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-1); }
.pred-nav-row { display: flex; flex-wrap: wrap; gap: 4px; }
.pred-nav-row[hidden],
.pred-nav-link[hidden] { display: none !important; }
.pred-nav-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); color: var(--sec-ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pred-nav-link:hover { background: var(--sec-soft-2); color: var(--sec-ink); text-decoration: none; }
.pred-nav-link.pred-nav-expert { background: var(--sec-soft); }
.pred-back-to-nav { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; font-size: .85rem; font-weight: 600; }

@media (min-width: 992px) {
    .pred-result > .pred-nav { position: sticky; top: var(--app-scroll-offset); z-index: 980; }
    /* Tek satır; sığmazsa yana kayar ve kenardaki gölge devamı olduğunu gösterir. */
    .pred-nav-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
        background:
            linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)) left center / 40px 100% no-repeat local,
            linear-gradient(270deg, #fff 30%, rgba(255, 255, 255, 0)) right center / 40px 100% no-repeat local,
            radial-gradient(farthest-side at 0 50%, rgba(15, 23, 42, .22), rgba(15, 23, 42, 0)) left center / 14px 100% no-repeat scroll,
            radial-gradient(farthest-side at 100% 50%, rgba(15, 23, 42, .22), rgba(15, 23, 42, 0)) right center / 14px 100% no-repeat scroll;
    }
    .pred-nav-row .pred-nav-link:focus-visible { outline-offset: -2px; }
    .pred-back-to-nav { display: none; }
}

/* ---------- Sonuç: özet kartı ve kartlar ---------- */
/* Temanın açık gri paragraf rengi (#777) karşıtlık sınırının altında; kendi rengi olan sınıflar korunur. */
:where(.pred-result, .pred-history-card) p { color: var(--app-text); }
.pred-hero { margin-bottom: 16px; border: 1px solid var(--app-border); border-top: 4px solid var(--sec); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-1); }
.pred-hero-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 20px; border-bottom: 1px solid var(--app-border); }
.pred-hero-body { padding: 1.25rem 1.25rem 1.1rem; }
.pred-headline-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: .35rem; }
.pred-headline-row .pred-headline { margin: 0; min-width: 0; }
.pred-climate { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#BetRiskClimateDetail { white-space: normal; }

.pred-pick .pred-pick-selection { flex: 1 1 150px; min-width: 0; color: var(--app-heading); font-size: 1.02rem; font-weight: 700; line-height: 1.3; overflow-wrap: break-word; }
.pred-pick .pred-pick-label { margin-top: -.2rem; color: var(--app-muted); font-size: .8rem; font-weight: 600; }
.pred-pick .pred-pick-top { flex-wrap: wrap; align-items: flex-start; }
.pred-hint { margin: .75rem 0 0; color: var(--app-text); font-size: .85rem; }
.pred-hint a,
.pred-risk-line a { font-weight: 700; text-decoration: underline; }

html.modern .warning-box .warning-title,
.warning-box .warning-title { margin: 0 0 .35rem; font-size: 15px; font-weight: 700; text-transform: none; }

/* Bölüm rengi: eski mavi ve yeşil "öne çıkan" süslemeler. */
.fixture-countdown.is-later { color: var(--sec-ink); background: var(--sec-soft-2); }
.pred-ai-comment { border: 1px solid var(--sec-border); background: var(--sec-soft); color: var(--app-text); }
.pred-ai-comment .pred-ai-comment-title { color: var(--sec-ink); }
.pred-pick-headline,
.bet-headline { border-left: 3px solid var(--sec); background: var(--sec-soft); color: var(--sec-ink); }
.pred-pick.pred-pick-primary { border-color: var(--sec); box-shadow: 0 0 0 3px rgba(var(--sec-rgb), .15); }

/* ---------- Sonuç: uzman görünümü ---------- */
.pred-details-toggle { flex-wrap: nowrap; }
.pred-details-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pred-details-title { color: var(--sec-ink); font-size: 16px; font-weight: 700; }
.pred-details-sub { color: var(--app-muted); font-size: .82rem; font-weight: 400; }
.pred-section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 10px; font-size: .85rem; }
.pred-provider { margin-bottom: 8px; padding: 12px 16px; border: 1px solid var(--app-border); border-radius: var(--radius-sm); background: var(--app-surface-2); overflow-wrap: anywhere; }
.pred-provider summary { min-height: 32px; cursor: pointer; font-weight: 600; }
.pred-conclusion { margin-top: 1rem; padding: 12px 16px; border-left: 4px solid var(--sec); border-radius: var(--radius-sm); background: var(--sec-soft); }
.pred-delta-up { color: var(--app-ok-text); font-weight: 600; }
.pred-delta-down { color: var(--app-bad-text); font-weight: 600; }
.pred-scroll-hint { display: none; margin: 0 0 4px; color: var(--app-muted); font-size: .8rem; }
.bet-table th,
.pred-metrics-table th { white-space: nowrap; }
.pred-metrics-table { min-width: 620px; }
.bet-table { min-width: 720px; }

@media (max-width: 991.98px) {
    .pred-scroll-hint { display: block; }
}

/* ---------- Sonuç: indirme ve sonraki adım ---------- */
.pred-export-bottom { display: flex; justify-content: flex-end; }
.pred-next { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 16px 0; }
.pred-next .btn,
.pred-export-bottom .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }

@media (max-width: 575.98px) {
    .pred-hero-head { padding: 10px 14px; }
    .pred-hero-head .btn { display: inline-flex; flex: 1 1 100%; align-items: center; justify-content: center; min-height: 44px; }
    .pred-hero-body { padding: 1rem .9rem; }
    .pred-next .btn,
    .pred-export-bottom .btn { flex: 1 1 100%; }
    .pred-pick-stats { grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); }
}

/* ---------- Geçmiş ve son tahminler ---------- */
.pred-history-table .pred-chip { white-space: nowrap; }

.pred-recent-table .badge.pred-verdict-badge { white-space: nowrap; }

@media (max-width: 991.98px) {
    .pred-recent-table .pred-pct-line { flex-basis: 100%; }
}

/* 992-1199: "Son tahminler" altı sütunu sığsın diye iç boşluk azalır, düğmeler alt alta durur. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .table.app-table.pred-recent-table > thead > tr > th,
    .table.app-table.pred-recent-table > tbody > tr > td { padding-right: 6px; padding-left: 6px; }
    .table.app-table.pred-recent-table > tbody > tr > td.app-td-actions > .btn { display: block; margin: 3px 0; white-space: nowrap; }
}

@media (max-width: 767.98px) {
    .pred-card-bar .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
}

.pred-history-table .pred-pct-line { display: none; }
.pred-history-table .badge.pred-verdict-badge { white-space: nowrap; }

@media (min-width: 1200px) {
    .table.app-table.pred-history-table > thead > tr > th,
    table.dataTable.pred-history-table > thead > tr > th,
    .table.app-table.pred-history-table > tbody > tr > td { padding-right: 8px; padding-left: 8px; }
    /* Uzun takım adlarında tablo yana kaysa da işlem düğmeleri sağda görünür kalır. */
    .table.app-table.pred-history-table > thead > tr > th:last-child { position: sticky; right: 0; }
    .table.app-table.pred-history-table > tbody > tr > td.app-td-actions { position: sticky; right: 0; background-color: #fff; }
    .table.app-table.pred-history-table > tbody > tr:hover > td.app-td-actions { background-color: var(--sec-soft); }
}

/* Dar masaüstünde sütunlar sığsın: işlem düğmeleri alt alta durur. */
@media (min-width: 1200px) and (max-width: 1799.98px) {
    .table.app-table.pred-history-table > tbody > tr > td.app-td-actions > .btn { display: block; margin: 3px 0; white-space: nowrap; }
}

/* 1200-1599: üç yüzde sütunu gizlenir, aynı yüzdeler "Tahmin" hücresinde gösterilir. */
@media (min-width: 1200px) and (max-width: 1599.98px) {
    .table.pred-history-table .pred-col-pct { display: none; }
    .pred-history-table .pred-pct-line { display: block; }
}


/* ---------- Erişilebilirlik denetimi düzeltmeleri ---------- */
/* Telefonda yapışkan Geri/İleri çubuğu klavyeyle odaklanan alanı örtmesin. */
@media (max-width: 767.98px) {
    html:has(.app-wizard) {
        scroll-padding-bottom: 84px;
    }

    .pred-terms {
        column-gap: 26px;
        row-gap: 14px;
    }
}

/* Sabit üst başlık, klavyeyle geri gidilirken (Shift+Tab) odaklanan öğeyi örtmesin. Form alanlarında
   tarayıcı yalnız imleci gösterecek kadar kaydırdığı için alan odaktayken pencereye üst pay verilir.
   Yapışkan alanların kendi düğmeleri hariçtir; yoksa sayfa gereksiz yere kayar. */
:where(#app-main) :where(a, button, summary, [tabindex]):not(:where(input, select, textarea, .pred-nav *, .app-wizard-nav *)) {
    scroll-margin-top: calc(var(--app-scroll-offset) + 12px);
}

html:has(#app-main :is(input, select, textarea):focus) {
    scroll-padding-top: calc(var(--app-scroll-offset) + 12px);
}

@media (min-width: 992px) {
    html.modern.fixed body:not([data-page="prediction.new"]):not([data-page="prediction.detail"]) .app-pagehead :is(a, button) {
        scroll-margin-top: 0;
    }

    /* Tahmin sonucunun yapışık gezinme çubuğu da hesaba katılır. */
    .pred-result :where(a, button, summary, [tabindex]):not(:where(.pred-nav, .pred-nav *)) {
        scroll-margin-top: calc(var(--app-scroll-offset) + 70px);
    }
}

/* Temanın açık gri paragraf ve yer tutucu rengi renkli kutularda okunmuyor. */
.denied-role,
.coupon-leg-why > p,
.coupon-footnote > p,
.coupon-settle-result p,
.eval-block > p {
    color: var(--app-muted);
}

.coupon-settle-result a {
    color: var(--sec-ink);
}

/* Boş liste ve yükleme hatası satırı. */
html table.dataTable td.dataTables_empty {
    color: var(--app-muted);
}

html .form-control::placeholder {
    color: #64748b;
}

/* En küçük metin boyutu. */
.coupon-return-note,
.coupon-return-old {
    font-size: 12.8px;
}

html .dataTables_wrapper .dataTables_info,
html .pred-history-card .dataTables_wrapper .dataTables_info {
    font-size: 13px;
}


/* ============================================================================
   14  Köşe yuvarlaklığı
   Özel bileşenler --radius-* değişkenlerini ve yukarıdaki yarıya indirilmiş değerleri kullanır.
   Bootstrap'in kendi bileşenleri (.25rem / .3rem) burada aynı oranda küçültülür.
   Hap (999px) ve daire (50%) biçimleri bilerek dokunulmaz.
   ========================================================================== */
html .btn,
html .form-control,
html .form-select,
html .input-group-text,
html .card,
html .dropdown-menu,
html .alert,
html .badge,
html .page-link,
html .list-group-item:first-child,
html .nav-tabs .nav-link,
html .toast,
html .popover,
html .progress,
html .accordion-item {
    border-radius: .125rem;
}

html .modal-content,
html .offcanvas {
    border-radius: .15rem;
}

html .input-group > .form-control:not(:last-child),
html .input-group > .form-select:not(:last-child),
html .input-group > .btn:not(:last-child):not(.dropdown-toggle),
html .input-group > .input-group-text:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

html .input-group > .form-control:not(:first-child),
html .input-group > .form-select:not(:first-child),
html .input-group > .btn:not(:first-child),
html .input-group > .input-group-text:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

html .nav-tabs .nav-link {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

html .select2-container--bootstrap-5 .select2-selection,
html .select2-container--default .select2-selection--single,
html .select2-container--default .select2-selection--multiple,
html .select2-dropdown,
html .iziToast {
    border-radius: .125rem;
}
