/* ==========================================================================
   CampusHub "Gün Işığı" kabuğu
   Sol menü + üst çubuk + alt bilgi ve tüm sayfaların ortak renk dili.
   Marka renkleri projenin kendi paletinden gelir: #004D9F (mavi) ve #FF6B35 (turuncu);
   gökyüzü mavisi, kehribar ve zümrüt yeşili vurgular canlılık için kullanılır.
   ========================================================================== */
:root {
    --ch-blue: #004d9f;
    --ch-blue-600: #1363df;
    --ch-blue-500: #2f7bf5;
    --ch-sky: #0ea5e9;
    --ch-sky-soft: #e0f2fe;
    --ch-orange: #ff6b35;
    --ch-orange-600: #f05a22;
    --ch-orange-soft: #fff1ea;
    --ch-amber: #f59e0b;
    --ch-amber-soft: #fef3c7;
    --ch-emerald: #10b981;
    --ch-emerald-soft: #d1fae5;
    --ch-rose: #f43f5e;
    --ch-violet: #7c3aed;
    --ch-navy: #142b45;
    --ch-ink: #142b45;
    --ch-ink-2: #3b4a5e;
    --ch-muted: #5a6a7e;
    --ch-line: #e3e8f0;
    --ch-line-2: #d3dae5;
    --ch-bg: #f4f7fc;
    --ch-card: #ffffff;
    --ch-blue-soft: #eaf2ff;
    --ch-grad-text: linear-gradient(92deg, #1363df 0%, #0ea5e9 52%, #ff6b35 100%);
    --ch-grad-blue: linear-gradient(135deg, #004d9f 0%, #1363df 55%, #0ea5e9 100%);
    --ch-grad-orange: linear-gradient(135deg, #ff6b35 0%, #f59e0b 100%);
    --ch-shadow-sm: 0 1px 2px rgba(20, 43, 69, .05), 0 4px 14px rgba(20, 43, 69, .05);
    --ch-shadow: 0 2px 6px rgba(20, 43, 69, .04), 0 14px 34px rgba(20, 43, 69, .08);
    --ch-shadow-blue: 0 14px 30px rgba(19, 99, 223, .22);
    --ch-r-sm: 12px;
    --ch-r: 18px;
    --ch-r-lg: 26px;
    --ch-side-w: 268px;
    --ch-top-h: 68px;
    --ch-font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---------- Zemin: gün ışığı ---------- */
body.ch-body {
    --campus-nav-height: var(--ch-top-h);
    padding-top: 0 !important;
    font-family: var(--ch-font);
    color: var(--ch-ink);
    background-color: var(--ch-bg);
    background-image:
        radial-gradient(640px 520px at -6% -8%, rgba(14, 165, 233, .16), transparent 70%),
        radial-gradient(600px 480px at 104% 2%, rgba(255, 107, 53, .12), transparent 70%),
        radial-gradient(760px 620px at 40% 110%, rgba(16, 185, 129, .08), transparent 70%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}
.ch-body ::selection { background: var(--ch-blue-600); color: #fff; }

/* Izgara: sol menü iki satırı kaplar; üst çubuk ve içerik sağ sütundadır. */
.ch-app { display: grid; grid-template-columns: var(--ch-side-w) minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100vh; }
.ch-main { grid-column: 2; grid-row: 2; min-width: 0; display: flex; flex-direction: column; }
.ch-main > main { flex: 1 0 auto; }
.ch-body .main-page-container { padding-top: 22px; }

/* ---------- Sol menü ---------- */
.ch-side {
    grid-column: 1; grid-row: 1 / span 2; align-self: start;
    width: var(--ch-side-w);
    position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px);
    border-right: 1px solid var(--ch-line);
    display: flex; flex-direction: column; z-index: 1040;
    scrollbar-width: thin; scrollbar-color: #d7deea transparent;
}
.ch-brand { display: flex; align-items: center; gap: 11px; padding: 20px 20px 6px; text-decoration: none; color: var(--ch-ink); }
.ch-brand:hover { color: var(--ch-ink); }
.ch-logo { position: relative; width: 40px; height: 40px; border-radius: 12px; background: var(--ch-grad-blue); display: grid; place-items: center; color: #fff; font-size: 1.05rem; box-shadow: 0 8px 18px rgba(0, 77, 159, .28); flex: 0 0 auto; }
.ch-logo::after { content: ""; position: absolute; right: -3px; top: -3px; width: 13px; height: 13px; border-radius: 4px; background: var(--ch-orange); border: 2px solid #fff; }
.ch-brand-name { font-size: 1.32rem; font-weight: 900; letter-spacing: -.035em; line-height: 1; }
.ch-brand-name b { color: var(--ch-blue-600); font-weight: 900; }
.ch-brand-sub { display: block; font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ch-muted); margin-top: 4px; }
.ch-school { margin: 12px 16px 4px; display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 12px; background: var(--ch-blue-soft); color: var(--ch-blue); font-size: .8rem; font-weight: 700; line-height: 1.25; }
.ch-school i { color: var(--ch-blue-600); }
.ch-school span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.ch-nav { padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.ch-nav-group { margin-top: 10px; }
.ch-nav-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-size: .66rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; color: #8a97a9; padding: 8px 10px 6px; border-radius: 8px; user-select: none; }
.ch-nav-group > summary::-webkit-details-marker { display: none; }
.ch-nav-group > summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .6rem; transition: transform .2s ease; }
.ch-nav-group:not([open]) > summary::after { transform: rotate(-90deg); }
.ch-nav-group > summary:hover { color: var(--ch-blue-600); }
.ch-nav-group > summary:focus-visible { outline: 2px solid var(--ch-blue-600); outline-offset: 2px; }
.ch-link { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: 11px; color: var(--ch-ink-2); text-decoration: none; font-size: .9rem; font-weight: 600; transition: background .15s ease, color .15s ease; }
.ch-link i { width: 20px; text-align: center; color: #8391a6; font-size: .95rem; transition: color .15s ease; }
.ch-link:hover { background: #f1f5fb; color: var(--ch-ink); }
.ch-link:hover i { color: var(--ch-blue-600); }
.ch-link.is-active { background: var(--ch-blue-soft); color: var(--ch-blue); font-weight: 800; }
.ch-link.is-active i { color: var(--ch-blue-600); }
.ch-link.is-active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--ch-blue-600); }
.ch-link .ch-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ch-orange); color: #fff; font-size: .7rem; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; }
.ch-link .ch-new { margin-left: auto; font-size: .62rem; font-weight: 900; letter-spacing: .06em; color: var(--ch-emerald); background: var(--ch-emerald-soft); padding: 2px 7px; border-radius: 999px; }

.ch-side-foot { margin-top: auto; padding: 12px 12px 16px; border-top: 1px solid var(--ch-line); background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%); }
.ch-join { margin: 6px 4px 12px; padding: 16px; border-radius: 18px; background: var(--ch-grad-blue); color: #fff; position: relative; overflow: hidden; }
.ch-join::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(255,107,53,.55), transparent 70%); }
.ch-join strong { display: block; font-size: 1.02rem; font-weight: 900; letter-spacing: -.02em; }
.ch-join p { font-size: .8rem; opacity: .85; margin: 4px 0 12px; position: relative; z-index: 1; }
.ch-join .ch-btn { position: relative; z-index: 1; }
.ch-me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; text-decoration: none; color: var(--ch-ink); border: 0; background: transparent; width: 100%; text-align: left; }
.ch-me:hover, .ch-me[aria-expanded="true"] { background: #f1f5fb; color: var(--ch-ink); }
.ch-me-avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--ch-grad-orange); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: .9rem; position: relative; flex: 0 0 auto; }
.ch-me-avatar::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--ch-emerald); border: 2px solid #fff; }
.ch-me-text { min-width: 0; flex: 1; line-height: 1.2; }
.ch-me-text strong { display: block; font-size: .88rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-me-text small { display: block; font-size: .74rem; color: var(--ch-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-me > .fa-chevron-up { font-size: .7rem; color: var(--ch-muted); }
.ch-foot-actions { display: flex; gap: 2px; margin-top: 4px; }
.ch-foot-actions > * { flex: 1; }
.ch-foot-actions .ch-link { font-size: .8rem; padding: 7px 9px; gap: 7px; }
button.ch-link { border: 0; background: transparent; width: 100%; text-align: left; }
.ch-pending { display: flex; align-items: center; gap: 8px; margin: 0 4px 10px; padding: 9px 11px; border-radius: 12px; background: var(--ch-amber-soft); color: #92400e; font-size: .8rem; font-weight: 750; }

/* ---------- Üst çubuk ---------- */
.ch-top {
    grid-column: 2; grid-row: 1;
    position: sticky; top: 0; z-index: 1030; height: var(--ch-top-h);
    display: flex; align-items: center; gap: 14px; padding: 0 22px;
    background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--ch-line);
}
.ch-burger { display: inline-flex; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--ch-line); background: #fff; color: var(--ch-ink); align-items: center; justify-content: center; }
.ch-crumb { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--ch-muted); white-space: nowrap; min-width: 0; }
.ch-crumb a { color: var(--ch-muted); text-decoration: none; }
.ch-crumb a:hover { color: var(--ch-blue-600); }
.ch-crumb strong { color: var(--ch-ink); font-weight: 750; overflow: hidden; text-overflow: ellipsis; }
.ch-crumb .sep { color: #b6c0ce; }
.ch-search { position: relative; flex: 1 1 auto; max-width: 480px; margin: 0 auto; }
.ch-search > i.fa-magnifying-glass { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #8391a6; font-size: .9rem; pointer-events: none; }
.ch-search input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--ch-line); background: #f3f6fb; padding: 0 64px 0 40px; font-size: .88rem; color: var(--ch-ink); outline: none; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.ch-search input::placeholder { color: #8a97a9; }
.ch-search input:focus { background: #fff; border-color: var(--ch-blue-500); box-shadow: 0 0 0 4px rgba(47, 123, 245, .14); }
.ch-kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: .7rem; font-weight: 800; color: var(--ch-muted); background: #fff; border: 1px solid var(--ch-line); border-radius: 7px; padding: 2px 7px; pointer-events: none; }
.ch-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--ch-line); border-radius: 16px; box-shadow: 0 22px 50px rgba(20, 43, 69, .16); padding: 6px; z-index: 1060; max-height: 360px; overflow-y: auto; }
.ch-suggest a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 11px; text-decoration: none; color: var(--ch-ink); font-size: .88rem; font-weight: 650; }
.ch-suggest a i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--ch-blue-soft); color: var(--ch-blue-600); font-size: .82rem; }
.ch-suggest a.is-active, .ch-suggest a:hover { background: #f1f5fb; }
.ch-suggest small { margin-left: auto; color: var(--ch-muted); font-weight: 600; font-size: .74rem; }
.ch-suggest .ch-suggest-head { font-size: .66rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; color: #8a97a9; padding: 8px 11px 4px; }

.ch-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ch-icon-btn { position: relative; width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--ch-line); background: #fff; color: var(--ch-ink-2); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: border-color .15s ease, color .15s ease, transform .15s ease; }
.ch-icon-btn:hover, .ch-icon-btn[aria-expanded="true"] { border-color: #bcd0ef; color: var(--ch-blue-600); }
.ch-icon-btn .notification-badge, .ch-icon-btn .ch-dot-badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--ch-orange); color: #fff; font-size: .66rem; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.ch-icon-btn.dropdown-toggle::after { display: none; }
.ch-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 42px; padding: 0 16px; border-radius: 13px; font-weight: 800; font-size: .88rem; border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease; }
.ch-btn:hover { transform: translateY(-1px); }
.ch-btn:active { transform: translateY(0); }
.ch-btn--primary { background: var(--ch-blue-600); color: #fff; box-shadow: 0 8px 18px rgba(19, 99, 223, .26); }
.ch-btn--primary:hover { background: var(--ch-blue); color: #fff; }
.ch-btn--orange { background: var(--ch-orange); color: #fff; box-shadow: 0 6px 14px rgba(255, 107, 53, .22); }
.ch-btn--orange:hover { background: #f25a22; color: #fff; box-shadow: 0 8px 18px rgba(255, 107, 53, .28); }
.ch-btn--ghost { background: #fff; color: var(--ch-ink); border-color: var(--ch-line-2); }
.ch-btn--ghost:hover { border-color: var(--ch-blue-500); color: var(--ch-blue-600); }
.ch-btn--light { background: #fff; color: var(--ch-blue); }
.ch-btn--light:hover { background: #f1f6ff; color: var(--ch-blue); }
.ch-btn--glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }
.ch-btn--glass:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.ch-btn--sm { height: 34px; padding: 0 12px; font-size: .8rem; border-radius: 10px; }
.ch-btn--block { width: 100%; }
.ch-btn.dropdown-toggle::after { display: none; }

.ch-menu { border: 1px solid var(--ch-line) !important; border-radius: 16px !important; box-shadow: 0 22px 50px rgba(20, 43, 69, .16) !important; padding: 6px !important; min-width: 240px; }
.ch-menu .dropdown-item { display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: 9px 11px; font-size: .88rem; font-weight: 600; color: var(--ch-ink); }
.ch-menu .dropdown-item i { width: 18px; text-align: center; color: #8391a6; }
.ch-menu .dropdown-item:hover, .ch-menu .dropdown-item:focus { background: #f1f5fb; color: var(--ch-blue); }
.ch-menu .dropdown-item:hover i { color: var(--ch-blue-600); }
.ch-menu .dropdown-item.is-danger { color: #be123c; }
.ch-menu .dropdown-item.is-danger i { color: #e11d48; }
.ch-menu .dropdown-header { font-size: .66rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; color: #8a97a9; }
.ch-create-item { display: flex; gap: 11px; align-items: flex-start; }
.ch-create-item i.ch-ci { width: 34px !important; height: 34px; border-radius: 10px; display: grid !important; place-items: center; color: #fff !important; flex: 0 0 auto; }
.ch-create-item span { display: flex; flex-direction: column; line-height: 1.25; }
.ch-create-item small { color: var(--ch-muted); font-weight: 500; font-size: .75rem; }

/* ---------- Alt bilgi ---------- */
.ch-foot { margin-top: 48px; padding: 34px 26px 26px; border-top: 1px solid var(--ch-line); background: rgba(255, 255, 255, .78); backdrop-filter: blur(8px); }
.ch-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 26px; max-width: 1240px; margin: 0 auto; }
.ch-foot-brand p { color: var(--ch-muted); font-size: .86rem; margin: 12px 0 14px; max-width: 320px; }
.ch-foot h6, .ch-foot .ch-foot-title { font-size: .68rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; color: #8a97a9; margin-bottom: 10px; }
.ch-foot a.ch-foot-link { display: block; color: var(--ch-ink-2); text-decoration: none; font-size: .86rem; font-weight: 550; padding: 4px 0; }
.ch-foot a.ch-foot-link:hover { color: var(--ch-blue-600); }
.ch-foot-bottom { max-width: 1240px; margin: 24px auto 0; padding-top: 18px; border-top: 1px solid var(--ch-line); display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--ch-muted); }
.ch-foot-bottom a { color: var(--ch-muted); text-decoration: none; }
.ch-foot-bottom a:hover { color: var(--ch-blue-600); }
.ch-foot-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--ch-blue-soft); color: var(--ch-blue); font-weight: 750; font-size: .74rem; }
.ch-socials { display: flex; gap: 8px; }
.ch-socials a { width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--ch-line); display: grid; place-items: center; color: var(--ch-ink-2); text-decoration: none; background: #fff; }
.ch-socials a:hover { color: var(--ch-blue-600); border-color: #bcd0ef; }
.ch-body .cookie-consent { border-radius: 18px; }

/* ---------- Menüyü gizle (masaüstü, ☰ ile) ---------- */
.ch-burger:hover { border-color: #bcd0ef; color: var(--ch-blue-600); }
@media (min-width: 1200px) {
    html.ch-side-hidden .ch-app { grid-template-columns: minmax(0, 1fr); }
    html.ch-side-hidden .ch-side { display: none; }
    html.ch-side-hidden .ch-top, html.ch-side-hidden .ch-main { grid-column: 1; }
}

/* ---------- Mobil: menü çekmecesi ---------- */
.ch-scrim { display: none; }
@media (max-width: 1199.98px) {
    .ch-app { grid-template-columns: minmax(0, 1fr); }
    .ch-top, .ch-main { grid-column: 1; }
    .ch-side { position: fixed; left: 0; top: 0; bottom: 0; height: 100%; transform: translateX(-104%); transition: transform .25s ease; box-shadow: 0 0 60px rgba(20, 43, 69, .25); background: #fff; }
    .ch-body.ch-nav-open .ch-side { transform: none; }
    .ch-scrim { display: block; position: fixed; inset: 0; background: rgba(20, 43, 69, .38); backdrop-filter: blur(2px); z-index: 1035; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
    .ch-body.ch-nav-open .ch-scrim { opacity: 1; pointer-events: auto; }
    .ch-burger { display: inline-flex; }
    .ch-top { padding: 0 14px; gap: 10px; }
    .ch-foot-grid { grid-template-columns: 1fr 1fr; }
    .ch-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .ch-crumb { display: none; }
    .ch-search { max-width: none; }
    .ch-kbd { display: none; }
    .ch-search input { padding-right: 16px; }
    .ch-btn-label { display: none; }
    .ch-top .ch-btn { width: 42px; padding: 0; }
    .ch-actions { gap: 6px; }
    .ch-hide-sm { display: none !important; }
    .ch-foot { padding: 26px 16px 90px; }
}
@media (max-width: 420px) {
    .ch-top { gap: 6px; padding: 0 10px; }
    .ch-icon-btn, .ch-burger { width: 38px; height: 38px; }
    .ch-top .ch-btn { width: 38px; height: 38px; }
    .ch-search input { height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
    .ch-side, .ch-scrim, .ch-btn, .ch-link { transition: none; }
    .ch-btn:hover { transform: none; }
}

/* ---------- Mesaj kutusu (sağ alt) yeni palete ---------- */
.ch-body .campus-msg-launcher { background: var(--ch-grad-blue); box-shadow: 0 16px 36px rgba(0, 77, 159, .32); }
.ch-body .campus-msg-launcher:hover { box-shadow: 0 20px 44px rgba(0, 77, 159, .4); }
.ch-body .campus-msg-badge { background: var(--ch-orange); }
.ch-body .campus-msg-header, .ch-body .campus-chat-header { background: var(--ch-grad-blue); }
.ch-body .campus-mini-bubble-row.mine .campus-mini-bubble { background: var(--ch-grad-blue); }
.ch-body .campus-mini-send { background: var(--ch-blue-600); }
.ch-body .campus-msg-row:hover { background: var(--ch-blue-soft); }
/* Üst çubukta mesaj düğmesi olan ekranlarda yüzen düğme gizlenir; kutu yine sağ altta açılır. */
@media (min-width: 768px) {
    .ch-body .campus-msg-launcher { display: none; }
    .ch-body .campus-msg-panel, .ch-body .campus-chat-window { bottom: 0; }
    body[data-authenticated="true"].ch-body .floating-add-btn, body[data-authenticated="true"].ch-body .floating-create-btn { bottom: 24px !important; }
}

/* ---------- Sayfa başlıkları: tek mavi bant ----------
   Özgün tasarımı koyu/degrade zeminli ve beyaz yazılı olan sayfa başlıkları (tarayıcıda tek tek ölçüldü)
   aynı mavi degradeye bağlanır. Açık zeminli başlıklar (çalışma odaları, FocusFlow, bildirimler, kulüp detayı)
   bilerek listede yoktur. */
.ch-body .page-header,
.ch-body .hero-section,
.ch-body .acad-hero,
.ch-body .acad-article-hero,
.ch-body .teacher-hero .hero-top,
.ch-body .ring-page-header,
.ch-body .meal-header,
.ch-body .lf-hero,
.ch-body .rm-hero,
.ch-body .community-hero,
.ch-body .legal-hero,
.ch-body .page-header-dersnotu,
.ch-body .cx-masthead {
    background: radial-gradient(420px 300px at 92% 12%, rgba(255, 107, 53, .42), transparent 70%),
                radial-gradient(520px 360px at 8% 110%, rgba(14, 165, 233, .42), transparent 70%),
                linear-gradient(135deg, #003c80 0%, #0a5bd0 58%, #1b86e8 100%) !important;
    color: #fff;
    box-shadow: 0 22px 48px rgba(0, 77, 159, .2);
}
/* Ana sütunu boydan boya kaplayan başlıklar ana sayfadaki gibi kenarlardan boşluklu, yuvarlak bantlara dönüşür. */
.ch-body .main-page-container > :is(.page-header, .hero-section, .ring-page-header, .meal-header),
.ch-body .project-page-wrap > .hero-section,
.ch-body .roommate-page > .rm-hero,
.ch-body .lf-page > .lf-hero,
.ch-body .acad > .acad-hero,
.ch-body .cx-page > .cx-masthead {
    margin-left: 22px !important;
    margin-right: 22px !important;
    margin-top: 0 !important;
    border-radius: 28px !important;
    overflow: hidden;
    clip-path: none !important;
}
.ch-body .community-hero, .ch-body .legal-hero, .ch-body .acad-article-hero { border-radius: 28px !important; }

/* Eski sabit menü için bırakılmış üst boşluklar */
.ch-body .study-groups-page { padding-top: 0; background: transparent; }
.ch-body .notes-shell { margin-top: 8px; }
.ch-body .teacher-dashboard { background: transparent; min-height: 0; }
.ch-body .teacher-sidebar { top: calc(var(--ch-top-h) + 16px); }

/* Akış: sayfa sol menüsü kabuktaki menüyle aynı bağlantıları taşıdığı için geniş ekranda gizlenir. */
@media (min-width: 1101px) {
    .ch-body .social-grid { grid-template-columns: minmax(0, 1fr) 320px; }
    .ch-body .social-grid > .left-rail { display: none; }
    .ch-body .social-grid .sticky-col { top: calc(var(--ch-top-h) + 16px); }
}
@media (max-width: 767.98px) {
    .ch-body .main-page-container > :is(.page-header, .hero-section, .ring-page-header, .meal-header),
    .ch-body .project-page-wrap > .hero-section,
    .ch-body .roommate-page > .rm-hero,
    .ch-body .lf-page > .lf-hero,
    .ch-body .acad > .acad-hero,
    .ch-body .cx-page > .cx-masthead { margin-left: 12px !important; margin-right: 12px !important; border-radius: 22px !important; }
}

/* Açık zeminli sayfalardaki başlıklar: site.css'teki koyu zemin için tasarlanmış soluk degrade yerine okunur degrade. */
.ch-body .study-hero .hero-title,
.ch-body .social-shell .hero-title {
    background: var(--ch-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -.035em;
}
.ch-body .study-groups-page > .container.py-5 { padding-top: 6px !important; }

/* Profil: geniş ekranda ad ve bölüm bilgisi kapak görselinin üzerinde kalır; beyaz yazı okunur. */
@media (min-width: 993px) {
    .ch-body .profile-name { color: #fff; text-shadow: 0 2px 14px rgba(20, 43, 69, .35); }
    .ch-body .profile-sub { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 8px rgba(20, 43, 69, .3); }
}
/* Menü çekmecesi açıkken sağ alttaki mesaj kutusu karartmanın üstünde kalmasın. */
.ch-nav-open .campus-msg-dock { display: none; }

/* ==========================================================================
   Editoryal dokunuşlar: kalın koyu çerçeve, sert ofset gölge, mono etiketler, citron vurgu.
   Yalnızca seçilmiş öğelerde kullanılır (öne çıkan kartlar, biletler, "Oluştur", sayfa başlıkları).
   ========================================================================== */
:root {
    --ch-hard-ink: #0d0f12;
    --ch-citron: #ccff00;
    --ch-chalk: #faf9f6;
    --ch-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
    --ch-hard: 5px 5px 0 0 var(--ch-hard-ink);
    --ch-hard-sm: 3px 3px 0 0 var(--ch-hard-ink);
    --ch-hard-blue: 5px 5px 0 0 #004d9f;
}
.ch-mono { font-family: var(--ch-mono); letter-spacing: .02em; }
.ch-hard-card { border: 2px solid var(--ch-hard-ink) !important; box-shadow: var(--ch-hard) !important; }
.ch-hard-card--blue { box-shadow: var(--ch-hard-blue) !important; }

/* Sert düğme: basınca gölgesine oturur */
.ch-btn--hard {
    border: 2px solid var(--ch-hard-ink) !important;
    box-shadow: var(--ch-hard-sm) !important;
    border-radius: 10px;
    font-family: var(--ch-mono);
    text-transform: uppercase;
    font-size: .76rem;
    letter-spacing: .05em;
    transition: transform .08s ease, box-shadow .08s ease;
}
.ch-btn--hard:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 0 var(--ch-hard-ink) !important; }
.ch-btn--hard:active, .ch-btn--hard[aria-expanded="true"] { transform: translate(2px, 2px); box-shadow: 1px 1px 0 0 var(--ch-hard-ink) !important; }
.ch-btn--orange.ch-btn--hard { background: var(--ch-orange); }
.ch-btn--ink { background: var(--ch-hard-ink); color: #fff; }
.ch-btn--ink:hover { background: #22262d; color: #fff; }
.ch-btn--citron { background: var(--ch-citron); color: var(--ch-hard-ink); }
.ch-btn--citron:hover { background: #d8ff33; color: var(--ch-hard-ink); }

/* Sayfa başlığı bantları: afiş gibi kalın çerçeve ve sert gölge */
.ch-body .main-page-container > :is(.page-header, .hero-section, .ring-page-header, .meal-header),
.ch-body .project-page-wrap > .hero-section,
.ch-body .roommate-page > .rm-hero,
.ch-body .lf-page > .lf-hero,
.ch-body .acad > .acad-hero,
.ch-body .cx-page > .cx-masthead,
.ch-body .community-hero,
.ch-body .legal-hero,
.ch-body .acad-article-hero {
    border: 2px solid var(--ch-hard-ink) !important;
    box-shadow: 6px 6px 0 0 var(--ch-hard-ink) !important;
    border-radius: 20px !important;
    margin-bottom: 30px !important;
}
.ch-body .cx-kicker { font-family: var(--ch-mono); text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; background: var(--ch-citron); color: var(--ch-hard-ink); border: 1.5px solid var(--ch-hard-ink); border-radius: 6px; }
.ch-body .cx-kicker::before { color: var(--ch-hard-ink); }
@media (max-width: 767.98px) {
    .ch-body .main-page-container > :is(.page-header, .hero-section, .ring-page-header, .meal-header),
    .ch-body .project-page-wrap > .hero-section,
    .ch-body .roommate-page > .rm-hero,
    .ch-body .lf-page > .lf-hero,
    .ch-body .acad > .acad-hero,
    .ch-body .cx-page > .cx-masthead { box-shadow: 4px 4px 0 0 var(--ch-hard-ink) !important; border-radius: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .ch-btn--hard, .ch-btn--hard:hover, .ch-btn--hard:active { transition: none; transform: none; }
}

/* ==========================================================================
   Sayfa başlıkları tek ölçüde: aynı iç boşluk, aynı başlık boyu, çerçeveden içeride içerik.
   Sayfaların eski dev başlıkları (display-4, 5rem dolgu) ve süs katmanları burada dengelenir.
   ========================================================================== */
.ch-body :is(.page-header, .hero-section, .acad-hero, .acad-article-hero, .ring-page-header, .meal-header, .lf-hero, .rm-hero, .community-hero, .legal-hero, .page-header-dersnotu, .cx-masthead) {
    padding: 30px 34px !important;
    min-height: 0 !important;
    height: auto !important;
    text-align: left;
}
.ch-body :is(.page-header, .hero-section, .acad-hero, .acad-article-hero, .ring-page-header, .meal-header, .lf-hero, .rm-hero, .community-hero, .legal-hero, .page-header-dersnotu, .cx-masthead)::before,
.ch-body :is(.page-header, .hero-section, .acad-hero, .ring-page-header, .meal-header, .lf-hero, .rm-hero, .community-hero, .legal-hero, .page-header-dersnotu, .cx-masthead)::after { display: none !important; }
.ch-body :is(.page-header, .hero-section, .acad-hero, .acad-article-hero, .ring-page-header, .meal-header, .lf-hero, .rm-hero, .community-hero, .legal-hero, .page-header-dersnotu, .cx-masthead) > :is(.container, .container-fluid, .cx-shell) {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}
.ch-body :is(.page-header, .hero-section, .acad-hero, .acad-article-hero, .ring-page-header, .meal-header, .lf-hero, .rm-hero, .community-hero, .legal-hero, .page-header-dersnotu, .cx-masthead) :is(h1, .h1) {
    font-size: clamp(1.6rem, 2.4vw, 2.15rem) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -.025em;
    margin: 0 0 8px !important;
    color: #fff;
}
.ch-body :is(.page-header, .hero-section, .acad-hero, .acad-article-hero, .ring-page-header, .meal-header, .lf-hero, .rm-hero, .community-hero, .legal-hero, .page-header-dersnotu, .cx-masthead) :is(h1, .h1) > i { font-size: .8em; margin-right: .45em !important; opacity: .9; }
.ch-body :is(.page-header, .hero-section, .acad-hero, .acad-article-hero, .ring-page-header, .meal-header, .lf-hero, .rm-hero, .community-hero, .legal-hero, .page-header-dersnotu, .cx-masthead) :is(.lead, .hero-subtitle, .cx-lead, h1 + p) {
    font-size: 1rem !important;
    line-height: 1.55 !important;
    max-width: 720px;
    margin-bottom: 0;
    opacity: .92;
}
/* Başlığın altındaki öğe eski tasarımda başlığın üstüne kaydırılmıştı; artık normal akışta durur. */
.ch-body :is(.page-header, .hero-section, .acad-hero, .ring-page-header, .meal-header, .lf-hero, .rm-hero, .community-hero, .legal-hero, .page-header-dersnotu, .cx-masthead) + * { margin-top: 0 !important; }

/* Standart başlık düzeni: solda metin, sağda küçük istatistikler (yeni sayfalarda kullanılır). */
.ch-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ch-hero__text { flex: 1 1 420px; min-width: 0; }
.ch-hero__kicker { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 3px 9px; border-radius: 6px; background: var(--ch-citron); color: var(--ch-hard-ink); border: 1.5px solid var(--ch-hard-ink); font-family: var(--ch-mono); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ch-hero__stats { display: grid; grid-template-columns: repeat(4, minmax(92px, 1fr)); gap: 10px; }
.ch-hero__stats > div { padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .35); }
.ch-hero__stats strong { display: block; font-size: 1.45rem; font-weight: 800; line-height: 1.1; color: #fff; }
.ch-hero__stats span { display: block; margin-top: 2px; font-family: var(--ch-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
@media (max-width: 767.98px) {
    .ch-body :is(.page-header, .hero-section, .acad-hero, .acad-article-hero, .ring-page-header, .meal-header, .lf-hero, .rm-hero, .community-hero, .legal-hero, .page-header-dersnotu, .cx-masthead) { padding: 22px 20px !important; }
    .ch-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
}

/* ---------- Başlık içi öğeler tek dilde ---------- */
/* Başlık yazısı her sayfada aynı yazı tipi ve düz beyaz (degrade/serif başlıklar dahil). */
.ch-body :is(.page-header, .hero-section, .acad-hero, .acad-article-hero, .ring-page-header, .meal-header, .lf-hero, .rm-hero, .community-hero, .legal-hero, .page-header-dersnotu, .cx-masthead) :is(h1, .h1, .hero-title) {
    font-family: var(--ch-font) !important;
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
}
/* Ortalanmış eski başlıklar sola hizalanır. */
.ch-body :is(.page-header, .hero-section, .ring-page-header, .meal-header, .lf-hero, .rm-hero, .community-hero, .legal-hero, .acad-hero) :is(.text-center, .row.text-center) { text-align: left !important; }
.ch-body :is(.page-header, .hero-section) .mx-auto { margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; max-width: none !important; flex: 0 0 100% !important; }
.ch-body .hero-section .school-info { display: inline-flex; padding: 6px 12px; margin-top: 14px; border-radius: 8px; }
.ch-body .hero-section .school-info > div { justify-content: flex-start !important; }
.ch-body .hero-section .school-info .text-muted { color: rgba(255, 255, 255, .8) !important; }

/* Üst etiketler: hepsi aynı küçük citron etiket. */
.ch-body :is(.hero-pill, .meal-eyebrow, .ring-eyebrow, .acad-kicker, .legal-kicker),
.ch-body .community-hero .badge,
.ch-body :is(.rm-hero, .lf-hero) .text-uppercase.small {
    display: inline-flex !important; align-items: center; gap: 6px;
    width: auto !important; margin: 0 0 12px !important; padding: 3px 9px !important;
    border-radius: 6px !important; border: 1.5px solid var(--ch-hard-ink) !important;
    background: var(--ch-citron) !important; color: var(--ch-hard-ink) !important;
    font-family: var(--ch-mono) !important; font-size: .68rem !important; font-weight: 800 !important;
    letter-spacing: .08em !important; text-transform: uppercase !important; opacity: 1 !important;
    box-shadow: none !important; backdrop-filter: none !important;
}
.ch-body :is(.hero-pill, .meal-eyebrow, .ring-eyebrow, .legal-kicker) i,
.ch-body .community-hero .badge i { color: var(--ch-hard-ink) !important; font-size: .8em; }

/* Başlık içi istatistik kutuları: küçük, yarı saydam, tek sıra. */
.ch-body .page-header .stats-row { background: transparent !important; box-shadow: none !important; padding: 0 !important; border: 0 !important; }
.ch-body .page-header .stats-row .row { gap: 10px; flex-wrap: nowrap; color: #fff !important; }
.ch-body .page-header .stats-row .stat-item,
.ch-body .hero-section .stats-grid .stat-card,
.ch-body .lf-hero .lf-stat,
.ch-body .ring-page-header .ring-summary-card,
.ch-body .community-hero .bg-white.bg-opacity-10,
.ch-body .rm-hero .rounded-4 {
    flex: 1 1 0 !important; min-width: 0; text-align: left !important;
    padding: 10px 14px !important; border-radius: 12px !important;
    background: rgba(255, 255, 255, .12) !important; border: 1.5px solid rgba(255, 255, 255, .35) !important;
    color: #fff !important; box-shadow: none !important; backdrop-filter: none !important; min-height: 0 !important;
}
.ch-body :is(.page-header .stat-number, .hero-section .stat-value, .lf-stat .fs-3, .lf-stat strong, .ring-summary-card .fs-3) {
    font-size: 1.45rem !important; font-weight: 800 !important; line-height: 1.1 !important; color: #fff !important;
    background: none !important; -webkit-text-fill-color: #fff !important;
}
.ch-body :is(.page-header .stat-item small, .hero-section .stat-label, .ring-summary-card .text-uppercase) {
    display: block; margin-top: 2px; font-family: var(--ch-mono); font-size: .66rem !important; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .85) !important; opacity: 1 !important;
}
.ch-body .hero-section .stats-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 10px !important; margin-top: 20px !important; max-width: 760px; }
.ch-body .hero-section .stats-grid .stat-desc { display: none !important; }
.ch-body .ring-page-header .ring-summary { gap: 10px !important; margin-top: 18px !important; }
.ch-body .ring-page-header .ring-summary-card .fw-bold:not(.fs-3) { font-size: .9rem; }

/* Başlığın altına kayan arama kutusu (Akademik Yayınlar) normal akışta durur. */
.ch-body .acad-search { margin-top: 0 !important; }
.ch-body .acad-hero .acad-stats { margin-top: 18px !important; }

/* Kapsayıcı içindeki başlıklar (Topluluklar, yasal sayfalar): fazladan üst boşluk ve taşma olmasın. */
.ch-body .container.py-5:has(> .community-hero) { padding-top: 0 !important; }
.ch-body :is(.community-hero, .legal-hero) { margin-left: 0 !important; margin-right: 6px !important; }
.ch-body .legal-shell { padding-top: 0 !important; }

@media (max-width: 767.98px) {
    .ch-body .hero-section .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .ch-body .page-header .stats-row .row { flex-wrap: wrap; }
}
/* Kulüp kartı: logo yüklenemezse baş harfler logo dairesini doldurur. */
.ch-body .club-logo .cx-avatar { width: 100%; height: 100%; font-size: 1.1rem; background: #fff; color: var(--ch-blue); }
.ch-body .hero-section .hero-subtitle { margin: 0 !important; text-align: left !important; }
.ch-body .acad-hero .acad-stats strong { font-family: var(--ch-font) !important; font-weight: 800; }

/* Kulüp kartları: sert çerçeve, tek renk başlık, sakin hover. */
.ch-body .club-card { border: 2px solid var(--ch-hard-ink); border-radius: 16px; box-shadow: var(--ch-hard); }
.ch-body .club-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 0 var(--ch-hard-ink); }
.ch-body .club-header { background: var(--ch-hero) !important; border-bottom: 2px solid var(--ch-hard-ink); padding: 1.5rem !important; }
.ch-body .club-header::before { display: none !important; }
.ch-body .club-logo { border: 2px solid var(--ch-hard-ink); background: #fff !important; }

/* ==========================================================================
   Menü: solda durur ama varsayılan olarak kapalı gelir. ☰ ile açılınca geniş ekranda solda sabitlenir
   (tercih hatırlanır: html.ch-side-open), dar ekranda çekmece olarak açılır.
   ========================================================================== */
@media (min-width: 1200px) {
    html:not(.ch-side-open) .ch-app { grid-template-columns: minmax(0, 1fr) !important; }
    html:not(.ch-side-open) .ch-side { display: none !important; }
    html:not(.ch-side-open) .ch-top, html:not(.ch-side-open) .ch-main { grid-column: 1 !important; }
}
.ch-side { border-right: 2px solid var(--ch-hard-ink) !important; }
.ch-side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 12px 18px; border-bottom: 2px solid var(--ch-hard-ink); }
.ch-burger { display: inline-flex !important; border: 2px solid var(--ch-hard-ink) !important; border-radius: 10px !important; box-shadow: 2px 2px 0 0 var(--ch-hard-ink); background: #fff; }
.ch-burger:hover, .ch-burger[aria-expanded="true"] { background: var(--ch-citron); color: var(--ch-hard-ink); }
.ch-top { border-bottom: 2px solid var(--ch-hard-ink) !important; background: #fff !important; backdrop-filter: none !important; }

/* Logo: menü kapalıyken üst çubukta, açıkken menünün başında görünür. */
.ch-logo-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ch-hard-ink); flex: 0 0 auto; }
.ch-logo-link:hover { color: var(--ch-hard-ink); }
.ch-logo-mark { display: block; flex: 0 0 auto; transition: transform .12s ease; }
.ch-logo-link:hover .ch-logo-mark { transform: rotate(-6deg); }
.ch-wordmark { font-size: 1.22rem; font-weight: 900; letter-spacing: -.035em; line-height: 1; color: var(--ch-hard-ink); display: inline-flex; align-items: center; }
.ch-wordmark b { margin-left: 3px; padding: 3px 6px 4px; border-radius: 6px; background: var(--ch-blue); color: #fff; font-weight: 900; border: 2px solid var(--ch-hard-ink); box-shadow: 2px 2px 0 0 var(--ch-hard-ink); line-height: 1; }
@media (min-width: 1200px) {
    html.ch-side-open .ch-top > .ch-logo-link { display: none; }
    .ch-side-head [data-ch-close] { display: none; }
}

.ch-top .ch-search input { border: 2px solid var(--ch-hard-ink) !important; background: #fff !important; border-radius: 10px !important; }
.ch-top .ch-search input:focus { box-shadow: 3px 3px 0 0 var(--ch-hard-ink) !important; }
.ch-top .ch-icon-btn { border: 2px solid var(--ch-hard-ink); border-radius: 10px; }
.ch-top .ch-icon-btn:hover, .ch-top .ch-icon-btn[aria-expanded="true"] { background: var(--ch-citron); color: var(--ch-hard-ink); border-color: var(--ch-hard-ink); }
.ch-kbd { display: none !important; }
@media (max-width: 767.98px) {
    .ch-top .ch-wordmark { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ch-logo-mark { transition: none; } }

/* ==========================================================================
   Pencereler (modal) — Gün Işığı: beyaz başlık, marka şeridi, koyu çerçeve + sert gölge.
   site.css'teki eski turkuaz başlığın yerini alır; yalnızca ana şablondaki sayfalarda (.ch-body).
   Başlıkta bg-success / bg-danger kullanan pencerelerin anlamı şerit ve ikon rengiyle korunur.
   ========================================================================== */
.ch-body .modal-backdrop.show { opacity: 1; background: rgba(11, 31, 58, .55); backdrop-filter: blur(3px); }
.ch-body .modal-content { border: 2px solid var(--ch-hard-ink); border-radius: 20px; background: #fff; box-shadow: 8px 8px 0 0 var(--ch-hard-ink); overflow: hidden; }
.ch-body .modal-header { position: relative; padding: 20px 20px 14px; background: #fff !important; color: var(--ch-hard-ink) !important; border-bottom: 1.5px solid var(--ch-line); border-radius: 0; gap: 12px; }
.ch-body .modal-header::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--ch-orange); }
.ch-body .modal-header.bg-success::before { background: #059669; }
.ch-body .modal-header.bg-danger::before { background: #be123c; }
.ch-body .modal-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.12rem; font-weight: 900; letter-spacing: -.01em; color: var(--ch-hard-ink) !important; }
.ch-body .modal-title > i:first-child { flex: 0 0 auto; width: 34px; height: 34px; display: inline-grid; place-items: center; margin: 0 !important; border-radius: 10px; background: var(--ch-orange-soft); color: var(--ch-orange); font-size: .92rem; }
.ch-body .modal-header.bg-success .modal-title > i:first-child { background: var(--ch-emerald-soft); color: #059669; }
.ch-body .modal-header.bg-danger .modal-title > i:first-child { background: #ffe4e6; color: #be123c; }
.ch-body .modal-header .btn-close { flex: 0 0 auto; width: 34px; height: 34px; padding: 0; margin: 0 0 0 auto; border-radius: 10px; background-color: var(--ch-bg); background-size: 11px; opacity: 1; filter: none !important; transition: background-color .15s; }
.ch-body .modal-header .btn-close:hover { background-color: var(--ch-orange-soft); }
.ch-body .modal-header .btn-close:focus { box-shadow: 0 0 0 3px rgba(0, 77, 159, .3); }
.ch-body .modal-body { padding: 20px; }
.ch-body .modal-footer { gap: 8px; padding: 14px 20px; background: #f8fafc; border-top: 1.5px solid var(--ch-line); }
.ch-body .modal-footer > * { margin: 0; }

/* Pencere içindeki Bootstrap düğmeleri ve alanları ch-btn diliyle uyumlu */
.ch-body .modal .btn { border-radius: 12px; font-weight: 800; padding: .55rem 1.05rem; }
.ch-body .modal .btn-primary { background: var(--ch-blue-600); border-color: var(--ch-blue-600); box-shadow: 0 8px 18px rgba(19, 99, 223, .24); }
.ch-body .modal .btn-primary:hover { background: var(--ch-blue); border-color: var(--ch-blue); }
.ch-body .modal .btn-success { background: var(--ch-orange); border-color: var(--ch-orange); box-shadow: 0 8px 18px rgba(255, 107, 53, .28); }
.ch-body .modal .btn-success:hover { background: #f25a22; border-color: #f25a22; }
.ch-body .modal :is(.btn-secondary, .btn-light, .btn-outline-secondary) { background: #fff; color: var(--ch-hard-ink); border: 1.5px solid var(--ch-line-2); box-shadow: none; }
.ch-body .modal :is(.btn-secondary, .btn-light, .btn-outline-secondary):hover { border-color: var(--ch-hard-ink); color: var(--ch-hard-ink); background: #fff; }
.ch-body .modal :is(.form-control, .form-select) { border: 1.5px solid var(--ch-line-2); border-radius: 12px; }
.ch-body .modal :is(.form-control, .form-select):focus { border-color: var(--ch-blue-600); box-shadow: 0 0 0 4px rgba(19, 99, 223, .12); }
.ch-body .modal .form-label { font-size: .84rem; font-weight: 700; color: var(--ch-hard-ink); }

/* Açılış: hafif yukarı kayma */
.ch-body .modal.fade .modal-dialog { transform: translateY(18px) scale(.98); transition: transform .24s cubic-bezier(.2, .8, .2, 1); }
.ch-body .modal.show .modal-dialog { transform: none; }

/* Telefonda tam ekran olmayan pencereler alttan açılan panel gibi davranır */
@media (max-width: 575.98px) {
    .ch-body .modal-dialog:not([class*="modal-fullscreen"]) { display: flex; align-items: flex-end; min-height: 100%; margin: 0; max-width: none; }
    .ch-body .modal-dialog:not([class*="modal-fullscreen"]).modal-dialog-scrollable { height: 100%; }
    .ch-body .modal-dialog:not([class*="modal-fullscreen"]) .modal-content { width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; border-bottom: 0; box-shadow: 0 -12px 32px rgba(11, 31, 58, .25); }
    .ch-body .modal.fade .modal-dialog:not([class*="modal-fullscreen"]) { transform: translateY(40px); }
    .ch-body .modal.show .modal-dialog:not([class*="modal-fullscreen"]) { transform: none; }
    .ch-body [class*="modal-fullscreen"] .modal-content { border: 0; border-radius: 0; box-shadow: none; }
    .ch-body .modal-footer { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
    .ch-body .modal.fade .modal-dialog { transition: none; transform: none; }
}

/* Pencere açıkken sağ alttaki yüzen düğmeler (mesaj balonu, "Sat") pencerenin düğmelerini örtmesin. */
body.modal-open.ch-body :is(.campus-msg-dock, .mk-fab, .floating-add-btn, .floating-create-btn) { visibility: hidden; }

/* ==========================================================================
   Düz düğme renkleri: eski site.css'teki degrade (mavi→mor→kırmızı, turkuaz) düğmeler
   temanın düz mavisi/turuncusuna çekilir. Degrade ve parlama yok; yalnızca hafif gölge.
   ========================================================================== */
.ch-body :is(.btn-register, .btn-primary-custom, .btn-gradient, .contact-btn, .calendar-nav-btn) {
    background: var(--ch-blue-600) !important; background-image: none !important;
    color: #fff !important; border: 0 !important; border-radius: 12px; font-weight: 800;
    box-shadow: 0 6px 14px rgba(19, 99, 223, .2) !important;
}
.ch-body :is(.btn-register, .btn-primary-custom, .btn-gradient, .contact-btn, .calendar-nav-btn):hover {
    background: var(--ch-blue) !important; color: #fff !important; transform: none;
}
.ch-body :is(.floating-add-btn, .floating-create-btn, .floating-report-btn, .floating-directions-btn, .floating-upload-btn) {
    background: var(--ch-orange) !important; background-image: none !important; color: #fff !important;
    border: 2px solid var(--ch-hard-ink) !important; box-shadow: var(--ch-hard-sm) !important;
}
.ch-body :is(.floating-add-btn, .floating-create-btn, .floating-report-btn, .floating-directions-btn, .floating-upload-btn):hover { background: #f25a22 !important; }
.ch-body :is(.interest-tag, .safety-badge, .subject-badge) {
    background: var(--ch-blue-soft) !important; background-image: none !important; color: var(--ch-blue) !important; border: 0;
}

/* Erişilebilirlik (WCAG AA) */
.ch-skip { position: fixed; left: 12px; top: -64px; z-index: 3000; padding: 10px 16px; background: var(--ch-hard-ink, #0f172a); color: #fff; font-weight: 800; border-radius: 8px; text-decoration: none; transition: top .15s ease; }
.ch-skip:focus { top: 12px; outline: 3px solid var(--ch-orange); outline-offset: 2px; }
.ch-body main:focus { outline: none; }
/* Turuncu zeminde beyaz yazı 2,8:1 idi (AA için 4,5:1 gerekir): turuncu zeminli öğelerde koyu yazı kullanılır (~7:1). */
.ch-btn--orange, .ch-body .ch-btn--orange, .notification-badge, .pn-page .notification-badge, .pn-page .pn-count { color: var(--ch-hard-ink, #0f172a) !important; }
.cx-tag { color: #b8400f; }
.ch-foot-chip { color: #003b78; }
.ch-foot .ch-foot-title, .ch-foot h6 { color: #5a6a7e; }
.ch-body .rating-stars .ms-2 { color: #55657a; }

/* a11y: rozet ve sayaç renkleri */
.ch-body .badge.bg-primary-subtle.text-primary { color: #08397a !important; }
.ch-body .comment-meta { color: #55657a; }
.ch-body .sr-tabs button span { background: rgba(0, 0, 0, .28); }
.ch-body .sr-tabs button.is-active span { background: rgba(0, 77, 159, .12); }
.ch-body .action-btn span { color: #4b5563; }
