:root {
    --background: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border: #e3e9f1;
    --text: #12213a;
    --muted: #64748b;
    --primary: #09a79c;
    --primary-dark: #07867e;
    --primary-soft: #e7f8f6;
    --success: #16a765;
    --danger: #ef4444;
    --danger-soft: #feecec;
    --side-width: 225px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--background);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.hidden {
    display: none !important;
}

/* LOGIN */

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(9, 167, 156, .15), transparent 35%),
        var(--background);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 38px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(32, 52, 82, .12);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, #3b82f6, var(--primary));
    border-radius: 13px;
}

.brand strong,
.brand span {
    display: block;
}

.brand strong {
    color: var(--primary-dark);
    font-size: 25px;
}

.brand span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .8px;
}

.login-card h1 {
    margin: 30px 0 8px;
}

.login-card p {
    color: var(--muted);
}

.login-card label {
    display: block;
    margin: 16px 0 7px;
    font-size: 13px;
    font-weight: 600;
}

.login-card input {
    width: 100%;
    padding: 13px;
    border: 1px solid #d4dde8;
    border-radius: 9px;
    outline: none;
}

.login-card input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.login-card button {
    width: 100%;
    margin-top: 22px;
    padding: 13px;
    color: white;
    background: var(--primary);
    border: 0;
    border-radius: 9px;
    font-weight: 700;
}

.error {
    min-height: 20px;
    margin-top: 14px;
    color: var(--danger);
}

/* HEADER */

.panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: white;
    border-bottom: 1px solid var(--border);
}

.header-top {
    min-height: 72px;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand.compact .brand-icon {
    width: 40px;
    height: 40px;
}

.brand.compact strong {
    font-size: 22px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-card {
    min-width: 74px;
    padding: 8px 11px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.status-card span,
.status-card strong {
    display: block;
}

.status-card span {
    color: var(--muted);
    font-size: 9px;
}

.status-card strong {
    margin-top: 3px;
    color: var(--success);
    font-size: 12px;
}

.icon-button {
    width: 38px;
    height: 38px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 9px;
}

.admin-box {
    display: flex;
    align-items: center;
    gap: 9px;
}

.admin-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--primary);
    border-radius: 50%;
    font-weight: 700;
}

.admin-box strong,
.admin-box span {
    display: block;
}

.admin-box span {
    color: var(--muted);
    font-size: 11px;
}

.logout-button {
    padding: 9px 12px;
    color: var(--danger);
    background: var(--danger-soft);
    border: 0;
    border-radius: 8px;
}

/* TOP NAV */

.top-navigation {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0 20px;
    overflow-x: auto;
    border-top: 1px solid #f0f3f7;
}

.top-nav {
    min-height: 46px;
    padding: 0 15px;
    white-space: nowrap;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    font-size: 13px;
    font-weight: 600;
}

.top-nav:hover,
.top-nav.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

/* MAIN LAYOUT */

.layout {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 119px);
}

.side-panel {
    width: var(--side-width);
    flex: 0 0 var(--side-width);
    background: white;
    border-right: 1px solid var(--border);
}

.side-heading {
    padding: 20px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}

.side-navigation {
    padding: 12px 10px;
}

.side-nav-item {
    width: 100%;
    margin-bottom: 4px;
    padding: 11px 13px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 7px;
    text-align: left;
    font-size: 13px;
}

.side-nav-item:hover,
.side-nav-item.active {
    color: var(--primary-dark);
    background: var(--primary-soft);
    border-left-color: var(--primary);
}

.workspace {
    min-width: 0;
    flex: 1;
    padding: 26px;
}

.page-header {
    margin-bottom: 20px;
}

.page-header h1 {
    margin: 0;
    font-size: 24px;
}

.page-header p {
    margin: 5px 0 0;
    color: var(--muted);
}

.page-content {
    min-height: 340px;
}

.module-placeholder {
    padding: 30px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.module-placeholder h2 {
    margin-top: 0;
}

.module-placeholder p {
    color: var(--muted);
}

.message {
    margin-bottom: 17px;
    padding: 12px 15px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    border-radius: 9px;
}

.footer {
    min-height: 44px;
    padding: 0 23px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    background: white;
    border-top: 1px solid var(--border);
    font-size: 11px;
}

@media (max-width: 900px) {
    .status-card {
        display: none;
    }

    .side-panel {
        width: 180px;
        flex-basis: 180px;
    }

    .workspace {
        padding: 18px;
    }
}

@media (max-width: 650px) {
    .admin-box > div:last-child,
    .brand.compact > div:last-child {
        display: none;
    }

    .side-panel {
        display: none;
    }

    .header-top {
        padding: 9px 13px;
    }
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.dashboard-card,
.panel-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.dashboard-card {
    padding: 21px;
}

.dashboard-card span {
    color: var(--muted);
    font-size: 13px;
}

.dashboard-card strong {
    display: block;
    margin: 10px 0 7px;
    font-size: 30px;
}

.dashboard-card small {
    color: var(--success);
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.panel-card {
    overflow: hidden;
}

.panel-card-header {
    min-height: 62px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.panel-card-header h2 {
    margin: 0;
    font-size: 17px;
}

.panel-card-header span {
    color: var(--muted);
    font-size: 12px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
    font-size: 13px;
}

th {
    color: var(--muted);
    background: var(--surface-soft);
    font-size: 11px;
    text-transform: uppercase;
}

.durum {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.durum-aktif {
    color: #078544;
    background: #e8f8ef;
}

.durum-hata {
    color: #d92d20;
    background: #feeceb;
}

.durum-bekliyor {
    color: #a15c00;
    background: #fff4db;
}

.islem-baslat,
.islem-durdur {
    padding: 6px 9px;
    border-radius: 6px;
    font-size: 11px;
}

.islem-baslat {
    color: #078544;
    background: #e8f8ef;
    border: 1px solid #8bd8ae;
}

.islem-durdur {
    color: #d92d20;
    background: #feeceb;
    border: 1px solid #f5aaa4;
}

@media (max-width: 1100px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .panel-grid {
        grid-template-columns: 1fr;
    }
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.toolbar-actions {
    display: flex;
    gap: 8px;
}

.primary-action {
    padding: 9px 14px;
    color: #fff;
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    font-weight: 600;
}

.primary-action:hover {
    background: var(--primary-dark);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.48);
}

.modal-card {
    width: 100%;
    max-width: 620px;
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.modal-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    margin: 0;
    font-size: 19px;
}

.modal-close {
    width: 34px;
    height: 34px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.modal-body {
    padding: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 11px 12px;
    color: var(--text);
    background: var(--surface-soft);
    border: 1px solid #d4dde8;
    border-radius: 8px;
    outline: none;
}

.form-field textarea {
    min-height: 85px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.modal-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    border-top: 1px solid var(--border);
}

.secondary-action {
    padding: 9px 14px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.form-error {
    margin-top: 13px;
    color: var(--danger);
    font-size: 13px;
}

@media (max-width: 650px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field.full {
        grid-column: auto;
    }
}

.form-hint {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

.sure-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.sure-cell small {
    color: var(--muted);
    font-size: 10px;
}

.sure-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.sure-suresiz {
    color: #087443;
    background: #e7f8ef;
}

.sure-normal {
    color: #1769aa;
    background: #e9f4ff;
}

.sure-yaklasiyor {
    color: #8a6100;
    background: #fff4cc;
}

.sure-kritik {
    color: #a14d00;
    background: #ffead1;
}

.sure-doldu {
    color: #c62828;
    background: #feecec;
}

.password-field-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.password-field-row input {
    min-width: 0;
    flex: 1;
}

.password-field-row button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.checkbox-row {
    margin-top: 11px !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500 !important;
}

.checkbox-row input {
    width: 17px !important;
    height: 17px;
    margin: 0;
    accent-color: var(--primary);
}

.checkbox-row span {
    color: var(--text);
    font-size: 12px;
}

.form-hint {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.form-field input[readonly],
.form-field input:disabled {
    color: #64748b;
    background: #eef2f6;
    cursor: not-allowed;
}

.subscriber-row {
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        box-shadow 0.15s ease;
}

.subscriber-row:hover {
    background: var(--primary-soft);
}

.subscriber-row:hover td:first-child strong {
    color: var(--primary-dark);
}

.subscriber-row:focus {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    background: var(--primary-soft);
}

.subscriber-row td {
    transition: background-color 0.15s ease;
}

.subscriber-password-cell {
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.subscriber-password-cell code {
    min-width: 105px;
    padding: 6px 8px;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #dce4ee;
    border-radius: 6px;
    font-size: 12px;
}

.password-action {
    padding: 6px 8px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    border: 1px solid #8fded7;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}

.password-action:hover {
    color: white;
    background: var(--primary);
}

.password-unavailable {
    color: var(--muted);
    font-size: 11px;
}

.subscriber-table {
    min-width: 1500px;
}

.subscriber-table th,
.subscriber-table td {
    vertical-align: middle;
}

.sequence-column {
    width: 45px;
    color: var(--muted);
    font-weight: 700;
    text-align: center;
}

.owner-label {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
}

.connection-status {
    min-width: 85px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.connection-status strong {
    font-size: 12px;
}

.online-badge,
.offline-badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.online-badge {
    color: #087443;
    background: #e7f8ef;
}

.offline-badge {
    color: #64748b;
    background: #edf1f5;
}

.subscriber-info {
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.subscriber-info strong {
    color: var(--primary-dark);
    font-size: 12px;
}

.subscriber-info span {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
    white-space: normal;
}

.offline-info {
    color: var(--muted);
    font-size: 11px;
}

.subscriber-actions {
    min-width: 145px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.table-action {
    padding: 6px 9px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}

.edit-table-action {
    color: #087f78;
    background: #e7f8f6;
    border: 1px solid #8fded7;
}

.ban-table-action {
    color: #c62828;
    background: #feecec;
    border: 1px solid #f5aaa4;
}

.activate-table-action {
    color: #087443;
    background: #e7f8ef;
    border: 1px solid #8bd8ae;
}

.lock-summary {
    margin-top: 7px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lock-summary span {
    color: var(--muted);
    font-size: 9px;
}

.bouquet-section-header {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.bouquet-toolbar {
    display: flex;
    gap: 7px;
}

.bouquet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.bouquet-choice {
    margin: 0 !important;
    padding: 11px 12px;
    display: flex !important;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #dce4ee;
    border-radius: 9px;
    cursor: pointer;
}

.bouquet-choice:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.bouquet-choice input {
    width: 17px !important;
    height: 17px;
    margin: 0;
    accent-color: var(--primary);
}

.bouquet-choice-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bouquet-choice-info strong {
    color: var(--text);
    font-size: 12px;
}

.bouquet-choice-info small {
    color: var(--muted);
    font-size: 10px;
}

.empty-bouquet-message {
    grid-column: 1 / -1;
    padding: 15px;
    color: var(--muted);
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
}

@media (max-width: 650px) {
    .bouquet-grid {
        grid-template-columns: 1fr;
    }

    .bouquet-section-header {
        flex-direction: column;
    }
}
.subscriber-filter-bar {
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 1.6fr repeat(5, 1fr) auto;
    align-items: end;
    gap: 10px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.filter-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.filter-field input,
.filter-field select {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    background: white;
    border: 1px solid #d4dde8;
    border-radius: 7px;
}

.filter-clear-field button {
    height: 38px;
}

.empty-filter-result {
    padding: 30px !important;
    color: var(--muted);
    text-align: center;
}

.playlist-copy-action {
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #93c5fd;
}

.playlist-download-action {
    color: #7c3aed;
    background: #f5f3ff;
    border: 1px solid #c4b5fd;
}

.playlist-copy-action,
.playlist-download-action {
    padding: 6px 9px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}

.playlist-copy-action {
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #93c5fd;
}

.playlist-download-action {
    color: #6d28d9;
    background: #f5f3ff;
    border: 1px solid #c4b5fd;
}

.subscriber-playlist-box {
    margin-top: 18px;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #dce4ee;
    border-radius: 10px;
}

.subscriber-playlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.subscriber-playlist-header > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.subscriber-playlist-header strong {
    font-size: 13px;
}

.subscriber-playlist-header small {
    color: var(--muted);
    font-size: 10px;
}

.subscriber-playlist-actions {
    display: flex;
    gap: 7px;
}

.subscriber-playlist-format {
    margin-top: 11px;
    padding: 9px 11px;
    color: #475569;
    background: white;
    border: 1px solid #dce4ee;
    border-radius: 7px;
    font-family: monospace;
    font-size: 11px;
}

/* CKYTV PLAYLIST FORMAT SELECTOR */

.playlist-format-selector {
    margin-top: 14px;
    padding: 13px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    background: #fff;
    border: 1px solid #dce4ee;
    border-radius: 9px;
}

.playlist-format-title {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.playlist-format-option {
    margin: 0 !important;
    padding: 11px 12px;
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #dce4ee;
    border-radius: 8px;
    cursor: pointer;
}

.playlist-format-option:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.playlist-format-option:has(input:checked) {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.playlist-format-option input {
    width: 17px !important;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--primary);
}

.playlist-format-option span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.playlist-format-option strong {
    color: var(--text);
    font-size: 12px;
}

.playlist-format-option small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

@media (max-width: 650px) {
    .playlist-format-selector {
        grid-template-columns: 1fr;
    }

    .playlist-format-title {
        grid-column: auto;
    }
}

.subscriber-owner-cell {
    min-width: 105px;
}

.subscriber-owner-cell strong {
    display: block;
    color: var(--text);
    font-size: 12px;
}

.subscriber-owner-cell small {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 7px;
    color: #475569;
    background: #eef2f7;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 700;
}

.lock-disabled-action {
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
}

.lock-enabled-action {
    color: #087443;
    background: #e7f8ef;
    border: 1px solid #86d6aa;
}

/* CKYTV subscriber table compact layout */

.subscriber-owner-cell{
    width:70px;
    min-width:70px;
}

.subscriber-owner-cell strong{
    font-size:11px;
}

.subscriber-owner-cell small{
    font-size:9px;
    padding:2px 5px;
}

.subscriber-note-cell{
    width:190px;
    max-width:190px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.subscriber-actions-cell{
    width:450px;
    min-width:450px;
    white-space:nowrap;
}

.subscriber-actions-cell .table-action{
    display:inline-flex;
    margin:2px;
    padding:4px 8px;
    font-size:11px;
}


/* CKYTV subscriber table compact layout */

.subscriber-owner-cell{
    width:70px;
    min-width:70px;
}

.subscriber-owner-cell strong{
    font-size:11px;
}

.subscriber-owner-cell small{
    font-size:9px;
    padding:2px 5px;
}

.subscriber-note-cell{
    width:190px;
    max-width:190px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.subscriber-actions-cell{
    width:450px;
    min-width:450px;
    white-space:nowrap;
}

.subscriber-actions-cell .table-action{
    display:inline-flex;
    margin:2px;
    padding:4px 8px;
    font-size:11px;
}


/* CKYTV kullanıcı tablosu tek satır işlemler */

.subscriber-table {
    min-width: 1450px;
    table-layout: auto;
}

.subscriber-owner-cell {
    width: 75px;
    min-width: 75px;
    max-width: 85px;
}

.subscriber-owner-cell strong {
    font-size: 11px;
    white-space: nowrap;
}

.subscriber-owner-cell small {
    margin-top: 3px;
    padding: 2px 5px;
    font-size: 8px;
}

.subscriber-note-cell {
    width: 145px;
    min-width: 100px;
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subscriber-actions-cell {
    width: 355px;
    min-width: 355px;
    white-space: nowrap;
}

.subscriber-actions {
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
}

.subscriber-actions .table-action {
    flex: 0 0 auto;
    margin: 0;
    padding: 5px 8px;
    font-size: 9px;
    line-height: 1.2;
    white-space: nowrap;
}

.lock-disabled-action,
.lock-enabled-action,
.playlist-copy-action,
.playlist-download-action {
    min-width: 35px;
    justify-content: center;
}


/* CKYTV kullanıcı tablosu dikey sütun çizgileri */

.subscriber-table {
    border-collapse: collapse;
}

.subscriber-table th,
.subscriber-table td {
    border-right: 1px solid #dfe7f0;
}

.subscriber-table th:last-child,
.subscriber-table td:last-child {
    border-right: 0;
}

.subscriber-table thead th {
    border-bottom: 1px solid #d6e0ea;
}

.subscriber-table tbody tr + tr td {
    border-top: 1px solid #dfe7f0;
}

.subscriber-owner-cell {
    width: 82px;
    min-width: 82px;
    max-width: 95px;
    text-align: left;
}

.subscriber-owner-cell strong {
    display: block;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.row-copy-action {
    color: #7c2d12;
    background: #fff7ed;
    border: 1px solid #fdba74;
}


/* CKYTV kullanıcı sütunu başlıktan sıralama */

.subscriber-sortable-header {
    padding: 0 !important;
}

.subscriber-sort-button {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 0;
    font: inherit;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
}

.subscriber-sort-button:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.subscriber-sort-arrow {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

/* Sıralama alanı kalktığı için filtreleri eşit genişlet */

.subscriber-filter-bar {
    grid-template-columns:
        minmax(250px, 1.5fr)
        repeat(4, minmax(150px, 1fr))
        auto;
}

@media (max-width: 1350px) {
    .subscriber-filter-bar {
        grid-template-columns:
            repeat(3, minmax(180px, 1fr));
    }
}


.delete-subscriber-action {
    color: #991b1b;
    background: #fff1f2;
    border: 1px solid #fda4af;
}

.delete-subscriber-action:hover {
    color: white;
    background: #dc2626;
    border-color: #dc2626;
}


/* CKYTV NOT sütununu küçült */

.subscriber-note-cell {
    width: 90px !important;
    min-width: 70px !important;
    max-width: 90px !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.subscriber-table th:nth-child(9) {
    width: 90px !important;
    min-width: 70px !important;
    max-width: 90px !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
}


/* CKYTV NOT SÜTUNU KESİN DARALTMA */

.subscriber-table {
    width: 100% !important;
    min-width: 1450px !important;
    table-layout: fixed !important;
}

/* # */
.subscriber-table th:nth-child(1),
.subscriber-table td:nth-child(1) {
    width: 38px !important;
}

/* Kullanıcı */
.subscriber-table th:nth-child(2),
.subscriber-table td:nth-child(2) {
    width: 110px !important;
}

/* Parola */
.subscriber-table th:nth-child(3),
.subscriber-table td:nth-child(3) {
    width: 275px !important;
}

/* Oluşturan */
.subscriber-table th:nth-child(4),
.subscriber-table td:nth-child(4) {
    width: 95px !important;
}

/* Bitiş */
.subscriber-table th:nth-child(5),
.subscriber-table td:nth-child(5) {
    width: 118px !important;
}

/* Hesap durumu */
.subscriber-table th:nth-child(6),
.subscriber-table td:nth-child(6) {
    width: 118px !important;
}

/* Bağlantı */
.subscriber-table th:nth-child(7),
.subscriber-table td:nth-child(7) {
    width: 115px !important;
}

/* Bilgi */
.subscriber-table th:nth-child(8),
.subscriber-table td:nth-child(8) {
    width: 275px !important;
}

/* NOT — en dar sütun */
.subscriber-table th:nth-child(9),
.subscriber-table td:nth-child(9),
.subscriber-note-cell {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* İşlemler */
.subscriber-table th:nth-child(10),
.subscriber-table td:nth-child(10),
.subscriber-actions-cell {
    width: 345px !important;
    min-width: 345px !important;
    white-space: nowrap !important;
}


.kick-action {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fbbf24;
}

.kick-action:hover:not(:disabled) {
    color: white;
    background: #d97706;
    border-color: #d97706;
}

.kick-disabled-action {
    cursor: not-allowed;
    opacity: 0.45;
}


/* CKYTV kullanıcı tablosu dar sütun güncellemesi */

/* Bitiş Tarihi */
.subscriber-table th:nth-child(5),
.subscriber-table td:nth-child(5) {
    width: 105px !important;
    min-width: 105px !important;
    max-width: 105px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
}

/* Hesap Durumu */
.subscriber-table th:nth-child(6),
.subscriber-table td:nth-child(6) {
    width: 95px !important;
    min-width: 95px !important;
    max-width: 95px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
}

/* Bağlantı */
.subscriber-table th:nth-child(7),
.subscriber-table td:nth-child(7) {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
}

/* Bilgi */
.subscriber-table th:nth-child(8),
.subscriber-table td:nth-child(8) {
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* İşlemler alanını genişlet */
.subscriber-table th:nth-child(10),
.subscriber-table td:nth-child(10),
.subscriber-actions-cell {
    width: 455px !important;
    min-width: 455px !important;
    max-width: 455px !important;
}


/* CKYTV TABLO ORTALAMA */

.subscriber-table th{
    text-align:center !important;
    vertical-align:middle !important;
}

.subscriber-table td{
    vertical-align:middle !important;
}

/* Ortalanacak sütunlar */

.subscriber-table th:nth-child(4),
.subscriber-table td:nth-child(4),

.subscriber-table th:nth-child(5),
.subscriber-table td:nth-child(5),

.subscriber-table th:nth-child(6),
.subscriber-table td:nth-child(6),

.subscriber-table th:nth-child(7),
.subscriber-table td:nth-child(7),

.subscriber-table th:nth-child(8),
.subscriber-table td:nth-child(8),

.subscriber-table th:nth-child(9),
.subscriber-table td:nth-child(9){

    text-align:center !important;
}

/* Bilgi sütunu */

.subscriber-table td:nth-child(8){
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center !important;
}

/* Not sütunu */

.subscriber-table td:nth-child(9){
    text-align:center !important;
}

/* İşlemler */

.subscriber-actions-cell{
    text-align:center !important;
}


/* ===== CKYTV TABLO HİZALAMA DÜZELTME ===== */

/* td'leri tekrar gerçek tablo hücresi yap */
.subscriber-table td{
    display:table-cell !important;
    vertical-align:middle !important;
}

/* Ortalanacak sütunlar */
.subscriber-table td:nth-child(4),
.subscriber-table td:nth-child(5),
.subscriber-table td:nth-child(6),
.subscriber-table td:nth-child(7),
.subscriber-table td:nth-child(8),
.subscriber-table td:nth-child(9),
.subscriber-table th:nth-child(4),
.subscriber-table th:nth-child(5),
.subscriber-table th:nth-child(6),
.subscriber-table th:nth-child(7),
.subscriber-table th:nth-child(8),
.subscriber-table th:nth-child(9){
    text-align:center !important;
}

/* Bağlantı sütunu */
.subscriber-table td:nth-child(7) *{
    display:block;
    text-align:center !important;
    margin-left:auto;
    margin-right:auto;
}

/* 0 / 1 tam ortada */
.connection-counter,
.connection-limit,
.connection-status,
.subscriber-connection,
.subscriber-connection *{
    text-align:center !important;
    justify-content:center !important;
    align-items:center !important;
    margin-left:auto !important;
    margin-right:auto !important;
}

/* Bilgi sütunu */
.subscriber-table td:nth-child(8){
    text-align:center !important;
    white-space:nowrap;
}

/* Not */
.subscriber-table td:nth-child(9){
    text-align:center !important;
}


/* Bilgi sütunu ortala */
.subscriber-table td:nth-child(8){
    text-align:center !important;
    vertical-align:middle !important;
}

.subscriber-table td:nth-child(8) *{
    display:block;
    width:100%;
    text-align:center !important;
    margin:0 auto !important;
}


/* Bilgi sütununu kesin ortala */
.subscriber-table th:nth-child(8),
.subscriber-table td:nth-child(8) {
    text-align: center !important;
    vertical-align: middle !important;
}

.subscriber-table td:nth-child(8) > * {
    width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
}


/* Offline bilgi yazısını hücrenin tam ortasına al */
.subscriber-table .subscriber-info.offline-info {
    width: 100% !important;
    height: 100% !important;
    min-height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

.subscriber-table td:nth-child(8) {
    padding-left: 6px !important;
    padding-right: 6px !important;
    text-align: center !important;
    vertical-align: middle !important;
}


/* Bilgi sütunundaki offline yazıyı kesin tam ortala */
.subscriber-table tbody td:nth-child(8) {
    position: relative !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.subscriber-table tbody td:nth-child(8) > .subscriber-info.offline-info {
    position: absolute !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 6px !important;
    text-align: center !important;
    white-space: nowrap !important;
}


/* ===== BİLGİ SÜTUNU KESİN DÜZELTME ===== */

.subscriber-table tbody td:nth-child(8) {
    display: table-cell !important;
    position: static !important;
    vertical-align: middle !important;
    text-align: center !important;
}

.subscriber-table tbody td:nth-child(8) .subscriber-info-centered {
    position: static !important;
    inset: auto !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
}


/* ===== BILGI SUTUNU SON KESIN DUZELTME ===== */

.subscriber-table tbody tr > td:nth-child(8) {
    display: table-cell !important;
    position: relative !important;
    float: none !important;
    transform: none !important;
    vertical-align: middle !important;
    text-align: center !important;
    overflow: hidden !important;
}

.subscriber-table tbody tr > td:nth-child(8) .subscriber-info,
.subscriber-table tbody tr > td:nth-child(8) .offline-info,
.subscriber-table tbody tr > td:nth-child(8) .subscriber-info-centered {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    float: none !important;
    transform: none !important;

    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* CKYTV STREAMS V2.1 */
.cky-streams-v2{display:grid;gap:16px;min-width:0}
.cky-summary{display:grid;grid-template-columns:repeat(5,minmax(190px,1fr));gap:12px;overflow-x:auto}
.cky-summary article{position:relative;min-height:92px;padding:18px;border:1px solid #dbe5ee;border-radius:14px;background:#fff;overflow:hidden}
.cky-summary span{display:block;color:#60758a;font-size:12px}
.cky-summary strong{display:block;margin-top:8px;font-size:27px;color:#172436}
.cky-summary i{position:absolute;right:15px;top:25px;width:42px;height:42px;border-radius:50%;opacity:.18}
.cky-summary .blue{background:#2677ff}.cky-summary .green{background:#11a66a}.cky-summary .red{background:#e24b56}.cky-summary .orange{background:#ef991f}.cky-summary .purple{background:#8b5cf6}
.cky-toolbar,.cky-filters{display:flex;gap:10px;align-items:center;padding:12px;border:1px solid #dbe5ee;border-radius:14px;background:#fff}
.cky-toolbar button,.cky-filters button,.cky-drawer-actions button{border:1px solid #cad7e2;background:#fff;border-radius:9px;padding:10px 14px;cursor:pointer}
.cky-toolbar .primary,.cky-drawer-actions .primary{background:#0ba79b;color:#fff;border-color:#0ba79b}
.cky-toolbar .warn{color:#9b6410;border-color:#e2bd75;background:#fff8e8}
.cky-filters input,.cky-filters select{height:40px;border:1px solid #cad7e2;border-radius:9px;padding:0 12px;background:#fff}
.cky-filters input{min-width:240px;flex:1}
.cky-stream-layout{display:grid;grid-template-columns:minmax(0,1fr) 0;gap:14px;align-items:start;min-width:0}
.cky-stream-layout:has(.cky-stream-drawer.open){grid-template-columns:minmax(0,1fr) 330px}
.cky-table-card,.cky-stream-drawer{background:#fff;border:1px solid #dbe5ee;border-radius:14px;overflow:hidden}
.cky-table-head{display:flex;justify-content:space-between;align-items:center;padding:15px 18px;border-bottom:1px solid #e4ebf1}
.cky-table-head h2{margin:0;font-size:18px}.cky-table-head span{color:#60758a;font-size:12px}
.cky-table-scroll{overflow:auto;max-height:calc(100vh - 390px);min-height:180px}
.cky-stream-table{width:100%;min-width:1450px;border-collapse:separate;border-spacing:0}
.cky-stream-table thead th{position:sticky;top:0;z-index:3;background:#f6f9fc;box-shadow:0 1px 0 #dfe7ee}
.cky-stream-table th{font-size:11px;text-transform:uppercase;color:#62768a;white-space:nowrap;cursor:default}
.cky-stream-table th[onclick]{cursor:pointer;user-select:none}
.cky-stream-table td{vertical-align:middle;white-space:nowrap;height:54px}
.cky-stream-table tbody tr{cursor:pointer}.cky-stream-table tbody tr:hover{background:#f4f8fb}
.cky-stream-table tbody tr.selected{background:#eaf5ff}
.cky-logo-box,.cky-logo-fallback{width:38px;height:38px;border-radius:9px;display:grid;place-items:center}
.cky-logo-box img{width:38px;height:38px;object-fit:contain;border-radius:9px}
.cky-logo-fallback{background:#e9f1f8;color:#536d83;font-size:11px;font-weight:800}
.cky-stream-name{font-weight:700;color:#1b2a3b}.cky-stream-table small{color:#7d8fa1}
.cky-server-dot{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#29b879}
.cky-source{display:inline-block;max-width:150px;overflow:hidden;text-overflow:ellipsis;padding:4px 8px;border-radius:6px;background:#eaf3ff;color:#2368a9}
.cky-badge{display:inline-flex;padding:5px 9px;border-radius:7px;font-size:11px;font-weight:700}
.cky-badge.online{background:#e5f7ee;color:#118153}.cky-badge.offline{background:#fdebed;color:#b83340}.cky-badge.error{background:#fff1dd;color:#a86608}.cky-badge.restarting{background:#f0e9ff;color:#7140c4}
.cky-actions{display:flex;gap:5px}.cky-actions button{width:30px;height:30px;padding:0;border:1px solid #cbd8e3;border-radius:7px;background:#fff;cursor:pointer}
.cky-actions .start{color:#0b8f5e}.cky-actions .stop{color:#c83b47}.cky-actions .restart{color:#b26e06}.cky-actions .detail{color:#216ca8}
.cky-actions button:hover{background:#eaf3ff}
.cky-pager{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:12px 16px;border-top:1px solid #e4ebf1}
.cky-pager button,.cky-pager select{height:34px;border:1px solid #cad7e2;border-radius:7px;background:#fff;padding:0 10px}
.cky-pager button:disabled{opacity:.4;cursor:not-allowed}
.cky-stream-drawer{display:none;position:sticky;top:16px}
.cky-stream-drawer.open{display:block}
.cky-drawer-head{display:flex;justify-content:space-between;padding:18px;border-bottom:1px solid #e4ebf1}
.cky-drawer-head h3{margin:0 0 8px}.cky-drawer-head button{border:0;background:none;font-size:24px;cursor:pointer}
.cky-drawer-logo{display:grid;place-items:center;padding:18px}.cky-drawer-logo .cky-logo-box,.cky-drawer-logo .cky-logo-fallback,.cky-drawer-logo img{width:72px;height:72px}
.cky-drawer-tabs{display:flex;padding:0 18px;border-bottom:1px solid #e4ebf1}
.cky-drawer-tabs button{border:0;background:none;padding:10px 8px}.cky-drawer-tabs .active{color:#087f77;border-bottom:2px solid #0ba79b}
.cky-drawer-grid{display:grid;grid-template-columns:90px 1fr;gap:12px;padding:18px;font-size:13px}
.cky-drawer-grid span{color:#6b7e91}.cky-drawer-grid b{overflow:hidden;text-overflow:ellipsis}.cky-drawer-grid .url{word-break:break-all;white-space:normal}
.cky-drawer-actions{display:flex;gap:8px;flex-wrap:wrap;padding:18px;border-top:1px solid #e4ebf1}
.cky-empty{text-align:center!important;padding:35px!important;color:#73879a}
.mono{font-variant-numeric:tabular-nums}
@media(max-width:1200px){.cky-stream-layout,.cky-stream-layout:has(.cky-stream-drawer.open){grid-template-columns:1fr}.cky-stream-drawer{position:static}.cky-filters{flex-wrap:wrap}}
@media(max-width:700px){.cky-summary{grid-template-columns:repeat(5,190px)}.cky-toolbar,.cky-filters{flex-wrap:wrap}.cky-filters input{min-width:100%}}

/* CKYTV STREAM EDITOR V3.1 */
.cky-editor-compact{display:grid;gap:10px;padding-bottom:74px}
.cky-compact-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border:1px solid #dbe5ee;border-radius:10px;background:#fff}
.cky-compact-title{display:flex;align-items:center;gap:14px}
.cky-compact-title button{border:0;background:none;color:#087f77;font-weight:700;cursor:pointer;padding:0}
.cky-compact-title h2{margin:0;font-size:20px}
.cky-compact-title span{color:#7a8b9c;font-size:13px}
.cky-compact-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cky-compact-card{padding:12px;border:1px solid #dbe5ee;border-radius:10px;background:#fff}
.cky-compact-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid #e5ebf0}
.cky-compact-card-head h3{margin:0;font-size:14px;text-transform:uppercase}
.cky-compact-card-head button{height:30px;border:1px solid #b9d5d1;border-radius:7px;background:#fff;color:#087f77;padding:0 10px;cursor:pointer}
.cky-compact-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cky-compact-form-grid label{display:grid;gap:5px}
.cky-compact-form-grid .full{grid-column:1/-1}
.cky-compact-form-grid label>span,.cky-compact-form-grid label>b,.cky-source-url span,.cky-source-small span{font-size:11px;font-weight:700;color:#405468}
.cky-compact-form-grid input,.cky-compact-form-grid select,.cky-source-url input,.cky-source-small select{height:34px;box-sizing:border-box;border:1px solid #cad7e2;border-radius:7px;background:#fff;padding:0 10px;font-size:13px}
.cky-compact-check{display:flex!important;align-items:center;gap:8px;height:34px;padding:0 10px;border:1px solid #dbe5ee;border-radius:7px}
.cky-compact-check input{width:16px;height:16px}
.cky-compact-check.disabled{opacity:.55;background:#f7f9fb}
.cky-compact-source-row{display:grid;grid-template-columns:34px minmax(0,1fr) 120px;gap:8px;align-items:end;margin-bottom:10px}
.cky-source-index{display:grid;place-items:center;height:34px;border:1px solid #cad7e2;border-radius:7px;background:#f7f9fb;font-weight:700}
.cky-source-url,.cky-source-small{display:grid;gap:5px}
.cky-compact-note{margin-top:10px;padding:8px 10px;border:1px dashed #bdcbd7;border-radius:7px;background:#f8fafc;color:#718397;font-size:11px}
.cky-ffmpeg-card{grid-column:1/-1}
.cky-ffmpeg-preview{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.cky-compact-actions{position:fixed;right:22px;bottom:14px;z-index:30;display:flex;gap:8px;padding:9px;border:1px solid #d1dde6;border-radius:11px;background:#fff;box-shadow:0 10px 28px rgba(30,55,75,.16)}
.cky-compact-actions button{height:38px;border:1px solid #cad7e2;border-radius:8px;background:#fff;padding:0 14px;cursor:pointer}
.cky-compact-actions .primary{background:#0ba79b;border-color:#0ba79b;color:#fff}
.cky-compact-actions .success{background:#15825f;border-color:#15825f;color:#fff}
.cky-compact-actions button:disabled{opacity:.55;cursor:wait}
@media(max-width:1100px){.cky-compact-grid{grid-template-columns:1fr}.cky-ffmpeg-preview{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.cky-compact-title{align-items:flex-start;flex-direction:column;gap:6px}.cky-compact-form-grid{grid-template-columns:1fr}.cky-compact-form-grid .full{grid-column:auto}.cky-compact-source-row{grid-template-columns:30px 1fr}.cky-source-small{grid-column:2}.cky-ffmpeg-preview{grid-template-columns:1fr}.cky-compact-actions{left:12px;right:12px;justify-content:flex-end;overflow:auto}}


/* CKYTV STREAM NAME EDIT LINK */
.cky-stream-edit-link{
    border:0;
    background:none;
    padding:0;
    margin:0;
    color:#172436;
    font:inherit;
    font-weight:700;
    cursor:pointer;
    text-align:left;
}
.cky-stream-edit-link:hover{
    color:#087f77;
    text-decoration:underline;
}
.cky-actions .edit{
    color:#7a4bb5;
}


/* CKYTV STREAM WATCH PLAYER */
.cky-actions .watch{
    color:#1473a5;
}
.cky-watch-overlay{
    position:fixed;
    inset:0;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:rgba(15,25,35,.75);
}
.cky-watch-window{
    width:min(1000px,94vw);
    overflow:hidden;
    border-radius:12px;
    background:#111;
    box-shadow:0 25px 80px rgba(0,0,0,.45);
}
.cky-watch-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 15px;
    background:#fff;
}
.cky-watch-head>div{
    display:flex;
    align-items:center;
    gap:12px;
}
.cky-watch-head span{
    color:#118458;
    font-size:12px;
    font-weight:800;
}
.cky-watch-head button{
    width:34px;
    height:34px;
    border:1px solid #cad7e2;
    border-radius:7px;
    background:#fff;
    font-size:22px;
    cursor:pointer;
}
.cky-watch-window video{
    display:block;
    width:100%;
    max-height:70vh;
    aspect-ratio:16/9;
    background:#000;
}
.cky-watch-footer{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 14px;
    background:#fff;
}
.cky-watch-footer code{
    flex:1;
    overflow:hidden;
    color:#526678;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.cky-watch-footer button{
    height:34px;
    border:1px solid #0aa89b;
    border-radius:7px;
    background:#0aa89b;
    color:#fff;
    padding:0 12px;
    cursor:pointer;
}



/* CKYTV WATCH PLAYER V2 */
.cky-actions .watch{
    color:#1679ad;
}

.cky-watch-overlay{
    position:fixed;
    inset:0;
    z-index:99999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(12,20,28,.78);
}

.cky-watch-window{
    width:min(1050px,94vw);
    overflow:hidden;
    border-radius:12px;
    background:#080b0e;
    box-shadow:0 28px 90px rgba(0,0,0,.55);
}

.cky-watch-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:11px 14px;
    background:#fff;
}

.cky-watch-head>div{
    display:flex;
    align-items:center;
    gap:12px;
}

.cky-watch-head span{
    color:#a56600;
    font-size:11px;
    font-weight:800;
}

.cky-watch-head span.online{
    color:#087b4f;
}

.cky-watch-head span.error{
    color:#c33140;
}

.cky-watch-head button{
    width:32px;
    height:32px;
    border:1px solid #cad7e2;
    border-radius:6px;
    background:#fff;
    font-size:21px;
    cursor:pointer;
}

.cky-watch-window video{
    display:block;
    width:100%;
    aspect-ratio:16/9;
    max-height:72vh;
    background:#000;
}

.cky-watch-footer{
    display:flex;
    align-items:center;
    gap:10px;
    padding:9px 13px;
    background:#fff;
}

.cky-watch-footer code{
    flex:1;
    overflow:hidden;
    color:#526678;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.cky-watch-footer button{
    height:32px;
    border:1px solid #0aa89b;
    border-radius:6px;
    background:#0aa89b;
    color:#fff;
    padding:0 11px;
    cursor:pointer;
}

/* CKYTV STREAM INFO */
.cky-stream-info {
    min-width: 210px;
}

.cky-stream-info-top,
.cky-stream-info-bottom {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.cky-stream-info-top {
    font-size: 12px;
    color: #4d6789;
}

.cky-stream-info-bottom {
    margin-top: 4px;
    font-size: 11px;
    color: #14877b;
}

.cky-stream-info-bottom span {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* CKYTV STREAM TABLE ALIGN V2 */
.cky-stream-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.cky-stream-table thead th,
.cky-stream-table tbody td {
    vertical-align: middle;
    text-align: center;
    border-right: 1px solid #e2eaf4;
}

.cky-stream-table thead th:last-child,
.cky-stream-table tbody td:last-child {
    border-right: 0;
}

.cky-stream-table thead th {
    height: 52px;
    padding: 10px 8px;
    white-space: nowrap;
}

.cky-stream-table tbody td {
    min-height: 62px;
    padding: 12px 8px;
}

.cky-stream-table tbody tr {
    height: 68px;
}

/* Seçim kutusu */
.cky-stream-table th:nth-child(1),
.cky-stream-table td:nth-child(1) {
    width: 42px;
}

/* ID */
.cky-stream-table th:nth-child(2),
.cky-stream-table td:nth-child(2) {
    width: 62px;
}

/* Logo */
.cky-stream-table th:nth-child(3),
.cky-stream-table td:nth-child(3) {
    width: 82px;
}

/* Yayın adı sola hizalı */
.cky-stream-table th:nth-child(4),
.cky-stream-table td:nth-child(4) {
    width: 220px;
    text-align: left;
}

/* Kategori */
.cky-stream-table th:nth-child(5),
.cky-stream-table td:nth-child(5) {
    width: 110px;
}

/* Sunucu */
.cky-stream-table th:nth-child(6),
.cky-stream-table td:nth-child(6) {
    width: 145px;
}

/* Kaynak */
.cky-stream-table th:nth-child(7),
.cky-stream-table td:nth-child(7) {
    width: 120px;
}

/* Stream Info */
.cky-stream-table th:nth-child(8),
.cky-stream-table td:nth-child(8) {
    width: 185px;
}

/* Clients */
.cky-stream-table th:nth-child(9),
.cky-stream-table td:nth-child(9) {
    width: 65px;
}

/* Uptime */
.cky-stream-table th:nth-child(10),
.cky-stream-table td:nth-child(10) {
    width: 105px;
}

/* Durum */
.cky-stream-table th:nth-child(11),
.cky-stream-table td:nth-child(11) {
    width: 105px;
}

/* İşlem */
.cky-stream-table th:nth-child(12),
.cky-stream-table td:nth-child(12) {
    width: 230px;
}

.cky-stream-table .cky-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.cky-stream-table .cky-stream-info {
    display: table-cell;
    text-align: center;
}

.cky-stream-table .cky-stream-info-top,
.cky-stream-table .cky-stream-info-bottom {
    justify-content: center;
}

.cky-stream-table .cky-stream-name {
    text-align: left;
}

.cky-stream-table .cky-server-dot {
    vertical-align: middle;
    margin-right: 5px;
}

@media (max-width: 1400px) {
    .cky-table-scroll {
        overflow-x: auto;
    }

    .cky-stream-table {
        min-width: 1450px;
    }
}

/* ===== COMPACT DASHBOARD ===== */

.page-header,
.cky-page-header{
    margin-bottom:12px!important;
    padding-bottom:0!important;
}

.page-header h1,
.cky-page-header h1{
    margin:0 0 4px!important;
    font-size:34px!important;
}

.page-header p,
.cky-page-header p{
    margin:0!important;
}

/* İstatistik kartları */

.stats-grid,
.cky-stats-grid{
    gap:12px!important;
    margin:12px 0!important;
}

.stats-card,
.cky-stat-card{
    min-height:82px!important;
    padding:14px 18px!important;
}

.stats-card h3,
.cky-stat-card h3{
    font-size:14px!important;
    margin-bottom:4px!important;
}

.stats-card .value,
.cky-stat-card .value{
    font-size:34px!important;
}

/* Buton satırı */

.toolbar,
.cky-toolbar{
    padding:12px!important;
    min-height:auto!important;
    margin-bottom:12px!important;
}

/* Arama */

.filters,
.cky-filters{
    padding:12px!important;
    margin-bottom:12px!important;
}

.filters input,
.cky-filters input{
    height:42px!important;
}

.filters select,
.cky-filters select{
    height:42px!important;
}

.filters button,
.cky-filters button{
    height:42px!important;
}

/* Kart boşluğu */

.card,
.cky-card{
    margin-bottom:14px!important;
}


/* ===== CKYTV STREAMS ULTRA COMPACT ===== */

.cky-streams-v2 {
    padding-top: 6px !important;
}

.cky-streams-v2 h1,
.cky-streams-v2 h2 {
    margin: 0 0 2px !important;
    font-size: 27px !important;
    line-height: 1.1 !important;
}

.cky-streams-v2 h1 + p,
.cky-streams-v2 h2 + p {
    margin: 0 0 8px !important;
    line-height: 1.2 !important;
}

/* Başlık altındaki bütün ana blok boşlukları */
.cky-streams-v2 > div,
.cky-streams-v2 > section {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

/* İstatistik kartlarının bulunduğu satır */
.cky-streams-v2 [class*="stat"][class*="grid"],
.cky-streams-v2 [class*="summary"],
.cky-streams-v2 [class*="overview"] {
    gap: 8px !important;
    margin: 8px 0 !important;
}

/* İstatistik kartları */
.cky-streams-v2 [class*="stat-card"],
.cky-streams-v2 [class*="summary-card"],
.cky-streams-v2 [class*="metric-card"] {
    min-height: 68px !important;
    height: 68px !important;
    padding: 9px 14px !important;
    border-radius: 10px !important;
}

.cky-streams-v2 [class*="stat-card"] span,
.cky-streams-v2 [class*="summary-card"] span,
.cky-streams-v2 [class*="metric-card"] span {
    font-size: 11px !important;
    line-height: 1.1 !important;
}

.cky-streams-v2 [class*="stat-card"] strong,
.cky-streams-v2 [class*="summary-card"] strong,
.cky-streams-v2 [class*="metric-card"] strong {
    margin-top: 3px !important;
    font-size: 25px !important;
    line-height: 1 !important;
}

/* Kartlardaki renkli daireler */
.cky-streams-v2 [class*="stat-card"]::after,
.cky-streams-v2 [class*="summary-card"]::after,
.cky-streams-v2 [class*="metric-card"]::after {
    width: 34px !important;
    height: 34px !important;
}

/* Yeni yayın / import / toplu işlem satırı */
.cky-streams-v2 [class*="toolbar"],
.cky-streams-v2 [class*="action-bar"],
.cky-streams-v2 [class*="bulk"] {
    min-height: 50px !important;
    padding: 7px 10px !important;
    margin: 8px 0 !important;
    gap: 7px !important;
}

.cky-streams-v2 [class*="toolbar"] button,
.cky-streams-v2 [class*="action-bar"] button,
.cky-streams-v2 [class*="bulk"] button {
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 13px !important;
    font-size: 14px !important;
}

/* Arama ve filtre satırı */
.cky-streams-v2 [class*="filter"],
.cky-streams-v2 [class*="search-bar"] {
    min-height: 50px !important;
    padding: 7px 10px !important;
    margin: 8px 0 !important;
    gap: 7px !important;
}

.cky-streams-v2 [class*="filter"] input,
.cky-streams-v2 [class*="filter"] select,
.cky-streams-v2 [class*="filter"] button,
.cky-streams-v2 [class*="search-bar"] input,
.cky-streams-v2 [class*="search-bar"] select,
.cky-streams-v2 [class*="search-bar"] button {
    height: 36px !important;
    min-height: 36px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Canlı Yayınlar tablosunu yukarı yaklaştır */
.cky-streams-v2 .cky-table-card,
.cky-streams-v2 [class*="table-card"],
.cky-streams-v2 [class*="list-card"] {
    margin-top: 8px !important;
}

.cky-streams-v2 .cky-table-card > header,
.cky-streams-v2 [class*="table-card"] > header,
.cky-streams-v2 [class*="list-card"] > header {
    min-height: 44px !important;
    padding: 9px 16px !important;
}


/* Player altında URL veya kopyalama alanı gösterme */
#cky-watch-url,
#cky-watch-copy,
.cky-watch-url,
.cky-watch-copy,
.cky-watch-footer {
    display: none !important;
}


/* CKYTV RELEASE023 TOP DROPDOWN NAV HOTFIX3 */

.side-panel{
    display:none !important;
}

.layout{
    display:block !important;
    min-height:calc(100vh - 119px) !important;
}

.workspace{
    width:100% !important;
    max-width:none !important;
    padding:24px 28px !important;
}

.cky-dropdown-navigation{
    position:relative;
    overflow:visible !important;
    gap:2px !important;
}

.top-nav-group{
    position:relative;
    flex:0 0 auto;
}

.top-nav-group > .top-nav{
    display:flex;
    align-items:center;
    gap:6px;
    cursor:pointer;
}

.nav-caret{
    position:relative;
    top:-1px;
    color:#8090a5;
    font-size:11px;
}

.top-nav-menu{
    position:absolute;
    z-index:5000;
    top:calc(100% - 1px);
    left:0;
    display:none;
    min-width:220px;
    padding:6px;
    border:1px solid #d6e0ea;
    border-radius:0 0 9px 9px;
    background:#fff;
    box-shadow:0 12px 30px rgba(24,45,70,.16);
}

.top-nav-group:hover > .top-nav-menu,
.top-nav-group:focus-within > .top-nav-menu{
    display:block;
}

.top-nav-menu button{
    display:block;
    width:100%;
    padding:10px 12px;
    border:0;
    border-radius:6px;
    color:#394d68;
    background:transparent;
    text-align:left;
    white-space:nowrap;
    font-size:12px;
    font-weight:600;
    cursor:pointer;
}

.top-nav-menu button:hover{
    color:#007f79;
    background:#e9f8f6;
}

.top-nav-menu button + button{
    margin-top:2px;
}

@media(max-width:1050px){
    .workspace{
        padding:18px !important;
    }

    .top-nav-menu{
        min-width:200px;
    }
}


/* CKYTV RELEASE023 CHUCKY BRAND HOTFIX5 */
.cky-dashboard-brand{cursor:pointer;user-select:none}
.cky-dashboard-brand:hover strong{color:#007f79}
.cky-chucky-brand-icon{overflow:hidden!important;padding:0!important;border-radius:9px!important;background:#111!important}
.cky-chucky-brand-icon img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 25%}


/* CKYTV HOTFIX14 - GLOBAL PANEL BACKGROUND */

/* Referans görseldeki mavi -> açık -> turkuaz geçiş TÜM panelde */
html,
body{
  min-height:100%!important;
  background:
    linear-gradient(
      110deg,
      #6d8fe6 0%,
      #91afe9 26%,
      #dfe8f1 52%,
      #b9eeee 72%,
      #22e2df 100%
    ) fixed!important;
}

/* Ana uygulama yüzeyleri transparan olsun ki body gradient görünsün */
#app,
.app,
.app-shell,
.shell,
.layout,
.main-layout,
.main-wrapper,
.page-wrapper,
.content-wrapper,
.content,
.main-content,
.page-content,
#page-content,
.dashboard-page,
.panel-content{
  background:transparent!important;
}

/* Header / nav beyaz kalsın */
header,
.topbar,
.top-bar,
.navbar,
.main-header,
.panel-header,
nav{
  background:#fff!important;
}

/* Tablo/kart yüzeyleri okunabilir beyaz kalsın */
.card,
.panel,
.table-wrap,
.table-card,
.content-card,
.module-card{
  background:#fff!important;
}


/* CKYTV HOTFIX16 - GLOBAL FRAME + LOGIN BACKGROUND */

/* Ana panelin dış beyaz alanı: çok açık mavi-gri */
html,
body{
  min-height:100%!important;
  background:#dfe8f1!important;
}

/* Dashboard / login ana zeminleri aynı renk ailesinde */
body.login-page,
body.login,
.login-page,
.login-screen,
.auth-page,
.auth-screen,
.login-wrapper,
.auth-wrapper{
  min-height:100vh!important;
  background:
    linear-gradient(
      110deg,
      #6b8ee6 0%,
      #8face9 27%,
      #e8edf2 55%,
      #b8eeee 75%,
      #24dfdc 100%
    ) fixed!important;
}

/* Login kartı beyaz ve okunaklı kalsın */
.login-card,
.auth-card,
.login-box,
.auth-box,
.login-panel{
  background:#fff!important;
}

/* Panelde içerik alanının dış çerçevesi artık beyaz değil */
#app,
.app,
.app-shell,
.shell,
.layout,
.main-layout,
.main-wrapper,
.page-wrapper,
.content-wrapper,
.main-content{
  background:#dfe8f1!important;
}

/* Header / navigation beyaz kalsın */
header,
.topbar,
.top-bar,
.navbar,
.main-header,
.panel-header,
nav{
  background:#fff!important;
}

/* Dashboard iframe'inin çevresi açık mavi-gri; iframe içi kendi gradientini kullanır */
#page-content,
.page-content,
.content{
  background:#dfe8f1!important;
}

/* Eğer login gövdesinde özel class yoksa giriş formu görünen sayfada da gradienti uygula */
body:has(.login-card),
body:has(.auth-card),
body:has(.login-box),
body:has(.auth-box),
body:has(form[action*="login"]){
  background:
    linear-gradient(
      110deg,
      #6b8ee6 0%,
      #8face9 27%,
      #e8edf2 55%,
      #b8eeee 75%,
      #24dfdc 100%
    ) fixed!important;
}


/* CKYTV HOTFIX17 - OUTER FRAME + COMPACT HEADER */

html,body{
  min-height:100%!important;
  margin:0!important;
  background:#55657a!important;
}

#app,.app,.app-shell,.shell,.layout,.main-layout,.main-wrapper,.page-wrapper{
  width:calc(100% - 24px)!important;
  min-height:100vh!important;
  margin-left:auto!important;
  margin-right:auto!important;
  background:#dfe8f1!important;
}

.content-wrapper,.main-content,.content,.page-content,#page-content{
  background:#dfe8f1!important;
}

header,.main-header,.panel-header,.topbar,.top-bar{
  min-height:58px!important;
  height:58px!important;
  max-height:58px!important;
  padding-top:4px!important;
  padding-bottom:4px!important;
  margin:0!important;
  background:#fff!important;
}

header img,.main-header img,.panel-header img{
  max-height:42px!important;
  width:auto!important;
}

header button,.main-header button,.panel-header button,.topbar button,.top-bar button{
  min-height:34px!important;
  padding-top:5px!important;
  padding-bottom:5px!important;
}

nav,.navbar,.main-nav,.top-nav,.menu-bar{
  min-height:40px!important;
  height:40px!important;
  max-height:40px!important;
  padding-top:0!important;
  padding-bottom:0!important;
  margin:0!important;
  background:#fff!important;
}

nav a,nav button,.navbar a,.navbar button,.main-nav a,.main-nav button,.top-nav a,.top-nav button,.menu-bar a,.menu-bar button{
  min-height:40px!important;
  height:40px!important;
  padding-top:0!important;
  padding-bottom:0!important;
  display:inline-flex!important;
  align-items:center!important;
}

#page-content,.page-content{
  padding-top:8px!important;
}

@media(max-width:900px){
  #app,.app,.app-shell,.shell,.layout,.main-layout,.main-wrapper,.page-wrapper{
    width:calc(100% - 8px)!important;
  }
}


/* CKYTV HOTFIX18 - OUTER FRAME + HEADER FINAL */
html{background:#47586d!important}
body{margin:0!important;min-height:100%!important;background:#47586d!important}

#app,.app,.app-shell,.shell,.layout,.main-layout,.main-wrapper,.page-wrapper{
  width:calc(100% - 28px)!important;
  max-width:none!important;
  min-height:100vh!important;
  margin-left:auto!important;
  margin-right:auto!important;
  background:#e6edf4!important;
}

.content-wrapper,.main-content,.content,.page-content,#page-content{
  background:#e6edf4!important;
}

#page-content iframe{
  display:block!important;
  width:100%!important;
  border:0!important;
  background:transparent!important;
}

header,.main-header,.panel-header,.topbar,.top-bar{
  height:62px!important;
  min-height:62px!important;
  max-height:62px!important;
  padding:3px 12px!important;
  margin:0!important;
  background:#fff!important;
  border-bottom:1px solid #dfe5eb!important;
}

header img,.main-header img,.panel-header img{
  max-height:44px!important;
  width:auto!important;
}

header button,.main-header button,.panel-header button,.topbar button,.top-bar button{
  min-height:36px!important;
  height:36px!important;
  padding:4px 10px!important;
}

nav,.navbar,.main-nav,.top-nav,.menu-bar{
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  padding:0 12px!important;
  margin:0!important;
  background:#fff!important;
  border-bottom:1px solid #dfe5eb!important;
}

nav a,nav button,.navbar a,.navbar button,.main-nav a,.main-nav button,.top-nav a,.top-nav button,.menu-bar a,.menu-bar button{
  height:42px!important;
  min-height:42px!important;
  padding-top:0!important;
  padding-bottom:0!important;
  display:inline-flex!important;
  align-items:center!important;
}

#page-content,.page-content{padding-top:6px!important}

@media(max-width:900px){
  #app,.app,.app-shell,.shell,.layout,.main-layout,.main-wrapper,.page-wrapper{
    width:calc(100% - 10px)!important;
  }
}


/* =========================================================
   CKYTV RELEASE025 - GLOBAL PANEL BACKGROUND FINAL
   Login ekranındaki renk ailesi tüm panel sayfalarında.
   Header / menu / kart / tablo içerikleri korunur.
   ========================================================= */

html,
body {
    min-height: 100% !important;
}

html {
    background: #7d9fe5 !important;
}

body {
    margin: 0 !important;
    min-height: 100vh !important;

    background:
        radial-gradient(
            circle at 58% 42%,
            rgba(255,255,255,.88) 0%,
            rgba(235,242,248,.78) 27%,
            rgba(176,222,229,.55) 55%,
            rgba(64,218,216,.52) 100%
        ),
        linear-gradient(
            110deg,
            #7698e1 0%,
            #91afe7 24%,
            #e8eff4 55%,
            #46dad8 100%
        ) !important;

    background-attachment: fixed !important;
}

/* Ana uygulama alanlarının eski düz renklerini kaldır */
#app,
.app,
.app-shell,
.page,
.page-shell,
.page-content,
.main-content,
main {
    background-color: transparent !important;
}

/* Header ve navigasyon beyaz kalacak */
header,
.header,
.topbar,
.navbar,
nav,
.main-nav {
    background-color: #fff !important;
}

/* İçerik kartlarının kendi beyaz zeminleri korunur */
.card,
.panel,
table,
.cky-table-card,
.cky-compact-card,
.cky-compact-header,
.cky-stream-drawer {
    --cky-card-background: #fff;
}

/* Sayfa en alta kadar gradient devam etsin */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -9999;
    pointer-events: none;

    background:
        radial-gradient(
            circle at 58% 42%,
            rgba(255,255,255,.88) 0%,
            rgba(235,242,248,.78) 27%,
            rgba(176,222,229,.55) 55%,
            rgba(64,218,216,.52) 100%
        ),
        linear-gradient(
            110deg,
            #7698e1 0%,
            #91afe7 24%,
            #e8eff4 55%,
            #46dad8 100%
        );
}


/* CKYTV HOTFIX19 - GLOBAL GRADIENT EVERYWHERE */

/* Tek global arka plan */
:root{
  --cky-global-bg:
    linear-gradient(
      110deg,
      #7698e1 0%,
      #91afe7 24%,
      #e8eff4 55%,
      #9fe5e5 76%,
      #39d9d6 100%
    );
}

/* Her sayfada ana zemin */
html,
body{
  min-height:100%!important;
  margin:0!important;
  background:var(--cky-global-bg)!important;
  background-attachment:fixed!important;
}

/* Panelin eski düz beyaz/açık gri katmanlarını kaldır */
#app,
.app,
.app-shell,
.shell,
.layout,
.main-layout,
.main-wrapper,
.page-wrapper,
.content-wrapper,
.main-content,
.content,
.page-content,
#page-content,
main,
.page,
.page-shell,
.dashboard-page,
.dashboard-xtream-page{
  background:transparent!important;
  background-color:transparent!important;
}

/* Sol/sağ şeritler, bölüm çıtaları ve boş yüzeyler de aynı gradient */
.sidebar,
.side-nav,
.left-nav,
.section-nav,
.subnav,
.sub-nav,
.page-sidebar,
.module-sidebar,
.aside,
aside,
.content-strip,
.page-strip,
.section-strip,
.toolbar-strip,
.header-strip,
.footer-strip{
  background:var(--cky-global-bg)!important;
  background-attachment:fixed!important;
}

/* Sayfa başlık alanları ve boş üst şeritler */
.page-header,
.page-title-wrap,
.page-heading,
.section-header,
.content-header,
.module-header{
  background:transparent!important;
  background-color:transparent!important;
}

/* Dashboard iframe çevresinde beyaz/gri kalmasın */
#page-content iframe{
  display:block!important;
  width:100%!important;
  border:0!important;
  background:transparent!important;
}

/* Header ve ana navigasyon: gradient üzerinde temiz beyaz panel gibi kalsın */
header,
.main-header,
.panel-header,
.topbar,
.top-bar,
nav,
.navbar,
.main-nav,
.top-nav,
.menu-bar{
  background:rgba(255,255,255,.96)!important;
}

/* Gerçek içerik kartları / tablolar beyaz kalsın */
.card,
.panel,
.table-wrap,
.table-card,
.content-card,
.module-card,
.cky-table-card,
.cky-compact-card,
.cky-compact-header,
.cky-stream-drawer,
table,
.modal,
.dialog,
.drawer,
.login-card,
.auth-card,
.login-box,
.auth-box{
  background:#fff!important;
}

/* Dashboard modülü kendi içinde de aynı gradienti kullansın */
.dashboard-xtream,
.xt-dashboard,
.xt-dashboard-wrap,
.dash{
  background:var(--cky-global-bg)!important;
  background-attachment:fixed!important;
}

/* Önceki hotfixlerin dış çerçeve renklerini kesin ez */
html,
body,
#app,
.app,
.app-shell,
.shell,
.layout,
.main-layout,
.main-wrapper,
.page-wrapper{
  box-shadow:none!important;
}

/* Sayfa en alta kadar aynı renk devam etsin */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-9999;
  pointer-events:none;
  background:var(--cky-global-bg);
}


/* CKYTV HOTFIX20 - FULL WIDTH HEADER / NAV */

/* Dis cerceve hissini kaldir */
html,
body{
  width:100%!important;
  margin:0!important;
  background:var(--cky-global-bg)!important;
}

/* Ana uygulama artik tam ekran genisligi */
#app,
.app,
.app-shell,
.shell,
.layout,
.main-layout,
.main-wrapper,
.page-wrapper{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  background:transparent!important;
}

/* Ustte ince koyu serit */
body::after{
  content:"";
  position:fixed;
  left:0;
  top:0;
  width:100%;
  height:4px;
  background:#46576b;
  z-index:99999;
  pointer-events:none;
}

/* Header tam genislik */
header,
.main-header,
.panel-header,
.topbar,
.top-bar{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  border-radius:0!important;
  box-sizing:border-box!important;
  background:#fff!important;
  padding-left:18px!important;
  padding-right:18px!important;
}

/* Nav tam genislik */
nav,
.navbar,
.main-nav,
.top-nav,
.menu-bar{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  border-radius:0!important;
  box-sizing:border-box!important;
  background:#fff!important;
  padding-left:18px!important;
  padding-right:18px!important;
}

/* Header ve nav kenarlarinda beyaz bosluk kalmasin */
header::before,
header::after,
nav::before,
nav::after,
.main-header::before,
.main-header::after,
.main-nav::before,
.main-nav::after{
  box-shadow:none!important;
}

/* Icerik gradient ile devam etsin */
.content-wrapper,
.main-content,
.content,
.page-content,
#page-content,
main{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  background:transparent!important;
}

/* Dashboard iframe tam genislik */
#page-content iframe{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  display:block!important;
  border:0!important;
}

/* ==========================================================
   CKYTV HOTFIX21 - HEADER + NAV GRADIENT FINAL OVERRIDE
   Üstteki beyaz alanları kaldırır.
   Login/dashboard ile aynı renk ailesini kullanır.
   Kartların beyaz iç yüzeylerine dokunmaz.
   ========================================================== */

:root{
    --cky-shell-gradient:
        linear-gradient(
            90deg,
            #7d9fe5 0%,
            #a9bfea 30%,
            #e8eef5 55%,
            #bceeee 78%,
            #42d8d8 100%
        );
}

/* ANA SAYFA ZEMİNİ */
html,
body{
    background:var(--cky-shell-gradient) !important;
    background-attachment:fixed !important;
}

/* LOGO + API + ENGINE + ADMIN ÜST ŞERİDİ */
body > header,
header,
.header,
.main-header,
.panel-header,
.topbar,
.top-bar,
.header-strip{
    background:var(--cky-shell-gradient) !important;
    background-color:transparent !important;
    background-attachment:fixed !important;
    box-shadow:none !important;
}

/* MENÜ ŞERİDİ */
body > nav,
nav,
.navbar,
.main-nav,
.menu-bar{
    background:var(--cky-shell-gradient) !important;
    background-color:transparent !important;
    background-attachment:fixed !important;
    box-shadow:none !important;
}

/*
   .top-nav çoğu yerde tek tek menü düğmesi olduğu için
   background-image vermiyoruz; üstteki nav gradienti görünür.
*/
.top-nav{
    background:transparent !important;
    background-color:transparent !important;
}

/* HEADER / NAV PSEUDO BEYAZLIKLARINI ÖLDÜR */
header::before,
header::after,
.main-header::before,
.main-header::after,
.panel-header::before,
.panel-header::after,
.topbar::before,
.topbar::after,
nav::before,
nav::after,
.navbar::before,
.navbar::after,
.main-nav::before,
.main-nav::after{
    background:transparent !important;
}

/* DIŞ SAYFA / SAĞ-SOL BOŞLUKLAR */
.app,
.app-shell,
.app-main,
.page,
.page-shell,
.page-wrapper,
.wrapper,
.main-wrapper,
.content-wrapper,
.main-content,
.content,
.page-content,
#page-content,
.dashboard-page,
.dashboard-xtream-page{
    background:transparent !important;
    background-color:transparent !important;
}

/* Dashboard ana alanı da aynı zemin */
.dashboard-xtream,
.xt-dashboard,
.xt-dashboard-wrap{
    background:var(--cky-shell-gradient) !important;
    background-attachment:fixed !important;
}

/* Kartların kendileri beyaz kalacak */
.card,
.panel,
.table-card,
.cky-table-card,
.cky-compact-header,
.login-card,
.auth-card,
.login-box,
.auth-box{
    --cky-card-background:#fff;
}

/* ÜST BÖLÜMÜ GEREKSİZ YÜKSEK YAPMA */
header,
.main-header,
.panel-header,
.topbar,
.top-bar{
    min-height:60px !important;
}

nav,
.navbar,
.main-nav,
.menu-bar{
    min-height:42px !important;
}

/* BODY'NİN KENARLARINDA BEYAZ ÇİZGİ/BANT KALMASIN */
html,
body{
    margin:0 !important;
    padding:0 !important;
    width:100% !important;
    min-width:100% !important;
}

/* ==========================================================
   END CKYTV HOTFIX21
   ========================================================== */


/* CKYTV HOTFIX22 - NAV / TITLE BAR COLOR */

/* Üst menü şeridi: gradient yerine koyu mavi-gri */
nav,
.navbar,
.main-nav,
.menu-bar{
  background:#405268!important;
  background-image:none!important;
  border-bottom:1px solid #324253!important;
}

/* Menü yazıları okunaklı beyaz */
nav a,
nav button,
.navbar a,
.navbar button,
.main-nav a,
.main-nav button,
.menu-bar a,
.menu-bar button,
.top-nav{
  color:#f7fbff!important;
  font-weight:600!important;
}

/* Aktif menü */
nav .active,
.navbar .active,
.main-nav .active,
.menu-bar .active,
.top-nav.active{
  color:#ffffff!important;
  background:#2d4156!important;
  border-bottom:3px solid #37d6cf!important;
}

/* Hover */
nav a:hover,
nav button:hover,
.navbar a:hover,
.navbar button:hover,
.main-nav a:hover,
.main-nav button:hover,
.menu-bar a:hover,
.menu-bar button:hover,
.top-nav:hover{
  background:#4a6078!important;
  color:#ffffff!important;
}

/* Dropdown menüler beyaz kalabilir, okunaklı olsun */
.top-nav-menu{
  background:#ffffff!important;
  color:#23364a!important;
}
.top-nav-menu button{
  color:#23364a!important;
}
.top-nav-menu button:hover{
  background:#e8f3f5!important;
  color:#0b746e!important;
}

/* Sayfa içi başlık/pencere şeritleri koyu ton */
.page-header,
.cky-page-header,
.section-header,
.content-header,
.module-header{
  background:#4b5f75!important;
  color:#fff!important;
  border-color:#394b5d!important;
}

/* Başlık metinleri */
.page-header h1,
.page-header h2,
.page-header h3,
.cky-page-header h1,
.cky-page-header h2,
.cky-page-header h3,
.section-header h1,
.section-header h2,
.section-header h3,
.content-header h1,
.content-header h2,
.content-header h3,
.module-header h1,
.module-header h2,
.module-header h3{
  color:#fff!important;
}

/* Alt açıklamalar */
.page-header p,
.cky-page-header p,
.section-header p,
.content-header p,
.module-header p{
  color:#dce7ef!important;
}

/* RELEASE030B - XTREAM CONTENT MENU */
.content-menu-xtream{
    width:270px !important;
    min-width:270px !important;
    padding:6px 0 !important;
}
.content-menu-xtream .content-menu-title{
    display:block !important;
    padding:8px 16px 4px !important;
    margin:0 !important;
    font-size:10px !important;
    font-weight:800 !important;
    color:#8292a2 !important;
    letter-spacing:.5px !important;
    border-top:1px solid #edf1f4 !important;
    background:#f7f9fb !important;
}
.content-menu-xtream .content-menu-title:first-child{
    border-top:0 !important;
}
.content-menu-xtream button{
    display:block !important;
    width:100% !important;
    padding:8px 18px !important;
    text-align:left !important;
    font-size:12px !important;
    background:#fff !important;
}
.content-menu-xtream button:hover{
    background:#e7f3f5 !important;
}
.content-root-menu{
    width:220px !important;
    min-width:220px !important;
    padding:0 !important;
    overflow:visible !important;
}
.content-root-menu .content-root-item{
    position:relative !important;
    display:block !important;
}
.content-root-menu .content-root-button{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    width:100% !important;
    min-height:42px !important;
    padding:0 14px !important;
    border:0 !important;
    background:#fff !important;
    color:#33485e !important;
    text-align:left !important;
    font-size:12px !important;
    cursor:default !important;
}
.content-root-menu .content-root-item:hover > .content-root-button{
    background:#f1f5f8 !important;
    color:#2477d5 !important;
}
.content-root-menu .submenu-arrow{
    font-size:18px !important;
    line-height:1 !important;
    color:#7890a6 !important;
}
.content-root-menu .content-side-menu{
    display:none !important;
    position:absolute !important;
    top:0 !important;
    left:100% !important;
    width:230px !important;
    min-width:230px !important;
    padding:0 !important;
    background:#fff !important;
    border-left:1px solid #e1e7ed !important;
    box-shadow:8px 8px 18px rgba(23,42,58,.12) !important;
    z-index:99999 !important;
}
.content-root-menu .content-root-item:hover > .content-side-menu{
    display:block !important;
}
.content-root-menu .content-side-menu button{
    display:block !important;
    width:100% !important;
    min-height:42px !important;
    padding:0 14px !important;
    border:0 !important;
    background:#fff !important;
    color:#33485e !important;
    text-align:left !important;
    font-size:12px !important;
    cursor:pointer !important;
}
.content-root-menu .content-side-menu button:hover{
    background:#eaf3fb !important;
    color:#216fc0 !important;
}

/* RELEASE030E - XTREAM CONTENT MENU */
.cky-content-nav .cky-mega-menu{
    width:490px!important;
    min-width:490px!important;
    padding:0!important;
    grid-template-columns:205px 285px;
    overflow:visible!important;
}
.cky-content-nav:hover .cky-mega-menu,
.cky-content-nav:focus-within .cky-mega-menu{
    display:grid!important;
}
.cky-mega-left,.cky-mega-right{background:#fff;min-height:210px}
.cky-mega-left{border-right:1px solid #e1e7ed}
.cky-mega-parent{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
}
.cky-mega-parent,.cky-mega-pane button{
    width:100%!important;
    min-height:44px!important;
    padding:0 15px!important;
    border:0!important;
    background:#fff!important;
    color:#31455a!important;
    text-align:left!important;
    font-size:12px!important;
    cursor:pointer!important;
}
.cky-mega-parent:hover,.cky-mega-parent.active{
    background:#f1f5f8!important;
    color:#1976d2!important;
}
.cky-mega-pane{display:none}
.cky-mega-pane.active{display:block}
.cky-mega-pane button:hover{
    background:#f4f7fa!important;
    color:#1976d2!important;
}


/* CKYTV LOGIN FLASH FIX */
html.cky-session-boot #login-screen {
    display: none !important;
}

/* CKYTV - eski ikinci sayfa başlığını tamamen kaldır */
.page-header {
    display: none !important;
}

.workspace {
    padding-top: 0 !important;
}

.page-content {
    margin-top: 0 !important;
}

/* =========================================================
   CKYTV FINAL LAYOUT / TOP SPACING FIX
   ========================================================= */

/* Eski ikinci sayfa başlığı artık kullanılmıyor */
.page-header {
    display: none !important;
}

/* Menüden sonra içerik nefes alsın, menünün altına kaçmasın */
.workspace {
    padding-top: 12px !important;
}

/* Ana içerik bütün sayfalarda aynı hizada başlasın */
.page-content,
#page-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Standalone iframe modüller yukarı taşmasın */
.ckytv-standalone-module-frame {
    display: block !important;
    margin-top: 0 !important;
    vertical-align: top !important;
}

/* İlk kart / modül üst menüye yapışmasın */
.page-content > :first-child,
#page-content > :first-child {
    margin-top: 0 !important;
}

/* Panel içeriğinde gereksiz üst boşluk oluşmasını engelle */
.workspace > .page-content {
    position: relative !important;
    top: auto !important;
    transform: none !important;
}

/* CKYTV TOP NAV - biraz aşağı */
.main-nav,
.top-nav,
nav.main-nav {
    margin-top: 14px !important;
}

/* CKYTV HEADER LAYOUT FIX */

/* Menü kendi normal konumunda */
.main-nav,
.top-nav,
nav.main-nav {
    margin-top: 0 !important;
}

/* Sayfa içeriği menünün altında başlasın */
#page-content {
    padding-top: 16px !important;
}


/* =========================================================
   CKYTV HEADER + NAV FINAL
   ========================================================= */

/* Üst CKYTV / API / ENGINE satırı */
.header-top {
    min-height: 52px !important;
    height: 52px !important;
    padding: 0 22px !important;
}

/* Koyu ana menü */
#top-navigation {
    position: static !important;
    display: flex !important;
    align-items: center !important;

    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;

    margin: 0 !important;
    padding: 0 20px !important;

    box-sizing: border-box !important;
    transform: none !important;
}

/* Menü butonları */
#top-navigation .top-nav {
    height: 46px !important;
    min-height: 46px !important;
}

/* Header'ın iki satırı birbirine sıfır boşlukla bağlı */
.header {
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   CKYTV - ANA MENU UST HEADER ICINDE
   SOL: LOGO | ORTA: MENU | SAG: API/ENGINE/ADMIN
   ========================================================= */

.header {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    grid-template-rows: 56px !important;
    align-items: center !important;
    column-gap: 14px !important;
    padding: 0 18px !important;
    min-height: 56px !important;
}

/* header-top kapsayıcısını aradan çıkar:
   brand ve system-status doğrudan header gridine katılsın */
.header > .header-top {
    display: contents !important;
}

/* CKYTV logo */
.header .cky-dashboard-brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center !important;
}

/* KONTROL PANELI / SUNUCULAR / ... TAM ORTADAKI BOSLUGA */
.header #top-navigation {
    grid-column: 2 !important;
    grid-row: 1 !important;

    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;

    margin: 0 !important;
    padding: 0 6px !important;

    background: #405268 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

/* Menü butonları */
.header #top-navigation .top-nav {
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 14px !important;
    display: flex !important;
    align-items: center !important;
}

/* API / ENGINE / ADMIN */
.header .system-status {
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-self: center !important;
    margin: 0 !important;
}

/* Artık altta ikinci menü yüksekliği yok */
.layout {
    min-height: calc(100vh - 56px) !important;
}

/* ANA MENUYU ALT CIZGIYE SIFIRLA */
.header #top-navigation {
    align-self: end !important;
    margin-bottom: 0 !important;
    transform: translateY(0) !important;
}

/* ORTA MENU ALANI USTTEN ALTA TAM KOYU */
.header #top-navigation {
    height: 56px !important;
    min-height: 56px !important;
    align-self: stretch !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: #405268 !important;
}

/* Menü butonları da tam yüksekliği doldursun */
.header #top-navigation .top-nav {
    height: 56px !important;
    min-height: 56px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* KOYU MENU BLOĞU 4PX ASAGI */
.header #top-navigation {
    transform: translateY(4px) !important;
}

/* MENU 3PX DAHA ASAGI: toplam 7px */
.header #top-navigation {
    transform: translateY(7px) !important;
}

/* SECILI MENU ALT CIZGISI: KIRMIZI + KALIN */
.header #top-navigation .top-nav.active {
    border-bottom: 4px solid #e53935 !important;
}

/* SECILI MENU ALT CIZGISI - YAKLASIK 4MM */
.header #top-navigation .top-nav.active {
    border-bottom: 15px solid #e53935 !important;
    box-sizing: border-box !important;
}

/* CKYTV HEADER + NAV AYNI ALT CIZGIYE OTURSUN */
.header {
    align-items: stretch !important;
}

.header #top-navigation {
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    transform: none !important;
}

.header #top-navigation .top-nav-group,
.header #top-navigation .top-nav {
    height: 100% !important;
}

/* SECILI MENU - ESTETIK KIRMIZI CIZGI */
.header #top-navigation .top-nav.active {
    border-bottom: 4px solid #e53935 !important;
    box-sizing: border-box !important;
}

/* CKYTV HEADER / NAV TAM HIZA */
.header {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

.header #top-navigation {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    margin: 0 !important;
    transform: none !important;
}

.header #top-navigation .top-nav {
    height: 56px !important;
    min-height: 56px !important;
}

/* aktif kırmızı çizgi */
.header #top-navigation .top-nav.active {
    border-bottom: 4px solid #e53935 !important;
}

/* AKTIF MENU KIRMIZI CIZGI - 8PX */
.header #top-navigation .top-nav.active {
    border-bottom-width: 8px !important;
    border-bottom-style: solid !important;
    border-bottom-color: #e53935 !important;
    box-sizing: border-box !important;
}

/* CKYTV - Kullanici bitis tarihi renkleri */
.sure-badge.sure-suresiz {
    background: #fde8e8 !important;
    color: #dc2626 !important;
    border-color: #fecaca !important;
}

.sure-badge.sure-normal {
    background: #e7f8ef !important;
    color: #079447 !important;
    border-color: #b8ebcf !important;
}

/* CKYTV - Kompakt parola sutunu */
.subscriber-table th:nth-child(3),
.subscriber-table td:nth-child(3) {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
}

.subscriber-password-cell {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

.subscriber-password-value {
    display: inline-block !important;
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    padding: 6px 7px !important;
    border: 1px solid #d7e1ea !important;
    border-radius: 6px !important;
    background: #f4f7fa !important;
    text-align: center !important;
    font-family: monospace !important;
}

.subscriber-password-cell .password-toggle-button,
.subscriber-password-cell .password-copy-button {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    cursor: pointer !important;
}

.subscriber-password-cell .password-toggle-button {
    font-size: 15px !important;
}

.subscriber-password-cell .password-copy-button {
    font-size: 14px !important;
}

/* CKYTV - AKTIF KOMPAKT PAROLA SUTUNU */
.subscriber-table th:nth-child(3),
.subscriber-table td:nth-child(3) {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
}

.subscriber-password-cell {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    width: 100% !important;
    max-width: 145px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

.subscriber-password-cell code {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    height: 30px !important;
    padding: 0 6px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border: 1px solid #d7e1ea !important;
    border-radius: 6px !important;
    background: #f4f7fa !important;
    box-sizing: border-box !important;
}

.subscriber-password-cell .password-action {
    width: 29px !important;
    min-width: 29px !important;
    max-width: 29px !important;
    height: 29px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    line-height: 1 !important;
    font-size: 14px !important;
    border-radius: 6px !important;
}

.subscriber-password-cell .password-eye-action {
    font-size: 15px !important;
}

.subscriber-password-cell .password-copy-action {
    font-size: 13px !important;
}

/* CKYTV PAROLA - GERCEK KOMPAKT IKON DUZENI */
.subscriber-table th:nth-child(3),
.subscriber-table td:nth-child(3) {
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
}

.subscriber-password-cell {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 150px !important;
    max-width: 150px !important;
    overflow: hidden !important;
}

.subscriber-password-cell code {
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    height: 30px !important;
}

/* Göster/Kopyala yazilarini gizle */
.subscriber-password-cell .password-action {
    width: 29px !important;
    min-width: 29px !important;
    max-width: 29px !important;
    height: 29px !important;
    padding: 0 !important;
    font-size: 0 !important;
    overflow: hidden !important;
}

/* 1. buton = göz */
.subscriber-password-cell .password-action:nth-of-type(1)::before {
    content: "👁";
    font-size: 15px !important;
    line-height: 1 !important;
}

/* 2. buton = kopyala */
.subscriber-password-cell .password-action:nth-of-type(2)::before {
    content: "📋";
    font-size: 14px !important;
    line-height: 1 !important;
}

/* CKYTV - Parola grubunu sola yasla */
.subscriber-password-cell {
    justify-content: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.subscriber-table td:nth-child(3) {
    text-align: left !important;
}

/* CKYTV - Parola gorunurken tam metni goster */
.subscriber-password-cell code[data-visible="true"] {
    width: 125px !important;
    min-width: 125px !important;
    max-width: 125px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

/* Parola gorunur olunca grup genisleyebilsin */
.subscriber-password-cell:has(code[data-visible="true"]) {
    width: 200px !important;
    max-width: 200px !important;
    overflow: visible !important;
}

/* PAROLA sutununa yeterli alan */
.subscriber-table th:nth-child(3),
.subscriber-table td:nth-child(3) {
    width: 215px !important;
    min-width: 215px !important;
}

/* CKYTV - Kompakt kullanici satirlari */
.subscriber-table tbody td {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    vertical-align: middle !important;
}

/* BILGI sutunu */
.subscriber-info-compact {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    width: 100% !important;
    min-height: 34px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
}

.subscriber-info-stream {
    display: block !important;
    color: #008f78 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
}

.subscriber-info-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    max-width: 100% !important;
    color: #60758a !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.subscriber-info-meta .sep {
    color: #a5b1bd !important;
}

.subscriber-info-compact.offline {
    color: #718399 !important;
    font-size: 11px !important;
}

/* Eski yuksek satir kurallarini ez */
.subscriber-table tbody tr {
    height: auto !important;
    min-height: 0 !important;
}

/* CKYTV - Kullanici tablosu yeni bilgi kolonlari */

/* Parola biraz daha dar */
.subscriber-table th:nth-child(3),
.subscriber-table td:nth-child(3) {
    width: 205px !important;
    min-width: 205px !important;
    max-width: 205px !important;
}

/* Bilgi: kanal + sure */
.subscriber-info-column {
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
}

.subscriber-info-compact {
    min-height: 30px !important;
    gap: 2px !important;
}

/* Cihaz / uygulama */
.subscriber-device-column {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    text-align: center !important;
}

.subscriber-device-info {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #405f79 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* IP ve ISP */
.subscriber-network-column {
    width: 155px !important;
    min-width: 155px !important;
    max-width: 155px !important;
    text-align: center !important;
}

.subscriber-network-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
    line-height: 1.15 !important;
}

.subscriber-network-info strong {
    font-size: 11px !important;
    color: #244e70 !important;
}

.subscriber-network-info small {
    display: block !important;
    max-width: 145px !important;
    font-size: 10px !important;
    color: #71869a !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* =====================================================
   CKYTV SUBSCRIBERS - KOMPAKT BILGI / CIHAZ / IP-ISP
   ===================================================== */

/* Parola biraz daha dar */
.subscriber-table th:nth-child(3),
.subscriber-table td:nth-child(3) {
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
}

/* Tum satirlari kompakt tut */
.subscriber-table tbody td {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    vertical-align: middle !important;
}

/* BILGI */
.subscriber-info-column {
    width: 155px !important;
    min-width: 155px !important;
    max-width: 155px !important;
}

.subscriber-info-compact {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    min-height: 30px !important;
    line-height: 1.1 !important;
}

.subscriber-info-stream {
    color: #008f78 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.subscriber-info-watch {
    color: #657b90 !important;
    font-size: 10px !important;
}

.subscriber-info-compact.offline {
    color: #7a8da0 !important;
    font-size: 11px !important;
}

/* CIHAZ */
.subscriber-device-column {
    width: 145px !important;
    min-width: 145px !important;
    max-width: 145px !important;
    text-align: center !important;
}

.subscriber-device-info {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #405f79 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* IP / ISP */
.subscriber-network-column {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    text-align: center !important;
}

.subscriber-network-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
    line-height: 1.1 !important;
}

.subscriber-network-info strong {
    color: #244e70 !important;
    font-size: 11px !important;
}

.subscriber-network-info small {
    max-width: 140px !important;
    color: #71869a !important;
    font-size: 10px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* ==========================================================
   CKYTV USERS - BILGI / CIHAZ / IP-ISP KOMPAKT
   ========================================================== */

/* Parola biraz daha dar */
.subscriber-table th:nth-child(3),
.subscriber-table td:nth-child(3) {
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
}

/* Bilgi = kanal + sure */
.subscriber-info-column {
    width: 145px !important;
    min-width: 145px !important;
    max-width: 145px !important;
    text-align: center !important;
}

.subscriber-info-compact {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    min-height: 28px !important;
    line-height: 1.1 !important;
}

.subscriber-info-stream {
    color: #008f78 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.subscriber-info-watch {
    color: #60758a !important;
    font-size: 10px !important;
}

.subscriber-info-compact.offline {
    color: #77899b !important;
    font-size: 11px !important;
}

/* Cihaz / uygulama */
.subscriber-device-column {
    width: 135px !important;
    min-width: 135px !important;
    max-width: 135px !important;
    text-align: center !important;
}

.subscriber-device-info {
    color: #395d78 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* IP + ISP */
.subscriber-network-column {
    width: 145px !important;
    min-width: 145px !important;
    max-width: 145px !important;
    text-align: center !important;
}

.subscriber-network-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    line-height: 1.1 !important;
}

.subscriber-network-info strong {
    color: #244e70 !important;
    font-size: 11px !important;
}

.subscriber-network-info small {
    display: block !important;
    max-width: 135px !important;
    color: #71869a !important;
    font-size: 10px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Satirlar gereksiz buyumesin */
.subscriber-table tbody td {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    vertical-align: middle !important;
}

/* CKYTV USERS FINAL COLUMNS */
.subscriber-device-column {
    width: 135px !important;
    min-width: 135px !important;
    max-width: 135px !important;
    text-align: center !important;
}

.subscriber-network-column {
    width: 145px !important;
    min-width: 145px !important;
    max-width: 145px !important;
    text-align: center !important;
}

.subscriber-device-info {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #405f79 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.subscriber-network-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
    line-height: 1.1 !important;
}

.subscriber-network-info strong {
    font-size: 11px !important;
    color: #244e70 !important;
}

.subscriber-network-info small {
    max-width: 135px !important;
    font-size: 10px !important;
    color: #71869a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* =========================================================
   CKYTV USERS - TUM TABLOYU EKRANA SIGDIR
   ========================================================= */

.subscriber-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
}

/* # */
.subscriber-table th:nth-child(1),
.subscriber-table td:nth-child(1) {
    width: 36px !important;
}

/* Kullanici */
.subscriber-table th:nth-child(2),
.subscriber-table td:nth-child(2) {
    width: 110px !important;
}

/* Parola */
.subscriber-table th:nth-child(3),
.subscriber-table td:nth-child(3) {
    width: 175px !important;
    min-width: 0 !important;
    max-width: 175px !important;
}

/* Olusturan */
.subscriber-table th:nth-child(4),
.subscriber-table td:nth-child(4) {
    width: 95px !important;
}

/* Bitis */
.subscriber-table th:nth-child(5),
.subscriber-table td:nth-child(5) {
    width: 110px !important;
}

/* Hesap durumu */
.subscriber-table th:nth-child(6),
.subscriber-table td:nth-child(6) {
    width: 105px !important;
}

/* Baglanti */
.subscriber-table th:nth-child(7),
.subscriber-table td:nth-child(7) {
    width: 110px !important;
}

/* Bilgi */
.subscriber-table th:nth-child(8),
.subscriber-table td:nth-child(8) {
    width: 180px !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

/* Cihaz */
.subscriber-table th:nth-child(9),
.subscriber-table td:nth-child(9) {
    width: 125px !important;
    min-width: 0 !important;
}

/* IP / ISP */
.subscriber-table th:nth-child(10),
.subscriber-table td:nth-child(10) {
    width: 150px !important;
    min-width: 0 !important;
}

/* Not */
.subscriber-table th:nth-child(11),
.subscriber-table td:nth-child(11) {
    width: 170px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Islemler */
.subscriber-table th:nth-child(12),
.subscriber-table td:nth-child(12) {
    width: 380px !important;
    min-width: 380px !important;
}

/* Bilgi ve cihaz uzun metinleri tasmasin */
.subscriber-info-column,
.subscriber-device-column,
.subscriber-network-column {
    overflow: hidden !important;
}

.subscriber-info-column *,
.subscriber-device-column *,
.subscriber-network-column * {
    max-width: 100% !important;
}

/* Islemler tek satir */
.subscriber-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.subscriber-actions .table-action {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* Ana tablo yatay scroll uretmesin */
.subscriber-list-card .table-wrap {
    width: 100% !important;
    overflow-x: hidden !important;
}

/* CKYTV USERS - NOT SUTUNU DAR */
.subscriber-table th:nth-child(11),
.subscriber-table td:nth-child(11) {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* CKYTV USERS - IP/ISP + NOT KOMPAKT */

/* IP / ISP */
.subscriber-table th:nth-child(10),
.subscriber-table td:nth-child(10) {
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
}

/* NOT */
.subscriber-table th:nth-child(11),
.subscriber-table td:nth-child(11) {
    width: 75px !important;
    min-width: 75px !important;
    max-width: 75px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* CKYTV USERS - BILGI/NOT DAR, CIHAZ GENIS */

/* BILGI */
.subscriber-table th:nth-child(8),
.subscriber-table td:nth-child(8) {
    width: 135px !important;
    min-width: 135px !important;
    max-width: 135px !important;
}

/* CIHAZ */
.subscriber-table th:nth-child(9),
.subscriber-table td:nth-child(9) {
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
}

/* IP / ISP */
.subscriber-table th:nth-child(10),
.subscriber-table td:nth-child(10) {
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
}

/* NOT */
.subscriber-table th:nth-child(11),
.subscriber-table td:nth-child(11) {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
}

/* CIHAZ metnine ayrilan alani kullan */
.subscriber-device-info {
    width: 100% !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* =========================================================
   CKYTV TOP NAV - MULTI COLOR
   ========================================================= */

/* Kontrol Paneli */
.header #top-navigation > .top-nav:nth-child(1){
    background:#3f5873 !important;
}

/* Sunucular */
.header #top-navigation > .top-nav-group:nth-child(2) > .top-nav{
    background:#3977a8 !important;
}

/* Kullanıcılar */
.header #top-navigation > .top-nav-group:nth-child(3) > .top-nav{
    background:#6b62a8 !important;
}

/* Canlı Yayınlar */
.header #top-navigation > .top-nav-group:nth-child(4) > .top-nav{
    background:#299b8f !important;
}

/* Filmler */
.header #top-navigation > .top-nav-group:nth-child(5) > .top-nav{
    background:#d28a45 !important;
}

/* Diziler */
.header #top-navigation > .top-nav-group:nth-child(6) > .top-nav{
    background:#b95f86 !important;
}

/* Radyolar */
.header #top-navigation > .top-nav-group:nth-child(7) > .top-nav{
    background:#4f91b8 !important;
}

/* İzleme */
.header #top-navigation > .top-nav:nth-child(8){
    background:#548b78 !important;
}

/* Loglar */
.header #top-navigation > .top-nav-group:nth-child(9) > .top-nav{
    background:#747d8b !important;
}

/* Ayarlar */
.header #top-navigation > .top-nav-group:nth-child(10) > .top-nav{
    background:#8a704e !important;
}

/* Yazılar */
.header #top-navigation .top-nav{
    color:#fff !important;
}

/* Hover - hafif aydınlat */
.header #top-navigation .top-nav:hover{
    filter:brightness(1.10);
}

/* Aktif menünün mevcut kırmızı çizgisi korunsun */
.header #top-navigation .top-nav.active{
    border-bottom-color:#ef4b55 !important;
}


/* =========================================================
   CKYTV MOBILE DROPDOWN FIX
   Mobil dokunmada focus-within menusu ekranda takilmasin
   ========================================================= */
@media (max-width: 700px) {

    #top-navigation .top-nav-menu,
    .cky-dropdown-navigation .top-nav-menu,
    .top-nav-group:hover > .top-nav-menu,
    .top-nav-group:focus-within > .top-nav-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    #top-navigation .top-nav-group {
        position: static !important;
    }

    #top-navigation {
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }
}

/* =========================================================
   CKYTV MOBILE DROPDOWN FIX
   Mobil dokunmada focus-within menusu ekranda takilmasin
   ========================================================= */
@media (max-width: 700px) {

    #top-navigation .top-nav-menu,
    .cky-dropdown-navigation .top-nav-menu,
    .top-nav-group:hover > .top-nav-menu,
    .top-nav-group:focus-within > .top-nav-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    #top-navigation .top-nav-group {
        position: static !important;
    }

    #top-navigation {
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }
}

/* =========================================================
   CKYTV MOBILE TOP NAV - FINAL
   Telefon/tablette hover/focus dropdown ACILMAYACAK
   ========================================================= */

@media (max-width: 900px), (hover: none) and (pointer: coarse) {

    #top-navigation .top-nav-menu,
    .cky-dropdown-navigation .top-nav-menu,
    #top-navigation .top-nav-group > .top-nav-menu,
    #top-navigation .top-nav-group:hover > .top-nav-menu,
    #top-navigation .top-nav-group:focus > .top-nav-menu,
    #top-navigation .top-nav-group:focus-within > .top-nav-menu,
    #top-navigation .top-nav-group.menu-open > .top-nav-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }

    #top-navigation .top-nav-group {
        position: relative !important;
    }

    #top-navigation {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
    }

    #top-navigation::-webkit-scrollbar {
        display: none !important;
    }
}


/* =========================================================
   CKYTV MOBILE VIEWPORT FIX
   Ana sayfa telefon ekranini asamaz.
   Genis tablolar sadece kendi kapsayicisinda kayar.
   DESKTOP ETKILENMEZ.
   ========================================================= */

@media (max-width: 900px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }

    #app,
    .app,
    .app-shell,
    .shell,
    .layout,
    .main-layout,
    .main-wrapper,
    .page-wrapper,
    .page,
    .page-shell,
    .workspace,
    .content-wrapper,
    .main-content,
    .content,
    .page-content,
    #page-content,
    main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .workspace {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    #page-content {
        overflow-x: hidden !important;
    }

    /* Standalone moduller telefon ekranindan genisleyemez */
    .ckytv-standalone-module-frame,
    #page-content iframe {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /*
       Genis tablolar ana sayfayi buyutmesin.
       Yatay kaydirma tablo kapsayicisinda kalsin.
    */
    .table-wrap,
    .table-wrapper,
    .table-scroll,
    .cky-table-wrap,
    .cky-table-scroll,
    .subscriber-table-wrap,
    .subscriber-table-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box !important;
    }
}






















/* =========================================================
   CKYTV MOBILE NATIVE DIALOG
   Desktop canvas'tan tamamen bagimsiz mobil pencere
   ========================================================= */

.cky-mobile-dialog {
    width: min(620px, calc(100vw - 16px)) !important;
    max-width: calc(100vw - 16px) !important;

    height: auto !important;
    max-height: calc(100dvh - 20px) !important;

    margin: auto !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 11px !important;

    background: transparent !important;
    overflow: visible !important;
}

.cky-mobile-dialog::backdrop {
    background: rgba(15, 23, 42, .50) !important;
}

.cky-mobile-dialog .modal-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    height: auto !important;
    max-height: calc(100dvh - 20px) !important;

    margin: 0 !important;

    display: flex !important;
    flex-direction: column !important;

    overflow: hidden !important;

    background: #fff !important;
    border-radius: 11px !important;
}

.cky-mobile-dialog .modal-header {
    flex: 0 0 auto !important;
    padding: 9px 11px !important;
}

.cky-mobile-dialog .modal-header h2 {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 19px !important;
}

.cky-mobile-dialog .modal-close {
    width: 29px !important;
    height: 29px !important;
}

.cky-mobile-dialog #modal-form {
    flex: 1 1 auto !important;
    min-height: 0 !important;

    display: flex !important;
    flex-direction: column !important;

    overflow: hidden !important;
}

.cky-mobile-dialog .modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;

    padding: 8px 11px !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    -webkit-overflow-scrolling: touch !important;
}

/* Xtream gibi kompakt 2 kolon */
.cky-mobile-dialog .form-grid {
    display: grid !important;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr) !important;

    gap: 6px 8px !important;
}

.cky-mobile-dialog .form-field {
    min-width: 0 !important;
    margin: 0 !important;
}

.cky-mobile-dialog .form-field.full {
    grid-column: 1 / -1 !important;
}

.cky-mobile-dialog .form-field label {
    margin: 0 0 2px !important;
    font-size: 10px !important;
    line-height: 13px !important;
}

.cky-mobile-dialog input,
.cky-mobile-dialog select {
    width: 100% !important;
    min-width: 0 !important;

    height: 30px !important;
    min-height: 30px !important;

    padding: 4px 7px !important;
    font-size: 10px !important;

    box-sizing: border-box !important;
}

.cky-mobile-dialog textarea {
    width: 100% !important;

    height: 48px !important;
    min-height: 48px !important;

    padding: 5px 7px !important;
    font-size: 10px !important;

    box-sizing: border-box !important;
}

.cky-mobile-dialog .form-hint {
    margin-top: 2px !important;
    font-size: 8px !important;
    line-height: 10px !important;
}

.cky-mobile-dialog .password-field-row {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    gap: 4px !important;
}

.cky-mobile-dialog .password-field-row button {
    height: 30px !important;
    min-height: 30px !important;

    padding: 3px 7px !important;
    font-size: 9px !important;
}

.cky-mobile-dialog .checkbox-row {
    margin-top: 3px !important;
    gap: 4px !important;
}

.cky-mobile-dialog .checkbox-row input {
    width: 14px !important;
    height: 14px !important;
    min-height: 14px !important;
}

/* Buketler */
.cky-mobile-dialog .bouquet-section-header {
    margin-bottom: 4px !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;

    gap: 5px !important;
}

.cky-mobile-dialog .bouquet-toolbar {
    margin-left: auto !important;
    gap: 4px !important;
}

.cky-mobile-dialog .bouquet-toolbar button {
    height: 25px !important;
    min-height: 25px !important;

    padding: 2px 6px !important;
    font-size: 8px !important;
}

.cky-mobile-dialog .bouquet-grid {
    display: grid !important;

    grid-template-columns:
        repeat(2, minmax(0, 1fr)) !important;

    gap: 4px !important;
}

.cky-mobile-dialog .bouquet-choice {
    min-width: 0 !important;

    margin: 0 !important;
    padding: 4px 5px !important;

    gap: 4px !important;
}

.cky-mobile-dialog .bouquet-choice input {
    width: 13px !important;
    height: 13px !important;
    min-height: 13px !important;
}

.cky-mobile-dialog .bouquet-choice-info {
    min-width: 0 !important;
    gap: 1px !important;
}

.cky-mobile-dialog .bouquet-choice-info strong {
    font-size: 8px !important;
    line-height: 10px !important;
}

.cky-mobile-dialog .bouquet-choice-info small {
    font-size: 7px !important;
    line-height: 9px !important;
}

/* Alt butonlar her zaman dialog icinde */
.cky-mobile-dialog .modal-footer {
    flex: 0 0 auto !important;

    margin: 0 !important;
    padding: 7px 11px !important;

    display: flex !important;
    justify-content: flex-end !important;
    gap: 6px !important;

    background: #fff !important;
}

.cky-mobile-dialog .modal-footer button {
    height: 30px !important;
    min-height: 30px !important;

    padding: 4px 9px !important;
    font-size: 9px !important;
}


/* =========================================================
   CKYTV MOBILE DESKTOP PANEL - DOGRU YAPI
   Viewport telefon genisliginde kalir.
   Panel masaustu genisliginde yatay gezilir.
   Modal telefon viewport'una bagli kalir.
   ========================================================= */

@media (max-width:900px), (hover:none) and (pointer:coarse) {

    html,
    body {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        margin: 0 !important;

        overflow-x: auto !important;
        overflow-y: auto !important;
    }

    /*
       Sadece PANEL masaustu genisliginde.
       html/body kesinlikle 1500px DEGIL.
    */
    #panel {
        width: 1500px !important;
        min-width: 1500px !important;
        max-width: none !important;
    }

    #panel .header,
    #panel .layout,
    #panel .workspace {
        width: 1500px !important;
        min-width: 1500px !important;
        max-width: none !important;

        box-sizing: border-box !important;
    }

    /*
       Sayfa yatay scroll yapabilir.
       Tabloyu telefona ezmiyoruz.
    */
    #page-content {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        overflow: visible !important;
    }

    /*
       Streams iframe de panel alaninda kalir.
    */
    #page-content iframe,
    .ckytv-standalone-module-frame {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    /*
       Native dialog 1500px panelden BAGIMSIZ.
       Gercek telefon ekranina gore acilir.
    */
    dialog.cky-mobile-dialog {
        position: fixed !important;

        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        min-width: 0 !important;

        margin: auto !important;
    }
}


/* =========================================================
   CKYTV STREAM EDITOR V4 - MULTI SERVER SOURCE
   ========================================================= */

.cky-v4-server-row{
    align-items:flex-start !important;
}

.cky-v4-server-row > label{
    padding-top:12px !important;
}

.cky-v4-server-manager{
    width:100% !important;
    display:grid !important;
    grid-template-columns:minmax(175px,220px) 34px minmax(300px,1fr) !important;
    gap:10px !important;
    align-items:stretch !important;
}

.cky-v4-server-tree-panel,
.cky-v4-server-source-panel{
    border:1px solid #d9e1e7 !important;
    border-radius:9px !important;
    background:#fff !important;
    overflow:hidden !important;
    box-shadow:0 2px 8px rgba(30,54,75,.05) !important;
}

.cky-v4-server-panel-title{
    height:34px !important;
    display:flex !important;
    align-items:center !important;
    padding:0 11px !important;
    border-bottom:1px solid #e5eaee !important;
    background:#f6f8fa !important;
    color:#30485d !important;
    font-size:11px !important;
    font-weight:700 !important;
}

.cky-v4-server-tree{
    min-height:96px !important;
    max-height:170px !important;
    overflow-y:auto !important;
    padding:7px 8px !important;
}

.cky-v4-server-tree-node{
    position:relative !important;
    height:31px !important;
    display:flex !important;
    align-items:center !important;
    gap:7px !important;
    padding:0 8px 0 18px !important;
    border-radius:6px !important;
    color:#344c60 !important;
    font-size:11px !important;
    cursor:grab !important;
    user-select:none !important;
}

.cky-v4-server-tree-node:hover{
    background:#eaf6f4 !important;
    color:#137c72 !important;
}

.cky-v4-server-tree-line{
    position:absolute !important;
    left:5px !important;
    width:9px !important;
    border-top:1px dotted #9aabb6 !important;
}

.cky-v4-server-tree-icon{
    font-size:11px !important;
    color:#638399 !important;
}

.cky-v4-server-tree-name{
    flex:1 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
}

.cky-v4-server-tree-status{
    width:7px !important;
    height:7px !important;
    flex:0 0 7px !important;
    border-radius:50% !important;
    background:#d35b67 !important;
}

.cky-v4-server-tree-status.online{
    background:#28b88e !important;
    box-shadow:0 0 0 2px rgba(40,184,142,.12) !important;
}

.cky-v4-server-tree-hint{
    height:27px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-top:1px solid #edf0f2 !important;
    background:#fafbfc !important;
    color:#94a2ad !important;
    font-size:9px !important;
}

.cky-v4-server-arrow{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    color:#7e929f !important;
    font-size:20px !important;
    font-weight:300 !important;
}

.cky-v4-server-drop{
    min-height:123px !important;
    padding:8px !important;
    background:#fbfcfd !important;
    transition:.15s ease !important;
}

.cky-v4-server-drop.drag-over{
    background:#eaf7f4 !important;
    box-shadow:inset 0 0 0 2px #2b9c8e !important;
}

.cky-v4-server-empty{
    min-height:105px !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:4px !important;
    border:1px dashed #bbc8d0 !important;
    border-radius:7px !important;
    color:#93a1ab !important;
    font-size:10px !important;
}

.cky-v4-server-empty strong{
    color:#687d8c !important;
    font-size:11px !important;
}

.cky-v4-assigned-server-list{
    display:flex !important;
    flex-direction:column !important;
    gap:6px !important;
}

.cky-v4-assigned-server{
    min-height:36px !important;
    display:grid !important;
    grid-template-columns:54px 10px minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:8px !important;
    padding:4px 6px 4px 9px !important;
    border:1px solid #d5dee4 !important;
    border-radius:7px !important;
    background:#fff !important;
}

.cky-v4-assigned-server:first-child{
    border-color:#8acbc1 !important;
    background:#eef9f7 !important;
}

.cky-v4-server-priority{
    color:#82939f !important;
    font-size:9px !important;
    font-weight:700 !important;
}

.cky-v4-assigned-server:first-child .cky-v4-server-priority{
    color:#168678 !important;
}

.cky-v4-server-state-dot{
    width:7px !important;
    height:7px !important;
    border-radius:50% !important;
    background:#28b88e !important;
}

.cky-v4-assigned-server-name{
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
    color:#314a5e !important;
    font-size:11px !important;
    font-weight:600 !important;
}

.cky-v4-assigned-server-actions{
    display:flex !important;
    gap:3px !important;
}

.cky-v4-assigned-server-actions button{
    width:27px !important;
    height:27px !important;
    min-width:27px !important;
    padding:0 !important;
    border:0 !important;
    border-radius:5px !important;
    background:#8095a3 !important;
    color:#fff !important;
    cursor:pointer !important;
}

.cky-v4-assigned-server-actions button:disabled{
    opacity:.28 !important;
    cursor:default !important;
}

.cky-v4-assigned-server-actions .delete{
    background:#e25c70 !important;
}

@media(max-width:850px){
    .cky-v4-server-manager{
        grid-template-columns:1fr !important;
    }

    .cky-v4-server-arrow{
        height:20px !important;
        transform:rotate(90deg) !important;
    }
}


/* =========================================================
   CKYTV XTREAM STYLE USER CREATE
   ========================================================= */

.cky-user-editor{
    width:760px;
    max-width:100%;
}

.cky-user-tabs{
    display:flex;
    border-bottom:1px solid #dbe3e8;
    margin:-4px -4px 16px;
    gap:2px;
}

.cky-user-tab{
    border:0;
    background:#eef2f4;
    color:#536a79;
    height:38px;
    padding:0 18px;
    font-size:11px;
    font-weight:700;
    cursor:pointer;
}

.cky-user-tab.active{
    background:#258b80;
    color:#fff;
}

.cky-user-tab span{
    margin-left:5px;
    padding:1px 6px;
    border-radius:9px;
    background:rgba(255,255,255,.2);
}

.cky-user-pane{
    display:none;
}

.cky-user-pane.active{
    display:block;
}

.cky-user-form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:13px 18px;
}

.cky-user-field{
    display:flex;
    flex-direction:column;
    gap:5px;
}

.cky-user-field.full{
    grid-column:1/-1;
}

.cky-user-field label,
.cky-user-section-title{
    font-size:11px;
    font-weight:700;
    color:#344b5b;
}

.cky-user-field input,
.cky-user-field select,
.cky-user-field textarea{
    box-sizing:border-box;
    width:100%;
    min-height:36px;
    border:1px solid #cad5dc;
    background:#fff;
    padding:7px 9px;
    font-size:12px;
}

.cky-user-field small{
    color:#82919b;
    font-size:10px;
}

.cky-user-password-row{
    display:grid;
    grid-template-columns:1fr 70px;
    gap:6px;
}

.cky-user-password-row button{
    border:0;
    background:#607d8b;
    color:#fff;
    font-size:10px;
    font-weight:700;
    cursor:pointer;
}

.cky-user-switch-row{
    display:flex !important;
    flex-direction:row !important;
    align-items:center;
    gap:7px;
    min-height:36px;
}

.cky-user-switch-row input{
    width:auto !important;
    min-height:auto !important;
}

.cky-user-info-box{
    padding:13px 15px;
    border:1px solid #d7e1e6;
    background:#f4f7f8;
    color:#60717c;
    font-size:11px;
    line-height:1.5;
}

.cky-user-info-box.full{
    grid-column:1/-1;
}

.cky-user-section-title{
    margin-bottom:14px;
    padding-bottom:8px;
    border-bottom:1px solid #e1e7eb;
}


/* BOUQUETS */

.cky-user-bouquet-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    margin-bottom:8px;
}

.cky-user-bouquet-head > div:first-child{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.cky-user-bouquet-head strong{
    font-size:12px;
    color:#334b5a;
}

.cky-user-bouquet-head small{
    font-size:10px;
    color:#84929c;
}

.cky-user-bouquet-toolbar{
    display:flex;
    gap:5px;
}

.cky-user-bouquet-toolbar button{
    height:28px;
    padding:0 11px;
    border:0;
    background:#607d8b;
    color:#fff;
    font-size:10px;
    cursor:pointer;
}

.cky-user-bouquet-summary{
    margin:6px 0;
    font-size:10px;
    color:#667a88;
}

.cky-user-bouquet-list{
    height:315px;
    overflow:auto;
    border:1px solid #cad5dc;
    background:#fff;
    user-select:none;
}

.cky-user-bouquet-row{
    display:grid;
    grid-template-columns:26px 1fr 90px;
    align-items:center;
    min-height:32px;
    padding:0 8px;
    border-bottom:1px solid #edf1f3;
    cursor:pointer;
    font-size:11px;
    color:#445c6b;
}

.cky-user-bouquet-row:hover{
    background:#f1f7f7;
}

.cky-user-bouquet-row.selected{
    background:#daf1ed;
    color:#176e65;
}

.cky-user-bouquet-check{
    visibility:hidden;
    font-weight:800;
    color:#168477;
}

.cky-user-bouquet-row.selected
.cky-user-bouquet-check{
    visibility:visible;
}

.cky-user-bouquet-name{
    font-weight:600;
}

.cky-user-bouquet-count{
    text-align:right;
    color:#83919a;
    font-size:10px;
}

.cky-user-empty{
    padding:20px;
    text-align:center;
    color:#89969e;
    font-size:11px;
}

@media(max-width:760px){
    .cky-user-form-grid{
        grid-template-columns:1fr;
    }

    .cky-user-field.full{
        grid-column:auto;
    }

    .cky-user-tabs{
        overflow-x:auto;
    }
}

/* USER TABS - LIGHT HEADER */
.cky-user-tabs{
    background:#f3f6f8 !important;
    border-bottom:1px solid #d5dee4 !important;
    gap:0 !important;
}

.cky-user-tab{
    background:#eef2f4 !important;
    color:#6b7c88 !important;
    border-right:1px solid #d5dee4 !important;
}

.cky-user-tab:hover{
    background:#e5ecef !important;
    color:#334b5a !important;
}

.cky-user-tab.active{
    background:#238b80 !important;
    color:#fff !important;
}

.cky-user-tab:last-child{
    border-right:0 !important;
}

/* =========================================================
   NEW USER MODAL - COMPACT
   ========================================================= */

/* Yeni kullanıcı modalını küçült */
.modal-dialog:has(.cky-user-editor),
.modal-content:has(.cky-user-editor),
.dialog:has(.cky-user-editor){
    width:680px !important;
    max-width:calc(100vw - 30px) !important;
    max-height:94vh !important;
}

/* İç editor */
.cky-user-editor{
    width:100% !important;
    max-width:100% !important;
}

/* Sekmeler */
.cky-user-tabs{
    margin:0 0 7px !important;
    height:34px !important;
}

.cky-user-tab{
    height:34px !important;
    padding:0 15px !important;
    font-size:10px !important;
}

/* Sekme içerikleri */
.cky-user-pane{
    padding:0 !important;
}

/* Bölüm başlığı */
.cky-user-section-title{
    margin:0 0 7px !important;
    padding:0 0 5px !important;
    font-size:10px !important;
}

/* Form satırlarını sıkıştır */
.cky-user-form-grid{
    gap:7px 14px !important;
}

/* Label */
.cky-user-field{
    gap:3px !important;
}

.cky-user-field label{
    font-size:10px !important;
}

/* Input / select */
.cky-user-field input,
.cky-user-field select{
    min-height:30px !important;
    height:30px !important;
    padding:4px 8px !important;
    font-size:11px !important;
}

/* Textarea */
.cky-user-field textarea{
    min-height:48px !important;
    height:48px !important;
    padding:6px 8px !important;
    font-size:11px !important;
}

/* Yardım yazıları */
.cky-user-field small{
    font-size:9px !important;
    line-height:1.2 !important;
}

/* Şifre */
.cky-user-password-row{
    grid-template-columns:1fr 64px !important;
    gap:5px !important;
}

.cky-user-password-row button{
    height:30px !important;
    font-size:9px !important;
}

/* Switch / checkbox */
.cky-user-switch-row{
    min-height:30px !important;
}

/* Bilgi kutuları */
.cky-user-info-box{
    padding:8px 10px !important;
    font-size:9px !important;
    line-height:1.35 !important;
}

/* Access Output */
.cky-user-access-row{
    display:flex !important;
    align-items:center !important;
    gap:22px !important;
    min-height:30px !important;
}

.cky-user-access-row label{
    display:flex !important;
    align-items:center !important;
    gap:5px !important;
    margin:0 !important;
}

.cky-user-access-row input{
    width:16px !important;
    height:16px !important;
    min-height:16px !important;
    margin:0 !important;
}

/* Buket ekranı */
.cky-user-bouquet-head{
    margin-bottom:4px !important;
}

.cky-user-bouquet-summary{
    margin:3px 0 !important;
}

.cky-user-bouquet-list{
    height:235px !important;
}

.cky-user-bouquet-row{
    min-height:28px !important;
    font-size:10px !important;
}

/* Modal genel başlık/footer boşluklarını azalt */
.modal-dialog:has(.cky-user-editor) .modal-header,
.modal-content:has(.cky-user-editor) .modal-header,
.dialog:has(.cky-user-editor) header{
    padding-top:12px !important;
    padding-bottom:12px !important;
}

.modal-dialog:has(.cky-user-editor) .modal-footer,
.modal-content:has(.cky-user-editor) .modal-footer,
.dialog:has(.cky-user-editor) footer{
    padding-top:10px !important;
    padding-bottom:10px !important;
}

@media(max-height:760px){
    .cky-user-form-grid{
        gap:5px 12px !important;
    }

    .cky-user-field textarea{
        min-height:42px !important;
        height:42px !important;
    }

    .cky-user-bouquet-list{
        height:200px !important;
    }
}

/* USER TABS - EQUAL WIDTH */
.cky-user-tabs{
    display:grid !important;
    grid-template-columns:repeat(4, 1fr) !important;
    width:100% !important;
}

.cky-user-tab{
    width:100% !important;
    min-width:0 !important;
    padding:0 6px !important;
    text-align:center !important;
    justify-content:center !important;
    border-right:1px solid #d5dee4 !important;
}

.cky-user-tab:last-child{
    border-right:0 !important;
}

/* USER RESTRICTIONS */
.cky-restrict-entry-row{
    display:grid !important;
    grid-template-columns:1fr 38px 38px !important;
    gap:0 !important;
}

.cky-restrict-entry-row input{
    height:30px !important;
    min-height:30px !important;
}

.cky-restrict-add,
.cky-restrict-clear{
    height:30px !important;
    border:0 !important;
    color:#fff !important;
    font-size:16px !important;
    cursor:pointer !important;
}

.cky-restrict-add{
    background:#4d8ddd !important;
}

.cky-restrict-clear{
    background:#ef5a45 !important;
}

.cky-restrict-list{
    min-height:58px !important;
    max-height:100px !important;
    overflow-y:auto !important;
    border:1px solid #cad5dc !important;
    background:#fff !important;
}

.cky-restrict-item{
    display:grid !important;
    grid-template-columns:1fr 28px !important;
    align-items:center !important;
    min-height:27px !important;
    padding-left:8px !important;
    border-bottom:1px solid #edf1f3 !important;
    font-size:10px !important;
}

.cky-restrict-item button{
    height:27px !important;
    border:0 !important;
    background:#ef5a45 !important;
    color:#fff !important;
    cursor:pointer !important;
}

/* CKYTV subscriber expiry date + time */
.cky-expiry-row{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 105px !important;
    gap:8px !important;
    width:100% !important;
}

.cky-expiry-row input[type="date"],
.cky-expiry-row input[type="time"]{
    width:100% !important;
    min-width:0 !important;
    height:36px !important;
    padding:6px 9px !important;
    border:1px solid #cbd5e1 !important;
    background:#fff !important;
    color:#334155 !important;
    font:inherit !important;
    border-radius:0 !important;
}

.cky-expiry-row input[type="time"]{
    text-align:center !important;
}

/* CKYTV subscriber expiry date + time */
.cky-expiry-row{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 105px !important;
    gap:8px !important;
    width:100% !important;
}

.cky-expiry-row input[type="date"],
.cky-expiry-row input[type="time"]{
    width:100% !important;
    min-width:0 !important;
    height:36px !important;
    padding:6px 9px !important;
    border:1px solid #cbd5e1 !important;
    background:#fff !important;
    color:#334155 !important;
    font:inherit !important;
    border-radius:0 !important;
}

.cky-expiry-row input[type="time"]{
    text-align:center !important;
}

/* CKYTV USER PAGINATION */
.cky-user-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-top: 1px solid #dbe4ee;
    background: #fff;
}

.cky-user-page-size {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #52647a;
}

.cky-user-page-size select {
    width: 82px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #ccd8e5;
    border-radius: 6px;
    background: #fff;
}

.cky-user-page-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.cky-user-page-button {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border: 1px solid #d5dfeb;
    border-radius: 4px;
    background: #fff;
    color: #30465f;
    cursor: pointer;
}

.cky-user-page-button:hover:not(:disabled) {
    background: #eef5ff;
}

.cky-user-page-button.active {
    background: #4388e8;
    border-color: #4388e8;
    color: #fff;
}

.cky-user-page-button:disabled {
    opacity: .4;
    cursor: default;
}

.cky-user-page-dots {
    min-width: 26px;
    text-align: center;
    color: #74869a;
}

.cky-user-page-info {
    justify-self: end;
    font-size: 12px;
    color: #718298;
}


/* CKYTV USER FILTERS -> TABLE COLUMN ALIGNMENT */
.subscriber-filter-bar{
    display:grid !important;

    /*
       # | Kullanıcı | Parola | Oluşturan | Bitiş |
       Hesap | Bağlantı | Bilgi | Cihaz | IP/ISP | Not | İşlemler
    */
    grid-template-columns:
        42px
        128px
        205px
        112px
        122px
        110px
        118px
        158px
        223px
        128px
        70px
        minmax(300px,1fr) !important;

    gap:0 !important;
    align-items:end !important;
    padding:12px 0 14px !important;
}

/* Arama -> Kullanıcı + Parola alanı */
.subscriber-filter-bar .filter-field:nth-child(1){
    grid-column:2 / 4;
    padding:0 8px !important;
}

/* Oluşturan / Bayi */
.subscriber-filter-bar .filter-field:nth-child(2){
    grid-column:4;
    padding:0 6px !important;
}

/* Hesap Durumu */
.subscriber-filter-bar .filter-field:nth-child(3){
    grid-column:6;
    padding:0 6px !important;
}

/* Bağlantı */
.subscriber-filter-bar .filter-field:nth-child(4){
    grid-column:7;
    padding:0 6px !important;
}

/* Süre Durumu -> Bitiş Tarihi */
.subscriber-filter-bar .filter-field:nth-child(5){
    grid-column:5;
    grid-row:1;
    padding:0 6px !important;
}

/* Temizle -> İşlemler tarafı */
#subscriber-filter-clear{
    grid-column:12 !important;
    grid-row:1 !important;
    justify-self:end !important;
    align-self:end !important;
    margin-right:10px !important;
}

.subscriber-filter-bar .filter-field input,
.subscriber-filter-bar .filter-field select{
    width:100% !important;
    min-width:0 !important;
}


/* USER FILTERS INSIDE TABLE HEADERS */
.subscriber-list-card .subscriber-filter-bar{
    display:none !important;
}

.subscriber-table th.cky-filter-th{
    vertical-align:top !important;
    padding:7px 6px 6px !important;
}

.cky-filter-th > span,
.cky-filter-th .subscriber-sort-button{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:20px;
    margin-bottom:5px;
}

.cky-th-filter{
    display:block;
    width:100% !important;
    min-width:0 !important;
    height:30px !important;
    margin:0 !important;
    padding:3px 7px !important;
    border:1px solid #cdd9e6 !important;
    border-radius:4px !important;
    background:#fff !important;
    font-size:11px !important;
    font-weight:400 !important;
}

input.cky-th-filter{
    text-align:left !important;
}

.cky-th-clear{
    width:100%;
    height:30px;
    border:1px solid #cdd9e6;
    border-radius:4px;
    background:#fff;
    color:#31465b;
    cursor:pointer;
    font-size:11px;
}

.cky-th-clear:hover{
    background:#f2f6fa;
}


/* CKYTV gerçek Xtream ID sütunu */
.subscriber-table th:first-child,
.subscriber-table td:first-child{
    width:72px !important;
    min-width:72px !important;
    max-width:72px !important;
    text-align:center !important;
    padding-left:8px !important;
    padding-right:8px !important;
    white-space:nowrap !important;
}

.subscriber-id-header .subscriber-sort-button{
    width:100% !important;
    justify-content:center !important;
    gap:5px !important;
}

.subscriber-table th:nth-child(2),
.subscriber-table td:nth-child(2){
    padding-left:12px !important;
}


/* CKYTV - filtreler başlıkların ÜSTÜNDE */
.subscriber-table thead th.cky-filter-th{
    display:flex !important;
    flex-direction:column-reverse !important;
    justify-content:flex-end !important;
    padding:0 !important;
}

/* filtre alanı üstte */
.subscriber-table thead th.cky-filter-th .cky-th-filter,
.subscriber-table thead th.cky-filter-th .cky-th-clear{
    order:2 !important;
    height:32px !important;
    margin:6px 6px 5px !important;
    width:calc(100% - 12px) !important;
}

/* başlık aşağıda */
.subscriber-table thead th.cky-filter-th > span,
.subscriber-table thead th.cky-filter-th > .subscriber-sort-button{
    order:1 !important;
    width:100% !important;
    min-height:38px !important;
    margin:0 !important;
    padding:8px 6px !important;
    border-top:1px solid #d7e1ec !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}

/* Kullanıcı başlığındaki arama da üstte */
.subscriber-table thead th.subscriber-sortable-header.cky-filter-th{
    flex-direction:column-reverse !important;
}

/* filtre olmayan başlıkları alt başlık satırıyla hizala */
.subscriber-table thead th:not(.cky-filter-th){
    vertical-align:bottom !important;
    padding-bottom:11px !important;
}


/* CKYTV USERS - FILTRELER TEK YATAY SATIR */
.subscriber-table thead tr{
    display:table-row !important;
}

.subscriber-table thead th{
    display:table-cell !important;
    vertical-align:bottom !important;
}

/* Filtreli hücre: filtre üstte, başlık altta */
.subscriber-table thead th.cky-filter-th{
    display:table-cell !important;
    vertical-align:bottom !important;
    padding:6px !important;
}

/* Filtreler aynı yükseklikte */
.subscriber-table thead .cky-th-filter,
.subscriber-table thead .cky-th-clear{
    display:block !important;
    width:100% !important;
    height:34px !important;
    min-height:34px !important;
    margin:0 0 6px 0 !important;
    box-sizing:border-box !important;
}

/* Başlıklar filtrelerin hemen altında */
.subscriber-table thead th.cky-filter-th > span,
.subscriber-table thead th.cky-filter-th > .subscriber-sort-button{
    display:flex !important;
    width:100% !important;
    height:34px !important;
    min-height:34px !important;
    margin:0 !important;
    padding:5px 4px !important;
    align-items:center !important;
    justify-content:center !important;
    box-sizing:border-box !important;
    border-top:1px solid #d7e1ec !important;
}

/* ID ve filtresiz kolonlar alt başlık hizasında */
.subscriber-table thead th:not(.cky-filter-th){
    height:74px !important;
    vertical-align:bottom !important;
    padding-bottom:10px !important;
}


/* USERS THEAD - 2 GERCEK YATAY SATIR */
.subscriber-table thead tr.subscriber-filter-row,
.subscriber-table thead tr.subscriber-header-row{
    display:table-row !important;
}

.subscriber-table thead tr.subscriber-filter-row th,
.subscriber-table thead tr.subscriber-header-row th{
    display:table-cell !important;
    height:auto !important;
    vertical-align:middle !important;
}

.subscriber-filter-row th{
    padding:6px !important;
    border-bottom:1px solid #d7e1ec !important;
}

.subscriber-header-row th{
    padding:8px 6px !important;
}

.subscriber-filter-row .cky-th-filter,
.subscriber-filter-row .cky-th-clear{
    width:100% !important;
    height:32px !important;
    margin:0 !important;
    box-sizing:border-box !important;
}


/* ===== CKYTV USERS THEAD FINAL ===== */

.subscriber-table thead .cky-subscriber-filter-row,
.subscriber-table thead .cky-subscriber-header-row {
    display: table-row !important;
}

.subscriber-table thead .cky-subscriber-filter-row th,
.subscriber-table thead .cky-subscriber-header-row th {
    display: table-cell !important;
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    vertical-align: middle !important;
}

/* ÜST YATAY FILTRE SATIRI */
.subscriber-table thead .cky-subscriber-filter-row th {
    padding: 6px !important;
    border-bottom: 1px solid #d7e1ec !important;
}

.subscriber-table thead .cky-subscriber-filter-row input,
.subscriber-table thead .cky-subscriber-filter-row select,
.subscriber-table thead .cky-subscriber-filter-row button {
    display: block !important;
    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* ALT BASLIK SATIRI */
.subscriber-table thead .cky-subscriber-header-row th {
    height: 38px !important;
    padding: 7px 6px !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.subscriber-table thead .cky-subscriber-header-row
.subscriber-sort-button {
    width: 100% !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
}

/* ID sütunu */
.subscriber-table th:first-child,
.subscriber-table td:first-child {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
}


/* Temizle - kompakt */
.cky-clear-compact{
    width:82px !important;
    min-width:82px !important;
    max
cd /opt/ckytv/panel || exit 1

cp -a style.css style.css.bak.userwidth.$(date +%F_%H%M%S)

cat >> style.css <<'EOF'

/* USERNAME genislet / CIHAZ daralt */

/* Kullanıcı */
.subscriber-table th:nth-child(2),
.subscriber-table td:nth-child(2){
    width:190px !important;
    min-width:190px !important;
    max-width:190px !important;
    padding-left:10px !important;
    padding-right:10px !important;
}

/* Kullanıcı adı tek satır */
.subscriber-table td:nth-child(2) strong{
    display:block !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
}

/* Cihaz */
.subscriber-table th:nth-child(9),
.subscriber-table td:nth-child(9){
    width:120px !important;
    min-width:120px !important;
    max-width:120px !important;
    padding-left:5px !important;
    padding-right:5px !important;
}


/* ===== USERS GENISLIK FINAL 2 ===== */

/* KULLANICI - daha geniş */
.subscriber-table th:nth-child(2),
.subscriber-table td:nth-child(2){
    width:260px !important;
    min-width:260px !important;
    max-width:260px !important;
}

/* Uzun kullanıcı adı tek satır */
.subscriber-table td:nth-child(2) strong{
    display:block !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
}

/* CIHAZ - daralt */
.subscriber-table th:nth-child(9),
.subscriber-table td:nth-child(9){
    width:95px !important;
    min-width:95px !important;
    max-width:95px !important;
    padding-left:4px !important;
    padding-right:4px !important;
}

/* IP / ISP - daralt */
.subscriber-table th:nth-child(10),
.subscriber-table td:nth-child(10){
    width:105px !important;
    min-width:105px !important;
    max-width:105px !important;
    padding-left:4px !important;
    padding-right:4px !important;
}

/* NOT - iyice daralt */
.subscriber-table th:nth-child(11),
.subscriber-table td:nth-child(11){
    width:65px !important;
    min-width:65px !important;
    max-width:65px !important;
    padding-left:4px !important;
    padding-right:4px !important;
}


/* USERS: CIHAZDAN AL -> KULLANICIYA VER */

/* KULLANICI */
.subscriber-table th:nth-child(2),
.subscriber-table td:nth-child(2){
    width:285px !important;
    min-width:285px !important;
    max-width:285px !important;
}

/* CIHAZ */
.subscriber-table th:nth-child(9),
.subscriber-table td:nth-child(9){
    width:70px !important;
    min-width:70px !important;
    max-width:70px !important;
    padding-left:2px !important;
    padding-right:2px !important;
    white-space:nowrap !important;
}


/* USER UZAT */
.cky-extend-button{
    color:#185abc !important;
    border-color:#7aa7ff !important;
    background:#f3f7ff !important;
}

.cky-extend-button:hover{
    background:#e5efff !important;
}

.cky-extend-menu{
    position:absolute;
    z-index:99999;
    width:145px;
    padding:5px 0;
    background:#fff;
    border:1px solid #ccd7e3;
    border-radius:5px;
    box-shadow:0 8px 22px rgba(0,0,0,.18);
}

.cky-extend-menu button{
    display:block;
    width:100%;
    height:34px;
    padding:0 12px;
    border:0;
    background:#fff;
    text-align:left;
    color:#24384d;
    cursor:pointer;
    font-size:12px;
}

.cky-extend-menu button:hover{
    background:#edf3f7;
}

/* M3U kalkınca işlemler tek satır */
.subscriber-actions{
    flex-wrap:nowrap !important;
    white-space:nowrap !important;
}


/* ===== USER UZAT POPUP FINAL ===== */

.cky-extend-popup{
    position:fixed !important;
    z-index:2147483647 !important;
    left:50% !important;
    top:50% !important;
    transform:translate(-50%,-50%) !important;

    width:230px !important;

    background:#fff !important;
    border:1px solid #cdd8e4 !important;
    border-radius:8px !important;

    box-shadow:0 14px 40px rgba(0,0,0,.28) !important;
    overflow:hidden !important;
}

.cky-extend-popup-head{
    height:42px;
    padding:0 12px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    border-bottom:1px solid #dce5ee;
    color:#263b50;
}

.cky-extend-popup-head button{
    border:0;
    background:transparent;
    font-size:20px;
    cursor:pointer;
    color:#718096;
}

.cky-extend-popup-body{
    padding:7px;
}

.cky-extend-popup-body button{
    display:block;
    width:100%;
    height:36px;

    margin:0;
    padding:0 12px;

    border:0;
    border-radius:4px;

    background:#fff;
    color:#263b50;

    text-align:left;
    cursor:pointer;
}

.cky-extend-popup-body button:hover{
    background:#edf3f7;
}


/* ===== UZAT POPUP MOBIL UYUM ===== */

.cky-extend-popup{
    width:min(280px, calc(100vw - 24px)) !important;
    max-height:calc(100dvh - 24px) !important;
    overflow-y:auto !important;
    overscroll-behavior:contain !important;
}

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

    .cky-extend-popup{
        width:calc(100vw - 28px) !important;
        max-width:300px !important;
        max-height:calc(100dvh - 20px) !important;
    }

    .cky-extend-popup-head{
        height:38px !important;
        min-height:38px !important;
        padding:0 10px !important;
    }

    .cky-extend-popup-body{
        padding:5px !important;
    }

    .cky-extend-popup-body button{
        height:34px !important;
        min-height:34px !important;
        margin-bottom:3px !important;
        padding:0 10px !important;
        font-size:13px !important;
    }
}

/* Çok kısa ekran / telefon yatay */
@media (max-height:520px){

    .cky-extend-popup{
        max-height:calc(100dvh - 12px) !important;
    }

    .cky-extend-popup-head{
        height:34px !important;
        min-height:34px !important;
    }

    .cky-extend-popup-body{
        padding:4px !important;
    }

    .cky-extend-popup-body button{
        height:30px !important;
        min-height:30px !important;
        margin-bottom:2px !important;
    }
}


/* UZAT PENCERESINI YUKARI AL */
@media (max-width:600px){
    .cky-extend-popup{
        top:38% !important;
    }
}

@media (max-height:520px){
    .cky-extend-popup{
        top:35% !important;
    }
}

/* UZAT POPUP - TELEFONDA EN UST */
@media (max-width:600px){
    .cky-extend-popup{
        top:8px !important;
        transform:translateX(-50%) !important;
    }
}

@media (max-height:520px){
    .cky-extend-popup{
        top:5px !important;
        transform:translateX(-50%) !important;
    }
}

/* ===== UZAT POPUP KESIN UST-ORTA ===== */

.cky-extend-popup{
    position:fixed !important;
    top:10px !important;
    left:50% !important;
    right:auto !important;
    bottom:auto !important;

    transform:translateX(-50%) !important;

    width:280px !important;
    max-width:calc(100vw - 20px) !important;
    max-height:calc(100vh - 20px) !important;

    margin:0 !important;

    overflow-y:auto !important;

    z-index:2147483647 !important;
}


/* ===== UZAT DIALOG BOYUTU ===== */

#cky-extend-dialog.cky-mobile-dialog{
    width:min(360px, calc(100vw - 24px)) !important;
    max-width:360px !important;
    min-width:0 !important;
}

#cky-extend-dialog .modal-card{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
}

#cky-extend-dialog .modal-body{
    padding:14px !important;
}

#cky-extend-dialog .form-grid{
    grid-template-columns:1fr !important;
    gap:10px !important;
}

#cky-extend-dialog select{
    width:100% !important;
    min-width:0 !important;
    height:38px !important;
}

/* TELEFON */
@media (max-width:600px){

    #cky-extend-dialog.cky-mobile-dialog{
        width:calc(100vw - 28px) !important;
        max-width:340px !important;
        min-width:0 !important;
        margin:auto !important;
    }

    #cky-extend-dialog .modal-header{
        min-height:42px !important;
        padding:0 12px !important;
    }

    #cky-extend-dialog .modal-header h2{
        font-size:16px !important;
    }

    #cky-extend-dialog .modal-body{
        padding:12px !important;
    }

    #cky-extend-dialog .modal-footer{
        padding:10px 12px !important;
        gap:8px !important;
    }
}


/* ===== UZAT DIALOG DAR + DIKEY ===== */

#cky-extend-dialog.cky-mobile-dialog{
    width:320px !important;
    min-width:320px !important;
    max-width:320px !important;

    height:auto !important;
    min-height:300px !important;
    max-height:430px !important;

    padding:0 !important;
    margin:auto !important;
}

#cky-extend-dialog .modal-card{
    width:320px !important;
    min-width:320px !important;
    max-width:320px !important;

    min-height:300px !important;

    display:flex !important;
    flex-direction:column !important;
}

#cky-extend-dialog .modal-header{
    flex:0 0 46px !important;
    padding:0 14px !important;
}

#cky-extend-dialog .modal-body{
    flex:1 1 auto !important;

    min-height:180px !important;

    padding:18px 14px !important;
}

#cky-extend-dialog .form-grid{
    display:block !important;
    width:100% !important;
}

#cky-extend-dialog .form-field{
    width:100% !important;
}

#cky-extend-dialog select{
    display:block !important;

    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;

    height:42px !important;
}

#cky-extend-dialog .modal-footer{
    flex:0 0 55px !important;

    padding:8px 14px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;

    gap:8px !important;
}


/* UZAT PENCERESI - SADECE GENISLIK */
#cky-extend-dialog.cky-mobile-dialog{
    width:160px !important;
    min-width:160px !important;
    max-width:160px !important;
}

#cky-extend-dialog .modal-card{
    width:160px !important;
    min-width:160px !important;
    max-width:160px !important;
}


/* ===== TELEFONDA ISLEMLER BUTONLARI SARILSIN ===== */

@media (max-width:700px){

    .subscriber-actions{
        display:flex !important;
        flex-wrap:wrap !important;
        white-space:normal !important;
        gap:4px !important;

        width:190px !important;
        min-width:190px !important;
        max-width:190px !important;
    }

    .subscriber-actions .table-action{
        flex:0 0 auto !important;
    }

    .subscriber-table th:last-child,
    .subscriber-table td:last-child{
        width:200px !important;
        min-width:200px !important;
        max-width:200px !important;
        overflow:visible !important;
    }
}


/* ===== USERS TELEFON ISLEMLER FINAL ===== */

@media (max-width:900px){

    /* Tablo taşanı kesmesin */
    .subscriber-list-card .table-wrap{
        overflow-x:auto !important;
        -webkit-overflow-scrolling:touch !important;
    }

    /* İşlemler sütunu */
    .subscriber-table th:last-child,
    .subscriber-table td:last-child{
        width:245px !important;
        min-width:245px !important;
        max-width:245px !important;
        overflow:visible !important;
    }

    /* Butonları hücre içinde 2-3 satıra sar */
    .subscriber-actions{
        display:flex !important;
        flex-direction:row !important;
        flex-wrap:wrap !important;
        align-items:center !important;
        justify-content:flex-start !important;

        width:235px !important;
        min-width:235px !important;
        max-width:235px !important;

        gap:4px !important;
        white-space:normal !important;
        overflow:visible !important;
    }

    .subscriber-actions .table-action{
        flex:0 0 auto !important;
        margin:0 !important;
        padding-left:7px !important;
        padding-right:7px !important;
    }
}


/* ===== USERS ISLEMLER - TELEFON/MASAUSTU GARANTI COZUM ===== */

/* Son kolon sabit kompakt alan */
.subscriber-table th:last-child,
.subscriber-table td:last-child{
    width:245px !important;
    min-width:245px !important;
    max-width:245px !important;
}

/* Butonlar TEK satır, hücre kendi içinde yatay kayar */
.subscriber-table td:last-child{
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    scrollbar-width:thin !important;
}

.subscriber-actions{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;

    justify-content:flex-start !important;
    align-items:center !important;

    width:max-content !important;
    min-width:max-content !important;
    max-width:none !important;

    gap:5px !important;
    white-space:nowrap !important;
}

/* Butonlar ezilmesin */
.subscriber-actions .table-action{
    flex:0 0 auto !important;
}

/* Ana tablo kesmesin */
.subscriber-list-card .table-wrap{
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch !important;
}


/* =========================================================
   CKYTV USERS - XTREAM TELEFON GORUNUMU
   ========================================================= */

/*
 * Masaüstünde hiçbir şeyi değiştirme.
 * Touch cihazda Users tablosu masaüstü ebatlarını korur.
 */

html.cky-touch-device .subscriber-list-card{
    width:1450px !important;
    min-width:1450px !important;
    max-width:1450px !important;

    transform:
        scale(var(--cky-users-mobile-scale, .55)) !important;

    transform-origin:
        top left !important;

    margin:0 !important;
}

/*
 * Transform sonrası sayfanın boş alanını telafi et.
 */
html.cky-touch-device #page-content:has(.subscriber-list-card){
    width:
        calc(
            1450px *
            var(--cky-users-mobile-scale, .55)
        ) !important;

    min-width:
        calc(
            1450px *
            var(--cky-users-mobile-scale, .55)
        ) !important;

    overflow:visible !important;
}

/* Ana tablo Xtream gibi masaüstü ölçülerinde kalsın */
html.cky-touch-device .subscriber-table{
    width:100% !important;
    min-width:100% !important;
    table-layout:fixed !important;
}

/* Önceki mobil wrap denemelerini KAPAT */
html.cky-touch-device .subscriber-actions{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;

    width:max-content !important;
    min-width:max-content !important;
    max-width:none !important;

    gap:5px !important;

    white-space:nowrap !important;
    overflow:visible !important;
}

/* Tüm işlem butonları aynı satır */
html.cky-touch-device
.subscriber-actions .table-action{
    flex:0 0 auto !important;
    min-height:28px !important;
}

/* İşlemler sütunu tam buton grubuna yetsin */
html.cky-touch-device
.subscriber-table th:last-child,
html.cky-touch-device
.subscriber-table td:last-child{
    width:390px !important;
    min-width:390px !important;
    max-width:390px !important;

    overflow:visible !important;
}

/* Tablo artık ayrıca yatay scroll üretmesin */
html.cky-touch-device
.subscriber-list-card .table-wrap{
    width:100% !important;
    overflow:visible !important;
}

/* Xtream benzeri kompakt satırlar */
html.cky-touch-device
.subscriber-table th{
    font-size:11px !important;
    padding-top:5px !important;
    padding-bottom:5px !important;
}

html.cky-touch-device
.subscriber-table td{
    font-size:11px !important;
    padding-top:4px !important;
    padding-bottom:4px !important;
}

/* Butonlar kompakt */
html.cky-touch-device
.subscriber-actions .table-action{
    padding-left:7px !important;
    padding-right:7px !important;
    height:27px !important;
    font-size:10px !important;
}


/* CKYTV LOGO - CHUCKY TAM BOY */
.cky-chucky-brand-icon{
    overflow:hidden !important;
    padding:2px !important;
    background:#000 !important;
}

.cky-chucky-brand-icon img{
    display:block !important;
    width:100% !important;
    height:100% !important;

    object-fit:contain !important;
    object-position:center center !important;

    border-radius:6px !important;
}


/* ===== CKYTV BRAND - KIRMIZI / ALTIN NEON ===== */

.cky-dashboard-brand > div:last-child{
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
}

/* CKYTV */
.cky-dashboard-brand strong{
    display:block !important;

    color:#e51414 !important;

    font-size:22px !important;
    font-weight:900 !important;
    line-height:1 !important;
    letter-spacing:1px !important;

    -webkit-text-stroke:0.7px #ffb000 !important;

    text-shadow:
        0 0 1px #fff3a0,
        0 0 2px #ffd000,
        0 0 4px #ff9800,
        1px 1px 0 #8d1600 !important;
}

/* CONTROL CENTER */
.cky-dashboard-brand span{
    display:block !important;

    margin-top:5px !important;

    color:#e51414 !important;

    font-size:9px !important;
    font-weight:900 !important;
    line-height:1 !important;
    letter-spacing:1.4px !important;

    -webkit-text-stroke:0.35px #ffb000 !important;

    text-shadow:
        0 0 1px #fff3a0,
        0 0 2px #ffd000,
        0 0 3px #ff9800 !important;
}

/* Eski hover rengini iptal et */
.cky-dashboard-brand:hover strong,
.cky-dashboard-brand:hover span{
    color:#e51414 !important;
}


/* ===== CKYTV BRAND FINAL OVERRIDE ===== */

#cky-dashboard-brand strong{
    color:#d71919 !important;
    -webkit-text-fill-color:#d71919 !important;
    -webkit-text-stroke:1px #ffb000 !important;

    font-size:22px !important;
    font-weight:900 !important;
    letter-spacing:1px !important;

    text-shadow:
        0 0 1px #fff6a0,
        0 0 2px #ffd400,
        0 0 4px #ff8a00,
        1px 1px 0 #7a1000 !important;
}

#cky-dashboard-brand span{
    color:#d71919 !important;
    -webkit-text-fill-color:#d71919 !important;
    -webkit-text-stroke:0.4px #ffb000 !important;

    font-size:9px !important;
    font-weight:900 !important;
    letter-spacing:1.3px !important;

    text-shadow:
        0 0 1px #fff6a0,
        0 0 2px #ffd400,
        0 0 3px #ff8a00 !important;
}

#cky-dashboard-brand:hover strong,
#cky-dashboard-brand:hover span{
    color:#d71919 !important;
    -webkit-text-fill-color:#d71919 !important;
}


/* ===== CHUCKY - SIYAH FON GORUNMESIN ===== */

#cky-dashboard-brand .cky-chucky-brand-icon{
    width:46px !important;
    height:50px !important;
    padding:0 !important;
    overflow:hidden !important;
    border-radius:0 !important;
    background:transparent !important;
}

#cky-dashboard-brand .cky-chucky-brand-icon img{
    display:block !important;

    width:100% !important;
    height:100% !important;

    object-fit:contain !important;
    object-position:center center !important;

    background:transparent !important;
    border-radius:0 !important;

    /* siyah alan panel arka planina karisir */
    mix-blend-mode:screen !important;
}


/* CHUCKY GERCEK SEFFAF PNG */
#cky-dashboard-brand .cky-chucky-brand-icon{
    background:transparent !important;
    overflow:visible !important;
    padding:0 !important;
}

#cky-dashboard-brand .cky-chucky-brand-icon img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    object-position:center !important;
    background:transparent !important;
    mix-blend-mode:normal !important;
    transform:none !important;
}


/* ===== CHUCKY SEFFAF PNG - KARAKTERI KUTUYA BUYUT ===== */

#cky-dashboard-brand .cky-chucky-brand-icon{
    width:48px !important;
    height:48px !important;
    padding:0 !important;
    overflow:hidden !important;
    background:transparent !important;
    border-radius:0 !important;
}

#cky-dashboard-brand .cky-chucky-brand-icon img{
    width:100% !important;
    height:100% !important;

    object-fit:contain !important;
    object-position:center center !important;

    background:transparent !important;

    transform:scale(1.55) translateY(1px) !important;
    transform-origin:center center !important;

    mix-blend-mode:normal !important;
    border-radius:0 !important;
}


/* =========================================================
   CKYTV UST MENU - AYRI KUTULAR
   ========================================================= */

.header .top-nav,
.header .main-nav,
.header nav{
    gap:3px !important;
}

/* Menü kutuları */
.header .top-nav > *,
.header .main-nav > *,
.header nav > *,
.top-nav-menu,
.top-nav-item,
.nav-item{
    border:1px solid rgba(255,255,255,.28) !important;
    border-radius:6px !important;
    margin-right:2px !important;
    overflow:hidden !important;
}

/* Keskin alt çizgileri yumuşat */
.header .top-nav > *::before,
.header .main-nav > *::before,
.header nav > *::before{
    border-radius:6px !important;
}

/* Hover */
.header .top-nav > *:hover,
.header .main-nav > *:hover,
.header nav > *:hover{
    border-color:rgba(255,255,255,.55) !important;
}

/* Aktif menü */
.header .top-nav > .active,
.header .main-nav > .active,
.header nav > .active{
    border-color:rgba(255,255,255,.65) !important;
    border-radius:6px !important;
}

/* Menü yazıları kutudan taşmasın */
.header .top-nav > *,
.header .main-nav > *,
.header nav > *{
    box-sizing:border-box !important;
}


/* ===== UST MENU - BELIRGIN CERCEVE ===== */

.header .top-nav > *,
.header .main-nav > *,
.header nav > *,
.top-nav-menu,
.top-nav-item,
.nav-item{
    border:2px solid rgba(255,255,255,.45) !important;
    border-radius:5px !important;
    margin-right:3px !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
}

/* Her kutunun iç sınırı */
.header .top-nav > *:hover,
.header .main-nav > *:hover,
.header nav > *:hover{
    border-color:rgba(255,255,255,.75) !important;
    border-radius:5px !important;
}

/* Aktif kutu */
.header .top-nav > .active,
.header .main-nav > .active,
.header nav > .active{
    border:2px solid rgba(255,255,255,.85) !important;
    border-radius:5px !important;
}

/* Menü kutuları arasında net boşluk */
.header .top-nav,
.header .main-nav,
.header nav{
    gap:3px !important;
}


/* ===== SAYFA BASLIGI - ULTRA COMPACT ===== */

.page-header,
.content-header,
.section-header,
.module-header{
    min-height:0 !important;
    height:auto !important;
    padding:8px 12px !important;
    margin:0 !important;
    border-width:1px !important;
    border-radius:4px !important;
}

.page-header h1,
.content-header h1,
.section-header h1,
.module-header h1{
    margin:0 !important;
    font-size:19px !important;
    line-height:22px !important;
}

.page-header p,
.content-header p,
.section-header p,
.module-header p{
    margin:2px 0 0 !important;
    line-height:15px !important;
    font-size:11px !important;
}

.page-header button,
.content-header button,
.section-header button,
.module-header button{
    height:34px !important;
    min-height:34px !important;
}

/* Kullanıcılar / cihaz sayfalarındaki beyaz başlık alanı */
.cky-page-header,
.cky-module-header{
    padding:8px 12px !important;
    min-height:0 !important;
    height:auto !important;
    border-bottom:1px solid #dbe2e8 !important;
}

.cky-page-header h1,
.cky-module-header h1{
    margin:0 !important;
    line-height:22px !important;
}

.cky-page-header p,
.cky-module-header p{
    margin:1px 0 0 !important;
    line-height:14px !important;
}


/* =========================================================
   CKYTV USER PAGINATION - TABLO USTU / ORTALI / KOMPAKT
   ========================================================= */

#subscriber-pagination{
    width:100% !important;
    min-height:44px !important;
    height:44px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    margin:0 !important;
    padding:4px 0 !important;

    border:0 !important;
    background:transparent !important;
    box-sizing:border-box !important;

    position:relative !important;
}

#subscriber-pagination .cky-user-pagination{
    width:auto !important;
    min-height:36px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    gap:8px !important;
    margin:0 auto !important;
    padding:0 !important;

    border:0 !important;
    background:transparent !important;
}

#subscriber-pagination .cky-user-page-size,
#subscriber-pagination .cky-user-page-buttons,
#subscriber-pagination .cky-user-page-info{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:5px !important;
    margin:0 !important;
}

#subscriber-pagination .cky-user-page-size span,
#subscriber-pagination .cky-user-page-info{
    font-size:11px !important;
    color:#60758d !important;
}

#subscriber-pagination select{
    height:32px !important;
    min-width:70px !important;
    padding:0 8px !important;
    border:1px solid #cbd8e5 !important;
    border-radius:5px !important;
    background:#fff !important;
    font-size:12px !important;
}

#subscriber-pagination .cky-user-page-button{
    width:37px !important;
    height:36px !important;
    min-width:37px !important;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    padding:0 !important;
    margin:0 !important;

    border:1px solid #cbd8e5 !important;
    border-radius:5px !important;
    background:#fff !important;
    color:#38516b !important;

    font-size:13px !important;
    cursor:pointer !important;
}

#subscriber-pagination .cky-user-page-button.active{
    background:#4385df !important;
    border-color:#4385df !important;
    color:#fff !important;
}

#subscriber-pagination .cky-user-page-button:disabled{
    opacity:.45 !important;
    cursor:default !important;
}

#subscriber-pagination .cky-user-page-dots{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:20px !important;
    height:36px !important;
    color:#71849a !important;
}

/* Eski alttaki boşluk/çerçeve etkisini azalt */
#subscriber-pagination + *{
    margin-top:0 !important;
}

@media(max-width:900px){
    #subscriber-pagination{
        height:auto !important;
        min-height:44px !important;
        overflow-x:auto !important;
    }

    #subscriber-pagination .cky-user-pagination{
        flex-wrap:nowrap !important;
        white-space:nowrap !important;
    }
}


/* Kullanıcı adı -> Edit */
.subscriber-username-link{
    cursor:pointer !important;
    color:#168fa3 !important;
    text-decoration:none !important;
    transition:all .15s ease;
}

.subscriber-username-link:hover{
    color:#007c8f !important;
    text-decoration:underline !important;
}

