/* ═══════════════════════════════════════════════════════════════
   ADALETONLINE — 2026 Modern Tema (lacivert / altın korunarak)
   Tasarım dili: yumuşak yüzeyler, katmanlı gölgeler, cam efektli
   üst çubuk, canlı odak halkaları, akıcı geçişler.
   ═══════════════════════════════════════════════════════════════ */
:root {
    --navy: #1a2744;
    --navy-dark: #111a30;
    --navy-deep: #0c1424;
    --navy-light: #24345c;
    --gold: #c9a24b;
    --gold-light: #e0bd6e;
    --gold-soft: rgba(201, 162, 75, .14);

    --bg: #eef1f7;
    --surface: #ffffff;
    --surface-2: #f7f9fc;
    --text: #1c2333;
    --text-muted: #68718a;
    --border: #e4e8f1;
    --border-soft: rgba(28, 35, 51, .07);

    --success: #178a55;
    --success-bg: #e4f6ec;
    --danger: #c22f3e;
    --danger-bg: #fdeaec;
    --warning: #97690f;
    --warning-bg: #fcf3de;
    --info: #1f6396;
    --info-bg: #e7f1fa;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(17, 26, 48, .05), 0 2px 8px rgba(17, 26, 48, .05);
    --shadow-md: 0 2px 6px rgba(17, 26, 48, .06), 0 10px 30px rgba(17, 26, 48, .09);
    --shadow-lg: 0 8px 20px rgba(17, 26, 48, .14), 0 24px 60px rgba(17, 26, 48, .18);
    --ring: 0 0 0 3px rgba(201, 162, 75, .28);
    --ease: cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background:
        radial-gradient(900px 400px at 85% -100px, rgba(201, 162, 75, .07), transparent 60%),
        radial-gradient(1200px 500px at -10% -150px, rgba(36, 52, 92, .08), transparent 55%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}
a { color: var(--info); text-decoration: none; transition: color .15s var(--ease); }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--navy); margin-top: 0; letter-spacing: -.015em; }
::selection { background: var(--gold-soft); }

/* İnce kaydırma çubuğu */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c6cdde; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #aab3ca; }

/* ── Üst çubuk: koyu cam ───────────────────────────────────── */
.topbar {
    background: rgba(17, 26, 48, .86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 26px;
    height: 62px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar .brand {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.01em;
    display: flex;
    align-items: center;
    gap: 9px;
}
.topbar .brand:hover { text-decoration: none; }
.topbar .brand .scales {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold) 0%, #a98330 100%);
    color: var(--navy-deep);
    font-size: 19px;
    box-shadow: 0 4px 12px rgba(201, 162, 75, .35);
}
.topbar nav { display: flex; gap: 2px; flex: 1; }
.topbar nav a {
    color: #aeb8cf;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13.5px;
    transition: all .18s var(--ease);
}
.topbar nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.topbar nav a.active {
    background: var(--gold-soft);
    color: var(--gold-light);
    box-shadow: inset 0 0 0 1px rgba(201, 162, 75, .35);
}
/* Hamburger — yalnızca mobilde görünür */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 11px;
    cursor: pointer;
    padding: 0 9px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: #cfd6e4;
    transition: all .25s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Site üst çubuğu içeriği, sayfa container'ı ile aynı hizada ortalanır */
.topbar-site { display: block; padding: 0 22px; }
.topbar-inner {
    max-width: 1440px;
    margin: 0 auto;
    height: 62px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0px 10px 0px;
}
}

/* Site ana menüsü: alt çizgi göstergeli sekmeler */
.mainnav { display: flex; gap: 4px; flex: 1; align-self: stretch; align-items: stretch; }
.mainnav > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #aeb8cf;
    padding: 0 15px;
    font-weight: 600;
    font-size: 13.5px;
    border-radius: 0;
    position: relative;
    transition: color .16s var(--ease);
}
.mainnav > a .ni { font-size: 14px; opacity: .9; }
.mainnav > a:hover { color: #fff; background: none; text-decoration: none; }
.mainnav > a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
    transition: background .16s var(--ease);
}
.mainnav > a:hover::after { background: rgba(255, 255, 255, .25); }
.mainnav > a.active { color: var(--gold-light); background: none; box-shadow: none; }
.mainnav > a.active::after { background: var(--gold); }
.nav-mobile-extra { display: none; }
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: 15px;
}
.icon-btn:hover { background: rgba(255, 255, 255, .14); text-decoration: none; }
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 20, 36, .55);
    z-index: 45; /* topbar(50) altında: çekmece topbar bağlamında olduğundan üstte kalır */
}
.nav-overlay.open { display: block; }
body.nav-locked { overflow: hidden; }

.topbar .user-menu { display: flex; align-items: center; gap: 10px; color: #aeb8cf; font-size: 14px; }

/* Bildirim zili + panel */
.ntf-wrap { position: relative; }
.ntf-bell { position: relative; font-size: 16px; }
.ntf-badge {
    position: absolute;
    top: -5px; right: -5px;
    min-width: 17px; height: 17px;
    padding: 0 4px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--navy-dark);
}
.ntf-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    max-width: calc(100vw - 24px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 120;
    display: none;
    overflow: hidden;
}
.ntf-wrap.open .ntf-panel { display: block; animation: ddIn .18s var(--ease); }
.ntf-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--border-soft); }
.ntf-head strong { font-size: 14.5px; color: var(--navy); }
.ntf-head-actions { display: flex; align-items: center; gap: 10px; }
.ntf-mute { background: none; border: none; cursor: pointer; font-size: 15px; padding: 0; line-height: 1; }
.ntf-mute:hover { opacity: .7; }
.ntf-readall { background: none; border: none; color: var(--info); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
.ntf-readall:hover { text-decoration: underline; }

/* Yeni bildirimde zil sallanır */
@keyframes bellShake {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); }
    45% { transform: rotate(9deg); }  60% { transform: rotate(-7deg); }
    75% { transform: rotate(4deg); }
}
.ntf-bell.ntf-ring { animation: bellShake .8s ease; transform-origin: 50% 4px; }
.ntf-list { max-height: 380px; overflow-y: auto; }
.ntf-loading, .ntf-empty { padding: 26px 16px; text-align: center; color: var(--text-muted); font-size: 13px; }
.ntf-item { display: flex; gap: 11px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); color: var(--text); }
.ntf-item:hover { background: var(--surface-2); text-decoration: none; }
.ntf-item.unread { background: rgba(201, 162, 75, .08); }
.ntf-item.unread:hover { background: rgba(201, 162, 75, .14); }
.ntf-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border-soft); }
.ntf-av.ntf-ico { display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); font-size: 18px; }
.ntf-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ntf-text { font-size: 13px; line-height: 1.4; color: var(--text); }
.ntf-item.unread .ntf-text { font-weight: 600; }
.ntf-time { font-size: 11px; color: var(--text-muted); }
.ntf-foot { display: block; text-align: center; padding: 11px; font-size: 13px; font-weight: 600; color: var(--navy); border-top: 1px solid var(--border-soft); background: var(--surface-2); }
.ntf-foot:hover { text-decoration: none; background: var(--gold-soft); }

/* Kullanıcı dropdown */
.user-dd { position: relative; }
.user-dd-toggle { cursor: pointer; border: none; font-family: inherit; }
.user-dd-toggle .dd-caret { color: #aeb8cf; font-size: 10px; margin-left: 1px; transition: transform .18s var(--ease); }
.user-dd.open .dd-caret { transform: rotate(180deg); }
.user-dd-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 250px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 120;
    display: none;
    overflow: hidden;
    padding: 6px;
}
.user-dd.open .user-dd-menu { display: block; animation: ddIn .18s var(--ease); }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── ⿴ Uygulama başlatıcı (app launcher) ─────────────────── */
.applauncher { position: relative; display: inline-flex; }
/* Etiketli "chip" — bare ikon dikkat çekmiyordu; "Menü" yazısı + ▾ ile açılır menü olduğu belli */
.applauncher-btn {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-family: inherit;
    font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap;
    background: rgba(201, 162, 75, .2); border: 1px solid rgba(201, 162, 75, .55);
    border-radius: 99px; padding: 6px 13px; transition: all .16s var(--ease);
}
.applauncher-btn svg { display: block; }
.applauncher-btn:hover { background: rgba(201, 162, 75, .34); border-color: var(--gold); }
.applauncher.open .applauncher-btn { background: var(--gold); border-color: var(--gold); color: #1a2744; }
.al-caret { font-size: 10px; opacity: .85; transition: transform .18s var(--ease); }
.applauncher.open .al-caret { transform: rotate(180deg); }
/* İlk ziyaret: nabız hâlkası (ipucu görülünce JS kaldırır) */
.applauncher.pulse .applauncher-btn { animation: alPulse 1.5s ease-in-out infinite; }
@keyframes alPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 75, .55); }
    50% { box-shadow: 0 0 0 7px rgba(201, 162, 75, 0); }
}
/* İlk ziyaret ipucu balonu (coachmark) */
.al-coach {
    position: absolute; top: calc(100% + 12px); right: 0; z-index: 70; width: 264px;
    background: #1a2744; color: #fff; border-radius: 14px; padding: 14px 16px;
    box-shadow: var(--shadow-lg); animation: ddIn .2s var(--ease);
}
.al-coach[hidden] { display: none; }
.al-coach::before { content: ''; position: absolute; top: -6px; right: 26px; width: 13px; height: 13px;
    background: #1a2744; transform: rotate(45deg); border-radius: 2px; }
.al-coach strong { display: block; font-size: 14px; margin-bottom: 5px; }
.al-coach span { display: block; font-size: 12.5px; opacity: .85; line-height: 1.5; }
.al-coach-ok { margin-top: 11px; background: var(--gold); color: #1a2744; border: none; border-radius: 9px;
    padding: 7px 16px; font-weight: 800; font-size: 12.5px; cursor: pointer; font-family: inherit; }
.al-coach-ok:hover { filter: brightness(1.06); }
/* Dar masaüstünde yazıyı gizle, ikon+ok kalsın */
@media (min-width: 961px) and (max-width: 1120px) { .applauncher-btn .al-label { display: none; } }
.applauncher-panel {
    display: none; position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
    width: 320px; max-width: calc(100vw - 24px); padding: 12px;
    background: var(--surface); border: 1px solid var(--border-soft); border-radius: 16px; box-shadow: var(--shadow-lg);
}
.applauncher.open .applauncher-panel { display: block; animation: ddIn .18s var(--ease); }
.applauncher-head { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 800;
    color: var(--text-muted); padding: 2px 4px 10px; }
.applauncher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.app-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 7px;
    padding: 12px 6px; border-radius: 12px; text-align: center; color: var(--navy);
    transition: all .14s var(--ease); border: 1px solid transparent;
}
.app-tile:hover { background: var(--surface-2); text-decoration: none; transform: translateY(-2px); border-color: var(--border-soft); }
.app-tile.is-active { background: rgba(201,162,75,.1); border-color: var(--gold); }
.app-tile-ic { font-size: 24px; line-height: 1; width: 44px; height: 44px; display: grid; place-items: center;
    background: var(--surface-2); border-radius: 12px; }
.app-tile:hover .app-tile-ic { background: var(--surface); }
.app-tile-lbl { font-size: 11.5px; font-weight: 700; line-height: 1.25; max-width: 92px;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 380px) { .applauncher-grid { grid-template-columns: repeat(2, 1fr); } }
.user-dd-menu a, .ddm-logout {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px; border-radius: 9px;
    color: var(--text); font-size: 13.5px; font-weight: 600;
    background: none; border: none; width: 100%; cursor: pointer; font-family: inherit; text-align: left;
}
.user-dd-menu a:hover, .ddm-logout:hover { background: var(--surface-2); text-decoration: none; }
.ddm-head { border-radius: 9px; }
.ddm-head:hover { background: var(--gold-soft); }
.ddm-head .ddm-name { font-weight: 800; color: var(--navy); font-size: 14px; display: block; }
.ddm-head .ddm-sub { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.ddm-ico { width: 26px; text-align: center; font-size: 15px; flex-shrink: 0; }
.ddm-count { margin-left: auto; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.ddm-sep { height: 1px; background: var(--border-soft); margin: 5px 8px; }
.ddm-logout { color: var(--danger); }
.ddm-logout:hover { background: var(--danger-bg); }
@media (max-width: 640px) {
    .ntf-panel { position: fixed; top: 62px; right: 8px; left: 8px; width: auto; }
}
.topbar .user-menu .uname { color: #fff; font-weight: 700; font-size: 13.5px; }
.topbar .user-menu .uname:hover { color: var(--gold-light); text-decoration: none; }
.btn-logout {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #cfd6e4;
    padding: 7px 14px;
    border-radius: 99px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    transition: all .18s var(--ease);
}
.btn-logout:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

/* ── Genel yerleşim ────────────────────────────────────────── */
.container { max-width: 1440px; margin: 0 auto; padding: 30px 22px 80px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 25px; font-weight: 800; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow .25s var(--ease);
}
.card h2 { font-size: 16.5px; font-weight: 700; margin-bottom: 14px; }

/* ── Butonlar ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--navy);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: .01em;
    transition: all .18s var(--ease);
    box-shadow: 0 1px 2px rgba(17, 26, 48, .18);
}
.btn:hover {
    background: var(--navy-light);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(17, 26, 48, .22);
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-gold {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 55%, #b18a35 100%);
    color: var(--navy-deep);
    box-shadow: 0 2px 8px rgba(201, 162, 75, .35);
}
.btn-gold:hover {
    background: linear-gradient(135deg, #ecd08a 0%, var(--gold-light) 60%, var(--gold) 100%);
    color: var(--navy-deep);
    box-shadow: 0 8px 20px rgba(201, 162, 75, .4);
}
.btn-success { background: var(--success); }
.btn-success:hover { background: #12744706; background: #127447; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #a52532; }
.btn-outline {
    background: var(--surface);
    color: var(--navy);
    border: 1px solid var(--border);
    box-shadow: none;
}
.btn-outline:hover { background: var(--surface-2); color: var(--navy); border-color: #cdd5e4; box-shadow: var(--shadow-sm); }
.btn-sm { padding: 7px 14px; font-size: 12.5px; border-radius: 10px; }
/* Yalnız ikon taşıyan butonlar: emoji btn-sm yazı boyutunda çok ufak kalıyor (yaşandı —
   profildeki ✉️/🚫). Yeni ikon-buton eklerken bu sınıfı da ver. */
.btn-ico { font-size: 17px; line-height: 1; padding: 6px 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── Formlar ───────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--navy); }
.form-group .hint { font-size: 12.5px; color: var(--text-muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number],
input[type=file], select, textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: var(--ring);
}
input:disabled { background: var(--surface-2); color: var(--text-muted); cursor: not-allowed; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-line { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.checkbox-line input { width: 17px; height: 17px; accent-color: var(--gold); }

/* ── Toast bildirimleri (sağ üst, sabit) ───────────────────── */
.toast-stack {
    position: fixed;
    top: 74px;
    right: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 340px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--navy);
    border-radius: 13px;
    box-shadow: var(--shadow-lg);
    padding: 13px 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    cursor: default;
    animation: toastIn .32s cubic-bezier(.2, .9, .3, 1.2);
}
.toast.leaving { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { transform: translateX(120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateX(120%); opacity: 0; } }
.toast .toast-msg { flex: 1; min-width: 0; line-height: 1.45; padding-top: 1px; }
.toast .toast-ico { font-size: 17px; line-height: 1.2; flex-shrink: 0; }
.toast .toast-ico::before { content: "•"; }
.toast .toast-close {
    background: none; border: none; cursor: pointer; font-size: 17px;
    color: var(--text-muted); line-height: 1; padding: 0 2px; flex-shrink: 0;
}
.toast .toast-close:hover { color: var(--text); }
.toast-success { border-left-color: var(--success); }
.toast-success .toast-ico { color: var(--success); }
.toast-success .toast-ico::before { content: "✓"; }
.toast-error { border-left-color: var(--danger); }
.toast-error .toast-ico { color: var(--danger); }
.toast-error .toast-ico::before { content: "✕"; }
.toast-warning { border-left-color: var(--warning); }
.toast-warning .toast-ico { color: var(--warning); }
.toast-warning .toast-ico::before { content: "!"; }
.toast-info { border-left-color: var(--info); }
.toast-info .toast-ico { color: var(--info); }
.toast-info .toast-ico::before { content: "i"; }
@media (max-width: 640px) {
    .toast-stack { top: auto; bottom: 16px; right: 16px; left: 16px; width: auto; }
    .toast { animation: toastInUp .32s var(--ease); }
    @keyframes toastInUp { from { transform: translateY(120%); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ── Preloader: logo + teknolojik yükleme halkası ──────────── */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(600px 400px at 50% 40%, rgba(201, 162, 75, .1), transparent 60%),
        linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 70%);
    opacity: 1;
    transition: opacity .45s var(--ease), visibility .45s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-box { text-align: center; position: relative; }
.pl-scales {
    color: var(--gold);
    position: absolute;
    top: 48px; /* halka 96px → tam dikey merkez */
    left: 50%;
    transform: translate(-50%, -50%);
    animation: plPulse 1.4s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pl-scales svg { width: 46px; height: 46px; display: block; }
.pl-ring {
    width: 96px;
    height: 96px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .08);
    border-top-color: var(--gold);
    border-right-color: var(--gold-light);
    animation: spin .9s linear infinite;
}
.pl-name {
    margin-top: 22px;
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: .18em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #6b7793, #fff, #6b7793);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: plShine 2s linear infinite;
}
@keyframes plPulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .85; } 50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; } }
@keyframes plShine { to { background-position: 200% center; } }
@media (prefers-reduced-motion: reduce) {
    .pl-ring, .pl-scales, .pl-name { animation: none; }
}

/* ── Bildirimler (flash) ───────────────────────────────────── */
.flash-stack { margin-bottom: 18px; }
.flash {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 500;
    border: 1px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    animation: flashIn .3s var(--ease);
}
@keyframes flashIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.flash-success { background: var(--success-bg); color: var(--success); border-color: #c4e9d4; }
.flash-error   { background: var(--danger-bg); color: var(--danger); border-color: #f5cdd2; }
.flash-warning { background: var(--warning-bg); color: var(--warning); border-color: #f0e0b4; }
.flash-info    { background: var(--info-bg); color: var(--info); border-color: #c8dff2; }
.flash .flash-close { background: none; border: none; cursor: pointer; font-size: 17px; color: inherit; opacity: .55; padding: 0 2px; }
.flash .flash-close:hover { opacity: 1; }

/* ── Tablolar ──────────────────────────────────────────────── */
.table-wrap { border-radius: var(--radius-sm); border: 1px solid var(--border-soft);
    overflow-x: auto; -webkit-overflow-scrolling: touch; } /* taşarsa sayfa değil tablo kayar */
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
    text-align: left;
    padding: 11px 14px;
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background .12s var(--ease); }
table.data tbody tr:hover { background: var(--surface-2); }
table.data tr.selected { background: #fdf6e7; }
table.data tr.selected:hover { background: #fbf0d8; }
table.data input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--gold); }

/* ── Rozetler ──────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger  { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info    { background: var(--info-bg); color: var(--info); }
.badge-muted   { background: #edf0f6; color: var(--text-muted); }
.badge-gold    { background: var(--gold-soft); color: #8a6a1e; }
.badge-navy    { background: #e5eaf5; color: var(--navy); }

/* ── Kalan gün etiketleri ──────────────────────────────────── */
.days-normal  { color: var(--text-muted); font-weight: 600; }
.days-soon    { color: var(--warning); font-weight: 700; }
.days-lastday { color: #c25e00; font-weight: 800; }
.days-overdue { color: var(--danger); font-weight: 800; }

/* ── Giriş/Kayıt ekranı ────────────────────────────────────── */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(800px 500px at 80% -10%, rgba(201, 162, 75, .16), transparent 55%),
        radial-gradient(700px 500px at 10% 110%, rgba(36, 52, 92, .5), transparent 60%),
        linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 60%, #223459 100%);
    padding: 24px;
}
.auth-card {
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 490px;
    padding: 38px;
    animation: authIn .4s var(--ease);
}
@keyframes authIn { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.auth-card .auth-logo { text-align: center; margin-bottom: 26px; }
.auth-card .auth-logo .scales {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, #a98330 100%);
    color: var(--navy-deep);
    font-size: 32px;
    box-shadow: 0 10px 26px rgba(201, 162, 75, .4);
}
.auth-card .auth-logo h1 { font-size: 24px; margin: 14px 0 3px; font-weight: 800; }
.auth-card .auth-logo p { color: var(--text-muted); font-size: 13px; margin: 0; }
.auth-links { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--text-muted); }

/* ── Auth: iki panelli tanıtım (sol) + form (sağ) ──────────── */
.auth-split {
    width: 100%;
    max-width: 1160px;
    display: grid;
    grid-template-columns: 1fr minmax(380px, 452px);
    align-items: center;
    gap: 56px;
}
.auth-hero { color: #fff; }
.auth-hero-brand { display: flex; align-items: center; gap: 15px; margin-bottom: 34px; }
.auth-hero-brand .scales {
    display: inline-flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; border-radius: 18px; flex: none;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 60%, #a98330 100%);
    color: var(--navy-deep); font-size: 32px;
    box-shadow: 0 10px 26px rgba(201, 162, 75, .4);
}
.auth-hero-brand h1 { font-size: 27px; font-weight: 800; margin: 0; color: #fff; letter-spacing: -.02em; }
.auth-hero-brand p { margin: 3px 0 0; font-size: 13px; color: rgba(255, 255, 255, .66); }

.auth-showcase { position: relative; }
.feat-track { position: relative; min-height: 300px; }
.feat-slide {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    opacity: 0; transform: translateY(16px) scale(.98);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
    pointer-events: none;
}
.feat-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }

.feat-visual {
    width: 132px; height: 132px; margin-bottom: 22px;
    display: flex; align-items: center; justify-content: center;
}
.feat-icon {
    font-size: 58px; border-radius: 30px;
    background: linear-gradient(150deg, var(--g1, rgba(201, 162, 75, .25)), var(--g2, rgba(36, 52, 92, .45)));
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .32);
}
.feat-image { position: relative; width: 152px; height: 152px; }
.feat-image .fi-fallback {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 64px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 162, 75, .3), rgba(36, 52, 92, .45));
}
/* Yuvarlak + kenarları yumuşayarak saydama geçen maske */
.feat-image img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; border-radius: 50%;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 55%, rgba(0, 0, 0, .4) 68%, transparent 78%);
            mask-image: radial-gradient(circle at 50% 50%, #000 55%, rgba(0, 0, 0, .4) 68%, transparent 78%);
    filter: drop-shadow(0 16px 34px rgba(0, 0, 0, .45));
}
.feat-title { font-size: 21px; font-weight: 800; color: #fff; margin: 0 0 8px; letter-spacing: -.015em; }
.feat-title b { color: var(--gold-light); }
.feat-desc { font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .74); margin: 0; max-width: 440px; }

.feat-dots { display: flex; gap: 8px; margin-top: 30px; }
.feat-dot {
    width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
    background: rgba(255, 255, 255, .25); transition: all .3s var(--ease);
}
.feat-dot.is-active { background: var(--gold); width: 26px; border-radius: 5px; }

.auth-panel { display: flex; justify-content: center; }
.auth-panel .auth-card { margin: 0; }
.auth-panel .auth-card .auth-logo { display: none; } /* masaüstünde marka solda hero'da */

/* Sürüklenebilir slider imleci */
.ao-swipe { cursor: grab; }
.ao-swipe.is-dragging { cursor: grabbing; user-select: none; }

@media (max-width: 880px) {
    /* Mobilde: form üstte, özellik slider'ı altında (parmakla kaydırılabilir) */
    .auth-split { grid-template-columns: 1fr; max-width: 460px; gap: 26px; }
    .auth-hero { order: 2; }
    .auth-hero-brand { display: none; } /* marka kartta gösteriliyor */
    .auth-panel { order: 1; }
    .auth-panel .auth-card .auth-logo { display: block; }
    .feat-track { min-height: 210px; }
    .feat-slide { align-items: center; text-align: center; }
    .feat-desc { margin-left: auto; margin-right: auto; }
    .feat-dots { justify-content: center; }
}

/* ── Sayfalama ─────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 7px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    background: var(--surface);
    transition: all .15s var(--ease);
}
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination a:hover { background: var(--surface-2); text-decoration: none; transform: translateY(-1px); }

/* ── Admin yerleşimi ───────────────────────────────────────── */
.admin-wrap { display: flex; min-height: calc(100vh - 62px); }
.admin-side {
    width: 236px;
    background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy-deep) 100%);
    padding: 22px 14px;
    flex-shrink: 0;
}
.admin-side a {
    display: block;
    color: #9aa6c0;
    padding: 10px 15px;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 3px;
    transition: all .16s var(--ease);
}
.admin-side a:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.admin-side a.active {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--navy-deep);
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(201, 162, 75, .3);
}
.admin-side .side-title {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #4d5a7a;
    padding: 14px 15px 7px;
    font-weight: 700;
}
.admin-main { flex: 1; padding: 28px 32px 80px; min-width: 0; }

/* Üst çubuk: breadcrumb + admin araması + kullanıcı çipi */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #8f9ab5; white-space: nowrap; }
.crumbs a { color: #aeb8cf; font-weight: 600; }
.crumbs a:hover { color: #fff; text-decoration: none; }
.crumb-sep { opacity: .5; }
.crumb-current { color: var(--gold-light); font-weight: 700; }
.topbar-search { flex: 1; max-width: 420px; margin-left: auto; }
.topbar-search input {
    width: 100%;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 99px;
    color: #fff;
    padding: 8px 18px;
    font-size: 13px;
}
.topbar-search input::placeholder { color: #7d89a8; }
.topbar-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 75, .2); background: rgba(255, 255, 255, .1); }
.topbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 99px;
    padding: 4px 12px 4px 5px;
}

/* Metrik kartları (ikon çipli) */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.metric-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 16px 18px;
    display: flex;
    gap: 13px;
    align-items: flex-start;
    transition: all .2s var(--ease);
}
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.metric-card .m-num { font-size: 25px; font-weight: 800; color: var(--navy); line-height: 1.05; letter-spacing: -.02em; }
.metric-card .m-label { font-size: 12.5px; color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.metric-card .m-sub { font-size: 11px; color: var(--text-muted); margin-top: 5px; }
.m-ico, .ql-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 19px;
    flex-shrink: 0;
}
.ql-ico { width: 32px; height: 32px; border-radius: 9px; font-size: 15px; }
.mi-blue   { background: #e7f0fb; }
.mi-green  { background: #e2f5ea; }
.mi-purple { background: #efeafb; }
.mi-gold   { background: #f8efdc; }
.mi-teal   { background: #e0f4f2; }
.mi-red    { background: #fdeaec; }

/* Dashboard yerleşimi: ana alan + sağ ray */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chart-card .cc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.chart-bars { width: 100%; height: auto; display: block; }
.chart-bars .cb-bar { fill: #d6c391; transition: fill .15s; }
.chart-bars .cb-bar:hover { fill: var(--gold); }
.chart-bars .cb-last { fill: var(--gold); }
.chart-bars .cb-base { stroke: var(--border); stroke-width: 1; }
.chart-bars .cb-label { font-size: 8.5px; fill: var(--text-muted); font-family: inherit; }

/* Hızlı işlemler listesi */
.quick-list { display: flex; flex-direction: column; gap: 6px; }
.quick-list a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    border-radius: 11px;
    border: 1px solid var(--border-soft);
    background: var(--surface-2);
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
    transition: all .15s var(--ease);
}
.quick-list a:hover { background: var(--gold-soft); border-color: rgba(201, 162, 75, .3); text-decoration: none; transform: translateX(2px); }

/* Sistem durumu */
.module-line { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--border-soft); }
.module-line:last-child { border-bottom: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-on { background: var(--success); box-shadow: 0 0 0 3px var(--success-bg); }
.dot-off { background: #b8bfd0; box-shadow: 0 0 0 3px #edf0f6; }

/* Kenar çubuğu: mini profil, ikonlar, rozetler */
.side-profile-mini {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 11px 13px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(201, 162, 75, .12), rgba(255, 255, 255, .04));
    border: 1px solid rgba(201, 162, 75, .22);
    border-radius: 14px;
    overflow: hidden;
}
.side-profile-mini .spm-info { min-width: 0; display: flex; flex-direction: column; }
.side-profile-mini .spm-name {
    color: #fff; font-weight: 700; font-size: 12.5px; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-profile-mini .spm-role {
    color: var(--gold-light); font-size: 10.5px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-side a .si {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    margin-right: 8px;
    flex-shrink: 0;
}
.admin-side a.active .si { background: rgba(12, 20, 36, .2); }
.admin-side a { display: flex; align-items: center; }
.side-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}
.admin-side a.active .side-badge { background: var(--navy-deep); color: var(--gold-light); }

/* Aksiyon merkezi (bekleyen işlemler) */
.action-center { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 20px; }
.ac-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    font-size: 13.5px;
    color: var(--text);
    transition: all .18s var(--ease);
}
.ac-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.ac-card.ac-warning { background: var(--warning-bg); border-color: #eeddb0; color: var(--warning); }
.ac-card.ac-danger { background: var(--danger-bg); border-color: #f2c4c9; color: var(--danger); }
.ac-card .ac-icon { font-size: 20px; }
.ac-card .ac-count { font-size: 22px; font-weight: 800; }
.ac-card .ac-text { font-weight: 600; }
.ac-card .ac-go { margin-left: auto; font-size: 12px; font-weight: 700; opacity: .75; white-space: nowrap; }

/* Mini eğilim çubukları + alt bilgi */
.trend-bars { display: flex; gap: 3px; align-items: flex-end; height: 30px; margin-top: 10px; }
.trend-bars span {
    flex: 1;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    border-radius: 3px 3px 0 0;
    min-height: 3px;
    opacity: .85;
}
.stat-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 7px; font-weight: 500; }

/* İşlem zaman çizelgesi */
.log-timeline { position: relative; }
.lt-item { display: flex; gap: 12px; padding: 8px 0; position: relative; }
.lt-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 24px;
    bottom: -8px;
    width: 2px;
    background: var(--border);
}
.lt-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--border);
    margin-top: 5px;
    flex-shrink: 0;
    z-index: 1;
}
.lt-body { min-width: 0; }
.lt-line { font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lt-time { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }

/* Rütbe kartları */
.role-card {
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: var(--surface-2);
}
.role-card .rc-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.role-card .rc-perms { display: flex; gap: 5px; flex-wrap: wrap; }

/* ── İstatistik kutuları ───────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-box {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all .2s var(--ease);
}
.stat-box:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-box .stat-num { font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1.05; letter-spacing: -.02em; }
.stat-box .stat-label { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; font-weight: 600; }
.stat-box.accent { background: linear-gradient(160deg, #fff 30%, #fdf7ea 100%); border-top: 3px solid var(--gold); }

/* ── Filtre çubuğu ─────────────────────────────────────────── */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filter-bar .form-group { margin-bottom: 0; min-width: 140px; }
.filter-bar .grow { flex: 1; min-width: 200px; }

/* ── Modal ─────────────────────────────────────────────────── */
/* ── Lightbox: fotoğrafı büyük görüntüleme ── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 13, 26, .93);
    z-index: 150; /* modalların (100) ve panellerin (120) üstünde */
    display: none;
    align-items: center;
    justify-content: center;
    padding: 26px;
    cursor: zoom-out;
}
.lightbox.open { display: flex; animation: lbIn .16s ease; }
.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    cursor: default;
}
.lb-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}
.lb-close:hover { background: rgba(255, 255, 255, .28); }
@keyframes lbIn { from { opacity: 0 } to { opacity: 1 } }
body.lb-locked { overflow: hidden; }
/* Tıklanabilir görseller: büyütece işaret et (reposing kuralları bunu ezer) */
.post-image, [data-lightbox] { cursor: zoom-in; }

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 20, 36, .5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 64px 16px 16px;
    z-index: 100;
}
.modal-backdrop.open { display: flex; }
.modal {
    background: var(--surface);
    border-radius: 20px;
    width: 100%;
    max-width: 540px;
    box-shadow: var(--shadow-lg);
    animation: modalIn .25s var(--ease);
    overflow: hidden;
}
@keyframes modalIn { from { transform: translateY(-16px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-soft);
}
.modal-head h3 { margin: 0; font-size: 16.5px; font-weight: 800; }
.modal-close { background: var(--surface-2); border: none; width: 30px; height: 30px; border-radius: 9px; font-size: 18px; cursor: pointer; color: var(--text-muted); line-height: 1; transition: all .15s var(--ease); }
.modal-close:hover { background: var(--danger-bg); color: var(--danger); }
.modal-body { padding: 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--border-soft); background: var(--surface-2); }

/* ── İş Takibi: yüzen işlem çubuğu (cam) ───────────────────── */
.action-bar {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(110px);
    background: rgba(17, 26, 48, .92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    z-index: 90;
    transition: transform .3s var(--ease);
}
.action-bar.visible { transform: translateX(-50%) translateY(0); }
.action-bar .count { font-size: 13px; color: var(--gold-light); font-weight: 800; margin-right: 6px; white-space: nowrap; }

/* ── İş Takibi: ? ipucu ────────────────────────────────────── */
.help-tip {
    position: relative;
    display: inline-flex;
    width: 23px;
    height: 23px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 800;
    font-size: 12px;
    cursor: help;
    transition: all .15s var(--ease);
}
.help-tip:hover { background: var(--gold-soft); border-color: var(--gold); color: #8a6a1e; }
.help-tip .tip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--navy-deep);
    color: #e6eaf3;
    font-size: 12.5px;
    font-weight: 500;
    padding: 10px 13px;
    border-radius: 12px;
    width: 235px;
    z-index: 60;
    transition: opacity .18s var(--ease);
    box-shadow: var(--shadow-lg);
    line-height: 1.5;
}
.help-tip:hover .tip-text { visibility: visible; opacity: 1; }

/* ── Ana sayfa ─────────────────────────────────────────────── */
.home-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 20px; align-items: start; }

/* Site Ayarları: kartları yüksekliğe göre otomatik dengeleyen masonry düzen
   (kartlar farklı yükseklikte olduğu için sabit iki sütun boşluk bırakıyordu). */
.settings-masonry { columns: 2; column-gap: 20px; }
.settings-masonry > .card { break-inside: avoid; }
@media (max-width: 900px) { .settings-masonry { columns: 1; } }

/* 3 sütun: sol menü — orta akış — sağ bloklar */
.home-grid3 {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}
.home-col-side { position: sticky; top: 78px; }

/* Portal: duyuru slider'ı orta + sağ sütunu kaplar; sağ blok altından başlar */
.home-grid3.portal {
    grid-template-areas:
        "left hero   hero"
        "left center right";
    grid-template-rows: auto 1fr;
}
.portal > .home-col-left   { grid-area: left; }
.portal > .portal-hero     { grid-area: hero; min-width: 0; }
.portal > .home-col-center { grid-area: center; min-width: 0; }
.portal > .home-col-right  { grid-area: right; position: sticky; top: 78px; align-self: start; }

/* Akış lazy load göstergesi */
.feed-sentinel {
    text-align: center;
    padding: 18px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}
.feed-spinner {
    width: 16px;
    height: 16px;
    border: 2.5px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Sol sütun: mini profil kartı */
.side-profile { text-align: center; padding-top: 26px; }
.side-profile .sp-avatar { margin-bottom: 10px; }
.side-profile .sp-name { font-weight: 800; font-size: 15px; color: var(--navy); display: block; }
.side-profile .sp-name:hover { color: var(--gold); text-decoration: none; }
.side-profile .sp-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* Sol sütun: dikey menü */
.side-menu { padding: 10px; }
.side-menu a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    font-size: 13.5px;
    transition: all .15s var(--ease);
}
.side-menu a:hover { background: var(--surface-2); text-decoration: none; transform: translateX(2px); }
.side-menu a.active { background: var(--gold-soft); color: #8a6a1e; }
.side-menu .sm-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--surface-2), #eef2f9);
    border: 1px solid var(--border-soft);
    flex-shrink: 0;
}

.hero {
    background:
        radial-gradient(600px 300px at 90% 0%, rgba(201, 162, 75, .22), transparent 60%),
        linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #24365f 100%);
    color: #fff;
    border-radius: 20px;
    padding: 32px 34px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.hero::after {
    content: "⚖";
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%) rotate(-8deg);
    font-size: 120px;
    opacity: .07;
    color: var(--gold);
}
.hero h1 { color: #fff; margin: 0 0 5px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.hero p { margin: 0; color: #aab6d0; font-size: 14px; }
.hero .hero-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 6px 14px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    color: var(--gold-light);
    font-size: 12.5px;
    font-weight: 600;
}

.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.module-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 18px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all .2s var(--ease);
    color: var(--navy);
    display: block;
    position: relative;
    overflow: hidden;
}
.module-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    opacity: 0;
    transition: opacity .2s var(--ease);
}
.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}
.module-card:hover::before { opacity: 1; }
.module-card .mc-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--surface-2), #eef2f9);
    border: 1px solid var(--border-soft);
}
.module-card .mc-title { font-weight: 800; font-size: 14px; }
.module-card .mc-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

.empty-state { text-align: center; padding: 34px 16px; color: var(--text-muted); }
.empty-state .big { font-size: 38px; margin-bottom: 10px; filter: grayscale(.2); }

.task-block-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-soft);
}
.task-block-item:last-child { border-bottom: none; }
.task-block-item .dn { font-weight: 700; color: var(--navy); font-size: 14px; }
.task-block-item .nt { font-size: 12.5px; color: var(--text-muted); }

.note-empty { color: #a7aec0; font-style: italic; }

/* ── Duyuru slider'ı ───────────────────────────────────────── */
/* Sabit yükseklik + tüm slaytlar absolute: geçişte zıplama/parlama olmaz */
.annc-slider {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 320px;
    /* Taban zemin slaytlarla aynı ton: çapraz geçişte açık renk sızmaz */
    background: linear-gradient(115deg, var(--navy-deep) 0%, var(--navy) 60%, #26395f 100%);
}
.annc-track { position: absolute; inset: 0; }
.annc-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity .7s ease-in-out;
    background:
        radial-gradient(500px 260px at 88% 10%, rgba(201, 162, 75, .25), transparent 60%),
        linear-gradient(115deg, var(--navy-deep) 0%, var(--navy) 60%, #26395f 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.annc-slide.active { opacity: 1; z-index: 2; pointer-events: auto; }
.annc-body { padding: 40px 120px 46px 56px; max-width: 720px; }
.annc-tag {
    display: inline-block;
    background: rgba(201, 162, 75, .18);
    border: 1px solid rgba(201, 162, 75, .4);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 10px;
}
.annc-body h2 { color: #fff; font-size: 25px; margin: 0 0 9px; letter-spacing: -.01em; }
.annc-body p { color: #b9c3da; font-size: 14.5px; margin: 0 0 18px; line-height: 1.65; }
.annc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(12, 20, 36, .45);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    transition: background .15s;
}
.annc-arrow:hover { background: rgba(201, 162, 75, .5); }
.annc-prev { left: 12px; }
.annc-next { right: 12px; }
.annc-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; z-index: 3; }
.annc-dots button {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    border: none;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    padding: 0;
    transition: all .2s var(--ease);
}
.annc-dots button.active { background: var(--gold); width: 22px; }

/* ── Faydalı bağlantılar ───────────────────────────────────── */
.link-card h2 { margin-bottom: 10px; }
.link-list { display: flex; flex-direction: column; gap: 4px; }
.link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 11px;
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
    border: 1px solid transparent;
    transition: all .14s var(--ease);
}
.link-item:hover { background: var(--surface-2); border-color: var(--border-soft); text-decoration: none; transform: translateX(2px); }
.link-item .li-ico { font-size: 14px; flex-shrink: 0; }
.link-item .li-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-item .li-out { color: var(--text-muted); font-size: 12px; opacity: 0; transition: opacity .14s; }
.link-item:hover .li-out { opacity: 1; }
.link-item .li-del {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 6px;
}
.link-item .li-del:hover { color: var(--danger); background: var(--danger-bg); }
.add-link-form { display: none; flex-direction: column; gap: 8px; margin-top: 10px; }
.add-link-form.open { display: flex; }

/* ── İlişki durumu rozeti ──────────────────────────────────── */
.marital {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fdedf1;
    border: 1px solid #f6cfd9;
    color: #b6355c;
    font-size: 12.5px;
    font-weight: 700;
    padding: 4px 13px;
    border-radius: 99px;
}
.marital.single { background: #eef0f5; border-color: var(--border); color: var(--text-muted); }
.marital .m-heart { font-size: 13px; }
.fb-info-line .marital { padding: 2px 10px; font-size: 12px; }

/* ── Yatırım özeti bloku ───────────────────────────────────── */
.invest-widget .iw-value { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.invest-widget .iw-pl { font-size: 14px; font-weight: 800; margin-top: 3px; }
.invest-widget .iw-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 7px; }

/* ── Portal blokları / akış başlığı ────────────────────────── */
.block-content { font-size: 13.5px; line-height: 1.7; color: var(--text); word-wrap: break-word; }
.block-content a { font-weight: 600; }
.feed-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 800;
    margin: 22px 0 12px;
}

/* Akış kartları kaydırınca belirir */
.reveal-init { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal-init.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal-init { opacity: 1; transform: none; transition: none; }
}

/* ── Avatarlar ─────────────────────────────────────────────── */
.avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: inline-flex;
    vertical-align: middle;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--border), 0 2px 6px rgba(17, 26, 48, .1);
    background: #fff;
}
.avatar-initials {
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--navy-light), var(--navy-deep));
    color: var(--gold-light);
    font-weight: 800;
    border: 2px solid #fff;
}
.avatar-square { border-radius: 12px; }

/* ── Paylaşım oluşturucu ───────────────────────────────────── */
.composer textarea { resize: vertical; min-height: 68px; border-radius: 14px; }
.composer-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.composer-foot select { width: auto; border-radius: 99px; padding: 8px 14px; font-size: 13px; font-weight: 600; }
.composer-foot .file-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--info);
    cursor: pointer;
    border: 1.5px dashed var(--border);
    border-radius: 99px;
    padding: 8px 15px;
    transition: all .15s var(--ease);
}
.composer-foot .file-label:hover { background: var(--info-bg); border-color: #c8dff2; }
.composer-foot .spacer { flex: 1; }

/* ── Paylaşım kartı ────────────────────────────────────────── */
.post-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 18px 20px;
    margin-bottom: 14px;
    transition: box-shadow .2s var(--ease);
}
.post-card:hover { box-shadow: var(--shadow-md); }
.post-head { display: flex; gap: 11px; align-items: flex-start; }
.post-head .ph-info { flex: 1; min-width: 0; }
.post-head .ph-name { font-weight: 700; color: var(--navy); font-size: 14.5px; }
.post-head .ph-name a { color: var(--navy); }
.post-head .ph-meta { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.post-head .ph-actions { display: flex; gap: 6px; align-items: center; }
.post-vis-select { font-size: 12px; font-weight: 600; padding: 5px 8px; border-radius: 99px; width: auto; border: 1.5px solid var(--border); }
.post-del {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); font-size: 19px; line-height: 1; padding: 7px;
    border-radius: 8px;
    transition: all .15s var(--ease);
}
.post-del:hover { color: var(--danger); background: var(--danger-bg); }
.post-body { margin-top: 12px; font-size: 14.5px; white-space: pre-wrap; word-wrap: break-word; line-height: 1.65; }
.post-body img.post-image {
    max-width: 100%;
    max-height: 440px;
    border-radius: 14px;
    margin-top: 10px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
}
.post-foot { display: flex; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-soft); align-items: center; flex-wrap: wrap; }
/* Gönderi tarihi sağ ALTTA (başlık sadeleşti — kullanıcı isteği); dar ekranda alt satıra sarar */
.post-foot .post-date { margin-left: auto; font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.react-btn {
    background: var(--surface-2);
    border: 1px solid transparent;
    border-radius: 99px;
    padding: 6px 15px;
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 700;
    transition: all .15s var(--ease);
}
.react-btn:hover { background: #e9edf5; transform: translateY(-1px); }
.react-btn.active-like { background: var(--success-bg); color: var(--success); border-color: #c4e9d4; }
.react-btn.active-dislike { background: var(--danger-bg); color: var(--danger); border-color: #f5cdd2; }
.react-btn.report { }
.react-btn.report:hover { background: var(--warning-bg); color: var(--warning); }

/* ── Profil (duvar düzeni, modern yorum) ───────────────────── */
.fb-cover {
    background:
        radial-gradient(500px 260px at 85% 20%, rgba(201, 162, 75, .25), transparent 60%),
        linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 55%, #2b4070 100%);
    background-size: cover;
    background-position: center;
    border-radius: 20px 20px 0 0;
    height: 220px;
    position: relative;
    overflow: hidden;
}
.cover-edit {
    position: absolute;
    right: 14px;
    bottom: 12px;
    display: flex;
    gap: 8px;
    z-index: 3;
}
.cover-btn {
    background: rgba(12, 20, 36, .65);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    cursor: pointer;
}
.cover-btn:hover { background: rgba(12, 20, 36, .85); color: var(--gold-light); }

/* Sürükleyerek konumlandırma */
.repos-bar {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 10px;
    background: rgba(12, 20, 36, .85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 14px;
    z-index: 8;
    white-space: nowrap;
}
.repos-bar.open { display: flex; }
.repos-bar.photo-bar {
    position: fixed;
    top: auto;
    bottom: 26px;
    z-index: 95;
    box-shadow: var(--shadow-lg);
}
.fb-cover.reposing { cursor: grab; }
.fb-cover.reposing:active { cursor: grabbing; }
.fb-cover.reposing .cover-edit { display: none; }
.fb-photo.reposing { cursor: grab; outline: 3px dashed var(--gold); outline-offset: 3px; }
.fb-photo.reposing:active { cursor: grabbing; }
.fb-photo.reposing img { pointer-events: none; }
.photo-tools {
    position: absolute;
    right: 6px;
    bottom: 6px;
    display: none;
    gap: 5px;
    z-index: 6;
}
.fb-photo:hover .photo-tools { display: flex; }
.photo-tool {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(12, 20, 36, .72);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.photo-tool:hover { background: rgba(12, 20, 36, .92); color: var(--gold-light); }
.vis-tag { font-size: 11px; opacity: .8; cursor: help; margin-left: 3px; }
.vis-panel {
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.vis-panel-title { font-weight: 700; font-size: 13.5px; color: var(--navy); margin-bottom: 4px; }
.vis-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border-soft); }
.vis-row:last-child { border-bottom: none; }
.vis-row .vis-label { flex: 1; font-size: 13.5px; font-weight: 600; }
.vis-row .vis-select { width: auto; min-width: 190px; padding: 7px 10px; }
.fb-cover::after {
    content: "⚖";
    position: absolute;
    right: 34px;
    bottom: 8px;
    font-size: 72px;
    opacity: .1;
    color: var(--gold);
}
.fb-header {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-top: none;
    border-radius: 0 0 20px 20px;
    padding: 0 26px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    position: relative; /* absolute fotoğrafın çapası */
}
.fb-header-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    /* Fotoğraf akış dışında (absolute) — yer bu boşlukla açılır,
       yükseklik fotoğraftan bağımsızdır */
    padding: 14px 0 14px 192px;
    min-height: 112px;
}
/* Klasik Facebook: boydan dikey portre.
   ABSOLUTE: başlık yüksekliğini etkilemez, kapağın üzerine ve
   gerekirse alanın dışına serbestçe sarkar. */
.fb-photo {
    position: absolute;
    left: 26px;
    top: -120px;           /* kapağın üzerine taşan kısım */
    width: 168px;
    height: 216px;         /* dikey dikdörtgen (≈3:4'ten uzun) */
    z-index: 5;            /* position:relative kapağın her zaman ÜSTÜNDE */
    border-radius: 14px;
    border: 4px solid #fff;
    box-shadow: var(--shadow-md);
    object-fit: cover;
    background: linear-gradient(145deg, var(--navy-light), var(--navy-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 44px;
    font-weight: 800;
    overflow: hidden;
}
.fb-photo img { width: 100%; height: 100%; object-fit: cover; }
.fb-name { flex: 1; min-width: 200px; padding-bottom: 6px; }
.fb-name h1 { margin: 12px 0 3px; font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.fb-name .fb-sub { color: var(--text-muted); font-size: 13.5px; }
.fb-actions { display: flex; gap: 8px; padding-bottom: 8px; flex-wrap: wrap; }

.fb-grid { display: grid; grid-template-columns: 310px 1fr; gap: 20px; align-items: start; }

/* Profil 3 sütun: yanlar yapışkan, orta duvar kayar */
.profile-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.profile-grid.has-right { grid-template-columns: 300px minmax(0, 1fr) 300px; }
.profile-sticky { position: sticky; top: 78px; }
.fb-side .card { padding: 18px; }
.fb-side h3 {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 0 0 12px;
    font-weight: 800;
}
/* Hakkında kartı: etiket ÜSTTE küçük/silik, değer ALTTA okunur — ferah tanım-listesi düzeni */
.fb-info-line { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.fb-info-line:last-child { border-bottom: none; }
.fb-info-line .lbl { display: flex; align-items: center; font-size: 10.5px; text-transform: uppercase;
    letter-spacing: .4px; color: var(--text-muted); font-weight: 700; }
.fb-info-line .val { font-size: 13.5px; color: var(--navy); line-height: 1.45; word-break: break-word; }
.vis-tag { margin-left: auto; display: inline-flex; align-items: center; color: var(--text-muted); opacity: .6; cursor: help; }
.vis-tag svg { width: 13px; height: 13px; }
.fb-friend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.fb-friend-grid a { text-align: center; font-size: 11.5px; font-weight: 600; color: var(--navy); overflow: hidden; }
.fb-friend-grid a:hover { text-decoration: none; opacity: .85; }
.fb-friend-grid .avatar, .fb-friend-grid .avatar-initials { width: 100% !important; height: 66px !important; border-radius: 12px; }

/* ── Üye kartları ──────────────────────────────────────────── */
.grid-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; font-weight: 600; }
#memberResults { transition: opacity .18s var(--ease); }
#memberResults.grid-loading { opacity: .45; pointer-events: none; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.member-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: all .2s var(--ease);
}
.member-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.member-card .m-info { flex: 1; min-width: 0; }
.member-card .m-name { font-weight: 700; font-size: 14px; color: var(--navy); display: block; }
.member-card .m-name:hover { color: var(--gold); text-decoration: none; }
.member-card .m-sub { font-size: 12px; color: var(--text-muted); }

/* ── Pazaryeri ─────────────────────────────────────────────── */
.market-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; }
.market-cats { padding: 12px; position: sticky; top: 78px; }
.market-cats a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
    transition: all .14s var(--ease);
}
.market-cats a:hover { background: var(--surface-2); text-decoration: none; }
.market-cats a.active { background: var(--gold-soft); color: #8a6a1e; }
.market-cats a .cat-count { margin-left: auto; font-size: 11px; color: var(--text-muted); font-weight: 700; }
.market-cats .subcat { padding-left: 38px; font-weight: 500; font-size: 12.5px; color: var(--text-muted); }
.market-cats .subcat:hover, .market-cats .subcat.active { color: #8a6a1e; }

.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

/* İlanlarım sekmeleri */
.mine-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.mine-tab {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 16px; border-radius: 10px; cursor: pointer;
    border: 1px solid var(--border); background: var(--surface);
    font-weight: 700; font-size: 13.5px; color: var(--text-muted); font-family: inherit;
}
.mine-tab:hover { background: var(--surface-2); }
.mine-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.mine-tab.active .badge { background: rgba(255,255,255,.2); color: #fff; }
.listing-duration-note { font-size: 12px; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 9px; padding: 9px 11px; margin-bottom: 10px; line-height: 1.5; }
.listing-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--text);
    transition: all .2s var(--ease);
    position: relative;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.listing-card .lc-img {
    height: 150px;
    background: linear-gradient(145deg, var(--surface-2), #e8edf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    overflow: hidden;
}
.listing-card .lc-img img { width: 100%; height: 100%; object-fit: cover; }
.listing-card .lc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.listing-card .lc-title {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--navy);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.listing-card .lc-price { font-weight: 800; font-size: 15.5px; color: #1f6f48; }
.listing-card .lc-meta { font-size: 11.5px; color: var(--text-muted); display: flex; justify-content: space-between; gap: 6px; }
.listing-card .lc-status {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.price-tag {
    display: inline-block;
    background: linear-gradient(135deg, #e9f7ef, #d9f0e3);
    color: #17663f;
    font-weight: 800;
    font-size: 22px;
    padding: 8px 18px;
    border-radius: 12px;
    letter-spacing: -.01em;
}

/* İlan detay galerisi */
.gallery-main {
    height: 380px;
    border-radius: var(--radius);
    background: linear-gradient(145deg, var(--surface-2), #e8edf6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    font-size: 54px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #0e1526; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs img {
    width: 72px;
    height: 56px;
    object-fit: cover;
    border-radius: 9px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .75;
    transition: all .15s var(--ease);
}
.gallery-thumbs img:hover { opacity: 1; }
.gallery-thumbs img.active { border-color: var(--gold); opacity: 1; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }

/* İlan verme formu: geniş iki sütun */
.listing-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.listing-form-side { display: flex; flex-direction: column; }
@media (max-width: 900px) { .listing-form-grid { grid-template-columns: 1fr; } }
.spec-table { width: 100%; font-size: 13.5px; border-collapse: collapse; }
.spec-table td { padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.spec-table td:first-child { color: var(--text-muted); font-weight: 600; width: 42%; }
.spec-table tr:last-child td { border-bottom: none; }

.seller-box { text-align: center; }
.seller-box .sb-name { font-weight: 800; font-size: 15px; color: var(--navy); display: block; margin-top: 8px; }
.seller-box .sb-sub { font-size: 12.5px; color: var(--text-muted); }

/* Satıcı kartı (yeniden tasarım) */
.seller-card { padding: 0; overflow: hidden; }
.seller-card .sc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
.seller-card .sc-avatar .avatar, .seller-card .sc-avatar .avatar-initials { border-color: rgba(255,255,255,.85); }
.seller-card .sc-id { min-width: 0; }
.seller-card .sc-name { font-weight: 800; font-size: 16px; color: #fff; display: block; line-height: 1.25; }
.seller-card .sc-name:hover { color: var(--gold-light); text-decoration: none; }
.seller-card .sc-title { font-size: 12.5px; color: #b9c3da; margin-top: 2px; }
.seller-card .sc-rows { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.seller-card .sc-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.seller-card .sc-row .sc-ico {
    width: 28px; height: 28px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 8px; font-size: 14px;
}
.seller-card .sc-actions { display: flex; gap: 8px; padding: 0 18px 18px; }
.fav-btn.faved { background: var(--danger-bg); color: var(--danger); border-color: #f5cdd2; }

/* Görsel yönetimi (düzenleme formu) */
.img-manage { display: flex; gap: 10px; flex-wrap: wrap; }
.img-manage .im-item { position: relative; }
.img-manage img { width: 96px; height: 74px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.img-manage .im-del {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    border: 2px solid #fff;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.img-manage .im-del:hover { background: #8f1d29; }

@media (max-width: 900px) {
    .market-grid { grid-template-columns: 1fr; }
    .market-cats { position: static; }
    .detail-grid { grid-template-columns: 1fr; }
    .gallery-main { height: 260px; }
}

/* ── Yatırımlarım ──────────────────────────────────────────── */
.pl-pos { color: var(--success) !important; }
.pl-neg { color: var(--danger) !important; }
.inv-table td, .inv-table th { white-space: nowrap; }
.inv-label { font-size: 11.5px; color: var(--text-muted); font-weight: 500; }
.type-ico {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 11px;
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
}
.type-ico.type-ico-crypto {
    background: linear-gradient(135deg, #f7931a, #d97b06);
    color: #fff;
    font-weight: 800;
    border: none;
}
.coin-wrap { display: inline-flex; align-items: center; vertical-align: middle; }
.coin-img { border-radius: 50%; vertical-align: middle; box-shadow: 0 1px 4px rgba(17, 26, 48, .25); }
.coin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    padding: 0 6px;
    border-radius: 8px;
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .03em;
    vertical-align: middle;
    box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .18), 0 1px 3px rgba(17, 26, 48, .2);
}
.day-change {
    display: inline-block;
    font-weight: 800;
    font-size: 12.5px;
    padding: 3px 10px;
    border-radius: 99px;
}
.day-change.pl-pos { background: var(--success-bg); }
.day-change.pl-neg { background: var(--danger-bg); }
.day-change.day-flat { background: #edf0f6; color: var(--text-muted); }

/* Sembol otomatik tamamlama */
.ac-wrap { position: relative; }
.ac-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 120;
    max-height: 260px;
    overflow-y: auto;
    display: none;
}
.ac-list.open { display: block; }
.ac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-soft);
    transition: background .1s var(--ease);
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.hover { background: var(--gold-soft); }
.ac-item .ac-sym {
    font-weight: 800;
    font-size: 13px;
    color: var(--navy);
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: 7px;
    padding: 3px 9px;
    min-width: 62px;
    text-align: center;
    flex-shrink: 0;
}
.ac-item .ac-name { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-empty { padding: 12px 14px; font-size: 13px; color: var(--text-muted); }
.ac-selected {
    display: none;
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--success);
}
.ac-selected.show { display: block; }

/* ── A-Sosyal: paylaşım bulutları sahnesi ──────────────────── */
.as-hero { text-align: center; padding: 18px 0 26px; }
.as-title {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -.03em;
    background: linear-gradient(115deg, var(--navy) 15%, var(--gold) 55%, var(--gold-light) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}
.as-title span { opacity: .55; }
.as-sub { color: var(--text-muted); font-size: 14.5px; font-weight: 500; margin-top: 4px; }

/* Arka plansız serbest sahne: kartlar sayfaya rastgele dağılmış
   bulutlar gibi — negatif marj + yatay kayma ile ÜST ÜSTE binerler */
.asosyal-stage {
    columns: 390px;           /* kartlar normal akış genişliğine yakın kalsın */
    column-gap: 14px;
    padding: 30px 6px 90px;
    min-height: 55vh;
}
.as-card {
    break-inside: avoid;
    margin: 0 0 var(--mb, 20px);
    transform: rotate(var(--rot)) translateX(var(--dx, 0));
    transition: transform .35s var(--ease), opacity .35s var(--ease), filter .35s var(--ease);
    animation: asDrift var(--drift) ease-in-out var(--delay) infinite alternate;
    position: relative;
    z-index: var(--z, 1);
}
@keyframes asDrift {
    from { translate: 0 -6px; }
    to   { translate: 0 6px; }
}
/* Fare sahnedeyken diğerleri sisin içine çekilir, üzerine gelinen öne çıkar */
.asosyal-stage:hover .as-card { opacity: .4; filter: saturate(.55) blur(1px); }
.asosyal-stage .as-card:hover {
    opacity: 1;
    filter: none;
    transform: rotate(0deg) translateX(var(--dx, 0)) scale(1.06);
    z-index: 60;
    animation-play-state: paused;
}
.as-card .post-card {
    margin: 0;
    box-shadow: 0 8px 26px rgba(17, 26, 48, .18);
    border: 1px solid var(--border);
}
.as-card:hover .post-card { box-shadow: 0 24px 60px rgba(17, 26, 48, .30), 0 0 0 2px rgba(201, 162, 75, .55); }

@media (max-width: 700px) {
    .as-title { font-size: 36px; }
    .asosyal-stage { padding: 20px 4px 60px; columns: 1; }
    .asosyal-stage:hover .as-card { opacity: 1; filter: none; } /* dokunmatikte sis yok */
    .as-card { transform: none; animation: none; margin: 0 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .as-card { animation: none; }
}

/* ── Şablon Merkezi ────────────────────────────────────────── */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tpl-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text);
    transition: all .2s var(--ease);
    position: relative;
}
.tpl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; border-color: rgba(201, 162, 75, .3); }
.tpl-cat {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    color: #8a6a1e;
    background: var(--gold-soft);
    padding: 3px 10px;
    border-radius: 99px;
}
.tpl-title { font-weight: 800; font-size: 15px; color: var(--navy); line-height: 1.35; }
.tpl-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.55; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tpl-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px;
    border-top: 1px solid var(--border-soft); padding-top: 10px; margin-top: 2px; }
.tpl-author { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--navy); min-width: 0; }
.tpl-author .avatar, .tpl-author .avatar-initials { flex-shrink: 0; }
.tpl-stats { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.tpl-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: "Courier New", monospace;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 16px 18px;
    margin: 0;
}
.thanks-badge {
    margin-top: 10px;
    display: inline-block;
    background: var(--gold-soft);
    color: #8a6a1e;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 99px;
}
.react-btn.active-like { background: var(--success-bg); color: var(--success); border-color: #bfe5cf; }
.react-btn.active-dislike { background: var(--danger-bg); color: var(--danger); border-color: #f2c4c9; }

/* ── Zengin metin editörü ──────────────────────────────────── */
.editor-wrap { border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.editor-wrap:focus-within { border-color: var(--gold); box-shadow: var(--ring); }
.ed-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 7px 8px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border-soft);
}
.ed-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 7px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    font-family: inherit;
}
.ed-btn:hover { background: var(--surface); border-color: var(--border); }
/* Admin içerik editörü sayfaları: geniş iki sütun (editör + ayarlar) */
.page-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.page-form-side { position: sticky; top: 20px; }
@media (max-width: 900px) { .page-form-grid { grid-template-columns: 1fr; } .page-form-side { position: static; } }
.editor-tall .ed-area { min-height: 480px; max-height: 70vh; }

.ed-area {
    min-height: 220px;
    max-height: 500px;
    overflow-y: auto;
    padding: 14px 16px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text);
    outline: none;
}
.ed-area:empty::before { content: attr(data-ph); color: var(--text-muted); }
.ed-area h2 { font-size: 20px; margin: 12px 0 6px; }
.ed-area h3 { font-size: 17px; margin: 10px 0 5px; }
.ed-area ul, .ed-area ol { padding-left: 26px; margin: 8px 0; }
.ed-area blockquote { border-left: 3px solid var(--gold); margin: 10px 0; padding: 4px 14px; color: var(--text-muted); background: var(--surface-2); }
.ed-area a { color: var(--info); }

/* Yayınlanan sayfa içeriği (sanitize edilmiş HTML) */
.page-body { font-size: 15px; line-height: 1.8; color: var(--text); }
.page-body h2 { font-size: 22px; margin: 22px 0 10px; }
.page-body h3 { font-size: 18px; margin: 18px 0 8px; }
.page-body ul, .page-body ol { padding-left: 26px; margin: 12px 0; }
.page-body blockquote { border-left: 3px solid var(--gold); margin: 14px 0; padding: 6px 16px; color: var(--text-muted); background: var(--surface-2); border-radius: 0 8px 8px 0; }
.page-body a { color: var(--info); font-weight: 600; }
.page-body p { margin: 0 0 12px; }

/* ── Emoji ikon seçici ─────────────────────────────────────── */
.icon-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; max-height: 320px; overflow-y: auto; }
.icon-pick {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid var(--border-soft);
    border-radius: 9px;
    background: var(--surface-2);
    cursor: pointer;
}
.icon-pick:hover { background: var(--gold-soft); border-color: var(--gold); transform: scale(1.1); }
.icon-cat-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin: 12px 0 6px; }

/* ── Otomatik tamamlama (genel) ────────────────────────────── */
.ac-box { position: relative; }
.ac-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 120;
    max-height: 280px;
    overflow-y: auto;
    display: none;
}
.ac-results.open { display: block; }
.ac-row { display: flex; align-items: center; gap: 10px; padding: 9px 13px; cursor: pointer; border-bottom: 1px solid var(--border-soft); }
.ac-row:last-child { border-bottom: none; }
.ac-row:hover, .ac-row.hl { background: var(--gold-soft); }
.ac-row .ac-main { font-weight: 600; font-size: 13.5px; color: var(--navy); }
.ac-row .ac-meta { font-size: 12px; color: var(--text-muted); }
.ac-row .ac-none { color: var(--text-muted); font-size: 13px; padding: 4px 0; }

/* ── Bildirim ayarları (aç/kapa satırları) ─────────────────── */
.notif-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px 20px; }
.notif-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color .15s var(--ease);
}
.notif-row:hover { border-color: var(--border); }
.notif-row .notif-ico {
    width: 38px; height: 38px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface-2); border: 1px solid var(--border-soft);
    border-radius: 10px; font-size: 18px;
}
.notif-row .notif-label { flex: 1; font-weight: 600; font-size: 14px; }
.switch { position: relative; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch-track {
    display: block; width: 44px; height: 25px;
    background: #cbd2e0; border-radius: 99px; transition: background .2s var(--ease); position: relative;
}
.switch-track::after {
    content: ""; position: absolute; top: 3px; left: 3px;
    width: 19px; height: 19px; background: #fff; border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease);
}
.switch input:checked + .switch-track { background: var(--success); }
.switch input:checked + .switch-track::after { transform: translateX(19px); }

/* ── Hata sayfası ──────────────────────────────────────────── */
.error-page { text-align: center; padding: 100px 20px; }
.error-page .code {
    font-size: 88px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--navy) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: .5;
    letter-spacing: -.04em;
}

/* ── Hareket azaltma tercihi ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ── Duyarlılık ────────────────────────────────────────────── */
@media (max-width: 1080px) {
    /* 3 sütun → 2 sütun: orta (akış) + sağ; SOL bloklar sağ sütunun ALTINA iner
       (uzun orta akışın en dibine düşmesin) — center 2 satıra yayılır */
    .home-grid3.portal {
        grid-template-columns: minmax(0, 1fr) 300px;
        grid-template-areas:
            "hero   hero"
            "center right"
            "center left";
        grid-template-rows: auto auto 1fr;
        align-items: start;
    }
    .portal > .home-col-left { position: static; }
    .portal > .home-col-right { position: static; }
}
@media (max-width: 1080px) {
    /* Profil: sağ blok sol rayın altına iner, duvar sağda uzar */
    .profile-grid.has-right { grid-template-columns: 280px minmax(0, 1fr); }
    .profile-grid.has-right .profile-center { grid-column: 2; grid-row: 1 / span 2; }
    .profile-grid.has-right .profile-col-right { grid-column: 1; position: static; }
}
@media (max-width: 900px) {
    .home-grid, .fb-grid { grid-template-columns: 1fr; }
    .profile-grid, .profile-grid.has-right { grid-template-columns: 1fr; }
    .profile-grid.has-right .profile-center { grid-column: auto; grid-row: auto; }
    .profile-sticky { position: static; }
    .fb-photo { top: -80px; width: 120px; height: 156px; font-size: 32px; left: 20px; }
    .fb-header { padding: 0 20px; }
    .fb-header-row { padding: 12px 0 12px 138px; min-height: 90px; }
    .fb-cover { height: 170px; }
    .home-grid3.portal {
        grid-template-columns: 1fr;
        grid-template-areas: "hero" "center" "right" "left";
        grid-template-rows: auto;
    }
    .home-col-side { position: static; }
    .annc-slider { height: 250px; }
    .annc-body { padding: 26px 56px 30px 26px; }
    .admin-side { width: 200px; }
}
@media (max-width: 960px) {
    /* Ana menü → soldan kayan çekmece */
    .topbar-site .nav-toggle { display: flex; margin-left: 0; }
    .topbar-inner { gap: 12px; }
    /* KRİTİK: backdrop-filter'lı ata, içindeki position:fixed çekmeceyi
       viewport yerine kendine bağlar (containing block) — mobilde kapat */
    .topbar-site {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(17, 26, 48, .98);
    }
    /* Zil + zarf mobilde de topbar'da kalır (rozetler görünür); yalnız eski çıkış butonu gizli */
    .topbar-site .user-menu .btn-logout { display: none; }
    .topbar-site .user-menu { margin-left: auto; gap: 6px; }

    .mainnav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(300px, 84vw);
        background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy-deep) 100%);
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        padding: 18px 12px;
        z-index: 70;
        transform: translateX(-105%);
        transition: transform .28s var(--ease);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    .mainnav.open { transform: translateX(0); }
    .mainnav > a {
        padding: 13px 15px;
        border-radius: 12px;
        font-size: 14.5px;
        color: #b8c2d8;
    }
    .mainnav > a::after { display: none; }
    .mainnav > a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
    .mainnav > a.active { background: var(--gold-soft); color: var(--gold-light); }
    .nav-mobile-extra {
        display: flex;
        flex-direction: column;
        gap: 3px;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, .1);
    }
    .nav-mobile-extra a, .nav-mobile-extra button {
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 13px 15px;
        border-radius: 12px;
        font-size: 14.5px;
        font-weight: 600;
        font-family: inherit;
        color: #b8c2d8;
        background: none;
        border: none;
        cursor: pointer;
        width: 100%;
        text-align: left;
    }
    .nav-mobile-extra a:hover, .nav-mobile-extra button:hover {
        background: rgba(255, 255, 255, .07);
        color: #fff;
        text-decoration: none;
    }
    /* Menü öğesi cihaz görünürlüğü: yalnız-masaüstü öğeler çekmecede gizli */
    .mainnav > .nav-desktop-only { display: none; }
}
/* Menü öğesi cihaz görünürlüğü: yalnız-mobil öğeler masaüstü menüde gizli */
@media (min-width: 961px) {
    .mainnav > .nav-mobile-only { display: none; }
    /* Uygulama ızgarasına taşınan (primary=0) öğeler masaüstü ÜST menüde gizli
       (mobil çekmecede görünmeye devam eder — ≤960'ta bu kural yok) */
    .mainnav > .nav-launcher-only { display: none; }
}
/* Mobilde launcher butonu gizli — çekmece (hamburger) zaten tüm modülleri içerir */
@media (max-width: 960px) {
    .applauncher { display: none; }
}
@media (max-width: 640px) {
    /* Dar ekranda ad + ok gizlenir; avatar tek başına dropdown'ı açar (zil/zarfa yer kalır) */
    .topbar-site .user-menu .uname, .topbar-site .user-menu .dd-caret { display: none; }
    .topbar-site .brand { font-size: 15px; }
}
@media (max-width: 760px) {
    .form-row { grid-template-columns: 1fr; }
    .admin-wrap { flex-direction: column; }
    .admin-side { width: 100%; display: flex; overflow-x: auto; padding: 8px; }
    .admin-side .side-title { display: none; }
    .admin-side a { white-space: nowrap; }
    .admin-main { padding: 18px 14px 80px; }
    .container { padding: 20px 14px 80px; }
    .hero { padding: 24px 22px; }
    .fb-photo { top: -66px; width: 98px; height: 128px; font-size: 26px; left: 16px; }
    .fb-header-row { padding: 10px 0 10px 112px; min-height: 76px; }
    .action-bar { width: calc(100% - 24px); flex-wrap: wrap; justify-content: center; bottom: 12px; }
}

/* Yönetim paneli duyarlılık */
@media (max-width: 1200px) {
    .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .chart-row { grid-template-columns: 1fr; }
    .topbar-search, .crumbs { display: none; }
}

/* ── FORUM ─────────────────────────────────────────────────── */
.forum-search { display: flex; gap: 6px; align-items: center; }
.forum-search input { padding: 8px 12px; font-size: 13.5px; width: 200px; }

/* Kategori satırları */
.forum-cat {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 150px 210px;
    gap: 14px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-soft);
    color: inherit;
    transition: background .15s var(--ease);
}
.forum-cat:last-child { border-bottom: none; }
.forum-cat:hover { background: rgba(201, 162, 75, .06); text-decoration: none; }
.fc-icon { font-size: 26px; text-align: center; }
.fc-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fc-name { font-weight: 700; font-size: 15px; color: var(--navy); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fc-desc { font-size: 12.5px; color: var(--text-muted); }
.fc-stats { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.fc-last { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fc-last-title { font-size: 12.5px; font-weight: 600; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-last-meta { font-size: 11.5px; color: var(--text-muted); }

/* Konu satırları */
.forum-topic-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 110px 150px;
    gap: 12px;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-soft);
    color: inherit;
    transition: background .15s var(--ease);
}
.forum-topic-row:last-child { border-bottom: none; }
.forum-topic-row:hover { background: rgba(201, 162, 75, .06); text-decoration: none; }
.forum-topic-row.is-pinned { background: rgba(201, 162, 75, .08); }
.ftr-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ftr-title { font-weight: 600; font-size: 14px; color: var(--navy); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ftr-meta { font-size: 12px; color: var(--text-muted); }
.ftr-stats { display: flex; gap: 10px; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.ftr-last { display: flex; flex-direction: column; font-size: 12px; color: var(--text-muted); }
.ftr-last-time { font-size: 11.5px; }

/* Mesaj kartı: sol profil şeridi + içerik */
.forum-post { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 18px; }
.forum-post.is-pending { border: 1px dashed var(--gold); background: rgba(201, 162, 75, .04); }
.fp-side { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
    border-right: 1px solid var(--border-soft); padding-right: 14px; }
.fp-name { font-weight: 700; font-size: 13.5px; color: var(--navy); }
.fp-title { font-size: 11.5px; color: var(--text-muted); }
.fp-thanks { font-size: 11.5px; color: var(--gold); font-weight: 700; }
.fp-body { min-width: 0; display: flex; flex-direction: column; }
.fp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px;
    font-size: 12px; color: var(--text-muted); margin-bottom: 10px; flex-wrap: wrap; }
.fp-actions { display: flex; gap: 10px; align-items: center; }
.fp-act { font-size: 12px; font-weight: 600; color: var(--info); background: none; border: none;
    cursor: pointer; padding: 0; font-family: inherit; }
.fp-act:hover { text-decoration: underline; }
.fp-act-danger { color: var(--danger); }
.fp-content { font-size: 14.5px; line-height: 1.7; overflow-wrap: break-word; }
.fp-content p { margin: 0 0 10px; }
.fp-content p:last-child { margin-bottom: 0; }
.fp-content ul, .fp-content ol { margin: 0 0 10px; padding-left: 22px; }
.fp-edited { font-size: 11.5px; color: var(--text-muted); font-style: italic; margin-top: 8px; }
.fp-foot { display: flex; gap: 8px; align-items: center; margin-top: 12px; padding-top: 10px;
    border-top: 1px solid var(--border-soft); }
.fp-react { background: var(--surface); border: 1px solid var(--border); border-radius: 99px;
    padding: 4px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: all .15s var(--ease); }
.fp-react:hover { border-color: var(--gold); }
.fp-react.active { background: rgba(201, 162, 75, .15); border-color: var(--gold); color: var(--navy); }
.fp-like-count { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }

/* Moderatör araç çubuğu */
.forum-modbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 16px;
    border: 1px solid rgba(201, 162, 75, .4); background: rgba(201, 162, 75, .05); }
.fmb-label { font-size: 12.5px; font-weight: 700; color: var(--navy); }

@media (max-width: 760px) {
    .forum-cat { grid-template-columns: 40px minmax(0, 1fr); }
    .fc-stats, .fc-last { display: none; }
    .forum-topic-row { grid-template-columns: 38px minmax(0, 1fr); }
    .ftr-stats, .ftr-last { display: none; }
    .forum-post { grid-template-columns: 1fr; gap: 10px; }
    .fp-side { flex-direction: row; border-right: none; border-bottom: 1px solid var(--border-soft);
        padding: 0 0 10px; gap: 10px; }
    .forum-search input { width: 130px; }
}

/* Forum onay kuyruğu kartları */
.forum-queue-item { border: 1px solid var(--border-soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.forum-queue-item:last-child { margin-bottom: 0; }
.fq-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.fq-meta { font-size: 12px; color: var(--text-muted); }
.fq-content { font-size: 13.5px; color: var(--text); background: rgba(26, 39, 68, .04);
    border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; white-space: pre-wrap; }
.fq-actions { display: flex; gap: 8px; }

/* Moderasyon açılır menüsü (konu sağ üst) */
.btn-navy { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.mod-dd { position: relative; }
.mod-dd-menu {
    display: none;
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
    min-width: 240px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 12px;
    box-shadow: var(--shadow-lg); padding: 6px;
}
.mod-dd.open .mod-dd-menu { display: block; }
.mod-dd-item {
    display: block; width: 100%; text-align: left;
    background: none; border: none; cursor: pointer; font-family: inherit;
    font-size: 13.5px; font-weight: 600; color: var(--navy);
    padding: 9px 12px; border-radius: 8px;
}
.mod-dd-item:hover { background: rgba(201, 162, 75, .12); }
.mod-dd-sep { height: 1px; background: var(--border-soft); margin: 4px 8px; }
.mod-dd-move { display: flex; gap: 6px; padding: 6px 8px; align-items: center; }
.mod-dd-move select { flex: 1; padding: 7px 9px; font-size: 12.5px; }

/* Kategori: seçim kutusu + toplu action-bar */
.ftr-wrap { display: flex; align-items: stretch; border-bottom: 1px solid var(--border-soft); }
.ftr-wrap:last-child { border-bottom: none; }
.ftr-wrap.is-pinned { background: rgba(201, 162, 75, .08); }
.ftr-wrap .forum-topic-row { flex: 1; border-bottom: none; }
.ftr-wrap.is-pinned .forum-topic-row { background: transparent; }
.ftr-check {
    display: flex; align-items: center; padding: 0 4px 0 14px; cursor: pointer;
}
.ftr-check input { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }
/* Admin kenar menü: alt bağlantılar */
.side-sub { padding-left: 34px !important; font-size: 12.8px; }
.side-group-label {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .55);
}

/* action-bar içindeki forum toplu işlem select'leri (kompakt) */
.action-bar .ab-select {
    padding: 7px 10px; font-size: 12.5px; border-radius: 9px; border: none;
    max-width: 200px; background: #fff; color: var(--navy); font-family: inherit;
}

/* Forum yan panel: rütbe + istatistikler */
.fp-rank { font-size: 11.5px; font-weight: 700; }
.fp-stats { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px;
    color: var(--text-muted); margin-top: 6px; }
.fp-stats span { white-space: nowrap; }
@media (max-width: 760px) {
    .fp-stats { flex-direction: row; gap: 10px; margin-top: 0; }
}

 .gold-text {
                    background: linear-gradient(
                        110deg, 
                        #ffd600 20%,   /* Koyu Altın */
                        #ffcc00 40%,   /* Normal Altın */
                        #ffffe0 50%,   /* Parlama (Açık Sarı/Beyaz) */
                        #ffcc00 60%,   /* Normal Altın */
                        #ffd600 80%    /* Koyu Altın */
                    );
        
                    background-size: 200% auto;
        
                    color: transparent;
                    background-clip: text;
                    -webkit-background-clip: text; 
                    animation: shine 3s linear infinite;
                }
                @keyframes shine {
                    to {
                        background-position: 200% center;
                    }
                }      


/* Composer: ifade/ikon butonları */
.composer-tool {
    background: none; border: 1px solid var(--border); border-radius: 9px;
    font-size: 16px; line-height: 1; padding: 6px 9px; cursor: pointer;
    transition: all .15s var(--ease);
}
.composer-tool:hover { border-color: var(--gold); background: rgba(201, 162, 75, .08); }

/* Profil: sosyal medya ikonları (Hakkında altı) */
.fb-social { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px;
    border-top: 1px solid var(--border-soft); }
.fb-social-ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--surface-2, rgba(26,39,68,.05)); color: var(--navy);
    border: 1px solid var(--border-soft);
    transition: all .15s var(--ease);
}
.fb-social-ic svg { width: 17px; height: 17px; }
.fb-social-ic:hover { transform: translateY(-2px); color: #fff; text-decoration: none; }
.fb-social-x:hover        { background: #000; border-color: #000; }
.fb-social-instagram:hover{ background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: #dc2743; }
.fb-social-linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.fb-social-facebook:hover { background: #1877f2; border-color: #1877f2; }
.fb-social-youtube:hover  { background: #f00; border-color: #f00; }

/* ── Yatırımlarım: mobil/dar ekran duyarlı tablo ───────────── */
.inv-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.35; }
.m-only { display: none; }     /* yalnız kompakt görünümde görünen ikinci satırlar */
.inv-menu-btn { display: none; } /* mobil ⋮ işlem menüsü butonu */
/* Masaüstü tablo ~1100px altında taşıyor → kompakt moda ERKEN geç */
@media (max-width: 1100px) {
    /* Maliyet + ayrı Alış/Günlük/K-Z sütunları gizlenir; verileri komşu hücrede alt satır olur */
    .inv-table .m-hide { display: none; }
    .inv-table .m-only { display: block; }
    table.data.inv-table th, table.data.inv-table td { padding: 8px 6px; font-size: 12.3px; }
    /* Varlık sütunu dar kalsın: rozetler gizli (⚠ kalır), tam ad tek satır + üç nokta */
    .inv-table td:first-child { max-width: 128px; }
    .inv-table td:first-child .badge-muted,
    .inv-table td:first-child .badge-info { display: none; }
    .inv-table .inv-label {
        font-size: 10.5px; max-width: 118px;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    /* Net 2 satır: K/Z yüzde satırı kompaktta gizli (Detay pop-up'ında görünür) */
    .inv-table .m-only .pl-pct { display: none; }
    /* İşlemler: üç buton yerine tek ⋮ (menü) — satır yüksekliği düşer */
    .inv-table .inv-actions { width: 44px; }
    .inv-table .inv-actions [data-sell],
    .inv-table .inv-actions [data-edit],
    .inv-table .inv-actions [data-fav-btn],
    .inv-table .inv-actions [data-del] { display: none; }
    .inv-table .inv-actions .inv-menu-btn {
        display: inline-flex; padding: 6px 10px; font-weight: 800; font-size: 15px;
    }
}

/* Telefon: sayfa/kart dolgular kısılır, tablo hücreleri iyice daraltılır — 375px'e sığar */
@media (max-width: 640px) {
    .container { padding: 14px 8px 60px; }
    .card { padding: 14px 10px; }
    /* Tüm veri tabloları telefonda sıkılaşır; .ph-hide işaretli sütunlar gizlenir */
    table.data th, table.data td { padding: 7px 4px; font-size: 11.5px; }
    table.data .ph-hide { display: none; }
    .table-wrap { border-radius: 8px; }
    table.data.inv-table th, table.data.inv-table td { padding: 7px 3px; font-size: 11.3px; }
    .inv-table td:first-child { max-width: 88px; padding-left: 6px; }
    .inv-table td:first-child > span:first-child { font-size: 13px; }
    .inv-table .coin-img { width: 16px; height: 16px; }
    .inv-table .coin-badge { min-width: 0; height: 16px; font-size: 8px; padding: 0 3px; }
    .inv-table .inv-label { font-size: 10px; max-width: 82px; }
    .inv-sub { font-size: 10px; }
    .inv-table .inv-actions { width: 34px; padding-right: 4px; }
    .inv-table .inv-actions .inv-menu-btn { padding: 4px 7px; font-size: 14px; }
    /* Başlıklar sarabilsin ("Güncel (birim)" iki satıra iner), rozetler küçülür */
    table.data.inv-table th { white-space: normal; line-height: 1.15; }
    .inv-table .day-change { font-size: 10px; padding: 1px 5px; }
    /* ≈ TL karşılığı satırı telefonda gizli (Detay pop-up'ında görünür) */
    .inv-table .inv-try { display: none; }
}

/* ── Özel Mesajlaşma ───────────────────────────────────────── */
.msg-row {
    display: flex; gap: 12px; align-items: center;
    padding: 13px 18px; border-bottom: 1px solid var(--border-soft);
    color: inherit; transition: background .15s var(--ease);
}
.msg-row:last-child { border-bottom: none; }
.msg-row:hover { background: rgba(201, 162, 75, .06); text-decoration: none; }
.msg-row.has-unread { background: rgba(26, 39, 68, .04); }
.mr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mr-name { font-weight: 700; font-size: 14px; color: var(--navy); }
.has-unread .mr-name { font-weight: 800; }
.mr-preview { font-size: 12.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.has-unread .mr-preview { color: var(--text); font-weight: 600; }
.mr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.mr-time { font-size: 11.5px; color: var(--text-muted); }
.mr-badge {
    background: var(--gold); color: var(--navy-deep); font-size: 11px; font-weight: 800;
    border-radius: 99px; padding: 1px 8px;
}

.msg-thread-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.msg-thread {
    height: 55vh; min-height: 320px; overflow-y: auto;
    padding: 18px; display: flex; flex-direction: column; gap: 8px;
    background: rgba(26, 39, 68, .02);
}
.msg-empty { text-align: center; color: var(--text-muted); font-size: 13.5px; margin: auto; }
.msg-bubble-row { display: flex; }
.msg-bubble-row.mine { justify-content: flex-end; }
.msg-bubble {
    max-width: 72%; padding: 9px 13px; border-radius: 16px;
    background: var(--surface); border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
}
.msg-bubble-row.mine .msg-bubble {
    background: var(--navy); color: #fff; border-color: var(--navy);
    border-bottom-right-radius: 5px;
}
.msg-bubble-row:not(.mine) .msg-bubble { border-bottom-left-radius: 5px; }
.mb-body { font-size: 14px; line-height: 1.55; overflow-wrap: break-word; white-space: pre-wrap; }
.mb-time { font-size: 10.5px; opacity: .65; margin-top: 3px; text-align: right; }
.msg-compose {
    display: flex; gap: 8px; padding: 12px 14px; align-items: flex-end;
    border-top: 1px solid var(--border-soft);
}
.msg-compose textarea {
    flex: 1; resize: none;
    min-height: 46px; max-height: 160px; /* yazdıkça JS ile büyür — tam metin görünür */
    overflow-y: auto; line-height: 1.5;
}
.msg-compose .btn { padding: 10px 16px; font-size: 16px; }
.msg-deny { padding: 14px 18px; text-align: center; color: var(--text-muted); font-size: 13.5px;
    border-top: 1px solid var(--border-soft); background: rgba(201, 162, 75, .05); }

@media (max-width: 640px) {
    .msg-bubble { max-width: 86%; }
    /* Telefonda sohbet kartı GÖRÜNÜR alana sabitlenir: dvh klavye açılınca küçülür,
       yazı kutusu büyüyünce akış alanı daralır — sayfa asla ekran dışına uzamaz */
    .msg-thread-card {
        display: flex; flex-direction: column;
        height: calc(100vh - 214px);  /* dvh desteklemeyen eski tarayıcı yedeği */
        height: calc(100dvh - 214px);
        min-height: 260px;
    }
    .msg-thread { flex: 1 1 auto; height: auto; min-height: 0; }
    .msg-compose { padding: 8px 10px; }
    .msg-compose textarea { max-height: 110px; }
    .page-head { margin-bottom: 12px; }
}

/* Profil ayarları: kart içi sekmeler (Eğitim, Sosyal Medya) */
.ptabs {
    display: flex; gap: 6px; flex-wrap: wrap;
    border-bottom: 2px solid var(--border-soft); margin-bottom: 16px; padding-bottom: 0;
}
.ptab {
    background: none; border: none; cursor: pointer; font-family: inherit;
    font-size: 13.5px; font-weight: 600; color: var(--text-muted);
    padding: 8px 14px; border-radius: 10px 10px 0 0; position: relative;
    display: inline-flex; align-items: center; gap: 5px;
    transition: color .15s var(--ease), background .15s var(--ease);
}
.ptab:hover { color: var(--navy); background: rgba(201, 162, 75, .07); }
.ptab.active { color: var(--navy); font-weight: 800; }
.ptab.active::after {
    content: ""; position: absolute; left: 8px; right: 8px; bottom: -2px;
    height: 3px; border-radius: 2px 2px 0 0; background: var(--gold);
}
.ptab-dot { color: var(--success); font-size: 10px; line-height: 1; }

/* Forum vitrini: Son Mesajlar / Son Konular / Pazar Alanı sekmeleri */
.forum-showcase { padding: 14px 18px 6px; }
.forum-showcase .ptab-panel { padding-top: 4px; }
.fw-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 120px 150px;
    gap: 10px; align-items: center;
    padding: 9px 6px; border-bottom: 1px solid var(--border-soft);
    color: inherit; transition: background .15s var(--ease);
    border-radius: 8px;
}
.fw-row:last-child { border-bottom: none; }
.fw-row:hover { background: rgba(201, 162, 75, .07); text-decoration: none; }
.fw-ico { font-size: 18px; text-align: center; }
.fw-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fw-title {
    font-size: 13.5px; font-weight: 700; color: var(--navy);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fw-meta { font-size: 11.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-stats { font-size: 12px; color: var(--text-muted); text-align: right; white-space: nowrap; }
.fw-price { font-weight: 800; color: var(--navy); font-size: 13px; }
.fw-last { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
.fw-who { font-size: 12px; font-weight: 600; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.fw-time { font-size: 11px; color: var(--text-muted); }
.fw-m-price { display: none; } /* fiyatın mobil kopyası (meta satırında) */
@media (max-width: 700px) {
    .fw-row { grid-template-columns: 28px minmax(0, 1fr) 108px; }
    .fw-stats { display: none; }            /* cevap/görüntüleme + fiyat SÜTUNU gizli */
    .fw-m-price { display: inline; font-weight: 800; color: var(--navy); } /* fiyat meta satırına iner */
}

/* ── Ana sayfa haber bloğu: sekmeli SLIDER (mynet/haber7 tarzı) ── */
.nws-slider {
    position: relative;
    height: 320px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}
.nws-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 16px 44px;
    background-size: cover;
    background-position: center;
    /* görselsiz slaytlar için lacivert zemin */
    background-color: var(--navy);
    opacity: 0;
    transition: opacity .45s ease;
    pointer-events: none;
    color: #fff;
}
.nws-slide.active { opacity: 1; pointer-events: auto; }
.nws-slide:hover { text-decoration: none; }
.nws-slide:hover .nws-title { color: var(--gold-light); }
.nws-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.nws-own {
    background: var(--gold);
    color: var(--navy-dark);
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 99px;
    box-shadow: var(--shadow-sm, 0 1px 4px rgba(0,0,0,.3));
}
.nws-time {
    margin-left: auto;
    background: rgba(10, 16, 32, .55);
    color: #dfe5f1;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 99px;
}
.nws-body { display: flex; flex-direction: column; gap: 6px; }
.nws-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nws-sum {
    font-size: 12.5px;
    line-height: 1.5;
    color: #e2e7f2;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Kapalıyken 2 satır (3em = 2 × 1.5 satır yüksekliği) görünür; hover'da
       max-height büyür → başlık yukarı kayar, özet aşağı doğru açılır.
       line-clamp SABİT 10: görünür alanı max-height yönetir ki geçiş yumuşak olsun
       (line-clamp animasyonlanamaz — değiştirilirse zıplar). */
    max-height: 3em;
    transition: max-height .35s ease;
}
.nws-slide:hover .nws-sum { max-height: 15em; } /* 10 satıra kadar açılır */
/* Açılan özete yer kalsın: hover'da üst rozetler (🕑 zaman, kurum) usulca çekilir */
.nws-top { transition: opacity .3s ease; }
.nws-slide:hover .nws-top { opacity: 0; }
/* Hover'da uzun özet görselin açık bölgelerinde de okunsun diye zemin koyulaşır */
.nws-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 16, 32, .25) 0%, rgba(10, 16, 32, .92) 70%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
.nws-slide:hover::before { opacity: 1; }
/* İçerik koyulaştırma katmanının ÜSTÜNDE kalmalı */
.nws-top, .nws-body { position: relative; }
.nws-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(10, 16, 32, .55);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    transition: background .15s;
}
.nws-arrow:hover { background: var(--gold); color: var(--navy-dark); }
.nws-prev { left: 10px; }
.nws-next { right: 10px; }
.nws-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(10, 16, 32, .72);
    overflow-x: auto;
    z-index: 3;
    scrollbar-width: none;
}
.nws-dots::-webkit-scrollbar { display: none; }
.nws-dots button {
    min-width: 26px;
    height: 22px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, .14);
    color: #cfd6e4;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}
.nws-dots button:hover { background: rgba(255, 255, 255, .3); color: #fff; }
.nws-dots button.active { background: var(--gold); color: var(--navy-dark); }
.news-src {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    padding-top: 8px;
}
@media (max-width: 640px) {
    .nws-slider { height: 250px; }
    .nws-title { font-size: 15.5px; -webkit-line-clamp: 3; }
    .nws-sum { display: none; } /* dar ekranda özet gizli, başlık öne çıkar */
    .nws-arrow { display: none; } /* telefonda kaydırma + numaralar yeter */
}

/* Kurum içi haber detay sayfası */
.news-detail { max-width: 860px; margin: 0 auto; }
.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.news-detail-title { font-size: 26px; line-height: 1.3; color: var(--navy); margin: 0 0 10px; }
.news-detail-summary {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 600;
    margin: 0 0 14px;
    padding-left: 12px;
    border-left: 3px solid var(--gold);
}
.news-detail-img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

/* Mesajlar: iki panel (sol sohbet listesi + sağ aktif sohbet) — Facebook tarzı */
.msg-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.msg-sidebar { padding: 0; overflow: hidden; }
.msg-sb-head {
    padding: 13px 16px; font-weight: 800; font-size: 14px; color: var(--navy);
    border-bottom: 1px solid var(--border-soft);
}
.msg-sb-list { max-height: calc(55vh + 76px); overflow-y: auto; }
.msg-sb-row { padding: 10px 14px; }
.msg-sb-row .mr-name { font-size: 13px; }
.msg-sb-row .mr-preview { font-size: 11.5px; }
.msg-sb-row.is-active {
    background: rgba(201, 162, 75, .12);
    box-shadow: inset 3px 0 0 var(--gold);
}
@media (max-width: 900px) {
    /* Mobilde tek panel: liste ← butonuyla (/mesajlar) */
    .msg-layout { grid-template-columns: 1fr; }
    .msg-sidebar { display: none; }
}

/* ── QUIZ (uygulama hissi) ─────────────────────────────────── */
.qz-startform { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.qz-startform select { flex: 1; min-width: 150px; }
.qz-sub-title { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
    color: var(--text-muted); margin: 14px 0 6px; }
.qz-duel-row { display: flex; justify-content: space-between; align-items: center; gap: 8px;
    padding: 9px 10px; border-radius: 10px; font-size: 13px; color: var(--navy);
    border: 1px solid var(--border-soft); margin-bottom: 6px; transition: all .15s var(--ease); }
.qz-duel-row:hover { border-color: var(--gold); text-decoration: none; background: rgba(201,162,75,.06); }
.qz-duel-row.is-active { border-color: var(--gold); background: rgba(201,162,75,.1); font-weight: 700; }
/* Hızlı Pratik formu: mod sekmeleri + kategori kutucukları */
.qz-mode { display: flex; gap: 8px; margin-bottom: 12px; }
.qz-mode-opt { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 10px; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer;
    font-size: 13px; font-weight: 700; color: var(--text-muted); transition: all .15s var(--ease); user-select: none; }
.qz-mode-opt input { accent-color: var(--gold); }
.qz-mode-opt:has(input:checked) { border-color: var(--gold); background: rgba(201,162,75,.1); color: var(--navy); }
.qz-mode-opt.is-disabled { opacity: .5; cursor: not-allowed; }
.qz-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.qz-cat-tools { display: flex; gap: 6px; flex-shrink: 0; }
.btn-xs { padding: 3px 9px; font-size: 11.5px; border-radius: 8px; }
.qz-cat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 10px; }
.qz-cat-check { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--border-soft);
    border-radius: 9px; cursor: pointer; font-size: 12.5px; transition: all .12s var(--ease); }
.qz-cat-check:has(input:checked) { border-color: var(--gold); background: rgba(201,162,75,.07); }
.qz-cat-check input { accent-color: var(--gold); flex-shrink: 0; }
.qz-cat-check .qz-cc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy); font-weight: 600; }
.qz-cat-check .qz-cat-count { font-size: 11px; color: var(--text-muted); background: var(--surface-2); border-radius: 20px; padding: 1px 7px; flex-shrink: 0; }
.qz-cat-check.is-empty { opacity: .45; cursor: not-allowed; }
.qz-practice-foot { display: flex; gap: 8px; margin-top: 12px; }
.qz-practice-foot select { flex: 1; }
@media (max-width: 480px) { .qz-cat-list { grid-template-columns: 1fr; } }
/* Sonuç ekranı: en zayıf kategori tavsiyesi */
.qz-weak { margin: 4px auto 0; max-width: 440px; padding: 10px 14px; font-size: 13.5px; font-weight: 600;
    color: #8a5a00; background: var(--warning-bg); border: 1px solid #f0d9a8; border-radius: 12px; line-height: 1.5; }

/* Soru gönderme kuralları kutusu (panelden düzenlenir) — kompakt/silik */
.qz-rules-box { font-size: 13px; color: var(--text-muted); line-height: 1.75; }
.qz-rules-box ul, .qz-rules-box ol { margin: 0; padding-left: 18px; }
.qz-rules-box p { margin: 0 0 8px; }
.qz-rules-box p:last-child { margin-bottom: 0; }

/* ── Profil/akış: quiz sonucu paylaşım kartı ─────────────── */
/* white-space:normal ŞART — .post-body pre-wrap; yoksa kart içi girintiler boşluk basar (yaşandı) */
.qz-share { white-space: normal; display: flex; align-items: center; gap: 13px; margin-top: 10px;
    padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface-2); }
.qz-share.is-won { border-color: var(--gold); background: linear-gradient(120deg, rgba(201,162,75,.13), var(--surface-2) 55%); }
.qz-share .qzs-icon { font-size: 26px; line-height: 1; flex-shrink: 0; }
.qz-share .qzs-main { flex: 1; min-width: 0; }
.qz-share .qzs-title { font-weight: 800; color: var(--navy); font-size: 14.5px; }
.qz-share .qzs-rank { font-size: 13px; color: var(--gold); font-weight: 700; margin-left: 6px; }
.qz-share .qzs-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.qz-share .qzs-sub strong { color: var(--navy); font-size: 13.5px; }
.qz-share .qzs-link { flex-shrink: 0; align-self: center; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
/* Solo mini yüzde halkası (conic-gradient, --pct değişkeni) */
.qz-share .qzs-ring { flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center; color: var(--navy); font-weight: 800; font-size: 12px;
    background: conic-gradient(var(--ring-c) calc(var(--pct) * 1%), var(--border-soft) 0); }
.qz-share .qzs-ring span { width: 38px; height: 38px; border-radius: 50%; background: var(--surface);
    display: grid; place-items: center; }
.qz-share .qzs-ring.qzs-good { --ring-c: #2e9e5b; }
.qz-share .qzs-ring.qzs-mid  { --ring-c: var(--gold); }
.qz-share .qzs-ring.qzs-low  { --ring-c: #d94f4f; }
@media (max-width: 560px) {
    .qz-share { gap: 11px; }
    .qz-share .qzs-link { display: none; } /* dar ekranda linki gizle — kart yine tıklanır değil ama sade kalır */
}
/* Paylaş butonu (sonuç ekranı / podyum) */
.qz-share-btn { display: inline-flex; align-items: center; gap: 6px; }
.qz-share-form { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }
.qz-share-form select { width: auto; }

/* ── Düello sonuç podyumu (şaa şaa'lı 🏆) ─────────────────── */
/* white-space:normal ŞART — gönderi kartında .post-body pre-wrap girintileri boşluk basar (yaşandı) */
.qz-podium-wrap { position: relative; overflow: hidden; text-align: center; white-space: normal; padding: 10px 6px 18px; margin-bottom: 16px; border-bottom: 1px solid var(--border-soft); }
/* Podyum sonrası mesaj + paylaş formu (artık podyum-wrap DIŞINDA) */
.qzp-after { text-align: center; margin-bottom: 16px; }
/* Gönderi içi podyum: kart gibi çerçevele, alt çizgi/margin sıfırla */
.qz-share-podium { margin-top: 10px; border: 1px solid var(--border-soft); border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.qz-share-podium .qz-podium-wrap { margin-bottom: 0; border-bottom: none; padding: 14px 6px 16px; }
.qzp-share-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px;
    padding: 9px 14px; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--text-muted); }
.qzp-share-foot a { font-weight: 700; white-space: nowrap; }
.qzp-title { font-size: 17px; margin-bottom: 14px; animation: qzpPop .5s var(--ease) both; }
.qzp-title strong { color: var(--gold); }
.qz-podium { display: flex; align-items: flex-end; justify-content: center; gap: 16px; }
.qzp-spot { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 96px; animation: qzpRise .6s var(--ease) both; }
.qzp-s1 { order: 2; animation-delay: .15s; }
.qzp-s2 { order: 1; animation-delay: .3s; }
.qzp-s3 { order: 3; animation-delay: .45s; }
.qzp-crown { font-size: 26px; line-height: 1; animation: qzpBounce 1.6s ease-in-out infinite; }
.qzp-ava { border-radius: 50%; display: inline-flex; }
.qzp-ava1 { box-shadow: 0 0 0 3px var(--gold), 0 0 22px rgba(201,162,75,.55); animation: qzpGlow 2s ease-in-out infinite; }
.qzp-ava2 { box-shadow: 0 0 0 3px #9aa4b2; }
.qzp-ava3 { box-shadow: 0 0 0 3px #b0793f; }
.qzp-name { font-weight: 700; font-size: 13px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* justify-content:flex-start — madalya TÜM basamaklarda üste yapışsın (yükseklikler
   96/68/52 farklı; center kullanınca uzun basamakta madalya ortalanıp aşağı kaçıyordu — yaşandı) */
.qzp-block { width: 92px; border-radius: 12px 12px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; color: #fff; padding: 10px 4px 8px; }
.qzp-b1 { height: 96px; background: linear-gradient(180deg, #d9b25c, #b08a3c); }
.qzp-b2 { height: 68px; background: linear-gradient(180deg, #a8b2c0, #7f8a99); }
.qzp-b3 { height: 52px; background: linear-gradient(180deg, #c08a4e, #96632f); }
.qzp-medal { font-size: 20px; line-height: 1; }
.qzp-score { font-weight: 800; font-size: 15px; }
.qzp-time { font-size: 11px; opacity: .85; }
.qzp-msg { margin: 14px 0 0; font-size: 14px; animation: qzpPop .5s .6s var(--ease) both; }
/* Konfeti: 18 parça — nth-child ile farklı konum/renk/gecikme */
.qz-confetti { position: absolute; inset: 0; pointer-events: none; }
.qz-confetti span { position: absolute; top: -14px; width: 8px; height: 13px; border-radius: 2px; opacity: 0; animation: qzpFall 3.2s linear infinite; }
.qz-confetti span:nth-child(4n+1) { background: var(--gold); }
.qz-confetti span:nth-child(4n+2) { background: var(--navy); }
.qz-confetti span:nth-child(4n+3) { background: #d94f4f; }
.qz-confetti span:nth-child(4n+4) { background: #4fa66f; }
.qz-confetti span:nth-child(1) { left: 4%; animation-delay: 0s; }
.qz-confetti span:nth-child(2) { left: 10%; animation-delay: 1.1s; }
.qz-confetti span:nth-child(3) { left: 16%; animation-delay: .4s; }
.qz-confetti span:nth-child(4) { left: 22%; animation-delay: 1.8s; }
.qz-confetti span:nth-child(5) { left: 28%; animation-delay: .8s; }
.qz-confetti span:nth-child(6) { left: 34%; animation-delay: 2.3s; }
.qz-confetti span:nth-child(7) { left: 40%; animation-delay: .2s; }
.qz-confetti span:nth-child(8) { left: 46%; animation-delay: 1.5s; }
.qz-confetti span:nth-child(9) { left: 52%; animation-delay: .6s; }
.qz-confetti span:nth-child(10) { left: 58%; animation-delay: 2s; }
.qz-confetti span:nth-child(11) { left: 64%; animation-delay: 1s; }
.qz-confetti span:nth-child(12) { left: 70%; animation-delay: .3s; }
.qz-confetti span:nth-child(13) { left: 76%; animation-delay: 1.7s; }
.qz-confetti span:nth-child(14) { left: 82%; animation-delay: .9s; }
.qz-confetti span:nth-child(15) { left: 88%; animation-delay: 2.5s; }
.qz-confetti span:nth-child(16) { left: 94%; animation-delay: 1.3s; }
.qz-confetti span:nth-child(17) { left: 7%; animation-delay: 2.8s; }
.qz-confetti span:nth-child(18) { left: 91%; animation-delay: .5s; }
@keyframes qzpFall {
    0% { opacity: 0; transform: translateY(0) rotate(0deg); }
    8% { opacity: 1; }
    100% { opacity: .15; transform: translateY(300px) rotate(340deg); }
}
@keyframes qzpRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes qzpPop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
@keyframes qzpBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes qzpGlow {
    0%, 100% { box-shadow: 0 0 0 3px var(--gold), 0 0 16px rgba(201,162,75,.45); }
    50% { box-shadow: 0 0 0 3px var(--gold), 0 0 30px rgba(201,162,75,.8); }
}
@media (prefers-reduced-motion: reduce) {
    .qz-confetti { display: none; }
    .qzp-spot, .qzp-title, .qzp-msg { animation: none; }
    .qzp-crown, .qzp-ava1 { animation: none; }
}
@media (max-width: 640px) {
    .qz-podium { gap: 8px; }
    .qzp-spot { min-width: 0; flex: 1; max-width: 120px; }
    .qzp-block { width: 100%; }
    .qzp-name { font-size: 12px; max-width: 100px; }
}

/* Kategori performans çubukları */
.qz-catrow { display: grid; grid-template-columns: minmax(0,1fr) 120px 110px; gap: 10px;
    align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.qz-catrow:last-child { border-bottom: none; }
.qz-catbar { height: 8px; border-radius: 5px; background: rgba(26,39,68,.08); overflow: hidden; }
.qz-catbar-fill { height: 100%; border-radius: 5px; }
.qz-catbar-fill.good { background: var(--success); }
.qz-catbar-fill.mid  { background: var(--gold); }
.qz-catbar-fill.low  { background: var(--danger); }
.qz-catpct { text-align: right; font-weight: 700; color: var(--navy); }
.qz-catpct small { color: var(--text-muted); font-weight: 400; }

/* Oyun ekranı */
.qz-app { max-width: 680px; margin: 0 auto; }
.qz-top { position: sticky; top: 64px; z-index: 20; background: var(--bg, #f4f6fb);
    padding: 8px 0 10px; }
.qz-progress { height: 8px; border-radius: 6px; background: rgba(26,39,68,.1); overflow: hidden; }
.qz-progress-fill { height: 100%; width: 0; border-radius: 6px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light)); transition: width .4s var(--ease); }
.qz-meta { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700;
    color: var(--text-muted); margin-top: 6px; }
.qz-score { color: var(--success); }
.qz-card { background: var(--surface); border: 1px solid var(--border-soft);
    border-radius: 18px; box-shadow: var(--shadow-sm); padding: 22px; }
.qz-card.qz-in { animation: qzIn .3s var(--ease); }
@keyframes qzIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.qz-cat { font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.qz-question { font-size: 16.5px; font-weight: 600; line-height: 1.6; color: var(--navy);
    margin-bottom: 18px; white-space: pre-wrap; }
.qz-options { display: flex; flex-direction: column; gap: 9px; }
.qz-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
    background: var(--surface); border: 1.5px solid var(--border); border-radius: 13px;
    padding: 13px 14px; cursor: pointer; font-family: inherit; font-size: 14.5px; line-height: 1.5;
    transition: all .15s var(--ease); }
.qz-opt:hover:not(:disabled) { border-color: var(--gold); background: rgba(201,162,75,.06); transform: translateX(3px); }
.qz-opt:disabled { cursor: default; opacity: .85; }
.qz-opt-key { flex: none; width: 30px; height: 30px; border-radius: 9px; display: inline-flex;
    align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
    background: rgba(26,39,68,.08); color: var(--navy); }
.qz-opt.is-right { border-color: var(--success); background: rgba(46,160,90,.1); opacity: 1; }
.qz-opt.is-right .qz-opt-key { background: var(--success); color: #fff; }
.qz-opt.is-wrong { border-color: var(--danger); background: rgba(200,60,60,.08); }
.qz-opt.is-wrong .qz-opt-key { background: var(--danger); color: #fff; }
.qz-feedback { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.qz-verdict { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.qz-ok { color: var(--success); }
.qz-no { color: var(--danger); }
.qz-explain { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; white-space: pre-wrap; }
.qz-next { width: 100%; justify-content: center; font-size: 15px; padding: 12px; }
/* 🚩 soru raporu: göze batmayan metin buton (Sonraki'nin altında) */
/* Rapor: soru kartının altında sağa yaslı, her zaman görünür (cevap öncesi de) */
.qz-card-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border-soft); display: flex; justify-content: flex-end; }
.qz-report {
    display: inline-flex; align-items: center; gap: 5px; background: none; cursor: pointer;
    border: 1px solid var(--border); border-radius: 20px; font-family: inherit; font-size: 12px;
    font-weight: 600; color: var(--text-muted); padding: 5px 13px; transition: all .15s var(--ease);
}
.qz-report:hover { color: var(--warning); border-color: var(--warning); background: var(--warning-bg); }
.qz-report:disabled { cursor: default; color: var(--success); border-color: #c4e9d4; background: var(--success-bg); }
/* Rapor modalı */
.qz-report-modal { position: fixed; inset: 0; z-index: 160; display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(20,28,48,.55); backdrop-filter: blur(2px); }
.qz-report-modal[hidden] { display: none; }
.qz-report-box { position: relative; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
    background: var(--surface); border-radius: 16px; padding: 22px 22px 18px; box-shadow: var(--shadow-lg); }
.qz-report-box h3 { margin: 0 0 4px; color: var(--navy); font-size: 18px; }
.qz-report-lead { margin: 0 0 14px; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.qz-report-x { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 24px;
    line-height: 1; color: var(--text-muted); cursor: pointer; padding: 2px 6px; border-radius: 8px; }
.qz-report-x:hover { background: var(--surface-2); color: var(--navy); }
.qz-report-reasons { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.qz-report-reason { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1.5px solid var(--border-soft);
    border-radius: 10px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--navy); transition: all .12s var(--ease); }
.qz-report-reason input { accent-color: var(--gold); }
.qz-report-reason:has(input:checked) { border-color: var(--gold); background: rgba(201,162,75,.08); }
.qz-report-box textarea { width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: 9px 11px;
    font-family: inherit; font-size: 13px; resize: vertical; }
.qz-copyright-box { margin-top: 10px; padding: 12px; border: 1px solid #f0d9a8; background: var(--warning-bg); border-radius: 12px; }
.qz-report-warn { margin: 0 0 8px; font-size: 12.5px; color: #8a5a00; line-height: 1.5; }
.qz-report-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.qz-loading { text-align: center; color: var(--text-muted); padding: 40px 0; }

/* Sonuç ekranı */
.qz-result { text-align: center; padding: 30px 16px; }
.qz-ring { --pct: 0; width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    background: conic-gradient(var(--gold) calc(var(--pct) * 1%), rgba(26,39,68,.08) 0);
    position: relative; }
.qz-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--bg, #f4f6fb); }
.qz-ring span { position: relative; font-size: 30px; font-weight: 800; color: var(--navy); }
.qz-ring.good { background: conic-gradient(var(--success) calc(var(--pct) * 1%), rgba(26,39,68,.08) 0); }
.qz-ring.low  { background: conic-gradient(var(--danger) calc(var(--pct) * 1%), rgba(26,39,68,.08) 0); }
.qz-result-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }

/* Sorularım kartları */
.qz-mine-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.qz-mine-meta { font-size: 12px; color: var(--text-muted); }
.qz-mine-q { font-size: 14px; font-weight: 600; color: var(--navy); }

/* Mobil: tam uygulama hissi */
@media (max-width: 640px) {
    .qz-app { max-width: none; }
    .qz-top { top: 58px; }
    .qz-card { padding: 16px; border-radius: 15px; }
    .qz-question { font-size: 15.5px; }
    .qz-opt { padding: 14px 12px; font-size: 14px; }         /* büyük dokunma hedefi */
    .qz-next { position: sticky; bottom: 10px; box-shadow: var(--shadow-lg); }
    .qz-startform select, .qz-startform .btn { width: 100%; }
    .qz-catrow { grid-template-columns: minmax(0,1fr) 80px 90px; font-size: 12px; }
}

/* ── Quiz mobil düzeltme + uygulama cilası ─────────────────── */
/* Grid sınıfla tanımlanır (inline stil mobil kuralını eziyordu — bir daha YAPMA) */
.qz-grid { grid-template-columns: 1.4fr 1fr; }
.qz-stats { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
    .qz-grid { grid-template-columns: 1fr; }
    /* Düello sayfası: aksiyon sütunu (Katıl/Başla/Davet) üste */
    .qz-grid-flip > div:last-child { order: -1; }
}
@media (max-width: 640px) {
    /* 3 istatistik kutusu yan yana kalır ama sıkılaşır (uygulama üst şeridi hissi) */
    .qz-stats { gap: 8px; }
    .qz-stats .stat-box { padding: 12px 8px; }
    .qz-stats .stat-num { font-size: 20px !important; }
    .qz-stats .stat-label { font-size: 10.5px; }
    /* Çözüm ekranı: kompakt başlık + doğru sticky hizası + alt güvenli boşluk */
    .qz-head { margin-bottom: 8px; }
    .qz-head h1 { font-size: 18px; }
    .qz-top { top: 56px; }
    .qz-app { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
    .qz-startform { flex-direction: column; align-items: stretch; }
}

/* ══════════ Kişiselleştirilebilir ana sayfa widget'ları ══════════ */
.widget-zone { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.wcard { position: relative; padding: 0; overflow: hidden; }
.wcard-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px;
    border-bottom: 1px solid var(--border-soft); background: var(--surface-2); }
.wcard-head .wdrag { cursor: grab; color: var(--text-muted); opacity: .5; font-size: 13px; line-height: 1; }
.wcard-head .wtitle { flex: 1; font-weight: 800; font-size: 13.5px; color: var(--navy); min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wcard-head .wtools { display: flex; gap: 2px; opacity: 0; transition: opacity .15s ease; }
.wcard:hover .wcard-head .wtools, .wcard:focus-within .wcard-head .wtools { opacity: 1; }
.wtool { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 14px;
    line-height: 1; padding: 4px 6px; border-radius: 7px; transition: all .12s ease; }
.wtool:hover { background: var(--surface); color: var(--navy); }
.wtool-x:hover { color: var(--danger); }
.wcard-body { padding: 14px 15px; }

.widget-add-btn { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%;
    padding: 11px; border: 1.5px dashed var(--border); border-radius: 12px; background: transparent;
    color: var(--text-muted); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
    transition: all .15s ease; }
.widget-add-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,162,75,.05); }
.widget-add-btn span { font-size: 16px; }

/* Widget katalog picker'ı */
/* Katalog: 2 sütun ızgara; ekrana sığmayınca dikey kaydırma çubuğu (max-height + overflow) */
.widget-catalog { display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    max-height: 54vh; overflow-y: auto; overscroll-behavior: contain;
    padding: 2px; margin: 0 -2px 4px; }
.wcat-item { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 12px 12px 11px; width: 100%; text-align: left;
    border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); cursor: pointer;
    font-family: inherit; transition: border-color .13s ease, background .13s ease; }
.wcat-item:hover:not([data-added="1"]) { border-color: var(--gold); background: rgba(201,162,75,.06); }
.wcat-item[data-added="1"] { opacity: .55; cursor: default; }
.wcat-ico { font-size: 22px; line-height: 1; width: 40px; height: 40px; display: grid; place-items: center;
    background: var(--surface-2); border-radius: 11px; flex-shrink: 0; }
.wcat-main { width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wcat-label { font-weight: 800; color: var(--navy); font-size: 13.5px; }
.wcat-desc { font-size: 11.5px; color: var(--text-muted); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wcat-state { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700;
    color: var(--gold); white-space: nowrap; }
.wcat-item[data-added="1"] .wcat-state { color: var(--text-muted); }
@media (max-width: 480px) { .widget-catalog { grid-template-columns: 1fr; } }

/* Namaz Vakti widget'ı */
.wg-prayer-empty { text-align: center; padding: 8px 4px; }
.wg-prayer-empty .wg-prayer-ico { font-size: 34px; }
.wg-prayer-empty p { font-size: 13px; color: var(--text-muted); margin: 6px 0 12px; }
.wgp-city { font-size: 12.5px; font-weight: 700; color: var(--text-muted); display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.wgp-hero { text-align: center; padding: 14px 10px; border-radius: 14px; margin-bottom: 12px;
    background: linear-gradient(135deg, var(--navy), #2b3d67); color: #fff; }
.wgp-next-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.wgp-next-name { font-size: 19px; font-weight: 800; margin: 2px 0 4px; font-family: Georgia, serif; }
.wgp-countdown { font-size: 30px; font-weight: 800; letter-spacing: .04em; color: var(--gold-light, #e0bd6e);
    font-variant-numeric: tabular-nums; }
.wgp-list { display: flex; flex-direction: column; gap: 2px; }
.wgp-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 11px; border-radius: 9px;
    font-size: 13px; color: var(--text-muted); }
.wgp-row b { color: var(--navy); font-variant-numeric: tabular-nums; }
.wgp-row.is-past { opacity: .5; }
.wgp-row.is-next { background: rgba(201,162,75,.14); color: var(--navy); font-weight: 700; }
.wgp-row.is-next b { color: var(--gold); }
.wgp-err { font-size: 12.5px; color: var(--danger); text-align: center; padding: 8px; }

/* Özlü Sözler widget'ı */
.wg-quotes { position: relative; text-align: center; padding: 4px 2px 2px; }
.wgq-mark { font-family: Georgia, serif; font-size: 44px; line-height: .5; color: var(--gold); opacity: .35; height: 22px; }
.wgq-text { font-family: Georgia, serif; font-size: 15.5px; font-style: italic; color: var(--navy);
    line-height: 1.55; margin: 6px 0 8px; }
.wgq-src { font-size: 12.5px; color: var(--text-muted); font-style: normal; display: block; }
.wgq-next { margin-top: 12px; background: none; border: 1px solid var(--border); border-radius: 20px;
    color: var(--text-muted); font-family: inherit; font-size: 12px; font-weight: 700; padding: 5px 14px;
    cursor: pointer; transition: all .13s ease; }
.wgq-next:hover { border-color: var(--gold); color: var(--gold); }

@media (prefers-color-scheme: dark) {
    .wgp-row.is-next b, .wgq-text { color: inherit; }
}

/* Namaz vakti: cami ikonu + görünüm seçenekleri */
.wgp-mosque { width: 40px; height: 26px; color: var(--gold-light, #e0bd6e); opacity: .95; margin: 0 auto 4px; display: block; }
.wg-prayer-empty .wg-prayer-ico .wgp-mosque { width: 56px; height: 36px; color: var(--gold); opacity: .8; }
.wgp-view-opts { display: flex; flex-direction: column; gap: 7px; }
.wgp-view-opt { display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px; border: 1.5px solid var(--border-soft);
    border-radius: 10px; cursor: pointer; transition: all .12s ease; }
.wgp-view-opt:has(input:checked) { border-color: var(--gold); background: rgba(201,162,75,.07); }
.wgp-view-opt input { accent-color: var(--gold); margin-top: 3px; }
.wgp-view-opt span { display: flex; flex-direction: column; }
.wgp-view-opt strong { font-size: 13.5px; color: var(--navy); }
.wgp-view-opt small { font-size: 11.5px; color: var(--text-muted); }

/* Resmî Tatiller widget'ı — minimal */
.wgh-next { display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); margin-bottom: 8px; }
.wgh-next-name { font-weight: 800; color: var(--navy); font-size: 14.5px; }
.wgh-next-date { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.wgh-next-days { text-align: center; flex-shrink: 0; }
.wgh-next-days b { display: block; font-size: 24px; font-weight: 800; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.wgh-next-days span { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.wgh-list { display: flex; flex-direction: column; gap: 1px; }
.wgh-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: 12.5px; color: var(--text-muted); }
.wgh-row b { color: var(--navy); white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Ortak widget yardımcıları (minimal) */
.wg-empty { font-size: 13px; color: var(--text-muted); text-align: center; margin: 0 0 10px; }
.wg-more { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--gold); }
.wg-more:hover { text-decoration: underline; }

/* Geri Sayım widget'ı — çoklu, minimal liste */
.wgc-list { display: flex; flex-direction: column; gap: 1px; }
.wgc-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px;
    border-bottom: 1px solid var(--border-soft); }
.wgc-item:last-child { border-bottom: none; }
.wgc-item-title { font-size: 13px; font-weight: 600; color: var(--navy); min-width: 0; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; }
.wgc-item-rem { font-size: 13px; font-weight: 800; color: var(--gold); white-space: nowrap; flex-shrink: 0;
    font-variant-numeric: tabular-nums; }
.wgc-item-rem.is-done { color: var(--success); }
/* Geri sayım ayar modalı satırları */
.cd-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.cd-row { display: flex; gap: 6px; align-items: center; }
.cd-row .cd-t { flex: 1; min-width: 0; }
.cd-row .cd-d { width: 130px; }
.cd-row .cd-tm { width: 92px; }
.cd-row .cd-del { flex-shrink: 0; background: none; border: 1px solid var(--border); border-radius: 8px;
    color: var(--text-muted); cursor: pointer; width: 32px; height: 34px; font-size: 13px; }
.cd-row .cd-del:hover { color: var(--danger); border-color: var(--danger); }
/* Widget sıfırla butonu (picker altı) */
.widget-reset { display: block; width: 100%; margin-top: 12px; background: none; border: none; cursor: pointer;
    font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-muted); padding: 8px; border-radius: 8px; }
.widget-reset:hover { color: var(--danger); background: var(--danger-bg, rgba(194,47,62,.08)); }

/* Günün Hukuk Terimi widget'ı */
.wg-legal { text-align: center; }
.wgl-term { font-family: Georgia, serif; font-size: 18px; font-weight: 800; color: var(--navy); }
.wgl-def { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; margin-top: 6px; }
.wg-legal .wgq-next { margin-top: 12px; }

/* Döviz/Altın widget'ı — minimal */
.wgr-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px;
    padding: 8px 2px; border-bottom: 1px solid var(--border-soft); }
.wgr-row:last-of-type { border-bottom: none; }
.wgr-name { font-size: 13px; font-weight: 600; color: var(--navy); }
.wgr-val { font-size: 13.5px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.wgr-chg { font-size: 11.5px; font-weight: 700; min-width: 62px; text-align: right; font-variant-numeric: tabular-nums; }
.wgr-err { font-size: 12px; color: var(--danger); text-align: center; padding: 6px; }

/* Hızlı Notlar widget'ı */
.wg-notes-area { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
    font-family: inherit; font-size: 13.5px; line-height: 1.6; resize: vertical; min-height: 80px; color: var(--navy); }
.wg-notes-area:focus { outline: none; border-color: var(--gold); }
.wg-notes-status { font-size: 11px; color: var(--text-muted); text-align: right; margin-top: 4px; min-height: 14px; }

/* Forum Gündemi widget'ı — minimal */
.wgf-row { display: flex; gap: 9px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.wgf-row:hover { text-decoration: none; }
.wgf-row:last-of-type { border-bottom: none; }
.wgf-ico { font-size: 16px; flex-shrink: 0; line-height: 1.4; }
.wgf-main { min-width: 0; display: flex; flex-direction: column; }
.wgf-title { font-size: 13px; font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wgf-meta { font-size: 11px; color: var(--text-muted); }

/* Günün Sorusu widget'ı */
.wgd-cat { font-size: 11.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.wgd-q { font-size: 14px; color: var(--navy); line-height: 1.5; font-weight: 600; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* Hava Durumu widget'ı */
.wg-wx-empty { text-align: center; padding: 8px 4px; }
.wg-wx-ico { font-size: 34px; line-height: 1; margin-bottom: 6px; }
.wg-wx-empty p { font-size: 12.5px; color: var(--text-muted); margin: 0 0 10px; }
.wgw-main { display: flex; align-items: center; gap: 12px; }
.wgw-ico { font-size: 40px; line-height: 1; }
.wgw-temp { font-size: 34px; font-weight: 800; color: var(--navy); letter-spacing: -1px; }
.wgw-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.wgw-text { font-size: 13px; font-weight: 600; color: var(--navy); }
.wgw-city { font-size: 11.5px; color: var(--text-muted); display: flex; align-items: center; gap: 3px; }

/* Doğum Günleri widget'ı */
.wgb-row { display: flex; gap: 9px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border-soft); }
.wgb-row:last-of-type { border-bottom: none; }
.wgb-row:hover { text-decoration: none; }
.wgb-main { min-width: 0; display: flex; flex-direction: column; flex: 1; }
.wgb-name { font-size: 13px; font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wgb-date { font-size: 11px; color: var(--text-muted); }
.wgb-when { flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--text-muted); background: var(--bg-soft, #f1f3f7);
    padding: 3px 8px; border-radius: 999px; }
.wgb-when.is-today { color: #fff; background: var(--gold); }
