/* ============================================================
   ÜNİTERCİH 360 — Tercih Sihirbazı (YÖK Atlas motoru)
   ============================================================ */

.page-tercih {
    background: var(--ink-50);
}

/* Bu sayfaya özel geniş (full-width) yerleşim */
.page-tercih .tercih-section .container {
    max-width: none;
    padding-inline: clamp(16px, 3vw, 48px);
}

/* ---------- Hero (kompakt, şık) ---------- */
.tercih-hero {
    position: relative;
    padding: .65rem 0 .85rem;
    background: var(--brand-800);
    color: #fff;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.tercih-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
}
.tercih-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, .12);
}
.tercih-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 3vw, 2.5rem);
    flex-wrap: wrap;
}
.tercih-hero__main {
    display: flex;
    align-items: center;
    gap: .85rem;
    flex-wrap: wrap;
    min-width: 0;
}
.tercih-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: .28rem .65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, .88);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}
.tercih-hero__title {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
    white-space: nowrap;
}
.tercih-hero__title .text-gradient {
    color: var(--accent-400);
}
.tercih-hero__title-main {
    color: #fff;
}
.tercih-hero__lead {
    margin: 0;
    flex: 1 1 280px;
    max-width: 52ch;
    font-size: .88rem;
    line-height: 1.55;
    color: rgba(226, 232, 244, .88);
}

.tercih-section {
    padding: 0 0 3rem;
    margin-top: -.55rem;
    position: relative;
    z-index: 2;
}

/* ---------- Filtre formu ---------- */
.tercih-filters {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: var(--radius-lg);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04),
        0 8px 28px -6px rgba(15, 23, 42, .1);
    padding: 0;
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.tercih-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem 1.35rem;
    background: #fff;
    border-bottom: 1px solid var(--ink-100);
}
.tercih-filters__title {
    margin: 0;
    font-size: .95rem;
    font-weight: 800;
    color: var(--brand-700);
    letter-spacing: -.01em;
}
.tercih-filters__sub {
    margin: .2rem 0 0;
    font-size: .78rem;
    color: var(--ink-500);
    line-height: 1.4;
}
.tercih-filters__sub strong {
    color: var(--brand-600);
    font-weight: 700;
}
.tercih-filters__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem 1.1rem;
    padding: 1.15rem 1.35rem 1.25rem;
}
.tercih-field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    min-width: 0;
}
.tercih-field__label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--ink-600);
    letter-spacing: .04em;
    text-transform: uppercase;
}
.tercih-field__hint {
    font-size: .7rem;
    color: var(--ink-400);
    margin-top: .1rem;
    line-height: 1.35;
}

/* ---------- Aranabilir seçim (pick) ---------- */
.tercih-pick {
    position: relative;
    width: 100%;
}
.tercih-pick__control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    min-height: 40px;
    padding: .3rem .55rem;
    border: 1px solid var(--ink-200);
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .03);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.tercih-pick.is-open .tercih-pick__control,
.tercih-pick__control:focus-within {
    background: #fff;
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px rgba(60, 81, 128, .1), inset 0 1px 2px rgba(15, 23, 42, .02);
}
.tercih-pick.is-disabled .tercih-pick__control {
    opacity: .65;
    pointer-events: none;
}
.tercih-pick__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    max-width: 100%;
}
.tercih-pick__tag {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    max-width: 100%;
    padding: .18rem .5rem;
    border-radius: 8px;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    color: var(--brand-700);
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.3;
}
.tercih-pick__tag-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 18rem;
}
.tercih-pick__tag-remove {
    border: 0;
    background: transparent;
    color: var(--brand-500);
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}
.tercih-pick__tag-remove:hover { color: var(--brand-700); }
.tercih-pick__search {
    flex: 1 1 120px;
    min-width: 80px;
    border: 0;
    background: transparent;
    color: var(--ink-800);
    font-size: .9rem;
    font-family: inherit;
    padding: .15rem .25rem;
    outline: none;
}
.tercih-pick__dropdown {
    position: absolute;
    z-index: 40;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 10px;
    box-shadow: 0 12px 32px -8px rgba(15, 23, 42, .18);
}
.tercih-pick__empty {
    margin: 0;
    padding: .75rem;
    font-size: .82rem;
    color: var(--ink-500);
}
.tercih-pick__list {
    list-style: none;
    margin: 0;
    padding: .25rem 0;
}
.tercih-pick__option {
    padding: .55rem .75rem;
    font-size: .88rem;
    color: var(--ink-800);
    cursor: pointer;
    line-height: 1.35;
}
.tercih-pick__option:hover,
.tercih-pick__option.is-active {
    background: var(--brand-50);
    color: var(--brand-800);
}
.tercih-pick__hidden { display: none; }
.tercih-field__input {
    width: 100%;
    height: 40px;
    padding: 0 .75rem;
    border: 1px solid var(--ink-200);
    border-radius: 10px;
    background: #fff;
    color: var(--ink-800);
    font-size: .88rem;
    font-family: inherit;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .03);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.tercih-field__input:focus {
    outline: none;
    background: #fff;
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px rgba(60, 81, 128, .1), inset 0 1px 2px rgba(15, 23, 42, .02);
}
.tercih-field__input::placeholder { color: var(--ink-400); }
select.tercih-field__input {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .7rem center;
    padding-right: 2rem;
    cursor: pointer;
}
.tercih-filters__actions {
    display: flex;
    justify-content: flex-end;
    gap: .65rem;
    margin: 0;
    padding: .95rem 1.35rem 1.15rem;
    border-top: 1px solid var(--ink-100);
    background: #fff;
}
.tercih-filters__actions .btn--primary {
    min-width: 7.5rem;
    font-weight: 700;
    letter-spacing: .01em;
}

/* ---------- Sonuç paneli ---------- */
.tercih-results__panel {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: var(--radius-lg);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04),
        0 8px 28px -6px rgba(15, 23, 42, .08);
    padding: 1rem 1.15rem 1.15rem;
    overflow: hidden;
}

/* ---------- Sonuç çubuğu ---------- */
.tercih-results__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .75rem;
    margin-bottom: .95rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--ink-100);
}
.tercih-results__count {
    margin: 0;
    font-size: .86rem;
    color: var(--ink-600);
    justify-self: start;
    line-height: 1.45;
}
.tercih-results__count strong { color: var(--brand-600); font-weight: 800; }
.tercih-results__list-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .8rem;
    border: 1px solid var(--ink-200);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-700);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
    justify-self: end;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.tercih-results__list-btn:hover {
    border-color: var(--brand-300);
    color: var(--brand-600);
    box-shadow: 0 4px 12px -4px rgba(29, 43, 76, .15);
}
.tercih-results__list-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: var(--brand-600);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
}

/* Görünüm toggle */
.tercih-view-toggle {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--ink-200);
    border-radius: 999px;
    background: var(--ink-50);
    justify-self: center;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
}
.tercih-view-toggle__btn {
    border: none;
    background: transparent;
    color: var(--ink-600);
    font-size: .78rem;
    font-weight: 600;
    padding: .4rem .8rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.tercih-view-toggle__btn.is-active {
    background: #fff;
    color: var(--brand-700);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .1);
}
.tercih-view-toggle__btn:not(.is-active):hover {
    color: var(--brand-700);
}

/* ---------- Tablo ---------- */
.tercih-table-wrap {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.tercih-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .84rem;
    min-width: 880px;
}
.tercih-table.is-detay { min-width: 1280px; }
.tercih-table:not(.is-detay) [data-col-detail] { display: none; }
.tercih-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--ink-100);
    color: var(--ink-700);
    font-weight: 700;
    font-size: .7rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-align: left;
    padding: .7rem .85rem;
    white-space: nowrap;
    border-bottom: 1px solid var(--ink-200);
    border-right: 1px solid var(--ink-100);
}
.tercih-table thead th:last-child { border-right: 0; }
.tercih-table__num { text-align: right; }
.tercih-table__add {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    padding: .55rem .25rem;
    text-align: center;
    vertical-align: middle;
}
.tercih-table thead th.tercih-table__add {
    padding-inline: .25rem;
    text-align: center;
}
.tercih-table.is-detay tbody td.tercih-table__add {
    vertical-align: middle;
}
.tercih-table__kod-col,
.tercih-table__kod {
    width: 1%;
    white-space: nowrap;
    padding-inline: .45rem .55rem;
    font-variant-numeric: tabular-nums;
    font-size: .8rem;
}
.tercih-table thead th.tercih-table__kod-col {
    padding-inline: .45rem .55rem;
}

/* İki satırlı dar sütun başlıkları */
.tercih-table__col-stack {
    width: 1%;
    max-width: 4.25rem;
    min-width: 3.4rem;
    padding-inline: .35rem;
    text-align: center;
    white-space: normal;
    vertical-align: middle;
}
.tercih-table tbody td.tercih-table__col-stack {
    text-align: center;
    font-size: .78rem;
    padding-inline: .35rem;
    white-space: nowrap;
}
.tercih-th-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .08rem;
    line-height: 1.15;
}
.tercih-th-stack span {
    display: block;
    font-size: .62rem;
    letter-spacing: .04em;
}
.tercih-table tbody td {
    padding: .65rem .85rem;
    border-bottom: 1px solid var(--ink-100);
    border-right: 1px solid transparent;
    vertical-align: middle;
    color: var(--ink-700);
    transition: background .12s ease, border-color .12s ease;
}
.tercih-table tbody td:last-child { border-right: 0; }
.tercih-table tbody tr:last-child td { border-bottom: 0; }
/* Detay görünümde çok satırlı içerik üstten hizalansın */
.tercih-table.is-detay tbody td { vertical-align: top; }
/* Zebra + hover */
.tercih-table tbody tr:nth-child(even) { background: #fafbfd; }
.tercih-table tbody tr:hover { background: #f0f4fa; }
.tercih-table tbody tr:hover td {
    border-right-color: rgba(60, 81, 128, .06);
}
.tercih-table tbody tr:hover td:first-child {
    box-shadow: inset 3px 0 0 var(--brand-400);
}
.tercih-table__num { text-align: right; font-variant-numeric: tabular-nums; }
.tercih-table__kod a {
    color: var(--brand-500);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}
.tercih-table__kod a:hover { text-decoration: underline; }
.tercih-table__uni { display: block; font-weight: 600; color: var(--ink-800); }
.tercih-table__fac { display: block; font-size: .78rem; color: var(--ink-500); margin-bottom: .1rem; }
.tercih-table__prog { display: block; font-weight: 600; color: var(--ink-800); }
.tercih-table__sure { display: block; font-size: .78rem; font-weight: 700; color: var(--accent-500); margin-top: .1rem; }
.tercih-table__verified {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-left: .25rem;
    border-radius: 50%;
    background: var(--brand-500);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    vertical-align: middle;
}

/* Metrik hücre (değer + info ikonu) */
.tercih-table__metric { white-space: nowrap; }
.tercih-metric {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
}
.tercih-metric__val { font-variant-numeric: tabular-nums; font-weight: 600; }
.tercih-info-btn {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1.5px solid var(--brand-300);
    border-radius: 50%;
    background: #fff;
    color: var(--brand-500);
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.tercih-info-btn:hover,
.tercih-info-btn.is-active {
    background: var(--brand-50);
    border-color: var(--brand-500);
    color: var(--brand-600);
}
.tercih-info-btn .icon { width: 12px; height: 12px; }

/* ---------- Popover (Kontenjan / Doluluk / Sıra / Puan) ---------- */
.tercih-popover {
    position: fixed;
    z-index: 1400;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .18), 0 0 0 1px rgba(15, 23, 42, .06);
    padding: .85rem;
}
.tercih-popover__close {
    position: absolute;
    top: -.45rem;
    right: -.45rem;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: var(--brand-600);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
}
.tercih-popover__body { font-size: .82rem; }

.tercih-pop-card {
    border-radius: 8px;
    padding: .65rem .75rem;
    margin-bottom: .5rem;
}
.tercih-pop-card--genel {
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.tercih-pop-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    color: var(--ink-600);
}
.tercih-pop-card__big {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-500);
}
.tercih-pop-card__hist {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .85rem;
    margin-top: .45rem;
    font-size: .78rem;
    color: var(--ink-500);
}
.tercih-pop-card__hist strong { color: var(--accent-500); font-weight: 700; }

.tercih-pop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .4rem;
}
.tercih-pop-mini {
    border-radius: 8px;
    padding: .5rem .6rem;
    text-align: center;
}
.tercih-pop-mini span { display: block; font-size: .72rem; color: var(--ink-500); margin-bottom: .15rem; }
.tercih-pop-mini strong { font-size: 1rem; font-weight: 800; }
.tercih-pop-mini.is-red  { background: #fef2f2; color: var(--accent-500); }
.tercih-pop-mini.is-teal { background: #ecfeff; color: #0e7490; }
.tercih-pop-mini.is-gray { background: var(--ink-100); color: var(--ink-600); }

.tercih-pop-dol {
    padding: .45rem 0;
    border-bottom: 1px solid var(--ink-100);
}
.tercih-pop-dol:last-child { border-bottom: 0; }
.tercih-pop-dol__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .78rem;
    color: var(--ink-600);
    margin-bottom: .15rem;
}
.tercih-pop-dol__head strong { font-size: .85rem; font-weight: 800; }
.tercih-pop-dol__head strong.is-high { color: var(--success); }
.tercih-pop-dol__head strong.is-mid  { color: var(--warning); }
.tercih-pop-dol__head strong.is-low  { color: var(--accent-400); }
.tercih-pop-dol__ratio { font-size: .72rem; color: var(--ink-400); margin-bottom: .25rem; }
.tercih-pop-dol__bar {
    height: 6px;
    border-radius: 999px;
    background: var(--ink-100);
    overflow: hidden;
}
.tercih-pop-dol__bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--ink-300);
}
.tercih-pop-dol__bar span.is-high { background: var(--success); }
.tercih-pop-dol__bar span.is-mid  { background: var(--warning); }
.tercih-pop-dol__bar span.is-low  { background: var(--accent-400); }

.tercih-pop-year {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .55rem .7rem;
    border-radius: 8px;
    margin-bottom: .35rem;
}
.tercih-pop-year:last-child { margin-bottom: 0; }
.tercih-pop-year__y { font-size: .78rem; color: var(--ink-500); }
.tercih-pop-year__v { font-size: .95rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tercih-pop-year.is-y0 { background: #fef2f2; }
.tercih-pop-year.is-y0 .tercih-pop-year__v { color: var(--accent-500); }
.tercih-pop-year.is-y1 { background: #ecfeff; }
.tercih-pop-year.is-y1 .tercih-pop-year__v { color: #0e7490; }
.tercih-pop-year.is-y2 { background: var(--ink-100); }
.tercih-pop-year.is-y2 .tercih-pop-year__v { color: var(--ink-700); }
.tercih-pop-year.is-y3 { background: #f0fdf4; }
.tercih-pop-year.is-y3 .tercih-pop-year__v { color: #15803d; }
.tercih-pop-empty { margin: 0; color: var(--ink-400); text-align: center; font-size: .85rem; }
.tercih-table__sub { display: block; font-size: .78rem; color: var(--ink-500); margin-top: .15rem; line-height: 1.35; }
.tercih-table__puan { font-weight: 700; color: var(--brand-600); }
.tercih-table__ucret { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tercih-table__staff strong { display: block; font-size: .95rem; color: var(--brand-700); }
.tercih-table__sart strong { display: block; color: var(--brand-600); margin-bottom: .2rem; }
.tercih-table__detail { font-size: .82rem; vertical-align: top; min-width: 5.5rem; }
.tercih-table__history { min-width: 11rem; padding: .45rem .5rem !important; }

.tercih-table__actions {
    display: flex;
    gap: .35rem;
    margin-top: .4rem;
}
.tercih-action-btn {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--brand-200);
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand-600);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}
.tercih-action-btn:hover {
    background: var(--brand-100);
    border-color: var(--brand-400);
}
.tercih-table__placeholder td,
.tercih-table__error td {
    padding: 2.5rem .85rem;
    text-align: center;
    color: var(--ink-500);
    font-size: .88rem;
    background: #fff !important;
    box-shadow: none !important;
}
.tercih-table__placeholder td:first-child,
.tercih-table__error td:first-child {
    box-shadow: none !important;
}
.tercih-table__error td { color: var(--accent-500); }

/* Listeye ekle butonu */
.tercih-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 auto;
    padding: 0;
    border-radius: 9px;
    border: 2px solid var(--brand-500);
    background: #fff;
    color: var(--brand-600);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
    box-shadow: 0 1px 3px rgba(29, 43, 76, .12);
}
.tercih-add-btn:hover {
    transform: translateY(-1px);
    border-color: var(--brand-600);
    background: var(--brand-50);
    color: var(--brand-700);
    box-shadow: 0 4px 12px -4px rgba(29, 43, 76, .25);
}
.tercih-add-btn.is-added {
    font-size: 1.05rem;
    background: var(--success);
    border-color: var(--success);
    color: #fff;
    box-shadow: 0 4px 12px -4px rgba(34, 197, 94, .45);
}

.tercih-table__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-top: .35rem;
}
.tercih-badge {
    display: inline-block;
    padding: .12rem .45rem;
    border-radius: 6px;
    background: var(--ink-100);
    color: var(--ink-600);
    font-size: .7rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Doluluk halkası (YÖK Atlas tarzı) */
.tercih-doluluk-ring {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: .68rem;
    font-weight: 800;
    color: var(--ink-700);
    background: conic-gradient(var(--ring-color, var(--success)) calc(var(--pct, 100) * 1%), var(--ink-100) 0);
    position: relative;
}
.tercih-doluluk-ring::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: #fff;
}
.tercih-doluluk-ring__pct {
    position: relative;
    z-index: 1;
    font-variant-numeric: tabular-nums;
}
.tercih-doluluk-ring.is-high { --ring-color: var(--success); }
.tercih-doluluk-ring.is-mid  { --ring-color: var(--warning); }
.tercih-doluluk-ring.is-low  { --ring-color: var(--accent-400); }

/* Mini geçmiş tablo */
.tercih-mini-hist {
    width: 100%;
    border-collapse: collapse;
    font-size: .68rem;
}
.tercih-mini-hist th,
.tercih-mini-hist td {
    padding: .15rem .25rem;
    text-align: right;
    border-bottom: 1px solid var(--ink-100);
    white-space: nowrap;
}
.tercih-mini-hist th:first-child,
.tercih-mini-hist td:first-child { text-align: left; }
.tercih-mini-hist th {
    color: var(--ink-500);
    font-weight: 600;
}

/* Eski doluluk rozeti (geriye dönük) */
.tercih-doluluk {
    display: inline-grid;
    place-items: center;
    min-width: 3rem;
    padding: .2rem .5rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    color: #fff;
    background: var(--ink-400);
}
.tercih-doluluk.is-high { background: var(--success); }
.tercih-doluluk.is-mid  { background: var(--warning); }
.tercih-doluluk.is-low  { background: var(--accent-400); }

/* ---------- Yükleniyor ---------- */
.tercih-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    padding: 1.4rem;
    color: var(--ink-500);
    font-size: .9rem;
}
.tercih-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid var(--ink-200);
    border-top-color: var(--brand-500);
    border-radius: 50%;
    animation: tercih-spin .7s linear infinite;
}
@keyframes tercih-spin { to { transform: rotate(360deg); } }

/* ---------- Sayfalama ---------- */
.tercih-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}
.tercih-pagination__info { font-size: .88rem; color: var(--ink-600); font-weight: 600; }
.tercih-pagination button[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Tercih listem (drawer) ---------- */
.tercih-noscroll { overflow: hidden; }
.tercih-drawer {
    position: fixed;
    inset: 0;
    z-index: 1200;
}
.tercih-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .5);
}
.tercih-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: tercih-slide .25s ease;
}
@keyframes tercih-slide { from { transform: translateX(100%); } to { transform: translateX(0); } }
.tercih-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--ink-200);
}
.tercih-drawer__title { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--brand-700); }
.tercih-drawer__close {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 8px;
    background: var(--ink-100);
    color: var(--ink-600);
    cursor: pointer;
}
.tercih-drawer__close:hover { background: var(--ink-200); }
.tercih-drawer__list {
    list-style: none;
    margin: 0;
    padding: .75rem;
    overflow-y: auto;
    flex: 1;
    counter-reset: tercih;
}
.tercih-drawer__item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .5rem .65rem 2.4rem;
    border-bottom: 1px solid var(--ink-100);
    position: relative;
    counter-increment: tercih;
}
.tercih-drawer__item::before {
    content: counter(tercih);
    position: absolute;
    left: .5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand-600);
    font-size: .72rem;
    font-weight: 700;
}
.tercih-drawer__item > div { flex: 1; min-width: 0; }
.tercih-drawer__item strong { display: block; font-size: .85rem; color: var(--ink-800); }
.tercih-drawer__item span { display: block; font-size: .76rem; color: var(--ink-500); margin-top: .1rem; }
.tercih-drawer__remove {
    flex: none;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: var(--accent-50);
    color: var(--accent-500);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}
.tercih-drawer__remove:hover { background: var(--accent-100); }
.tercih-drawer__empty {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--ink-500);
    font-size: .9rem;
}
.tercih-drawer__foot {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--ink-200);
}

/* ---------- Geçmiş yıl modal ---------- */
.tercih-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
}
.tercih-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
}
.tercih-modal__panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.tercih-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ink-200);
}
.tercih-modal__title { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--brand-700); }
.tercih-modal__close {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 8px;
    background: var(--ink-100);
    color: var(--ink-600);
    cursor: pointer;
}
.tercih-modal__close:hover { background: var(--ink-200); }
.tercih-modal__prog {
    margin: 0;
    padding: .75rem 1.25rem 0;
    font-size: .88rem;
    color: var(--ink-600);
    font-weight: 600;
}
.tercih-modal__body { padding: 1rem 1.25rem 1.25rem; }
.tercih-hist-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}
.tercih-hist-table th,
.tercih-hist-table td {
    padding: .55rem .65rem;
    border-bottom: 1px solid var(--ink-100);
    text-align: right;
}
.tercih-hist-table th:first-child,
.tercih-hist-table td:first-child { text-align: left; }
.tercih-hist-table thead th {
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: .78rem;
    font-weight: 700;
}
.tercih-modal__note {
    margin: 1rem 0 0;
    padding: .75rem;
    border-radius: var(--radius-sm);
    background: var(--accent-50);
    color: var(--ink-700);
    font-size: .82rem;
    line-height: 1.5;
}

.is-hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .tercih-filters__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tercih-hero__inner { align-items: flex-start; }
    .tercih-hero__lead { max-width: none; flex-basis: 100%; }
}
@media (max-width: 720px) {
    .tercih-filters__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tercih-filters__grid,
    .tercih-filters__actions,
    .tercih-filters__head { padding-inline: 1rem; }
    .tercih-results__panel { padding: .85rem; }
    .tercih-results__bar {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }
    .tercih-results__count { justify-self: start; }
    .tercih-view-toggle { justify-self: center; }
    .tercih-results__list-btn { justify-self: start; }
    .tercih-hero {
        padding-top: .5rem;
        padding-bottom: .7rem;
    }
    .tercih-hero__main { flex-direction: column; align-items: flex-start; gap: .45rem; }
    .tercih-hero__title { white-space: normal; }
}
@media (max-width: 480px) {
    .tercih-filters__grid { grid-template-columns: 1fr; }
    .tercih-filters__actions { flex-direction: column-reverse; }
    .tercih-filters__actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   REKLAM BANNER — Monster Notebook (kampanya görseli)
   Tam genişlik hero banner, responsive picture, gradyansız.
   ============================================================ */
.tercih-adband {
    padding: 1.1rem 0 0;
}
.page-tercih .tercih-adband .container {
    max-width: none;
    padding-inline: clamp(16px, 3vw, 48px);
}
.adbanner--hero {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    background: #0a0a0a;
    border: 1px solid var(--ink-200);
    box-shadow: 0 12px 32px rgba(13, 22, 38, .18);
    transition: transform .22s ease, box-shadow .22s ease;
}
.adbanner--hero:hover,
.adbanner--hero:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(13, 22, 38, .28);
    outline: none;
}
.adbanner--hero .adbanner__flag {
    position: absolute;
    top: .75rem;
    right: .85rem;
    z-index: 2;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
    background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: .22rem .55rem;
    backdrop-filter: blur(4px);
}
.adbanner__picture {
    display: block;
    line-height: 0;
}
.adbanner__hero-img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .adbanner--hero {
        border-radius: 14px;
    }
}
@media (max-width: 480px) {
    .tercih-adband { padding-top: .85rem; }
    .adbanner--hero .adbanner__flag {
        top: .55rem;
        right: .6rem;
        font-size: .52rem;
    }
}
