:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-dark: #020617;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.navbar {
    background-color: var(--bg-card);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 26px;
    border-radius: 0.4rem;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.15);
    overflow: hidden;
    line-height: 0;
}

.lang-flag:hover {
    border-color: rgba(99,102,241,0.45);
}

.lang-flag.is-active {
    border-color: rgba(99,102,241,0.70);
    box-shadow: 0 0 0 2px rgba(99,102,241,0.18);
}

.lang-flag-icon {
    display: block;
    width: 100%;
    height: 100%;
}

.lang-flag-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.support-notifications {
    position: relative;
    display: flex;
    align-items: center;
}

.support-notifications-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 0.6rem;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.15);
    color: var(--text-main);
    cursor: pointer;
}

.support-notifications-btn:hover {
    border-color: rgba(99,102,241,0.45);
    background: rgba(99,102,241,0.08);
}

.support-notifications-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 900;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.35);
}

.support-notifications-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.9rem;
    padding: 0.75rem;
    display: none;
    z-index: 200;
    box-shadow: 0 18px 60px rgba(0,0,0,0.45);
}

.support-notifications-menu.is-open {
    display: block;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.025em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links > span {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.nav-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.dashboard-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Restored Content */

.btn-premium-locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-xs {
    padding: 2px 8px;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.1);
    color: var(--text-muted);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-xs.is-active {
    background: var(--primary);
    color: white;
}

.mt-sm {
    margin-top: 0.5rem;
}

.mt-md {
    margin-top: 0.75rem;
}

.mt-lg {
    margin-top: 1rem;
}

.mb-xs {
    margin-bottom: 0.25rem;
}

.mb-sm {
    margin-bottom: 0.5rem;
}

.mb-md {
    margin-bottom: 0.75rem;
}

.mb-lg {
    margin-bottom: 1rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.w-100 {
    width: 100%;
}

.text-danger {
    color: var(--danger) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: #f59e0b !important;
}

.text-gold {
    color: #fbbf24 !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-white {
    color: white !important;
}

.bg-danger {
    background-color: var(--danger) !important;
}

.bg-success {
    background-color: var(--success) !important;
}

.tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-danger {
    background: var(--danger);
    color: white;
}

.tag-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.tag-premium {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.tag-premium-lock {
    background: var(--bg-body);
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
}

.tag-status-open {
    background: rgba(16,185,129,0.12);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.25);
}
.tag-status-closed {
    background: rgba(239,68,68,0.10);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.22);
}
.tag-replied {
    background: rgba(99,102,241,0.12);
    color: var(--primary);
    border: 1px solid rgba(99,102,241,0.25);
}
.tag-priority {
    background: linear-gradient(45deg, rgba(245,158,11,0.18), rgba(217,119,6,0.18));
    color: #fbbf24;
    border: 1px solid rgba(245,158,11,0.28);
}

.card-relative {
    position: relative;
}

.blur-content {
    filter: blur(2px);
    opacity: 0.5;
    pointer-events: none;
}

.blur-content-strong {
    filter: blur(5px);
    opacity: 0.3;
    pointer-events: none;
}

.center-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 10;
}

.center-overlay-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.overlay-box {
    text-align: center;
    background: rgba(0,0,0,0.8);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.premium-gradient-bg {
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(168,85,247,0.1));
    border: 1px solid rgba(168,85,247,0.3);
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-date-picker {
    width: 150px;
    height: 26px;
    padding: 0 6px;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
}

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

.grid-cols-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.grid-cols-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (min-width: 720px) {
    .metrics-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 980px) {
    .metrics-row-top {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .metrics-row-bottom {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }

    .metrics-row-bottom > .activity-metric-card {
        width: calc((100% - 1.5rem) / 4);
    }
}

.stat-value-row {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-top: 0.25rem;
}

.stat-value-row .stat-value-lg {
    margin-top: 0;
}

.stat-delta-inline {
    white-space: nowrap;
}

.stat-card-xs {
    background: rgba(255,255,255,0.02);
    margin: 0;
}

.card.stat-card-xs.activity-metric-card {
    padding: 0.75rem;
}

.activity-metric-card .stat-value-lg {
    font-size: 1.15rem;
}

.activity-metric-card .stat-label-xs {
    font-size: 0.72rem;
}

.activity-metric-card {
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
    min-height: 110px;
}

.activity-metric-card:hover {
    background: rgba(255,255,255,0.05);
}

.activity-metric-card:focus {
    outline: 2px solid rgba(99, 102, 241, 0.55);
    outline-offset: 2px;
}

.activity-metric-card.is-active {
    border-color: rgba(99, 102, 241, 0.55);
    background: rgba(99, 102, 241, 0.10);
}

.stat-label-xs {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-value-lg {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.card-premium {
    padding: 1rem 1rem;
    border-radius: 0.9rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.10);
    margin-bottom: 1rem;
}

.mr-xs {
    margin-right: 0.25rem;
}

.btn-row {
    display: flex;
    gap: 0.5rem;
}

.is-hidden {
    display: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
}

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

.btn-nav-cta {
    padding: 0.55rem 0.9rem;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(99,102,241,0.22);
    border: 1px solid rgba(255,255,255,0.08);
}

.btn-paypal {
    background: #0070ba;
    color: white;
}

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

.btn-dlive {
    background: #ffd300;
    color: black;
    border: 1px solid #e6be00;
    font-weight: 800;
}

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

.btn-lg {
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.7);
    padding: 20px;
}

.announcement-popup-modal.is-open {
    animation: announcementPopupFadeIn 180ms ease-out;
}

.announcement-popup-modal.is-open .announcement-popup-content {
    animation: announcementPopupPop 200ms ease-out;
}

.announcement-popup-content {
    width: 920px;
    max-width: 96%;
    margin: 4% auto;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.94));
    border-color: rgba(99,102,241,0.28);
    box-shadow: 0 22px 70px rgba(0,0,0,0.65);
    max-height: 86vh;
    overflow-y: auto;
}

.announcement-popup-title {
    margin: 0;
    font-weight: 900;
    letter-spacing: -0.02em;
    font-size: 1.8rem;
    line-height: 1.15;
    color: rgba(255,255,255,0.96);
}

.announcement-popup-message {
    font-size: 1.05rem;
    line-height: 1.6;
}

.announcement-popup-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 240px;
}

.announcement-popup-layout.is-no-media {
    grid-template-columns: 1fr;
}

.announcement-popup-media {
    padding: 18px;
    background: rgba(0,0,0,0.18);
    border-right: 1px solid rgba(255,255,255,0.06);
}

.announcement-popup-media-card {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.18);
}

.announcement-popup-media-img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.announcement-popup-thumbs {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.announcement-popup-thumb {
    width: 54px;
    height: 54px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 0.8rem;
    overflow: hidden;
    background: rgba(0,0,0,0.18);
    cursor: pointer;
}

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

.announcement-popup-thumb:hover {
    border-color: rgba(99,102,241,0.35);
}

.announcement-popup-body {
    padding: 22px 24px 26px;
}

.announcement-popup-body .announcement-popup-title {
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.announcement-popup-message {
    color: rgba(255,255,255,0.72);
}

.announcement-popup-message a {
    color: rgba(129,140,248,0.95);
    text-decoration: underline;
}

.announcement-popup-message ul,
.announcement-popup-message ol {
    padding-left: 1.25rem;
    margin: 0.6rem 0;
}

.announcement-popup-message li {
    margin: 0.15rem 0;
}

@media (max-width: 780px) {
    .announcement-popup-layout {
        grid-template-columns: 1fr;
    }
    .announcement-popup-media {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .announcement-popup-media-img {
        height: 190px;
    }
}

@keyframes announcementPopupFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes announcementPopupPop {
    from { transform: translateY(10px) scale(0.99); opacity: 0.2; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.9rem;
    padding: 1.5rem;
    width: 720px;
    max-width: 96%;
    margin: 6% auto;
    position: relative;
}

.modal textarea {
    resize: none;
    max-width: 100%;
}

.close {
    position: absolute;
    right: 14px;
    top: 12px;
    font-size: 28px;
    font-weight: 800;
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    user-select: none;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.15);
    line-height: 1;
}

.close:hover {
    color: white;
    border-color: rgba(99,102,241,0.35);
}

.wysiwyg {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.9rem;
    background: rgba(0,0,0,0.12);
    overflow: hidden;
}

.wysiwyg-toolbar {
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.10);
    flex-wrap: wrap;
}

.wysiwyg-toolbar .btn {
    padding: 0.45rem 0.7rem;
}

.wysiwyg-editor {
    min-height: 140px;
    padding: 0.9rem;
    outline: none;
    color: var(--text-main);
}

.wysiwyg-editor:empty:before {
    content: attr(data-placeholder);
    color: rgba(255,255,255,0.45);
}

.btn-block {
    width: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.dashboard-sidebar .sidebar-link {
    display: block;
    width: 100%;
    text-align: left;
    color: var(--text-muted);
    background: transparent;
}

.dashboard-sidebar .sidebar-link.is-active {
    background: var(--primary);
    color: white;
}

.dashboard-sidebar .sidebar-group {
    margin: 0;
}

.dashboard-sidebar .sidebar-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dashboard-sidebar .sidebar-group-toggle::-webkit-details-marker {
    display: none;
}

.dashboard-sidebar .sidebar-group-toggle::marker {
    content: "";
}

.dashboard-sidebar .sidebar-group-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-sidebar .sidebar-group-chevron {
    font-size: 0.85rem;
    opacity: 0.8;
    transition: transform 0.15s ease;
}

.dashboard-sidebar details.sidebar-group[open] .sidebar-group-chevron {
    transform: rotate(180deg);
}

.dashboard-sidebar .sidebar-subnav {
    list-style: none;
    margin: 0.35rem 0 0 0;
    padding: 0 0 0 0.75rem;
}

.dashboard-sidebar .sidebar-subnav li {
    margin-bottom: 0.35rem;
}

.dashboard-sidebar .sidebar-subnav li:last-child {
    margin-bottom: 0;
}

.dashboard-sidebar .sidebar-link-sub {
    font-size: 0.92rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.nav-links .btn.is-active {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.12) inset, 0 10px 25px rgba(99,102,241,0.22);
}

.dashboard-sidebar .sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashboard-sidebar .sidebar-nav li {
    margin-bottom: 0.5rem;
}

.dashboard-sidebar .sidebar-nav li:last-child {
    margin-bottom: 0;
}

.dashboard-sidebar .sidebar-link-admin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dashboard-sidebar .sidebar-link-badge {
    font-size: 0.75rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 0.45rem;
    border: 1px solid rgba(99,102,241,0.28);
    background: rgba(99,102,241,0.18);
    color: #a5b4fc;
}

.dashboard-sidebar .sidebar-link-badge-moderator {
    border-color: rgba(251,191,36,0.25);
    background: rgba(251,191,36,0.16);
    color: #fbbf24;
}

.dashboard-sidebar .sidebar-link-paypal {
    color: #3b82f6;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--text-main);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table th {
    color: var(--text-muted);
    font-weight: 500;
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--success);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.chart-card {
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.chart-container {
    height: 200px;
    width: 100%;
}

.text-warning-soft {
    color: #fde68a !important;
}

.text-underline {
    text-decoration: underline;
}

.bg-soft {
    background: rgba(255,255,255,0.02);
}

.chart-placeholder {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 150px;
    padding: 0 2rem;
}

.chart-bar {
    width: 10%;
    background: var(--primary);
}

.tag-premium-gradient {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.container-padded {
    margin-top: 2rem;
    padding-bottom: 4rem;
}

.ml-auto {
    margin-left: auto;
}

.mr-auto {
    margin-right: auto;
}

.text-sm-plus {
    font-size: 0.95rem;
}

.font-bold {
    font-weight: bold;
}

.flex-between-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center-gap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.flex-center-gap-sm {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-purple {
    color: #c084fc;
}

.list-none {
    list-style: none;
}

.mt-base {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.inline-block {
    display: inline-block;
}

.chart-bar-primary {
    background: var(--primary);
}

.chart-icon-lg.icon-lg {
    font-size: 2rem;
    color: #a5b4fc;
    margin-bottom: 0.5rem;
}

/* Dashboard Premium & Billing */
.premium-container {
    padding: 1rem 1rem;
    border-radius: 0.9rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.10);
    margin-bottom: 1rem;
}

.premium-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.premium-title {
    font-weight: 950;
    letter-spacing: 0.2px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.tag-active-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-weight: 900;
}

.tag-inactive-slate {
    background: rgba(148, 163, 184, 0.10);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.22);
    font-weight: 800;
}

.premium-date-badge {
    font-weight: 950;
    font-size: 1.15rem;
    color: #34d399;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.10);
}

.text-desc-muted {
    margin-top: 0.55rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.text-desc-muted-lg {
    margin-top: 0.75rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.billing-saved-alert {
    margin-top: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #34d399;
}

.billing-error-alert {
    margin-top: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.18);
    color: #fecaca;
}

.billing-warning-alert {
    margin-top: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.75rem;
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.20);
    color: #fde68a;
}

.text-main-heavy {
    font-weight: 900;
    color: var(--text-main);
}

.billing-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.col-full {
    grid-column: 1 / -1;
}

/* Admin Login Page */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 40%),
                      radial-gradient(circle at bottom left, rgba(168, 85, 247, 0.15), transparent 40%);
}

.login-card-glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

.form-control-dark {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-main) !important;
}

.form-control-dark:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.logo-text-gradient {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-error-alert {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.text-center-mt {
    text-align: center;
    margin-top: 1rem;
}

.link-muted-sm {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.table-header-left {
    text-align: left;
}

.table-header-right {
    text-align: right;
}

.table-cell-right {
    text-align: right;
}

.alert-warning-soft {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fde68a;
}

.alert-danger-soft {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

.modal-title-mb {
    margin-bottom: 1.5rem;
}

.modal-subtitle-mb {
    margin-bottom: 0.75rem;
}

.modal-desc-mb {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.premium-unlock-badge {
    font-size: 0.7rem;
    background: linear-gradient(45deg, #f59e0b, #d97706);
    padding: 2px 6px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
}

.premium-lock-badge {
    font-size: 0.7rem;
    background: var(--bg-body);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
}

.form-label-sm {
    font-size: 0.8rem;
}

.form-group-mb-0 {
    margin-bottom: 0;
}

.form-group-mb-sm {
    margin-bottom: 0.5rem;
}

.grid-cols-2-gap-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.premium-active-container {
    padding: 1rem 1rem;
    border-radius: 0.9rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.10);
    margin-bottom: 1rem;
}

.flex-wrap-gap {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:0.75rem;
    flex-wrap:wrap;
}

.flex-gap-xs {
    display:flex;
    align-items:center;
    gap:0.6rem;
}

.text-lg-bold {
    font-weight: 950;
    letter-spacing: 0.2px;
    font-size: 1.05rem;
}

.tag-active-green {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-weight: 900;
}

.tag-free-gray {
    background: rgba(148, 163, 184, 0.10);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.22);
    font-weight: 800;
}

.days-remaining-badge {
    font-weight: 950;
    font-size: 1.15rem;
    color: #34d399;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.10);
}

.text-muted-lh {
    color: var(--text-muted);
    line-height: 1.55;
}

.text-muted-lh-relaxed {
    color: var(--text-muted);
    line-height: 1.6;
}

.billing-info-box {
    margin-top: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.75rem;
}

.billing-success {
    background: rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #34d399;
}

.billing-danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.18);
    color: #fecaca;
}

.billing-warning {
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.20);
    color: #fde68a;
}

.section-divider {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-divider {
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    color: var(--text-muted);
    text-align: center;
}

.premium-promo-box {
    margin-top: 1.25rem;
    background: rgba(255,255,255,0.05);
    padding: 1.25rem;
    border-radius: 0.75rem;
    text-align: center;
}

.help-list {
    margin-left: 1.5rem;
    line-height: 1.7;
}

.help-list-ul {
    margin: 0.5rem 0 0 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.table-variable {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
}

.table-variable-row {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.table-variable-th {
    text-align: left;
    padding: 0.5rem;
}

.table-variable-td {
    padding: 0.5rem;
}

.text-primary-link {
    color: var(--primary);
}

.font-extrabold {
    font-weight: 800;
}

.premium-form-box {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.premium-form-box-active {
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.3);
}

.premium-form-box-inactive {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
}

.premium-label-active {
    color: #a5b4fc;
}

.premium-label-inactive {
    color: var(--text-muted);
}

/* Utilities for Dashboard & Help */
.tag-free {
    background: var(--bg-body);
    color: var(--text-muted);
}
.text-accent-light {
    color: #c084fc;
}
.link-cta {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary);
}
.card-full-width {
    grid-column: 1 / -1;
}
.card-min-h-250 {
    min-height: 250px;
}
.fake-graph-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 150px;
    padding: 0 2rem;
}
.fake-graph-bar {
    width: 10%;
    background: var(--primary);
}
.h-30 { height: 30%; }
.h-40 { height: 40%; }
.h-50 { height: 50%; }
.h-60 { height: 60%; }
.h-75 { height: 75%; }
.h-80 { height: 80%; }
.h-90 { height: 90%; }
.icon-lg {
    font-size: 2rem;
}
.font-semibold {
    font-weight: 600;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}
.mt-0 {
    margin-top: 0;
}
.leading-relaxed {
    line-height: 1.6;
}
.leading-normal {
    line-height: 1.55;
}
.leading-loose {
    line-height: 1.7;
}
.ml-lg {
    margin-left: 1.5rem;
}
.text-primary {
    color: var(--primary);
}
.help-link-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(99,102,241,0.18);
    color: var(--primary);
    border: 1px solid rgba(99,102,241,0.45);
    font-size: 0.85rem;
    font-weight: 800;
    margin-left: 0.35rem;
}
.help-link-indicator:hover {
    background: rgba(99,102,241,0.28);
}
.help-link-indicator i {
    font-size: 0.85rem;
}
.table-full {
    width: 100%;
}
.border-bottom-light {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.p-sm {
    padding: 0.5rem;
}
.hidden {
    display: none;
}
.premium-cta-box {
    margin-top: 1.25rem;
    background: rgba(255,255,255,0.05);
    padding: 1.25rem;
    border-radius: 0.75rem;
    text-align: center;
}
.footer-section {
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    color: var(--text-muted);
    text-align: center;
}

/* New Utilities */
.flex-col-gap-lg {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.card-soft {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
}
.p-lg {
    padding: 1rem;
}
.tabs-container {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tabs-container-sm {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tab-content {
    padding-top: 1rem;
}
.input-color {
    height: 40px;
    width: 100px;
    padding: 0;
    border: none;
}
.hr-divider {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 1.5rem 0;
}
.ml-sm {
    margin-left: 0.5rem;
}
.form-text-muted {
    color: var(--text-muted);
    display: block;
    margin-top: 0.35rem;
}
.card-premium-overlay {
    background: rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}
.card-premium-overlay.is-premium {
    border-color: rgba(168,85,247,0.3);
}

.overlay-theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}
.overlay-theme-card {
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    opacity: 0.75;
    cursor: pointer;
    user-select: none;
}
.overlay-theme-card.is-active {
    border: 2px solid var(--primary);
    background: rgba(99,102,241,0.12);
    opacity: 1;
}
.overlay-theme-card.is-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Buttons */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Chat Utilities */
.chat-header {
    padding: 1rem 1rem 0.75rem 1rem;
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

/* Utilities */
.d-flex { display: flex; }
.d-inline { display: inline; }
.align-items-center { align-items: center; }
.align-items-baseline { align-items: baseline; }
.justify-content-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.min-w-0 { min-width: 0; }
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.text-truncate { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.tag-indigo-soft {
    background: rgba(99,102,241,0.1);
    color: #a5b4fc;
}
.tag-status-open {
    background: rgba(16,185,129,0.12);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.25);
}
.tag-status-closed {
    background: rgba(239,68,68,0.10);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.22);
}
.tag-replied {
    background: rgba(99,102,241,0.12);
    color: var(--primary);
    border: 1px solid rgba(99,102,241,0.25);
}
.tag-emerald-soft {
    background: rgba(16,185,129,0.1);
    color: #10b981;
}
.tag-danger-soft {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
}
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }
.fw-950 { font-weight: 950; }
.fw-1000 { font-weight: 1000; }
.fw-bold { font-weight: bold; }

.text-right { text-align: right; }
.text-center { text-align: center; }
.text-small { font-size: 0.8rem; }
.text-underline { text-decoration: underline; }
.lh-1 { line-height: 1; }

.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-rose-300 { color: #fda4af; }
.text-emerald-400 { color: #34d399; }
.text-amber-200 { color: #fde68a; }
.text-rose-200 { color: #fecaca; }

.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }

.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }

.w-100 { width: 100%; }
.max-w-200 { max-width: 200px; }
.position-relative { position: relative; }
.opacity-50 { opacity: 0.5; }

.bg-warning-light { background: rgba(245, 158, 11, 0.12); }
.border-warning { border: 1px solid rgba(245, 158, 11, 0.25); }
.bg-danger-light { background: rgba(239, 68, 68, 0.1); }
.border-danger { border: 1px solid rgba(239, 68, 68, 0.2); }

.btn-icon-soft {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--primary);
    color: var(--text-main);
}

.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.grid-auto-fit-lg {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.grid-auto-fit-220 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ticket-stat-num {
    font-size: 1.8rem;
    font-weight: 1000;
    line-height: 1;
}
.ticket-stat-num-open { color: #fda4af; }
.ticket-stat-num-closed { color: #34d399; }

.system-status-line {
    font-size: 1.2rem;
}

.text-dlive { color: #ffd300 !important; }
.text-indigo-200 { color: #a5b4fc !important; }

.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.ws-nowrap { white-space: nowrap; }
.ws-pre-line { white-space: pre-line; }
.ws-pre-wrap { white-space: pre-wrap; }

.overflow-y-auto { overflow-y: auto; }
.max-h-600 { max-height: 600px; }
.w-100px { width: 100px; }

.max-w-170 { max-width: 170px; }
.max-w-220 { max-width: 220px; }

.admin-result-pre {
    margin-top: 0.5rem;
    white-space: pre-wrap;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.10);
    padding: 0.75rem;
    border-radius: 0.75rem;
    color: var(--text-muted);
}

.admin-result-table-wrap {
    margin-top: 0.75rem;
    overflow: auto;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 0.85rem;
}

.sev-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-muted);
    font-weight: 900;
    font-size: 0.8rem;
}
.sev-pill-high {
    background: rgba(244, 63, 94, 0.10);
    border-color: rgba(244, 63, 94, 0.22);
    color: var(--danger);
}
.sev-pill-medium {
    background: rgba(251, 191, 36, 0.10);
    border-color: rgba(251, 191, 36, 0.22);
    color: #fbbf24;
}
.sev-pill-low {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: var(--text-muted);
}
.sev-pill-count { opacity: 0.9; }

.grid-auto-fit-150-gap-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }

.overlay-theme-option {
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    opacity: 0.75;
    cursor: pointer;
}
.overlay-theme-option.is-selected {
    border: 2px solid var(--primary);
    background: rgba(99,102,241,0.12);
    opacity: 1;
}
.overlay-theme-option.is-disabled {
    cursor: not-allowed;
}

.support-notifications-item {
    width: 100%;
    text-align: left;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-main);
    border-radius: 0.85rem;
    padding: 0.65rem 0.75rem;
    cursor: pointer;
    margin-top: 0.5rem;
}
.support-notifications-item:hover {
    border-color: rgba(99,102,241,0.45);
    background: rgba(99,102,241,0.08);
}
.support-notifications-last { margin-top: 0.35rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.35; }
.support-notifications-when { margin-top: 0.35rem; color: var(--text-muted); font-size: 0.8rem; }

.support-panels {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.support-panels.tickets-collapsed {
    grid-template-columns: minmax(0, 1fr);
}

.support-panels.tickets-collapsed .support-ticket-panel {
    display: none;
}

.support-ticket-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-wrap: wrap;
    flex: 1;
}

.support-ticket-toolbar .form-control {
    width: auto;
}

.support-ticket-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.support-ticket-list {
    max-height: 560px;
    overflow: auto;
    padding-right: 0.25rem;
}

.support-chat-card {
    display: flex;
    flex-direction: column;
    min-height: 640px;
}

.support-chat-header {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
}

.support-chat-subline {
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.support-chat-messages {
    flex: 1;
    overflow: auto;
    padding: 0.5rem 0.5rem 0;
}

.support-chat-compose {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

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

.support-ticket-item {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.10);
    color: var(--text);
    padding: 0.75rem;
    border-radius: 0.75rem;
    margin: 0.5rem 0;
    cursor: pointer;
}
.support-ticket-item.is-active {
    border-color: rgba(99,102,241,0.5);
    background: rgba(99,102,241,0.10);
}
.support-ticket-title { font-weight: 800; }
.support-ticket-snippet { margin-top: 0.35rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.35; }
.support-ticket-updated { margin-top: 0.35rem; color: var(--text-muted); font-size: 0.8rem; }

.support-msg-row { display: flex; margin: 0.5rem 0; }
.support-msg-row.admin { justify-content: flex-start; }
.support-msg-row.user { justify-content: flex-end; }
.support-msg-bubble {
    max-width: 85%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 0.9rem;
    padding: 0.65rem 0.75rem;
}
.support-msg-row.user .support-msg-bubble {
    background: rgba(99,102,241,0.14);
    border-color: rgba(99,102,241,0.30);
}
.support-msg-head { display: flex; gap: 0.5rem; align-items: baseline; justify-content: space-between; }
.support-msg-label { font-weight: 800; font-size: 0.9rem; }
.support-msg-time { color: var(--text-muted); font-size: 0.75rem; }
.support-msg-text { margin-top: 0.35rem; line-height: 1.45; }
.support-image-block { margin-top: 0.5rem; }
.support-image-link { color: var(--primary); font-size: 0.85rem; display: inline-block; margin-bottom: 0.35rem; }
.support-image { max-width: 320px; width: 100%; height: auto; border-radius: 0.6rem; border: 1px solid rgba(255,255,255,0.10); display: block; }

.divider-soft {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.premium-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.premium-plan-option {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
}
.premium-plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.premium-plan-head-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.premium-plan-radio { transform: translateY(1px); }
.premium-plan-price-row {
    margin-top: 0.5rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}
.premium-plan-price {
    font-size: 1.25rem;
    font-weight: 900;
}
.premium-plan-per-month {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.premium-paypal-wrap { margin-top: 1.25rem; }

.support-details {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}
.grid-1-col-gap-3 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
}
.flex-col { display: flex; flex-direction: column; }
.flex-col-gap-xs { display: flex; flex-direction: column; gap: 0.25rem; }

.overlay-preview-box {
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}
.overlay-details {
    margin: 0 0 1rem 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
}
.overlay-details-summary { cursor: pointer; font-weight: 700; }
.overlay-info-card {
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.2);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    margin: 0.75rem 0 1rem 0;
}
.overlay-lock-screen {
    background: rgba(0,0,0,0.6);
    z-index: 10;
    backdrop-filter: blur(2px);
}
.tag-ultimate {
    background: rgba(168,85,247,0.12);
    color: #c084fc;
    border: 1px solid rgba(168,85,247,0.25);
}
.text-90 { font-size: 0.9rem; }

.btn-glass {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.12);
}

.btn-outline-primary {
    background: var(--bg-card);
    border: 1px solid var(--primary);
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.mb-1 { margin-bottom: 0.25rem; }
.ml-5 { margin-left: 1.25rem; }
.lh-14 { line-height: 1.4; }
.lh-155 { line-height: 1.55; }
.lh-16 { line-height: 1.6; }

.tab-btn { background: transparent; color: var(--text-muted); }
.tab-btn.active { background: var(--primary); color: white; }
.premium-tab-btn { background: transparent; color: var(--text-main); }
.premium-tab-btn.active { background: var(--primary); color: white; }

.tag-included {
    background: rgba(16,185,129,0.12);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.25);
}

.admin-ticket-kpi {
    font-size: 1.8rem;
    font-weight: 1000;
    line-height: 1;
}
.admin-ticket-kpi-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}
.admin-system-status {
    font-size: 1.2rem;
    font-weight: 800;
    margin-top: 1rem;
}

.admin-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: auto;
}
.admin-modal-card-lg { width: 820px; max-width: 96%; margin: 0; }
.admin-modal-card-md { width: 720px; max-width: 94%; margin: 0; }
.admin-modal-card-sm { width: 500px; max-width: 90%; margin: 0; }
.admin-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.admin-modal-subtitle { color: var(--text-muted); font-size: 0.92rem; line-height: 1.4; }
.btn-outline-soft { background: transparent; border: 1px solid rgba(255,255,255,0.12); }
.btn-outline-soft-weak { background: transparent; border: 1px solid rgba(255,255,255,0.1); }
.justify-content-end { justify-content: flex-end; }

.promote-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
    align-items: start;
}

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

.avatar-34 {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.25);
}

.promote-user-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text-main);
}

.promote-user-btn:hover {
    border-color: rgba(99,102,241,0.45);
    background: rgba(99,102,241,0.08);
}

.admin-premium-panel {
    background: rgba(99, 102, 241, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.admin-paypal-step {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
    padding: 1rem;
}
.admin-paypal-step-text {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}
.btn-paypal-link {
    background: rgba(59,130,246,0.12);
    color: #93c5fd;
    border: 1px solid rgba(59,130,246,0.22);
}
.admin-code-box {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.9rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.6rem;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.08);
}
.admin-success-note {
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(16, 185, 129, 0.22);
    background: rgba(16, 185, 129, 0.08);
    color: #a7f3d0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.admin-scroll-box {
    margin-top: 0.75rem;
    max-height: 420px;
    overflow: auto;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.85rem;
    background: rgba(0,0,0,0.14);
}
.admin-scroll-box-inner { padding: 0.5rem; }
.admin-soft-panel {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.85rem;
    padding: 0.85rem;
    background: rgba(0,0,0,0.14);
}
.admin-soft-panel-title { font-weight: 900; }
.admin-modal-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-top: 0.85rem; }

.support-placeholder { color: var(--text-muted); }
.support-error { color: var(--danger); }
.inline-flex { display: inline-flex; }

.overlay-preview-frame { width: 100%; height: 520px; border: 0; display: block; }
.max-w-980 { max-width: 980px; }
.overlay-preview-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.overlay-preview-modal-controls { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.overlay-preview-embed {
    margin-top: 0.75rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
    overflow: hidden;
    background: rgba(0,0,0,0.35);
}
.discord-preview {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.9rem;
    background: rgba(15,23,42,0.5);
    padding: 1rem;
}
.discord-preview-card {
    background: #1e1f22;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 0.85rem;
    padding: 0.9rem;
    color: #d1d5db;
}
.discord-preview-header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.discord-preview-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: linear-gradient(140deg, #6366f1, #22c55e);
    flex: 0 0 auto;
}
.discord-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.discord-preview-bot {
    font-weight: 800;
    color: #f8fafc;
}
.discord-preview-date {
    font-size: 0.8rem;
    color: #94a3b8;
}
.discord-preview-content {
    margin-top: 0.75rem;
}
.discord-preview-text {
    color: #e2e8f0;
    margin-bottom: 0.75rem;
}
.discord-embed {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #111827;
    border-radius: 0.65rem;
    border: 1px solid rgba(148,163,184,0.25);
}
.discord-embed-line {
    width: 4px;
    border-radius: 999px;
    background: #f59e0b;
    flex: 0 0 auto;
}
.discord-embed-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto;
}
.discord-embed-title {
    font-weight: 800;
    color: #f8fafc;
}
.discord-embed-description {
    color: #cbd5f5;
    line-height: 1.5;
}
.discord-embed-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
}
.discord-embed-field-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    font-weight: 700;
}
.discord-embed-field-value {
    color: #e2e8f0;
    font-weight: 600;
}
.discord-embed-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    border-radius: 0.5rem;
    background: #5865f2;
    color: white;
    font-weight: 700;
    width: fit-content;
}
.max-w-320 { max-width: 320px; }
.w-auto { width: auto; }
.h-auto { height: auto; }
.radius-6 { border-radius: 0.6rem; }
.border-soft-10 { border: 1px solid rgba(255,255,255,0.10); }
.d-block { display: block; }

.stat-pill {
    padding: 0.55rem 0.75rem;
    border-radius: 0.9rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}

.stat-pill.emerald {
    background: rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(16, 185, 129, 0.22);
}

.stat-pill-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.stat-pill-label.emerald {
    color: #a7f3d0;
    font-weight: 800;
}

.stat-pill-value {
    font-weight: 950;
    font-size: 1.15rem;
    line-height: 1.1;
}

.stat-pill-value.emerald {
    font-weight: 1000;
    font-size: 1.35rem;
    color: #34d399;
}

.btn-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-emerald:hover {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

/* Admin Dashboard Utilities */
.stats-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.stats-card-title {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.icon-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box.indigo {
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
}

.icon-box.amber {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.22);
    color: #fcd34d;
}

.icon-box.emerald {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #34d399;
}

.icon-box.rose {
    background: rgba(244, 63, 94, 0.10);
    border: 1px solid rgba(244, 63, 94, 0.20);
    color: #fda4af;
}

.stats-value {
    font-size: 2rem;
    font-weight: 900;
    margin-top: 0.65rem;
}

.stats-value.text-success {
    color: #34d399;
}

.stats-subtext {
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.grid-revenue {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.user-avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.badge-premium {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 0.5rem;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.badge-premium i {
    font-size: 0.6rem;
    margin-right: 2px;
}

.chat-window {
    padding: 1rem;
    height: 520px;
    overflow: auto;
    background: rgba(0,0,0,0.12);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.support-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.support-grid {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 1rem;
}

.support-list-container {
    padding: 0.75rem 1rem 1rem 1rem;
    max-height: calc(100vh - 280px);
    overflow: auto;
}

.help-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.help-sidebar {
    position: sticky;
    top: 100px;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
    height: fit-content;
}

.help-sidebar ul {
    list-style: none;
}

.help-sidebar li {
    margin-bottom: 0.8rem;
}

.help-sidebar a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.help-sidebar a:hover, .help-sidebar a.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.help-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--primary);
}

.help-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.card-preview {
    background: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
    font-family: monospace;
    position: relative;
    overflow: hidden;
}

.card-preview::before {
    content: "EXEMPLE";
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255,255,255,0.1);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-bottom-left-radius: 0.5rem;
    color: var(--text-muted);
}

.help-hero {
    background: linear-gradient(135deg, rgba(99,102,241,0.14), rgba(168,85,247,0.12));
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: 1rem;
    padding: 1.5rem;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.help-kpi {
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.9rem;
    padding: 1rem;
}

.callout {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.9rem;
    padding: 1rem;
    margin: 1rem 0;
}

.callout-title {
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.45rem;
    border-radius: 0.45rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: #fbbf24;
    background: linear-gradient(45deg, rgba(245,158,11,0.18), rgba(217,119,6,0.18));
    border: 1px solid rgba(245,158,11,0.28);
}

.toc-title {
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-main);
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

@media (max-width: 768px) {
    .help-container {
        grid-template-columns: 1fr;
    }
    .help-sidebar {
        position: relative;
        top: 0;
    }
}

body.invoice-root{
    --bg:#f7f8fc;
    --paper:#ffffff;
    --ink:#0f172a;
    --muted:#64748b;
    --line:#e2e8f0;
    --line2:#eef2f7;
    --accent:#10b981;
    --accent2:#34d399;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    background: var(--bg);
    color: var(--ink);
    margin:0;
    padding:28px;
}

.invoice-root *{box-sizing:border-box}

.invoice-root .page{
    max-width: 980px;
    margin: 0 auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .10);
    overflow: hidden;
}

.invoice-root .topbar{
    padding: 22px 26px;
    background: linear-gradient(135deg, rgba(16,185,129,.16), rgba(59,130,246,.10));
    border-bottom: 1px solid var(--line);
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap: 14px;
    flex-wrap:wrap;
}

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

.invoice-root .logo{
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 30%, rgba(52,211,153,.95), rgba(16,185,129,.55));
    box-shadow: 0 10px 22px rgba(16,185,129,.22);
    border: 1px solid rgba(16,185,129,.35);
}

.invoice-root .title{
    font-weight: 1000;
    letter-spacing: .2px;
    font-size: 20px;
    line-height: 1.1;
    margin:0;
}

.invoice-root .subtitle{
    color: var(--muted);
    margin-top: 2px;
    font-size: 13px;
}

.invoice-root .meta{
    text-align:right;
    min-width: 220px;
}

.invoice-root .pill{
    display:inline-flex;
    align-items:center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(16,185,129,.26);
    background: rgba(16,185,129,.10);
    color: #065f46;
    font-weight: 900;
    margin-bottom: 10px;
}

.invoice-root .pill small{font-weight:800; color: rgba(6,95,70,.75)}
.invoice-root .metaLine{color: var(--muted); font-size: 13px; margin-top: 3px}
.invoice-root .content{padding: 22px 26px 26px}

.invoice-root .grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.invoice-root .card{
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 14px;
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.98));
}

.invoice-root .cardTitle{
    font-weight: 950;
    font-size: 13px;
    letter-spacing: .2px;
    text-transform: uppercase;
    color: rgba(15,23,42,.75);
    margin-bottom: 8px;
}

.invoice-root .muted{color: var(--muted)}
.invoice-root .kv{display:flex; justify-content:space-between; gap: 12px; margin-top: 6px; font-size: 14px}
.invoice-root .kv strong{font-weight:900}

.invoice-root table{
    width:100%;
    border-collapse: separate;
    border-spacing:0;
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow:hidden;
}

.invoice-root thead th{
    background: rgba(15,23,42,.04);
    color: rgba(15,23,42,.75);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .25px;
    padding: 12px 12px;
    border-bottom: 1px solid var(--line);
}

.invoice-root tbody td{
    padding: 12px 12px;
    border-bottom: 1px solid var(--line2);
    font-size: 14px;
}

.invoice-root tbody tr:last-child td{border-bottom:none}
.invoice-root .right{text-align:right}

.invoice-root .totalRow td{
    background: rgba(16,185,129,.08);
    border-top: 1px solid rgba(16,185,129,.18);
    font-weight: 1000;
    font-size: 15px;
}

.invoice-root .ref{
    margin-top: 14px;
    border: 1px dashed rgba(100,116,139,.35);
    background: rgba(100,116,139,.06);
    border-radius: 14px;
    padding: 12px 14px;
    color: rgba(15,23,42,.75);
    font-size: 13px;
}

.invoice-root .foot{
    margin-top: 14px;
    color: rgba(100,116,139,.85);
    font-size: 12px;
}

.invoice-fz-15{font-size: 15px;}
.invoice-meta-small{margin-top:6px; font-size: 13px;}
.invoice-mb-6{margin-bottom:6px;}

@media (max-width: 760px){
    body.invoice-root{padding:14px}
    .invoice-root .meta{text-align:left}
    .invoice-root .grid{grid-template-columns:1fr}
}

@media print{
    body.invoice-root{background:#fff;padding:0}
    .invoice-root .page{box-shadow:none;border:none;border-radius:0}
    .invoice-root .topbar{border-bottom:1px solid #e5e7eb}
}

body.admin-root {
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.admin-root .sidebar {
    width: 260px;
    background: rgba(30, 41, 59, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex-shrink: 0;
}

.admin-root .sidebar-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.admin-root .sidebar-logo {
    font-size: 1.85rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-root .admin-badge {
    font-size: 0.7rem;
    background: #ef4444;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.admin-root .admin-notifications { position: relative; }
.admin-root .admin-notifications-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.18);
    color: var(--text-main);
    cursor: pointer;
}
.admin-root .admin-notifications-btn:hover {
    border-color: rgba(99,102,241,0.45);
    background: rgba(99,102,241,0.08);
}
.admin-root .admin-notifications-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(30, 41, 59, 0.95);
}
.admin-root .admin-notifications-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 340px;
    max-width: min(340px, calc(100vw - 24px));
    background: rgba(30, 41, 59, 0.98);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    z-index: 2500;
    padding: 0.75rem;
    display: none;
}
.admin-root .admin-notifications-item {
    width: 100%;
    text-align: left;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-main);
    border-radius: 0.85rem;
    padding: 0.65rem 0.75rem;
    cursor: pointer;
    margin-top: 0.5rem;
}
.admin-root .admin-notifications-item:hover {
    border-color: rgba(99,102,241,0.45);
    background: rgba(99,102,241,0.08);
}

.admin-root .admin-notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.25rem 0.25rem 0.5rem 0.25rem;
}
.admin-root .admin-notifications-title { font-weight: 800; }
.admin-root .btn-admin-notifications {
    padding: 0.4rem 0.6rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
}
.admin-root .admin-notifications-placeholder { color: var(--text-muted); padding: 0.25rem; }
.admin-root .admin-notifications-error { color: var(--danger); padding: 0.25rem; }

.admin-root .admin-support-placeholder { padding: 0.5rem 0; }
.admin-root .admin-support-empty { color: var(--text-muted); }

.admin-root .admin-support-ticket-btn {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.10);
    color: var(--text);
    padding: 0.75rem;
    border-radius: 0.75rem;
    margin: 0.5rem 0;
    cursor: pointer;
}
.admin-root .admin-support-ticket-btn.is-active {
    border-color: rgba(99,102,241,0.5);
    background: rgba(99,102,241,0.10);
}
.admin-root .admin-support-ticket-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.admin-root .admin-support-ticket-title { font-weight: 800; }
.admin-root .admin-support-ticket-badges { display: inline-flex; gap: 0.4rem; align-items: center; }
.admin-root .admin-support-ticket-meta { margin-top: 0.25rem; color: var(--text-muted); font-size: 0.85rem; }
.admin-root .admin-support-ticket-last { margin-top: 0.35rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.35; }
.admin-root .admin-support-ticket-updated { margin-top: 0.35rem; color: var(--text-muted); font-size: 0.8rem; }

.admin-root .admin-support-msg-row { display: flex; margin: 0.5rem 0; }
.admin-root .admin-support-msg-row.is-staff { justify-content: flex-end; }
.admin-root .admin-support-msg-row.is-user { justify-content: flex-start; }
.admin-root .admin-support-bubble {
    max-width: 85%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 0.9rem;
    padding: 0.65rem 0.75rem;
}
.admin-root .admin-support-bubble.is-staff {
    background: rgba(99,102,241,0.14);
    border-color: rgba(99,102,241,0.30);
}
.admin-root .admin-support-bubble-header { display: flex; gap: 0.5rem; align-items: baseline; justify-content: space-between; }
.admin-root .admin-support-bubble-label { font-weight: 800; font-size: 0.9rem; }
.admin-root .admin-support-bubble-time { color: var(--text-muted); font-size: 0.75rem; }
.admin-root .admin-support-bubble-text { margin-top: 0.35rem; line-height: 1.45; }
.admin-root .admin-support-image-block { margin-top: 0.5rem; }
.admin-root .admin-support-image-link { color: var(--primary); font-size: 0.85rem; display: inline-block; margin-bottom: 0.35rem; }
.admin-root .admin-support-image { max-width: 320px; width: 100%; height: auto; border-radius: 0.6rem; border: 1px solid rgba(255,255,255,0.10); display: block; }

.admin-root .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.admin-root .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
}

.admin-root .nav-item:hover,
.admin-root .nav-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.admin-root .nav-item i {
    width: 20px;
    text-align: center;
}

.admin-root .nav-group { display: flex; flex-direction: column; }
.admin-root .nav-group-toggle { justify-content: space-between; }
.admin-root .nav-group-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}
.admin-root .nav-chevron { transition: transform 0.2s; opacity: 0.8; }
.admin-root .nav-group.open .nav-chevron { transform: rotate(180deg); }

.admin-root .nav-submenu {
    display: none;
    margin-left: 1rem;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0.35rem;
}
.admin-root .nav-group.open .nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-root .nav-subitem {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.95rem;
}
.admin-root .nav-subitem:hover,
.admin-root .nav-subitem.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}
.admin-root .nav-subitem i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.admin-root .user-profile {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
}
.admin-root .user-profile .fw-600 {
    font-size: 1.05rem;
}
.admin-root .user-avatar {
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.admin-root #adminSupportChatSubtitle {
    font-size: 1rem;
}

.admin-root .main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent 40%);
}

.admin-root .content-section { display: none; animation: adminFadeIn 0.3s ease; }
.admin-root .content-section.active { display: block; }
@keyframes adminFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-root .section-header { margin-bottom: 2rem; }
.admin-root .section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.admin-root .section-subtitle { color: var(--text-muted); }

.admin-root .table th { background: rgba(15, 23, 42, 0.5); }
.admin-root .admin-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-root .switch { position: relative; display: inline-block; width: 40px; height: 20px; }
.admin-root .switch input { opacity: 0; width: 0; height: 0; }
.admin-root .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .4s;
    border-radius: 34px;
}
.admin-root .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.admin-root .switch input:checked + .slider { background-color: var(--primary); }
.admin-root .switch input:checked + .slider:before { transform: translateX(20px); }

.tab-content { display: none; }
.tab-content.is-active { display: block; }
.premium-tab-content { display: none; }
.premium-tab-content.is-active { display: block; }
.tabs-container-sm { display: flex; gap: 1rem; margin-top: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }

.pt-8 { padding-top: 2rem; }
.border-top-soft { border-top: 1px solid rgba(255,255,255,0.1); }
.grid-auto-fit-220-gap-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }

.card-premium-overlay.is-premium { border-color: rgba(168,85,247,0.3); }
.overlay-lock-screen { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

body.overlay-root {
    background-color: transparent;
    margin: 0;
    padding: 0;
    font-family: var(--styx-font-family, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    --styx-alert-border-color: transparent;
    --styx-alert-shadow: none;
    --styx-alert-bg: #6366f1;
}

body.overlay-root #alert-wrapper { transform: translate(0px, 0px); }

body.overlay-root #alert-box {
    background: var(--styx-alert-bg);
    color: white;
    padding: 2rem 4rem;
    border-radius: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    box-shadow: var(--styx-alert-shadow);
    margin-bottom: 0;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

body.overlay-root #alert-box::before,
body.overlay-root #alert-box::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 0;
}

body.overlay-root #alert-box > * { position: relative; z-index: 1; }

body.overlay-root[data-bg-transparent="1"] #alert-box { background: transparent; }
body.overlay-root[data-bg-transparent="1"] #alert-box::before,
body.overlay-root[data-bg-transparent="1"] #alert-box::after { opacity: 0 !important; }

body.overlay-root #alert-gif {
    display: none;
    max-width: 260px;
    max-height: 260px;
    width: auto;
    height: auto;
    margin: 0 auto 1rem auto;
    border-radius: 0.75rem;
}

body.overlay-root #alert-box.anim-fade { opacity: 0; transform: scale(0.9); }
body.overlay-root #alert-box.anim-fade.active { opacity: 1; transform: scale(1); }
body.overlay-root #alert-box.anim-slide { opacity: 0; transform: translateY(100px); }
body.overlay-root #alert-box.anim-slide.active { opacity: 1; transform: translateY(0); }
body.overlay-root #alert-box.anim-bounce { opacity: 0; transform: scale(0.3); }
body.overlay-root #alert-box.anim-bounce.active { opacity: 1; transform: scale(1); animation: bounceIn 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) both; }

body.overlay-root .giveaway-wrapper {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    background: radial-gradient(circle at center, rgba(30,41,59,0.35), rgba(2,6,23,0.65) 60%, rgba(2,6,23,0.85) 100%);
    z-index: 10;
}

body.overlay-root .giveaway-wrapper.is-active { display: flex; }

body.overlay-root .giveaway-wheel-wrap {
    position: relative;
    width: min(80vmin, 760px);
    height: min(80vmin, 760px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

body.overlay-root .giveaway-wheel-wrap::before {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ff3b30, #ff9f0a, #ffd60a, #30d158, #66d4cf, #32ade6, #0a84ff, #5e5ce6, #bf5af2, #ff2d55, #ff3b30);
    filter: blur(2px);
    opacity: 0.9;
    z-index: 0;
}

body.overlay-root #giveaway-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 24px 80px rgba(0,0,0,0.55), 0 0 40px rgba(255,255,255,0.15), 0 0 120px rgba(99,102,241,0.35);
    background: rgba(15,23,42,0.25);
    border: 6px solid rgba(255,255,255,0.35);
    position: relative;
    z-index: 1;
}

body.overlay-root .giveaway-pointer {
    position: absolute;
    top: -18px;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 34px solid #ffffff;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.55));
    z-index: 2;
}

body.overlay-root .giveaway-winner {
    font-size: 2.9rem;
    font-weight: 900;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 10px 30px rgba(0,0,0,0.55);
    padding: 0.35rem 1.2rem;
    border-radius: 999px;
    background: rgba(15,23,42,0.6);
    box-shadow: 0 12px 30px rgba(0,0,0,0.45), 0 0 28px rgba(99,102,241,0.35);
    position: absolute;
    bottom: 4vmin;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
    20% { transform: scale3d(1.1, 1.1, 1.1); }
    40% { transform: scale3d(0.9, 0.9, 0.9); }
    60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
    80% { transform: scale3d(0.97, 0.97, 0.97); }
    100% { opacity: 1; transform: scale3d(1, 1, 1); }
}

body.overlay-root[data-theme="cyberpunk"] #alert-box {
    border: 2px solid var(--styx-alert-border-color);
    box-shadow: var(--styx-alert-shadow), 0 0 34px rgba(250, 204, 21, 0.25), 0 0 32px rgba(168, 85, 247, 0.22);
}
body.overlay-root[data-theme="cyberpunk"] #alert-box::before {
    opacity: 0.65;
    background:
        radial-gradient(1200px 500px at 20% 0%, rgba(250,204,21,0.6), transparent 55%),
        linear-gradient(135deg, rgba(250,204,21,0.55), rgba(234,179,8,0.08) 45%, rgba(168,85,247,0.22));
}
body.overlay-root[data-theme="cyberpunk"] #alert-box::after {
    opacity: 0.45;
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0 6px, rgba(0,0,0,0) 6px 14px);
    mix-blend-mode: overlay;
}
body.overlay-root[data-theme="cyberpunk"] .alert-type {
    letter-spacing: 6px;
    color: #fde047;
    text-shadow:
        2px 0 rgba(0,0,0,0.95),
        -2px 0 rgba(0,0,0,0.95),
        0 2px rgba(0,0,0,0.95),
        0 -2px rgba(0,0,0,0.95),
        2px 2px rgba(0,0,0,0.95),
        -2px 2px rgba(0,0,0,0.95),
        2px -2px rgba(0,0,0,0.95),
        -2px -2px rgba(0,0,0,0.95),
        0 10px 25px rgba(0,0,0,0.45),
        0 0 18px rgba(250,204,21,0.55);
}
body.overlay-root[data-theme="cyberpunk"] .alert-message {
    color: #fde047;
    text-shadow:
        2px 0 rgba(0,0,0,0.95),
        -2px 0 rgba(0,0,0,0.95),
        0 2px rgba(0,0,0,0.95),
        0 -2px rgba(0,0,0,0.95),
        2px 2px rgba(0,0,0,0.95),
        -2px 2px rgba(0,0,0,0.95),
        2px -2px rgba(0,0,0,0.95),
        -2px -2px rgba(0,0,0,0.95),
        0 14px 28px rgba(0,0,0,0.45),
        0 0 20px rgba(250,204,21,0.55),
        0 0 22px rgba(168,85,247,0.22);
}
body.overlay-root[data-theme="cyberpunk"] .highlight {
    color: #fde047;
    text-shadow:
        2px 0 rgba(0,0,0,0.95),
        -2px 0 rgba(0,0,0,0.95),
        0 2px rgba(0,0,0,0.95),
        0 -2px rgba(0,0,0,0.95),
        2px 2px rgba(0,0,0,0.95),
        -2px 2px rgba(0,0,0,0.95),
        2px -2px rgba(0,0,0,0.95),
        -2px -2px rgba(0,0,0,0.95),
        0 0 18px rgba(250,204,21,0.55),
        0 0 26px rgba(0,0,0,0.35);
}
body.overlay-root[data-theme="minimal"] #alert-box {
    border: 1px solid var(--styx-alert-border-color);
    border-radius: 0.6rem;
    padding: 1.25rem 2rem;
    box-shadow: none;
}
body.overlay-root[data-theme="minimal"] .alert-type { opacity: 0.9; letter-spacing: 3px; }
body.overlay-root[data-theme="retro"] #alert-box {
    border: 4px solid var(--styx-alert-border-color);
    border-radius: 0;
    box-shadow: var(--styx-alert-shadow), 0 0 0 6px rgba(0,0,0,0.35), 0 0 0 10px rgba(96,165,250,0.22);
    padding: 1.5rem 2.25rem;
}
body.overlay-root[data-theme="retro"] #alert-box::before {
    opacity: 0.55;
    background:
        linear-gradient(0deg, rgba(0,0,0,0.25), rgba(0,0,0,0.15)),
        linear-gradient(90deg, rgba(96,165,250,0.10) 1px, transparent 1px),
        linear-gradient(0deg, rgba(96,165,250,0.10) 1px, transparent 1px);
    background-size: auto, 10px 10px, 10px 10px;
}
body.overlay-root[data-theme="retro"] #alert-box::after {
    opacity: 0.35;
    background: repeating-linear-gradient(0deg, rgba(59,130,246,0.10) 0 2px, rgba(0,0,0,0) 2px 6px);
}
body.overlay-root[data-theme="retro"] .alert-type {
    letter-spacing: 4px;
    color: #c4b5fd;
    text-shadow:
        2px 0 rgba(0,0,0,0.90),
        -2px 0 rgba(0,0,0,0.90),
        0 2px rgba(0,0,0,0.90),
        0 -2px rgba(0,0,0,0.90),
        2px 2px rgba(0,0,0,0.90),
        -2px 2px rgba(0,0,0,0.90),
        2px -2px rgba(0,0,0,0.90),
        -2px -2px rgba(0,0,0,0.90),
        0 10px 25px rgba(0,0,0,0.40);
}
body.overlay-root[data-theme="retro"] .alert-message {
    letter-spacing: 1px;
    text-shadow:
        2px 0 rgba(0,0,0,0.92),
        -2px 0 rgba(0,0,0,0.92),
        0 2px rgba(0,0,0,0.92),
        0 -2px rgba(0,0,0,0.92),
        2px 2px rgba(0,0,0,0.92),
        -2px 2px rgba(0,0,0,0.92),
        2px -2px rgba(0,0,0,0.92),
        -2px -2px rgba(0,0,0,0.92),
        2px 0 rgba(96,165,250,0.75),
        -2px 0 rgba(168,85,247,0.70),
        0 14px 28px rgba(0,0,0,0.45);
}
body.overlay-root[data-theme="retro"] .highlight {
    color: #93c5fd;
    text-shadow:
        2px 0 rgba(0,0,0,0.92),
        -2px 0 rgba(0,0,0,0.92),
        0 2px rgba(0,0,0,0.92),
        0 -2px rgba(0,0,0,0.92),
        2px 2px rgba(0,0,0,0.92),
        -2px 2px rgba(0,0,0,0.92),
        2px -2px rgba(0,0,0,0.92),
        -2px -2px rgba(0,0,0,0.92),
        2px 0 rgba(96,165,250,0.80),
        -2px 0 rgba(168,85,247,0.78),
        0 14px 28px rgba(0,0,0,0.45);
}
body.overlay-root[data-theme="neon"] #alert-box {
    border: 2px solid var(--styx-alert-border-color);
    box-shadow: var(--styx-alert-shadow), 0 0 42px rgba(59, 130, 246, 0.40), 0 0 28px rgba(16, 185, 129, 0.22), 0 0 18px rgba(236, 72, 153, 0.18);
}
body.overlay-root[data-theme="neon"] #alert-box::before {
    opacity: 0.55;
    background:
        radial-gradient(900px 260px at 50% 0%, rgba(59,130,246,0.32), transparent 60%),
        radial-gradient(900px 260px at 50% 100%, rgba(16,185,129,0.24), transparent 60%),
        linear-gradient(135deg, rgba(236,72,153,0.14), rgba(0,0,0,0));
}
body.overlay-root[data-theme="neon"] .highlight { text-shadow: 0 0 12px rgba(59,130,246,0.45), 0 0 18px rgba(16,185,129,0.25), 0 6px 18px rgba(0,0,0,0.35); }

body.overlay-root[data-theme="aurora"] #alert-box {
    border: 2px solid var(--styx-alert-border-color);
    box-shadow: var(--styx-alert-shadow), 0 0 42px rgba(34,211,238,0.20), 0 0 32px rgba(168,85,247,0.18), 0 0 22px rgba(236,72,153,0.14);
}
body.overlay-root[data-theme="aurora"] #alert-box::before {
    opacity: 0.65;
    background:
        radial-gradient(1200px 500px at 10% 0%, rgba(34,211,238,0.38), transparent 60%),
        radial-gradient(1000px 500px at 90% 10%, rgba(168,85,247,0.30), transparent 62%),
        radial-gradient(900px 500px at 60% 110%, rgba(236,72,153,0.22), transparent 60%),
        linear-gradient(135deg, rgba(255,255,255,0.10), rgba(0,0,0,0));
}
body.overlay-root[data-theme="aurora"] .alert-type { letter-spacing: 5px; text-shadow: 0 0 16px rgba(34,211,238,0.30), 0 0 16px rgba(168,85,247,0.22), 0 10px 25px rgba(0,0,0,0.35); }
body.overlay-root[data-theme="aurora"] .highlight { color: #a5f3fc; text-shadow: 0 0 16px rgba(34,211,238,0.35), 0 0 18px rgba(168,85,247,0.25), 0 8px 22px rgba(0,0,0,0.35); }

body.overlay-root[data-theme="noir"] #alert-box { border: 2px solid rgba(255,255,255,0.80); box-shadow: var(--styx-alert-shadow), 0 20px 45px rgba(0,0,0,0.65); }
body.overlay-root[data-theme="noir"] #alert-box::before {
    opacity: 0.55;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.22)),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, rgba(0,0,0,0) 1px 5px);
}
body.overlay-root[data-theme="noir"] .alert-type { letter-spacing: 7px; opacity: 0.92; text-shadow: 0 12px 28px rgba(0,0,0,0.65); }
body.overlay-root[data-theme="noir"] .highlight { color: #ffffff; text-shadow: 0 0 0 rgba(0,0,0,0), 0 16px 32px rgba(0,0,0,0.70); }

body.overlay-root[data-theme="comic"] #alert-box { border: 4px solid rgba(0,0,0,0.85); border-radius: 1.1rem; box-shadow: var(--styx-alert-shadow), 0 18px 0 rgba(0,0,0,0.35); }
body.overlay-root[data-theme="comic"] #alert-box::before {
    opacity: 0.55;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.20) 0 3px, rgba(0,0,0,0) 4px),
        radial-gradient(circle at 70% 60%, rgba(255,255,255,0.14) 0 3px, rgba(0,0,0,0) 4px),
        radial-gradient(circle at 40% 85%, rgba(255,255,255,0.12) 0 3px, rgba(0,0,0,0) 4px),
        repeating-radial-gradient(circle at 20% 30%, rgba(0,0,0,0.08) 0 2px, rgba(0,0,0,0) 2px 7px);
    background-size: auto, auto, auto, 14px 14px;
}
body.overlay-root[data-theme="comic"] .alert-type { letter-spacing: 3px; text-shadow: 3px 3px 0 rgba(0,0,0,0.85); }
body.overlay-root[data-theme="comic"] .alert-message { text-shadow: 3px 3px 0 rgba(0,0,0,0.85), 0 10px 25px rgba(0,0,0,0.35); }
body.overlay-root[data-theme="comic"] .highlight { text-shadow: 3px 3px 0 rgba(0,0,0,0.85), 0 0 14px rgba(255,255,255,0.14); }

body.overlay-root .alert-type {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 0.5rem;
}
body.overlay-root .alert-message { font-size: 2.5rem; font-weight: 800; }
body.overlay-root .highlight { color: inherit; text-shadow: 0 2px 4px rgba(0,0,0,0.2); font-weight: 900; }

.admin-user-tip-trigger {
    background: transparent;
    border: 0;
    padding: 0;
    margin-left: 0.35rem;
    color: inherit;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline dotted rgba(255,255,255,0.35);
    text-underline-offset: 3px;
}
.admin-user-tip-trigger:hover {
    color: var(--primary);
    text-decoration-color: rgba(99,102,241,0.60);
}
.admin-user-tip {
    position: fixed;
    z-index: 9999;
    width: min(420px, calc(100vw - 20px));
    padding: 0.9rem 1rem;
    box-shadow: 0 22px 60px rgba(0,0,0,0.55);
}
.admin-user-tip-pills {
    margin-top: 0.7rem;
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.admin-user-tip-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.18);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.2px;
}
.admin-user-tip-pill-primary { border-color: rgba(99,102,241,0.50); background: rgba(99,102,241,0.12); color: #c7d2fe; }
.admin-user-tip-pill-success { border-color: rgba(16,185,129,0.45); background: rgba(16,185,129,0.12); color: #bbf7d0; }
.admin-user-tip-pill-danger { border-color: rgba(239,68,68,0.50); background: rgba(239,68,68,0.12); color: #fecaca; }
.admin-user-tip-pill-warning { border-color: rgba(245,158,11,0.50); background: rgba(245,158,11,0.12); color: #fde68a; }
.admin-user-tip-pill-muted { border-color: rgba(255,255,255,0.10); background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.85); }
.admin-user-tip-pill-gem { border-color: rgba(147,51,234,0.55); background: rgba(147,51,234,0.14); color: #e9d5ff; }
.admin-user-tip-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    object-fit: cover;
    flex: 0 0 auto;
}
.admin-user-tip-meta {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.4rem;
}
.admin-user-tip-row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}
.admin-user-tip-k {
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
    padding-top: 1px;
}
.admin-user-tip-v {
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.admin-user-tip-link {
    display: inline-block;
    max-width: 100%;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}
.admin-user-tip-link:hover { color: var(--primary-hover); }

.user-profile-close-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0.85rem;
}

.user-profile-body {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.user-profile-left {
    flex: 0 0 140px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}
.user-profile-avatar {
    width: 128px;
    height: 128px;
    border-radius: 1.1rem;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.22);
    object-fit: cover;
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}
.user-profile-right { flex: 1 1 auto; min-width: 0; }
.user-profile-right .admin-user-tip-pills { margin-top: 0.85rem; }
.user-profile-right .admin-user-tip-meta { margin-top: 1rem; }
.user-profile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.user-profile-modal-card .admin-user-tip-row {
    grid-template-columns: 170px minmax(0, 1fr);
}
.user-profile-modal-card .admin-user-tip-k {
    font-weight: 1000;
    color: rgba(255,255,255,0.90);
}
.user-profile-modal-card .admin-user-tip-v {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-weight: 750;
}

@media (max-width: 720px) {
    .user-profile-body { flex-direction: column; }
    .user-profile-left { flex: 0 0 auto; width: 100%; justify-content: center; }
    .user-profile-avatar { width: 104px; height: 104px; border-radius: 999px; }
    .user-profile-modal-card .admin-user-tip-row { grid-template-columns: 140px minmax(0, 1fr); }
}
