:root {
    --hcap-bg: #f4f6fa;
    --hcap-panel: #ffffff;
    --hcap-text: #172033;
    --hcap-muted: #6b778c;
    --hcap-line: #e3e8f0;
    --hcap-primary: #6d5dfc;
    --hcap-primary2: #2563eb;
}

.hcap-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    padding: 18px;
    background: rgba(15, 23, 42, .64);
    backdrop-filter: blur(12px);
}

.hcap-overlay.open {
    display: grid;
    place-items: center;
}

.hcap-shell {
    width: min(1420px, 98vw);
    height: min(900px, 96vh);
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 27px;
    background: var(--hcap-bg);
    box-shadow: 0 35px 110px rgba(2, 6, 23, .42);
    color: var(--hcap-text);
    font-family: Inter, "Plus Jakarta Sans", Arial, sans-serif;
}

.hcap-sidebar {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 22px 16px 16px;
    color: #eaf0ff;
    background:
        radial-gradient(circle at 20% 0%, rgba(109, 93, 252, .34), transparent 36%),
        linear-gradient(180deg, #172033, #0f172a);
}

.hcap-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 7px 23px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.hcap-brand-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    font-size: 20px;
    background: linear-gradient(135deg, #8b7cff, #3b82f6);
    box-shadow: 0 10px 25px rgba(109, 93, 252, .32);
}

.hcap-brand b,
.hcap-brand small {
    display: block;
}

.hcap-brand b {
    font-size: 16px;
    font-weight: 900;
}

.hcap-brand small {
    margin-top: 3px;
    color: #96a2ba;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hcap-nav {
    display: grid;
    gap: 7px;
    margin-top: 22px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.hcap-nav button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    border: 0;
    border-radius: 13px;
    color: #aeb8cb;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
    transition: .18s ease;
}

.hcap-nav button i {
    width: 21px;
    text-align: center;
    font-size: 14px;
}

.hcap-nav button:hover,
.hcap-nav button.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(109, 93, 252, .94), rgba(37, 99, 235, .9));
    transform: translateX(2px);
    box-shadow: 0 9px 22px rgba(37, 99, 235, .22);
}

.hcap-sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    flex-shrink: 0;
}

.hcap-admin-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
}

.hcap-admin-chip > i {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #c7d2fe;
    background: rgba(109, 93, 252, .16);
}

.hcap-admin-chip b,
.hcap-admin-chip small {
    display: block;
}

.hcap-admin-chip b {
    color: #fff;
    font-size: 12px;
}

.hcap-admin-chip small {
    margin-top: 2px;
    color: #8d9ab2;
    font-size: 9px;
}

.hcap-logout {
    width: 100%;
    margin-top: 7px;
    padding: 10px 12px;
    border: 1px solid rgba(248, 113, 113, .2);
    border-radius: 11px;
    color: #fca5a5;
    background: rgba(239, 68, 68, .07);
    font-size: 11px;
    font-weight: 800;
}

.hcap-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--hcap-bg);
}

.hcap-topbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--hcap-line);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(15px);
}

.hcap-topbar small {
    display: block;
    color: #7c3aed;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
}

.hcap-topbar h2 {
    margin: 4px 0 0;
    color: #172033;
    font-size: 20px;
    font-weight: 900;
}

.hcap-top-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.hcap-top-actions button,
.hcap-mobile-menu {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 1px solid #dce2eb;
    border-radius: 12px;
    color: #56647a;
    background: #fff;
}

.hcap-top-actions button:hover,
.hcap-mobile-menu:hover {
    color: #6d5dfc;
    border-color: #bfc5ff;
    background: #f4f3ff;
}

.hcap-top-actions button.spin i {
    animation: hcap-spin .7s linear infinite;
}

.hcap-mobile-menu {
    display: none;
}

.hcap-panel-view {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 22px;
}

.hcap-login-view {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: auto;
    background:
        radial-gradient(circle at 80% 10%, rgba(109, 93, 252, .14), transparent 35%),
        var(--hcap-bg);
}

.hcap-login-card {
    width: min(420px, 100%);
    padding: 34px;
    border: 1px solid var(--hcap-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 22px 65px rgba(15, 23, 42, .12);
}

.hcap-login-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 19px;
    color: #fff;
    font-size: 24px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    box-shadow: 0 14px 30px rgba(109, 93, 252, .3);
}

.hcap-login-card > small,
.hcap-login-card h2,
.hcap-login-card p {
    display: block;
    text-align: center;
}

.hcap-login-card > small {
    color: #7c3aed;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
}

.hcap-login-card h2 {
    margin: 7px 0 6px;
    font-size: 25px;
    font-weight: 900;
}

.hcap-login-card p {
    margin: 0 0 23px;
    color: var(--hcap-muted);
    font-size: 11px;
    line-height: 1.55;
}

.hcap-login-card label,
.hcap-form label > span {
    display: block;
    margin-bottom: 6px;
    color: #455268;
    font-size: 10px;
    font-weight: 900;
}

.hcap-password-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid #d8dee8;
    border-radius: 13px;
    background: #f9fafc;
}

.hcap-password-wrap > i {
    color: #8b96aa;
}

.hcap-password-wrap input {
    flex: 1;
    min-width: 0;
    height: 45px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 12px;
}

.hcap-password-wrap button {
    border: 0;
    color: #8390a4;
    background: transparent;
}

.hcap-primary {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    box-shadow: 0 10px 24px rgba(79, 70, 229, .22);
    font-size: 11px;
    font-weight: 900;
}

.hcap-primary:disabled {
    opacity: .65;
}

.hcap-login-card .hcap-primary {
    margin-top: 12px;
}

.hcap-login-error,
.hcap-form-error {
    min-height: 20px;
    padding-top: 7px;
    color: #dc2626;
    font-size: 10px;
    font-weight: 700;
}

.hcap-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 20px 22px;
    overflow: hidden;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(circle at 90% -20%, rgba(255, 255, 255, .23), transparent 42%),
        linear-gradient(135deg, #6d5dfc, #2563eb);
    box-shadow: 0 15px 35px rgba(79, 70, 229, .2);
}

.hcap-welcome small {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
    opacity: .8;
}

.hcap-welcome h3 {
    margin: 5px 0;
    font-size: 22px;
    font-weight: 900;
}

.hcap-welcome p {
    margin: 0;
    font-size: 11px;
    opacity: .84;
}

.hcap-welcome > span {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: 9px;
    font-weight: 900;
}

.hcap-welcome > span i {
    color: #86efac;
    font-size: 7px;
}

.hcap-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 16px;
}

.hcap-stat {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid var(--hcap-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(15, 23, 42, .04);
}

.hcap-stat-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 16px;
}

.hcap-stat.blue .hcap-stat-icon { color: #2563eb; background: #eff6ff; }
.hcap-stat.violet .hcap-stat-icon { color: #7c3aed; background: #f5f3ff; }
.hcap-stat.amber .hcap-stat-icon { color: #d97706; background: #fffbeb; }
.hcap-stat.green .hcap-stat-icon { color: #059669; background: #ecfdf5; }
.hcap-stat.rose .hcap-stat-icon { color: #e11d48; background: #fff1f2; }
.hcap-stat.cyan .hcap-stat-icon { color: #0891b2; background: #ecfeff; }

.hcap-stat small,
.hcap-stat b,
.hcap-stat em {
    display: block;
    min-width: 0;
}

.hcap-stat small {
    color: #7b8799;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.hcap-stat b {
    margin: 2px 0;
    color: #172033;
    font-size: 21px;
    font-weight: 900;
}

.hcap-stat em {
    overflow: hidden;
    color: #8a96a8;
    font-size: 9px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hcap-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 15px;
}

.hcap-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--hcap-line);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, .045);
}

.hcap-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.hcap-card-head > div:first-child {
    min-width: 0;
}

.hcap-card-head small {
    display: block;
    color: #7c3aed;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .12em;
}

.hcap-card-head h3 {
    margin: 4px 0 0;
    color: #253047;
    font-size: 14px;
    font-weight: 900;
}

.hcap-card-head h3 span {
    color: #7c3aed;
}

.hcap-card-head > i {
    margin-left: auto;
    color: #8b97aa;
    font-size: 20px;
}

.hcap-card-head > button {
    margin-left: auto;
    padding: 7px 10px;
    border: 1px solid #dce2eb;
    border-radius: 9px;
    color: #59667a;
    background: #fff;
    font-size: 9px;
    font-weight: 800;
}

.hcap-info-list {
    margin: 0;
}

.hcap-info-list > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 11px 0;
    border-bottom: 1px solid #edf0f5;
}

.hcap-info-list > div:last-child {
    border-bottom: 0;
}

.hcap-info-list dt {
    color: #7b8799;
    font-size: 10px;
    font-weight: 700;
}

.hcap-info-list dd {
    margin: 0;
    color: #334155;
    font-size: 10px;
    font-weight: 900;
}

.hcap-mini-log > div {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #edf0f5;
}

.hcap-mini-log > div:last-child {
    border-bottom: 0;
}

.hcap-log-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-top: 4px;
    border-radius: 50%;
    background: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, .1);
}

.hcap-mini-log p {
    margin: 0;
    color: #556277;
    font-size: 10px;
    line-height: 1.4;
}

.hcap-mini-log p b {
    color: #253047;
}

.hcap-mini-log small {
    display: block;
    margin-top: 2px;
    color: #99a3b3;
    font-size: 8px;
}

.hcap-vip-layout {
    display: grid;
    grid-template-columns: minmax(360px, .82fr) minmax(450px, 1.18fr);
    gap: 15px;
    align-items: start;
}

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

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

.hcap-form label {
    min-width: 0;
}

.hcap-form label > span em {
    color: #9aa5b5;
    font-size: 8px;
    font-style: normal;
}

.hcap-form input,
.hcap-form select,
.hcap-search input {
    width: 100%;
    height: 40px;
    padding: 0 11px;
    border: 1px solid #dce2eb;
    border-radius: 10px;
    outline: 0;
    color: #334155;
    background: #fbfcfe;
    font-size: 10px;
}

.hcap-form input:focus,
.hcap-form select:focus,
.hcap-search input:focus {
    border-color: #9b8ffc;
    box-shadow: 0 0 0 3px rgba(109, 93, 252, .09);
}

.hcap-color-input {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hcap-color-input input[type="color"] {
    flex: 1;
    padding: 3px;
}

.hcap-color-input button {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    border: 1px solid #dce2eb;
    border-radius: 9px;
    color: #8b96a8;
    background: #fff;
}

.hcap-color-input.empty input {
    opacity: .35;
}


.hcap-vip-icon-input {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hcap-vip-icon-input input {
    min-width: 0;
    flex: 1;
    font-size: 18px;
    text-align: center;
}

.hcap-vip-icon-input button {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1px solid #dce2eb;
    border-radius: 10px;
    color: #8b96a8;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
}

.hcap-vip-icon-input button:hover {
    color: #dc2626;
    border-color: #fecaca;
    background: #fff1f2;
}

.hcap-vip-icon-picker {
    padding: 12px;
    border: 1px solid #e0e6ef;
    border-radius: 13px;
    background: linear-gradient(180deg,#fbfcff,#f7f8fc);
}

.hcap-vip-icon-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 11px;
}

.hcap-vip-icon-picker-head > div {
    min-width: 0;
}

.hcap-vip-icon-picker-head span {
    display: block;
    color: #475569;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hcap-vip-icon-picker-head small {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 8px;
}

.hcap-vip-selected-icon {
    width: 42px;
    height: 42px;
    display: grid !important;
    place-items: center;
    flex: 0 0 42px;
    border: 1px solid #c4b5fd;
    border-radius: 12px;
    background: linear-gradient(135deg,#ede9fe,#fdf2f8);
    box-shadow: 0 7px 18px rgba(109,93,252,.12);
    font-size: 21px !important;
    line-height: 1;
    text-transform: none !important;
}

.hcap-vip-selected-icon.is-empty {
    color: #94a3b8;
    font-size: 14px !important;
}

.hcap-vip-icon-group + .hcap-vip-icon-group {
    margin-top: 10px;
}

.hcap-vip-icon-group > b {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 8px;
    font-weight: 850;
}

.hcap-vip-icon-grid {
    display: grid;
    grid-template-columns: repeat(12,minmax(0,1fr));
    gap: 5px;
}

.hcap-vip-icon-option {
    min-width: 0;
    height: 33px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(15,23,42,.03);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

.hcap-vip-icon-option:hover {
    z-index: 1;
    transform: translateY(-2px) scale(1.07);
    border-color: #a78bfa;
    box-shadow: 0 7px 15px rgba(124,58,237,.15);
}

.hcap-vip-icon-option.is-selected {
    border-color: #7c3aed;
    background: linear-gradient(135deg,#ede9fe,#fae8ff);
    box-shadow: 0 0 0 2px rgba(124,58,237,.14);
}

body.dark .hcap-vip-icon-picker {
    border-color: #334155;
    background: linear-gradient(180deg,#111827,#0f172a);
}

body.dark .hcap-vip-icon-option,
body.dark .hcap-vip-icon-input button {
    color: #e5e7eb;
    border-color: #334155;
    background: #172033;
}

body.dark .hcap-vip-icon-option.is-selected {
    border-color: #a78bfa;
    background: linear-gradient(135deg,#312e81,#581c87);
}

body.dark .hcap-vip-icon-picker-head span {
    color: #cbd5e1;
}

@media (max-width: 760px) {
    .hcap-vip-icon-grid {
        grid-template-columns: repeat(8,minmax(0,1fr));
    }

    .hcap-vip-icon-option {
        height: 36px;
        font-size: 18px;
    }
}

@media (max-width: 420px) {
    .hcap-vip-icon-grid {
        grid-template-columns: repeat(6,minmax(0,1fr));
    }
}

.hcap-vip-preview {
    padding: 14px;
    border: 1px dashed #cfd6e2;
    border-radius: 13px;
    background: #fafbfe;
    text-align: center;
}

.hcap-vip-preview > small {
    display: block;
    margin-bottom: 10px;
    color: #8c97a9;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .12em;
}

#hcapVipPreview {
    min-height: 41px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
}

#hcapVipPreviewIcon {
    font-style: normal;
}

.hcap-preview-text-bold { font-weight: 900 !important; }
.hcap-preview-text-italic { font-style: italic; }
.hcap-preview-text-bold-italic { font-weight: 900 !important; font-style: italic; }
.hcap-preview-pulse { animation: hcap-pulse 1.7s ease-in-out infinite; }
.hcap-preview-glow { animation: hcap-glow 1.8s ease-in-out infinite; }
.hcap-preview-shimmer { background-size: 220% 100% !important; animation: hcap-shimmer 2.2s linear infinite; }
.hcap-preview-rainbow { background: linear-gradient(90deg,#ef4444,#f59e0b,#22c55e,#06b6d4,#6366f1,#d946ef) !important; background-size: 300% 100% !important; animation: hcap-rainbow 4s linear infinite; }

.hcap-search {
    min-width: 190px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    padding: 0 9px;
    border: 1px solid #dce2eb;
    border-radius: 10px;
    background: #fbfcfe;
}

.hcap-search i {
    color: #9aa5b5;
    font-size: 10px;
}

.hcap-search input {
    height: 35px;
    padding: 0;
    border: 0;
    background: transparent;
}

.hcap-vip-list {
    max-height: calc(96vh - 185px);
    overflow: auto;
    padding-right: 3px;
}

.hcap-vip-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 7px;
    border-bottom: 1px solid #edf0f5;
}

.hcap-vip-row:last-child {
    border-bottom: 0;
}

.hcap-vip-avatar {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 18px;
    box-shadow: 0 7px 16px rgba(15, 23, 42, .11);
}

.hcap-vip-meta {
    min-width: 0;
    flex: 1;
}

.hcap-vip-meta b,
.hcap-vip-meta span,
.hcap-vip-meta small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hcap-vip-meta b {
    color: #263147;
    font-size: 11px;
    font-weight: 900;
}

.hcap-vip-meta span {
    margin-top: 2px;
    color: #6d5dfc;
    font-size: 9px;
    font-weight: 800;
}

.hcap-vip-meta small {
    margin-top: 3px;
    color: #929daf;
    font-size: 8px;
}

.hcap-vip-actions {
    display: flex;
    gap: 6px;
}

.hcap-vip-actions button {
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    border: 1px solid #dce2eb;
    border-radius: 9px;
    color: #667389;
    background: #fff;
    font-size: 10px;
}

.hcap-vip-actions button:hover {
    color: #6d5dfc;
    border-color: #c8c2ff;
    background: #f5f3ff;
}

.hcap-vip-actions button.danger:hover {
    color: #dc2626;
    border-color: #fecaca;
    background: #fff1f2;
}

.hcap-table-wrap {
    overflow: auto;
}

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

.hcap-table th {
    padding: 10px;
    color: #8995a7;
    background: #f8fafc;
    font-size: 8px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
}

.hcap-table td {
    padding: 11px 10px;
    border-bottom: 1px solid #edf0f5;
    color: #58667b;
    font-size: 9px;
    vertical-align: middle;
}

.hcap-table td b,
.hcap-table td small {
    display: block;
}

.hcap-table td b {
    color: #263147;
    font-size: 10px;
}

.hcap-table td small {
    max-width: 430px;
    margin-top: 3px;
    overflow: hidden;
    color: #929daf;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hcap-log-icon {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #7c3aed;
    background: #f5f3ff;
}

.hcap-loading,
.hcap-error-state,
.hcap-empty {
    min-height: 180px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: #8a96a8;
    text-align: center;
    font-size: 11px;
}

.hcap-loading i,
.hcap-error-state > i {
    color: #7c3aed;
    font-size: 25px;
}

.hcap-error-state h3,
.hcap-error-state p {
    margin: 0;
}

.hcap-error-state h3 {
    color: #334155;
    font-size: 16px;
}

.hcap-toast {
    position: fixed;
    left: 50%;
    bottom: 25px;
    z-index: 2147483647;
    padding: 11px 16px;
    border-radius: 12px;
    color: #fff;
    background: #334155;
    box-shadow: 0 12px 35px rgba(15,23,42,.24);
    font-size: 11px;
    font-weight: 800;
    opacity: 0;
    transform: translate(-50%, 15px);
    transition: .22s ease;
}

.hcap-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.hcap-toast.success { background: #059669; }
.hcap-toast.warning { background: #d97706; }
.hcap-toast.error { background: #dc2626; }

/* VIP nick presentation in HChat user lists */
.hchat-vip-nick {
    position: relative;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 3px 8px;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, .2);
    border-radius: 8px;
    vertical-align: middle;
}

.hchat-vip-nick-text {
    position: relative;
    z-index: 1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hchat-vip-text-bold .hchat-vip-nick-text { font-weight: 900 !important; }
.hchat-vip-text-italic .hchat-vip-nick-text { font-style: italic !important; }
.hchat-vip-text-bold-italic .hchat-vip-nick-text { font-weight: 900 !important; font-style: italic !important; }
.hchat-vip-bg-pulse { animation: hcap-pulse 1.8s ease-in-out infinite; }
.hchat-vip-bg-glow { animation: hcap-glow 1.9s ease-in-out infinite; }
.hchat-vip-bg-shimmer { background-size: 220% 100% !important; animation: hcap-shimmer 2.2s linear infinite; }
.hchat-vip-bg-rainbow { background-image: linear-gradient(90deg,#ef4444,#f59e0b,#22c55e,#06b6d4,#6366f1,#d946ef) !important; background-size: 300% 100% !important; animation: hcap-rainbow 4s linear infinite; }
.hchat-vip-fx-pulse { animation: hcap-pulse 1.7s ease-in-out infinite; }
.hchat-vip-fx-bounce { animation: hcap-bounce 1.7s ease-in-out infinite; }
.hchat-vip-fx-spin { animation: hcap-spin 3s linear infinite; }
.hchat-vip-fx-glow { filter: drop-shadow(0 0 5px rgba(168,85,247,.55)); }
.hchat-vip-fx-shake { animation: hcap-shake 2.2s ease-in-out infinite; }

@keyframes hcap-spin { to { transform: rotate(360deg); } }
@keyframes hcap-pulse { 50% { transform: scale(1.035); filter: brightness(1.08); } }
@keyframes hcap-glow { 50% { box-shadow: 0 0 22px rgba(124,58,237,.48); filter: brightness(1.08); } }
@keyframes hcap-shimmer { to { background-position: -220% 0; } }
@keyframes hcap-rainbow { to { background-position: 300% 0; } }
@keyframes hcap-bounce { 50% { transform: translateY(-2px); } }
@keyframes hcap-shake { 0%,100% { transform: translateX(0); } 10%,30% { transform: translateX(-1px); } 20%,40% { transform: translateX(1px); } }

body.dark .hcap-shell {
    --hcap-bg: #111827;
    --hcap-panel: #172033;
    --hcap-text: #e7edf7;
    --hcap-muted: #95a2b8;
    --hcap-line: #2a3548;
}

body.dark .hcap-main,
body.dark .hcap-panel-view,
body.dark .hcap-login-view {
    background: #111827;
}

body.dark .hcap-topbar,
body.dark .hcap-card,
body.dark .hcap-login-card,
body.dark .hcap-stat {
    color: #e7edf7;
    border-color: #2b374b;
    background: #172033;
}

body.dark .hcap-topbar h2,
body.dark .hcap-card-head h3,
body.dark .hcap-stat b,
body.dark .hcap-login-card h2,
body.dark .hcap-info-list dd,
body.dark .hcap-vip-meta b,
body.dark .hcap-table td b {
    color: #e7edf7;
}

body.dark .hcap-form input,
body.dark .hcap-form select,
body.dark .hcap-password-wrap,
body.dark .hcap-search {
    color: #e7edf7;
    border-color: #334155;
    background: #101827;
}

body.dark .hcap-table th {
    color: #9ca8ba;
    background: #101827;
}

body.dark .hcap-table td,
body.dark .hcap-info-list > div,
body.dark .hcap-mini-log > div,
body.dark .hcap-vip-row {
    border-color: #2a3548;
}

@media (max-width: 1050px) {
    .hcap-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hcap-vip-layout,
    .hcap-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .hcap-vip-list {
        max-height: 460px;
    }
}

@media (max-width: 760px) {
    .hcap-overlay {
        padding: 0;
    }

    .hcap-shell {
        width: 100vw;
        height: 100dvh;
        grid-template-columns: 1fr;
        border-radius: 0;
    }

    .hcap-sidebar {
        position: absolute;
        inset: 0 auto 0 0;
        z-index: 5;
        width: min(280px, 86vw);
        transform: translateX(-105%);
        transition: .22s ease;
        box-shadow: 20px 0 50px rgba(2, 6, 23, .35);
    }

    .hcap-overlay.sidebar-open .hcap-sidebar {
        transform: translateX(0);
    }

    .hcap-mobile-menu {
        display: grid;
    }

    .hcap-topbar {
        min-height: 67px;
        padding: 10px 12px;
    }

    .hcap-panel-view {
        padding: 12px;
    }

    .hcap-stat-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .hcap-welcome {
        align-items: flex-start;
        flex-direction: column;
        padding: 17px;
    }

    .hcap-form {
        grid-template-columns: 1fr;
    }

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

    .hcap-card {
        padding: 14px;
        border-radius: 16px;
    }

    .hcap-card-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .hcap-search {
        width: 100%;
        min-width: 0;
        margin-left: 0;
    }

    .hcap-vip-layout {
        display: block;
    }

    .hcap-vip-list-card {
        margin-top: 12px;
    }

    .hcap-login-card {
        padding: 24px 18px;
    }

    .hcap-table {
        min-width: 680px;
    }
}


/* =========================================================
   HChat Admin Panel V2 - Kullanıcı Yönetimi
   ========================================================= */
.hcap-users-layout {
    display: grid;
    grid-template-columns: minmax(310px, .82fr) minmax(470px, 1.45fr);
    gap: 18px;
    align-items: start;
}

.hcap-users-list-card,
.hcap-user-detail-card {
    min-height: 640px;
}

.hcap-users-search {
    margin: 0 18px 14px;
    width: calc(100% - 36px);
}

.hcap-users-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 0 12px 16px;
    max-height: calc(100vh - 265px);
    overflow: auto;
}

.hcap-user-row {
    width: 100%;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    text-align: left;
    color: inherit;
    transition: .18s ease;
}

.hcap-user-row:hover {
    background: rgba(99, 102, 241, .07);
}

.hcap-user-row.active {
    border-color: rgba(99, 102, 241, .28);
    background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(236, 72, 153, .07));
    box-shadow: inset 3px 0 0 #6366f1;
}

.hcap-user-avatar,
.hcap-user-detail-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 50%;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #fff;
}

.hcap-user-avatar {
    width: 42px;
    height: 42px;
}

.hcap-user-detail-avatar {
    width: 72px;
    height: 72px;
    font-size: 24px;
    box-shadow: 0 10px 28px rgba(99, 102, 241, .24);
}

.hcap-user-avatar img,
.hcap-user-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hcap-user-row-main,
.hcap-user-row-side {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hcap-user-row-main b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hcap-user-row-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: .62;
}

.hcap-user-row-side {
    align-items: flex-end;
    font-size: 12px;
}

.hcap-user-row-side small.online,
.hcap-user-status.online {
    color: #16a34a;
}

.hcap-user-row-side small.away,
.hcap-user-status.away {
    color: #dc2626;
}

.hcap-user-detail-card {
    padding: 22px;
}

.hcap-user-detail-head {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--hcap-border, rgba(148,163,184,.2));
}

.hcap-user-detail-head > div {
    min-width: 0;
    flex: 1;
}

.hcap-user-detail-head small {
    letter-spacing: .12em;
    opacity: .58;
}

.hcap-user-detail-head h3 {
    margin: 4px 0;
    font-size: 23px;
}

.hcap-user-detail-head p {
    margin: 0;
    font-size: 13px;
    opacity: .72;
}

.hcap-user-detail-head p .ok {
    color: #16a34a;
}

.hcap-user-status {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(148, 163, 184, .12);
    font-size: 12px;
    font-weight: 800;
}

.hcap-user-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.hcap-user-facts > div {
    min-width: 0;
    padding: 12px;
    border-radius: 12px;
    background: rgba(99, 102, 241, .06);
    border: 1px solid rgba(99, 102, 241, .1);
}

.hcap-user-facts small,
.hcap-user-facts b {
    display: block;
}

.hcap-user-facts small {
    opacity: .58;
    margin-bottom: 4px;
}

.hcap-user-facts b {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hcap-user-section {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 14px;
    background: rgba(255,255,255,.36);
}

[data-theme="dark"] .hcap-user-section,
.dark .hcap-user-section {
    background: rgba(15,23,42,.24);
}

.hcap-user-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 11px;
    font-weight: 800;
    font-size: 13px;
}

.hcap-user-profile-form {
    display: grid;
    grid-template-columns: 1.3fr .65fr 1fr auto;
    gap: 9px;
    align-items: end;
}

.hcap-user-profile-form label {
    min-width: 0;
}

.hcap-user-profile-form label span {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    opacity: .65;
}

.hcap-user-profile-form input,
.hcap-user-points-form input,
.hcap-user-points-form select,
.hcap-user-channel-actions input,
.hcap-user-channel-actions select,
#hcapUserWarningText {
    width: 100%;
    border: 1px solid rgba(148,163,184,.26);
    border-radius: 10px;
    background: var(--hcap-input, rgba(255,255,255,.72));
    color: inherit;
    padding: 10px 11px;
    outline: none;
}

.hcap-user-points-form {
    display: grid;
    grid-template-columns: 1.2fr .8fr auto;
    gap: 9px;
}

#hcapUserWarningText {
    resize: vertical;
    min-height: 76px;
}

.hcap-warning-btn,
.hcap-secondary,
.hcap-danger-soft,
.hcap-danger {
    border: 0;
    border-radius: 10px;
    padding: 10px 13px;
    font-weight: 800;
    white-space: nowrap;
}

.hcap-secondary {
    background: #4f46e5;
    color: #fff;
}

.hcap-warning-btn {
    margin-top: 9px;
    background: #d97706;
    color: #fff;
}

.hcap-user-danger-zone {
    border-color: rgba(220,38,38,.2);
}

.hcap-user-channel-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr auto auto;
    gap: 9px;
}

.hcap-danger-soft {
    background: rgba(220,38,38,.1);
    color: #dc2626;
}

.hcap-danger {
    background: #dc2626;
    color: #fff;
}

.hcap-avatar-clear {
    margin-top: 10px;
}

.hcap-empty.compact {
    min-height: 0;
    padding: 10px;
}

@media (max-width: 1120px) {
    .hcap-users-layout {
        grid-template-columns: 1fr;
    }
    .hcap-users-list-card,
    .hcap-user-detail-card {
        min-height: 0;
    }
    .hcap-users-list {
        max-height: 420px;
    }
}

@media (max-width: 720px) {
    .hcap-user-detail-card {
        padding: 14px;
    }
    .hcap-user-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hcap-user-profile-form,
    .hcap-user-points-form,
    .hcap-user-channel-actions {
        grid-template-columns: 1fr;
    }
    .hcap-user-detail-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .hcap-user-status {
        margin-left: 87px;
        margin-top: -28px;
    }
}

/* =========================================================
   HChat Admin Panel V2.1 - Panel içi kaydırma düzeltmesi
   ========================================================= */
.hcap-shell,
.hcap-main,
.hcap-panel-view,
#hcapPanelView,
#hcapContent {
    min-height: 0;
}

.hcap-main {
    height: 100%;
    overflow: hidden;
}

.hcap-panel-view,
#hcapPanelView {
    flex: 1 1 auto;
    height: 0;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

#hcapContent {
    width: 100%;
    padding-bottom: 28px;
}

.hcap-users-layout {
    min-height: 0;
}

/* Kullanıcı listesi kendi içinde de kaydırılabilir. */
.hcap-users-list-card {
    min-height: 0;
    max-height: calc(min(900px, 96vh) - 122px);
    display: flex;
    flex-direction: column;
}

.hcap-users-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.hcap-user-detail-card {
    min-height: 640px;
}

@media (max-width: 1120px) {
    .hcap-users-list-card {
        max-height: 480px;
    }

    .hcap-user-detail-card {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .hcap-main {
        height: 100dvh;
    }

    .hcap-panel-view,
    #hcapPanelView {
        height: 0;
        padding-bottom: calc(22px + env(safe-area-inset-bottom));
    }

    #hcapContent {
        padding-bottom: calc(34px + env(safe-area-inset-bottom));
    }
}


/* =========================================================
   HChat Admin Panel V3 - Profil ve Avatar Yönetimi
   ========================================================= */
.hcap-profiles-layout {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    min-height: 0;
}

.hcap-profiles-list-card,
.hcap-profile-detail-card {
    min-width: 0;
}

.hcap-profiles-list-card {
    display: flex;
    flex-direction: column;
    min-height: 620px;
    max-height: calc(min(900px, 96vh) - 122px);
}

.hcap-profiles-search {
    margin: 4px 0 12px;
}

.hcap-profiles-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
}

.hcap-profile-row {
    width: 100%;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 6px;
    color: inherit;
    text-align: left;
    transition: .18s ease;
}

.hcap-profile-row:hover {
    background: rgba(79, 70, 229, .055);
    border-color: rgba(79, 70, 229, .14);
}

.hcap-profile-row.active {
    background: linear-gradient(135deg, rgba(79, 70, 229, .12), rgba(236, 72, 153, .08));
    border-color: rgba(79, 70, 229, .28);
    box-shadow: inset 3px 0 0 #4f46e5;
}

.hcap-profile-row-avatar,
.hcap-profile-detail-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 50%;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: #fff;
}

.hcap-profile-row-avatar {
    width: 44px;
    height: 44px;
}

.hcap-profile-row-avatar img,
.hcap-profile-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hcap-profile-row-main,
.hcap-profile-row-side {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hcap-profile-row-main b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hcap-profile-row-main small {
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hcap-profile-row-side {
    align-items: flex-end;
    gap: 2px;
}

.hcap-profile-row-side b {
    font-size: 12px;
}

.hcap-profile-row-side small {
    font-size: 11px;
    font-weight: 800;
}

.hcap-profile-row-side .online {
    color: #16a34a;
}

.hcap-profile-row-side .away {
    color: #d97706;
}

.hcap-profile-row-side .offline,
.hcap-user-status.offline {
    color: #64748b;
}

.hcap-profile-detail-card {
    min-height: 640px;
}

.hcap-profile-detail-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 17px;
    border-bottom: 1px solid rgba(148, 163, 184, .22);
}

.hcap-profile-avatar-stage {
    position: relative;
    flex: 0 0 auto;
}

.hcap-profile-detail-avatar {
    width: 84px;
    height: 84px;
    font-size: 27px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
}

.hcap-profile-avatar-state {
    position: absolute;
    left: 50%;
    bottom: -7px;
    transform: translateX(-50%);
    white-space: nowrap;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 9px;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 5px 12px rgba(15, 23, 42, .14);
}

.hcap-profile-avatar-state.custom {
    background: #16a34a;
}

.hcap-profile-avatar-state.default {
    background: #64748b;
}

.hcap-profile-detail-title {
    min-width: 0;
    flex: 1 1 auto;
}

.hcap-profile-detail-title > small {
    letter-spacing: .14em;
    color: #7c3aed;
}

.hcap-profile-detail-title h3 {
    margin: 3px 0 4px;
    font-size: 24px;
}

.hcap-profile-detail-title p {
    margin: 0;
    color: #64748b;
}

.hcap-profile-detail-title .ok {
    color: #16a34a;
}

.hcap-profile-facts {
    margin-top: 16px;
}

.hcap-profile-facts > div:last-child b {
    font-size: 11px;
    line-height: 1.35;
}

.hcap-profile-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hcap-profile-edit-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hcap-profile-edit-grid label > span {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
}

.hcap-profile-edit-grid input,
.hcap-avatar-url-row input {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, .32);
    border-radius: 11px;
    padding: 11px 12px;
    background: rgba(248, 250, 252, .9);
    color: inherit;
    outline: none;
}

.hcap-profile-edit-grid input:focus,
.hcap-avatar-url-row input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .11);
}

.hcap-profile-edit-grid .full {
    grid-column: 1 / -1;
}

.hcap-avatar-url-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.hcap-avatar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 10px;
}

.hcap-avatar-help {
    display: block;
    margin-top: 9px;
    color: #64748b;
    line-height: 1.45;
}

.hcap-danger-note {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

html[data-theme="dark"] .hcap-profile-edit-grid input,
html[data-theme="dark"] .hcap-avatar-url-row input,
body.dark .hcap-profile-edit-grid input,
body.dark .hcap-avatar-url-row input {
    background: rgba(15, 23, 42, .55);
    border-color: rgba(148, 163, 184, .25);
}

@media (max-width: 1120px) {
    .hcap-profiles-layout {
        grid-template-columns: 1fr;
    }

    .hcap-profiles-list-card {
        min-height: 0;
        max-height: 430px;
    }

    .hcap-profile-detail-card {
        min-height: 0;
    }
}

@media (max-width: 720px) {
    .hcap-profile-detail-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .hcap-profile-detail-avatar {
        width: 72px;
        height: 72px;
    }

    .hcap-profile-detail-head .hcap-user-status {
        margin-left: 88px;
        margin-top: -30px;
    }

    .hcap-profile-edit-grid,
    .hcap-avatar-url-row {
        grid-template-columns: 1fr;
    }

    .hcap-avatar-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   AVATAR ONAYLARI V3.2
   ========================================================= */
.hcap-nav button {
    position: relative;
}

.hcap-nav-badge {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-style: normal;
    font-weight: 900;
    box-shadow: 0 5px 12px rgba(239, 68, 68, .28);
}

.hcap-nav-badge[hidden] {
    display: none !important;
}

.hcap-approvals-page {
    min-height: 100%;
}

.hcap-approval-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 13px 15px;
    border: 1px solid rgba(59, 130, 246, .18);
    border-radius: 13px;
    background: rgba(59, 130, 246, .07);
    color: #475569;
    font-size: 12px;
    line-height: 1.55;
}

.hcap-approval-info i {
    color: #2563eb;
    margin-top: 2px;
}

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

.hcap-approval-card {
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 17px;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}

.hcap-approval-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(148, 163, 184, .2);
}

.hcap-approval-card header small {
    color: #d97706;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
}

.hcap-approval-card header h3 {
    margin: 3px 0;
    font-size: 19px;
}

.hcap-approval-card header p {
    margin: 0;
    color: #64748b;
    font-size: 11px;
}

.hcap-approval-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(245, 158, 11, .12);
    color: #b45309;
    font-size: 10px;
    font-weight: 900;
}

.hcap-approval-compare {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 15px 0;
}

.hcap-approval-compare > div > b {
    display: block;
    margin-bottom: 7px;
    color: #64748b;
    font-size: 10px;
    text-align: center;
}

.hcap-approval-image {
    aspect-ratio: 1;
    overflow: hidden;
    border: 2px solid rgba(148, 163, 184, .24);
    border-radius: 16px;
    background: #eef2f7;
}

.hcap-approval-image.requested {
    border-color: rgba(99, 102, 241, .46);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .08);
}

.hcap-approval-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hcap-approval-empty-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 10px;
}

.hcap-approval-empty-avatar i {
    font-size: 25px;
}

.hcap-approval-arrow {
    color: #6366f1;
}

.hcap-approval-reason {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hcap-approval-reason span {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
}

.hcap-approval-reason em {
    font-weight: 500;
}

.hcap-approval-reason input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, .3);
    border-radius: 11px;
    padding: 10px 11px;
    background: rgba(248, 250, 252, .9);
    color: inherit;
    outline: none;
}

.hcap-approval-reason input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
}

.hcap-approval-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.hcap-approval-actions button {
    width: auto;
}

.hcap-approval-empty {
    grid-column: 1 / -1;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #64748b;
}

.hcap-approval-empty i {
    margin-bottom: 12px;
    color: #22c55e;
    font-size: 48px;
}

.hcap-approval-empty h3 {
    margin: 0 0 6px;
    color: #0f172a;
}

.hcap-approval-empty p {
    max-width: 430px;
    margin: 0;
    line-height: 1.55;
}

.hcap-avatar-preview-popup .swal2-image {
    border-radius: 20px;
    object-fit: cover;
}

html[data-theme="dark"] .hcap-approval-card,
body.dark .hcap-approval-card {
    background: rgba(15, 23, 42, .7);
    border-color: rgba(148, 163, 184, .18);
}

html[data-theme="dark"] .hcap-approval-reason input,
body.dark .hcap-approval-reason input {
    background: rgba(15, 23, 42, .55);
    border-color: rgba(148, 163, 184, .22);
}

html[data-theme="dark"] .hcap-approval-empty h3,
body.dark .hcap-approval-empty h3 {
    color: #f8fafc;
}

@media (max-width: 1050px) {
    .hcap-approval-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .hcap-approval-compare {
        grid-template-columns: 1fr 1fr;
    }

    .hcap-approval-arrow {
        display: none;
    }

    .hcap-approval-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hcap-approval-actions button {
        width: 100%;
    }
}

/* V3.2.1 — Admin panelinden açılan Tenor seçicisi her zaman panelin üstünde */
.swal2-container.hcap-tenor-swal-layer,
.hcap-tenor-swal-layer {
    z-index: 2147483647 !important;
}

.swal2-container.hcap-tenor-swal-layer .swal2-popup,
.hcap-tenor-swal-popup {
    position: relative !important;
    z-index: 2147483647 !important;
}



/* V3.2.2 — Tenor seçicisini admin panelinin kendi stacking context'i içinde tut */
#hchatAdminOverlay > .swal2-container.hcap-tenor-swal-layer,
#hchatAdminOverlay .swal2-container.hcap-tenor-swal-layer {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 2147483647 !important;
    pointer-events: auto !important;
    overflow-y: auto !important;
}

#hchatAdminOverlay .hcap-tenor-swal-popup {
    position: relative !important;
    z-index: 2 !important;
    pointer-events: auto !important;
}

#hchatAdminOverlay:has(.hcap-tenor-swal-layer) .hcap-shell {
    pointer-events: none;
}

#hchatAdminOverlay:has(.hcap-tenor-swal-layer) .hcap-tenor-swal-layer,
#hchatAdminOverlay:has(.hcap-tenor-swal-layer) .hcap-tenor-swal-layer * {
    pointer-events: auto;
}


/* =========================================================
   V4 — DUYURU YÖNETİMİ
========================================================= */
.hcap-announcement-layout {
    display: grid;
    grid-template-columns: minmax(360px, .92fr) minmax(480px, 1.35fr);
    gap: 18px;
    align-items: start;
}

.hcap-announcement-form-card,
.hcap-announcement-list-card {
    min-width: 0;
}

.hcap-ann-form textarea {
    width: 100%;
    min-height: 112px;
    resize: vertical;
}

.hcap-check-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid var(--hcap-line);
    border-radius: 12px;
    background: #f8fafc;
}

.hcap-check-row input,
.hcap-ann-style-checks input {
    width: 17px !important;
    height: 17px !important;
    margin: 0;
}

.hcap-check-row span {
    font-size: 12px;
    font-weight: 800;
}

.hcap-ann-style-checks {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 9px 0 2px;
}

.hcap-ann-style-checks label {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
}

.hcap-ann-preview {
    padding: 13px;
    border: 1px dashed #cbd5e1;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

.hcap-ann-preview > small {
    display: block;
    margin-bottom: 9px;
    color: var(--hcap-muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
}

.hcap-ann-preview-bar {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 11px 12px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .07);
}

.hcap-ann-preview-bar > span {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
}

.hcap-ann-preview-bar b {
    display: block;
    margin-bottom: 4px;
    color: #1d4ed8;
    font-size: 12px;
}

.hcap-ann-preview-bar p {
    display: inline-block;
    margin: 0;
    line-height: 1.45;
    word-break: break-word;
}

.hcap-announcement-list {
    display: grid;
    gap: 10px;
}

.hcap-announcement-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid var(--hcap-line);
    border-radius: 15px;
    background: #fff;
}

.hcap-announcement-row-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    font-size: 20px;
}

.hcap-announcement-row-main {
    min-width: 0;
}

.hcap-announcement-row-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.hcap-announcement-row-head b {
    color: #1d4ed8;
    font-size: 13px;
}

.hcap-announcement-row-head span {
    overflow: hidden;
    color: var(--hcap-text);
    font-size: 12px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hcap-announcement-row-text {
    margin-bottom: 6px;
    color: var(--hcap-text);
    font-size: 12px;
    line-height: 1.45;
    word-break: break-word;
}

.hcap-announcement-row-main > small {
    color: var(--hcap-muted);
    font-size: 10px;
}

.hcap-announcement-actions {
    display: flex;
    gap: 6px;
}

.hcap-announcement-actions button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--hcap-line);
    border-radius: 10px;
    color: #475569;
    background: #fff;
}

.hcap-announcement-actions button.danger {
    color: #dc2626;
    background: #fff1f2;
    border-color: #fecdd3;
}

.hcap-danger-link {
    border: 1px solid #fecdd3 !important;
    color: #dc2626 !important;
    background: #fff1f2 !important;
}

.hcap-danger-link:disabled {
    opacity: .45;
    cursor: not-allowed;
}

@media (max-width: 1080px) {
    .hcap-announcement-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hcap-announcement-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .hcap-announcement-row-icon {
        width: 38px;
        height: 38px;
    }

    .hcap-announcement-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}


/* =========================================================
   HCHAT ADMIN V5 — KANAL YÖNETİMİ
========================================================= */

.hcap-channel-layout {
    display: grid;
    grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
}

.hcap-channel-list-card {
    align-self: start;
    position: sticky;
    top: 0;
    max-height: calc(100dvh - 142px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hcap-channel-search {
    margin: 0 18px 12px;
}

.hcap-channel-list {
    min-height: 150px;
    max-height: 430px;
    padding: 0 10px 12px;
    overflow-y: auto;
}

.hcap-channel-row {
    width: 100%;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 4px 0;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--hcap-text);
    background: transparent;
    text-align: left;
    transition: .18s ease;
}

.hcap-channel-row:hover {
    background: #f1f5ff;
    transform: translateX(2px);
}

.hcap-channel-row.active {
    border-color: rgba(109, 93, 252, .28);
    background: linear-gradient(135deg, rgba(109, 93, 252, .10), rgba(37, 99, 235, .08));
    box-shadow: 0 8px 20px rgba(37, 99, 235, .08);
}

.hcap-channel-row-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #6d5dfc, #2563eb);
}

.hcap-channel-row-copy {
    min-width: 0;
}

.hcap-channel-row-copy b,
.hcap-channel-row-copy small {
    display: block;
}

.hcap-channel-row-copy b {
    overflow: hidden;
    color: var(--hcap-text);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hcap-channel-row-copy small {
    margin-top: 3px;
    color: var(--hcap-muted);
    font-size: 9px;
}

.hcap-channel-row-status {
    padding: 5px 7px;
    border-radius: 999px;
    color: #64748b;
    background: #eef2f7;
    font-size: 8px;
    font-weight: 900;
}

.hcap-channel-row-status.joined {
    color: #047857;
    background: #d1fae5;
}

.hcap-channel-join-form {
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding: 14px 18px 18px;
    border-top: 1px solid var(--hcap-line);
    background: #fbfcff;
}

.hcap-channel-join-form > small {
    color: var(--hcap-muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.hcap-channel-join-form input {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid var(--hcap-line);
    border-radius: 11px;
    color: var(--hcap-text);
    background: #fff;
    font-size: 11px;
}

.hcap-channel-content {
    min-width: 0;
}

.hcap-channel-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 15px;
    padding: 18px 20px;
    border: 1px solid rgba(109, 93, 252, .18);
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 0%, rgba(109, 93, 252, .16), transparent 35%),
        linear-gradient(135deg, #fff, #f7f8ff);
    box-shadow: 0 13px 32px rgba(15, 23, 42, .07);
}

.hcap-channel-hero small {
    color: #6d5dfc;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
}

.hcap-channel-hero h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0 4px;
    color: var(--hcap-text);
    font-size: 21px;
}

.hcap-channel-hero h3 i {
    color: #6d5dfc;
    font-size: 17px;
}

.hcap-channel-hero p {
    margin: 0;
    color: var(--hcap-muted);
    font-size: 10px;
}

.danger-outline {
    padding: 10px 12px;
    border: 1px solid rgba(220, 38, 38, .22);
    border-radius: 11px;
    color: #dc2626;
    background: rgba(254, 226, 226, .7);
    font-size: 10px;
    font-weight: 900;
}

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

.hcap-channel-form {
    display: grid;
    gap: 10px;
    padding: 0 18px 18px;
}

.hcap-channel-form textarea,
.hcap-channel-form input,
.hcap-channel-form select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--hcap-line);
    border-radius: 12px;
    color: var(--hcap-text);
    background: #fff;
    font-size: 11px;
    outline: none;
}

.hcap-channel-form textarea:focus,
.hcap-channel-form input:focus,
.hcap-channel-form select:focus {
    border-color: rgba(109, 93, 252, .5);
    box-shadow: 0 0 0 3px rgba(109, 93, 252, .10);
}

.hcap-channel-form > small {
    color: var(--hcap-muted);
    font-size: 9px;
    line-height: 1.5;
}

.hcap-channel-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 0 18px;
}

.hcap-channel-mode {
    min-width: 0;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 9px;
    border: 1px solid var(--hcap-line);
    border-radius: 12px;
    color: var(--hcap-text);
    background: #fff;
    font-size: 9px;
    font-weight: 800;
    text-align: left;
}

.hcap-channel-mode i {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #6d5dfc;
    background: rgba(109, 93, 252, .10);
}

.hcap-channel-mode span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hcap-channel-mode em {
    color: #94a3b8;
    font-size: 8px;
    font-style: normal;
}

.hcap-channel-mode.active {
    border-color: rgba(5, 150, 105, .28);
    background: #ecfdf5;
}

.hcap-channel-mode.active i,
.hcap-channel-mode.active em {
    color: #047857;
    background: #d1fae5;
}

.hcap-channel-note {
    margin: 11px 18px 17px;
    color: var(--hcap-muted);
    font-size: 9px;
    line-height: 1.5;
}

.hcap-channel-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.hcap-channel-action-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hcap-channel-action-grid button {
    padding: 9px 7px;
    border: 1px solid var(--hcap-line);
    border-radius: 10px;
    color: #334155;
    background: #f8fafc;
    font-size: 9px;
    font-weight: 900;
}

.hcap-channel-action-grid button:hover {
    border-color: rgba(109, 93, 252, .30);
    color: #5b4be6;
    background: #f3f1ff;
}

.hcap-channel-action-grid button.danger {
    border-color: rgba(220, 38, 38, .18);
    color: #dc2626;
    background: #fff1f2;
}

.hcap-channel-ban-card {
    grid-column: 1 / -1;
}

.hcap-channel-permission-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #fde68a;
    border-radius: 13px;
    color: #92400e;
    background: #fffbeb;
    font-size: 9px;
    line-height: 1.55;
}

.hcap-channel-permission-note i {
    margin-top: 1px;
    color: #d97706;
}

@media (max-width: 1100px) {
    .hcap-channel-layout {
        grid-template-columns: 1fr;
    }

    .hcap-channel-list-card {
        position: static;
        max-height: none;
    }

    .hcap-channel-list {
        max-height: 270px;
    }
}

@media (max-width: 760px) {
    .hcap-channel-grid,
    .hcap-channel-modes {
        grid-template-columns: 1fr;
    }

    .hcap-channel-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .hcap-channel-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hcap-channel-ban-card {
        grid-column: auto;
    }
}
/* =========================================================
   HCHAT ADMIN V5.0.1 — TÜM MODAL / TENOR KATMAN KORUMASI
========================================================= */

#hchatAdminOverlay,
.hcap-overlay {
    z-index: 2147480000 !important;
}

/* SweetAlert, silme onayı, Kick + Ban, kanaldan ayrılma ve Tenor */
html body .swal2-container,
html body > .swal2-container,
#hchatAdminOverlay > .swal2-container,
#hchatAdminOverlay .swal2-container,
.hchat-admin-swal-layer,
.hcap-tenor-swal-layer {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 2147483647 !important;
    pointer-events: auto !important;
    isolation: isolate !important;
    overflow-y: auto !important;
}

html body .swal2-popup,
#hchatAdminOverlay .swal2-popup,
.hchat-admin-swal-popup,
.hcap-tenor-swal-popup {
    position: relative !important;
    z-index: 2 !important;
    pointer-events: auto !important;
}

#hchatAdminOverlay .hcap-shell {
    position: relative !important;
    z-index: 1 !important;
}

#hchatAdminOverlay:has(.swal2-container) .hcap-shell {
    pointer-events: none !important;
}

#hchatAdminOverlay:has(.swal2-container) .swal2-container,
#hchatAdminOverlay:has(.swal2-container) .swal2-container * {
    pointer-events: auto !important;
}


/* =========================================================
   HCHAT ADMIN V5.0.3 — İZOLE TENOR HEDEF SEÇİCİSİ
========================================================= */
.hcap-admin-tenor-isolated-layer {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    pointer-events: auto !important;
}

.hcap-admin-tenor-isolated-popup {
    width: min(470px, calc(100vw - 24px)) !important;
    max-height: calc(100dvh - 30px) !important;
    overflow-y: auto !important;
}

.hcap-admin-tenor-target {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(5, 150, 105, .22);
    border-radius: 13px;
    color: #065f46;
    background: #ecfdf5;
    text-align: left;
}

.hcap-admin-tenor-target > i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: #059669;
}

.hcap-admin-tenor-target span {
    font-size: 10px;
    font-weight: 800;
}

.hcap-admin-tenor-target b {
    padding: 6px 9px;
    border-radius: 999px;
    color: #fff;
    background: #047857;
    font-size: 11px;
}

.hcap-admin-tenor-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.hcap-admin-tenor-search input {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    outline: none;
}

.hcap-admin-tenor-search button,
.hcap-admin-tenor-more {
    padding: 10px 14px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #6d5dfc, #2563eb);
    font-size: 10px;
    font-weight: 900;
}

.hcap-admin-tenor-status {
    min-height: 30px;
    padding: 8px 2px 5px;
    color: #64748b;
    font-size: 10px;
    text-align: left;
}

.hcap-admin-tenor-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.hcap-admin-tenor-grid.saving {
    pointer-events: none;
    opacity: .55;
}

.hcap-admin-tenor-item {
    position: relative;
    min-width: 0;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #eef2f7;
}

.hcap-admin-tenor-item:hover {
    border-color: #059669;
}

.hcap-admin-tenor-item img {
    width: 100%;
    aspect-ratio: 1;
    display: block;
    object-fit: cover;
}

.hcap-admin-tenor-item span {
    position: absolute;
    right: 4px;
    bottom: 4px;
    padding: 4px 6px;
    border-radius: 7px;
    color: #fff;
    background: rgba(4, 120, 87, .92);
    font-size: 8px;
    font-weight: 900;
}

.hcap-admin-tenor-more {
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 520px) {
    .hcap-admin-tenor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hcap-admin-tenor-target {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .hcap-admin-tenor-target b {
        grid-column: 1 / -1;
        justify-self: stretch;
        text-align: center;
    }
}


/* =========================================================
   HCHAT ADMIN V6 — CEZA VE GÜVENLİK YÖNETİMİ
========================================================= */
.hcap-security-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 15px;
}

.hcap-security-layout {
    display: grid;
    grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
}

.hcap-security-form-card {
    align-self: start;
}

.hcap-security-form {
    display: grid;
    gap: 11px;
    padding: 0 18px 18px;
}

.hcap-security-form label {
    display: grid;
    gap: 6px;
}

.hcap-security-form label > span {
    color: var(--hcap-muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hcap-security-form input,
.hcap-security-form select,
.hcap-security-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--hcap-line);
    border-radius: 11px;
    color: var(--hcap-text);
    background: #fff;
    font-size: 11px;
    outline: none;
}

.hcap-security-form input:focus,
.hcap-security-form select:focus,
.hcap-security-form textarea:focus {
    border-color: rgba(109, 93, 252, .48);
    box-shadow: 0 0 0 3px rgba(109, 93, 252, .10);
}

.hcap-security-warning {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 18px 18px;
    padding: 11px 12px;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    color: #075985;
    background: #f0f9ff;
    font-size: 9px;
    line-height: 1.5;
}

.hcap-security-list-card {
    min-width: 0;
    overflow: hidden;
}

.hcap-security-head {
    gap: 14px;
}

.hcap-security-head .hcap-search {
    width: min(290px, 46%);
}

.hcap-security-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 18px 12px;
}

.hcap-security-filters button {
    padding: 7px 10px;
    border: 1px solid var(--hcap-line);
    border-radius: 999px;
    color: #64748b;
    background: #fff;
    font-size: 9px;
    font-weight: 900;
}

.hcap-security-filters button.active {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, #6d5dfc, #2563eb);
}

.hcap-security-list {
    max-height: 610px;
    padding: 0 12px 14px;
    overflow-y: auto;
}

.hcap-sanction-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: start;
    gap: 11px;
    margin: 6px 0;
    padding: 12px;
    border: 1px solid var(--hcap-line);
    border-radius: 14px;
    background: #fff;
}

.hcap-sanction-item.active {
    border-color: rgba(220, 38, 38, .22);
    background: linear-gradient(135deg, #fff, #fff7f7);
}

.hcap-sanction-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.hcap-sanction-icon.nick_ban {
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

.hcap-sanction-icon.ip_ban {
    background: linear-gradient(135deg, #7c3aed, #4338ca);
}

.hcap-sanction-copy {
    min-width: 0;
}

.hcap-sanction-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hcap-sanction-title b {
    min-width: 0;
    overflow: hidden;
    color: var(--hcap-text);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hcap-sanction-title span {
    padding: 4px 7px;
    border-radius: 999px;
    color: #64748b;
    background: #eef2f7;
    font-size: 8px;
    font-weight: 900;
}

.hcap-sanction-title span.active {
    color: #b91c1c;
    background: #fee2e2;
}

.hcap-sanction-title span.warning {
    color: #92400e;
    background: #fef3c7;
}

.hcap-sanction-copy > small,
.hcap-sanction-copy > em {
    display: block;
    margin-top: 4px;
    color: var(--hcap-muted);
    font-size: 8px;
    font-style: normal;
}

.hcap-sanction-copy p {
    margin: 7px 0 0;
    color: #334155;
    font-size: 10px;
    line-height: 1.45;
}

.hcap-sanction-actions button {
    padding: 8px 9px;
    border: 1px solid rgba(5, 150, 105, .25);
    border-radius: 10px;
    color: #047857;
    background: #ecfdf5;
    font-size: 9px;
    font-weight: 900;
}

@media (max-width: 1080px) {
    .hcap-security-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .hcap-security-summary {
        grid-template-columns: 1fr;
    }

    .hcap-security-head {
        align-items: stretch;
        flex-direction: column;
    }

    .hcap-security-head .hcap-search {
        width: 100%;
    }

    .hcap-sanction-item {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .hcap-sanction-actions {
        grid-column: 1 / -1;
    }

    .hcap-sanction-actions button {
        width: 100%;
    }
}


/* =========================================================
   HCHAT ADMIN V7 — SİSTEM İZLEME & BAKIM MERKEZİ
========================================================= */

.hcap-system-hero {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(5, 150, 105, .18);
    border-radius: 19px;
    background:
        radial-gradient(circle at 92% 0%, rgba(16, 185, 129, .14), transparent 34%),
        linear-gradient(135deg, #fff, #f0fdf9);
    box-shadow: 0 15px 35px rgba(15, 23, 42, .07);
}

.hcap-system-hero.maintenance {
    border-color: rgba(217, 119, 6, .25);
    background:
        radial-gradient(circle at 92% 0%, rgba(245, 158, 11, .17), transparent 34%),
        linear-gradient(135deg, #fff, #fffbeb);
}

.hcap-system-hero-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: #fff;
    font-size: 22px;
    background: linear-gradient(145deg, #059669, #10b981);
    box-shadow: 0 12px 25px rgba(5, 150, 105, .25);
}

.hcap-system-hero.maintenance .hcap-system-hero-icon {
    background: linear-gradient(145deg, #d97706, #f59e0b);
    box-shadow: 0 12px 25px rgba(217, 119, 6, .25);
}

.hcap-system-hero small {
    color: #059669;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .11em;
}

.hcap-system-hero.maintenance small {
    color: #b45309;
}

.hcap-system-hero h3 {
    margin: 5px 0 4px;
    color: var(--hcap-text);
    font-size: 20px;
}

.hcap-system-hero p {
    margin: 0;
    color: var(--hcap-muted);
    font-size: 10px;
}

.hcap-system-hero > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .06em;
}

.hcap-system-hero > span.online {
    color: #047857;
    background: #d1fae5;
}

.hcap-system-hero > span.warning {
    color: #92400e;
    background: #fef3c7;
}

.hcap-system-hero > span i {
    font-size: 7px;
}

.hcap-system-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 16px;
}

.hcap-system-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.hcap-system-health-card,
.hcap-maintenance-card {
    min-height: 100%;
}

.hcap-system-meter-list {
    display: grid;
    gap: 16px;
    padding: 0 18px 17px;
}

.hcap-system-meter > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.hcap-system-meter span {
    color: #334155;
    font-size: 10px;
    font-weight: 800;
}

.hcap-system-meter b {
    color: var(--hcap-text);
    font-size: 11px;
}

.hcap-system-meter progress {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #e8edf5;
    appearance: none;
}

.hcap-system-meter progress::-webkit-progress-bar {
    border-radius: 999px;
    background: #e8edf5;
}

.hcap-system-meter progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, #6d5dfc, #2563eb);
}

.hcap-system-meter progress::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #6d5dfc, #2563eb);
}

.hcap-system-meter small {
    display: block;
    margin-top: 5px;
    color: var(--hcap-muted);
    font-size: 8px;
}

.hcap-system-info-list {
    margin-top: 0;
    border-top: 1px solid var(--hcap-line);
}

.hcap-maintenance-card.active {
    border-color: rgba(217, 119, 6, .27);
}

.hcap-maintenance-body {
    display: grid;
    gap: 13px;
    padding: 0 18px 18px;
}

.hcap-maintenance-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
}

.hcap-maintenance-state > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #475569;
    font-size: 10px;
    font-weight: 900;
}

.hcap-maintenance-state > span.active {
    color: #b45309;
}

.hcap-maintenance-state > span i {
    color: #10b981;
    font-size: 7px;
}

.hcap-maintenance-state > span.active i {
    color: #f59e0b;
}

.hcap-maintenance-state > small {
    color: var(--hcap-muted);
    font-size: 8px;
}

.hcap-maintenance-body label:not(.hcap-check-row) {
    display: grid;
    gap: 6px;
}

.hcap-maintenance-body label > span {
    color: #475569;
    font-size: 9px;
    font-weight: 800;
}

.hcap-maintenance-body textarea {
    width: 100%;
    resize: vertical;
    min-height: 92px;
    padding: 11px 12px;
    border: 1px solid var(--hcap-line);
    border-radius: 12px;
    color: var(--hcap-text);
    background: #fff;
    font: 500 11px/1.5 Inter, sans-serif;
    outline: none;
}

.hcap-maintenance-body textarea:focus {
    border-color: rgba(109, 93, 252, .5);
    box-shadow: 0 0 0 3px rgba(109, 93, 252, .10);
}

.hcap-maintenance-on,
.hcap-maintenance-off {
    padding: 11px 13px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.hcap-maintenance-on {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    box-shadow: 0 10px 22px rgba(217, 119, 6, .22);
}

.hcap-maintenance-off {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 10px 22px rgba(5, 150, 105, .20);
}

.hcap-system-files-card,
.hcap-system-log-card {
    grid-column: 1 / -1;
}

.hcap-system-file-icon {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #2563eb;
    background: #dbeafe;
}

.hcap-system-file-icon.missing {
    color: #dc2626;
    background: #fee2e2;
}

.hcap-system-missing {
    color: #dc2626;
    font-size: 9px;
    font-weight: 800;
}

.hcap-system-log-tabs {
    display: inline-flex;
    padding: 3px;
    border-radius: 10px;
    background: #eef2f7;
}

.hcap-system-log-tabs button {
    padding: 6px 9px;
    border: 0;
    border-radius: 8px;
    color: #64748b;
    background: transparent;
    font-size: 9px;
    font-weight: 900;
}

.hcap-system-log-tabs button.active {
    color: #fff;
    background: linear-gradient(135deg, #6d5dfc, #2563eb);
}

.hcap-system-log-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 18px 10px;
    padding: 9px 11px;
    border: 1px solid var(--hcap-line);
    border-radius: 10px;
    color: #475569;
    background: #f8fafc;
    font-size: 8px;
}

.hcap-system-log-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hcap-system-log-meta small {
    flex: 0 0 auto;
    color: var(--hcap-muted);
}

.hcap-system-log {
    max-height: 390px;
    margin: 0 18px 18px;
    padding: 15px;
    overflow: auto;
    border: 1px solid #1e293b;
    border-radius: 13px;
    color: #dbeafe;
    background: #0f172a;
    font: 500 10px/1.55 "SFMono-Regular", Consolas, monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

.hcap-system-log-empty {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 120px;
    margin: 0 18px 18px;
    padding: 20px;
    border: 1px dashed var(--hcap-line);
    border-radius: 13px;
    color: var(--hcap-muted);
    background: #fafbfe;
    text-align: center;
}

.hcap-system-log-empty i {
    font-size: 25px;
}

.hcap-system-log-empty b {
    color: var(--hcap-text);
    font-size: 11px;
}

.hcap-system-log-empty small {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 8px;
}

.hcap-system-restart-card {
    grid-column: 1 / -1;
    border-color: rgba(220, 38, 38, .16);
}

.hcap-system-restart-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 18px 18px;
}

.hcap-system-restart-body p {
    margin: 0;
    color: var(--hcap-muted);
    font-size: 9px;
    line-height: 1.55;
}

.hcap-system-restart-body p b {
    color: var(--hcap-text);
}

.hcap-system-restart-body code {
    padding: 2px 5px;
    border-radius: 5px;
    color: #7c3aed;
    background: #f3e8ff;
}

.hcap-system-restart-body button {
    flex: 0 0 auto;
    padding: 10px 12px;
    border: 1px solid rgba(220, 38, 38, .18);
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    font-size: 9px;
    font-weight: 900;
    box-shadow: 0 9px 20px rgba(220, 38, 38, .20);
}

.hcap-system-restart-body button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.hcap-restarting-state {
    min-height: 420px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: var(--hcap-muted);
    text-align: center;
}

.hcap-restarting-state i {
    color: #6d5dfc;
    font-size: 37px;
}

.hcap-restarting-state h3 {
    margin: 5px 0 0;
    color: var(--hcap-text);
    font-size: 18px;
}

.hcap-restarting-state p {
    margin: 0;
    font-size: 10px;
}

@media (max-width: 1100px) {
    .hcap-system-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hcap-system-layout {
        grid-template-columns: 1fr;
    }

    .hcap-system-files-card,
    .hcap-system-log-card,
    .hcap-system-restart-card {
        grid-column: auto;
    }
}

@media (max-width: 680px) {
    .hcap-system-hero {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .hcap-system-hero-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 18px;
    }

    .hcap-system-hero > span {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .hcap-system-stat-grid {
        grid-template-columns: 1fr;
    }

    .hcap-system-restart-body,
    .hcap-system-log-meta,
    .hcap-maintenance-state {
        align-items: stretch;
        flex-direction: column;
    }

    .hcap-system-restart-body button {
        width: 100%;
    }
}

/* =========================================================
   HCHAT ADMIN V8 — PROFIL VE RESİM YÖNETİMİ
========================================================= */

.hcap-profile-cover-stage {
    min-height: 150px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin: -1px -1px 0;
    border-radius: 18px 18px 0 0;
    color: #64748b;
    background:
        radial-gradient(circle at 20% 15%, rgba(109, 93, 252, .22), transparent 34%),
        linear-gradient(135deg, #dbeafe, #ede9fe);
}

.hcap-profile-cover-stage img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.hcap-profile-cover-stage > div {
    display: grid;
    place-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 800;
}

.hcap-profile-cover-stage i {
    font-size: 29px;
    opacity: .7;
}

.hcap-profile-detail-card .hcap-profile-detail-head {
    margin-top: -30px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
}

.hcap-profile-avatar-state.forced {
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.hcap-profile-edit-grid-v8 textarea {
    width: 100%;
    resize: vertical;
    min-height: 76px;
    padding: 10px 11px;
    border: 1px solid var(--hcap-line);
    border-radius: 11px;
    color: var(--hcap-text);
    background: #fff;
    font: 500 11px/1.5 Inter, sans-serif;
}

.hcap-profile-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.hcap-profile-form-actions button {
    min-height: 39px;
}

.hcap-force-avatar-box {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, .8fr);
    gap: 12px;
    margin-top: 13px;
    padding: 13px;
    border: 1px solid var(--hcap-line);
    border-radius: 14px;
    background: #f8fafc;
}

.hcap-force-avatar-box.active {
    border-color: rgba(124, 58, 237, .28);
    background: linear-gradient(135deg, rgba(124, 58, 237, .08), rgba(109, 93, 252, .05));
}

.hcap-force-avatar-box > div:first-child b,
.hcap-force-avatar-box > div:first-child small {
    display: block;
}

.hcap-force-avatar-box > div:first-child b {
    color: var(--hcap-text);
    font-size: 11px;
}

.hcap-force-avatar-box > div:first-child small {
    margin-top: 4px;
    color: var(--hcap-muted);
    font-size: 8px;
    line-height: 1.45;
}

.hcap-force-avatar-box select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--hcap-line);
    border-radius: 10px;
    color: var(--hcap-text);
    background: #fff;
    font-size: 10px;
}

.hcap-force-avatar-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.hcap-force-avatar-actions button {
    min-height: 38px;
}

.hcap-cover-preview-admin {
    height: 150px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-bottom: 11px;
    border: 1px solid var(--hcap-line);
    border-radius: 14px;
    color: var(--hcap-muted);
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
}

.hcap-cover-preview-admin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hcap-cover-preview-admin > div {
    display: grid;
    place-items: center;
    gap: 7px;
    font-size: 9px;
    font-weight: 800;
}

.hcap-cover-preview-admin i {
    font-size: 25px;
}

.hcap-preset-create-row {
    display: grid;
    grid-template-columns: minmax(140px, .7fr) minmax(220px, 1.4fr) auto auto;
    gap: 8px;
    margin-bottom: 13px;
}

.hcap-preset-create-row input {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid var(--hcap-line);
    border-radius: 11px;
    color: var(--hcap-text);
    background: #fff;
    font-size: 10px;
}

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

.hcap-preset-avatar-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 32px 32px;
    align-items: center;
    gap: 9px;
    padding: 9px;
    border: 1px solid var(--hcap-line);
    border-radius: 13px;
    background: #fbfcff;
}

.hcap-preset-avatar-card > img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 12px;
}

.hcap-preset-avatar-card > div {
    min-width: 0;
}

.hcap-preset-avatar-card b,
.hcap-preset-avatar-card small {
    display: block;
}

.hcap-preset-avatar-card b {
    overflow: hidden;
    color: var(--hcap-text);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hcap-preset-avatar-card small {
    margin-top: 3px;
    color: var(--hcap-muted);
    font-size: 8px;
}

.hcap-preset-avatar-card button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: #5b4be6;
    background: #ede9fe;
}

.hcap-preset-avatar-card button.danger {
    color: #dc2626;
    background: #fee2e2;
}

.hcap-media-approval-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 0 18px 13px;
}

.hcap-media-approval-tabs button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 12px;
    border: 1px solid var(--hcap-line);
    border-radius: 12px;
    color: #475569;
    background: #f8fafc;
    font-size: 10px;
    font-weight: 900;
}

.hcap-media-approval-tabs button.active {
    border-color: rgba(109, 93, 252, .3);
    color: #fff;
    background: linear-gradient(135deg, #6d5dfc, #2563eb);
    box-shadow: 0 9px 20px rgba(37, 99, 235, .16);
}

.hcap-media-approval-tabs em {
    min-width: 22px;
    padding: 3px 6px;
    border-radius: 999px;
    color: inherit;
    background: rgba(255, 255, 255, .18);
    font-size: 8px;
    font-style: normal;
}

.hcap-approval-grid.cover-grid {
    grid-template-columns: 1fr;
}

.hcap-approval-card.cover .hcap-approval-image {
    width: 100%;
    height: 118px;
    border-radius: 12px;
}

.hcap-approval-card.cover .hcap-approval-compare {
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
}

.hcap-approval-image.cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hcap-media-history-card {
    margin-top: 16px;
}

.hcap-media-type-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 999px;
    color: #5b4be6;
    background: #ede9fe;
    font-size: 8px;
    font-weight: 900;
}

.hcap-media-type-pill.cover {
    color: #0369a1;
    background: #e0f2fe;
}

@media (max-width: 900px) {
    .hcap-force-avatar-box,
    .hcap-preset-create-row {
        grid-template-columns: 1fr;
    }

    .hcap-force-avatar-actions,
    .hcap-profile-form-actions {
        grid-template-columns: 1fr;
    }

    .hcap-preset-avatar-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hcap-media-approval-tabs {
        grid-template-columns: 1fr;
    }

    .hcap-approval-card.cover .hcap-approval-compare {
        grid-template-columns: 1fr;
    }

    .hcap-approval-card.cover .hcap-approval-arrow {
        transform: rotate(90deg);
    }
}


/* =========================================================
   HCHAT ADMIN V9 — DUYURU YÖNETİMİ TAMAMLAMA
========================================================= */
.hcap-announcement-v9-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 16px;
}

.hcap-announcement-v9-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.hcap-ann-history-card { grid-column: 1 / -1; }

.hcap-ann-template-use-row,
.hcap-ann-template-save-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.hcap-ann-template-use-row button,
.hcap-ann-template-save-box button {
    padding: 9px 12px;
    border: 1px solid rgba(109, 93, 252, .22);
    border-radius: 11px;
    color: #5b4be6;
    background: #f3f1ff;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.hcap-ann-target-box {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid rgba(37, 99, 235, .16);
    border-radius: 13px;
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
}

.hcap-ann-target-box > small {
    color: #4f46e5;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.hcap-ann-target-box label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 10px;
    font-weight: 800;
}

.hcap-ann-target-box input { width: 17px !important; height: 17px !important; }

.hcap-ann-schedule-row,
.hcap-ann-template-row { align-items: start; }

.hcap-ann-status {
    display: inline-flex;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
}

.hcap-ann-status.scheduled { color: #1d4ed8; background: #dbeafe; }
.hcap-ann-status.paused { color: #92400e; background: #fef3c7; }
.hcap-ann-status.completed { color: #047857; background: #d1fae5; }

.hcap-announcement-history {
    display: grid;
    gap: 8px;
    max-height: 520px;
    padding: 0 18px 18px;
    overflow-y: auto;
}

.hcap-ann-history-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 11px 12px;
    border: 1px solid var(--hcap-line);
    border-radius: 13px;
    background: #fff;
}

.hcap-ann-history-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #6d5dfc;
    background: #ede9fe;
}

.hcap-ann-history-row b {
    display: block;
    color: var(--hcap-text);
    font-size: 10px;
}

.hcap-ann-history-row p {
    margin: 4px 0;
    color: #475569;
    font-size: 10px;
    line-height: 1.45;
    word-break: break-word;
}

.hcap-ann-history-row small {
    color: var(--hcap-muted);
    font-size: 8px;
    line-height: 1.45;
}

@media (max-width: 1100px) {
    .hcap-announcement-v9-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hcap-announcement-v9-grid { grid-template-columns: 1fr; }
    .hcap-ann-history-card { grid-column: auto; }
}

@media (max-width: 640px) {
    .hcap-announcement-v9-summary { grid-template-columns: 1fr; }
    .hcap-ann-template-use-row,
    .hcap-ann-template-save-box { grid-template-columns: 1fr; }
    .hcap-ann-template-use-row button,
    .hcap-ann-template-save-box button { width: 100%; }
}

/* =========================================================
   MODÜL 9-12 — ORTAK YÖNETİM ARAYÜZÜ
========================================================= */
.hcap-module-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:16px}.hcap-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.hcap-module-wide{grid-column:1/-1}.hcap-module-form{display:grid;gap:11px;padding:0 18px 18px}.hcap-module-form label:not(.hcap-check-row):not(.hcap-module-check):not(.hcap-game-toggle):not(.hcap-notify-policy){display:grid;gap:6px}.hcap-module-form label>span{color:#475569;font-size:9px;font-weight:800}.hcap-module-form input:not([type=checkbox]),.hcap-module-form select,.hcap-module-form textarea{width:100%;min-width:0;padding:10px 11px;border:1px solid var(--hcap-line);border-radius:11px;color:var(--hcap-text);background:#fff;font:500 10px/1.45 Inter,sans-serif;outline:none}.hcap-module-form textarea{min-height:76px;resize:vertical}.hcap-module-form input:focus,.hcap-module-form select:focus,.hcap-module-form textarea:focus{border-color:rgba(109,93,252,.52);box-shadow:0 0 0 3px rgba(109,93,252,.1)}.hcap-module-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hcap-module-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hcap-module-check,.hcap-game-toggle,.hcap-notify-policy{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid var(--hcap-line);border-radius:11px;background:#f8fafc}.hcap-module-check input,.hcap-game-toggle input,.hcap-notify-policy input{accent-color:#6d5dfc}.hcap-module-list{display:grid;gap:7px;max-height:320px;padding:0 12px 14px;overflow:auto}.hcap-module-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto auto;align-items:center;gap:9px;padding:9px;border:1px solid var(--hcap-line);border-radius:12px;background:#fbfcff}.hcap-module-row>div{min-width:0}.hcap-module-row b,.hcap-module-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hcap-module-row b{color:var(--hcap-text);font-size:10px}.hcap-module-row small{margin-top:3px;color:var(--hcap-muted);font-size:8px}.hcap-module-row button,.hcap-module-form>button:not(.hcap-primary),.hcap-card-head>button{padding:7px 9px;border:1px solid var(--hcap-line);border-radius:9px;color:#475569;background:#fff;font-size:9px;font-weight:850}.hcap-module-row button.danger,.hcap-table-action.danger{color:#dc2626;background:#fff1f2;border-color:#fecaca}.hcap-module-icon{width:36px;height:36px;display:grid;place-items:center;overflow:hidden;border-radius:10px;color:#5b4be6;background:#ede9fe;font-size:17px}.hcap-module-icon img{width:100%;height:100%;object-fit:cover}.hcap-level-row{display:grid;grid-template-columns:52px minmax(0,1fr) 85px 85px;gap:7px}.hcap-rule-row{display:grid;grid-template-columns:minmax(0,1.4fr) 75px minmax(0,1fr) 80px auto;gap:7px;align-items:center;padding:9px;border:1px solid var(--hcap-line);border-radius:12px;background:#f8fafc}.hcap-rule-row>label{display:flex!important;align-items:center;gap:5px;font-size:8px}.hcap-game-toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hcap-game-toggle span{color:var(--hcap-text);font-size:10px;font-weight:850}.hcap-notify-policy{display:grid;grid-template-columns:auto 38px minmax(0,1fr)}.hcap-notify-policy>span:last-child b,.hcap-notify-policy>span:last-child small{display:block}.hcap-notify-policy b{color:var(--hcap-text);font-size:10px}.hcap-notify-policy small{margin-top:3px;color:var(--hcap-muted);font-size:8px}.hcap-table td button[data-g-kick]{margin:2px;padding:4px 6px;border:1px solid var(--hcap-line);border-radius:7px;color:#475569;background:#f8fafc;font-size:8px}@media(max-width:1100px){.hcap-module-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hcap-module-grid{grid-template-columns:1fr}.hcap-module-wide{grid-column:auto}}@media(max-width:680px){.hcap-module-stats,.hcap-module-columns,.hcap-module-check-grid,.hcap-game-toggle-grid{grid-template-columns:1fr}.hcap-level-row{grid-template-columns:45px minmax(0,1fr)}.hcap-rule-row{grid-template-columns:1fr 70px}}


/* HCHAT PUAN MAGAZASI V1.0 */
#hchat-pointshop-fab{position:fixed;right:18px;bottom:88px;z-index:2147481000;border:0;border-radius:16px;padding:9px 12px;display:flex;align-items:center;gap:7px;color:#fff;background:linear-gradient(135deg,#7c3aed,#2563eb);box-shadow:0 12px 35px rgba(37,99,235,.3);font:800 11px Inter,Arial;cursor:pointer}#hchat-pointshop-fab span{font-size:18px}.hps-popup{padding:0!important;border-radius:26px!important;overflow:hidden}.hps-shell{text-align:left;color:#172033}.hps-head{display:flex;justify-content:space-between;gap:20px;padding:27px;background:linear-gradient(135deg,#172033,#312e81);color:#fff}.hps-head small{font-size:9px;letter-spacing:.15em;font-weight:900;color:#c4b5fd}.hps-head h2{margin:5px 0;font-size:26px}.hps-head p{margin:0;color:#cbd5e1;font-size:12px}.hps-balance{min-width:175px;padding:14px 18px;border:1px solid rgba(255,255,255,.15);border-radius:18px;background:rgba(255,255,255,.09);text-align:right}.hps-balance span,.hps-balance small{display:block;font-size:10px;color:#cbd5e1}.hps-balance b{display:block;font-size:27px;color:#fde68a}.hps-tabs{display:flex;padding:0 24px;border-bottom:1px solid #e5e7eb;background:#fff}.hps-tabs button{padding:14px 16px;border:0;border-bottom:3px solid transparent;background:none;font-weight:850;font-size:12px}.hps-tabs button.active{color:#6d28d9;border-color:#7c3aed}.hps-pane{display:none;padding:22px;background:#f5f7fb;max-height:58vh;overflow:auto}.hps-pane.active{display:block}.hps-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hps-card{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:13px;align-items:center;padding:15px;border:1px solid #e2e8f0;border-radius:18px;background:#fff}.hps-icon{width:50px;height:50px;display:grid;place-items:center;border-radius:15px;background:#f3e8ff;font-size:25px}.hps-copy h3{margin:0;font-size:14px}.hps-copy p{margin:5px 0 8px;color:#64748b;font-size:10px}.hps-meta{display:flex;gap:12px;color:#7c3aed;font-size:9px;font-weight:800}.hps-buy{border:0;border-radius:11px;padding:10px 12px;color:#fff;background:#6d28d9;font-size:10px;font-weight:900}.hps-buy:disabled{color:#94a3b8;background:#e2e8f0}.hps-history-row{display:grid;grid-template-columns:35px 1fr auto;align-items:center;gap:10px;padding:12px;border-bottom:1px solid #e5e7eb;background:#fff}.hps-history-row b,.hps-history-row small{display:block}.hps-history-row small{color:#64748b;font-size:9px}.hps-history-row em{color:#059669;font-size:9px;font-style:normal;font-weight:900}.hps-confirm dl{margin:15px 0 0}.hps-confirm dl div{display:flex;justify-content:space-between;padding:8px;border-bottom:1px solid #eee}.hps-success div{font-size:55px}.hps-success b,.hps-success span{display:block}.hps-success span{margin-top:6px;color:#64748b}.hps-loading{padding:30px}.hps-empty{padding:35px;text-align:center;color:#64748b}.hcap-pointshop-table{display:grid;gap:7px}.hcap-pointshop-th,.hcap-pointshop-row{display:grid;grid-template-columns:minmax(260px,1fr) 110px 90px 90px;gap:10px;align-items:center}.hcap-pointshop-th{padding:8px;color:#64748b;font-size:9px;font-weight:900}.hcap-pointshop-row{padding:11px;border:1px solid #e5e7eb;border-radius:13px}.hcap-pointshop-row>div{display:grid;grid-template-columns:50px 1fr;gap:6px}.hcap-pointshop-row textarea{grid-column:1/-1;min-height:44px}.hcap-pointshop-row input,.hcap-pointshop-row textarea{width:100%;border:1px solid #dbe1ea;border-radius:8px;padding:7px;font-size:10px}.hcap-pointshop-history>div{display:grid;grid-template-columns:30px 100px 1fr 100px 140px;gap:8px;padding:9px;border-bottom:1px solid #edf0f5;font-size:10px}.hcap-pointshop-history em{font-style:normal}.hcap-pointshop-history strong{color:#dc2626}@media(max-width:700px){#hchat-pointshop-fab{right:10px;bottom:75px}.hps-head{display:block}.hps-balance{margin-top:15px;text-align:left}.hps-grid{grid-template-columns:1fr}.hps-card{grid-template-columns:48px 1fr}.hps-buy{grid-column:1/-1}.hcap-pointshop-th{display:none}.hcap-pointshop-row{grid-template-columns:1fr}.hcap-pointshop-history>div{grid-template-columns:25px 80px 1fr}.hcap-pointshop-history strong,.hcap-pointshop-history small{grid-column:3}}

/* =========================================================
   HCHAT ADMIN — KOMPAKT MASAÜSTÜ BOYUTU
   08.08.2026
   Mobil kurallara dokunmaz; sadece tablet üstü/masaüstü.
   ========================================================= */
@media (min-width: 761px) {
    .hcap-overlay {
        padding: 14px !important;
    }

    .hcap-shell {
        width: min(1200px, 94vw) !important;
        height: min(760px, 90vh) !important;
        grid-template-columns: 220px minmax(0, 1fr) !important;
        border-radius: 24px !important;
    }

    .hcap-sidebar {
        padding: 16px 12px 12px !important;
    }

    .hcap-brand {
        gap: 10px !important;
        padding: 4px 6px 16px !important;
    }

    .hcap-brand-icon {
        width: 40px !important;
        height: 40px !important;
        border-radius: 12px !important;
        font-size: 18px !important;
    }

    .hcap-brand b {
        font-size: 14px !important;
    }

    .hcap-brand small {
        font-size: 9px !important;
    }

    .hcap-nav {
        gap: 3px !important;
        margin-top: 12px !important;
    }

    .hcap-nav button {
        gap: 9px !important;
        padding: 9px 10px !important;
        border-radius: 10px !important;
        font-size: 11px !important;
    }

    .hcap-nav button i {
        width: 18px !important;
        font-size: 13px !important;
    }

    .hcap-sidebar-footer {
        padding-top: 10px !important;
    }

    .hcap-admin-chip {
        padding: 7px 6px !important;
    }

    .hcap-admin-chip > i {
        width: 31px !important;
        height: 31px !important;
        border-radius: 9px !important;
    }

    .hcap-logout {
        margin-top: 5px !important;
        padding: 8px 10px !important;
    }

    .hcap-topbar {
        min-height: 64px !important;
        padding: 10px 18px !important;
    }

    .hcap-topbar h2 {
        font-size: 17px !important;
    }

    .hcap-top-actions button,
    .hcap-mobile-menu {
        width: 35px !important;
        height: 35px !important;
        border-radius: 10px !important;
    }

    .hcap-panel-view {
        padding: 16px !important;
    }

    .hcap-welcome {
        margin-bottom: 13px !important;
        padding: 15px 17px !important;
        border-radius: 16px !important;
    }

    .hcap-welcome h3 {
        font-size: 19px !important;
    }

    .hcap-stat-grid {
        gap: 10px !important;
        margin-bottom: 13px !important;
    }

    .hcap-stat {
        gap: 10px !important;
        padding: 12px !important;
        border-radius: 14px !important;
    }

    .hcap-stat-icon {
        width: 39px !important;
        height: 39px !important;
        flex-basis: 39px !important;
        border-radius: 11px !important;
        font-size: 14px !important;
    }

    .hcap-stat b {
        font-size: 18px !important;
    }

    .hcap-card {
        padding: 15px !important;
        border-radius: 16px !important;
    }

    .hcap-card-head {
        margin-bottom: 12px !important;
    }

    /* Kullanıcı / Profil ekranlarının kompakt kabın içine düzgün oturması */
    .hcap-users-list-card,
    .hcap-user-detail-card,
    .hcap-profiles-list-card,
    .hcap-profile-detail-card {
        min-height: 0 !important;
    }

    .hcap-users-list-card,
    .hcap-profiles-list-card {
        max-height: calc(min(760px, 90vh) - 105px) !important;
    }

    .hcap-profiles-layout {
        grid-template-columns: minmax(285px, 320px) minmax(0, 1fr) !important;
        gap: 14px !important;
    }

    .hcap-profile-detail-card,
    .hcap-user-detail-card {
        padding: 16px !important;
    }

    .hcap-profile-detail-head,
    .hcap-user-detail-head {
        gap: 12px !important;
        padding-bottom: 13px !important;
    }

    .hcap-profile-detail-avatar {
        width: 70px !important;
        height: 70px !important;
        font-size: 23px !important;
    }

    .hcap-user-detail-avatar {
        width: 64px !important;
        height: 64px !important;
        font-size: 21px !important;
    }

    .hcap-user-facts {
        gap: 8px !important;
        margin: 13px 0 !important;
    }

    .hcap-user-facts > div {
        padding: 9px !important;
    }

    .hcap-user-section {
        margin-top: 11px !important;
        padding: 12px !important;
    }

    .hcap-form input,
    .hcap-form select {
        height: 36px !important;
    }

    .hcap-vip-list {
        max-height: calc(min(760px, 90vh) - 160px) !important;
    }
}
