.admin-panel{
    border: #f18805 1px solid;
    border-radius: 15px;
    padding: 15px;
    margin: -20px 0 20px 0;
}

.admin-panel-title{
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 8px;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.admin-panel-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-toggles-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

.admin-panel-heading h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.admin-date-subtle {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.admin-testUser-wrapper{
    border: #007D47 1px solid;
    border-radius: 8px;
    padding: 6px 14px;
    background-color: #E6F2ED;
    color: #007D47;
    width: fit-content;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
}

/* Paid toggle */
.admin-paid-wrapper {
    border: 1px solid;
    border-radius: 8px;
    padding: 6px 14px;
    width: fit-content;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* ON — Green */
.admin-paid-on {
    background-color: #E6F2ED;
    border-color: #007D47;
    color: #007D47;
}

/* OFF — Red */
.admin-paid-off {
    background-color: #FFE6E6;
    border-color: #FA0608;
    color: #FA0608;
}

/* Hide native checkbox */
.admin-paid-wrapper input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}


.admin-panel-content{
    justify-content: flex-start;
    margin: 0 0 12px 0;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-editor-modal-wrapper{
    min-width: fit-content !important;
}

.admin-editor-modal-wrapper .modal-dialog .modal-content .template-stats-modal-wrapper{
    height: 50% ;
    width: fit-content;
    min-width: fit-content;
}

.admin-editor-modal-wrapper .modal-dialog .modal-body {
    margin-top: 0;
    width: 100%;
}

#admin-new-submissions-tab-editedSubmissions{
    border: none !important;
    background: #ffffff !important;
}

.admin-editor-modal-wrapper .nav-tabs .nav-link.active {
    border: none !important;
    box-shadow: none !important;
    color: #D95D39;
    font-weight: bolder;
}

.admin-editor-modal-wrapper .nav-tabs .nav-link,
.admin-editor-modal-wrapper .nav-tabs .nav-link:hover{
    border: none !important;
}

.admin-analytics{
    display: flex;
    flex-direction: column;
    border: #f18805 1px solid;
    border-radius: 15px;
    justify-content: center;
    align-items: center;
    padding: 8px;
    margin-bottom: 10px;
    background-color: #FFFFFF;
    line-break: anywhere;
    text-align: center;
}

.admin-review-wrapper{
    display: flex;
    flex-direction: column;
    padding: 0 15px ;
}

.template-stats-wrapper{
    display: flex;
    flex-direction: column;
    padding: 0 ;
}

.admin-scrollable {
    height: 60vh;
    overflow-y: auto;
    margin-top: 30px;
}

.admin-scrollable-new {
    height: auto;
    overflow-y: auto;
    margin-top: 30px;
    min-width: min-content;
}

.admin-review-nothing{
    display: flex;
    flex-direction: column;
    margin: 40px auto;
    border: solid 2px #0F1429;
    border-radius: 15px;
    padding: 30px;
    width: fit-content;
    justify-content: space-around;
    background: white;
}

.admin-review-new, .admin-review-edit, .level-editor-wrapper{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    background-color: white;
    overflow: hidden;
    border: solid 1px lightgray;
    border-radius: 15px;
    flex-wrap: nowrap !important;
    padding: 15px;
    margin-bottom: 30px;
    margin-left: 15px;
    margin-right: 15px;
}

.admin-review-wrapper-title{
    text-align: center;
    font-weight: bolder;
    margin: 16px 0;
    font-size: 16px;
    text-transform: uppercase;
}

.admin-review-title{
    font-weight: bolder;
    font-size: 16px;
}

.admin-review-content{
    padding: 0 !important;
    width: 50%;
    margin: 0 30px;
}

.admin-review-link{
    background-color: #2d4456;
    color: white;
    border-radius: 5px;
    padding: 5px;
}

.admin-review-screenshot-wrapper{
    max-width: 33%;
    display: flex;
    justify-content: flex-end;

}
.admin-review-screenshot{
    max-width: 100%;
    max-height: 200px;
    border-radius: 15px;
}

.admin-editor-modal{
    width: 100%;
}

/*override stock react-bootstrap style*/
.page-link, .page-item{
    display: flex !important;
    margin: 0 2px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    align-items: center;
    justify-content: center;
    align-content: center;
}

.page-item:nth-child(3) .page-link {
    min-height: 100% !important;
    min-width: 100% !important;
    border-radius: 8px;
}

#pagination-admin-pages-buttons{
    display: flex !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
    height: 42px;
    width: 42px;
    align-items: center;
    justify-content: center;
    font-size: 0;
    line-height: 0;
}

.pagination-admin-pages-showing{
    border: none !important;
}

#pagination-admin-pages-buttons img{
    height: 30px !important;
    width: 30px !important;
}

/*Message Denied Modal*/
.admin-denied-textarea{
    display: flex;
    justify-self: center;
    align-self: center;
    min-width: 80%;
    margin-bottom: 20px;
    border: red solid 3px;
    border-radius: 5px ;
    margin-left: auto ;
    margin-right: auto ;
}

.tag-editor-wrapper{
}

.tag-editor-selected{
    margin: 15px auto 15px auto;
}

.tag-editor{
    margin: auto;
}

.level-editor-wrapper{
}

.level-editor-user{
    font-weight: bolder;
    color: #D95D39;
    margin-bottom: 15px;
    font-size: 20px;
}

.level-editor-row{
    display: flex;
    padding-bottom: 30px;
}

.level-editor-status{
    display: flex;
    align-self: center;
}

.level-editor-dropdown{
    margin-left: 10px;
    border-radius: 8px;
}

.level-editor-button{
    width: 50%;
}

.level-editor-message{
    padding: 0;
    margin: -15px 0 0 0 ;
    display: flex;
    justify-content: space-around;
}

.filter-row {
    margin-right: -15px;
    margin-left: -15px;
}

.filter-col,
.search-col {
    padding-right: 15px;
    padding-left: 15px;
}

.filter-col .dropdown-toggle {
    width: 100%;
}
.dropdown-basic{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.admin-status-wrapper-live{
    padding: 12px 12px 12px 17px;
    background: rgba(0, 125, 71, 0.05);
    border-radius: 15px;
    margin-right: 15px;
    flex-direction: column;
}

.admin-status-wrapper-pending{
    padding: 12px 12px 12px 17px;
    background: #FEF3E6;
    border-radius: 15px;
    margin-right: 15px;
    flex-direction: column;
}

.admin-status-wrapper-rejected{
    padding: 12px 12px 12px 17px;
    background: #FFE6E6;
    border-radius: 15px;
    margin-right: 15px;
    flex-direction: column;
}

.admin-status-live, .admin-status-pending, .admin-status-rejected {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 32px;
    padding: 8px 12px 8px 22px;
    border-radius: 18px;
    background: #007D4726;
    color: #007D47;
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    position: relative; /* For absolute positioning of the dot */
    opacity: 1;
    white-space: nowrap;
}

.admin-status-live::before, .admin-status-pending::before, .admin-status-rejected::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #007D47;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.admin-status-pending {
    background: rgba(241, 136, 5, 0.15);
    color: #F18805;
    width: min-content;
}

.admin-status-pending::before {
    background: #F18805;
}

.admin-status-rejected {
    background: rgba(250, 6, 8, 0.15);
    color: #FA0608;
    width: min-content;
}

.admin-status-rejected::before {
    background: #FA0608;
}

.admin-status-text{
    color: #4F5674;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    padding-top: 12px;
}

.nav-bar,
.seller-notification {
    z-index: 1000 !important; /* they stay above the app, but BELOW overlay */
}



/* Floating admin button */
.admin-floating-button {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.admin-floating-button:hover {
    background: #4338ca;
}

/* Fullscreen overlay specifically for the Admin Panel */
/* UNIVERSAL FULLSCREEN BACKDROP (covers absolutely everything) */
.admin-panel-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    background: rgba(0,0,0,0.88) !important;
    backdrop-filter: blur(8px) !important;

    z-index: 999999999 !important;

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

    overflow-y: auto !important;
    padding: 40px 20px !important;
}


/* Admin modal content */
.admin-panel-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;

    width: 95%;
    max-width: 900px;

    max-height: 90vh !important;
    overflow-y: auto !important;

    box-shadow: 0 10px 40px rgba(0,0,0,0.4);

    position: relative;
    z-index: 1000000000 !important;
}



body.admin-panel-open {
    overflow: hidden !important;
}


.admin-panel-wrapper{
    /* padding: 30px; */
}

.admin-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.admin-btn {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.admin-btn:hover {
    background: #4338ca;
}

.admin-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #aaa;
    border-radius: 8px;
    margin-top: 10px;
}

.admin-panel-title-main {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.admin-panel-section {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.admin-panel-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-panel-section-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}

.admin-panel-buttons-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

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

.admin-panel-editor {
    margin-top: 6px;
}

.admin-panel-editor-title {
    font-size: 13px;
    margin-bottom: 6px;
}
.admin-panel-editor-title span {
    font-weight: 600;
}

.admin-panel-textarea {
    width: 100%;
    min-height: 180px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    line-height: 1.4;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.admin-panel-editor-actions {
    margin-top: 10px;
}

.admin-panel-hint {
    font-size: 13px;
    color: #6b7280;
}

.admin-panel-error, .admin-panel-success {
    margin: 5px 0 0 5px;
    font-size: 12px;
    color: #b91c1c;
    font-weight: bolder;
}

.admin-panel-success {
    color: #00c000;
}


/* DARK BACKDROP */
.overlay-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    background: rgba(0,0,0,0.88) !important;
    backdrop-filter: blur(6px) !important;

    z-index: 999999999 !important;

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

    overflow-y: auto !important;
    padding: 40px 20px !important;
}

/* TERMINAL WINDOW */
.terminal-window {
    width: 95%;
    max-width: 1200px;
    max-height: 85vh;

    background: #111;
    border-radius: 10px;
    border: 1px solid #333;

    display: flex;
    flex-direction: column;

    overflow: hidden;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}


.terminal-header {
    padding: 14px 20px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    color: #0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: monospace;
    font-size: 16px;
}

.terminal-close-btn {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
}


/* BODY (LOG AREA) */
.terminal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    font-family: monospace;
    font-size: 14px;
    color: #ddd;
}

.terminal-line {
    margin: 0 0 8px 0;
    white-space: pre-wrap;
    color: #5fd35f;

}

/* FOOTER */
.terminal-footer {
    padding: 12px 20px;
    background: #1a1a1a;
    border-top: 1px solid #333;
    color: #0f0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: monospace;
}

.terminal-footer.done {
    flex-direction: column;
    align-items: flex-start;
    color: #bdff00;
}

.terminal-open-btn {
    display: inline-block;
    margin-bottom: 10px;
    background: #72e3b2;
    color: #000 !important;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.terminal-stats p {
    margin: 0;

}

/* Spinner */
.terminal-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid #0f0;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.7s linear infinite;
}

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

/* ── Email Center ─────────────────────────────────────────────────────────── */

.email-center-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0 12px 12px 12px;
    overflow: hidden;
}

.ec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #0e0e0e;
    color: #fff;
    gap: 16px;
    flex-wrap: wrap;
}

.ec-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ec-icon {
    width: 38px;
    height: 38px;
    background: #6366f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.ec-title {
    font-weight: 700;
    font-size: 15px;
}

.ec-subtitle {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 1px;
}

.ec-tabs {
    display: flex;
    gap: 4px;
}

.ec-tab {
    background: transparent;
    border: 1px solid #444;
    color: #9ca3af;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.ec-tab.active,
.ec-tab:hover {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.ec-body {
    padding: 24px;
}

/* Fields */
.ec-field {
    margin-bottom: 20px;
}

.ec-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.ec-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.ec-input:focus {
    outline: none;
    border-color: #6366f1;
}

.ec-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111;
    background: #fff;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
    resize: vertical;
    transition: border-color 0.15s;
}

.ec-textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.ec-textarea-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Segment chips */
.ec-segment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.ec-segment-chip {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.ec-segment-chip:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.ec-segment-chip.selected {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.ec-segment-desc {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ec-preview-btn {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 11px;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
}

.ec-preview-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.ec-preview-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Recipients preview */
.ec-recipients-box {
    margin-top: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
}

.ec-recipients-count {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.ec-recipients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ec-recipient-tag {
    background: #e0e7ff;
    color: #4338ca;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
}

.ec-recipient-more {
    font-size: 11px;
    color: #6b7280;
    padding: 2px 6px;
}

/* Status message */
.ec-status {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.ec-status-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.ec-status-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Action buttons */
.ec-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ec-btn {
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
}

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

.ec-btn-clear {
    background: #f3f4f6;
    color: #374151;
}

.ec-btn-clear:hover:not(:disabled) {
    background: #e5e7eb;
}

.ec-btn-test {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.ec-btn-test:hover:not(:disabled) {
    background: #ffedd5;
}

.ec-btn-send {
    background: #6366f1;
    color: #fff;
}

.ec-btn-send:hover:not(:disabled) {
    background: #4f46e5;
}

/* Transactional table */
.ec-trans-intro {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

.ec-trans-table {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    font-size: 13px;
}

.ec-trans-header {
    display: grid;
    grid-template-columns: 36px 1fr 1fr 1fr 70px 80px;
    gap: 0;
    background: #f9fafb;
    padding: 10px 14px;
    color: #374151;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e5e7eb;
}

.ec-trans-row {
    display: grid;
    grid-template-columns: 36px 1fr 1fr 1fr 70px 80px;
    gap: 0;
    padding: 10px 14px;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.1s;
}

.ec-trans-row:last-child {
    border-bottom: none;
}

.ec-trans-row:hover {
    background: #fafafa;
}

.ec-trans-id {
    color: #9ca3af;
    font-size: 12px;
}

.ec-trans-name {
    font-weight: 500;
    color: #111827;
}

.ec-trans-trigger {
    color: #6b7280;
    font-size: 12px;
}

.ec-trans-recipient {
    color: #6b7280;
    font-size: 12px;
}

.ec-badge-live {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

/* ── Email template preview button (transactional rows) ─────────────────────── */
.ec-preview-template-btn {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ec-preview-template-btn:hover {
    background: #ff4a00;
    border-color: #ff4a00;
    color: #fff;
}

/* ── Email preview modal ──────────────────────────────────────────────────────── */
.ec-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 41, 0.6);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ec-preview-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 20, 41, 0.3);
}

.ec-preview-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    flex-shrink: 0;
}

.ec-preview-modal-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.ec-preview-modal-close {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.1s;
}
.ec-preview-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.ec-preview-modal-body {
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.ec-preview-frame {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    display: block;
}

.ec-preview-loading {
    padding: 60px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* ── Dark Mode ────────────────────────────────────────────────────────────── */

/* Admin panel container */
[data-theme="dark"] .admin-panel {
    background: #0d0f1a;
}

/* Title text */
[data-theme="dark"] .admin-panel h1,
[data-theme="dark"] .admin-panel h2,
[data-theme="dark"] .admin-panel h3,
[data-theme="dark"] .admin-panel h4,
[data-theme="dark"] .admin-panel h5 {
    color: #e2e8f0;
}

/* Nav buttons (Editor Feed, Our Users, etc.) */
[data-theme="dark"] .admin-panel-content #buttons,
[data-theme="dark"] .admin-panel-content .buttons {
    background-color: #1e2235 !important;
    border-color: #2d3655 !important;
    color: #e2e8f0 !important;
}
[data-theme="dark"] .admin-panel-content #buttons:hover,
[data-theme="dark"] .admin-panel-content .buttons:hover {
    background-color: #ff4a00 !important;
    border-color: #ff4a00 !important;
    color: #fff !important;
}

/* Date badge */
[data-theme="dark"] .admin-date-wrapper {
    background: #0e1c30;
    color: #7db8f7;
    border-color: #1e3a5a;
}

/* Simulate / Paid toggles */
[data-theme="dark"] .admin-testUser-wrapper,
[data-theme="dark"] .admin-paid-on {
    background: #0f2a1e;
    color: #4ade80;
    border-color: #166534 !important;
}
[data-theme="dark"] .admin-paid-off {
    background: #2a0a0a;
    color: #f87171;
    border-color: #7f1d1d !important;
}

/* Analytics stat cards */
[data-theme="dark"] .admin-analytics {
    background-color: #141828;
    color: #e2e8f0;
    border-color: rgba(241, 136, 5, 0.4);
}

/* Site analytics / KPI section headings */
[data-theme="dark"] .admin-review-wrapper-title {
    color: #94a3b8;
}
[data-theme="dark"] .admin-status-text {
    color: #8b9ab0;
}

/* Review cards */
[data-theme="dark"] .admin-review-nothing,
[data-theme="dark"] .admin-review-new,
[data-theme="dark"] .admin-review-edit,
[data-theme="dark"] .level-editor-wrapper {
    background-color: #141828;
    border-color: #1e2235;
    color: #e2e8f0;
}

/* Admin panel modal card */
[data-theme="dark"] .admin-panel-card {
    background: #141828;
    color: #e2e8f0;
}
[data-theme="dark"] .admin-panel-title-main {
    color: #e2e8f0;
}
[data-theme="dark"] .admin-panel-section {
    border-top-color: #1e2235;
}
[data-theme="dark"] .admin-panel-section-subtitle,
[data-theme="dark"] .admin-panel-hint {
    color: #64748b;
}
[data-theme="dark"] .admin-input,
[data-theme="dark"] .admin-panel-textarea {
    background: #1e2235;
    border-color: #2d3655;
    color: #e2e8f0;
}
[data-theme="dark"] .admin-close {
    color: #94a3b8;
}

/* ── Email Center — dark mode ─────────────────────────────────────────────── */
[data-theme="dark"] .email-center-panel {
    background: #141828;
    border-color: #1e2235;
}
[data-theme="dark"] .ec-body {
    background: #141828;
}
[data-theme="dark"] .ec-label {
    color: #64748b;
}
[data-theme="dark"] .ec-input,
[data-theme="dark"] .ec-textarea {
    background: #1e2235;
    border-color: #2d3655;
    color: #e2e8f0;
}
[data-theme="dark"] .ec-input::placeholder,
[data-theme="dark"] .ec-textarea::placeholder {
    color: #3d4f63;
}
[data-theme="dark"] .ec-input:focus,
[data-theme="dark"] .ec-textarea:focus {
    border-color: #6366f1;
    background: #252b45;
}
[data-theme="dark"] .ec-textarea-hint {
    color: #3d4f63;
}
[data-theme="dark"] .ec-segment-chip {
    background: #1e2235;
    border-color: #2d3655;
    color: #8b9ab0;
}
[data-theme="dark"] .ec-segment-chip:hover {
    border-color: #6366f1;
    color: #a5b4fc;
}
[data-theme="dark"] .ec-segment-chip.selected {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}
[data-theme="dark"] .ec-segment-desc {
    color: #3d4f63;
}
[data-theme="dark"] .ec-preview-btn {
    background: transparent;
    border-color: #2d3655;
    color: #8b9ab0;
}
[data-theme="dark"] .ec-preview-btn:hover {
    border-color: #6366f1;
    color: #a5b4fc;
}
[data-theme="dark"] .ec-btn-clear {
    background: #1e2235;
    color: #8b9ab0;
}
[data-theme="dark"] .ec-btn-clear:hover:not(:disabled) {
    background: #252b45;
    color: #e2e8f0;
}
[data-theme="dark"] .ec-btn-test {
    background: #2a1505;
    color: #fb923c;
    border-color: #7c2d12;
}
[data-theme="dark"] .ec-btn-test:hover:not(:disabled) {
    background: #431d09;
}
[data-theme="dark"] .ec-recipients-box {
    background: #1a1d2e;
    border-color: #2d3655;
}
[data-theme="dark"] .ec-recipients-count {
    color: #64748b;
}
[data-theme="dark"] .ec-trans-table {
    border-color: #2d3655;
}
[data-theme="dark"] .ec-trans-header {
    background: #1e2235;
    color: #64748b;
    border-bottom-color: #2d3655;
}
[data-theme="dark"] .ec-trans-row {
    border-bottom-color: #1a1d2e;
}
[data-theme="dark"] .ec-trans-row:hover {
    background: #1a1d2e;
}
[data-theme="dark"] .ec-trans-name {
    color: #e2e8f0;
}
[data-theme="dark"] .ec-trans-trigger,
[data-theme="dark"] .ec-trans-recipient,
[data-theme="dark"] .ec-trans-id {
    color: #475569;
}
[data-theme="dark"] .ec-trans-intro {
    color: #475569;
}
[data-theme="dark"] .ec-preview-template-btn {
    border-color: #2d3655;
    color: #8b9ab0;
}

/* ── Admin Tools Center (tab wrapper for Email + Mini App) ───────────────── */

.atc-root {
    width: 100%;
}

.atc-tab-bar {
    display: flex;
    gap: 6px;
    margin-bottom: -1px; /* merge with panel border below */
    padding: 0 2px;
}

.atc-tab {
    padding: 9px 20px;
    border-radius: 8px 8px 0 0;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.01em;
}

.atc-tab:hover {
    background: #e9eaf0;
    color: #111827;
}

.atc-tab--active {
    background: #fff;
    color: #111827;
    border-color: #e5e7eb;
    position: relative;
    z-index: 1;
}

/* Active tab bottom covers the panel border so they look connected */
.atc-tab--active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
}

.atc-body {
    position: relative;
    z-index: 0;
}

/* ── Mini App Center ──────────────────────────────────────────────────────── */

.mac-root {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0 12px 12px 12px;
    overflow: hidden;
}

.mac-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #0e0e0e;
    color: #fff;
    gap: 16px;
    flex-wrap: wrap;
}

.mac-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mac-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(241,136,5,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.mac-title {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
}

.mac-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 1px;
}

.mac-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.mac-hiw-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
}

.mac-hiw-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

.mac-hiw-status {
    font-size: 11px;
    font-weight: 600;
    min-width: 44px;
}

.mac-hiw-status--on  { color: #4ade80; }
.mac-hiw-status--off { color: #64748b; }

.mac-hiw-toggle {
    width: 40px !important;
    height: 22px !important;
    min-width: 40px !important;
}

.mac-hiw-toggle .mac-toggle-knob {
    width: 16px !important;
    height: 16px !important;
}

.mac-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #94a3b8;
}

.mac-legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.mac-legend-dot--on  { background: #22c55e; }
.mac-legend-dot--off { background: #475569; }

.mac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    padding: 20px;
}

.mac-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    transition: opacity 0.2s, border-color 0.2s;
}

.mac-card--off {
    opacity: 0.45;
    border-color: #e5e7eb;
}

.mac-card--on {
    opacity: 1;
    border-color: #d1fae5;
    background: #f0fdf4;
}

.mac-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    color: #fff;
}

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

.mac-card-name {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mac-card-tagline {
    font-size: 11px;
    color: #6b7280;
    margin-top: 1px;
}

.mac-card-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    margin-top: 4px;
    letter-spacing: 0.04em;
}

/* Toggle switch */
.mac-toggle {
    flex-shrink: 0;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
    padding: 0;
}

.mac-toggle--on  { background: #22c55e; }
.mac-toggle--off { background: #cbd5e1; }

.mac-toggle:disabled { opacity: 0.6; cursor: default; }

.mac-toggle-knob {
    position: absolute;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: left 0.2s;
}

.mac-toggle--on  .mac-toggle-knob { left: 21px; }
.mac-toggle--off .mac-toggle-knob { left: 3px; }

/* ── Dark mode — Admin Tools Center tabs ─────────────────────────────────── */

[data-theme="dark"] .atc-tab {
    background: #161d35;
    border-color: #2d3655;
    color: #64748b;
}

[data-theme="dark"] .atc-tab:hover {
    background: #1e2744;
    color: #cbd5e1;
}

[data-theme="dark"] .atc-tab--active {
    background: #0e0e0e;
    color: #f1f5f9;
    border-color: #2d3655;
}

[data-theme="dark"] .atc-tab--active::after {
    background: #0e0e0e;
}

/* ── Dark mode — Mini App Center ─────────────────────────────────────────── */

[data-theme="dark"] .mac-root {
    background: #0e0e0e;
    border-color: #2d3655;
}

[data-theme="dark"] .mac-card {
    background: #161d35;
    border-color: #2d3655;
}

[data-theme="dark"] .mac-card--on {
    background: #0d1f15;
    border-color: #166534;
}

[data-theme="dark"] .mac-card-name {
    color: #f1f5f9;
}

[data-theme="dark"] .mac-card-tagline {
    color: #64748b;
}

[data-theme="dark"] .mac-toggle--off { background: #334155; }

/* Admin status banners */
[data-theme="dark"] .admin-status-wrapper-live {
    background: rgba(0, 125, 71, 0.1);
}
[data-theme="dark"] .admin-status-wrapper-pending {
    background: rgba(241, 136, 5, 0.1);
}
[data-theme="dark"] .admin-status-wrapper-rejected {
    background: rgba(250, 6, 8, 0.1);
}

/* ── Template Tools (shelved) ────────────────────────────────────────────── */

.tt-root {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0 12px 12px 12px;
    overflow: hidden;
}

.tt-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #111827;
    gap: 12px;
}

.tt-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tt-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(156, 163, 175, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.tt-title {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
}

.tt-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-top: 1px;
}

.tt-body {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

[data-theme="dark"] .tt-root {
    background: #0e0e0e;
    border-color: #2d3655;
}

/* ── User Center ──────────────────────────────────────────────────────────── */

.uc-root {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0 12px 12px 12px;
    overflow: hidden;
}

.uc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #111827;
    gap: 16px;
    flex-wrap: wrap;
}

.uc-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.uc-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.uc-title {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
}

.uc-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 1px;
}

.uc-search-wrap {
    flex: 1;
    max-width: 280px;
    min-width: 160px;
}

.uc-search {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 13px;
    outline: none;
}

.uc-search::placeholder { color: #64748b; }
.uc-search:focus { border-color: rgba(255,255,255,0.3); }

.uc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
}

.uc-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.uc-filter-label {
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.uc-filter-pills {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.uc-pill {
    padding: 3px 10px;
    border-radius: 99px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.12s;
}

.uc-pill:hover { border-color: #9ca3af; color: #111827; }
.uc-pill--active { background: #111827; border-color: #111827; color: #fff; }

[data-theme="dark"] .uc-filters { background: #0a0a0a; border-color: #2d3655; }
[data-theme="dark"] .uc-pill { background: #1e2744; border-color: #2d3655; color: #94a3b8; }
[data-theme="dark"] .uc-pill--active { background: #6366f1; border-color: #6366f1; color: #fff; }

.uc-list {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 520px;
    overflow-y: auto;
}

.uc-empty {
    text-align: center;
    color: #9ca3af;
    padding: 32px 0;
    font-size: 14px;
}

.uc-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    flex-wrap: wrap;
}

.uc-card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 200px;
}

.uc-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.uc-username {
    font-weight: 700;
    font-size: 14px;
    color: #D95D39;
}

.uc-fullname {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.uc-saving {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

.uc-saved {
    font-size: 11px;
    color: #16a34a;
    font-weight: 600;
}

.uc-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.uc-meta-item {
    font-size: 12px;
    color: #6b7280;
}

.uc-stat-pill {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    background: #e5e7eb;
    padding: 2px 8px;
    border-radius: 99px;
}

.uc-verified-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 99px;
}

.uc-verified-badge--yes {
    background: #dcfce7;
    color: #15803d;
}

.uc-verified-badge--no {
    background: #fee2e2;
    color: #dc2626;
}

.uc-card-controls {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-end;
    -webkit-max-inline-size: fit-content;
}

.uc-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.uc-label {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.uc-label-button{
    /* margin-bottom: -8px; */
}

.uc-select {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #111827;
    cursor: pointer;
    outline: none;
}

.uc-select:focus { border-color: #6366f1; }

.uc-update-btn {
    padding: 7px 16px;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.uc-update-btn:hover { background: #1e293b; }
.uc-update-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Dark mode */
[data-theme="dark"] .uc-root {
    background: #0e0e0e;
    border-color: #2d3655;
}

[data-theme="dark"] .uc-card {
    background: #161d35;
    border-color: #2d3655;
}

[data-theme="dark"] .uc-fullname { color: #cbd5e1; }
[data-theme="dark"] .uc-meta-item { color: #64748b; }
[data-theme="dark"] .uc-stat-pill { background: #2d3655; color: #94a3b8; }

[data-theme="dark"] .uc-select {
    background: #1e2744;
    border-color: #2d3655;
    color: #f1f5f9;
}

[data-theme="dark"] .uc-update-btn {
    background: #6366f1;
}

[data-theme="dark"] .uc-update-btn:hover {
    background: #4f46e5;
}

/* ============================================================
   App Analytics (aa-)
   ============================================================ */

.aa-root {
    border: #f18805 1px solid;
    border-radius: 15px;
    padding: 15px;
    margin: 0 15px 30px;
    background-color: #FFFFFF;
}

.aa-root.aa-loading {
    color: #94a3b8;
    font-size: 13px;
}

.aa-section-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    margin-bottom: 12px;
}

.aa-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.aa-stat {
    display: flex;
    flex-direction: column;
    border: #f18805 1px solid;
    border-radius: 15px;
    justify-content: center;
    align-items: center;
    padding: 10px 8px;
    background-color: #FFFFFF;
    text-align: center;
}

.aa-stat__num {
    font-size: 20px;
    font-weight: bold;
    color: #1e293b;
    line-height: 1.2;
}

.aa-stat__label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: 2px;
}

.aa-per-app {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aa-app-row {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.aa-app-row__main {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    flex-wrap: wrap;
    cursor: default;
}

.aa-app-row__main:has(.aa-expand-icon) {
    cursor: pointer;
}

.aa-expand-icon {
    font-size: 10px;
    color: #94a3b8;
}

.aa-terms {
    border-top: 1px solid #e2e8f0;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aa-term-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.aa-term-rank {
    color: #94a3b8;
    font-weight: 600;
    width: 28px;
    flex-shrink: 0;
}

.aa-term-value {
    color: #1e293b;
    flex: 1;
}

.aa-term-count {
    color: #6366f1;
    font-weight: 600;
    white-space: nowrap;
}

.aa-app-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    flex: 1 1 120px;
}

.aa-app-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.aa-app-pill {
    font-size: 11px;
    font-weight: 600;
    background: #6366f1;
    color: #fff;
    border-radius: 20px;
    padding: 3px 10px;
    white-space: nowrap;
}

.aa-app-pill--dim {
    background: #e2e8f0;
    color: #475569;
}

.aa-empty {
    font-size: 13px;
    color: #94a3b8;
    padding: 4px 0;
}

.admin-analytics-wrapper {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.admin-analytics-wrapper > .aa-root {
    flex: 1;
    margin: 0;
}

.ah-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 2px;
}
/* dark mode */
[data-theme="dark"] .aa-root {
    background-color: #141828;
    border-color: rgba(241, 136, 5, 0.4);
    color: #e2e8f0;
}
[data-theme="dark"] .aa-stat {
    background-color: #141828;
    border-color: rgba(241, 136, 5, 0.4);
}
[data-theme="dark"] .aa-stat__num { color: #f1f5f9; }
[data-theme="dark"] .aa-stat__label { color: #94a3b8; }
[data-theme="dark"] .aa-app-row {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .aa-app-name { color: #f1f5f9; }
[data-theme="dark"] .aa-app-pill--dim {
    background: #334155;
    color: #94a3b8;
}
[data-theme="dark"] .aa-terms {
    border-top-color: #334155;
}
[data-theme="dark"] .aa-term-value { color: #e2e8f0; }

