/* Extracted from layouts/shared-navbar.blade.php for Vite immutable caching */
:root {
    --nb-h:         64px;
    --nb-bg:        rgba(255, 255, 255, 0.85);
    --nb-border:    rgba(15,23,42,.08);
    --nb-accent:    #5b6cf2;
    --nb-accent-bg: #eef0fe;
    --nb-text:      #0b1421;
    --nb-muted:     #475569;
    --nb-hover:     #f1f5f9;
    --nb-radius:    12px;
    --nb-ease:      .16s cubic-bezier(.4,0,.2,1);
}

.nb {
    background: var(--nb-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--nb-border);
    position: sticky; top: 0; z-index: 1000;
    top: env(safe-area-inset-top, 0px);
    min-height: var(--nb-h);
    box-sizing: border-box;
}
[data-theme="dark"] .nb {
    background: rgba(19, 28, 46, 0.85);
    border-bottom-color: var(--border);
}

.nb-inner {
    max-width: 1440px; margin: 0 auto;
    padding: 0 16px;
    display: flex; align-items: center;
    flex-wrap: nowrap;
    height: var(--nb-h); gap: 10px;
    box-sizing: border-box;
}

/* ── Logo + online dot ─────────────────────── */
.nb-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; flex-shrink: 0;
    font-weight: 800; font-size: 16px;
    color: var(--nb-text); letter-spacing: -.3px;
}
.nb-logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--nb-accent), #8b5cf6);
    border-radius: 11px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 800; color: #fff;
    box-shadow: 0 4px 12px rgba(91, 108, 242, 0.3);
    position: relative;
    overflow: visible;
}
.nb-logo-icon::after {
    content: '';
    position: absolute; bottom: -2px; right: -2px;
    width: 11px; height: 11px;
    background: #10b981;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}
.nb-logo-name { white-space: nowrap; }

/* ── Nav Links ──────────────────────────────── */
.nb-links {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 2px;
    overflow: visible !important;
}
.nb-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 7px;
    color: var(--nb-muted);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--nb-ease);
    position: relative;
}
.nb-link .ni { font-size: 13px; line-height: 1; }
.nb-link:hover  { background: var(--nb-hover); color: var(--nb-text); }
.nb-link.active {
    background: var(--nb-accent-bg);
    color: var(--nb-accent);
    font-weight: 700;
}
.nb-link .nb-chevron {
    width: 9px; height: 9px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    margin-left: 1px;
}
.nb-has-drop:hover .nb-chevron,
.nb-has-drop.is-open .nb-chevron {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--nb-accent);
}
.nb-link .nb-badge-pill {
    background: #ef4444; color: #fff;
    font-size: 9px; font-weight: 700;
    padding: 1px 5px; border-radius: 8px;
    min-width: 16px; text-align: center;
}
.nb-link .nb-dot-online {
    width: 6px; height: 6px;
    background: #10b981; border-radius: 50%;
    box-shadow: 0 0 4px #10b981;
    margin-left: 4px;
}

/* ── Submenu (Hover ile açılır, tıklanınca sabitlenir) ──────── */
.nb-has-drop { position: relative; }
.nb-subdrop {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    box-shadow: 0 18px 38px -6px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(15, 23, 42, 0.04);
    padding: 6px;
    min-width: 240px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(0.98);
    transition: opacity .18s cubic-bezier(0.16, 1, 0.3, 1), visibility .18s cubic-bezier(0.16, 1, 0.3, 1), transform .18s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.nb-subdrop::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}
[data-theme="dark"] .nb-subdrop {
    background: rgba(19, 28, 46, 0.98);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 18px 38px -6px rgba(0, 0, 0, 0.7);
}
.nb-has-drop:hover .nb-subdrop,
.nb-has-drop:focus-within .nb-subdrop,
.nb-has-drop.is-open .nb-subdrop,
.nb-has-drop.is-pinned .nb-subdrop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.nb-has-drop:hover .nb-chevron,
.nb-has-drop:focus-within .nb-chevron,
.nb-has-drop.is-open .nb-chevron,
.nb-has-drop.is-pinned .nb-chevron {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--nb-accent);
}
.nb-has-drop.is-pinned > .nb-link,
.nb-has-drop.is-open > .nb-link {
    background: var(--nb-accent-bg);
    color: var(--nb-accent);
}
.nb-sub-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.nb-sub-link:hover {
    background: #eff6ff;
    color: #1d4ed8;
    transform: translateX(2px);
}
.nb-sub-link.active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}
[data-theme="dark"] .nb-sub-link { color: #cbd5e1; }
[data-theme="dark"] .nb-sub-link:hover,
[data-theme="dark"] .nb-sub-link.active { background: #1e293b; color: #60a5fa; }

/* ── Right side ─────────────────────────────── */
.nb-right {
    display: flex; align-items: center; gap: 2px;
    flex-shrink: 0; margin-left: auto;
}

/* Theme toggle */
.nb-theme-toggle {
    position: relative;
    width: 36px; height: 36px;
    background: transparent; border: none;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--nb-muted); font-size: 18px;
    cursor: pointer;
    transition: all .15s;
    flex-shrink: 0;
}
.nb-theme-toggle:hover { background: var(--nb-hover); color: var(--nb-text); }

/* Search */
.nb-search {
    position: relative;
    flex: 1 1 120px;
    max-width: 180px;
    min-width: 85px;
    margin-left: auto;
    transition: max-width 0.2s cubic-bezier(.4,0,.2,1);
}
.nb-search:focus-within {
    max-width: 220px;
}
.nb-search-ico {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    color: var(--nb-muted); pointer-events: none;
    display: flex;
}
.nb-search-input {
    width: 100%; height: 34px; padding: 6px 30px 6px 30px;
    background: #f1f5f9; border: 1px solid transparent;
    border-radius: 9px; font-size: 12px; font-family: inherit;
    color: var(--nb-text); transition: all var(--nb-ease);
}
.nb-search-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--nb-accent);
    box-shadow: 0 0 0 3px rgba(91, 108, 242, 0.12);
}
.nb-search-input::placeholder { color: #94a3b8; font-size: 11.5px; }
.nb-search-kbd {
    position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
    background: #fff; border: 1px solid var(--nb-border);
    border-radius: 4px; padding: 1px 4px;
    font-size: 8.5px; font-weight: 600; color: var(--nb-muted);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    pointer-events: none;
    line-height: 1.2;
}
.nb-search-suggestions {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--nb-border);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
    padding: 6px;
    z-index: 70;
    display: none;
    max-height: 360px;
    overflow-y: auto;
}
[data-theme="dark"] .nb-search-suggestions { background: var(--surface); border-color: var(--border); }
.nb-search:focus-within .nb-search-suggestions { display: block; }
.nb-suggest-section {
    padding: 8px 10px 4px;
    font-size: 10px; font-weight: 700; color: var(--nb-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.nb-suggest-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 8px;
    color: var(--nb-text); text-decoration: none;
    transition: background .15s;
}
.nb-suggest-item:hover { background: #f1f5f9; }
.nb-suggest-icon {
    width: 28px; height: 28px;
    background: #f1f5f9; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}
.nb-suggest-body { flex: 1; min-width: 0; }
.nb-suggest-name { font-size: 13px; font-weight: 500; color: var(--nb-text); }
.nb-suggest-meta { font-size: 11px; color: var(--nb-muted); }
.nb-suggest-type {
    font-size: 9px; font-weight: 700;
    padding: 2px 6px; border-radius: 4px;
    background: #f1f5f9; color: var(--nb-muted);
    text-transform: uppercase;
}

/* Buttons */
.nb-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px; border-radius: 10px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    cursor: pointer; border: none; font-family: inherit;
    white-space: nowrap; transition: all var(--nb-ease);
}
.nb-btn-ghost {
    background: transparent; border: 1px solid var(--nb-border); color: var(--nb-text);
}
.nb-btn-ghost:hover { border-color: var(--nb-accent); color: var(--nb-accent); background: var(--nb-accent-bg); }
.nb-btn-primary {
    background: linear-gradient(135deg, var(--nb-accent), #4f46e5);
    color: #fff;
    box-shadow: 0 4px 12px rgba(91, 108, 242, 0.3);
}
.nb-btn-primary:hover { box-shadow: 0 6px 16px rgba(91, 108, 242, 0.4); transform: translateY(-1px); }
.nb-btn-sm { padding: 7px 12px; font-size: 12px; }

/* Icon btn */
.nb-icon-btn {
    position: relative; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: none; border-radius: 10px; background: transparent;
    cursor: pointer; color: var(--nb-muted); text-decoration: none;
    transition: all .15s;
    flex-shrink: 0;
}
.nb-icon-btn:hover { background: var(--nb-hover); color: var(--nb-text); }
.nb-icon-btn .nb-dot {
    position: absolute; top: 8px; right: 9px;
    width: 9px; height: 9px;
    background: #ef4444;
    border: 2px solid #fff; border-radius: 50%;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}
.nb-icon-btn .nb-dot.is-green { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }
[data-theme="dark"] .nb-icon-btn .nb-dot { border-color: var(--surface); }

/* Notification badge (sphere) */
.nb-badge {
    position: absolute; top: 2px; right: 2px;
    min-width: 16px; height: 16px;
    background: #ef4444; color: #fff;
    border-radius: 50%; font-size: 9px; font-weight: 700;
    display: none; align-items: center; justify-content: center;
    padding: 0 3px; line-height: 1;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.5);
    pointer-events: none;
    z-index: 10;
}
.nb-badge.is-visible { display: flex; }
[data-theme="dark"] .nb-badge { border-color: var(--surface); }

/* Dropdown base */
.nb-drop { position: relative; }
.nb-drop-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 380px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.05);
    z-index: 70;
    display: none;
    overflow: hidden;
}
@media (max-width: 480px) {
    .nb-drop-menu {
        position: fixed !important;
        top: 60px !important;
        left: 10px !important;
        right: 10px !important;
        min-width: auto !important;
        max-width: calc(100vw - 20px) !important;
        width: auto !important;
    }
}
[data-theme="dark"] .nb-drop-menu { background: var(--surface); border-color: var(--border); }
.nb-drop.is-open .nb-drop-menu { display: block; }

.nb-drop-head {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    display: flex; align-items: center; justify-content: space-between;
    background: #ffffff;
}
[data-theme="dark"] .nb-drop-head { background: #182238; border-bottom-color: var(--border); }
.nb-drop-title {
    font-size: 13.5px; font-weight: 800; color: #0f172a;
    display: flex; align-items: center; gap: 8px;
}
.nb-drop-title .nb-drop-count {
    background: #2563eb; color: #ffffff; padding: 2px 8px;
    border-radius: 999px; font-size: 10.5px; font-weight: 800;
}
.nb-drop-link {
    font-size: 12px; font-weight: 700; color: #2563eb;
    cursor: pointer; background: none; border: none; font-family: inherit;
    transition: opacity 0.15s;
}
.nb-drop-link:hover { opacity: 0.75; text-decoration: underline; }

.nb-drop-body {
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.nb-drop-body::-webkit-scrollbar { width: 5px; }
.nb-drop-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.nb-drop-empty {
    padding: 36px 20px; text-align: center;
    color: #64748b; font-size: 13px; font-weight: 500;
}
.nb-drop-empty .icon { font-size: 32px; margin-bottom: 8px; }
.nb-drop-foot {
    padding: 11px 16px;
    border-top: 1px solid #f1f5f9;
    text-align: center; background: #f8fafc;
}
[data-theme="dark"] .nb-drop-foot { background: #182238; border-top-color: var(--border); }
.nb-drop-foot a {
    font-size: 12.5px; font-weight: 700; color: #2563eb;
    text-decoration: none;
}
.nb-drop-foot a:hover { text-decoration: underline; }

/* Notification & Message item */
.nb-notif-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    text-decoration: none; color: inherit;
    background: #ffffff;
}
[data-theme="dark"] .nb-notif-item { border-bottom-color: var(--border); background: transparent; }
.nb-notif-item:last-child { border-bottom: none; }
.nb-notif-item:hover { background: #f8fafc; }
[data-theme="dark"] .nb-notif-item:hover { background: #1e293b; }
.nb-notif-item.is-unread { background: #f0f7ff; }
[data-theme="dark"] .nb-notif-item.is-unread { background: #1e2540; }

.nb-notif-icon-wrap {
    width: 38px; height: 38px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.nb-msg-avatar-wrap {
    position: relative; width: 38px; height: 38px; flex-shrink: 0;
}
.nb-msg-avatar {
    width: 100%; height: 100%; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; font-weight: 800;
}
.nb-msg-online-dot {
    position: absolute; bottom: -1px; right: -1px;
    width: 10px; height: 10px; border-radius: 50%;
    background: #10b981; border: 2px solid #fff;
    box-shadow: 0 0 6px #10b981;
}

.nb-notif-content { flex: 1; min-width: 0; }
.nb-notif-row-top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; margin-bottom: 3px;
}
.nb-notif-title {
    font-size: 13px; font-weight: 800; color: #0f172a;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nb-notif-time {
    font-size: 11px; color: #94a3b8; font-weight: 600;
    white-space: nowrap; flex-shrink: 0;
}
.nb-notif-msg {
    font-size: 12px; color: #475569; line-height: 1.45;
    overflow: hidden; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.nb-notif-unread-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #2563eb; flex-shrink: 0;
    margin-top: 6px; box-shadow: 0 0 6px rgba(37, 99, 235, 0.5);
}

/* User chip + dropdown */
.nb-user { position: relative; flex-shrink: 0; }
.nb-chip {
    display: flex; align-items: center; gap: 8px;
    padding: 3px 10px 3px 3px;
    background: #f1f5f9; border: 1px solid var(--nb-border);
    border-radius: 24px;
    font-size: 12.5px; font-weight: 600;
    color: var(--nb-text); cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    margin-left: 4px;
}
.nb-chip:hover { background: #fff; border-color: var(--nb-accent); }
.nb-av {
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, var(--nb-accent), #8b5cf6);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
    position: relative;
}
.nb-av::after {
    content: ''; position: absolute; bottom: -1px; right: -1px;
    width: 9px; height: 9px;
    background: #10b981; border: 2px solid #f1f5f9;
    border-radius: 50%;
}
.nb-chip:hover .nb-av::after { border-color: #fff; }
.nb-user-info { display: flex; flex-direction: column; line-height: 1.2; }
.nb-user-name { font-size: 12.5px; font-weight: 600; color: var(--nb-text); white-space: nowrap; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.nb-user-level { font-size: 10px; color: var(--nb-muted); white-space: nowrap; }
.nb-chev { color: var(--nb-muted); transition: transform .15s; flex-shrink: 0; }
.nb-user.is-open .nb-chev { transform: rotate(180deg); }

.nb-user-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 280px;
    background: #fff;
    border: 1px solid var(--nb-border);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12), 0 8px 20px rgba(15, 23, 42, 0.06);
    z-index: 70;
    display: none;
    overflow: hidden;
}
[data-theme="dark"] .nb-user-menu { background: var(--surface); border-color: var(--border); }
.nb-user.is-open .nb-user-menu { display: block; }

/* XP bar (user dropdown header) */
.nb-user-head {
    padding: 16px;
    background: linear-gradient(135deg, var(--nb-accent), #8b5cf6);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.nb-user-head::before {
    content: ''; position: absolute;
    top: -50%; right: -30%;
    width: 80%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 60%);
}
.nb-user-head-row { position: relative; display: flex; gap: 12px; align-items: center; }
.nb-user-head-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}
.nb-user-head-name { font-size: 14px; font-weight: 700; }
.nb-user-head-level { font-size: 11px; opacity: 0.9; margin-top: 2px; }
.nb-user-xp {
    margin-top: 10px;
    height: 5px; background: rgba(255, 255, 255, 0.2);
    border-radius: 3px; overflow: hidden;
    position: relative;
}
.nb-user-xp-fill {
    height: 100%; background: #fff;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}
.nb-user-xp-text {
    font-size: 10px; opacity: 0.85; margin-top: 4px;
    display: flex; justify-content: space-between;
    position: relative;
}

.nb-user-body { padding: 6px; }
.nb-user-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; color: var(--nb-text); font-size: 13px; font-weight: 500;
    text-decoration: none; border-radius: 8px;
    transition: background .15s;
    background: none; border: none; width: 100%;
    font-family: inherit; cursor: pointer; text-align: left;
}
.nb-user-item:hover { background: #f1f5f9; }
[data-theme="dark"] .nb-user-item:hover { background: #182238; }
.nb-user-item.is-danger { color: #ef4444; }
.nb-user-item.is-danger:hover { background: #fee2e2; }
.nb-user-item .icn {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    color: var(--nb-muted); flex-shrink: 0;
}
.nb-user-item.is-danger .icn { color: #ef4444; }
.nb-user-item .nb-user-badge {
    margin-left: auto;
    background: #ef4444; color: #fff;
    border-radius: 10px; padding: 1px 6px;
    font-size: 10px; font-weight: 700;
}
.nb-div { height: 1px; background: var(--nb-border); margin: 6px 0; }

/* Mobile toggle */
.nb-toggle {
    display: none; width: 40px; height: 40px;
    align-items: center; justify-content: center;
    background: transparent; border: none; border-radius: 10px;
    cursor: pointer; color: var(--nb-muted); flex-shrink: 0;
    transition: all .15s;
}
.nb-toggle:hover { background: var(--nb-hover); color: var(--nb-text); }

/* Mobile Drawer */
.nb-drawer {
    display: none; background: #f8fafc;
    border-top: 1px solid var(--nb-border);
    padding: 12px 16px 88px;
    position: absolute; top: 100%; left: 0; right: 0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1); z-index: 999;
    max-height: calc(100vh - 64px); overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.nb-drawer.open,
.nb-drawer.is-open { display: block !important; }
@media (max-width: 768px) {
    .nb-drawer {
        background: #f8fafc;
    }
}
[data-theme="dark"] .nb-drawer {
    background: #0f172a !important;
    border-top-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .nb-m-search-input {
    background: #1e293b;
    color: #f1f5f9;
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .nb-m-section-label {
    color: #94a3b8;
}
[data-theme="dark"] .nb-ml {
    color: #cbd5e1;
}
[data-theme="dark"] .nb-ml:hover,
[data-theme="dark"] .nb-ml.is-active {
    background: rgba(91, 108, 242, 0.15);
    color: #818cf8;
}
[data-theme="dark"] .nb-m-accordion-btn {
    color: #cbd5e1;
}
[data-theme="dark"] .nb-m-accordion-btn:hover,
[data-theme="dark"] .nb-m-accordion-btn.is-active {
    background: rgba(91, 108, 242, 0.15);
    color: #818cf8;
}

/* Mobil profil kartı (en üstte, menüden ayrı) */
.nb-m-profile {
    background: linear-gradient(135deg, var(--nb-accent), #8b5cf6);
    color: #fff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
}
.nb-m-profile-row {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 10px;
}
.nb-m-profile-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px; font-weight: 700;
    overflow: hidden; flex-shrink: 0;
}
.nb-m-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nb-m-profile-info { flex: 1; min-width: 0; }
.nb-m-profile-name { font-size: 15px; font-weight: 700; line-height: 1.2; }
.nb-m-profile-level { font-size: 11px; opacity: 0.9; margin-top: 2px; }
.nb-m-profile-xp {
    height: 4px; background: rgba(255, 255, 255, 0.2);
    border-radius: 2px; overflow: hidden;
}
.nb-m-profile-xp-fill {
    height: 100%; background: #fff; border-radius: 2px;
}

/* Mobil bölüm etiketi (Menü / Hesabım) */
.nb-m-section-label {
    font-size: 10px; font-weight: 700;
    color: var(--nb-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 8px 4px 4px;
}
.nb-m-section-label:first-child { padding-top: 0; }

.nb-ml {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; min-height: 44px; color: var(--nb-muted); font-size: 14px; font-weight: 600;
    text-decoration: none; border-radius: 10px;
    background: none; border: none; width: 100%;
    font-family: inherit; cursor: pointer; text-align: left;
    transition: all .15s;
    box-sizing: border-box;
    touch-action: manipulation;
}
.nb-ml:hover, .nb-ml.is-active { background: var(--nb-accent-bg); color: var(--nb-accent); }
.nb-ml .ni { font-size: 15px; width: 20px; text-align: center; }

/* ── Mobil Akordiyon Menü ───────────────────── */
.nb-m-accordion {
    margin-bottom: 4px;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
    transition: all 0.2s ease;
}
.nb-m-accordion.is-open {
    background: #f1f5f9;
}
[data-theme="dark"] .nb-m-accordion.is-open {
    background: #182238;
}
.nb-m-accordion-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    color: var(--nb-muted);
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
    box-sizing: border-box;
}
.nb-m-accordion-btn:hover,
.nb-m-accordion-btn.is-active {
    color: var(--nb-accent);
    background: var(--nb-accent-bg);
}
.nb-m-accordion-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.nb-m-accordion-left .ni {
    font-size: 15px;
    width: 20px;
    text-align: center;
}
.nb-m-chevron {
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
    flex-shrink: 0;
}
.nb-m-accordion.is-open .nb-m-chevron {
    transform: rotate(180deg);
    color: var(--nb-accent);
    opacity: 1;
}
.nb-m-accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.nb-m-accordion.is-open .nb-m-accordion-panel {
    max-height: 500px;
}
.nb-m-accordion-inner {
    padding: 4px 8px 10px 24px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-left: 2px solid var(--nb-accent);
    margin-left: 16px;
    margin-bottom: 6px;
}
.nb-ml-sub-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-radius: 7px;
    transition: all 0.15s ease;
}
.nb-ml-sub-card:hover,
.nb-ml-sub-card.is-active {
    background: var(--nb-accent-bg);
    color: var(--nb-accent);
    font-weight: 700;
}
[data-theme="dark"] .nb-ml-sub-card { color: #94a3b8; }
.nb-ml-sub-card .sub-ic { font-size: 13px; }

.nb-mdiv { height: 1px; background: var(--nb-border); margin: 8px 0; }
.nb-m-search { position: relative; margin-bottom: 10px; }
.nb-m-search-ico {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    color: var(--nb-muted); pointer-events: none;
    display: flex;
}
.nb-m-search-input {
    width: 100%; padding: 10px 12px 10px 34px;
    background: #f1f5f9; border: 1.5px solid transparent;
    border-radius: 10px; font-size: 13.5px; font-family: inherit; color: var(--nb-text);
    box-sizing: border-box; transition: all .15s;
}
.nb-mauth { display: flex; gap: 8px; padding-top: 8px; }
.nb-mauth .nb-btn { flex: 1; justify-content: center; }

/* Mobil Menü PWA Yükle Bannerı */
.nb-m-pwa-card { margin: 8px 0 12px; }
.nb-m-pwa-btn {
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff !important; text-decoration: none !important;
    padding: 10px 14px; border-radius: 12px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.2s ease;
}
.nb-m-pwa-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35); }
.nb-m-pwa-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.nb-m-pwa-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.nb-m-pwa-title { font-size: 13px; font-weight: 700; color: #ffffff; }
.nb-m-pwa-desc { font-size: 10.5px; color: rgba(255, 255, 255, 0.85); margin-top: 2px; }
.nb-m-pwa-arrow { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.9); background: rgba(255,255,255,0.18); padding: 4px 8px; border-radius: 6px; flex-shrink: 0; }

/* Responsive */
@media (max-width: 1320px) {
    .nb-inner { gap: 8px; padding: 0 12px; }
    .nb-search { flex-basis: 120px; min-width: 85px; }
    .nb-search:focus-within { flex-basis: 160px; }
    .nb-link { padding: 5px 6px; font-size: 11.5px; gap: 3px; }
}
@media (max-width: 1150px) {
    .nb-inner { padding: 0 10px; gap: 5px; }
    .nb-search { flex-basis: 95px; min-width: 75px; }
    .nb-search:focus-within { flex-basis: 140px; }
    .nb-search-kbd { display: none; }
    .nb-search-input { padding: 6px 8px 6px 26px; }
    .nb-search-ico { left: 8px; }
    .nb-link { padding: 4px 5px; font-size: 11px; }
    .nb-link .ni { font-size: 11.5px; }
}
@media (max-width: 991px) {
    .nb { min-height: 56px; height: 56px; }
    .nb-inner { padding: 0 12px; gap: 8px; height: 56px; }
    .nb-links { display: none; }
    .nb-search { display: none; }
    .nb-user-info { display: none; }
    .nb-user-chip-svg { display: none; }
    .nb-toggle { display: flex; }
    /* Mobil drawer içindeki auth butonları görünür */
    .nb-drawer .nb-btn { display: inline-flex !important; }
    .nb-theme-toggle { width: 36px; height: 36px; }
}

@media (max-width: 768px) {
    .nb-inner { padding: 0 10px; gap: 6px; }
    .nb-logo { gap: 8px; font-size: 15px; }
    .nb-logo-icon { width: 36px; height: 36px; font-size: 16px; }
}

@media (max-width: 480px) {
    .nb-inner { padding: 0 8px; gap: 6px; }
    .nb-logo { gap: 6px; }
    .nb-logo-icon { width: 32px; height: 32px; font-size: 14px; border-radius: 9px; }
    .nb-logo-name { font-size: 14px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .nb-right { gap: 4px; }
    .nb-right .nb-btn { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
    .nb-toggle, .nb-theme-toggle, .nb-icon-btn { width: 34px; height: 34px; }
}

@media (max-width: 390px) {
    .nb-inner { padding: 0 6px; gap: 4px; }
    .nb-logo-name { font-size: 13.5px; max-width: 100px; }
    .nb-right .nb-btn-ghost { display: none; } /* Dar ekranlarda Giriş butonu çekmece ve modaldan tek tıkla ulaşılır, üst barda sadece birincil buton kalarak taşmayı önler */
    .nb-right .nb-btn-primary { padding: 5px 9px; font-size: 11.5px; }
    .nb-toggle, .nb-theme-toggle, .nb-icon-btn { width: 32px; height: 32px; }
}

@media (max-width: 340px) {
    .nb-inner { padding: 0 4px; gap: 3px; }
    .nb-logo { gap: 4px; }
    .nb-logo-icon { width: 28px; height: 28px; font-size: 13px; border-radius: 8px; }
    .nb-logo-name { font-size: 12px; max-width: 78px; }
    .nb-right { gap: 2px; }
    .nb-right .nb-btn-primary { padding: 4px 7px; font-size: 10.5px; }
    .nb-theme-toggle { display: none; } /* 340px ve altı dar ekranlarda üst barda gizlenir, çekmecede yer alır */
    .nb-toggle, .nb-icon-btn { width: 30px; height: 30px; }
}

/* Visible Focus & Accessibility */
.nb-link:focus-visible,
.nb-sub-link:focus-visible,
.nb-btn:focus-visible,
.nb-icon-btn:focus-visible,
.nb-theme-toggle:focus-visible,
.nb-toggle:focus-visible,
.nb-chip:focus-visible,
.nb-m-search-input:focus-visible,
.nb-ml:focus-visible,
.nb-m-accordion-btn:focus-visible {
    outline: 2px solid #3b82f6 !important;
    outline-offset: 2px !important;
}

/* ── App-like Mobile Bottom Navigation Bar ── */
@media (max-width: 768px) {
    :root {
        --mobile-nav-height: 60px;
        --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
        --mobile-total-bottom: calc(var(--mobile-nav-height) + var(--mobile-safe-bottom));
    }
    body {
        padding-bottom: calc(var(--mobile-total-bottom) + 16px) !important;
    }
    .app-mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: var(--mobile-nav-height) !important;
        padding-bottom: var(--mobile-safe-bottom) !important;
        box-sizing: content-box !important;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-top: 1px solid #e2e8f0 !important;
        z-index: 9999 !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05) !important;
    }
    .am-btn {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
        height: 100% !important;
        color: #64748b !important;
        text-decoration: none !important;
        background: transparent !important;
        border: none !important;
        gap: 2px !important;
        transition: all 0.15s ease !important;
        font-family: inherit !important;
        cursor: pointer !important;
    }
    .am-btn.is-active {
        color: #2563eb !important;
    }
    .am-icon {
        font-size: 18px !important;
        line-height: 1 !important;
    }
    .am-label {
        font-size: 10px !important;
        font-weight: 700 !important;
        letter-spacing: -0.01em !important;
    }
}
@media (min-width: 769px) {
    .app-mobile-bottom-nav { display: none !important; }
}

.global-announcement-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #1d4ed8 100%);
    color: #ffffff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
    z-index: 1005;
    font-size: 13.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    animation: bannerSlideDown 0.3s ease-out forwards;
}

@keyframes bannerSlideDown {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.announcement-icon {
    font-size: 18px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.announcement-text-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.announcement-title {
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    white-space: nowrap;
}

.announcement-message {
    font-size: 13px;
    color: #e0e7ff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcement-link {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    text-decoration: none;
    font-weight: 700;
    font-size: 12.5px;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.announcement-link:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
    color: #ffffff;
}

.announcement-close {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 14px;
    flex-shrink: 0;
    padding: 0;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .global-announcement-banner {
        padding: 10px 12px;
        align-items: flex-start;
        gap: 8px;
    }
    .announcement-content {
        gap: 8px;
        flex-wrap: wrap;
        align-items: flex-start;
        min-width: 0;
    }
    .announcement-text-wrap {
        flex: 1 1 calc(100% - 32px);
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        min-width: 0;
    }
    .announcement-title {
        white-space: normal;
        line-height: 1.3;
        font-size: 12.5px;
    }
    .announcement-message {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        font-size: 11.5px;
        line-height: 1.35;
        max-width: 100%;
    }
    .announcement-link {
        font-size: 11px;
        padding: 4px 10px;
        margin-top: 4px;
        margin-left: 26px;
    }
    .announcement-close {
        margin-left: 4px;
        width: 26px;
        height: 26px;
    }
    .announcement-close {
        width: 24px;
        height: 24px;
        margin-left: 8px;
    }
}

/* Prevent Google Auto Ads from injecting blank/tall ad blocks ABOVE #siteNavbar */
body > .google-auto-placed:has(~ #siteNavbar),
body > ins.adsbygoogle:has(~ #siteNavbar),
body > .google-auto-placed:first-child,
body > ins.adsbygoogle:first-child {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
