:root {
    --background: #0a0d12;
    --surface: #12161d;
    --surface-2: #191f28;
    --border: rgba(255, 255, 255, 0.08);
    --foreground: #e8eaee;
    --muted: #8b93a3;

    --accent: #4f8cff;
    --accent-soft-bg: rgba(79, 140, 255, 0.12);

    --tone-amber: #f5a623;
    --tone-amber-soft-bg: rgba(245, 166, 35, 0.12);
    --tone-sky: #38bdf8;
    --tone-sky-soft-bg: rgba(56, 189, 248, 0.12);
    --tone-pink: #f472b6;
    --tone-pink-soft-bg: rgba(244, 114, 182, 0.12);
    --tone-emerald: #34d399;
    --tone-emerald-soft-bg: rgba(52, 211, 153, 0.12);
    --tone-red: #f87171;
    --tone-red-soft-bg: rgba(248, 113, 113, 0.12);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--background);
    color: var(--foreground);
}

/* Arka plandaki yumuşak ışık lekeleri (mspnext.fun'daki blur efektine benzer) */
.glow-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.glow-bg::before,
.glow-bg::after {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.18;
}
.glow-bg::before {
    top: -160px;
    left: -160px;
    background: var(--accent);
}
.glow-bg::after {
    top: -60px;
    right: -160px;
    background: var(--tone-emerald);
}

a { color: var(--accent); }

.logo-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft-bg);
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 11px 12px;
    margin: 0 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--foreground);
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s ease-out;
}
input[type="text"]:focus, input[type="password"]:focus {
    outline: none;
    border-color: var(--accent);
}
input::placeholder { color: var(--muted); }

.btn-primary {
    width: 100%;
    padding: 11px;
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background-color 0.15s ease-out, border-color 0.15s ease-out;
}
.btn-primary:hover { background: #3f7ae8; border-color: #3f7ae8; }
.btn-primary:active { background: #3569c9; border-color: #3569c9; }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tone-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: background 0.15s ease-out, border-color 0.15s ease-out;
}
.btn-logout:hover { background: var(--tone-red-soft-bg); border-color: rgba(248, 113, 113, 0.35); }

.error, .profile-error {
    background: var(--tone-amber-soft-bg);
    color: var(--tone-amber);
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 14px;
}

/* Genel custom dropdown (ülke/sunucu seçici, animasyon seçici vb.) */
.dropdown { position: relative; margin-bottom: 6px; }
.dropdown-btn {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 10px 12px; gap: 10px;
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface-2); color: var(--foreground);
    cursor: pointer; font-size: 14px; box-sizing: border-box;
    transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}
.dropdown-btn:hover { border-color: var(--accent); }
.dropdown-btn:focus-visible, .dropdown-btn[aria-expanded="true"] {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft-bg);
}
.dropdown-btn[aria-expanded="true"] .dropdown-arrow { transform: rotate(180deg); }
.dropdown-current { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dropdown-current > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flag-icon { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.option-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
    background: var(--accent-soft-bg); color: var(--accent); font-size: 11px;
}
.dropdown-meta { font-size: 11px; text-transform: uppercase; color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; flex-shrink: 0; }
.dropdown-arrow { font-size: 10px; color: var(--muted); flex-shrink: 0; transition: transform 0.15s ease-out; }
.dropdown-listbox {
    position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; right: 0;
    max-height: 260px; overflow-y: auto;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    padding: 4px; margin: 0; list-style: none;
}
.dropdown-option {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; padding: 8px 10px; border: 0; background: none;
    color: var(--foreground); cursor: pointer; font-size: 14px; text-align: left; border-radius: 8px;
}
.dropdown-option:hover { background: rgba(255, 255, 255, 0.06); }
.dropdown-option.selected { background: var(--accent-soft-bg); color: var(--accent); }
.dropdown-option.selected .option-icon { background: rgba(255, 255, 255, 0.12); color: inherit; }
.dropdown-option-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dropdown-option-left > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(18, 22, 29, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.navbar-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.navbar-brand .logo-dot { width: 34px; height: 34px; font-size: 15px; margin-bottom: 0; }
.navbar-title { font-size: 16px; font-weight: 700; color: var(--foreground); }
.navbar-title .navbar-tld { color: var(--muted); font-weight: 500; }

.navbar-links { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; }
.navbar-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600;
    padding: 7px 12px; border-radius: 8px;
    transition: color 0.15s ease-out, background 0.15s ease-out;
}
.navbar-link:hover { color: var(--foreground); background: rgba(255, 255, 255, 0.05); }
.navbar-link.active { color: var(--accent); background: var(--accent-soft-bg); }
.navbar-link .ext-arrow { font-size: 11px; opacity: 0.7; }

.navbar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.navbar-lang {
    display: flex; align-items: center; gap: 2px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 2px;
}
.navbar-lang a {
    padding: 5px 9px; border-radius: 6px; font-size: 11px; font-weight: 700;
    color: var(--muted); text-decoration: none; letter-spacing: 0.02em;
    transition: background 0.15s ease-out, color 0.15s ease-out;
}
.navbar-lang a:hover { color: var(--foreground); }
.navbar-lang a.active { background: var(--accent); color: #fff; }
.navbar-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px 5px 6px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border);
    font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--muted);
}
.navbar-pill .flag-icon { width: 18px; height: 12px; }
.navbar-user { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.navbar-user strong { color: var(--foreground); font-weight: 600; }
.navbar-avatar { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); }

@media (max-width: 720px) {
    .navbar-links { display: none; }
}

/* Alt sekmeler (Animasyon / Kullanıcı Arama) */
.subnav {
    background: rgba(18, 22, 29, 0.6);
    border-bottom: 1px solid var(--border);
}
.subnav-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    gap: 8px;
}
.subnav-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 8px;
    font-size: 14px; font-weight: 600;
    color: var(--muted); text-decoration: none;
    transition: background 0.15s ease-out, color 0.15s ease-out;
}
.subnav-link:hover { background: rgba(255, 255, 255, 0.05); color: var(--foreground); }
.subnav-link.active { background: var(--accent-soft-bg); color: var(--accent); }
.subnav-icon { font-size: 12px; }

.page-wrap { padding: 32px 20px; }

/* Dashboard */
.container { max-width: 880px; margin: 0 auto; padding: 32px; }
.header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 18px; margin-bottom: 24px; }
.header h2 { margin: 0; font-size: 20px; }

.form-group { margin-bottom: 20px; }
.form-group > label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--foreground); }
select {
    width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 10px;
    font-size: 15px; background: var(--surface-2); color: var(--foreground); box-sizing: border-box;
}

/* ── Terminal / CMD çıktı kutusu ───────────────────────── */
.terminal {
    margin-top: 22px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    font-family: "SFMono-Regular", Consolas, "Cascadia Code", "Fira Code", monospace;
    font-size: 13px;
    animation: successPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Başlık çubuğu */
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #1e1e2e;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.terminal-dot--red    { background: #ff5f57; }
.terminal-dot--yellow { background: #febc2e; }
.terminal-dot--green  { background: #28c840; }
.terminal-title {
    margin-left: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.5px;
    flex: 1;
    text-align: center;
}

/* Gövde */
.terminal-body {
    background: #0d0d14;
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 80px;
}
.terminal-line {
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Renkler */
.t-prompt  { color: #7c6af7; font-weight: 700; margin-right: 6px; }
.t-cmd     { color: #e2e8f0; }
.t-arg     { color: #67e8f9; }
.t-muted   { color: #4b5563; font-size: 12px; }
.t-time    { margin-left: 10px; color: #374151; font-size: 11px; }
.t-success { color: #34d399; font-weight: 600; }
.t-error   { color: #f87171; font-weight: 600; }
.t-raw     { color: #6b7280; font-size: 11px; margin-top: 4px; }
.t-blink   { animation: blink 1s step-end infinite; }


/* Yanıp sönen imleç */
.terminal-cursor::after {
    content: '█';
    color: #7c6af7;
    animation: blink 1.1s step-end infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.response-box {

    background: #0d1117; color: #d1d5db; padding: 15px; border-radius: 10px;
    font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px;
    overflow-x: auto; margin-top: 15px; white-space: pre-wrap; border: 1px solid var(--border);
}
.status { font-weight: 600; margin-top: 22px; color: var(--muted); }
.badge { background: var(--surface-2); padding: 3px 8px; border-radius: 6px; font-size: 13px; font-family: monospace; color: var(--foreground); }
hr.divider { border: 0; border-top: 1px solid var(--border); margin: 25px 0; }

/* Animasyon başarı banner */
.anim-success {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--tone-emerald-soft-bg);
    border: 1px solid rgba(52, 211, 153, 0.3);
    animation: successPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes successPop {
    from { opacity: 0; transform: scale(0.95) translateY(6px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.anim-success-icon {
    font-size: 32px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.6));
}
.anim-success-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tone-emerald);
}
.anim-success-sub {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}


/* Profil kartı */
.profile-card { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.profile-avatar { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; border: 2px solid var(--border); }
.profile-info h3 { margin: 0 0 2px 0; font-size: 21px; color: var(--foreground); }
.profile-info .profile-tag { color: var(--muted); font-size: 14px; }
.profile-info .profile-uuid { color: #5a6272; font-size: 11px; font-family: monospace; margin-top: 4px; }
.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.stat-box .stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); font-weight: 600; }
.stat-box .stat-value { font-size: 15px; font-weight: 700; color: var(--foreground); margin-top: 3px; }

.profile-avatar--placeholder, .user-result-avatar--placeholder {
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); background: var(--accent-soft-bg); font-weight: 700;
}
.profile-avatar--placeholder { font-size: 26px; }

.xp-bar-track { height: 6px; border-radius: 999px; background: var(--surface); overflow: hidden; margin-top: 8px; }
.xp-bar-fill { height: 100%; background: var(--accent); border-radius: 999px; }

/* Kullanıcı arama */
.search-form { display: flex; gap: 10px; margin-bottom: 22px; }
.search-form input[type="text"] { margin-bottom: 0; }
.search-form .btn-primary { width: auto; white-space: nowrap; padding-left: 20px; padding-right: 20px; }

.search-results-count { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

.user-result-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.user-result {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
}
.user-result-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.user-result-avatar { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--surface); font-size: 16px; }
.user-result-info { min-width: 0; }
.user-result-name { font-weight: 600; color: var(--foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-result-id { font-size: 11px; color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lookup-btn {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px;
    border: 1px solid var(--border); background: var(--surface); color: var(--accent);
    font-size: 15px; cursor: pointer; transition: background 0.15s ease-out, border-color 0.15s ease-out;
}
.lookup-btn:hover { background: var(--accent-soft-bg); border-color: var(--accent); }

.detail-panel { border-top: 1px solid var(--border); padding-top: 22px; margin-top: 4px; }
.state-pill {
    margin-left: auto; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; background: var(--tone-emerald-soft-bg); color: var(--tone-emerald); flex-shrink: 0;
}
.state-pill--banned, .state-pill--suspended, .state-pill--closed { background: var(--tone-red-soft-bg); color: var(--tone-red); }
.state-pill--inactive { background: var(--tone-amber-soft-bg); color: var(--tone-amber); }

.detail-subheading { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); margin: 20px 0 10px; }
.login-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--foreground); }
.login-list li { display: flex; align-items: center; gap: 10px; }

.friend-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.friend-chip-form { display: inline-block; }
.friend-chip {
    padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2);
    color: var(--foreground); font-size: 13px; cursor: pointer; transition: background 0.15s ease-out, color 0.15s ease-out, border-color 0.15s ease-out;
}
.friend-chip:hover { background: var(--accent-soft-bg); color: var(--accent); border-color: var(--accent); }

/* ── Kullanıcı Arama – subnav panel ──────────────────────────── */
.subnav-search-wrapper {
    position: relative;
    cursor: pointer;
    user-select: none;
}
.subnav-search-wrapper .subnav-label { pointer-events: none; }

.us-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 340px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    padding: 12px;
    z-index: 100;
    backdrop-filter: blur(10px);
}
.us-panel--open { display: block; animation: usSlideIn .15s ease-out; }
@keyframes usSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.us-input-row {
    display: flex;
    gap: 8px;
}
.us-input-row input[type="text"] {
    flex: 1;
    margin: 0;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
}
.us-search-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--accent-soft-bg);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.us-search-btn:hover { background: var(--accent); color: #fff; }

/* Results */
.us-results { margin-top: 10px; }
.us-results.hidden { display: none; }

.us-count {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.us-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.us-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    transition: border-color 0.15s;
}
.us-item:hover { border-color: rgba(79,140,255,0.3); }

.us-avatar {
    width: 36px; height: 36px; border-radius: 8px;
    object-fit: cover; flex-shrink: 0;
    background: var(--surface); border: 1px solid var(--border);
}
.us-avatar--placeholder {
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); background: var(--accent-soft-bg);
    font-weight: 700; font-size: 15px;
}
.us-info { flex: 1; min-width: 0; }
.us-name { display: block; font-weight: 600; color: var(--foreground); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-uid  { display: block; font-size: 10px; color: var(--muted); font-family: monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.us-lookup-btn {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 7px;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--accent); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.us-lookup-btn:hover { background: var(--accent-soft-bg); border-color: var(--accent); }

.us-loading, .us-error, .us-empty {
    display: flex; align-items: center; gap: 8px;
    padding: 10px; font-size: 13px; color: var(--muted); border-radius: 8px;
}
.us-error { color: var(--tone-red); background: var(--tone-red-soft-bg); }

/* ── Modal ──────────────────────────────────────────────────── */
.modal {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
}
.modal.hidden { display: none; }

.modal-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.modal-content {
    position: relative; z-index: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
    animation: modalIn 0.18s ease-out;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.modal-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--foreground); }
.modal-close-btn {
    width: 30px; height: 30px; border-radius: 8px;
    border: 1px solid var(--border); background: var(--surface-2);
    color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.modal-close-btn:hover { background: var(--tone-red-soft-bg); color: var(--tone-red); border-color: rgba(248,113,113,0.35); }

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
.modal-loading {
    display: flex; align-items: center; gap: 10px;
    color: var(--muted); font-size: 14px; padding: 20px 0;
}

/* ── Spinner ─────────────────────────────────────────────────── */
.spinner {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════
   MOBİL RESPONSIVE — kapsamlı
   ════════════════════════════════════════════════════ */

/* Tablet (≤ 720px) */
@media (max-width: 720px) {

    /* Navbar */
    .navbar-inner {
        padding: 10px 16px;
        gap: 8px;
    }
    .navbar-title { font-size: 14px; }
    .navbar-brand .logo-dot { width: 30px; height: 30px; font-size: 13px; }
    .navbar-right { gap: 8px; }
    .navbar-pill { display: none; }          /* sunucu pill gizle */
    .navbar-lang { display: none; }          /* dil seçici gizle dar ekranda */
    .navbar-user { font-size: 12px; }
    .navbar-avatar { width: 24px; height: 24px; }
    .btn-logout { padding: 6px 10px; font-size: 12px; }

    /* Subnav */
    .subnav-inner { padding: 8px 16px; gap: 4px; }
    .subnav-link  { padding: 7px 10px; font-size: 13px; }

    /* Container */
    .container { padding: 20px 16px; }
    .page-wrap  { padding: 20px 12px; }

    /* Profile card */
    .profile-card { flex-direction: column; align-items: flex-start; gap: 12px; }
    .profile-avatar { width: 60px; height: 60px; }
    .profile-info h3 { font-size: 18px; }

    /* Stats grid */
    .profile-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    /* Search form */
    .search-form { flex-direction: column; gap: 8px; }
    .search-form .btn-primary { width: 100%; }

    /* User result list */
    .user-result { padding: 8px 10px; gap: 8px; }
    .user-result-avatar { width: 36px; height: 36px; }
    .user-result-name { font-size: 13px; }
    .user-result-id   { font-size: 10px; }

    /* Friend chips */
    .friend-chip-list { gap: 6px; }
    .friend-chip      { padding: 5px 10px; font-size: 12px; }

    /* Modal */
    .modal-content {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
    }
    .modal {
        align-items: flex-end;
    }
    .modal-header { padding: 14px 16px 12px; }
    .modal-body   { padding: 16px; }

    /* Header */
    .header { flex-direction: column; align-items: flex-start; gap: 8px; }

    /* Dropdown */
    .dropdown-listbox { max-height: 200px; }
}

/* Telefon (≤ 480px) */
@media (max-width: 480px) {

    /* Navbar — yalnızca logo + çıkış */
    .navbar-user strong { display: none; }
    .navbar-avatar      { display: block; }
    .navbar-inner       { padding: 8px 12px; }

    /* Subnav */
    .subnav-inner { padding: 6px 12px; }
    .subnav-icon  { font-size: 11px; }
    .subnav-link  { padding: 6px 9px; font-size: 12px; gap: 5px; }

    /* Container */
    .container  { padding: 14px 12px; border-radius: 12px; }
    .page-wrap  { padding: 12px 8px; }

    /* Stats grid: tek kolon */
    .profile-stats { grid-template-columns: repeat(2, 1fr); }

    /* Profile card */
    .profile-card     { margin-bottom: 16px; padding-bottom: 16px; }
    .profile-avatar   { width: 54px; height: 54px; border-radius: 10px; }
    .profile-info h3  { font-size: 16px; }
    .profile-tag      { font-size: 12px; }
    .profile-uuid     { font-size: 10px; }

    /* Stat box */
    .stat-box         { padding: 10px 10px; }
    .stat-box .stat-label { font-size: 10px; }
    .stat-box .stat-value { font-size: 13px; }

    /* XP bar */
    .xp-bar-track { margin-top: 6px; }

    /* Buttons */
    .btn-primary { font-size: 13px; padding: 10px; }
    .btn-logout  { padding: 5px 8px; font-size: 11px; }
    .lookup-btn  { width: 32px; height: 32px; font-size: 13px; }

    /* User result */
    .user-result        { padding: 7px 8px; }
    .user-result-avatar { width: 32px; height: 32px; border-radius: 8px; font-size: 13px; }

    /* Login list */
    .login-list li { font-size: 12px; gap: 6px; }
    .badge         { font-size: 11px; padding: 2px 6px; }

    /* Detail subheading */
    .detail-subheading { font-size: 11px; margin: 14px 0 8px; }

    /* Dropdown */
    .dropdown-btn   { padding: 9px 10px; font-size: 13px; }
    .dropdown-meta  { display: none; }   /* kod etiketini gizle dar ekranda */

    /* Modal — tam ekran */
    .modal-content  { border-radius: 12px 12px 0 0; max-height: 95vh; }
    .modal-title    { font-size: 14px; }
}


