/* Beta portaline (Oturum 8g) OZEL kurallar. reseller/public/assets/css/
   reseller.css ile BASLAYAN KOPYA'dir (giris, kart, kv, TOTP, modal
   kurallari ayni); ortak tasarim sistemi shared/app.css'tedir (uretilmis
   kopyasi, burada ezilmez). Sinif adlari (admin-card, admin-kv,
   admin-badge...) bilerek AYNI kalir. */

.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--scope-view-bg);
    color: var(--scope-view-text);
}

.sidebar__brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 0;
    line-height: 1.15;
}

.sidebar__brand {
    position: relative;
}

.shell.is-collapsed .sidebar__brand-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    align-items: center;
    pointer-events: none;
}

.shell.is-collapsed .sidebar__brand-text .admin-badge {
    font-size: 8px;
    line-height: 12px;
    padding: 0 4px;
}

.shell.is-collapsed .sidebar__brand {
    padding-bottom: 12px;
}

@media (max-width: 768px) {
    .shell.is-collapsed .sidebar__brand-text {
        position: static;
        align-items: flex-end;
    }

    .shell.is-collapsed .sidebar__brand-text .admin-badge {
        font-size: 10px;
        line-height: 16px;
        padding: 0 6px;
    }

    .shell.is-collapsed .sidebar__brand {
        padding-bottom: 0;
    }
}

/* Giris/basvuru/sifirlama: tek bolme (pazarlama bolmesi yok). */
.admin-login .admin-login__pane {
    flex: 1 1 100%;
}

.admin-login__card {
    max-width: 400px;
}

.admin-login__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.admin-login__brand .brand-mark {
    width: 28px;
    height: 28px;
    color: var(--accent-mark);
}

.login-step__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
}

.login-step__desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.login-step__link {
    background: none;
    border: 0;
    padding: 0;
    color: var(--accent);
    cursor: pointer;
    font-size: 13px;
    margin-top: 12px;
}

.totp-qr {
    display: flex;
    justify-content: center;
    padding: 12px;
    margin: 0 auto 12px;
    width: fit-content;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.totp-qr svg {
    display: block;
    width: 200px;
    height: 200px;
}

.totp-secret {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    letter-spacing: 0.08em;
    word-break: break-all;
    padding: 8px 10px;
    border-radius: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    margin-bottom: 16px;
    user-select: all;
}

.backup-codes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 16px;
    padding: 0;
    list-style: none;
}

.backup-codes li {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 15px;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    user-select: all;
}

.code-input {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 20px;
    letter-spacing: 0.3em;
    text-align: center;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 1000px) {
    .admin-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    min-width: 0;
}

.admin-card__title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.admin-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.admin-kv {
    display: grid;
    grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
    gap: 6px 12px;
    font-size: 13px;
    margin: 0;
}

.admin-kv dt {
    color: var(--text-muted);
}

.admin-kv dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.table tr.is-clickable {
    cursor: pointer;
}

.modal--form {
    max-width: 560px;
}

.modal--form .field:last-of-type {
    margin-bottom: 12px;
}

.field-required {
    color: var(--danger);
    margin-left: 2px;
}

.modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
}

.modal-overlay > .modal {
    margin: auto;
}

.license-key-cell {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    overflow-wrap: anywhere;
    white-space: nowrap;
    overflow-x: auto;
}

/* --- Basvuru formu (apply.php/apply.js) -------------------------------- */
/* Sabit ince baslik cubugu + masaustunde %40 marka blogu / %60 form. */
.apply-page {
    --apply-bar-h: 52px;
    margin: 0;
    background: var(--bg);
}

.apply-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--apply-bar-h);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: var(--header-bg, var(--surface));
    border-bottom: 1px solid var(--border);
}

.apply-bar__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.apply-bar__brand .brand-mark {
    width: 22px;
    height: 22px;
    color: var(--accent-mark, var(--accent));
}

.apply-bar__controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.apply-layout {
    display: grid;
    grid-template-columns: 40% 60%;
    padding-top: var(--apply-bar-h);
    min-height: 100vh;
    box-sizing: border-box;
}

.apply-aside {
    background: var(--accent);
    color: #fff;
}

.apply-aside__inner {
    position: sticky;
    top: var(--apply-bar-h);
    min-height: calc(100vh - var(--apply-bar-h));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    box-sizing: border-box;
}

.apply-aside__mark {
    display: block;
    width: 56px;
    height: 56px;
    color: #fff;
    margin-bottom: 20px;
}

.apply-aside__mark svg {
    width: 100%;
    height: 100%;
}

.apply-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 24px;
}

.apply-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 15px;
    line-height: 1.5;
    max-width: 380px;
}

.apply-points li {
    position: relative;
    padding-left: 26px;
}

.apply-points li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
}

.apply-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 32px 24px;
    box-sizing: border-box;
    min-width: 0;
}

.apply-card {
    width: 100%;
    max-width: 640px;
}

.apply-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.apply-row .field {
    min-width: 0;
}

@media (max-width: 768px) {
    .apply-layout {
        grid-template-columns: 1fr;
    }

    .apply-aside__inner {
        position: static;
        min-height: 0;
        padding: 20px 20px 22px;
    }

    .apply-aside__mark {
        display: none;
    }

    .apply-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .apply-points {
        gap: 6px;
        font-size: 13px;
    }

    .apply-main {
        padding: 20px 16px 16px;
    }

    .apply-row {
        grid-template-columns: 1fr;
    }
}

.apply-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

/* Honeypot: gercek bir kullaniciya HIC GORUNMEZ (display:none DEGIL —
   bazi botlar goruntu ozelligine bakip o alanlari atlar; ekran disina
   tasimak daha fazla botu yakalar), klavye odaklanmasi da atlanir. */
.apply-hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.apply-consent,
.apply-marketing {
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.5;
    margin: 12px 0;
}

.apply-consent a,
.apply-marketing a {
    color: var(--accent);
}

.apply-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 0;
}

.apply-success .icon {
    width: 40px;
    height: 40px;
    color: var(--success, #15803d);
    margin-bottom: 12px;
}

.apply-success__note {
    margin-top: 4px;
}

.apply-form-note {
    margin-top: -4px;
}

/* --- Indirmeler sayfasi -------------------------------------------------- */
.downloads-steps {
    margin: 0 0 12px;
    padding-left: 18px;
    font-size: 13px;
}

/* Kanal kartlari (fix/beta-channel) — urun basina iki kart: Yayinda (kararli)
   ve On surum (beta). Bilinen sorunlar kehribar kutuda; kararliya gecis sarti
   notr kutuda. Renkler yalniz tema token'laridir. */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 800px) {
    .channel-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.channel-card__badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
    background: var(--chip-bg);
    color: var(--chip-text);
}

.channel-card__badge--beta {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.channel-sha {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.channel-sha code {
    overflow-wrap: anywhere;
}

.channel-note {
    margin: 12px 0 0;
    font-size: 13px;
    white-space: pre-line;
}

.channel-box {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    border: 1px solid var(--border);
    background: var(--bg);
}

.channel-box--issues {
    background: var(--warning-bg);
    border-color: var(--warning-border);
}

.channel-box__title {
    margin: 0 0 4px;
    font-weight: 600;
}

.channel-box--issues .channel-box__title {
    color: var(--warning);
}

.channel-box__body {
    margin: 0;
    white-space: pre-line;
}

.channel-card__actions {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* --- Okunmamis gostergesi (fix/beta-polish) — feedback-list.js/
   feedback-detail.js VE admin/beta-feedback.js AYNI iki sinifi kullanir;
   biri degisirse digeri elle guncellenir (ayri web koku, paylasilamaz). */
.unread-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
    margin-right: 6px;
    vertical-align: middle;
}

.table tr.is-unread td:first-child {
    font-weight: 600;
}

/* --- Geri bildirim (feedback-detail.js) ---------------------------------- */
.feedback-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.feedback-message {
    max-width: 80%;
    padding: 10px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg);
}

.feedback-message--admin {
    align-self: flex-start;
    background: var(--surface);
}

.feedback-message--tester {
    align-self: flex-end;
    background: var(--chip-bg, var(--bg));
}

.feedback-message__meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.feedback-message__body {
    font-size: 13px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.feedback-attachments {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.feedback-attachments li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-attachments a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
}

/* --- Yonergeler (fix/site-beta-3) --- */
.guide-card {
    margin-bottom: 16px;
    max-width: 860px;
}

.guide-card p {
    margin: 0 0 8px;
}

.guide-list {
    margin: 0;
    padding-left: 20px;
}

.guide-list li + li {
    margin-top: 4px;
}

.guide-logpath {
    margin: 8px 0 4px;
}

.guide-progress {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.guide-tasks {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.guide-task {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--divider);
}

.guide-task:first-child {
    border-top: none;
}

.guide-task__mark {
    flex: 0 0 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.guide-task.is-done .guide-task__mark {
    border-color: transparent;
    color: var(--success);
}

.guide-task__mark svg {
    width: 22px;
    height: 22px;
}

.guide-task__text {
    flex: 1;
    min-width: 0;
}

.guide-task__text p {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.guide-task > .btn {
    flex: 0 0 auto;
}

.guide-ack {
    margin: 8px 0 24px;
}

@media (max-width: 600px) {
    .guide-task {
        flex-wrap: wrap;
    }
    /* Dar ekranda metin tam genislik kalir, dugme bir alt satira iner. */
    .guide-task__text {
        flex: 1 1 calc(100% - 40px);
    }
    .guide-task > .btn {
        margin-left: 34px;
    }
}
