/* ============================================================
   ئورتاق كۆرۈنۈش ئۇسلۇبى (UI Kit)
   بارلىق بەتلەر مۇشۇ ھۆججەتنى ئىشلىتىدۇ.
   بۇ ھۆججەتتە ھېچقانداق emoji ئىشلىتىلمىگەن.
   ============================================================ */

@font-face {
    font-family: 'UKIJ Ekran';
    src: url('https://asar.yarkin.top/font/UKIJEkran.ttf') format('truetype');
    font-display: swap;
}

:root {
    --brand: #07c160;
    --brand-dark: #06ad56;
    --brand-deep: #049b47;
    --brand-light: #e8f8ee;
    --brand-soft: #f2fbf6;

    --ink: #16181d;
    --text: #1f2329;
    --muted: #8a8f99;
    --faint: #b8bdc4;
    --line: #e8eaed;
    --line-strong: #d8dce2;

    --bg: #f4f6f9;
    --card: #ffffff;

    --danger: #e34d59;
    --danger-dark: #c9333f;
    --danger-light: #fff2f0;
    --warn: #f59e0b;
    --warn-dark: #b45309;
    --warn-light: #fffbeb;
    --info: #3b82f6;
    --info-light: #eff6ff;
    --violet: #7c5cf0;
    --violet-light: #f3f0ff;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;

    --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.06);
    --shadow: 0 6px 20px rgba(16, 24, 40, 0.07);
    --shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.12);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: "UKIJ Ekran", -apple-system, "Segoe UI", "Microsoft YaHei", "Noto Naskh Arabic", sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    direction: rtl;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.45;
    font-weight: 700;
    color: var(--ink);
}

p {
    margin: 0;
}

a {
    color: var(--brand-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
}

code,
.mono,
input.mono,
.url-value,
.wxv-value {
    font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace;
    direction: ltr;
    unicode-bidi: embed;
}

/* ============================================================
   ئاساسىي قۇرۇلما
   ============================================================ */

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 20px 80px;
}

.container.narrow {
    max-width: 820px;
}

.container.tiny {
    max-width: 520px;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.page-head h1 {
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-head h1 i {
    color: var(--brand);
    font-size: 24px;
}

.page-head .subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

/* ============================================================
   ئۈستى بالداق
   ============================================================ */

.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ink);
}

.topbar-brand i,
.topbar-brand .logo i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: #fff;
    font-size: 19px;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.28);
    flex-shrink: 0;
}

.topbar-brand .logo {
    display: inline-flex;
}

.topbar-brand.violet i {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 4px 12px rgba(124, 92, 240, 0.3);
}

.topbar-user,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 14px 5px 6px;
    background: #f5f7fa;
    border: 1px solid var(--line);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.btn-logout,
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s var(--ease);
}

.btn-logout:hover,
.btn-back:hover {
    color: var(--brand-dark);
    border-color: var(--brand);
    background: var(--brand-soft);
}

.btn-logout:hover {
    color: var(--danger);
    border-color: #ffd6d0;
    background: var(--danger-light);
}

/* ============================================================
   كۇنۇپكىلار
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    text-decoration: none;
    background: #eef1f5;
    color: var(--text);
    line-height: 1.4;
}

.btn i {
    font-size: 17px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 5px 16px rgba(7, 193, 96, 0.32);
}

.btn-primary:hover {
    box-shadow: 0 9px 22px rgba(7, 193, 96, 0.4);
}

.btn-default {
    background: #f0f2f5;
    color: var(--text);
}

.btn-default:hover {
    background: #e5e8ec;
}

.btn-danger {
    background: #fff;
    color: var(--danger);
    border: 1px solid #ffd6d0;
}

.btn-danger:hover {
    background: var(--danger-light);
}

.btn-danger-solid {
    background: linear-gradient(135deg, #e34d59, #c9333f);
    color: #fff;
    box-shadow: 0 5px 16px rgba(227, 77, 89, 0.3);
}

.btn-violet {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    box-shadow: 0 5px 16px rgba(124, 92, 240, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--line);
}

.btn-ghost:hover {
    color: var(--brand-dark);
    border-color: var(--brand);
    background: var(--brand-soft);
}

.btn-dashed {
    background: #fafbfc;
    color: var(--muted);
    border: 2px dashed var(--line-strong);
    width: 100%;
    padding: 15px;
}

.btn-dashed:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
    color: var(--brand-dark);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 12.5px;
    border-radius: 9px;
}

.btn-sm i {
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

.btn-add,
.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 11px;
    border: none;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(7, 193, 96, 0.3);
    transition: all 0.2s var(--ease);
}

.btn-add:hover,
.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 22px rgba(7, 193, 96, 0.4);
}

.btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-row .btn {
    flex: 1;
    min-width: 140px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.15s var(--ease);
}

.icon-btn:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.icon-btn.danger:hover {
    background: var(--danger);
    border-color: var(--danger);
}

.icon-btn:disabled {
    opacity: 0.32;
    cursor: not-allowed;
    pointer-events: none;
}

.action-btn {
    flex: 1;
    min-width: 110px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 9px;
    border: 1.5px solid #b7e6c9;
    background: #fff;
    color: #067a3e;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s var(--ease);
    white-space: nowrap;
}

.action-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.action-btn.play {
    background: var(--violet);
    border-color: var(--violet);
    color: #fff;
}

.action-btn.play:hover {
    background: #6d28d9;
}

.action-btn.copy {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.action-btn.copy:hover {
    background: var(--brand-dark);
}

.action-btn.copied,
.copy-btn.copied,
.wxv-btn.copied {
    background: var(--ink) !important;
    border-color: var(--ink) !important;
    color: #fff !important;
}

.action-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ============================================================
   كارتا ۋە بۆلەكلەر
   ============================================================ */

.card,
.section,
.editor-panel,
.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card {
    padding: 22px;
    margin-bottom: 18px;
}

.editor-panel,
.panel {
    padding: 22px;
    margin-bottom: 18px;
}

.card.flat {
    box-shadow: none;
}

.card h1,
.card h2 {
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 6px;
}

.card h1 i,
.card h2 i {
    color: var(--brand);
    font-size: 20px;
}

.card .desc {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
    line-height: 1.8;
}

.card-hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 60%, var(--brand-deep) 100%);
    color: #fff;
    padding: 26px 28px;
    border-radius: var(--radius) var(--radius) 0 0;
    position: relative;
    overflow: hidden;
}

.card-hero.violet {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.card-hero::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -10%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
}

.card-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.28);
    flex-shrink: 0;
}

.card-hero h1 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 2px;
}

.card-hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
}

.section {
    overflow: hidden;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #fafbfc, #f2f5f8);
    border-bottom: 1px solid var(--line);
}

.section-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(7, 193, 96, 0.28);
}

.section-title {
    flex: 1;
    min-width: 0;
}

.section-title h2 {
    font-size: 15.5px;
    margin-bottom: 2px;
}

.section-title .desc {
    font-size: 12.5px;
    color: var(--muted);
}

.section-body {
    padding: 22px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.panel-header h2 {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-header h2 i {
    color: var(--brand);
    font-size: 19px;
}

.counter {
    font-size: 12px;
    color: var(--muted);
    background: #f0f2f5;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.counter.warn {
    background: var(--danger-light);
    color: var(--danger);
}

/* ============================================================
   فورم
   ============================================================ */

.form-group,
.form-row {
    margin-bottom: 18px;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 7px;
}

label .req,
.form-label .req {
    color: var(--danger);
}

label .hint,
.form-label .optional {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--muted);
}

.form-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 9px;
}

.form-label i {
    color: var(--brand);
    font-size: 16px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fafbfc;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

select {
    cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(7, 193, 96, 0.12);
}

input::placeholder,
textarea::placeholder {
    color: var(--faint);
}

.input-wrap {
    position: relative;
}

.input-wrap input,
.input-wrap select {
    padding-left: 46px;
    padding-right: 46px;
}

.input-wrap .ico,
.input-wrap i.ico {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 18px;
    pointer-events: none;
}

.input-wrap .select-arrow {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 18px;
    pointer-events: none;
}

.input-wrap input:focus ~ .ico {
    color: var(--brand);
}

.form-hint {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.75;
}

.form-hint i {
    color: var(--brand);
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-hint b {
    color: var(--text);
}

.check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    padding: 11px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fafbfc;
    transition: all 0.2s var(--ease);
}

.check-row:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.check-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
    margin: 0;
}

.type-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.type-option {
    position: relative;
    cursor: pointer;
}

.type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.type-option .box {
    padding: 14px 12px;
    border: 2px solid var(--line);
    border-radius: 12px;
    text-align: center;
    background: #fafbfc;
    transition: all 0.2s var(--ease);
}

.type-option .box i {
    display: block;
    font-size: 22px;
    color: var(--muted);
    margin-bottom: 6px;
}

.type-option .box .name {
    font-size: 13px;
    font-weight: 700;
}

.type-option .box .desc {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.type-option input:checked + .box {
    border-color: var(--brand);
    background: var(--brand-light);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.16);
    transform: translateY(-2px);
}

.type-option input:checked + .box i,
.type-option input:checked + .box .name {
    color: var(--brand-dark);
}

.switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch .track {
    position: relative;
    width: 48px;
    height: 27px;
    border-radius: 14px;
    background: #d8dce2;
    transition: background 0.2s var(--ease);
    flex-shrink: 0;
}

.switch .track::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s var(--ease);
}

.switch input:checked + .track {
    background: var(--brand);
}

.switch input:checked + .track::after {
    transform: translateX(-21px);
}

/* ============================================================
   ئۇچۇر، خاتالىق، بەلگە
   ============================================================ */

.alert,
.message,
.error {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    line-height: 1.75;
    margin-bottom: 18px;
}

.alert i,
.message i,
.error i {
    font-size: 19px;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert.error,
.error {
    background: var(--danger-light);
    color: #9b1c1c;
    border: 1px solid #ffd6d0;
    border-right: 4px solid var(--danger);
}

.alert.error i,
.error i {
    color: var(--danger);
}

.alert.success,
.message.success {
    background: var(--brand-light);
    color: #067a3e;
    border: 1px solid #b7e6c9;
    border-right: 4px solid var(--brand);
}

.alert.success i,
.message.success i {
    color: var(--brand);
}

.alert.info,
.message.info {
    background: var(--info-light);
    color: #1d4ed8;
    border: 1px solid #cfe0ff;
    border-right: 4px solid var(--info);
}

.alert.info i,
.message.info i {
    color: var(--info);
}

.alert.warn,
.message.warn {
    background: var(--warn-light);
    color: #92400e;
    border: 1px solid #fde68a;
    border-right: 4px solid var(--warn);
}

.alert strong,
.message strong {
    font-weight: 700;
}

.error-list {
    margin-top: 10px;
    padding: 10px 13px;
    background: #fff;
    border: 1px solid #ffd6d0;
    border-radius: 8px;
    font-size: 12.5px;
    max-height: 140px;
    overflow-y: auto;
}

.error-list div {
    padding: 2px 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 8px;
    background: #f0f2f5;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.badge.success {
    background: var(--brand-light);
    color: var(--brand-dark);
}

.badge.warn {
    background: var(--warn-light);
    color: var(--warn-dark);
}

.badge.danger {
    background: var(--danger-light);
    color: var(--danger);
}

.badge.info {
    background: var(--info-light);
    color: #1d4ed8;
}

.badge.violet {
    background: var(--violet-light);
    color: #6d28d9;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted);
}

.dot.on {
    background: var(--brand);
}

.dot.off {
    background: var(--faint);
}

/* ============================================================
   سالۇن تاللاش ۋە قورال بالداق
   ============================================================ */

.acc-selector,
.account-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    margin-bottom: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}

.acc-selector label,
.account-selector label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}

.acc-selector label i,
.account-selector label i {
    color: var(--brand);
    font-size: 17px;
}

.acc-selector select,
.account-selector select {
    flex: 1;
    min-width: 200px;
    background: #fafbfc;
    font-weight: 600;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.toolbar .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--muted);
    font-weight: 600;
}

.toolbar .stat i {
    color: var(--brand);
    font-size: 18px;
}

.toolbar .stat b {
    color: var(--ink);
    font-size: 15px;
}

.toolbar .stat.violet i {
    color: var(--violet);
}

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

.type-tabs,
.tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-xs);
    flex-wrap: wrap;
}

.type-tab,
.tab {
    flex: 1;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    background: transparent;
    border: none;
    font-family: inherit;
    text-decoration: none;
}

.type-tab:hover,
.tab:hover {
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.type-tab.active,
.tab.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.28);
}

.type-tab i,
.tab i {
    font-size: 17px;
}

/* ============================================================
   كۆرۈنمە يۈز: سالۇن كارتىلىرى
   ============================================================ */

.hero {
    position: relative;
    overflow: hidden;
    padding: 32px 30px;
    margin-bottom: 26px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 55%, var(--brand-deep) 100%);
    color: #fff;
    box-shadow: 0 14px 36px rgba(7, 193, 96, 0.24);
}

/* ئىخچام قورال بالدىقى (باش بەت) */
.quick-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 18px;
    margin-bottom: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow-xs);
}

.quick-crumbs {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

.quick-crumbs b {
    color: var(--ink);
    font-size: 15px;
}

.quick-crumbs .sep {
    width: 1px;
    height: 16px;
    background: var(--line-strong);
}

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

.hero::after {
    content: '';
    position: absolute;
    top: -45%;
    left: -8%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.hero h1 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 6px;
}

.hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13.5px;
    max-width: 560px;
    line-height: 1.85;
}

.hero-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-stat {
    min-width: 104px;
    padding: 14px 20px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
}

.hero-stat .num {
    font-size: 25px;
    font-weight: 700;
    line-height: 1.1;
}

.hero-stat .label {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 2px;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
}

.account-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.28s var(--ease);
}

.account-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(7, 193, 96, 0.32);
}

.account-card.is-default {
    border-color: rgba(7, 193, 96, 0.42);
    background: linear-gradient(135deg, #ffffff 0%, #f8fdfa 100%);
}

.account-card.is-default::after {
    content: 'ئاساسىي';
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 3px 11px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(7, 193, 96, 0.3);
}

.acc-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 14px;
}

.acc-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    background: linear-gradient(135deg, var(--brand-light), #d1f0dc);
    color: var(--brand-dark);
    flex-shrink: 0;
}

.acc-info {
    flex: 1;
    min-width: 0;
}

.acc-name {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 5px;
}

.acc-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.acc-appid {
    padding: 9px 12px;
    margin-bottom: 14px;
    background: #f7f8fa;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: ui-monospace, monospace;
    font-size: 11.5px;
    color: var(--muted);
    direction: ltr;
    text-align: left;
    word-break: break-all;
}

.acc-appid b {
    color: var(--text);
}

.acc-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.feature-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 13px;
    background: #fafbfc;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s var(--ease);
}

.feature-btn:hover {
    background: var(--brand-light);
    border-color: var(--brand);
    color: var(--brand-dark);
    transform: translateX(-2px);
}

.feature-btn i {
    font-size: 17px;
    color: var(--brand);
    flex-shrink: 0;
}

.feature-btn.violet {
    background: linear-gradient(135deg, #f5f2ff, #ece7ff);
    border-color: #ddd4ff;
}

.feature-btn.violet i {
    color: var(--violet);
}

.feature-btn.violet:hover {
    background: linear-gradient(135deg, #ece7ff, #ddd4ff);
    border-color: var(--violet);
    color: #5b21b6;
}

.feature-btn.span-2 {
    grid-column: span 2;
}

.feature-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.acc-actions {
    display: flex;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

/* ============================================================
   تور كۆرۈنۈشى: رەسىم، سىن، ئاۋاز
   ============================================================ */

.grid,
.voice-grid,
.video-grid {
    display: grid;
    gap: 18px;
}

.grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* رەسىم كارتىسى: رەسىم گىرىدىڭ ئىچىگە يېتىشىۋالىدۇ */
.grid .card {
    padding: 0;
    margin-bottom: 0;
}

.voice-grid {
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}

.video-grid {
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}

.card-media,
.video-cover {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f2f5, #e4e8ee);
}

.card-media {
    height: 190px;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--ease);
}

.card:hover .card-media img {
    transform: scale(1.05);
}

.card-media .index-badge,
.video-cover .index-badge,
.voice-header .voice-index {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.card-media .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.card:hover .card-media .overlay {
    opacity: 1;
}

.card-media .overlay a {
    margin-right: auto;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-body,
.video-body,
.voice-body {
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1;
}

.card-body {
    padding: 14px;
}

.video-body,
.voice-body {
    padding: 16px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-title i {
    color: var(--brand);
    font-size: 15px;
}

.card,
.voice-card,
.video-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.28s var(--ease);
}

.voice-card:hover,
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(7, 193, 96, 0.3);
}

.voice-card.selected,
.video-card.selected,
.card.selected {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.16);
}

.select-box {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-xs);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
}

.select-box input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--brand);
}

.voice-header {
    position: relative;
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.voice-mic {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.32);
}

.voice-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 38px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    padding: 0 20px 9px;
}

.voice-wave span {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.5);
    animation: uiWave 1.2s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.voice-wave span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.voice-wave span:nth-child(3) { height: 24px; animation-delay: 0.2s; }
.voice-wave span:nth-child(4) { height: 14px; animation-delay: 0.3s; }
.voice-wave span:nth-child(5) { height: 22px; animation-delay: 0.4s; }
.voice-wave span:nth-child(6) { height: 10px; animation-delay: 0.5s; }
.voice-wave span:nth-child(7) { height: 18px; animation-delay: 0.6s; }
.voice-wave span:nth-child(8) { height: 26px; animation-delay: 0.7s; }

@keyframes uiWave {
    0%, 100% { transform: scaleY(1); opacity: 0.5; }
    50% { transform: scaleY(1.5); opacity: 1; }
}

.voice-title,
.video-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 43px;
}

.voice-meta,
.video-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 9px;
    border-top: 1px solid var(--line);
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 600;
}

.voice-meta span,
.video-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.voice-meta i,
.video-meta i {
    color: var(--violet);
    font-size: 13px;
}

.video-meta i {
    color: var(--brand);
}

.video-cover {
    height: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--ease);
}

.video-card:hover .video-cover img {
    transform: scale(1.05);
}

.video-cover .placeholder {
    font-size: 58px;
    color: #c9cdd4;
}

.video-cover .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
    opacity: 0.85;
    transition: opacity 0.2s var(--ease);
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-cover .duration {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    direction: ltr;
    backdrop-filter: blur(4px);
}

.url-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 11px 13px;
    background: #f7f8fa;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.url-box .url-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--violet);
    text-transform: uppercase;
}

.url-box .url-label i {
    font-size: 14px;
}

.url-value,
.wxv-value {
    position: relative;
    padding: 9px 12px 9px 38px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.6;
    color: #5a6068;
    text-align: left;
    word-break: break-all;
    cursor: pointer;
    max-height: 64px;
    overflow-y: auto;
    transition: all 0.2s var(--ease);
}

.url-value:hover,
.wxv-value:hover {
    background: var(--brand-soft);
    border-color: var(--brand);
}

.url-value .copy-ico,
.wxv-value .copy-ico {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 23px;
    height: 23px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: var(--brand-light);
    color: var(--brand-dark);
    transition: all 0.2s var(--ease);
}

.url-value:hover .copy-ico,
.wxv-value:hover .copy-ico {
    background: var(--brand);
    color: #fff;
}

.url-value.copied,
.wxv-value.copied {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.wxv-box {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 12px 14px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--brand-light), #d1f0dc);
    border: 1.5px solid #b7e6c9;
}

.wxv-box .label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #067a3e;
    text-transform: uppercase;
}

.wxv-box .wxv-value {
    background: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    font-weight: 700;
    color: #045a2b;
}

.wxv-box.warn {
    background: linear-gradient(135deg, #fff8e6, #fef3c7);
    border-color: #ffe4a3;
}

.wxv-box.warn .label,
.wxv-box.warn .wxv-value {
    color: var(--warn-dark);
}

.wxv-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ئاۋاز ئادرېس نامزاتلىرى */
.candidate-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 11px 13px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fafbfc;
}

.candidate-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--muted);
}

.candidate-row {
    display: flex;
    align-items: stretch;
    gap: 7px;
}

.candidate-url {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    direction: ltr;
    text-align: left;
    font-size: 10.5px;
    line-height: 1.55;
    color: #5a6068;
    word-break: break-all;
    cursor: pointer;
}

.candidate-url:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.candidate-label {
    display: block;
    margin-top: 4px;
    font-family: "UKIJ Ekran", -apple-system, sans-serif;
    direction: rtl;
    text-align: right;
    font-size: 10.5px;
    color: var(--muted);
}

.candidate-row .wxv-btn {
    flex: 0 0 auto;
    min-width: 86px;
}

/* ============================================================
   تۈركۈملەپ يۈكلەش تىزىملىكى
   ============================================================ */

.upload-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 14px;
}

.upload-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    transition: all 0.2s var(--ease);
}

.upload-row:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-xs);
}

.upload-row.is-done {
    border-color: #b7e6c9;
    background: var(--brand-soft);
}

.upload-row.is-error {
    border-color: #ffd6d0;
    background: var(--danger-light);
}

.upload-row.is-uploading {
    border-color: #cfe0ff;
    background: var(--info-light);
}

.upload-thumb {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    overflow: hidden;
    background: #eef1f5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.upload-thumb i {
    font-size: 20px;
    color: var(--violet);
}

.upload-main {
    flex: 1;
    min-width: 0;
}

.upload-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
}

.upload-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--muted);
}

.upload-bar {
    height: 4px;
    margin-top: 5px;
    border-radius: 3px;
    background: #e8eaed;
    overflow: hidden;
}

.upload-bar div {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--info), var(--brand));
    transition: width 0.2s linear;
}

.upload-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.upload-actions .icon-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
}

.upload-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.upload-stat {
    flex: 1;
    min-width: 96px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #fafbfc;
    text-align: center;
}

.upload-stat .num {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}

.upload-stat .label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}

.upload-stat.ok {
    background: var(--brand-soft);
    border-color: #b7e6c9;
}

.upload-stat.ok .num {
    color: var(--brand-dark);
}

.upload-stat.bad {
    background: var(--danger-light);
    border-color: #ffd6d0;
}

.upload-stat.bad .num {
    color: var(--danger);
}

@media (max-width: 700px) {
    .upload-row {
        flex-wrap: wrap;
    }
    .upload-thumb {
        width: 48px;
        height: 48px;
    }
    .upload-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

.wxv-btn {
    flex: 1;
    min-width: 108px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 10px;
    border-radius: 9px;
    border: 1px solid #b7e6c9;
    background: #fff;
    color: var(--brand-dark);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s var(--ease);
}

.wxv-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.copy-btn,
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s var(--ease);
}

.copy-btn {
    flex: 1;
    border: none;
    background: var(--brand);
    color: #fff;
}

.copy-btn:hover {
    background: var(--brand-dark);
}

.download-btn {
    border: 1.5px solid var(--brand);
    background: #fff;
    color: var(--brand-dark);
}

.download-btn:hover {
    background: var(--brand);
    color: #fff;
}

/* ============================================================
   بوش ھالەت
   ============================================================ */

.empty,
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 28px;
    background: var(--card);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--muted);
}

.empty .ico,
.empty-state .ico {
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #c9cdd4;
    background: linear-gradient(135deg, #f2f4f7, #e6eaf0);
}

.empty h3,
.empty-state h2 {
    font-size: 17px;
    color: var(--ink);
    margin-bottom: 6px;
}

.empty p,
.empty-state p {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ئاككوردىيون ئىچىدىكى بوش بەلگە (autoreply.php) */
.accordion-title .empty,
.accordion-preview .empty {
    display: inline;
    grid-column: auto;
    padding: 0;
    border: none;
    background: none;
    text-align: right;
    color: var(--muted);
    font-weight: 400;
    font-style: italic;
}

/* ============================================================
   بەت نومۇرى
   ============================================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s var(--ease);
}

.pagination a:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: translateY(-1px);
}

.pagination .active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.pagination .disabled {
    opacity: 0.35;
    pointer-events: none;
}

.pagination .dots {
    border: none;
    background: transparent;
    color: var(--muted);
}

/* ============================================================
   ئۇچۇر قۇتىسى (Toast)
   ============================================================ */

.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 90vw;
    padding: 13px 24px;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
    opacity: 0;
    z-index: 9999;
    transition: all 0.3s var(--ease);
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast i {
    font-size: 19px;
}

.toast.success i {
    color: #57e08a;
}

.toast.error {
    background: #9b1c1c;
}

.toast.error i {
    color: #ffb4b4;
}

.toast span {
    word-break: break-all;
}

/* ============================================================
   ئايرىم كۆزنەك
   ============================================================ */

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 14, 22, 0.55);
    backdrop-filter: blur(6px);
    z-index: 9000;
}

.modal.show {
    display: flex;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 28px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-content h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.modal-content .sub {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
}

.modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f0f2f5;
    color: var(--muted);
    font-size: 17px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* ============================================================
   كىرىش / تىزىملىتىش بەتلىرى
   ============================================================ */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 26px 18px;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(7, 193, 96, 0.28), transparent 60%),
        radial-gradient(900px 500px at 5% 110%, rgba(124, 92, 240, 0.22), transparent 60%),
        linear-gradient(135deg, #0f2419 0%, #123222 45%, #0d1f18 100%);
}

.auth-page.violet {
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(124, 92, 240, 0.3), transparent 60%),
        radial-gradient(900px 500px at 5% 110%, rgba(7, 193, 96, 0.2), transparent 60%),
        linear-gradient(135deg, #161327 0%, #1d1836 45%, #12101f 100%);
}

.auth-card {
    width: 100%;
    max-width: 430px;
    padding: 34px 30px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.auth-card.wide {
    max-width: 520px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 24px;
}

.auth-brand .mark {
    width: 62px;
    height: 62px;
    margin: 0 auto 13px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    box-shadow: 0 10px 24px rgba(7, 193, 96, 0.35);
}

.auth-brand.violet .mark {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 10px 24px rgba(124, 92, 240, 0.4);
}

.auth-brand h1 {
    font-size: 20px;
    margin-bottom: 4px;
}

.auth-brand p {
    font-size: 13px;
    color: var(--muted);
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.auth-footer a {
    color: var(--brand-dark);
    font-weight: 700;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--muted);
}

/* ============================================================
   قەدەم كۆرسىتىش (قاچىلاش بەتى)
   ============================================================ */

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.step {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border-radius: 26px;
    border: 1.5px solid var(--line);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    transition: all 0.2s var(--ease);
}

.step .num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: #f0f2f5;
    color: var(--muted);
    flex-shrink: 0;
}

.step.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 5px 14px rgba(7, 193, 96, 0.3);
}

.step.active .num {
    background: rgba(255, 255, 255, 0.26);
    color: #fff;
}

.step.done {
    border-color: #b7e6c9;
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.step.done .num {
    background: var(--brand);
    color: #fff;
}

.step-line {
    width: 34px;
    height: 2px;
    border-radius: 2px;
    background: var(--line-strong);
}

.step-line.active {
    background: var(--brand);
}

/* ============================================================
   IP ئاگاھلاندۇرۇش ۋە ئۇچۇر قۇتىلىرى
   ============================================================ */

.ip-notice,
.ip-warning {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
}

.ip-notice .ico,
.ip-warning .ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: var(--warn-dark);
    background: #fff;
    flex-shrink: 0;
}

.ip-notice .txt,
.ip-warning .txt {
    flex: 1;
    min-width: 0;
}

.ip-notice h3,
.ip-warning h3 {
    font-size: 14px;
    color: #92400e;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ip-notice p,
.ip-warning p {
    font-size: 12.8px;
    color: #a16207;
    line-height: 1.8;
}

.ip-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid #fde68a;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.ip-box code {
    font-size: 13.5px;
    font-weight: 700;
    color: #c2410c;
}

.ip-box i {
    color: var(--warn-dark);
    font-size: 17px;
}

.ip-box:hover {
    border-color: var(--warn);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.ip-box.copied {
    border-color: var(--brand);
    background: var(--brand-light);
}

.ip-box.copied code {
    color: var(--brand-dark);
}

.info-note,
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    font-size: 12.8px;
    line-height: 1.75;
    background: var(--info-light);
    border: 1px solid #cfe0ff;
    color: #1d4ed8;
}

.info-box {
    font-family: ui-monospace, monospace;
    direction: ltr;
    text-align: left;
    word-break: break-all;
    background: #f7f8fa;
    border: 1px solid var(--line);
    color: var(--muted);
}

.info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    background: #f7f8fa;
    font-size: 12.5px;
    color: var(--muted);
}

.info-bar .label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-bar .label i {
    color: var(--brand);
    font-size: 16px;
}

.info-bar .limit {
    padding: 4px 11px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 700;
}

.help-box {
    margin-top: 6px;
    padding: 20px 22px;
    border-radius: var(--radius);
    background: #f7f8fa;
    border: 1px solid var(--line);
}

.help-box h3 {
    font-size: 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-box h3 i {
    color: var(--brand);
    font-size: 18px;
}

.help-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.help-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
}

.help-list li .num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    background: var(--brand-light);
    color: var(--brand-dark);
    flex-shrink: 0;
    margin-top: 3px;
}

.help-list li b {
    color: var(--text);
}

/* ============================================================
   يۈكلەش بېتى
   ============================================================ */

.upload-area {
    position: relative;
    display: block;
    padding: 40px 20px;
    text-align: center;
    border: 2px dashed var(--line-strong);
    border-radius: var(--radius);
    background: #fafbfc;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.upload-area.dragover {
    transform: scale(1.01);
}

.upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-area .icon {
    display: block;
    margin-bottom: 12px;
    font-size: 52px;
    color: var(--brand);
}

.upload-area .title {
    font-size: 15.5px;
    font-weight: 700;
    margin-bottom: 6px;
}

.upload-area .hint {
    font-size: 12.8px;
    color: var(--muted);
}

.preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #eef1f5;
}

.preview-item img,
.preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-item .file-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: var(--brand-dark);
    background: linear-gradient(135deg, var(--brand-light), #d1f0dc);
}

.preview-item .remove {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.preview-item .remove:hover {
    background: var(--danger);
}

.preview-item .name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px 7px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 10px;
    direction: ltr;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   تىزىملىك تەھرىرلىگۈچ (menu.php)
   ============================================================ */

.layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    align-items: start;
}

.phone-sticky {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.phone {
    position: relative;
    width: 336px;
    height: 650px;
    padding: 12px;
    border-radius: 42px;
    background: #1a1a1a;
    box-shadow: var(--shadow-lg), 0 0 0 2px #2a2a2a;
}

.phone::before {
    content: '';
    position: absolute;
    top: 19px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 6px;
    border-radius: 3px;
    background: #000;
    z-index: 10;
}

.phone-screen {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 33px;
    background: #ededed;
}

.phone-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 30px;
    padding: 0 22px;
    font-size: 11px;
    font-weight: 700;
    color: #333;
    background: #ededed;
    flex-shrink: 0;
}

.phone-status .right {
    display: flex;
    gap: 4px;
}

.phone-header {
    padding: 6px 14px 10px;
    text-align: center;
    font-size: 14.5px;
    font-weight: 700;
    color: #333;
    background: #ededed;
    border-bottom: 1px solid #dcdcdc;
    flex-shrink: 0;
}

.phone-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    overflow-y: auto;
    background: #ededed;
}

.chat-msg {
    max-width: 78%;
    padding: 9px 13px;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.6;
    word-wrap: break-word;
}

.chat-msg.left {
    align-self: flex-start;
    background: #fff;
    border-top-left-radius: 2px;
}

.chat-msg.right {
    align-self: flex-end;
    background: #95ec69;
    border-top-right-radius: 2px;
}

.chat-msg.click-info {
    align-self: center;
    max-width: 92%;
    padding: 6px 12px;
    border-radius: 10px;
    text-align: center;
    font-size: 11px;
    background: #fff8e6;
    color: #a86b00;
    border: 1px solid #ffe4a3;
}

.chat-msg a {
    color: #1a5fb4;
    word-break: break-all;
}

.phone-menu {
    display: flex;
    height: 52px;
    background: #f7f7f7;
    border-top: 1px solid #dcdcdc;
    flex-shrink: 0;
}

.menu-btn {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    color: #333;
    border-left: 1px solid #dcdcdc;
    cursor: pointer;
    user-select: none;
    word-break: break-word;
    line-height: 1.25;
    transition: background 0.2s var(--ease);
}

.menu-btn:first-child {
    border-left: none;
}

.menu-btn:hover,
.menu-btn.active {
    background: #e2e2e2;
}

.submenu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    background: #f7f7f7;
    border-top: 1px solid #dcdcdc;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.1);
}

.submenu.show {
    display: flex;
}

.submenu-item {
    padding: 12px;
    text-align: center;
    font-size: 12.5px;
    color: #333;
    border-bottom: 1px solid #e5e5e5;
    cursor: pointer;
    word-break: break-word;
}

.submenu-item:last-child {
    border-bottom: none;
}

.submenu-item:hover {
    background: #eaeaea;
}

.main-button {
    padding: 14px;
    margin-bottom: 12px;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: #fafbfc;
    transition: all 0.2s var(--ease);
}

.main-button:hover {
    border-color: #c9e6d3;
}

.main-button.editing {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1);
}

.mb-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.mb-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--brand);
    flex-shrink: 0;
}

.mb-title {
    flex: 1;
    min-width: 0;
    font-size: 14.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mb-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.mb-body {
    display: none;
    padding-top: 10px;
}

.main-button.editing .mb-body {
    display: block;
}

.sub-list {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line-strong);
}

.sub-list-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
}

.sub-item {
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
}

.sub-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.sub-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    background: var(--brand-light);
    color: var(--brand-dark);
    flex-shrink: 0;
}

.sub-title {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reset-chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.reset-chat-btn:hover {
    background: #f0f2f5;
}

/* ============================================================
   ئاككوردىيون (autoreply.php)
   ============================================================ */

.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    overflow: hidden;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s var(--ease);
}

.accordion-item:hover {
    border-color: #c9e6d3;
}

.accordion-item.open {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(7, 193, 96, 0.08);
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 17px;
    background: #fafbfc;
    cursor: pointer;
    user-select: none;
}

.accordion-item.open .accordion-header {
    background: linear-gradient(135deg, var(--brand-light), #d1f0dc);
}

.accordion-arrow {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--muted);
    transition: transform 0.25s var(--ease);
    flex-shrink: 0;
}

.accordion-item.open .accordion-arrow {
    transform: rotate(-90deg);
    color: var(--brand-dark);
}

.accordion-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: var(--brand-light);
    color: var(--brand-dark);
    flex-shrink: 0;
}

.accordion-item.open .accordion-num {
    background: var(--brand);
    color: #fff;
}

.accordion-title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.accordion-title .empty {
    color: var(--muted);
    font-weight: 400;
    font-style: italic;
}

.accordion-preview {
    max-width: 200px;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.accordion-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.accordion-body {
    display: none;
    padding: 18px;
    border-top: 1px solid var(--line);
}

.accordion-item.open .accordion-body {
    display: block;
}

.test-box {
    margin-top: 18px;
    padding: 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
}

.test-box-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
}

.test-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.test-row input {
    flex: 1;
    min-width: 180px;
    background: #fff;
}

.test-row button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 22px;
    border: none;
    border-radius: var(--radius-sm);
    background: #92400e;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.test-row button:hover {
    background: #78350f;
}

.test-result {
    display: none;
    margin-top: 14px;
    padding: 14px 17px;
    border-radius: var(--radius-sm);
    border: 1px solid #fde68a;
    background: #fff;
    font-size: 13px;
    line-height: 1.8;
}

.test-result.show {
    display: block;
}

.test-result.matched {
    background: var(--brand-light);
    border-color: #b7e6c9;
}

.test-result .label {
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--muted);
    text-transform: uppercase;
}

.test-result .kw {
    padding: 2px 8px;
    border-radius: 6px;
    background: #fff;
    color: var(--brand-dark);
    font-weight: 700;
}

.test-result .reply-text {
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    white-space: pre-wrap;
}

/* ============================================================
   تۆۋەنكى ھەرىكەت بالدىقى
   ============================================================ */

.action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px rgba(16, 24, 40, 0.06);
}

.action-bar .btn {
    min-width: 150px;
}

.badge-dirty {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--warn);
    animation: uiPulse 1.5s infinite;
}

@keyframes uiPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.82); }
}

/* ============================================================
   باشقۇرۇش بېتى (admin)
   ============================================================ */

.admin-shell {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 22px;
    align-items: start;
}

.admin-side {
    position: sticky;
    top: 84px;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.admin-side .side-title {
    padding: 4px 10px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
    margin-bottom: 10px;
}

.admin-side a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    margin-bottom: 4px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.18s var(--ease);
}

.admin-side a i {
    font-size: 18px;
    color: var(--muted);
}

.admin-side a:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.admin-side a:hover i {
    color: var(--brand);
}

.admin-side a.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 5px 14px rgba(7, 193, 96, 0.28);
}

.admin-side a.active i {
    color: #fff;
}

.admin-side .side-sep {
    height: 1px;
    margin: 10px 0;
    background: var(--line);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.stat-card {
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: var(--shadow-xs);
}

.stat-card .ico {
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    background: var(--brand-light);
    color: var(--brand-dark);
}

.stat-card.violet .ico {
    background: var(--violet-light);
    color: #6d28d9;
}

.stat-card.info .ico {
    background: var(--info-light);
    color: #1d4ed8;
}

.stat-card.warn .ico {
    background: var(--warn-light);
    color: var(--warn-dark);
}

.stat-card.danger .ico {
    background: var(--danger-light);
    color: var(--danger);
}

.stat-card .num {
    font-size: 25px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
}

.stat-card .label {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 2px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

table.data {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 13px;
}

table.data th,
table.data td {
    padding: 12px 14px;
    text-align: right;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

table.data th {
    background: #f7f9fb;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}

table.data tr:last-child td {
    border-bottom: none;
}

table.data tr:hover td {
    background: #fafcfb;
}

table.data td.mono-cell {
    font-family: ui-monospace, monospace;
    direction: ltr;
    text-align: left;
    font-size: 11.5px;
    color: var(--muted);
    word-break: break-all;
}

table.data td.actions {
    white-space: nowrap;
}

table.data td.actions a,
table.data td.actions button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    margin-left: 4px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

table.data td.actions a:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
    background: var(--brand-soft);
}

table.data td.actions a.danger:hover,
table.data td.actions button.danger:hover {
    border-color: #ffd6d0;
    color: var(--danger);
    background: var(--danger-light);
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fafbfc;
    margin-bottom: 10px;
}

.toggle-row .info {
    flex: 1;
    min-width: 0;
}

.toggle-row .info .name {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
}

.toggle-row .info .name i {
    color: var(--brand);
    font-size: 17px;
}

.toggle-row .info .desc {
    font-size: 12.3px;
    color: var(--muted);
    margin-top: 2px;
}

.search-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.search-bar input {
    flex: 1;
    min-width: 200px;
}

.kv-list {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.kv-list .k,
.kv-list .v {
    padding: 11px 15px;
    font-size: 13px;
    border-bottom: 1px solid var(--line);
}

.kv-list .k {
    background: #f7f9fb;
    font-weight: 700;
    color: var(--muted);
}

.kv-list .v {
    background: #fff;
    color: var(--text);
    word-break: break-all;
}

.kv-list > div:nth-last-child(-n+2) {
    border-bottom: none;
}

/* خام JSON كۆرۈنمە يۈزى (تەكشۈرۈش بېتى) */
.raw-json {
    max-height: 280px;
    overflow: auto;
    padding: 12px 14px;
    border: 1px solid #1f2b3a;
    border-radius: var(--radius-sm);
    background: #0f1720;
    color: #9ff0c4;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    direction: ltr;
    text-align: left;
    font-size: 11.5px;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ============================================================
   ئېلان ۋە ياردەمچى كۇنۇپكىلار
   ============================================================ */

.notice-bar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #cfe0ff;
    color: #1e40af;
    font-size: 13.3px;
    line-height: 1.8;
}

.notice-bar i {
    font-size: 19px;
    flex-shrink: 0;
    margin-top: 2px;
}

.floating-actions {
    position: fixed;
    bottom: 76px;
    left: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 90;
}

.floating-actions button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.floating-actions button:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* ============================================================
   كىچىك ياردەمچى ئۇسلۇبلار
   ============================================================ */

.muted {
    color: var(--muted);
}

.center {
    text-align: center;
}

.mono-ltr {
    direction: ltr;
    text-align: left;
    font-family: ui-monospace, monospace;
    word-break: break-all;
}

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.flex-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.hidden {
    display: none !important;
}

.spin {
    animation: uiSpin 1s linear infinite;
}

@keyframes uiSpin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   ماسلىشىش
   ============================================================ */

@media (max-width: 1000px) {
    .layout {
        grid-template-columns: 1fr;
    }
    .phone-sticky {
        position: static;
    }
    .admin-shell {
        grid-template-columns: 1fr;
    }
    .admin-side {
        position: static;
    }
    .admin-side .side-links {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 6px;
    }
}

@media (max-width: 700px) {
    body {
        font-size: 13.5px;
    }
    .topbar {
        padding: 10px 14px;
    }
    .topbar-brand span {
        display: none;
    }
    .container {
        padding: 18px 13px 70px;
    }
    .hero {
        padding: 24px 20px;
        border-radius: 16px;
    }
    .hero h1 {
        font-size: 19px;
    }
    .hero-stat {
        flex: 1;
        min-width: 0;
        padding: 12px 14px;
    }
    .hero-stat .num {
        font-size: 21px;
    }
    .accounts-grid,
    .voice-grid,
    .video-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    .card-media {
        height: 150px;
    }
    .type-options {
        grid-template-columns: 1fr;
    }
    .type-option .box {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: right;
    }
    .type-option .box i {
        margin-bottom: 0;
    }
    .accordion-preview {
        display: none;
    }
    .action-bar {
        padding: 10px;
    }
    .action-bar .btn {
        min-width: 0;
        flex: 1;
        padding: 11px 8px;
        font-size: 12.8px;
    }
    .kv-list {
        grid-template-columns: 1fr;
    }
    .kv-list .k {
        border-bottom: none;
    }
    .phone {
        width: 300px;
        height: 580px;
    }
    .floating-actions {
        bottom: 84px;
        left: 12px;
    }
}
