﻿
:root {
    --bg: #000000;
    --bg-card: rgba(0,0,0,0.93);
    --bg-card-hover: rgba(255,255,255,0.05);
    --bg-input: rgba(0,0,0,0.93);
    --border: rgba(255,255,255,0.55);
    --border-light: rgba(255,255,255,0.55);
    --glass-blur: none;
    --glass-border: rgba(255,255,255,0.55);
    --glass-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 32px rgba(0,0,0,0.4);
    --glass-hover-border: rgba(255,255,255,0.38);
    --glass-radius: 14px;
    --text: #ffffff;
    --text-dim: rgba(255,255,255,0.45);
    --text-mid: rgba(255,255,255,0.65);
    --white: #ffffff;
    --accent: #ffffff;
    --accent-dim: rgba(255,255,255,0.55);
    --radius: 14px;
    --radius-sm: 14px;
    --radius-xs: 14px;
    --gap: 14px;
    --gap-sm: 14px;
    --gap-lg: 18px;
    --nav-h: 92px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

* { margin:0; padding:0; box-sizing:border-box; }
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; }
html, body { width:100%; height:100%; overflow:hidden; }

body {
    font-family: var(--font);
    background: #000;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    font-size: 13px;
    line-height: 1.45;
}


#app-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    pointer-events: none;
}



.liquid-glass {
    position: relative;
    isolation: isolate;
    transform: translateZ(0);
    will-change: transform;
}
.liquid-glass::before {
    content: '';
    position: absolute;
    top: 1px; left: 1px; right: 1px; bottom: 1px;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 18px 0px rgba(255,255,255,0.10);
    background:
        radial-gradient(ellipse 35% 40% at 12% 15%, rgba(255,255,255,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 25% 30% at 85% 75%, rgba(255,255,255,0.05) 0%, transparent 70%);
    z-index: 0;
}
.liquid-glass::after {
    content: '';
    position: absolute;
    top: 1px; left: 1px; right: 1px; bottom: 1px;
    border-radius: inherit;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.93);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    filter: url(#liquid-glass-filter);
    -webkit-filter: url(#liquid-glass-filter);
    isolation: isolate;
    z-index: -1;
}

.no-blur .liquid-glass::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.liquid-glass > * { position: relative; z-index: 1; }




.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s cubic-bezier(0.4, 0, 0.2, 1), filter 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    filter: blur(8px);
    transform: scale(1.05);
}
.loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.loading-logo {
    object-fit: cover;
    opacity: 1 !important;
}
.loading-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 8px;
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.55);
}
.loading-bar-outer {
    width: 180px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 1px;
    overflow: hidden;
}
.loading-bar-inner {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    border-radius: 1px;
    transition: width 0.3s ease;
    animation: loadingBarShimmer 1.5s ease-in-out infinite;
}
@keyframes loadingBarShimmer {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}
.loading-status {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}


.app-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}


.bottom-nav-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0 12px calc(var(--safe-bottom) + 40px);
    pointer-events: none;
}

.bottom-nav {
    position: relative;
    width: 100%;
    max-width: 460px;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    pointer-events: none;
    isolation: auto;
}
.bottom-nav.liquid-glass::before,
.bottom-nav.liquid-glass::after { display: none !important; }
.bottom-nav > svg.nav-bg-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.nav-half {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 0;
    pointer-events: auto;
    z-index: 1;
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}
.nav-half-left {
    padding-left: 0;
    padding-right: 0;
}
.nav-half-right {
    padding-left: 0;
    padding-right: 0;
}

.nav-fab {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0,0,0,0.93);
    border: none;
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 101;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.18s ease;
    text-decoration: none;
    color: #fff;
    margin: 0;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    overflow: hidden;
}
.nav-fab::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(255,255,255,0.55), rgba(255,255,255,0.08), rgba(255,255,255,0.55), rgba(255,255,255,0.08), rgba(255,255,255,0.55));
    z-index: -1;
    pointer-events: none;
}
.nav-fab::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(0,0,0,0.93);
    box-shadow: inset 0 0 18px 0px rgba(255,255,255,0.10);
    z-index: 0;
}
.nav-fab svg {
    stroke: #fff;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: block;
    position: relative;
    z-index: 1;
    transition: all 0.18s ease;
    margin-left: -2px;
}
.nav-fab.active {
    background: #fff;
}
.nav-fab.active::after {
    background: #fff;
}
.nav-fab.active::before {
    background: #fff;
}
.nav-fab.active svg {
    stroke: rgba(0,0,0,0.93);
    filter: none;
}

.nav-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #595959;
    font-size: 9px;
    font-weight: 500;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    padding: 6px 10px;
    flex: 0 0 auto;
    min-width: 0;
    z-index: 1;
}
.nav-tab span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    display: block;
}
.nav-tab svg {
    transition: all 0.2s ease;
    stroke: #595959;
    flex-shrink: 0;
}
.nav-tab.active {
    color: #fff;
}
.nav-tab.active svg {
    stroke: #fff;
}


.main-content {
    flex: 1;
    overflow-y: auto !important;
    overflow-x: hidden;
    padding: var(--gap) 12px calc(var(--nav-h) + var(--gap-sm) + 12px);
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    opacity: 0;
    transform: translateY(12px);
    animation: mainContentFadeIn 0.8s ease 0.1s forwards;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-height: 0;
}

@keyframes mainContentFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}



.section { display: none; }
.section.active {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    min-height: 100%;
    opacity: 0;
    transform: translateY(12px);
    animation: sectionFadeIn 0.60s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.section.active > * {
    width: 100%;
}


.section.active > .section-header,
.section.active > .tabs {
    flex-shrink: 0;
    width: 100%;
}

.section-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: var(--gap);
    padding-top: 0;
}
.section-body > * {
    width: 100%;
    opacity: 0;
    transform: translateY(6px);
    animation: contentFadeIn 0.58s ease 0.12s forwards;
}

.section-body.content-overflow {
    justify-content: flex-start;
}

@keyframes fadeSlide {
    from { opacity: 1; transform: none; }
    to { opacity: 1; transform: none; }
}

@keyframes sectionFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}


.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0;
    padding-bottom: 0;
    width: 100%;
    position: relative;
    min-height: 44px;
}

.section-header .btn-back {
    flex-shrink: 0;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.section-header > div:not(.btn-back):not(.header-icon):not(.header-logo) {
    text-align: center;
}
.section-header h1, .section-header h2 {
    font-size: 26px; font-weight: 700; letter-spacing: -0.3px;
    background: linear-gradient(to right, #ffffff 0%, #ffffff 30%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-header p { font-size: 17px; color: var(--text-dim); }
.header-icon {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--radius);
}
.header-title-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.header-title-wrap .header-logo {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 12px;
}
.header-logo {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.header-title-text {
    text-align: center;
}
.vendetta-logo {
    width: 44px;
    height: 44px;
    object-fit: cover;
}


.btn-back {
    background: none;
    border: none;
    border-radius: var(--radius);
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s;
    box-shadow: none;
    padding: 0;
    overflow: hidden;
}
.btn-back:hover { }
.lottie-back-icon {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.lottie-back-icon svg {
    width: 100% !important;
    height: 100% !important;
}


.card {
    background: rgba(0,0,0,0.93);
    border: 1px solid var(--border);
    border-radius: var(--glass-radius);
    padding: var(--gap);
    margin-bottom: 0;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}
.card::before,
.info-box::before,
.plan-card::before,
.plan-card-v2::before,
.account-item::before,
.file-upload-area::before,
.media-upload-area::before,
.campaign-item::before,
.service-item::before,
.toast::before,
.modal-content::before,
.dialog-item::before,
.dm-acc-item::before,
.support-panel::before,
.bulk-log::before,
.chat-msg::before,
.support-msg::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 18px 0px rgba(255,255,255,0.10);
    background:
        radial-gradient(ellipse 35% 40% at 12% 15%, rgba(255,255,255,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 25% 30% at 85% 75%, rgba(255,255,255,0.05) 0%, transparent 70%);
    z-index: 0;
}
.card > *,
.info-box > *,
.plan-card > *,
.plan-card-v2 > *,
.account-item > *,
.file-upload-area > *,
.media-upload-area > *,
.campaign-item > *,
.service-item > *,
.toast > *,
.modal-content > *,
.dialog-item > *,
.dm-acc-item > *,
.support-panel > *,
.bulk-log > *,
.chat-msg > *,
.support-msg > * { position: relative; z-index: 1; }

.cards-list { display: flex; flex-direction: column; gap: var(--gap-sm); }

#account-detail-content {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}
#account-detail-content .card {
    margin-bottom: 0;
}

.card-title {
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0;
    min-height: 0;
    line-height: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 4px 24px;
    position: relative;
    background: linear-gradient(to right, #ffffff 0%, #ffffff 30%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.card-title svg {
    -webkit-text-fill-color: initial;
    flex-shrink: 0;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}


.action-card {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    padding: 12px 14px;
    cursor: pointer;
}
.action-icon {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--radius);
    flex-shrink: 0;
}
.action-icon.action-icon-lottie {
    border: none;
    background: none;
    padding: 0;
    overflow: hidden;
}
.action-icon.action-icon-lottie svg {
    width: 100% !important;
    height: 100% !important;
}
.action-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.action-text strong { font-size: 13px; font-weight: 600; }
.action-text .text-dim { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


.profile-logo-block {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: -6px;
    margin-bottom: -2px;
    position: relative;
    z-index: 0;
    pointer-events: none;
    flex-shrink: 0;
}
.profile-logo-video {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    flex-shrink: 0;
    object-fit: contain;
    pointer-events: none;
    border-radius: var(--radius);
    mask-image: radial-gradient(circle, #000 55%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 75%);
}
.profile-logo-text {
    height: 35px;
    min-height: 35px;
    max-height: 35px;
    flex-shrink: 0;
    object-fit: contain;
    margin-left: -1px;
    margin-top: 2px;
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.15)) drop-shadow(0 0 14px rgba(255,255,255,0.07));
}

#section-profile {
    position: relative;
}
#section-profile > .section-body {
    position: relative;
    justify-content: center;
    gap: 0;
}
#section-profile > .section-body > *:not(.profile-logo-block) {
    position: relative;
    z-index: 1;
}
#section-profile > .section-body > .card,
#section-profile > .section-body > .grid-2 {
    margin-top: 10px;
}
.profile-card {
    padding: 16px;
    position: relative;
}


.notif-bell {
    position: relative;
    margin-left: auto;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    border-radius: var(--glass-radius);
    background: none;
    border: none;
    transition: all 0.2s;
    color: #fff;
}
.notif-bell:active { transform: scale(0.92); }
.notif-bell svg { opacity: 1; stroke: #fff; }
.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    font-weight: 700;
    background: #ff3b30;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}


.notif-card {
    display: flex;
    gap: 12px;
    padding: 14px 44px 14px 14px;
    cursor: default;
    position: relative;
}
.notif-card.unread {
    border-color: rgba(255,255,255,0.55);
}
.notif-card.unread::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff3b30;
}
.notif-card-del {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--radius);
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-dim);
    opacity: 0.6;
    transition: all 0.2s;
    z-index: 2;
}
.notif-card-del:active { transform: scale(0.9); opacity: 1; }
.notif-card-del svg { width: 12px; height: 12px; display: block; stroke: currentColor; fill: none; stroke-width: 2; }
.notif-card-body {
    flex: 1;
    min-width: 0;
}
.notif-card-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}
.notif-card-text {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.4;
    margin-bottom: 6px;
}
.notif-card-time {
    font-size: 10px;
    color: var(--text-dim);
    opacity: 0.6;
}
.notif-card-photo {
    width: 100%;
    border-radius: var(--radius);
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.profile-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 58px;
    font-weight: 800;
    letter-spacing: 3px;
    white-space: nowrap;
    text-transform: uppercase;
    color: rgba(220,220,220,0.15);
    pointer-events: none;
    z-index: 0;
}
.profile-card > .profile-top,
.profile-card > .profile-stats {
    position: relative;
    z-index: 1;
}
.profile-top { display: flex; align-items: center; gap: 12px; }
.avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.55);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700;
    color: var(--text-dim);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.avatar-letter {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    line-height: 1;
}
.avatar-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.profile-name {
    font-size: 15px; font-weight: 700;
    background: linear-gradient(to right, #ffffff 0%, #ffffff 30%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.profile-stats {
    display: flex;
    padding-top: 14px;
}
.stat-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.stat-val { font-size: 16px; font-weight: 700; font-family: var(--mono); }
.stat-lbl { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }


.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }


.activity-list { display: flex; flex-direction: column; gap: var(--gap); }
.activity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-mid);
}


.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.93);
    color: var(--white);
    padding: 2px 10px;
    border-radius: var(--radius);
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font);
    letter-spacing: 0.02em;
    line-height: 1;
    min-height: 20px;
    border: 1px solid rgba(255,255,255,0.55);
}


.card.collapsible > .card-title {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    padding-left: 24px;
    padding-right: 24px;
}
.card.collapsible.collapsed {
    padding: 8px 14px;
}
.card.collapsible > .card-title::after {
    content: '';
    width: 8px; height: 8px;
    border-right: 1.5px solid var(--text-dim);
    border-bottom: 1.5px solid var(--text-dim);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -5px;
}
.card.collapsible.collapsed > .card-title::after {
    transform: rotate(-45deg);
}
.card.collapsible > .card-body {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.2s ease;
    max-height: 5000px;
    opacity: 1;
}
.card.collapsible.collapsed > .card-body {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.card.collapsible.collapsed.stack {
    gap: 0;
}


.section-search {
    position: relative;
    margin-bottom: 0;
}
.section-search .input-field {
    padding-left: 34px;
}
.section-search svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
    background: rgba(0,0,0,0.93);
    color: #fff; 
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 32px rgba(0,0,0,0.4),
                0 0 18px rgba(255,255,255,0.06), 0 0 6px rgba(255,255,255,0.04);
}
.btn > svg {
    flex-shrink: 0;
}
.btn.full-w > svg,
.btn-row .btn > svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}
.btn:hover { }
.btn:active { }


.bulk-actions-grid .btn,
.acc-select-controls .btn {
    box-shadow: 0 4px 18px rgba(0,0,0,0.15) !important;
}

.btn-primary {
    background: rgba(0,0,0,0.93);
    color: #fff;
    border-color: rgba(255,255,255,0.55);
}
.btn-primary:hover { }

.btn-outline {
    background: rgba(0,0,0,0.93);
    color: #fff;
    border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover { }

.btn-sm { padding: 10px 14px; font-size: 12px; }
.btn-row .btn-sm > svg { left: 12px; }

.btn-danger {
    background: rgba(0,0,0,0.93);
    color: #fff; 
    border-color: rgba(255,255,255,0.55);
}
.btn-danger:hover { }

.btn-toggle {
    padding: 6px 14px;
    font-size: 11px;
    border-radius: var(--radius);
    background: rgba(0,0,0,0.93);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.55);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 32px rgba(0,0,0,0.4);
}
.btn-toggle.active-state {
    background: rgba(255,255,255,0.55);
    color: #fff;
    border-color: rgba(255,255,255,0.55);
}
.btn-toggle:active { }

.full-w { width: 100%; }
.mt-12 { margin-top: var(--gap); }
.mt-16 { margin-top: var(--gap); }


.input-field {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
    outline: none;
    text-align: center;
    transition: border-color 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.input-field:focus { }
.input-field::placeholder { color: var(--text-dim); text-align: center; }
input[type="color"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 32px;
    height: 32px;
    min-height: 0;
    border: 2px solid rgba(255,255,255,0.55);
    border-radius: 6px;
    padding: 2px;
    cursor: pointer;
    background: transparent;
    aspect-ratio: 1/1;
    flex-shrink: 0;
}
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}
input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 4px;
}

select.input-field {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    text-align: center;
    text-align-last: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.45)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-left: 32px;
    padding-right: 32px;
}
select.input-field option {
    background: #1a1a1a;
    color: #fff;
    padding: 10px 12px;
    font-size: 13px;
    border: none;
    text-align: center;
    text-align-last: center;
    direction: ltr;
}
select.input-field option:hover,
select.input-field option:checked {
    background: #2a2a2a;
    color: #fff;
}

.input-textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--mono);
    font-size: 13px;
    outline: none;
    resize: none;
    min-height: 0;
    text-align: center;
    transition: border-color 0.2s;
}
.input-textarea:focus { }
.input-textarea::placeholder { color: var(--text-dim); text-align: center; }

.input-upper { text-transform: uppercase; letter-spacing: 2px; }


.form-group { margin-bottom: 0; display: flex; flex-direction: column; gap: 8px; }
.form-group:last-child { margin-bottom: 0; }
.stack > .form-group { margin-bottom: 0; }
.form-group label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    padding-top: 0;
    text-align: center;
}
.form-group label.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    line-height: 1.4;
    padding-top: 0;
    padding-bottom: 0;
}
.form-group label .text-dim {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}


label.toggle-label,
.toggle-label {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-transform: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0;
    margin-bottom: 0 !important;
}
.toggle-input { display: none !important; }
.toggle-slider {
    width: 40px; height: 22px;
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.30);
    border-radius: 11px;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
    cursor: pointer;
}
.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--text-dim);
    transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), background 0.2s;
}
.toggle-input:checked + .toggle-slider { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.30); }
.toggle-input:checked + .toggle-slider::after { transform: translateX(18px); background: #fff; }


.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--radius);
    padding: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    flex: 1 0 auto;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    background: none !important;
    background-color: transparent !important;
    border: 1px solid transparent;
    color: var(--text-dim);
    border-radius: var(--radius);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    font-family: var(--font);
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
}
.tab:focus, .tab:hover:not(.active) { outline: none; background: none !important; background-color: transparent !important; border-color: transparent; }
.tab.active { background: rgba(255,255,255,0.08) !important; background-color: rgba(255,255,255,0.08) !important; color: #fff; border-color: rgba(255,255,255,0.55); }
.tab-content { display: none; }
.tab-content.active {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}


.info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--radius);
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.5;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.info-box svg { flex-shrink: 0; }
.info-box span { width: 100%; }


.balance-hero {
    text-align: center;
    padding: 20px var(--gap);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-sm);
}
.balance-label { display: block; font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.balance-amount { display: block; font-size: 30px; font-weight: 800; font-family: var(--mono); letter-spacing: -1px; }


.sub-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    gap: var(--gap-sm);
}
.sub-status > div { display: flex; flex-direction: column; gap: 3px; }
.sub-plan { font-size: 14px; font-weight: 700; }
.sub-days { font-size: 14px; font-weight: 700; font-family: var(--mono); }

.plans-grid { display: flex; flex-direction: column; gap: var(--gap); }
.plan-card {
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.plan-card:hover { }
.plan-card:active { }
.plan-card.disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}
.plan-card.disabled:hover { border-color: var(--border); }
.plan-info { display: flex; flex-direction: column; gap: 2px; }
.plan-name {
    font-weight: 700; font-size: 13px;
    background: linear-gradient(to right, #ffffff 0%, #ffffff 30%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.plan-desc { font-size: 10px; color: var(--text-dim); }
.plan-price { font-size: 16px; font-weight: 800; font-family: var(--mono); }


.plan-card-v2 {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 22px 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 32px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
}
.plan-card-v2:hover { }
.plan-card-v2:active { }
.plan-card-v2.current {
    border-color: rgba(255,255,255,0.38);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 0 0 1px rgba(255,255,255,0.55), 0 12px 40px rgba(0,0,0,0.5);
    cursor: default;
}
.plan-card-v2.disabled { opacity: 0.4; pointer-events: none; cursor: default; }


.plan-type-label {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}


.plan-price-block {
    margin-bottom: 18px;
}
.plan-price-big {
    font-size: 32px;
    font-weight: 800;
    font-family: var(--mono);
    letter-spacing: -1px;
    line-height: 1.1;
}
.plan-price-big .plan-price-period {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.4;
    letter-spacing: 0;
}


.plan-features-glass {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    margin-bottom: 16px;
}
.plan-feat-glass {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}
.plan-feat-glass .feat-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.55);
    background: rgba(0,0,0,0.93);
}
.plan-feat-glass .feat-check svg { width: 10px; height: 10px; }
.plan-feat-glass.off { opacity: 0.3; }
.plan-feat-glass.off .feat-check { border-color: rgba(220,220,220,0.16); }


.plan-cta {
    width: 100%;
    padding: 10px 0;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.30);
    background: rgba(0,0,0,0.93);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    margin-top: auto;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}
.plan-cta:hover { }
.plan-card-v2.current .plan-cta {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.55);
    cursor: default;
}


.plan-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.55);
}


.ref-link-box { display: flex; gap: var(--gap-sm); align-items: center; justify-content: center; }
.ref-link-box .input-field { flex: 1; font-family: var(--mono); font-size: 11px; text-align: left; }
.stat-big { font-size: 28px; font-weight: 800; font-family: var(--mono); display: block; }
.text-center { text-align: center; }


.progress-bar-outer {
    width: 100%;
    height: 10px;
    background: rgba(0,0,0,0.93);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 12px 0;
    position: relative;
    border: 1px solid rgba(255,255,255,0.55);
}
.progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--white) 0%, rgba(255,255,255,0.7) 100%);
    border-radius: var(--radius);
    transition: width 0.6s cubic-bezier(.4,0,.2,1);
    width: 0%;
    position: relative;
}
.progress-bar-inner.running {
    background: linear-gradient(90deg, var(--white) 0%, rgba(255,255,255,0.6) 50%, var(--white) 100%);
    background-size: 200% 100%;
    animation: progressShine 1.5s ease-in-out infinite;
}
.progress-bar-inner.done {
    background: linear-gradient(90deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.3) 100%);
}
.progress-bar-inner.error {
    background: linear-gradient(90deg, #f87171 0%, #ef4444 100%);
}
@keyframes progressShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.parser-stat { font-size: 13px; color: var(--text-mid); margin-bottom: 6px; font-family: var(--mono); }
.parser-stat b, .parser-stat strong { color: var(--white); }
.parser-status-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-family: var(--mono);
}
.parser-status-label .dot {
    width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.parser-status-label .dot.running { background: var(--white); animation: dotPulse 1s ease-in-out infinite; }
.parser-status-label .dot.done { background: rgba(255,255,255,0.5); }

.parser-status-label .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 4px;
}
.parser-status-label .dot.error { background: #f87171; }
@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}


.account-item {
    background: rgba(0,0,0,0.93);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    align-items: center;
    gap: var(--gap);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}
.account-item:hover { }
.account-item:active { }
.acc-avatar {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-dim);
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dim);
    flex-shrink: 0;
}
.acc-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.acc-info strong { font-size: 13px; }
.acc-info span { font-size: 11px; color: var(--text-dim); }
.acc-status {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--radius);
    flex-shrink: 0;
}
.acc-status.active { background: rgba(255,255,255,0.6); box-shadow: none; }


.acc-filter-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--gap);
    margin-bottom: var(--gap);
    grid-column: 1 / -1;
}
#accounts-search-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
#accounts-list {
    width: 100%;
}
.acc-filter-row-sm {
    margin-top: 0;
    margin-bottom: var(--gap);
}
.acc-filter-btn {
    padding: 4px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.55);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.acc-filter-btn:hover {
    border-color: rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.8);
}
.acc-filter-btn.active {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}

.acc-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 3px;
    vertical-align: middle;
}
.acc-badge-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    font-family: var(--mono);
    margin-left: 3px;
    vertical-align: middle;
    line-height: 1;
}
.acc-badge-text.prem {
    background: rgba(255,215,0,0.15);
    color: #ffd700;
    border: 1px solid rgba(255,215,0,0.3);
}
.acc-badge-text.spam {
    background: rgba(248,113,113,0.15);
    color: #f87171;
    border: 1px solid rgba(248,113,113,0.3);
}
.acc-filter-btn svg { vertical-align: -1px; }


.auth-method-tabs {
    display: flex;
    gap: 4px;
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--radius-sm);
    padding: 4px;
}
.auth-method-tab {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.auth-method-tab.active { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.30); }
.auth-method-tab:active { }


.file-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px;
    background: rgba(0,0,0,0.93);
    border: 2px dashed rgba(255,255,255,0.55);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-dim);
    font-size: 13px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.file-upload-area:hover { }
.file-upload-area.has-file {
    border-color: var(--white);
    border-style: solid;
    color: var(--text);
}


.media-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 16px;
    background: rgba(0,0,0,0.93);
    border: 2px dashed rgba(255,255,255,0.55);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-dim);
    font-size: 13px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.media-upload-area:hover { }
.media-upload-area.has-file {
    border-color: var(--white);
    border-style: solid;
    color: var(--text);
}
.media-preview {
    margin-top: 8px;
    position: relative;
}
.media-preview img,
.media-preview video {
    max-width: 100%;
    max-height: 160px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.media-preview .media-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    border: 1px solid var(--border);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}


#add-acc-card {
    text-align: center;
}
#add-acc-card .card-title {
    justify-content: center;
}
#add-acc-card .info-box {
    text-align: left;
}
#auth-step-code .info-box {
    text-align: center;
}


.campaign-item {
    background: rgba(0,0,0,0.93);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    padding: 12px var(--gap);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: var(--gap);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}
.campaign-item .ci-info { flex: 1; }
.campaign-item .ci-info strong { font-size: 13px; display: block; }
.campaign-item .ci-info span { font-size: 11px; color: var(--text-dim); }
.campaign-item .ci-actions { display: flex; gap: var(--gap-sm); align-items: center; }

.campaign-msg-block {
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    padding: 10px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}
.campaign-msg-block:hover { border-color: var(--accent); }
.campaign-msg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.campaign-msg-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.3px;
}
.campaign-msg-remove {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 2px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.campaign-msg-remove:hover { color: #ef4444; background: rgba(239,68,68,0.1); }
.campaign-add-msg-btn {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed var(--glass-border);
    border-radius: var(--glass-radius);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.campaign-add-msg-btn:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--accent);
}


.service-item {
    background: rgba(0,0,0,0.93);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    padding: var(--gap);
    margin-bottom: 0;
    text-align: center;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}
.si-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--gap-sm); }
.si-header strong { font-size: 13px; }
.si-body { font-size: 12px; color: var(--text-dim); line-height: 1.5; text-align: center; }
.si-actions { display: flex; gap: var(--gap-sm); margin-top: var(--gap); justify-content: center; }


.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 13px;
}
.payment-item:last-child { border-bottom: none; }
.payment-item .pi-left { display: flex; flex-direction: column; gap: 2px; }
.payment-item .pi-left span:first-child { font-weight: 600; }
.payment-item .pi-left span:last-child { font-size: 11px; color: var(--text-dim); }
.payment-item .pi-amount { font-weight: 700; font-family: var(--mono); }


.payment-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-paid {
    background: rgba(76, 175, 80, 0.15);
    color: #66bb6a;
}
.badge-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #ffca28;
}
.payment-pending {
    opacity: 0.6;
}


#toast-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: calc(100% - 32px);
    max-width: 400px;
}
.toast {
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--glass-radius);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s ease;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}
.toast.toast-out { animation: toastOut 0.3s ease forwards; }
.toast svg { flex-shrink: 0; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-10px); } }


.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    touch-action: pan-y;
    overscroll-behavior: contain;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-content {
    background: rgba(0,0,0,0.93);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 400px;
    max-height: 85vh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    margin: 0 auto;
    box-shadow: var(--glass-shadow);
    position: relative;
    opacity: 0;
    opacity: 0;
    transform: translateY(12px) scale(0.975);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.modal-overlay.open .modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
}
.modal-header h3 {
    font-size: 14px; font-weight: 700;
    background: linear-gradient(to right, #ffffff 0%, #ffffff 30%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.modal-close {
    background: none;
    border: none;
    border-radius: 0;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s;
    box-shadow: none;
    overflow: hidden;
    padding: 0;
}
.lottie-close-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.lottie-close-icon svg {
    width: 100% !important;
    height: 100% !important;
}
.modal-close:hover {
    background: none;
    border-color: transparent;
    color: #fff;
    transform: scale(1.08);
}
.modal-body { padding: 12px; }


.stack { display: flex; flex-direction: column; gap: var(--gap); }
.stack-sm { display: flex; flex-direction: column; gap: var(--gap-sm); }


.btn-row { display: flex; gap: var(--gap); align-items: center; justify-content: center; }
.btn-row > div { text-align: center; }
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }
.center { text-align: center; }
.centered { display: flex; align-items: center; justify-content: center; }
.mt-gap { margin-top: var(--gap); }


.text-dim { color: var(--text-dim); }
.content-html { font-size: 13px; line-height: 1.7; color: var(--text-mid); }
.content-html h3 { margin: 16px 0 8px; color: var(--text); font-size: 15px; }
.content-html p { margin-bottom: 10px; }
.content-html ol, .content-html ul { padding-left: 20px; margin-bottom: 10px; }

.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-dim);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* Global content entry animation */
.fade-appear {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.30s ease, transform 0.30s ease;
}
.fade-appear.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes contentFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* usage: elements that should gently appear */
.content-fade {
    animation: contentFadeIn 0.28s ease;
}
.empty-state svg { margin-bottom: 10px; opacity: 0.3; }




@media (max-width: 359px) {
    body { font-size: 13px; }
    .section-header h1, .section-header h2 { font-size: 22px; }
    .main-content { padding: 10px 12px calc(var(--nav-h) + 12px); }
    .card { padding: 12px; }
    .profile-card { padding: 14px; }
    .avatar { width: 42px; height: 42px; font-size: 16px; }
    .profile-name { font-size: 14px; }
    .stat-val { font-size: 15px; }
    .stat-lbl { font-size: 9px; }
    .balance-amount { font-size: 28px; }
    .stat-big { font-size: 22px; }
    .grid-2 { gap: 8px; }
    .action-card { padding: 12px; gap: 10px; }
    .action-icon { width: 34px; height: 34px; }
    .action-text strong { font-size: 13px; }
    .nav-tab { padding: 4px 3px; font-size: 8px; }
    .nav-fab { width: 48px; height: 48px; }
    .nav-fab svg { width: 20px; height: 20px; }
    .nav-tab svg { width: 16px; height: 16px; }
    .loading-title { font-size: 22px; letter-spacing: 5px; }
    .plan-card { padding: 12px; }
    .plan-price { font-size: 16px; }
    .ref-link-box .input-field { font-size: 9px; }
    .tabs { gap: 3px; padding: 3px; border-radius: var(--radius); flex-wrap: nowrap; }
    .tab { flex: 0 0 auto; min-width: fit-content; white-space: nowrap; padding: 7px 6px; font-size: 11px; border-radius: var(--radius); }
}


@media (min-width: 360px) and (max-width: 479px) {
    .main-content { padding: 12px 14px calc(var(--nav-h) + 24px); }
    .grid-2 { gap: 8px; }
    .balance-amount { font-size: 32px; }
    .ref-link-box .input-field { font-size: 10px; }
}


@media (min-width: 480px) {
    .main-content { max-width: 480px; }
}


@media (min-width: 768px) {
    .main-content { max-width: 520px; }
}




@media (pointer: coarse) {
    .btn { min-height: 44px; }
    .btn-sm { min-height: 38px; }
    .btn-back { min-width: 44px; min-height: 44px; }
    .btn-toggle { min-height: 36px; padding: 6px 16px; }
    .input-field { min-height: 44px; padding: 12px 14px; }
    .input-textarea { padding: 12px 14px; }
    .nav-tab { padding: 6px 10px; }
    .tab { min-height: 38px; padding: 8px 6px; border-radius: var(--radius); }
    .toggle-slider { width: 44px; height: 24px; border-radius: 12px; }
    .toggle-slider::after { width: 18px; height: 18px; }
    .toggle-input:checked + .toggle-slider::after { transform: translateX(20px); }
    .action-card { min-height: 56px; }
    .plan-card { min-height: 56px; }
    .account-item { min-height: 56px; }
    .modal-close { width: 36px; height: 36px; }
}


@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav-wrapper {
        padding-bottom: calc(env(safe-area-inset-bottom) + 10px);
    }
    .main-content {
        padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px);
    }
}


@media (orientation: landscape) and (max-height: 500px) {
    :root { --nav-h: 56px; }
    .nav-tab span { display: none; }
    .nav-tab { padding: 8px 10px; }
    .loading-inner { gap: 12px; }
    .loading-logo { width: 100px; height: 100px; }
    .loading-title { font-size: 20px; }
    .section-header { margin-bottom: 0; }
    .balance-hero { padding: 16px; }
    .balance-amount { font-size: 28px; }
    .profile-card { padding: 14px; }
    .card { padding: 12px; }
}


html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}


.main-content {
    overscroll-behavior-y: contain;
}


.action-card:active,
.plan-card:active,
.plan-card-v2:active,
.account-item:active,
.btn:active,
.tab:active { }


.chat-select-list {
    max-height: 50vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.chat-select-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: background var(--transition);
}
.chat-select-item:hover { }
.chat-select-item input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: #fff;
    flex-shrink: 0;
    cursor: pointer;
}
.chat-select-item .csi-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
    transition: opacity 0.60s ease, transform 0.60s ease;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-select-item .csi-info span {
    animation: contentFadeIn 0.60s ease;
    color: var(--text-dim);
}
.chat-select-actions {
    display: flex;
    gap: 8px;
    padding-top: 8px;
    align-items: center;
}
.chat-select-actions button { flex: 1; }


.dialog-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(0,0,0,0.93);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}
.dialog-item:hover { }
.dialog-item:active { }
.dialog-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dim);
    overflow: hidden;
}
.dialog-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.dialog-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.dialog-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dialog-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.dialog-time {
    font-size: 11px;
    color: var(--text-dim);
    flex-shrink: 0;
    margin-left: 8px;
}
.dialog-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dialog-last-msg {
    font-size: 12px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.dialog-unread {
    background: var(--white);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    flex-shrink: 0;

.notif-bell .action-icon-lottie {
    width: 100%;
    height: 100%;
}
    margin-left: 8px;
}
.dialog-type-badge {
    font-size: 9px;
    color: var(--text-dim);
    background: var(--bg-input);
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 6px;
    flex-shrink: 0;
}


.chat-messages-wrapper {
    flex: 1 1 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
    min-height: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.chat-messages-wrapper::-webkit-scrollbar { display: none; }
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 8px;
    min-height: 100%;
    justify-content: flex-end;
}
.chat-msg {
    max-width: 78%;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    line-height: 1.45;
    position: relative;
    overflow: hidden;
    word-break: break-word;
}
.chat-msg.msg-in {
    align-self: flex-start;
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.55);
    border-bottom-left-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 32px rgba(0,0,0,0.4);
}
.chat-msg.msg-out {
    align-self: flex-end;
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.55);
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.chat-msg .msg-name {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2px;
}
.chat-msg .msg-text {
    margin: 0;
    white-space: pre-wrap;
}
.chat-msg .msg-media {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius);
    margin: 4px 0;
    cursor: pointer;
}
.chat-msg .msg-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.chat-msg .msg-time {
    font-size: 10px;
    color: var(--text-dim);
}
.chat-msg .msg-actions {
    display: flex;
    gap: 4px;
    opacity: 0.45;
    transition: opacity 0.2s;
}
.chat-msg:hover .msg-actions,
.chat-msg:active .msg-actions {
    opacity: 1;
}


#section-chat .section-header > div {
    overflow: hidden;
    max-width: calc(100% - 80px);
}
#section-chat .section-header h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
}
#section-chat .section-header p {
    font-size: 12px;
}
.msg-action-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 2px;
    opacity: 0.6;
    transition: opacity var(--transition);
}
.msg-action-btn:hover { opacity: 1; }

.msg-sticker {
    max-width: 180px;
    max-height: 180px;
    margin: 4px 0;
}
.msg-sticker-placeholder {
    font-size: 48px;
    padding: 12px 0;
}
.msg-gif {
    max-width: 100%;
    max-height: 220px;
    border-radius: var(--radius);
    margin: 4px 0;
}
.msg-voice {
    margin: 4px 0;
    width: 100%;
}
.msg-voice audio {
    width: 100%;
    height: 32px;
    border-radius: 16px;
}
.msg-video-note {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 4px 0;
}
.msg-document {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-dim);
    margin: 4px 0;
    word-break: break-all;
}

.msg-inline-keyboard {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}
.msg-btn-row {
    display: flex;
    gap: 4px;
}
.msg-inline-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #7aafff;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, opacity 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    line-height: 1.3;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.msg-inline-btn:hover {
    background: rgba(122,175,255,0.12);
    border-color: rgba(122,175,255,0.3);
}
.msg-inline-btn:active {
    opacity: 0.6;
}
.msg-inline-btn-cb {
    color: rgba(255,255,255,0.7);
}
.msg-inline-btn-cb:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}
.msg-inline-btn-url {
    color: #7aafff;
}

.msg-reply-keyboard {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}
.msg-reply-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    line-height: 1.3;
    transition: background 0.15s, border-color 0.15s, opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.msg-reply-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
}
.msg-reply-btn:active {
    opacity: 0.6;
}


.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.93);
    border-top: 1px solid rgba(255,255,255,0.55);
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 20;
}
.chat-input-bar .input-field {
    min-height: 38px;
    padding: 8px 12px;
    text-align: left;
}
.chat-attach-btn,
.chat-send-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.30);
    background: rgba(0,0,0,0.50);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}
.chat-send-btn { background: rgba(0,0,0,0.50); color: #fff; }
.chat-send-btn:hover { }
.chat-attach-btn:hover { }


#section-chat.active {
    padding-bottom: 0 !important;
    gap: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#section-chat .section-header {
    padding: 10px 12px;
    margin-bottom: 0;
    flex-shrink: 0;
    z-index: 20;
    background: rgba(0,0,0,0.93);
    border-bottom: 1px solid var(--border);
}
#section-chat .section-header .btn-back {
    left: 8px;
}
#section-chat .chat-messages-wrapper {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}
#section-chat .chat-input-bar {
    margin-bottom: 0;
    flex-shrink: 0;
    z-index: 20;
}

body.chat-active .bottom-nav-wrapper { display: none !important; }
body.chat-active .main-content {
    padding: 0 !important;
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
}
body.chat-active #section-chat.active {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden;
}


.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: background var(--transition);
}
.search-result-item:hover { }
.search-result-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dim);
    flex-shrink: 0;
}
.search-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.search-result-info strong { font-size: 13px; }
.search-result-info span { font-size: 11px; color: var(--text-dim); }


.dialog-delete-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 8px;
    opacity: 0;
    transition: opacity var(--transition);
}
.dialog-item:hover .dialog-delete-btn { opacity: 0.6; }
.dialog-delete-btn:hover { opacity: 1 !important; color: #ff6b6b; }


.admin-stat-card {
    padding: var(--gap);
    margin-bottom: 0;
}
.admin-stat-card .card-title {
    font-size: 13px;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
    background: linear-gradient(to right, #ffffff 0%, #ffffff 30%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.admin-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    text-align: center;
    min-height: 56px;
}
.admin-stat-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    font-family: var(--mono);
}
.admin-stat-lbl {
    font-size: 9px;
    color: var(--text-dim);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
}


[id^="section-admin"].active { display: none !important; }
body.admin-mode [id^="section-admin"].active { display: flex !important; }

[id^="section-admin"] .btn-danger {
    background: rgba(255,80,80,0.08);
    color: #ff5050;
    border-color: rgba(255,80,80,0.2);
}
[id^="section-admin"] .btn-danger:active { }
[id^="section-admin"] .btn-sm {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: var(--radius-xs);
    min-height: unset;
}


[id^="section-admin"] .input-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 13px;
    padding: 10px 12px;
    resize: vertical;
    outline: none;
    transition: border-color var(--transition);
}
[id^="section-admin"] .input-textarea:focus {
    border-color: var(--white);
}
[id^="section-admin"] .input-upper { text-transform: uppercase; }


[id^="section-admin"] .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-sm);
}


[id^="section-admin"] .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
[id^="section-admin"] .form-group label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}


@media (max-width: 380px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-stat-val {
        font-size: 16px;
    }
}


.bulk-stats-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.bulk-stat {
    flex: 1 1 calc(33.3% - 4px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 6px 2px;
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--radius);
}
.bulk-stat.active { border-color: rgba(255,255,255,0.55); }
.bulk-stat.inactive { border-color: rgba(220,220,220,0.16); }
.bulk-stat-val {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--mono);
}
.bulk-stat.active .bulk-stat-val { color: #fff; }
.bulk-stat.inactive .bulk-stat-val { color: rgba(255,255,255,0.4); }
.bulk-stat-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.bulk-checkbox-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}
.bulk-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.bulk-checkmark {
    width: 12px;
    height: 12px;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    background: transparent;
}
.bulk-checkbox-label input:checked + .bulk-checkmark {
    border-color: #fff;
    background: rgba(255,255,255,0.55);
}
.bulk-checkbox-label input:checked + .bulk-checkmark::after {
    content: '';
    width: 5px;
    height: 3px;
    border-left: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}
#bulk-panel .card-title {
    padding-right: 0;
}
.account-item.selected {
    border-color: var(--glass-border);
    background: rgba(0,0,0,0.93);
}
.account-item[data-acc-id] {
    cursor: default;
}
.account-item[data-acc-id] .acc-avatar,
.account-item[data-acc-id] .acc-info {
    cursor: pointer;
}

.acc-avatar.avatar-active {
    border: 2px solid rgba(255,255,255,0.5);
}
.acc-avatar.avatar-inactive {
    border: 2px solid rgba(255,255,255,0.12);
    opacity: 0.5;
}

#accounts-list.single-account {
    display: flex;
    justify-content: center;
}
#accounts-list.single-account .account-item {
    width: 100%;
}
.account-item .acc-info {
    text-align: left;
    align-items: flex-start;
}

.ref-link-grey {
    color: rgba(255,255,255,0.35) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.35) !important;
}

#auth-method-session .info-box {
    text-align: center;
    justify-content: center;
}
#auth-method-session .info-box span {
    text-align: center;
}

.bulk-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.bulk-actions-grid .btn {
    font-size: 11px;
    padding: 8px 6px;
    justify-content: center;
    white-space: nowrap;
    background: rgba(0,0,0,0.50);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}
.bulk-actions-grid .btn svg {
    flex-shrink: 0;
    position: static;
    transform: none;
}
.bulk-actions-grid .btn:disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.bulk-log {
    max-height: 160px;
    overflow-y: auto;
    margin-top: 6px;
    padding: 8px 10px;
    background: rgba(0,0,0,0.93);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.55);
    font-size: 11px;
    font-family: var(--mono);
    color: var(--text-mid);
    position: relative;
}
.bulk-log-line {
    padding: 3px 0;
    border-bottom: 1px solid rgba(0,0,0,0.93);
    line-height: 1.4;
}
.bulk-log-line.error {
    color: #f87171;
}
.bulk-log-line:last-child {
    border-bottom: none;
    font-weight: 700;
    color: var(--text);
    padding-top: 6px;
    margin-top: 2px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.bulk-progress-text {
    font-size: 12px;
    color: var(--text-mid);
    margin-bottom: 4px;
    text-align: center;
    font-family: var(--mono);
}


.aj-acc-controls {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    justify-content: center;
}
.aj-acc-controls .btn {
    flex: 1;
    min-width: 0;
}
.aj-acc-list {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.93);
}
.aj-acc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.93);
}
.aj-acc-item:last-child { border-bottom: none; }
.aj-acc-item:hover { background: rgba(0,0,0,0.93); }
.aj-acc-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}
.aj-acc-check {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.55);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
    margin-top: 2px;
}
.aj-acc-item input:checked ~ .aj-acc-check {
    border-color: #fff;
    background: rgba(255,255,255,0.55);
}
.aj-acc-item input:checked ~ .aj-acc-check::after {
    content: '';
    width: 8px; height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}
.aj-acc-phone {
    font-size: 13px;
    font-weight: 600;
    font-family: var(--mono);
    color: var(--text);
}
.aj-acc-uname {
    font-size: 11px;
    color: var(--text-dim);
    margin-left: auto;
}


.tab.tab-locked {
    opacity: 0.45;
    position: relative;
}
.tab.tab-locked::after {
    display: none;
}
.plan-lock-overlay span {
}

.feature-locked-box {
    text-align: center;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-sm);
}
.feature-locked-box .info-box {
    justify-content: center;
}


.content-locked > *:not(.feature-locked-box) { display: none !important; }
.content-locked > .feature-locked-box { display: flex !important; flex-direction: column; align-items: center; }


.dm-acc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}
.dm-acc-grid > .dm-acc-item:only-of-type {
    grid-column: 1 / -1;
    max-width: 200px;
    margin: 0 auto;
}
.dm-acc-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius);
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    position: relative;
    overflow: hidden;
}
.dm-acc-item.selected {
    background: rgba(0,0,0,0.93);
    border-color: rgba(255,255,255,0.55);
}

.dm-acc-item input[type=checkbox],
.dm-acc-item input[type=radio] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.dm-acc-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
    min-width: 0;
    text-align: center;
}
.dm-acc-name {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}
.dm-acc-phone {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    line-height: 1.2;
}
.dm-progress-bar {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(220,220,220,0.16);
    margin: 4px 0 2px;
    overflow: hidden;
}
.dm-progress-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.5), rgba(255,255,255,0.8));
    transition: width 0.5s ease;
}


.dm-mode-tabs {
    display: flex;
    gap: 4px;
    background: rgba(0,0,0,0.93);
    border-radius: var(--radius);
    padding: 3px;
    border: 1px solid rgba(255,255,255,0.55);
}
.dm-mode-tab {
    flex: 1;
    padding: 7px 10px;
    border-radius: var(--radius);
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}
.dm-mode-tab.active {
    background: rgba(255,255,255,0.10);
    color: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.15);
}
.dm-mode-tab:hover:not(.active) {
    color: rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.93);
}


.support-fab {
    position: fixed;
    bottom: calc(var(--nav-h) + 18px);
    right: 16px;
    z-index: 900;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.support-fab:active { transform: scale(0.93); }
.support-fab.hidden { display: none !important; }
.support-fab.has-unread::after {
    content: '';
    position: absolute;
    top: 3px; right: 3px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
}

.support-fab .action-icon-lottie {
    width: 100%;
    height: 100%;
}


.support-panel {
    position: fixed;
    bottom: calc(var(--nav-h) + 72px);
    right: 16px;
    z-index: 910;
    width: 340px;
    max-width: calc(100vw - 32px);
    height: 430px;
    max-height: calc(100vh - var(--nav-h) - 100px);
    border-radius: var(--radius);
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 12px 48px rgba(0,0,0,0.55);
    backdrop-filter: blur(28px) saturate(1.0);
    -webkit-backdrop-filter: blur(28px) saturate(1.0);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: supportSlideUp 0.22s ease-out;
}
@keyframes supportSlideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.support-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
    background: rgba(0,0,0,0.93);
}
.support-panel-close {
    background: none; border: none; color: rgba(255,255,255,0.30);
    cursor: pointer; padding: 4px; display: flex; align-items: center;
    transition: color 0.15s;
}
.support-panel-close:hover { color: #fff; }


.support-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.support-messages::-webkit-scrollbar { width: 4px; }
.support-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.support-messages::-webkit-scrollbar-track { background: transparent; }

.support-msg {
    max-width: calc(100% - 48px);
    padding: 9px 13px;
    border-radius: var(--radius);
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    min-width: 0;
    position: relative;
    overflow: visible;
    flex-shrink: 1;
}
.support-msg.msg-user {
    align-self: flex-end;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.06);
    border-bottom-right-radius: 4px;
}
.support-msg.msg-admin {
    align-self: flex-start;
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.05);
    border-bottom-left-radius: 4px;
}
.support-msg .msg-time {
    font-size: 10px;
    color: rgba(255,255,255,0.28);
    margin-top: 4px;
    display: block;
    text-align: right;
}
.support-msg.msg-admin .msg-time { text-align: left; }

.support-msg .msg-file {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: var(--radius);
    background: rgba(0,0,0,0.93);
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}
.support-msg .msg-file:hover { background: rgba(255,255,255,0.1); }
.support-msg .msg-file img {
    max-width: 180px;
    border-radius: var(--radius);
}


.support-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
    background: rgba(0,0,0,0.93);
}
.support-input-bar .input-field {
    min-height: unset;
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: var(--radius);
}
.support-input-bar .btn.btn-sm {
    min-height: unset;
    height: 36px;
    width: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}
.support-attach-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    min-width: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: rgba(255,255,255,0.4);
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
    background: none;
    border: none;
}
.support-attach-btn:hover { color: #fff; background: rgba(0,0,0,0.93); }

.support-file-preview {
    padding: 7px 14px;
    border-top: 1px solid rgba(255,255,255,0.07);
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    background: rgba(0,0,0,0.93);
}
.support-file-preview .remove-file {
    cursor: pointer;
    color: rgba(255,255,255,0.35);
    margin-left: auto;
    transition: color 0.15s;
}
.support-file-preview .remove-file:hover { color: #fff; }


@media (max-width: 420px) {
    .support-panel {
        right: 0;
        bottom: var(--nav-h);
        width: 100%;
        max-width: 100%;
        height: calc(100vh - var(--nav-h) - 48px);
        max-height: calc(100vh - var(--nav-h) - 48px);
        border-radius: var(--radius) var(--radius) 0 0;
        border-bottom: none;
    }
    .support-fab {
        bottom: calc(var(--nav-h) + 14px);
        right: 14px;
        width: 44px;
        height: 44px;
    }
}


.ticket-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    cursor: pointer;
    transition: background 0.15s;
}
.ticket-card:active { background: rgba(0,0,0,0.93); }
.ticket-card .ticket-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.55);
    flex-shrink: 0;
}
.ticket-card .ticket-info { flex: 1; min-width: 0; }
.ticket-card .ticket-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9); }
.ticket-card .ticket-preview {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.ticket-card .ticket-meta {
    text-align: right;
    flex-shrink: 0;
}
.ticket-card .ticket-time {
    font-size: 10px;
    color: rgba(255,255,255,0.28);
}
.ticket-card .ticket-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: var(--radius);
    font-size: 10px;
    font-weight: 600;
    margin-top: 3px;
}
.ticket-badge.open { background: rgba(74,222,128,0.13); color: #4ade80; }
.ticket-badge.closed { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.3); }


#section-admin-ticket-chat.active {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}
#section-admin-ticket-chat .section-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    gap: 0;
    min-height: 0;
}
#section-admin-ticket-chat .support-messages {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 14px;
    -webkit-overflow-scrolling: touch;
}
#section-admin-ticket-chat .support-input-bar {
    background: rgba(0,0,0,0.93);
    border-top: 1px solid rgba(255,255,255,0.07);
}
#section-admin-ticket-chat .support-file-preview {
    background: rgba(0,0,0,0.93);
}

#section-admin-ticket-chat .support-msg.msg-admin {
    align-self: flex-end;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 4px;
}
#section-admin-ticket-chat .support-msg.msg-admin .msg-time { text-align: right; }
#section-admin-ticket-chat .support-msg.msg-user {
    align-self: flex-start;
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 4px;
}


.card > .faq-help-btn {
    position: absolute;
    right: 16px;
    top: 13px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    opacity: 0.55;
    transition: opacity 0.2s;
    -webkit-text-fill-color: initial;
}
.card > .faq-help-btn:hover,
.card > .faq-help-btn:active { opacity: 1; }
.card > .faq-help-btn .faq-lottie {
    width: 24px;
    height: 24px;
    pointer-events: none;
}
.card:has(> .faq-help-btn) {
    position: relative;
}
.faq-tooltip {
    display: none;
    background: rgba(20,20,20,0.97);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.55;
    animation: faqFadeIn 0.2s ease;
}
.faq-tooltip.show { display: block; }
@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
#section-admin-ticket-chat .support-msg.msg-user .msg-time { text-align: left; }

.delay-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.delay-input-wrap .input-field { flex: 1; }
.delay-unit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    vertical-align: middle;
    margin-left: 4px;
    flex-shrink: 0;
}
.delay-unit-btn:active { transform: scale(0.95); }
.delay-unit-btn.min-mode {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.neuro-gender-row {
    display: flex;
    gap: 6px;
    width: 100%;
}
.neuro-radio-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
    text-align: center;
    min-height: 40px;
}
.neuro-radio-label:has(input:checked) {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.neuro-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.neuro-radio-label span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 100%;
    padding: 10px 8px;
    white-space: nowrap;
    line-height: 1;
}
.neuro-radio-label span svg,
.neuro-check-label span svg {
    flex-shrink: 0;
    display: block;
}
.neuro-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
}
.neuro-options .neuro-check-label:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
.neuro-check-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: 40px;
    background: rgba(0,0,0,0.93);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
}
.neuro-check-label:has(input:checked) {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.neuro-check-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.neuro-check-label span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 10px 12px;
    line-height: 1;
}
.neuro-preview-card {
    background: rgba(0,0,0,0.93);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: var(--radius);
}
.neuro-preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.neuro-preview-row:last-child {
    border-bottom: none;
}
.neuro-preview-row span:first-child {
    color: var(--text-mid);
}
.neuro-preview-row span:last-child {
    color: #fff;
    font-weight: 500;
}

.ai-shield-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}
.ai-shield-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}
.ai-shield-status {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
}
.ai-shield-modes {
    display: flex;
    gap: 6px;
    width: 100%;
}
.ai-shield-mode-btn {
    flex: 1;
    padding: 8px 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.ai-shield-mode-btn:hover {
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}
.ai-shield-mode-btn.active {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}
.ai-shield-desc {
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.5;
    text-align: center;
}
.ai-shield-info-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.ai-shield-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 8px 12px;
    font-size: 11px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ai-shield-info-row:last-child {
    border-bottom: none;
}
.ai-shield-info-header {
    background: rgba(255,255,255,0.04);
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
}
.ai-shield-container {
    width: 100%;
}

/* Emoji grid for reactor */
.emoji-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.emoji-square {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: var(--radius);
    background: rgba(0,0,0,0.93);
    border: 2px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: all 0.2s;
    -webkit-user-select: none;
    user-select: none;
}
.emoji-square:hover {
    border-color: rgba(255,255,255,0.35);
    transform: scale(1.08);
}
.emoji-square.selected {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.15);
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.3);
}
