/* ─── Variables ──────────────────────────────────────────────────────────── */
:root {
    --bg:           #0d0d0f;
    --surface:      #161618;
    --surface2:     #1d1d20;
    --surface3:     #242428;
    --border:       rgba(255,255,255,0.07);
    --border-focus: rgba(255,37,3,0.5);
    --red:          #FF2503;
    --red-dim:      rgba(255,37,3,0.12);
    --red-glow:     rgba(255,37,3,0.25);
    --text:         #f0f0f0;
    --text-muted:   #777;
    --text-faint:   #444;
    --radius:       14px;
    --radius-sm:    8px;
    --shadow-card:  0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
    --transition:   0.2s ease;
}

/* ─── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ─── Background Glows ────────────────────────────────────────────────────── */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
    opacity: 0.35;
}
.bg-glow-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,37,3,0.15) 0%, transparent 70%);
    top: -200px; right: -200px;
}
.bg-glow-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,37,3,0.08) 0%, transparent 70%);
    bottom: -150px; left: -150px;
}

/* ─── Page Layout ─────────────────────────────────────────────────────────── */
.page-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 40px 16px 80px;
    gap: 16px;
}

/* ─── Card ────────────────────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--border);
}

/* ─── Card Header ─────────────────────────────────────────────────────────── */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
}
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}
.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text);
}
.logo-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}
.admin-link {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 0.9rem;
}
.admin-link:hover {
    background: var(--red-dim);
    border-color: var(--border-focus);
    color: var(--red);
}
/* Oturum durumu: kırmızı kilit = kapalı, yeşil açık kilit = açık */
.admin-link.is-locked {
    color: #ff4d4d;
    background: rgba(255,37,3,0.08);
    border-color: rgba(255,37,3,0.25);
}
.admin-link.is-locked:hover {
    color: #ff6b6b;
    background: rgba(255,37,3,0.15);
}
.admin-link.is-open {
    color: #4cde80;
    background: rgba(0,192,80,0.08);
    border-color: rgba(0,192,80,0.25);
}
.admin-link.is-open:hover {
    color: #6ee89a;
    background: rgba(0,192,80,0.15);
}

/* ─── Mode Tabs ───────────────────────────────────────────────────────────── */
.mode-tabs {
    display: flex;
    gap: 6px;
    margin: 20px 24px 0;
    background: var(--surface2);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid var(--border);
}
.tab-btn {
    flex: 1;
    padding: 8px 14px;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.tab-btn i { font-size: 0.75rem; }
.tab-btn.active {
    background: var(--red);
    color: #fff;
    box-shadow: 0 2px 12px rgba(255,37,3,0.35);
}
.tab-btn:not(.active):hover {
    background: var(--surface3);
    color: var(--text);
}

/* ─── Form Body ───────────────────────────────────────────────────────────── */
form {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel { display: flex; flex-direction: column; gap: 16px; }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ─── Input Wrap ──────────────────────────────────────────────────────────── */
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon {
    position: absolute;
    left: 12px;
    color: var(--text-faint);
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 1;
}
.input-wrap input,
.input-wrap select {
    width: 100%;
    padding: 10px 12px 10px 34px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.input-wrap input::placeholder { color: var(--text-faint); }
.input-wrap input:hover,
.input-wrap select:hover {
    border-color: rgba(255,255,255,0.12);
    background: var(--surface3);
}
.input-wrap input:focus,
.input-wrap select:focus {
    border-color: var(--border-focus);
    background: var(--surface3);
    box-shadow: 0 0 0 3px var(--red-dim);
}

/* ─── Select Row ──────────────────────────────────────────────────────────── */
.select-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.select-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}
.select-wrap select {
    width: 100%;
    padding: 10px 36px 10px 34px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: var(--transition);
    line-height: 1.4;
}
.select-wrap select option {
    background: #1d1d20;
    color: var(--text);
    padding: 8px;
}
.select-wrap select:hover {
    border-color: rgba(255,255,255,0.14);
    background: var(--surface3);
}
.select-wrap select:focus {
    border-color: var(--border-focus);
    background: var(--surface3);
    box-shadow: 0 0 0 3px var(--red-dim);
}
.select-arrow {
    position: absolute;
    right: 12px;
    font-size: 0.6rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
}
.select-wrap select:focus ~ .select-arrow {
    color: var(--red);
    transform: rotate(180deg);
}

/* ─── Dropzone ────────────────────────────────────────────────────────────── */
.dropzone {
    position: relative;
    border: 2px dashed rgba(255,255,255,0.08);
    border-radius: var(--radius);
    background: var(--surface2);
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    overflow: hidden;
}
.dropzone:hover,
.dropzone.dz-hover {
    border-color: var(--border-focus);
    background: var(--red-dim);
}
.dropzone.dz-drag-over {
    border-color: var(--red);
    background: rgba(255,37,3,0.08);
    box-shadow: inset 0 0 40px rgba(255,37,3,0.06), 0 0 0 3px var(--red-dim);
    transform: scale(1.005);
}
.dropzone input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}
.dz-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px;
    text-align: center;
    pointer-events: none;
}
.dz-icon {
    width: 52px; height: 52px;
    background: var(--surface3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 4px;
    border: 1px solid var(--border);
}
.dz-icon i {
    font-size: 1.2rem;
    color: var(--red);
}
.dz-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}
.dz-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.dz-link {
    color: var(--red);
    font-weight: 500;
}
.dz-paste {
    font-size: 0.72rem;
    color: var(--text-faint);
    margin-top: 2px;
}
kbd {
    display: inline-block;
    padding: 1px 5px;
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: inherit;
    color: var(--text-muted);
}

/* ─── Dropzone Preview ────────────────────────────────────────────────────── */
.dz-preview {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dz-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: cover;
}
.dz-remove {
    position: absolute;
    top: 8px; right: 8px;
    width: 28px; height: 28px;
    background: rgba(0,0,0,0.7);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: #fff;
    font-size: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
    transition: var(--transition);
}
.dz-remove:hover {
    background: var(--red);
    border-color: var(--red);
}
.dz-filename {
    position: absolute;
    bottom: 8px;
    left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.7rem;
    color: #ddd;
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Row-2 ───────────────────────────────────────────────────────────────── */
.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ─── Saved Badge ─────────────────────────────────────────────────────────── */
.saved-chapter-badge {
    background: var(--red-dim);
    border: 1px solid var(--border-focus);
    color: var(--red);
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

/* ─── Checkboxes ──────────────────────────────────────────────────────────── */
.checkboxes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: var(--transition);
    user-select: none;
}
.check-label:hover { color: var(--text); }
.check-label input[type=checkbox],
.check-label input[type=radio] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}
.check-box {
    width: 18px; height: 18px;
    border-radius: 5px;
    border: 1.5px solid var(--border);
    background: var(--surface2);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    position: relative;
}
.check-box::after {
    content: '';
    width: 5px; height: 9px;
    border-right: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: rotate(45deg) translate(-1px,-1px);
    transition: var(--transition);
}
.check-label input:checked + .check-box {
    background: var(--red);
    border-color: var(--red);
    box-shadow: 0 0 10px rgba(255,37,3,0.3);
}
.check-label input:checked + .check-box::after {
    border-color: #fff;
}

/* ─── Submit Button ───────────────────────────────────────────────────────── */
.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
}
.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
}
.btn-submit:hover {
    background: #f03535;
    box-shadow: 0 8px 24px rgba(255,37,3,0.4);
    transform: translateY(-1px);
}
.btn-submit:active {
    transform: translateY(0);
    box-shadow: none;
}
.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ─── Icon Button ─────────────────────────────────────────────────────────── */
.icon-btn {
    width: 42px; height: 42px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
}
.icon-btn:hover { background: var(--surface3); color: var(--text); }
.icon-btn.danger:hover {
    background: rgba(255,37,3,0.12);
    border-color: rgba(255,37,3,0.3);
    color: var(--red);
}
.icon-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ─── Loading ─────────────────────────────────────────────────────────────── */
.loading-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
}
.loading-area p {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.spinner {
    width: 36px; height: 36px;
    border: 2.5px solid var(--border);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Result Area ─────────────────────────────────────────────────────────── */
.result-area {
    padding: 0 24px 24px;
}
.result-area:empty { display: none; }
.result-area a {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.result-area a:hover {
    border-color: var(--border-focus);
    box-shadow: 0 0 20px rgba(255,37,3,0.15);
}
.result-area img {
    width: 100%;
    display: block;
}
.result-caption {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.result-caption i { color: var(--red); }

/* ─── Notifications ───────────────────────────────────────────────────────── */
.notif {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    margin: 0 24px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.notif.error   { background: rgba(204,0,0,0.15); border: 1px solid rgba(204,0,0,0.3); color: #ff6b6b; }
.notif.success { background: rgba(0,192,80,0.1);  border: 1px solid rgba(0,192,80,0.25); color: #4cde80; }
.notif.warning { background: rgba(240,160,0,0.1); border: 1px solid rgba(240,160,0,0.25); color: #f0b040; }

/* ─── Raw game preview (inside resultArea) ────────────────────────────────── */
.preview-raw img {
    width: 100%;
    display: block;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    opacity: 0.75;
}

/* ─── Hashtag card ────────────────────────────────────────────────────────── */
.hashtag-card {
    width: 100%;
    max-width: 480px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.hc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.hc-header i { color: var(--red); }
.hc-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-faint);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: var(--transition);
}
.hc-close:hover { color: var(--red); background: var(--red-dim); }
.hc-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hc-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hc-text {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-wrap;
}
.hc-copy-all {
    width: 100%;
    padding: 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
}
.hc-copy-all:hover {
    background: var(--red-dim);
    border-color: var(--border-focus);
    color: var(--red);
}

/* ─── Admin sabit içerik ──────────────────────────────────────────────────── */
.si-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.si-textarea {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.82rem;
    font-family: inherit;
    padding: 10px 12px;
    resize: vertical;
    outline: none;
    transition: var(--transition);
    line-height: 1.5;
}
.si-textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--red-dim);
}
.si-textarea::placeholder { color: var(--text-faint); }

/* ─── Recent conversions ──────────────────────────────────────────────────── */
.recent-section {
    width: 100%;
    max-width: 480px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px 20px 12px;
    box-shadow: var(--shadow-card);
}
.recent-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.recent-header i { color: var(--red); }
.recent-list { display: flex; flex-direction: column; }
.recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition);
}
.recent-item:hover { background: var(--surface2); }
.recent-thumb {
    width: 56px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--surface3);
    flex-shrink: 0;
}
.recent-name {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.recent-bolum {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--red);
    background: var(--red-dim);
    border: 1px solid var(--border-focus);
    border-radius: 20px;
    padding: 1px 7px;
    flex-shrink: 0;
}
.recent-time {
    font-size: 0.7rem;
    color: var(--text-faint);
    flex-shrink: 0;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
    position: relative; z-index: 1;
    text-align: center;
    padding: 16px;
    font-size: 0.78rem;
    color: var(--text-faint);
}
.site-footer a {
    color: var(--red);
    font-weight: 600;
    opacity: 0.7;
    transition: var(--transition);
}
.site-footer a:hover { opacity: 1; }

/* ─── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,37,3,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ─── Cover Admin Page ────────────────────────────────────────────────────── */
.cover-page {
    position: relative; z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 16px 80px;
}
.cover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
}
/* Panel header: üstte (sol anasayfa · orta logo+versiyon · sağ çıkış), altta sayaçlar */
.cover-header-panel { flex-direction: column; align-items: stretch; gap: 14px; }
.cover-header-panel .cover-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.cover-header-panel .cover-header-top h1 {
    flex: 1;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    min-width: 0;
}
.cover-header-panel .cover-stats { justify-content: center; }
.cover-header h1 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cover-header h1 i { color: var(--red); }
.cover-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.stat-pill {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.stat-pill strong { color: var(--red); }

.cover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.cover-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.cover-card:hover {
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.cover-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--surface2);
}
.cover-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.cover-card:hover .cover-thumb img { transform: scale(1.04); }

.cover-chapter-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--red);
}
.cover-info {
    padding: 10px 12px;
}
.cover-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
}
.cover-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}
.cover-actions .chapter-input {
    flex: 1;
    padding: 5px 8px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.8rem;
    outline: none;
    transition: var(--transition);
    width: 60px;
    text-align: center;
}
.cover-actions .chapter-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px var(--red-dim);
}
.btn-save-chapter {
    padding: 5px 8px;
    background: var(--red-dim);
    border: 1px solid var(--border-focus);
    border-radius: 6px;
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
}
.btn-save-chapter:hover {
    background: var(--red);
    color: #fff;
}
.btn-delete-cover {
    padding: 5px 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-faint);
    font-size: 0.75rem;
    transition: var(--transition);
}
.btn-delete-cover:hover {
    background: rgba(255,37,3,0.1);
    border-color: rgba(255,37,3,0.3);
    color: var(--red);
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.82rem;
    transition: var(--transition);
    margin-bottom: 20px;
}
.back-link:hover { color: var(--red); }
.cover-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-faint);
    font-size: 0.9rem;
}
.cover-empty i { font-size: 2rem; margin-bottom: 12px; color: var(--surface3); display: block; }

/* ─── Toast notification ──────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 24px; left: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 0.82rem;
    color: var(--text);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toast-in 0.3s ease;
    max-width: 280px;
}
.toast.success i { color: #4cde80; }
.toast.error i   { color: var(--red); }
@keyframes toast-in {
    from { opacity:0; transform: translateY(12px); }
    to   { opacity:1; transform: translateY(0); }
}
@keyframes toast-out {
    to   { opacity:0; transform: translateY(12px); }
}

/* ─── Login card ──────────────────────────────────────────────────────────── */
.login-card {
    max-width: 380px;
    border-top: 3px solid var(--red);
}

/* ─── Admin sections ──────────────────────────────────────────────────────── */
.admin-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 20px;
}
.admin-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.admin-section-title i { color: var(--red); }

/* ─── Admin upload layout ──────────────────────────────────────────────────── */
.au-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}
.au-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.au-logos {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.admin-dropzone {
    position: relative;
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: var(--radius);
    background: var(--surface2);
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
}
.admin-dropzone:hover,
.admin-dropzone.dz-drag-over {
    border-color: var(--border-focus);
    background: var(--red-dim);
}
.admin-dropzone.dz-drag-over { box-shadow: 0 0 0 3px var(--red-dim); }
.admin-dropzone input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}
.admin-dz-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    color: var(--text-faint);
    font-size: 0.8rem;
    text-align: center;
    padding: 20px;
}
.admin-dz-idle i { font-size: 2rem; color: rgba(255,37,3,0.4); }
.admin-dz-preview {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-dz-preview img {
    max-width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 6px;
}
.admin-checkboxes {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}

/* ─── Security layout ─────────────────────────────────────────────────────── */
.security-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.lock-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    flex-wrap: wrap;
}
.lock-status.locked {
    background: rgba(255,37,3,0.08);
    border: 1px solid rgba(255,37,3,0.2);
    color: #ff8080;
}
.lock-status.unlocked {
    background: rgba(0,192,80,0.07);
    border: 1px solid rgba(0,192,80,0.18);
    color: #4cde80;
}
.lockout-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}
.lockout-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.lockout-label i { color: var(--text-faint); }
.lockout-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.lockout-unit {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ─── Settings ────────────────────────────────────────────────────────────── */
.settings-grid {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.settings-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    padding: 0;
}
.settings-form .form-group { margin-bottom: 0; }
.btn-settings {
    padding: 9px 16px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
}
.btn-settings:hover {
    background: var(--surface3);
    color: var(--text);
    border-color: rgba(255,255,255,0.12);
}
.btn-settings.danger:hover {
    background: rgba(255,37,3,0.12);
    border-color: rgba(255,37,3,0.3);
    color: var(--red);
}
.lock-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}
.lock-status.locked {
    background: rgba(255,37,3,0.1);
    border: 1px solid rgba(255,37,3,0.25);
    color: #ff8080;
}
.lock-status.unlocked {
    background: rgba(0,192,80,0.08);
    border: 1px solid rgba(0,192,80,0.2);
    color: #4cde80;
}

/* ─── Custom Select ───────────────────────────────────────────────────────── */
.custom-select {
    position: relative;
}
.custom-select-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    min-height: 40px;
}
.custom-select-trigger:hover {
    border-color: rgba(255,255,255,0.12);
    background: var(--surface3);
}
.custom-select.open .custom-select-trigger {
    border-color: var(--border-focus);
    background: var(--surface3);
    box-shadow: 0 0 0 3px var(--red-dim);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.cs-icon {
    color: var(--text-faint);
    font-size: 0.8rem;
    flex-shrink: 0;
}
.cs-value {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cs-value.cs-placeholder { color: var(--text-faint); font-weight: 400; }
.cs-arrow {
    color: var(--text-muted);
    font-size: 0.6rem;
    flex-shrink: 0;
    transition: transform var(--transition);
}
.custom-select.open .cs-arrow {
    transform: rotate(180deg);
    color: var(--red);
}
.custom-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface2);
    border: 1px solid var(--border-focus);
    border-top: none;
    border-bottom-left-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
    z-index: 200;
    box-shadow: 0 8px 28px rgba(0,0,0,0.5);
    overflow: hidden;
}
.custom-select.open .custom-select-dropdown { display: block; }
.cs-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    background: var(--surface3);
}
.cs-search-wrap i { color: var(--text-faint); font-size: 0.75rem; flex-shrink: 0; }
.cs-search-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
}
.cs-search-wrap input::placeholder { color: var(--text-faint); }
.cs-options {
    max-height: 220px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.cs-options::-webkit-scrollbar { width: 4px; }
.cs-options::-webkit-scrollbar-track { background: transparent; }
.cs-options::-webkit-scrollbar-thumb { background: rgba(255,37,3,0.25); border-radius: 2px; }
.cs-option {
    padding: 9px 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cs-option:hover { background: var(--surface3); color: var(--text); }
.cs-option.active { color: var(--red); background: var(--red-dim); font-weight: 500; }
.cs-no-result {
    padding: 20px 12px;
    text-align: center;
    color: var(--text-faint);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ─── Search count badge ──────────────────────────────────────────────────── */
.search-count {
    background: var(--surface3);
    border: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 0.62rem;
    padding: 1px 6px;
    border-radius: 20px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

/* ─── Input with addon button ─────────────────────────────────────────────── */
.input-with-addon {
    display: flex;
    gap: 6px;
    align-items: center;
}
.input-with-addon .input-wrap { flex: 1; }
.btn-plus-one {
    flex-shrink: 0;
    height: 38px;
    padding: 0 13px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-plus-one:hover {
    background: var(--red-dim);
    border-color: var(--border-focus);
    color: var(--red);
}
.btn-plus-one:active {
    transform: scale(0.95);
}

/* Misafirde kilitli alan (bölüm / ayraç) */
.locked-field {
    opacity: 0.65; cursor: not-allowed;
}

/* ─── Admin section title with search ────────────────────────────────────── */
.admin-section-title {
    flex-wrap: wrap;
}
.admin-game-count {
    font-size: 0.72rem;
    color: var(--text-faint);
    font-weight: 400;
    margin-left: 6px;
}
.admin-sort {
    margin-left: auto;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    font-family: inherit; font-size: 0.75rem; font-weight: 500;
    outline: none; cursor: pointer;
    transition: var(--transition);
}
.admin-sort:hover { border-color: var(--border-focus); }
.admin-sort:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--red-dim); }
/* Sıralama, aramanın hemen soluna yaslanır (arama kutusu auto boşluğu bırakmaz) */
.admin-sort + .admin-search-wrap { margin-left: 8px; }

.admin-search-wrap {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    transition: var(--transition);
}
.admin-search-wrap:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--red-dim);
}
.admin-search-wrap i {
    color: var(--text-faint);
    font-size: 0.75rem;
    flex-shrink: 0;
}
.admin-search-wrap input {
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.82rem;
    width: 140px;
    font-family: inherit;
}
.admin-search-wrap input::placeholder { color: var(--text-faint); }

/* ═══════════════════════════════════════════════════════════════════════════
   Yönetim Sekmeleri (Admin Tabs)
   ═══════════════════════════════════════════════════════════════════════════ */
.adm-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px;
    margin-bottom: 18px;
    position: sticky;
    top: 8px;
    z-index: 20;
    backdrop-filter: blur(8px);
}
.adm-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.adm-tab i { font-size: 0.85rem; }
.adm-tab:hover { color: var(--text); background: var(--surface2); }
.adm-tab.active {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 14px var(--red-glow);
}
.adm-tab .adm-tab-count {
    font-size: 0.68rem;
    background: rgba(0,0,0,0.25);
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 600;
}
.adm-panel { display: none; animation: adm-fade 0.25s ease; }
.adm-panel.active { display: block; }
@keyframes adm-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Görsel Kapak Tasarımcısı (Layout Editor)
   ═══════════════════════════════════════════════════════════════════════════ */
.ed-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
/* Sol kolon (tuval) sayfa kaydırılırken görünür kalsın — sağ panel uzasa bile takip eder. */
.ed-main { position: sticky; top: 16px; align-self: start; }
@media (max-width: 900px) {
    .ed-wrap { grid-template-columns: 1fr; }
    .ed-main { position: static; }
}

.ed-toolbar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 14px;
}
.ed-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 14px;
    border: 1px solid var(--border);
    background: var(--surface2);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-family: inherit; font-size: 0.8rem; font-weight: 500;
    cursor: pointer; transition: var(--transition);
}
.ed-btn:hover { background: var(--surface3); border-color: var(--border-focus); }
.ed-btn i { font-size: 0.8rem; color: var(--red); }
.ed-btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.ed-btn.primary i { color: #fff; }
.ed-btn.primary:hover { background: #d61f02; }
.ed-btn.ghost i { color: var(--text-muted); }

/* Zoom kontrol grubu */
.ed-zoom {
    display: inline-flex; align-items: center; gap: 2px;
    border: 1px solid var(--border);
    background: var(--surface2);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.ed-zoom-btn, .ed-zoom-val {
    border: 0; background: transparent; color: var(--text);
    font-family: inherit; cursor: pointer; transition: var(--transition);
}
.ed-zoom-btn {
    padding: 8px 11px; font-size: 0.82rem;
}
.ed-zoom-btn i { color: var(--red); }
.ed-zoom-btn:hover { background: var(--surface3); }
.ed-zoom-btn:disabled { opacity: 0.35; cursor: default; }
.ed-zoom-btn:disabled:hover { background: transparent; }
.ed-zoom-val {
    min-width: 48px; padding: 8px 4px;
    font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
    border-left: 1px solid var(--border); border-right: 1px solid var(--border);
}
.ed-zoom-val:hover { background: var(--surface3); color: var(--text); }

.ed-bg-select {
    margin-left: auto;
    display: flex; align-items: center; gap: 8px;
    font-size: 0.78rem; color: var(--text-muted);
}
.ed-bg-select select {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font-family: inherit; font-size: 0.8rem;
    outline: none; max-width: 180px;
}

/* Çalışma alanı: 1920×1080 tuvalin çevresinde Photoshop tarzı boş pay bırakır.
 * Tasarım koordinatları yine tuvale (ed-stage-wrap) görecedir. */
.ed-workspace {
    padding: 52px;
    background: #101013;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: auto;          /* yakınlaştırıldığında tuvali kaydırarak gez */
    max-height: 72vh;        /* zoom'da alan büyümez, içeride kaydırılır */
    user-select: none;
    touch-action: none;
}
@media (max-width: 600px) { .ed-workspace { padding: 26px; } }
.ed-stage-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: visible;
    outline: 1px solid rgba(255,255,255,0.3);
}
.ed-stage-clip {
    position: absolute; inset: 0;
    overflow: hidden;
    background: #000 repeating-conic-gradient(#1a1a1a 0% 25%, #141414 0% 50%) 50% / 40px 40px;
}
.ed-stage-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.ed-el {
    position: absolute;
    box-sizing: border-box;
    cursor: move;
    outline: 1px dashed rgba(255,255,255,0.25);
}
.ed-el.selected { outline: 2px solid var(--red); z-index: 5; }
/* Seçili klasörün üyeleri: tuvalde birlikte taşınabilir (kesikli vurgu) */
.ed-el.folder-selected { outline: 2px dashed #3b82f6; outline-offset: 1px; }
.ed-el.hidden-el { display: none; } /* gizli katman tuvalde de görünmez (çıktıyla aynı) */
/* Çıktıyla birebir aynı (PHP tarafı resmi kutuya esnetir) — WYSIWYG */
.ed-el img { width: 100%; height: 100%; object-fit: fill; pointer-events: none; display: block; }
.ed-el-text {
    white-space: nowrap;
    line-height: 1;
    font-family: 'Bebas Neue', 'Inter', sans-serif;
    text-shadow: 4px 4px 0 rgba(0,0,0,0.6);
    pointer-events: none;
}
.ed-handle {
    position: absolute;
    right: -7px; bottom: -7px;
    width: 16px; height: 16px;
    background: var(--red);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: nwse-resize;
    z-index: 6;
}
.ed-el-badge {
    position: absolute;
    top: -9px; left: -1px;
    font-size: 0.6rem; font-weight: 700;
    background: var(--red); color: #fff;
    padding: 1px 6px; border-radius: 4px;
    pointer-events: none; white-space: nowrap;
}

/* ── Font Awesome ikon seçici modal ────────────────────────────────────── */
.ic-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.6);
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.ic-overlay.open { display: flex; }
.ic-modal {
    width: 100%; max-width: 640px; max-height: 84vh;
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border-focus);
    border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,0.55);
    overflow: hidden;
}
.ic-head {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.ic-title { font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.ic-title i { color: var(--red); margin-right: 4px; }
.ic-font {
    flex: 1; min-width: 0;
    padding: 8px 10px; border-radius: var(--radius-sm);
    background: var(--surface2); border: 1px solid var(--border); color: var(--text);
    font-family: inherit; font-size: 0.8rem;
}
.ic-close {
    flex-shrink: 0; width: 32px; height: 32px; border: none;
    background: var(--surface2); color: var(--text-muted);
    border-radius: var(--radius-sm); cursor: pointer;
}
.ic-close:hover { color: var(--text); background: var(--surface3); }
.ic-search-wrap {
    position: relative; padding: 12px 16px 0;
}
.ic-search-wrap i {
    position: absolute; left: 28px; top: 22px; color: var(--text-faint); font-size: 0.8rem;
}
.ic-search-wrap input {
    width: 100%; padding: 10px 12px 10px 34px;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text); font-family: inherit; font-size: 0.85rem;
}
.ic-count { padding: 8px 16px 0; font-size: 0.72rem; color: var(--text-muted); }
.ic-grid {
    flex: 1 1 auto; min-height: 340px;
    padding: 12px 16px 16px; overflow-y: auto;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px;
    align-content: start;
}
.ic-loading, .ic-empty {
    grid-column: 1 / -1; text-align: center; padding: 30px 10px;
    color: var(--text-muted); font-size: 0.82rem;
}
.ic-cell {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 10px 4px; border: 1px solid var(--border);
    background: var(--surface2); border-radius: var(--radius-sm);
    cursor: pointer; transition: var(--transition); overflow: hidden;
}
.ic-cell:hover { border-color: var(--red); background: var(--red-dim); }
.ic-glyph { font-size: 1.5rem; line-height: 1; color: var(--text); }
.ic-name {
    font-size: 0.6rem; color: var(--text-faint); text-align: center;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Sağ sütun: katmanlar + özellikler */
.ed-side { display: flex; flex-direction: column; gap: 14px; align-self: start; }

/* Katman paneli (Photoshop tarzı) */
.ed-layers-box {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.ed-layers-title {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 14px;
    font-size: 0.82rem; font-weight: 600;
    border-bottom: 1px solid var(--border);
    background: var(--surface3);
}
.ed-layers-title i { color: var(--red); }
#edLayers { max-height: 300px; overflow-y: auto; padding: 6px; }
.ed-layer {
    display: flex; align-items: center; gap: 9px;
    padding: 8px 9px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}
.ed-layer:hover { background: var(--surface3); }
.ed-layer.active { background: var(--red-dim); border-color: var(--border-focus); }
.ed-layer.dragging { opacity: 0.5; }
.ed-layer.drop-target { border-top: 2px solid var(--red); }
.ed-layer-grip { color: var(--text-faint); font-size: 0.75rem; cursor: grab; flex-shrink: 0; }
.ed-layer-thumb {
    width: 40px; height: 26px; flex-shrink: 0;
    border-radius: 4px; overflow: hidden;
    background: #000 repeating-conic-gradient(#222 0% 25%, #1a1a1a 0% 50%) 50% / 12px 12px;
    display: flex; align-items: center; justify-content: center;
}
.ed-layer-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ed-layer-thumb .ed-layer-tico { font-size: 0.9rem; color: var(--text); font-weight: 700; }
.ed-layer-body { flex: 1; min-width: 0; }
.ed-layer-name {
    font-size: 0.8rem; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ed-layer-sub { font-size: 0.66rem; color: var(--text-muted); margin-top: 1px; }
/* ── Ana sayfa: yan yana açılır (çoklu) seçim menüleri ─────────────────── */
.dd-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 4px;
}
.dd-row > .form-group { flex: 1; min-width: 0; margin: 0; }

.form-group.dd { position: relative; }
.dd-toggle {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 11px 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit; font-size: 0.85rem;
    cursor: pointer; text-align: left;
    transition: var(--transition);
}
.dd-toggle:hover { border-color: var(--border-focus); }
.dd-toggle .dd-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-toggle i { color: var(--text-muted); font-size: 0.7rem; flex-shrink: 0; transition: transform 0.2s; }
.form-group.dd.open .dd-toggle { border-color: var(--primary); }
.form-group.dd.open .dd-toggle i { transform: rotate(180deg); }

.dd-menu {
    position: absolute;
    top: calc(100% + 4px); left: 0; right: 0;
    z-index: 40;
    background: var(--surface2);
    border: 1px solid var(--border-focus);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
    display: none;
    overflow: hidden;
}
.form-group.dd.open .dd-menu { display: block; }
.dd-menu-head {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface3);
}
.dd-menu-head .check-label > span:last-child {
    font-weight: 600; font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.4px;
    color: var(--text-muted);
}
.dd-menu-body {
    padding: 10px 14px;
    max-height: 220px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 9px;
}
.dd-menu-body .check-label { margin: 0; }
.dd-menu-body .check-label.radio .check-box { border-radius: 50%; } /* radyo = yuvarlak */
.dd-menu-body:empty::after {
    content: 'Seçenek yok';
    color: var(--text-faint); font-size: 0.78rem;
}

.ed-layer-eye, .ed-layer-opt {
    flex-shrink: 0; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border: none; background: none; cursor: pointer;
    color: var(--text-muted); font-size: 0.8rem; border-radius: 6px;
    transition: var(--transition);
}
.ed-layer-eye:hover, .ed-layer-opt:hover { background: var(--surface); color: var(--text); }
.ed-layer-opt.on { color: var(--red); }
.ed-layer.hidden-layer .ed-layer-eye { color: var(--text-faint); }
.ed-layer.hidden-layer .ed-layer-name { color: var(--text-muted); text-decoration: line-through; }
.ed-layers-empty { padding: 20px 10px; text-align: center; color: var(--text-muted); font-size: 0.78rem; }

/* ── Katman klasörleri (gruplama) ────────────────────────────── */
.ed-folder {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 2px 0;
    overflow: hidden;
}
.ed-folder.dragging { opacity: 0.5; }
.ed-folder.drop-into { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.ed-folder-head {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 8px;
    background: var(--surface3);
    cursor: grab;
}
.ed-folder-head.drop-target { box-shadow: 0 -2px 0 0 var(--red) inset; }
.ed-folder.folder-hidden .ed-folder-head { opacity: 0.6; }
.ed-folder-caret, .ed-folder-ico { color: var(--text-muted); font-size: 0.75rem; cursor: pointer; flex-shrink: 0; }
.ed-folder-ico { color: var(--red); }
.ed-folder-name-input {
    flex: 1; min-width: 0;
    background: transparent; border: 1px solid transparent;
    color: var(--text); font-family: inherit; font-size: 0.8rem; font-weight: 600;
    padding: 3px 6px; border-radius: 4px; cursor: text;
}
.ed-folder-name-input:hover { border-color: var(--border); }
.ed-folder-name-input:focus { outline: none; border-color: var(--border-focus); background: var(--surface); }
.ed-folder-count {
    flex-shrink: 0; font-size: 0.64rem; font-weight: 700; color: var(--text-muted);
    background: var(--surface); border: 1px solid var(--border);
    padding: 1px 6px; border-radius: 10px;
}
.ed-folder-del {
    flex-shrink: 0; width: 26px; height: 26px; border: none;
    background: transparent; color: var(--text-faint);
    border-radius: 6px; cursor: pointer; transition: var(--transition);
}
.ed-folder-copy {
    flex-shrink: 0; width: 26px; height: 26px; border: none;
    background: transparent; color: var(--text-faint);
    border-radius: 6px; cursor: pointer; transition: var(--transition);
}
.ed-folder-copy:hover { color: var(--text); background: var(--surface); }
.ed-folder-del:hover { color: #ff6b6b; background: rgba(255,37,3,0.12); }
.ed-folder.active { box-shadow: 0 0 0 2px var(--red) inset; border-color: var(--red); }
.ed-folder.active > .ed-folder-head { background: var(--red-dim); }
.ed-folder-body { padding: 4px 4px 4px 14px; display: flex; flex-direction: column; gap: 4px; }
.ed-folder-body .ed-layer { border-left: 2px solid var(--border); }
.ed-folder-empty {
    padding: 10px; text-align: center; font-size: 0.7rem; color: var(--text-faint);
    border: 1px dashed var(--border); border-radius: var(--radius-sm);
}

/* Özellik paneli */
.ed-props {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    align-self: start;
}
.ed-props-empty { color: var(--text-muted); font-size: 0.82rem; text-align: center; padding: 30px 10px; }
.ed-props h4 {
    font-size: 0.9rem; margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.ed-field { margin-bottom: 12px; }
.ed-field > label {
    display: block; font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.4px; color: var(--text-muted);
    margin-bottom: 5px; font-weight: 600;
}
.ed-field input[type=text],
.ed-field input[type=number],
.ed-field select,
.ed-field textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font-family: inherit; font-size: 0.82rem;
    outline: none; transition: var(--transition);
}
.ed-field textarea { resize: vertical; min-height: 54px; }
.ed-field input:focus, .ed-field select:focus, .ed-field textarea:focus {
    border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--red-dim);
}
.ed-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ed-field input[type=range] { width: 100%; accent-color: var(--red); }
.ed-field input[type=color] {
    width: 100%; height: 36px; padding: 2px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); cursor: pointer;
}
.ed-align { display: flex; gap: 6px; }
.ed-align button {
    flex: 1; padding: 8px; background: var(--surface); color: var(--text-muted);
    border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
    transition: var(--transition);
}
.ed-align button.active { background: var(--red); color: #fff; border-color: var(--red); }
.ed-flip { display: flex; gap: 6px; }
.ed-flip button {
    flex: 1; padding: 8px; background: var(--surface); color: var(--text-muted);
    border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
    transition: var(--transition); font-family: inherit; font-size: 0.78rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.ed-flip button.active { background: var(--red); color: #fff; border-color: var(--red); }
.ed-toggle-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ed-toggle-row span { font-size: 0.8rem; }
.ed-del-btn {
    width: 100%; margin-top: 6px;
    padding: 9px; background: rgba(255,37,3,0.12); color: #ff6b6b;
    border: 1px solid rgba(255,37,3,0.3); border-radius: var(--radius-sm);
    cursor: pointer; font-family: inherit; font-size: 0.8rem; font-weight: 500;
    transition: var(--transition);
}
.ed-del-btn:hover { background: rgba(255,37,3,0.22); }

.ed-hint {
    margin-top: 12px; font-size: 0.74rem; color: var(--text-muted);
    line-height: 1.6;
}
.ed-hint code {
    background: var(--surface3); padding: 1px 6px; border-radius: 4px;
    color: var(--red); font-size: 0.72rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Görsel Oyun Seçici (Ön yüz thumbnail grid)
   ═══════════════════════════════════════════════════════════════════════════ */
.pick-search {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    margin-bottom: 14px;
}
.pick-search i { color: var(--text-faint); font-size: 0.85rem; }
.pick-search input {
    background: none; border: none; outline: none;
    color: var(--text); font-family: inherit; font-size: 0.9rem; width: 100%;
}
.pick-search input::placeholder { color: var(--text-faint); }
.pick-count { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }

.pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding: 2px;
    margin: 0 -2px;
}
.pick-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: var(--surface2);
    transition: var(--transition);
    aspect-ratio: 16 / 9;
}
.pick-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.25s ease;
}
.pick-item:hover { border-color: var(--border-focus); }
.pick-item:hover img { transform: scale(1.06); }
.pick-item.selected { border-color: var(--red); box-shadow: 0 6px 18px var(--red-glow); }
.pick-item.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; top: 6px; right: 6px;
    width: 22px; height: 22px;
    background: var(--red); color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 0.68rem;
}
.pick-label {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff; font-size: 0.72rem; font-weight: 500;
    padding: 16px 8px 6px; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pick-bolum {
    position: absolute; top: 6px; left: 6px;
    background: rgba(0,0,0,0.6); color: #fff;
    font-size: 0.65rem; font-weight: 700;
    padding: 2px 7px; border-radius: 5px;
}
.pick-empty {
    grid-column: 1 / -1; text-align: center; color: var(--text-muted);
    padding: 40px 10px; font-size: 0.85rem;
}
.pick-empty i { display: block; font-size: 1.6rem; margin-bottom: 10px; color: var(--text-faint); }

/* Sürüm rozeti */
.app-version {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.68rem;
    color: var(--text-faint);
    font-weight: 500;
}
.footer-version {
    display: block;
    margin-top: 4px;
    font-size: 0.68rem;
    color: var(--text-faint);
    opacity: 0.7;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .cover-header { gap: 10px; }
    .cover-header > div:first-child { flex: 1; }
    .cover-stats { gap: 8px; }
    .stat-pill { font-size: 0.72rem; padding: 4px 10px; }
}
@media (max-width: 600px) {
    .cover-page { padding: 12px 10px 60px; }
    .cover-header { flex-direction: column; align-items: stretch; padding: 12px 14px; }
    .cover-header > div { width: 100%; }
    .cover-header > div:last-child { display: flex; align-items: center; justify-content: space-between; }
    /* Panel header: üstte anasayfa/logo/çıkış, altta yatay kayan sayaçlar */
    .cover-header-panel { flex-direction: column; align-items: stretch; }
    .cover-header-panel .cover-header-top { width: 100%; }
    .cover-header-panel .cover-header-top h1 { font-size: 1.05rem; }
    .cover-header-panel .cover-stats {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }
    .cover-header-panel .cover-stats::-webkit-scrollbar { display: none; }
    .cover-header-panel .stat-pill { flex: 0 0 auto; white-space: nowrap; }
    /* Sekmeler mobilde yatay kaydırılır */
    .adm-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .adm-tabs::-webkit-scrollbar { display: none; }
    .adm-tab { flex: 0 0 auto; padding: 9px 12px; }
    .admin-upload-grid { grid-template-columns: 1fr; }
    .settings-form { flex-wrap: wrap; }
    .settings-grid { gap: 12px; }
    .admin-section-title { gap: 6px; flex-wrap: wrap; }
    .admin-sort { margin-left: auto; margin-top: 6px; }
    .admin-sort + .admin-search-wrap { margin-left: 8px; }
    .admin-search-wrap { width: auto; flex: 1; margin-top: 6px; }
    .admin-search-wrap input { flex: 1; width: auto; }
    .cover-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .admin-section { padding: 14px; }
}
@media (max-width: 480px) {
    .page-wrap { padding: 12px 10px 60px; }
    form { padding: 14px 14px 18px; }
    .card-header { padding: 16px 14px 0; }
    .mode-tabs { margin: 12px 14px 0; }
    .row-2 { grid-template-columns: 1fr 1fr; gap: 8px; }
    .dd-row { flex-wrap: wrap; gap: 8px; }
    .dd-row > .form-group { flex: 1 1 100%; }
    .result-area { padding: 0 14px 14px; }
    .cover-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
    .admin-section { padding: 12px; }
    .cover-actions { flex-wrap: wrap; }
    .cover-actions .chapter-input { width: 50px; }
    .back-link { font-size: 0.78rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   v1.2.0 — Bitti durumu, opsiyoneller, çözünürlük, cropper, oyuna özel tasarım
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Oyun durumu (bitti/sarmadı/kötü) — ön yüz seçici (aramada görünür) ── */
.pick-item { position: relative; }
.pick-item.pick-done img,
.pick-item.pick-sarmadi img,
.pick-item.pick-bad img { position: relative; }
.pick-item.pick-done::after,
.pick-item.pick-sarmadi::after,
.pick-item.pick-bad::after {
    content: ""; position: absolute; inset: 0;
    pointer-events: none; z-index: 1; border-radius: inherit;
}
.pick-item.pick-done::after    { background: rgba(0,0,0,0.55); }
.pick-item.pick-sarmadi::after { background: rgba(224,168,0,0.38); }
.pick-item.pick-bad::after     { background: rgba(224,38,38,0.42); }
.pick-status-badge {
    position: absolute; top: 6px; left: 6px;
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.58rem; font-weight: 700; letter-spacing: 0.5px;
    color: #fff; border: 1px solid rgba(255,255,255,0.2);
    padding: 2px 7px; border-radius: 5px;
    pointer-events: none; z-index: 2;
}
.pick-done .pick-status-badge    { background: rgba(40,40,44,0.9); color: #d5d5d5; }
.pick-sarmadi .pick-status-badge { background: rgba(224,168,0,0.9); }
.pick-bad .pick-status-badge     { background: rgba(224,38,38,0.9); }

/* ── Bitti butonu (ana sayfa, yalnızca yönetici) ── */
.btn-bitti {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: var(--surface2);
    border: 1px dashed var(--border);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-family: inherit; font-size: 0.82rem; font-weight: 500;
    cursor: pointer; transition: var(--transition);
}
.btn-bitti:hover { border-color: var(--border-focus); color: var(--text); }
.btn-bitti i { color: var(--red); }

/* Ayraç/Bölüm satırı + solda kompakt "Bitti" ikon butonu */
.shared-row { display: flex; gap: 10px; align-items: flex-end; }
.btn-bitti.mini {
    width: auto; margin: 0;
    flex-shrink: 0;
    height: 44px; padding: 0 15px;
    border-style: solid;
}
.btn-bitti.mini span { display: none; } /* yalnızca ikon; metin title'da */
.btn-bitti.mini i { font-size: 1rem; }
.btn-bitti.is-done {
    background: rgba(76,222,128,0.08);
    border-color: rgba(76,222,128,0.35);
    color: #4cde80;
}
.btn-bitti.is-done i { color: #4cde80; }

/* ── Ana sayfa kutucukları (logolar + opsiyoneller) — kompakt chip görünümü ── */
#mainForm .checkboxes { gap: 8px; }
#mainForm .checkboxes .check-box { display: none; }
#mainForm .checkboxes .check-label {
    gap: 6px;
    padding: 6px 13px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--text-muted);
    user-select: none;
    transition: var(--transition);
}
#mainForm .checkboxes .check-label::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    opacity: 0.25;
    transition: var(--transition);
}
#mainForm .checkboxes .check-label:hover { border-color: var(--border-focus); color: var(--text); }
#mainForm .checkboxes .check-label:has(input:checked) {
    background: var(--red-dim);
    border-color: var(--border-focus);
    color: var(--text);
}
#mainForm .checkboxes .check-label:has(input:checked)::before {
    color: var(--red);
    opacity: 1;
}
.opt-checkboxes {
    margin-top: -6px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    flex-wrap: wrap;
}

/* ── Yeni ekle: dosya adı önizlemesi ── */
.slug-preview {
    margin-top: 7px;
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex; align-items: center; gap: 6px;
}
.slug-preview i { color: var(--red); font-size: 0.7rem; }
.slug-preview code {
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 2px 8px; border-radius: 5px;
    color: var(--text); font-size: 0.72rem;
}

/* ── Kapak kartı: durum rozetleri / örtü / özel tasarım / mini butonlar ──
 * Durumlar birbirini dışlar: bitti (gri), sarmadı (sarı), kötü (kırmızı).
 * İşaretsiz = oynanacak (nötr). */
.cover-status-badge {
    position: absolute; top: 8px; left: 8px;
    display: none; align-items: center; gap: 4px;
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.5px;
    color: #fff; border: 1px solid rgba(255,255,255,0.22);
    padding: 2px 8px; border-radius: 5px;
    z-index: 3;
}
.badge-done    { background: rgba(60,60,66,0.9);  color: #d5d5d5; }
.badge-sarmadi { background: rgba(224,168,0,0.9); }
.badge-bad     { background: rgba(224,38,38,0.9); }
.cover-card.is-done    .badge-done    { display: inline-flex; }
.cover-card.is-sarmadi .badge-sarmadi { display: inline-flex; }
.cover-card.is-bad     .badge-bad     { display: inline-flex; }

/* Kart örtüleri — hepsi şeffaf renk katmanı (bitti: siyah, sarmadı: sarı, kötü: kırmızı) */
.cover-card.is-done .cover-thumb::after,
.cover-card.is-sarmadi .cover-thumb::after,
.cover-card.is-bad .cover-thumb::after {
    content: ""; position: absolute; inset: 0;
    pointer-events: none; z-index: 1;
}
.cover-card.is-done .cover-thumb::after    { background: rgba(0,0,0,0.55); }
.cover-card.is-sarmadi .cover-thumb::after { background: rgba(224,168,0,0.38); }
.cover-card.is-bad .cover-thumb::after     { background: rgba(224,38,38,0.42); }
.cover-card.is-done .cover-name,
.cover-card.is-sarmadi .cover-name,
.cover-card.is-bad .cover-name { color: var(--text-muted); }

.cover-custom-badge {
    position: absolute; bottom: 8px; right: 8px;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,37,3,0.85); color: #fff;
    border-radius: 6px; font-size: 0.65rem;
    z-index: 2;
}
.cover-actions-2 { margin-top: 6px; }
.btn-mini {
    width: 30px; height: 30px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-size: 0.72rem; cursor: pointer;
    transition: var(--transition);
}
.btn-mini:hover { color: var(--text); border-color: var(--border-focus); background: var(--surface3); }
/* Durum butonları — aktif renkleri */
.btn-mini.btn-status.status-active.active {
    background: rgba(76,222,128,0.14); border-color: rgba(76,222,128,0.45); color: #4cde80;
}
.btn-mini.btn-status.status-done.active {
    background: rgba(160,160,168,0.16); border-color: rgba(160,160,168,0.5); color: #cfcfcf;
}
.btn-mini.btn-status.status-sarmadi.active {
    background: rgba(224,168,0,0.16); border-color: rgba(224,168,0,0.5); color: #f0c040;
}
.btn-mini.btn-status.status-bad.active {
    background: rgba(224,38,38,0.14); border-color: rgba(224,38,38,0.45); color: #ff5a5a;
}

/* Üst sayaç filtreleri (buton olarak) */
.filter-pill { cursor: pointer; font: inherit; line-height: 1.2; transition: var(--transition); }
.filter-pill:hover { filter: brightness(1.2); border-color: var(--border-focus); }
.filter-pill.active { box-shadow: 0 0 0 2px rgba(255,255,255,0.14) inset; }
.filter-pill.pill-active  strong { color: #4cde80; }
.filter-pill.pill-sarmadi strong { color: #f0c040; }
.filter-pill.pill-bad     strong { color: #ff5a5a; }
.filter-pill.pill-done    strong { color: #cfcfcf; }
.filter-pill.pill-active.active  { background: rgba(76,222,128,0.14);  border-color: rgba(76,222,128,0.4); }
.filter-pill.pill-sarmadi.active { background: rgba(224,168,0,0.16);  border-color: rgba(224,168,0,0.45); }
.filter-pill.pill-bad.active     { background: rgba(224,38,38,0.14);  border-color: rgba(224,38,38,0.45); }
.filter-pill.pill-done.active    { background: rgba(160,160,168,0.16); border-color: rgba(160,160,168,0.45); }

/* ── Opsiyonel editörü (panel içerik sekmesi) ── */
.si-opt-row {
    display: flex; gap: 8px; align-items: center;
    margin-bottom: 8px;
}
.si-opt-row input {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-family: inherit; font-size: 0.82rem;
    outline: none; transition: var(--transition);
}
.si-opt-row input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--red-dim); }
.si-opt-row .si-opt-ad { flex: 1; min-width: 120px; }
.si-opt-row .si-opt-metin { flex: 2; min-width: 160px; }
.si-opt-aktif {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
    cursor: pointer; user-select: none;
}
.si-opt-aktif input { width: 15px; height: 15px; accent-color: var(--red); cursor: pointer; }
@media (max-width: 600px) {
    .si-opt-row { flex-wrap: wrap; }
    .si-opt-row .si-opt-ad, .si-opt-row .si-opt-metin { flex: 1 1 100%; }
    .si-opt-aktif { flex: 1 1 auto; }
}

/* ── Görsel düzenleme modalı (Cropper) ── */
.crop-modal {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.crop-dialog {
    width: min(880px, 100%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.crop-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem; font-weight: 600;
}
.crop-head i { color: var(--red); margin-right: 6px; }
.crop-close {
    background: none; border: none; color: var(--text-muted);
    font-size: 1rem; cursor: pointer; padding: 4px 8px;
    border-radius: 6px; transition: var(--transition);
}
.crop-close:hover { color: var(--text); background: var(--surface2); }
.crop-stage {
    background: #000;
    max-height: min(58vh, 500px);
    overflow: hidden;
}
.crop-stage img { display: block; max-width: 100%; }
.crop-tools {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

/* ── Tasarım hedefi rozeti (editör) ── */
.ed-custom-badge {
    font-size: 0.62rem; font-weight: 700;
    padding: 3px 8px; border-radius: 5px;
    background: var(--surface3); color: var(--text-muted);
    border: 1px solid var(--border);
    white-space: nowrap;
}
.ed-custom-badge.is-custom {
    background: rgba(255,37,3,0.14);
    border-color: rgba(255,37,3,0.4);
    color: var(--red);
}
.ed-layer-bg { border-top: 1px dashed var(--border); border-radius: 0; margin-top: 4px; }

/* ── Opsiyonel yer tutucu rozeti ({1}, {2}…) ── */
.si-opt-idx {
    flex-shrink: 0;
    font-size: 0.72rem; font-weight: 700;
    font-family: monospace;
    background: var(--surface3);
    border: 1px solid var(--border);
    color: var(--red);
    padding: 6px 8px; border-radius: var(--radius-sm);
    cursor: default;
}

/* ── Kompakt oyun kapakları ızgarası ── */
.cover-grid {
    grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
    gap: 12px;
}
.cover-info { padding: 8px 10px; }
.cover-name { margin-bottom: 6px; }
.cover-actions { flex-wrap: wrap; gap: 6px; }
.cover-actions .btn-mini {
    flex: 1;
    min-width: 36px;
    width: auto;
    height: 30px;
    font-size: 0.78rem;
}

/* ── Hizalama kılavuzları (snap çizgileri) ── */
.ed-guide {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    background: #2fd4ff;
}
.ed-guide-v { top: 0; bottom: 0; width: 1px; box-shadow: 0 0 4px rgba(47,212,255,0.7); }
.ed-guide-h { left: 0; right: 0; height: 1px; box-shadow: 0 0 4px rgba(47,212,255,0.7); }
/* Sürükleme sırasında konum/boyut rozeti */
.ed-coord {
    position: absolute;
    z-index: 21;
    pointer-events: none;
    transform: translateY(-100%);
    margin-top: -4px;
    background: rgba(0,0,0,0.82);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    padding: 2px 7px;
    border-radius: 5px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ── PWA yükleme çubuğu ── */
.pwa-banner {
    position: fixed;
    left: 50%; bottom: 14px;
    transform: translateX(-50%);
    z-index: 150;
    display: flex; align-items: center; gap: 12px;
    width: min(480px, calc(100vw - 24px));
    padding: 10px 12px;
    background: rgba(20,20,23,0.92);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.55);
    animation: pwa-banner-in 0.35s ease;
}
@keyframes pwa-banner-in {
    from { opacity: 0; transform: translate(-50%, 16px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}
.pwa-banner-logo { height: 26px; width: auto; flex-shrink: 0; }
.pwa-banner-text { flex: 1; font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }
.pwa-banner-text b { color: var(--text); }
.pwa-banner-text i { color: var(--red); font-size: 0.72rem; }
.pwa-banner-install {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: var(--red);
    border: none; border-radius: 8px;
    color: #fff; font-family: inherit;
    font-size: 0.78rem; font-weight: 600;
    cursor: pointer; transition: var(--transition);
}
.pwa-banner-install:hover { background: var(--primary-dark, #d61f02); }
.pwa-banner-close {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none;
    color: var(--text-faint); font-size: 0.85rem;
    cursor: pointer; border-radius: 8px;
    transition: var(--transition);
}
.pwa-banner-close:hover { color: var(--text); background: var(--surface2); }

/* ── Aşağı çek-yenile göstergesi ── */
html, body { overscroll-behavior-y: contain; } /* tarayıcının kendi yenilemesiyle çakışmasın */
.ptr-indicator {
    position: fixed;
    top: -46px; left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    will-change: transform;
}
.ptr-indicator.visible { opacity: 1; }
.ptr-indicator.ready { color: var(--red); border-color: var(--border-focus); background: var(--red-dim); }

/* ── Font yönetimi ── */
.font-upload-row { margin-bottom: 14px; }
.font-list { display: flex; flex-direction: column; gap: 8px; }
.font-row {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 14px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.font-row:hover { border-color: var(--border-focus); }
.font-preview {
    flex: 1;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.font-info { flex-shrink: 0; text-align: right; min-width: 130px; }
.font-name { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.font-size { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }
.font-row .btn-mini { flex: 0 0 30px; width: 30px; }
@media (max-width: 600px) {
    .font-row { flex-wrap: wrap; }
    .font-preview { flex: 1 1 100%; font-size: 1.2rem; }
    .font-info { text-align: left; }
}

/* ── Font önizleme metni girişi ── */
.font-upload-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.font-sample-wrap { flex: 1; min-width: 200px; max-width: 420px; }

/* ── Başlık kopyalama mini butonu (içerik kartı) ── */
.hc-copy-mini {
    margin-left: auto;
    width: 26px; height: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--transition);
}
.hc-copy-mini:hover { color: var(--red); border-color: var(--border-focus); }

/* ─── Tag input (ayraç seçenekleri) ──────────────────────────────────────── */
.tag-input {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    min-height: 44px;
    cursor: text;
    transition: var(--transition);
}
.tag-input:focus-within {
    border-color: var(--border-focus);
    background: var(--surface3);
}
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--surface3);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 6px 4px 11px;
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1;
    white-space: pre;
}
.tag-chip.is-default {
    background: var(--red-dim);
    border-color: var(--border-focus);
}
.tag-chip-text { font-variant-ligatures: none; }
.tag-chip-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}
.tag-chip-x:hover { background: var(--red); color: #fff; }
.tag-input-field {
    flex: 1;
    min-width: 120px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 0.9rem;
    padding: 4px 2px;
    outline: none;
}
.tag-input-field::placeholder { color: var(--text-muted); }
