/* =====================================================================
   LuviaMC – uygulama bileşenleri (luvia temasıyla uyumlu)
   Ziyaretçi sayfalarında luvia.css'ten SONRA, admin panelinde tek başına yüklenir.
   ===================================================================== */

/* ---- Tema değişkenleri (luvia.css ile aynı; admin paneli için de gerekli) ---- */
:root {
    --at-bg: #f2f6ff; --at-bgtop: #d9e6ff; --at-surface: #ffffff; --at-surface2: #eaf1ff; --at-line: #d8e3f8;
    --at-fg: #0f1b3d; --at-muted: #52638a; --at-a: #2f6df6; --at-edge: #1b49c4; --at-asoft: #e3ecff;
    --at-gtx: #166534; --at-gsoft: #dcf5e5; --at-ok: #22c55e;
    --at-shadow: 0 2px 4px rgba(20, 50, 120, .05), 0 14px 30px -16px rgba(20, 50, 140, .28);
    --at-display: "Baloo 2", "Nunito", system-ui, sans-serif; --at-body: Nunito, system-ui, sans-serif;
    --warn-bg: #fef3c7; --warn: #92400e; --err-bg: #fee2e2; --err: #b91c1c; --gray-bg: #eef1f7; --gray: #55607a;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --at-bg: #0d0e11; --at-bgtop: #161a24; --at-surface: #17191f; --at-surface2: #21242c; --at-line: #2d313b;
        --at-fg: #f1f2f5; --at-muted: #9a9fac; --at-a: #3b7bff; --at-edge: #2150c4; --at-asoft: #1e2638;
        --at-gtx: #4ade80; --at-gsoft: #12301f;
        --at-shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 14px 30px -16px rgba(0, 0, 0, .7);
        --warn-bg: rgba(245, 158, 11, .14); --warn: #fbbf24; --err-bg: rgba(239, 68, 68, .14); --err: #f87171;
        --gray-bg: rgba(148, 163, 184, .14); --gray: #cbd5e1;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --at-bg: #0d0e11; --at-bgtop: #161a24; --at-surface: #17191f; --at-surface2: #21242c; --at-line: #2d313b;
    --at-fg: #f1f2f5; --at-muted: #9a9fac; --at-a: #3b7bff; --at-edge: #2150c4; --at-asoft: #1e2638;
    --at-gtx: #4ade80; --at-gsoft: #12301f;
    --at-shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 14px 30px -16px rgba(0, 0, 0, .7);
    --warn-bg: rgba(245, 158, 11, .14); --warn: #fbbf24; --err-bg: rgba(239, 68, 68, .14); --err: #f87171;
    --gray-bg: rgba(148, 163, 184, .14); --gray: #cbd5e1;
    color-scheme: dark;
}

/* Uygulamanın eski değişken adları → tema değişkenleri */
:root {
    --bg: var(--at-bg); --surface: var(--at-surface); --surface-2: var(--at-surface2); --surface-3: var(--at-surface2);
    --edge: var(--at-line); --border: var(--at-line); --text: var(--at-fg); --muted: var(--at-muted);
    --primary: var(--at-a); --primary-2: var(--at-a); --primary-edge: var(--at-edge); --primary-soft: var(--at-asoft); --primary-text: var(--at-a);
    --ok-bg: var(--at-gsoft); --ok: var(--at-gtx); --info-bg: var(--at-asoft); --info: var(--at-a);
    --success: var(--at-gtx); --danger: var(--err);
    --input: var(--at-surface2); --shadow: var(--at-shadow);
    --radius: 14px; --radius-lg: 20px;
    --font-head: var(--at-display); --font: var(--at-body);
    --grad: linear-gradient(180deg, #6fb1ff, var(--at-a));
}

/* ---- Temel ---- */
* { box-sizing: border-box; }
body { margin: 0; background: var(--at-bg); color: var(--at-fg); font-family: var(--at-body); font-size: 14px; line-height: 1.5; font-weight: 600; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--at-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; }
p { font-weight: 500; }
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 4px max(16px, env(safe-area-inset-left, 0px)) 24px; }
.container h1 { font-size: 30px; } .container h2 { font-size: 22px; } .container h3 { font-size: 18px; }
.container a:not([class]), .admin-content a:not([class]), .hint a, .alert a { color: var(--at-a); }
.container a:not([class]):hover, .admin-content a:not([class]):hover { opacity: .85; }
.muted { color: var(--at-muted); }
.small { font-size: 13px; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grad-text { color: var(--at-a); }
.hl { color: #6fb1ff; }

/* ---- Butonlar (tema .at-btn görünümü) ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 20px;
    border-radius: 14px; border: 1px solid var(--at-line); border-bottom-width: 4px; background: var(--at-surface); color: var(--at-fg);
    font: 800 13px var(--at-body); cursor: pointer; white-space: nowrap; text-decoration: none;
    transition: transform .12s, border-bottom-width .12s, filter .15s;
}
.btn:hover { transform: translateY(-1px); color: var(--at-fg); }
.btn:active { transform: translateY(3px) scale(.97); border-bottom-width: 1px; }
.btn-primary { background: var(--at-a); border-color: var(--at-edge); color: #fff; }
.btn-primary:hover { color: #fff; }
.btn-light, .btn-ghost { background: var(--at-surface); color: var(--at-fg); }
.btn-light:hover, .btn-ghost:hover { background: var(--at-surface2); }
.btn-success { background: #22c55e; border-color: #15803d; color: #fff; }
.btn-danger { background: #ef4444; border-color: #b91c1c; color: #fff; }
.btn-warning { background: #f59e0b; border-color: #b45309; color: #fff; }
.btn-success:hover, .btn-danger:hover, .btn-warning:hover, .btn-discord:hover { color: #fff; }
.btn-discord { background: linear-gradient(120deg, #5865f2, #7983f5); border-color: #3c47c4; color: #fff; }
.btn-white { background: #fff; border-color: #c9d8fb; color: #1b49c4; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 12.5px; border-radius: 12px; }
.btn-xs { min-height: 28px; padding: 0 9px; font-size: 12px; border-radius: 9px; border-bottom-width: 3px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---- Sayfa başlığı ---- */
.page-head { margin: 4px 2px 22px; }
.page-head h1 { font-size: 30px; line-height: 1.15; margin: 0; color: var(--at-fg); display: flex; align-items: center; gap: 10px; }
.page-head h1 i { color: var(--at-a); font-size: .8em; }
.page-head p { margin: 6px 0 0; color: var(--at-muted); max-width: 760px; font-weight: 600; }
.breadcrumb { display: none; }

/* ---- Kartlar ---- */
.card { background: var(--at-surface); border: 1px solid var(--at-line); border-radius: 20px; padding: 22px; box-shadow: var(--at-shadow); }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 14px; }
.card-title i { color: var(--at-a); }
.panel { background: var(--at-surface); border: 1px solid var(--at-line); border-radius: 20px; overflow: hidden; box-shadow: var(--at-shadow); }
.panel-head { padding: 14px 18px; border-bottom: 1px solid var(--at-line); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.panel-head h3::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--at-a); }
.panel-head h3 i { color: var(--at-a); }
.section { margin-top: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head h2 { font-size: 20px; margin: 0; }
.eyebrow { display: inline-block; background: var(--at-a); color: #fff; font: 800 11px var(--at-body); letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 8px; border-bottom: 3px solid var(--at-edge); }

/* İki sütunlu düzen (kredi, destek, ayarlar) */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.product-detail > * { min-width: 0; }
.desc { color: var(--at-fg); font-weight: 500; }

/* İstatistik kutuları */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-box { background: var(--at-surface); border: 1px solid var(--at-line); border-radius: 18px; padding: 16px; display: flex; gap: 14px; align-items: center; box-shadow: var(--at-shadow); min-width: 0; }
.stat-box i { font-size: 18px; color: var(--at-a); width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 13px; background: var(--at-asoft); }
.stat-box b { display: block; font-family: var(--at-display); font-size: 22px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; }
.stat-box span { color: var(--at-muted); font-size: 13px; }

/* ---- Formlar ---- */
.form-group { margin-bottom: 16px; }
.form-group > label, .card label:not(.check):not(.at-field):not(.at-check) { display: block; font-size: 13px; font-weight: 800; color: var(--at-fg); margin-bottom: 7px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=datetime-local], input[type=url], input[type=search], select, textarea {
    width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--at-line); border-bottom-width: 3px;
    background: var(--at-surface2); color: var(--at-fg); font: 600 14px var(--at-body); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--at-a); box-shadow: 0 0 0 3px rgb(47 109 246 / .18); }
input::placeholder, textarea::placeholder { color: var(--at-muted); opacity: .8; }
textarea { min-height: 140px; resize: vertical; }
input[type=file] { width: 100%; padding: 10px; border-radius: 12px; border: 1.5px dashed var(--at-line); background: var(--at-surface2); color: var(--at-muted); font-family: inherit; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 700; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--at-a); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hint { font-size: 12.5px; color: var(--at-muted); margin-top: 5px; font-weight: 600; }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--at-a); }
.input-icon input { padding-left: 42px; }

/* Tema alanları (.at-field) genel input stilinden etkilenmesin */
.at-field input, .at-code input { width: auto; min-height: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.at-field input:focus { box-shadow: none; }

/* ---- Uyarılar ---- */
.flash-wrap { margin: 0 0 16px; display: grid; gap: 10px; }
.alert { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, currentColor 24%, transparent); border-bottom-width: 3px; font-size: 14px; font-weight: 700; line-height: 1.45; }
.alert::before { content: none !important; display: none !important; }
.alert i { margin-top: 3px; }
.alert-success { background: var(--at-gsoft); color: var(--at-gtx); }
.alert-danger { background: var(--err-bg); color: var(--err); }
.alert-warning { background: var(--warn-bg); color: var(--warn); }
.alert-info { background: var(--at-asoft); color: var(--at-a); }
.alert a { color: inherit; font-weight: 800; }

/* ---- Tablolar ---- */
.table-wrap { overflow-x: auto; border-radius: 20px; background: var(--at-surface); border: 1px solid var(--at-line); box-shadow: var(--at-shadow); }
.table-wrap table, .card table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap th, .table-wrap td, .card th, .card td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--at-line); vertical-align: middle; }
.table-wrap th, .card th { background: var(--at-surface2); color: var(--at-muted); font: 800 11px var(--at-body); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.table-wrap tr:last-child td, .card tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:hover { background: var(--at-surface2); }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell img { width: 30px; height: 30px; border-radius: 8px; }

/* ---- Rozetler ---- */
.role { --rc: #64748b; display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; vertical-align: middle;
    background: color-mix(in srgb, var(--rc) 16%, transparent); color: var(--rc); border: 1px solid color-mix(in srgb, var(--rc) 30%, transparent); }
html.dark .role { color: color-mix(in srgb, var(--rc) 70%, #fff); }
.at-ud-head .role { margin-top: 3px; }

/* ---- Roller sayfası ---- */
.perm-group { border: 1px solid var(--at-line); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.perm-group h4 { font-size: 13px; margin: 0 0 8px; color: var(--at-muted); text-transform: uppercase; letter-spacing: .06em; display: flex; justify-content: space-between; align-items: center; }
.perm-group h4 button { border: 0; background: none; color: var(--at-a); font: 800 11px var(--at-body); cursor: pointer; text-transform: none; letter-spacing: 0; }
.perm-group .check { font-size: 13.5px; padding: 5px 0; align-items: flex-start; line-height: 1.35; }
.perm-group .check input { flex: none; margin-top: 0; }
.perm-group .check.locked { opacity: .55; cursor: not-allowed; }
.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type=color] { width: 52px; height: 44px; padding: 4px; border-radius: 12px; border: 1px solid var(--at-line); background: var(--at-surface2); cursor: pointer; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.st-open, .st-pending { background: var(--warn-bg); color: var(--warn); }
.st-answered, .st-done, .st-paid, .st-completed { background: var(--at-gsoft); color: var(--at-gtx); }
.st-closed, .st-refunded { background: var(--gray-bg); color: var(--gray); }
.st-failed { background: var(--err-bg); color: var(--err); }
.tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 6px; margin-right: 4px; vertical-align: middle; }
.tag-pin { background: var(--at-asoft); color: var(--at-a); }
.tag-lock { background: var(--err-bg); color: var(--err); }

/* ---- Forum ---- */
.forum-cat { display: grid; grid-template-columns: 56px 1fr 120px 260px; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--at-line); }
.forum-cat:last-child { border-bottom: 0; }
.forum-cat .fi { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 21px; background: var(--at-a); color: #fff; border-bottom: 4px solid var(--at-edge); }
.forum-cat h3 { font-size: 17px; margin: 0 0 2px; }
.forum-cat h3 a { color: var(--at-fg); }
.forum-cat h3 a:hover { color: var(--at-a); }
.forum-cat p { margin: 0; color: var(--at-muted); font-size: 13.5px; }
.forum-cat .fc-count { text-align: center; }
.forum-cat .fc-count b { display: block; font-family: var(--at-display); font-size: 19px; }
.forum-cat .fc-count span { font-size: 12px; color: var(--at-muted); }
.forum-cat .fc-last { display: flex; gap: 10px; align-items: center; min-width: 0; }
.forum-cat .fc-last img { width: 34px; height: 34px; border-radius: 9px; }
.forum-cat .fc-last div { min-width: 0; }
.forum-cat .fc-last a { color: var(--at-fg); font-weight: 800; font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-cat .fc-last span { color: var(--at-muted); font-size: 12px; }
.topic-row { display: grid; grid-template-columns: 1fr 90px 90px 200px; gap: 14px; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--at-line); }
.topic-row:last-child { border-bottom: 0; }
.topic-row .tt { display: flex; gap: 12px; align-items: center; min-width: 0; }
.topic-row .tt img { width: 38px; height: 38px; border-radius: 10px; }
.topic-row .tt a { color: var(--at-fg); font-weight: 800; }
.topic-row .tt a:hover { color: var(--at-a); }
.topic-row .tt .sub { font-size: 12px; color: var(--at-muted); }
.topic-row .num { text-align: center; color: var(--at-muted); font-size: 12.5px; }
.topic-row .num b { color: var(--at-fg); display: block; font-size: 15px; }
.post { display: grid; grid-template-columns: 180px 1fr; border-bottom: 1px solid var(--at-line); }
.post:last-child { border-bottom: 0; }
.post-author { padding: 22px; text-align: center; border-right: 1px solid var(--at-line); background: var(--at-surface2); }
.post-author img { width: 84px; image-rendering: pixelated; }
.post-author .name { font-weight: 800; margin: 8px 0 4px; display: block; color: var(--at-fg); }
.post-author .info { font-size: 12px; color: var(--at-muted); margin-top: 6px; }
.post-body { padding: 22px; min-width: 0; }
.post-meta { font-size: 12px; color: var(--at-muted); margin-bottom: 12px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.post-content { overflow-wrap: anywhere; font-weight: 500; }

/* ---- Destek mesajları ---- */
.msg { display: flex; gap: 14px; margin-bottom: 16px; }
.msg img { width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; }
.msg .bubble { background: var(--at-surface); border: 1px solid var(--at-line); border-radius: 4px 18px 18px 18px; padding: 14px 16px; flex: 1; min-width: 0; overflow-wrap: anywhere; box-shadow: var(--at-shadow); font-weight: 500; }
.msg.staff .bubble { background: var(--at-asoft); border-color: color-mix(in srgb, var(--at-a) 30%, transparent); }
.msg .bubble .head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 8px; flex-wrap: wrap; font-weight: 700; }

/* ---- Profil ---- */
.profile-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.profile-head .skin { width: 110px; image-rendering: pixelated; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; overflow-x: auto; background: var(--at-surface); border: 1px solid var(--at-line); padding: 8px 10px; border-radius: 20px; box-shadow: var(--at-shadow); }
.tabs a { display: flex; align-items: center; height: 40px; padding: 0 16px; color: var(--at-muted); font-weight: 800; border-radius: 12px; white-space: nowrap; }
.tabs a:hover { background: var(--at-asoft); color: var(--at-a); }
.tabs a.active { color: #fff; background: var(--at-a); box-shadow: inset 0 -4px 0 var(--at-edge); }

/* ---- Kredi ---- */
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.amount-btn { padding: 14px 10px; border-radius: 14px; border: 1px solid var(--at-line); border-bottom-width: 4px; background: var(--at-surface2); color: var(--at-fg); font: 800 20px var(--at-display); cursor: pointer; transition: transform .12s, border-color .15s; }
.amount-btn small { display: block; font: 700 12px var(--at-body); color: var(--at-muted); }
.amount-btn:hover { border-color: var(--at-a); transform: translateY(-1px); }
.amount-btn.active { border-color: var(--at-a); border-bottom-color: var(--at-edge); background: var(--at-asoft); color: var(--at-a); }
.summary-box { background: var(--at-asoft); border-radius: 14px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; margin: 6px 0 18px; font-weight: 800; color: var(--at-a); }
.summary-box b { font-family: var(--at-display); font-size: 22px; color: var(--at-fg); }

/* ---- Diğer ---- */
.ip-copy { display: inline-flex; gap: 8px; align-items: center; background: var(--at-asoft); color: var(--at-a); border: 0; padding: 9px 14px; border-radius: 11px; cursor: pointer; font: 800 13px var(--at-body); }
.ip-copy.small { font-size: 12px; padding: 7px 12px; }
.at-pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.at-pager a { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px; display: grid; place-items: center; background: var(--at-surface2); border-bottom: 4px solid var(--at-line); font-weight: 800; color: var(--at-fg); }
.at-pager a:hover { background: var(--at-asoft); color: var(--at-a); }
.at-pager a.at-on { background: var(--at-a); border-bottom-color: var(--at-edge); color: #fff; }
.at-pager .dots { color: var(--at-muted); align-self: center; }
.empty { text-align: center; padding: 40px 20px; color: var(--at-muted); }
.empty i { font-size: 40px; margin-bottom: 12px; opacity: .5; display: block; }
.prose { font-weight: 500; }
.prose h2 { font-size: 22px; } .prose h3 { font-size: 18px; }
.prose h2, .prose h3 { margin-top: 1.3em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; list-style: revert; }
.prose li { margin-bottom: 6px; }
.prose img { border-radius: 12px; }
.prose p { margin: 0 0 .8em; }
.ck-content ul, .ck-content ol { padding-left: 22px; list-style: revert; margin: .4em 0 .8em; }
.ck-content p { margin: 0 0 .7em; }
.ck-content h2 { font-size: 22px; margin: 1em 0 .4em; } .ck-content h3 { font-size: 18px; margin: 1em 0 .4em; }
.ck-content > :first-child { margin-top: 0; }
.ck-content a { color: var(--at-a); }
.big-code { font-family: var(--at-display); font-size: 110px; line-height: 1; color: var(--at-a); margin: 10px 0; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(140px); background: var(--at-a); color: #fff; padding: 12px 20px; border-radius: 14px; border-bottom: 4px solid var(--at-edge); font-weight: 800; z-index: 200; transition: .3s; max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---- Tema eklemeleri: kullanıcı menüsü, mod kutuları, kategori ikonları ---- */
.at-ud[hidden] { display: none; }
.at-user .at-user-btn span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.at-bal-chip { flex: none; display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border-radius: 12px; background: var(--at-asoft); color: var(--at-a); font: 800 13px var(--at-body); white-space: nowrap; }
.at-bal-chip:hover { transform: translateY(-1px); }
.at-cat-ic { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; color: rgba(255, 255, 255, .85); background: linear-gradient(135deg, var(--at-a), #6fb1ff); }
.at-prod-ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 64px; color: var(--at-a); }
.at-sale { background: #ef4444 !important; border-bottom-color: #b91c1c !important; color: #fff; }
.at-old { color: var(--at-muted); text-decoration: line-through; font-size: 13px; margin-left: 6px; font-weight: 700; }
.at-pdp-buy form { display: grid; gap: 12px; }
.at-pdp-buy .summary-box { margin: 0; }
.at-empty-card { padding: 40px 20px; text-align: center; color: var(--at-muted); }
.at-empty-card i { font-size: 40px; display: block; margin-bottom: 10px; opacity: .5; }

/* ---- 404 sayfası ---- */
.at-404 { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 310px; padding: 48px 20px; text-align: center; }
.at-404-code { font: 800 clamp(84px, 12vw, 120px)/1 var(--at-display); color: var(--at-a); letter-spacing: 2px; text-shadow: 0 6px 0 color-mix(in srgb, var(--at-a) 25%, transparent); }
.at-404 h1 { margin: 0; font: 800 22px var(--at-display); color: var(--at-fg); }
.at-404 .at-btn { padding: 0 22px; }

/* ---- Duyarlı ---- */
@media (max-width: 900px) {
    .product-detail { grid-template-columns: 1fr; }
    .forum-cat { grid-template-columns: 52px 1fr; }
    .forum-cat .fc-count, .forum-cat .fc-last { display: none; }
    .topic-row { grid-template-columns: 1fr 70px; }
    .topic-row .num.views, .topic-row .last { display: none; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .stats-row, .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .post { grid-template-columns: 1fr; }
    .post-author { border-right: 0; border-bottom: 1px solid var(--at-line); display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px 18px; }
    .post-author img { width: 44px; }
    .post-author .name { margin: 0; }
    .page-head h1 { font-size: 26px; }
    .card { padding: 18px; }
    .amount-grid { grid-template-columns: repeat(2, 1fr); }
    .at-bal-chip span { display: none; }
}

/* Giriş yapılınca (bakiye + hesap düğmesi) masaüstü menü tek satıra sığsın, hamburger'e düşmesin */
@media (min-width: 761px) and (max-width: 1240px) {
    .at-nav { gap: 4px; }
    .at-nav a.at-m { padding-left: 11px; padding-right: 11px; }
    .at-user-btn { padding: 0 11px 0 8px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
    .at-user .at-user-btn span { display: none; }
}

/* Erişilebilirlik (Lighthouse) */
.at-footer .at-fh { font: 700 15px var(--at-display); letter-spacing: .4px; margin-bottom: 8px; }
.at-ann .at-ann-hot { background: #ffd84d; color: #1b2a4a; font-weight: 900; padding: 1px 10px; border-radius: 999px; }
.at-auth-alt a { text-decoration: underline; text-underline-offset: 3px; }