@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
@import url('https://cdn.jsdelivr.net/npm/remixicon@4.2.0/fonts/remixicon.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
    background: #f4f6f9;
    color: #111827;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* ===== NAVBAR ===== */

.navbar {
    background: white;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    min-width: 0;
}

.nav-left h2 {
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
    margin: 0;
    line-height: 1.2;
    color: #0f172a;
}

.nav-left select {
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-weight: 700;
    background: #f8fafc;
    font-size: 13px;
    color: #0f172a;
    cursor: pointer;
    outline: none;
}

/* ===== PROFILE ===== */

.nav-right {
    position: relative;
    cursor: pointer;
}

.avatar {
    width: 40px;
    height: 40px;
    background: #052e1f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
    overflow: hidden;
    z-index: 1200;
}

.dropdown.show {
    display: block;
}

.dropdown a {
    display: block;
    padding: 12px 18px;
    text-decoration: none;
    color: #111;
}

.dropdown a:hover {
    background: #f3f4f6;
}

/* ===== CONTAINER ===== */

.container {
    padding: 30px;
}

.page-header h1 {
    font-size: 26px;
    margin-bottom: 5px;
}

.page-header p {
    color: #6b7280;
    margin-bottom: 25px;
}

/* ===== ACTION CARDS ===== */

.section-title {
    margin-bottom: 15px;
    color: #4338ca;
    font-size: 20px;
}

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

.action-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #111;
    font-weight: 500;
}

.action-card h3 {
    margin-bottom: 10px;
}

.action-card input,
.action-card textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.action-card input:focus,
.action-card textarea:focus {
    outline: none;
    border-color: #4f46e5;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.action-card button {
    background: #4f46e5;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-card button:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-primary {
    background: #4f46e5;
    color: white;
}

.btn-primary:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

#confirm-modal,
#alert-modal,
#action-form-modal {
    z-index: 20000;
}

.modal.is-open {
    display: flex;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #ffffff;
    padding: 28px;
    max-width: 440px;
    width: 92%;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #e2e8f0;
    animation: modalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
}

.modal-content p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
}

.modal-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-cancel,
.btn-ok {
    padding: 10px 22px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
    outline: none;
}

.btn-cancel {
    background: #f1f5f9;
    color: #475569;
}

.btn-cancel:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-ok {
    background: #052e1f;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(5, 46, 31, 0.2);
}

.btn-ok:hover {
    background: #042418;
    transform: translateY(-1px);
}

.action-form-modal-content {
    width: min(580px, 94vw);
    max-width: 580px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    text-align: left;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    padding: 0 !important;
}

.action-form-modal-content-head {
    flex-shrink: 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #052e1f 0%, #0a4731 100%);
    color: #ffffff;
}

.action-form-modal-content h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
}

.action-form-sub {
    margin: 4px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.action-form-grid {
    display: grid;
    gap: 14px;
    padding: 20px 24px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    flex: 1;
}

.action-form-field {
    display: grid;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #052e1f;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.action-form-field input,
.action-form-field textarea,
.action-form-field select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.2s ease;
}

.action-form-field input:focus,
.action-form-field textarea:focus,
.action-form-field select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.action-form-actions {
    flex-shrink: 0;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* ===== User Lookup Modal ===== */

.user-modal-content {
    width: min(1080px, 94vw);
    max-width: 1080px;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.35);
    text-align: left;
}

.user-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: radial-gradient(circle at top left, #eef2ff 0%, #f8fafc 55%, #ffffff 100%);
}

.user-modal-title-wrap {
    min-width: 0;
}

.user-modal-head h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.user-modal-title-wrap p {
    margin: 2px 0 0;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
}

.user-modal-close {
    width: 34px;
    height: 34px;
    border: 1px solid #dbe1ea;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-modal-close:hover {
    background: #f1f5f9;
    border-color: #c7d2fe;
    color: #1d4ed8;
}

.user-modal-body {
    max-height: 70vh;
    overflow: auto;
    padding: 16px;
    background: #f8fafc;
}

.user-modal-actions {
    justify-content: flex-end;
    padding: 0 16px 16px;
    margin-top: 0;
}

.user-modal-message {
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    padding: 14px;
}

.user-modal-message.error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.user-modal-message.loading {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
}

.user-profile-shell {
    display: grid;
    gap: 12px;
}

.user-profile-header {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid #dbe7ff;
    border-radius: 14px;
    background: linear-gradient(140deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.user-avatar-placeholder {
    width: 84px;
    height: 84px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    background: #fff;
    flex: 0 0 auto;
}

.user-identity {
    min-width: 0;
}

.user-name {
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 2px;
}

.user-email {
    font-size: 14px;
    color: #334155;
    margin-bottom: 4px;
    word-break: break-word;
}

.user-meta {
    font-size: 12px;
    color: #64748b;
    word-break: break-word;
}

.user-admin-reason {
    margin-top: 6px;
    font-size: 12px;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 5px 8px;
    display: inline-block;
}

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

.stat-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 700;
}

.stat-value {
    font-size: 22px;
    line-height: 1.1;
    color: #0f172a;
    font-weight: 800;
}

.stat-blue {
    color: #1d4ed8;
}

.stat-green {
    color: #047857;
}

.stat-red {
    color: #b91c1c;
}

.stat-purple {
    color: #7c3aed;
}

.risk-section,
.breakdown-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
}

.breakdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    font-size: 15px;
    font-weight: 800;
    border-bottom: 1px solid #e2e8f0;
}

.risk-header {
    background: #fff7ed;
    color: #9a3412;
}

.earn-header {
    background: #f0fdf4;
    color: #166534;
}

.payout-header {
    background: #fef2f2;
    color: #991b1b;
}

.spam-box {
    margin: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: var(--spam-bg);
    padding: 12px;
}

.spam-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.spam-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--spam-color);
}

.spam-score {
    font-size: 14px;
    font-weight: 800;
    color: var(--spam-color);
}

.spam-meta {
    font-size: 12px;
    color: #334155;
    line-height: 1.5;
}

.spam-meter {
    height: 7px;
    border-radius: 99px;
    overflow: hidden;
    background: #e2e8f0;
    margin-top: 10px;
}

.spam-fill {
    width: var(--spam-width);
    height: 100%;
    background: var(--spam-color);
    transition: width 0.35s ease;
}

.checkpoints-list {
    list-style: none;
    padding: 10px 12px 12px;
    margin: 0;
    display: grid;
    gap: 8px;
}

.checkpoints-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.checkpoints-list li .icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    flex: 0 0 auto;
}

.checkpoints-list li .label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
}

.checkpoints-list li .note {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.35;
}

.checkpoints-list li.pass .icon {
    background: #dcfce7;
    color: #166534;
}

.checkpoints-list li.warn .icon {
    background: #fef3c7;
    color: #92400e;
}

.checkpoints-list li.fail .icon {
    background: #fee2e2;
    color: #991b1b;
}

.breakdown-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.breakdown-list {
    list-style: none;
    margin: 0;
    padding: 8px 12px 10px;
}

.breakdown-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 4px;
    border-bottom: 1px dashed #e2e8f0;
}

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

.provider-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.coin-val {
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.coin-earn {
    color: #047857;
}

.coin-spend {
    color: #b91c1c;
}

.payout-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.payout-status {
    font-size: 10px;
    font-weight: 800;
    border-radius: 999px;
    padding: 2px 7px;
    border: 1px solid var(--status-border);
    color: var(--status-color);
    background: var(--status-bg);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.empty-row {
    color: #64748b;
    font-size: 13px;
    justify-content: center;
}

@media (max-width: 900px) {
    .user-modal-content {
        width: min(980px, 96vw);
    }

    .breakdown-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .user-modal-head h3 {
        font-size: 18px;
    }

    .user-profile-header {
        align-items: flex-start;
    }

    .user-avatar-placeholder {
        width: 70px;
        height: 70px;
        border-radius: 12px;
    }

    .user-name {
        font-size: 18px;
    }

    .stat-value {
        font-size: 18px;
    }
}

.user-state-row {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.user-state-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid transparent;
}

.user-state-chip.ok {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.user-state-chip.warn {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.user-state-chip.danger {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.admin-tools-card {
    border: 1px solid #cfe0ff;
    border-radius: 16px;
    background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.14);
}

.tools-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #d9e6fb;
    background: linear-gradient(120deg, #dbeafe 0%, #e0f2fe 55%, #f0f9ff 100%);
}

.tools-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1d4ed8;
}

.tools-title {
    margin-top: 2px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
}

.tools-description {
    margin-top: 4px;
    font-size: 12px;
    color: #475569;
}

.tools-indicator {
    flex: 0 0 auto;
    align-self: center;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 800;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
}

.tool-panel {
    min-width: 0;
    background: #ffffff;
    border: 1px solid #dbe7ff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    padding: 12px;
    display: grid;
    gap: 10px;
}

.panel-bonus {
    border-top: 4px solid #2563eb;
}

.panel-deduct {
    border-top: 4px solid #d97706;
}

.panel-block {
    border-top: 4px solid #dc2626;
}

.panel-delete {
    border-top: 4px solid #ea580c;
}

.tool-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tool-panel-head h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.tool-tag {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.tool-tag.danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.tool-tag.warn {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.tool-note {
    margin: 0;
    min-height: 32px;
    font-size: 12px;
    line-height: 1.35;
    color: #64748b;
}

.tool-panel label {
    display: block;
    font-size: 12px;
    color: #475569;
    font-weight: 700;
    margin-bottom: 8px;
}

.tool-panel input {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.tool-panel input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
    background: #fff;
}

.tool-inline {
    display: grid;
    grid-template-columns: minmax(110px, 130px) 1fr;
    gap: 8px;
}

.tool-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tool-actions.single {
    grid-template-columns: 1fr;
}

.tool-btn {
    border: none;
    border-radius: 11px;
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .2s ease, opacity .2s ease;
}

.tool-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

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

.tool-btn.success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.tool-btn.success:hover {
    box-shadow: 0 8px 16px rgba(21, 128, 61, 0.28);
}

.tool-btn.warn {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.tool-btn.warn:hover {
    box-shadow: 0 8px 16px rgba(180, 83, 9, 0.28);
}

.tool-btn.danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.tool-btn.danger:hover {
    box-shadow: 0 8px 16px rgba(185, 28, 28, 0.28);
}

.user-action-feedback {
    margin: 0 12px 12px;
    padding: 11px 12px;
    border-radius: 11px;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1f2937;
}

.user-action-feedback.loading {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
}

.user-action-feedback.success {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.user-action-feedback.error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

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

@media (max-width: 760px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-inline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .user-modal-title-wrap p {
        font-size: 11px;
    }
}

/* ===== Wallet Manager Modal ===== */
.wallet-modal-content {
    width: min(1200px, 96vw);
    max-width: 1200px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #dbe5f3;
    text-align: left;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.wallet-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(120deg, #eff6ff 0%, #f0f9ff 100%);
}

.wallet-modal-head h3 {
    margin: 0;
    font-size: 21px;
    color: #0f172a;
    font-weight: 800;
}

.wallet-modal-head p {
    margin: 3px 0 0;
    font-size: 12px;
    color: #475569;
}

.wallet-modal-close {
    width: 34px;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.wallet-modal-close:hover {
    background: #f8fafc;
    border-color: #93c5fd;
}

.wallet-modal-body {
    max-height: 72vh;
    overflow: auto;
    padding: 14px;
    background: #f8fafc;
}

.wallet-modal-actions {
    margin-top: 0;
    justify-content: flex-end;
    padding: 0 14px 14px;
}

.wallet-placeholder {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #475569;
    padding: 16px;
    text-align: center;
    font-weight: 600;
}

.wallet-placeholder.loading {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

/* ===== MANAGE WALLET CATALOG REDESIGN ===== */
.wallet-modal-content {
    width: min(1180px, 95vw);
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.wallet-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: linear-gradient(135deg, #052e1f 0%, #0a4731 100%);
    color: #ffffff;
}

.wallet-modal-head h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.wallet-modal-head p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #a7f3d0;
    font-weight: 500;
}

.wallet-add-btn {
    margin-left: auto;
    margin-right: 16px;
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
}

.wallet-add-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.wallet-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.wallet-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.wallet-modal-body {
    padding: 24px;
    overflow-y: auto;
    background: #f8fafc;
    flex: 1;
}

.wallet-modal-actions {
    padding: 16px 24px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

.wallet-close-btn {
    background: #052e1f;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wallet-close-btn:hover {
    background: #042418;
}

.wallet-app-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(5, 46, 31, 0.08);
    color: #052e1f;
    border: 1px solid rgba(5, 46, 31, 0.15);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 20px;
}

.wallet-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 20px;
}

.wallet-method-card {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wallet-method-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.wallet-method-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.wallet-method-head h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #052e1f;
}

.wallet-rank-chip {
    font-size: 12px;
    font-weight: 800;
    color: #052e1f;
    background: rgba(5, 46, 31, 0.08);
    border: 1px solid rgba(5, 46, 31, 0.15);
    border-radius: 999px;
    padding: 4px 12px;
}

.wallet-country-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.wallet-country-chip.selected {
    background: #052e1f;
    color: #ffffff;
    border-color: #052e1f;
}

.wallet-country-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}

.wallet-save-method-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    background: #052e1f;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wallet-save-method-btn:hover {
    background: #042418;
}

.wallet-save-method-btn:hover {
    background: #1e40af;
}

.wallet-method-status {
    font-size: 12px;
    color: #475569;
}

.wallet-denom-section {
    margin-top: 12px;
    border-top: 1px dashed #dbe3ef;
    padding-top: 10px;
}

.wallet-denom-title {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.wallet-denom-list {
    display: grid;
    gap: 7px;
}

.wallet-denom-row {
    display: grid;
    grid-template-columns: 1fr 1fr 120px 90px 1fr;
    gap: 7px;
    align-items: center;
}

.wallet-denom-btn {
    border: none;
    border-radius: 9px;
    padding: 9px 10px;
    background: #334155;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.wallet-denom-btn.add {
    background: #15803d;
}

.wallet-denom-btn:hover {
    opacity: 0.92;
}

.wallet-row-status {
    font-size: 11px;
    color: #64748b;
}

.wallet-denom-empty {
    font-size: 12px;
    color: #64748b;
    padding: 8px 2px;
}

.wallet-save-all-denom-btn {
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    background: #16a34a;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wallet-save-all-denom-btn:hover {
    background: #15803d;
}

.wallet-duplicate-method-btn {
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    background: #0284c7;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wallet-duplicate-method-btn:hover {
    background: #0369a1;
}

/* Country Selector Chips */
.wallet-field-country-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wallet-field-country-box label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.wallet-country-chips-wrapper {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wallet-country-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wallet-country-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    background: #cbd5e1;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.wallet-country-chip:hover {
    background: #94a3b8;
    color: #0f172a;
}

.wallet-country-chip.selected {
    background: #2563eb;
    color: #fff;
}


@media (max-width: 1100px) {
    .wallet-denom-row {
        grid-template-columns: 1fr 1fr 120px 90px;
    }

    .wallet-row-status {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .wallet-field-grid {
        grid-template-columns: 1fr;
    }

    .wallet-denom-row {
        grid-template-columns: 1fr;
    }

    .wallet-method-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== App Data Modal ===== */
.app-data-modal-content {
    width: min(1240px, 96vw);
    max-width: 1240px;
    padding: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    text-align: left;
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.app-data-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid #042418;
    background: linear-gradient(135deg, #052e1f 0%, #0a4731 100%);
    color: #ffffff;
}

.app-data-modal-head h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

.app-data-modal-head p {
    margin: 3px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.app-data-modal-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.app-data-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.app-data-modal-body {
    max-height: 75vh;
    overflow: auto;
    padding: 24px;
    background: #f8fafc;
}

.app-data-modal-actions {
    margin-top: 0;
    justify-content: flex-end;
    padding: 0 14px 14px;
}

.app-data-placeholder {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #fff;
    padding: 16px;
    color: #475569;
    text-align: center;
    font-weight: 600;
}

.app-data-placeholder.loading {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.app-data-placeholder.error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.app-data-app-badge {
    display: inline-flex;
    align-items: center;
    background: #e0f2fe;
    color: #0c4a6e;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.app-data-pending-banner {
    border: 1px solid #fed7aa;
    border-radius: 11px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.app-data-section {
    border: 1px solid #dbe5f3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
    padding: 12px;
    margin-bottom: 12px;
}

.app-data-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.app-data-section-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-data-section-head h4 {
    margin: 0;
    font-size: 16px;
    color: #0f172a;
}

.app-data-save-btn {
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    background: #052e1f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.app-data-save-btn:hover {
    background: #042418;
}

.app-data-add-btn {
    border: 1px solid rgba(5, 46, 31, 0.2);
    border-radius: 10px;
    padding: 8px 14px;
    background: rgba(5, 46, 31, 0.08);
    color: #052e1f;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.app-data-add-btn:hover {
    background: rgba(5, 46, 31, 0.15);
}

.app-data-enable-btn {
    border: 1px solid rgba(22, 163, 74, 0.3);
    border-radius: 10px;
    padding: 8px 14px;
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.app-data-enable-btn:hover {
    background: #16a34a;
    color: #ffffff;
}

.app-data-disable-btn {
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 10px;
    padding: 8px 14px;
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.app-data-disable-btn:hover {
    background: #dc2626;
    color: #ffffff;
}

.app-data-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.app-data-tab-btn {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 16px;
    background: #fff;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.app-data-tab-btn.active {
    border-color: #052e1f;
    background: #052e1f;
    color: #ffffff;
}

.app-data-tab-panel {
    display: none;
}

.app-data-tab-panel.active {
    display: block;
}

.app-data-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.app-data-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 900px) {
    .app-data-layout {
        grid-template-columns: 1fr;
    }
}

.app-data-block {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.app-data-block:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.app-data-block-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 2px;
}

.app-data-block-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(5, 46, 31, 0.07);
    color: #052e1f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.app-data-block-header h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.app-data-block-wide {
    grid-column: 1 / -1;
}

.app-data-inline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.app-data-grid label {
    display: grid;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.app-data-block label {
    display: grid;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.app-data-grid label.full {
    grid-column: 1 / -1;
}

.app-data-grid input,
.app-data-grid select,
.app-data-grid textarea,
.app-data-block input,
.app-data-block select,
.app-data-block textarea,
.app-data-offer-row input,
.app-data-offer-row select,
.app-data-ref-row input {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 9px;
    padding: 9px 10px;
    font-size: 13px;
    background: #f8fafc;
    color: #0f172a;
}

.app-data-grid input:focus,
.app-data-grid select:focus,
.app-data-grid textarea:focus,
.app-data-block input:focus,
.app-data-block select:focus,
.app-data-block textarea:focus,
.app-data-offer-row input:focus,
.app-data-offer-row select:focus,
.app-data-ref-row input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.app-data-offer-header,
.app-data-offer-main {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.9fr 120px;
    gap: 8px;
    align-items: center;
}

.app-data-offer-row {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 7px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.offer-extra-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 4px 6px;
    border-top: 1px dashed #e2e8f0;
    margin-top: 4px;
}

.offer-field-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.offer-field-wrap label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    min-width: 80px;
}

.offer-field-wrap input {
    flex: 1;
    height: 30px;
    padding: 4px 8px;
    font-size: 12px;
}

.app-data-ref-header,
.app-data-ref-row {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr 0.9fr 120px;
    gap: 8px;
    align-items: center;
}

.app-data-url-header,
.app-data-url-row {
    display: grid;
    grid-template-columns: 1fr 2fr 120px;
    gap: 8px;
    align-items: center;
}

.app-data-ref-row,
.app-data-url-row {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 7px;
    background: #f8fafc;
}

.app-data-offer-header,
.app-data-ref-header,
.app-data-url-header {
    font-size: 12px;
    font-weight: 800;
    color: #475569;
    padding: 0 2px 7px;
}

.app-data-offer-list,
.app-data-ref-list,
.app-data-url-list {
    display: grid;
    gap: 7px;
}

.app-data-offer-row,
.app-data-ref-row,
.app-data-url-row {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 7px;
    background: #f8fafc;
}

.app-data-offer-name,
.app-data-ref-name {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    padding-left: 2px;
}

.app-data-row-meta {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.app-data-row-remove {
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff5f5;
    color: #b91c1c;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.app-data-row-remove:hover {
    background: #fee2e2;
}

.app-data-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 10px;
    color: #64748b;
    font-size: 12px;
}

.app-data-status {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
}

.app-data-status.loading {
    border-color: #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
}

.app-data-status.success {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.app-data-status.error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

@media (max-width: 980px) {
    .app-data-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-data-layout,
    .app-data-inline-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .app-data-grid {
        grid-template-columns: 1fr;
    }

    .app-data-section-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .app-data-offer-header,
    .app-data-offer-row,
    .app-data-ref-header,
    .app-data-ref-row,
    .app-data-url-header,
    .app-data-url-row {
        grid-template-columns: 1fr;
    }
}

/* ===== App Stats Modal ===== */
.app-stats-modal-content {
    width: min(1240px, 96vw);
    max-width: 1240px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #dbe5f3;
    text-align: left;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.app-stats-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(120deg, #ecfeff 0%, #eff6ff 100%);
}

.app-stats-modal-head h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
}

.app-stats-modal-head p {
    margin: 3px 0 0;
    font-size: 12px;
    color: #475569;
}

.app-stats-modal-close {
    width: 34px;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.app-stats-modal-close:hover {
    border-color: #67e8f9;
    background: #f8fafc;
}

.app-stats-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.app-stats-toolbar label {
    display: grid;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.app-stats-toolbar select,
.app-stats-toolbar input {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 9px;
    padding: 9px 10px;
    font-size: 13px;
    background: #f8fafc;
    color: #0f172a;
}

.app-stats-toolbar select:focus,
.app-stats-toolbar input:focus {
    outline: none;
    border-color: #06b6d4;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.app-stats-fetch-btn {
    align-self: end;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.app-stats-fetch-btn:hover {
    box-shadow: 0 8px 16px rgba(2, 132, 199, 0.28);
}

.app-stats-modal-body {
    max-height: 70vh;
    overflow: auto;
    padding: 14px;
    background: #f8fafc;
}

.app-stats-modal-actions {
    margin-top: 0;
    justify-content: flex-end;
    padding: 0 14px 14px;
}

.app-stats-placeholder {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #475569;
    font-weight: 600;
    text-align: center;
    padding: 16px;
}

.app-stats-placeholder.loading {
    border-color: #bae6fd;
    color: #0369a1;
    background: #f0f9ff;
}

.app-stats-placeholder.error {
    border-color: #fecaca;
    color: #b91c1c;
    background: #fef2f2;
}

.app-stats-app-badge {
    display: inline-flex;
    align-items: center;
    background: #cffafe;
    color: #155e75;
    border: 1px solid #a5f3fc;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.app-stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.app-stats-kpi-card {
    border: 1px solid #dbe5f3;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
}

.app-stats-kpi-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.app-stats-kpi-value {
    margin-top: 4px;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.app-stats-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.app-stats-chart-card {
    border: 1px solid #dbe5f3;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    min-height: 210px;
}

.app-stats-chart-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.app-stats-bar-list {
    display: grid;
    gap: 8px;
}

.app-stats-empty {
    color: #64748b;
    font-size: 12px;
}

.app-stats-bar-row {
    display: grid;
    gap: 5px;
}

.app-stats-bar-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.app-stats-bar-label {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-stats-bar-value {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
}

.app-stats-bar-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.app-stats-bar-fill {
    height: 100%;
    border-radius: inherit;
}

.app-stats-bar-fill.blue {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.app-stats-bar-fill.green {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.app-stats-bar-fill.orange {
    background: linear-gradient(90deg, #fb923c 0%, #ea580c 100%);
}

.app-stats-donut-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.app-stats-donut-wrap {
    border: 1px dashed #dbe3ef;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.app-stats-donut {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.app-stats-donut::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
}

.app-stats-donut span {
    position: relative;
    z-index: 1;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.app-stats-donut-label {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.app-stats-donut-sub {
    margin-top: 2px;
    font-size: 11px;
    color: #64748b;
}

@media (max-width: 1080px) {
    .app-stats-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-stats-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .app-stats-toolbar {
        grid-template-columns: 1fr;
    }

    .app-stats-summary-grid {
        grid-template-columns: 1fr;
    }

    .app-stats-chart-grid {
        grid-template-columns: 1fr;
    }

    .app-stats-donut-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Pending Payout Page ===== */
.payout-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.payout-count-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.payout-refresh-btn {
    border: none;
    cursor: pointer;
}

.pending-payout-list {
    display: grid;
    gap: 12px;
}

.pending-payout-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #64748b;
    padding: 16px;
    text-align: center;
    font-weight: 600;
}

.pending-payout-empty.error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.pending-payout-card {
    border: 1px solid #dbe5f3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    padding: 12px;
}

.pending-payout-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pending-payout-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    word-break: break-word;
}

.pending-payout-status {
    border-radius: 999px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #c2410c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 3px 9px;
}

.pending-payout-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.pending-payout-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    padding: 8px 10px;
    display: grid;
    gap: 4px;
}

.pending-payout-item span {
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
}

.pending-payout-item strong {
    font-size: 13px;
    color: #0f172a;
    word-break: break-word;
}

.pending-method-block {
    margin-top: 10px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #f8fafc;
    overflow: hidden;
}

.pending-method-label {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 800;
    color: #334155;
}

.pending-method-block pre {
    margin: 0;
    padding: 10px;
    font-size: 12px;
    line-height: 1.45;
    color: #1e293b;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.pending-payout-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pending-action-btn {
    border: none;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
}

.pending-action-btn.info {
    background: #1d4ed8;
}

.pending-action-btn.success {
    background: #15803d;
}

.pending-action-btn.danger {
    background: #b91c1c;
}

.pending-action-btn.delete {
    background: #450a0a;
    border: 1px solid #ef4444;
    color: #fca5a5;
    transition: all 0.2s ease;
}

.pending-action-btn.delete:hover {
    background: #dc2626;
    color: #ffffff;
}

.pending-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pending-payout-card.is-processing {
    opacity: 0.75;
}

@media (max-width: 900px) {
    .pending-payout-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .payout-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .pending-payout-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Bulk Send Section ===== */

.bulk-send-section {
    margin-bottom: 18px;
}

.bulk-send-card {
    border: 1px solid #c7d2fe;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 50%, #eff6ff 100%);
    padding: 18px;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.08);
}

.bulk-send-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.bulk-send-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex: 0 0 auto;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.bulk-send-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #1e1b4b;
}

.bulk-send-header p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #6366f1;
    font-weight: 600;
}

.bulk-send-body {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.bulk-send-input-group {
    flex: 1;
    min-width: 160px;
}

.bulk-send-input-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.bulk-send-input-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1e1b4b;
    background: #fff;
    transition: all 0.2s ease;
}

.bulk-send-input-group input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.bulk-send-input-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bulk-send-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    white-space: nowrap;
}

.bulk-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
}

.bulk-send-btn:disabled,
.bulk-send-btn.is-busy {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.15);
}

.bulk-send-btn-icon {
    font-size: 12px;
}

.bulk-send-progress {
    margin-top: 14px;
}

.bulk-progress-bar {
    height: 8px;
    border-radius: 99px;
    background: #e2e8f0;
    overflow: hidden;
}

.bulk-progress-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 100%);
    transition: width 0.3s ease;
}

.bulk-progress-text {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.bulk-send-result {
    margin-top: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 14px;
}

.bulk-result-summary {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.bulk-result-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.bulk-result-stat.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.bulk-result-stat.failed {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.bulk-result-failures {
    font-size: 13px;
    color: #334155;
}

.bulk-result-failures strong {
    display: block;
    margin-bottom: 6px;
    color: #b91c1c;
}

.bulk-result-failures ul {
    margin: 0;
    padding-left: 18px;
}

.bulk-result-failures li {
    margin-bottom: 4px;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .bulk-send-body {
        flex-direction: column;
        align-items: stretch;
    }

    .bulk-result-summary {
        flex-direction: column;
    }
}

/* ===== Dashboard Home Redesign ===== */
.dashboard-body {
    background: radial-gradient(circle at top right, #e0e7ff 0%, #f5f7fb 36%, #eef2ff 100%);
}

.dashboard-body .dashboard-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px 1fr;
}

.dashboard-body .dashboard-sidebar {
    background: #ffffff !important;
    color: #475569 !important;
    border-right: 1px solid #e2e8f0 !important;
    padding: 20px 16px !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.02) !important;
}

/* Premium thin scrollbars for sidebar */
.dashboard-sidebar::-webkit-scrollbar {
    width: 5px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dashboard-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 4px 14px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 8px;
}

.brand-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #052e1f !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.brand-logo-icon .material-symbols-outlined,
.brand-logo-icon .material-icons {
    font-size: 22px !important;
    color: #ffffff !important;
    line-height: 1 !important;
}

.dashboard-body .sidebar-brand {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    margin: 0 !important;
}

.dashboard-body .sidebar-caption {
    font-size: 11px !important;
    color: #94a3b8 !important;
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 500 !important;
}

.sidebar-collapse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.sidebar-collapse-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.dashboard-body .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-section-header {
    padding: 14px 12px 6px 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #64748b;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-shell.sidebar-collapsed .sidebar-section-header {
    display: none;
}

.dashboard-body .side-link {
    text-decoration: none;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    color: #475569 !important;
    background: transparent !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-align: left;
    transition: all 0.2s ease !important;
    outline: none;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: none !important;
}

.link-icon {
    font-size: 16px;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.link-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-arrow {
    font-size: 16px;
    color: #cbd5e1;
    font-weight: 400;
    transition: transform 0.2s ease, color 0.2s ease;
    margin-left: 6px;
}

.dashboard-body .side-link:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    transform: none !important;
}

.dashboard-body .side-link:hover .link-arrow {
    color: #475569;
    transform: translateX(3px);
}

.dashboard-body .side-link.active {
    background: #052e1f !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(5, 46, 31, 0.25) !important;
    font-weight: 700 !important;
}

.dashboard-body .side-link.active .link-icon {
    color: #ffffff !important;
}

.dashboard-body .side-link.active .link-arrow {
    color: #ffffff !important;
}

.dashboard-body .side-sublink {
    color: #475569 !important;
}

.dashboard-body .side-sublink:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
}

.dashboard-body .side-sublink.active {
    background: #052e1f !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.dashboard-body .sidebar-logout {
    margin-top: auto;
    text-decoration: none;
    border-radius: 10px !important;
    border: 1px solid #fee2e2 !important;
    color: #ef4444 !important;
    background: #fef2f2 !important;
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    transition: background 0.2s ease !important;
}

.dashboard-body .sidebar-logout:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
}

.sidebar-footer-credit {
    text-align: center;
    padding: 8px 4px 2px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid #f1f5f9;
    margin-top: 8px;
}

.sidebar-footer-credit span {
    color: #64748b;
}

.dashboard-shell.sidebar-collapsed .sidebar-footer-credit {
    display: none !important;
}

.dashboard-body .dashboard-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dashboard-body .dashboard-navbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
}

.desktop-only {
    display: flex !important;
}

.mobile-only {
    display: none !important;
}

.sidebar-mobile-close-btn {
    display: none;
}

.dashboard-body .sidebar-toggle-btn {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.sidebar-collapse-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: auto;
}

.sidebar-collapse-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Sidebar Collapse Mode */
.dashboard-shell.sidebar-collapsed .dashboard-sidebar {
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    padding: 14px 6px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.dashboard-shell.sidebar-collapsed .dashboard-sidebar .brand-text-group,
.dashboard-shell.sidebar-collapsed .dashboard-sidebar .link-text,
.dashboard-shell.sidebar-collapsed .dashboard-sidebar .link-arrow,
.dashboard-shell.sidebar-collapsed .dashboard-sidebar .sidebar-caption,
.dashboard-shell.sidebar-collapsed .dashboard-sidebar .sidebar-footer,
.dashboard-shell.sidebar-collapsed .dashboard-sidebar .badge,
.dashboard-shell.sidebar-collapsed .dashboard-sidebar .sidebar-section-header,
.dashboard-shell.sidebar-collapsed .dashboard-sidebar .sidebar-logout span {
    display: none !important;
}

.dashboard-shell.sidebar-collapsed .dashboard-sidebar .side-link {
    justify-content: center !important;
    padding: 11px 0 !important;
    margin: 3px 0 !important;
    width: 100% !important;
    border-radius: 10px !important;
}

.dashboard-shell.sidebar-collapsed .dashboard-sidebar .link-icon {
    margin-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dashboard-shell.sidebar-collapsed .dashboard-sidebar .side-sublink {
    padding-left: 0 !important;
    padding: 10px 0 !important;
    justify-content: center !important;
}

.dashboard-shell.sidebar-collapsed .dashboard-sidebar .sidebar-brand-wrapper {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 6px 0 12px 0 !important;
    margin-bottom: 6px !important;
}

.dashboard-shell.sidebar-collapsed .dashboard-sidebar .sidebar-collapse-btn {
    margin-left: 0 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.dashboard-shell.sidebar-collapsed .dashboard-sidebar .sidebar-collapse-btn svg {
    transform: rotate(180deg) !important;
}

.dashboard-shell.sidebar-collapsed .dashboard-sidebar .sidebar-logout {
    justify-content: center !important;
    padding: 11px 0 !important;
    gap: 0 !important;
    width: 100% !important;
}

.dashboard-shell.sidebar-collapsed .dashboard-sidebar .sidebar-logout svg {
    margin: 0 !important;
}

.dashboard-shell.sidebar-collapsed .dashboard-main {
    margin-left: 0 !important;
}

.sidebar-backdrop {
    display: none;
}

.dashboard-body .dashboard-home {
    padding-top: 22px;
    display: grid;
    gap: 16px;
}

.dashboard-body .overview-card,
.dashboard-body .directory-card {
    border: 1px solid #dbe5f3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
    padding: 16px;
}

.dashboard-body .overview-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.dashboard-body .overview-head h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.1;
    color: #0f172a;
}

.dashboard-body .overview-head p {
    margin-top: 4px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.dashboard-body .overview-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.dashboard-body .overview-filters label {
    display: grid;
    gap: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    font-weight: 700;
}

.dashboard-body .overview-filters select,
.dashboard-body .overview-filters input {
    min-width: 130px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    background: #fff;
    color: #0f172a;
}

.dashboard-body .home-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-body .home-kpi {
    border-radius: 14px;
    padding: 14px;
    color: #fff;
    min-height: 100px;
    display: grid;
    align-content: space-between;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

.dashboard-body .home-kpi.skeleton {
    background: linear-gradient(90deg, #dbeafe 0%, #e2e8f0 45%, #dbeafe 100%);
    background-size: 200% 100%;
    animation: dashPulse 1.1s infinite linear;
}

@keyframes dashPulse {
    from {
        background-position: 0% 0%;
    }

    to {
        background-position: -200% 0%;
    }
}

.dashboard-body .home-kpi:nth-child(1) {
    background: linear-gradient(120deg, #4f46e5 0%, #7c3aed 100%);
}

.dashboard-body .home-kpi:nth-child(2) {
    background: linear-gradient(120deg, #0ea5e9 0%, #2563eb 100%);
}

.dashboard-body .home-kpi:nth-child(3) {
    background: linear-gradient(120deg, #10b981 0%, #059669 100%);
}

.dashboard-body .home-kpi:nth-child(4) {
    background: linear-gradient(120deg, #f59e0b 0%, #ea580c 100%);
}

.dashboard-body .home-kpi:nth-child(5) {
    background: linear-gradient(120deg, #0f766e 0%, #155e75 100%);
}

.dashboard-body .home-kpi:nth-child(6) {
    background: linear-gradient(120deg, #be123c 0%, #e11d48 100%);
}

.dashboard-body .kpi-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.92;
    font-weight: 700;
}

.dashboard-body .kpi-value {
    font-size: 32px;
    line-height: 1;
    font-weight: 800;
}

.dashboard-body .kpi-sub {
    font-size: 12px;
    opacity: 0.95;
    font-weight: 600;
}

.dashboard-body .home-chart-wrap {
    margin-top: 12px;
    border: 1px solid #dbe5f3;
    border-radius: 14px;
    padding: 12px;
    background: #f8fafc;
}

.dashboard-body .home-chart-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.dashboard-body .home-chart-head h3 {
    margin: 0;
    font-size: 18px;
    color: #1e293b;
}

.dashboard-body .home-chart-head span {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.dashboard-body .home-chart-canvas-wrap {
    min-height: 320px;
}

.dashboard-body .directory-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.dashboard-body .directory-head h2 {
    margin: 0;
    font-size: 30px;
    color: #0f172a;
}

.dashboard-body .directory-head p {
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.dashboard-body .directory-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.dashboard-body .directory-toolbar input {
    flex: 1 1 300px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
}

.dashboard-body .btn-ghost {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #1e293b;
    border-radius: 10px;
    padding: 9px 12px;
    font-weight: 700;
    cursor: pointer;
}

.dashboard-body .directory-table-wrap {
    border: 1px solid #dbe5f3;
    border-radius: 12px;
    overflow: auto;
}

.dashboard-body .directory-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.dashboard-body .directory-table th,
.dashboard-body .directory-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    font-size: 13px;
    vertical-align: middle;
}

.dashboard-body .directory-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    background: #f8fafc;
}

.dashboard-body .directory-user-name {
    font-size: 21px;
    color: #111827;
    font-weight: 800;
    line-height: 1.1;
}

.dashboard-body .directory-user-email {
    color: #64748b;
    font-size: 12px;
}

.dashboard-body .directory-coins {
    font-size: 29px;
    font-weight: 800;
    color: #4f46e5;
}

.dashboard-body .directory-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-body .directory-status.live {
    background: #dcfce7;
    color: #166534;
}

.dashboard-body .directory-status.blocked {
    background: #fee2e2;
    color: #991b1b;
}

.dashboard-body .directory-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.dashboard-body .directory-action-btn {
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.dashboard-body .directory-empty {
    text-align: center;
    color: #64748b;
    font-weight: 600;
    padding: 24px 12px;
}

.dashboard-body .directory-pagination {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.dashboard-body #directory-page-info {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-body .btn-primary {
    border: none;
    cursor: pointer;
}

@media (max-width: 1180px) {
    .dashboard-body .home-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .dashboard-body .dashboard-shell,
    .dashboard-shell {
        grid-template-columns: 1fr !important;
        display: block !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .dashboard-body .dashboard-main,
    .dashboard-main,
    .dashboard-shell.sidebar-collapsed .dashboard-main {
        width: 100% !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .dashboard-body .dashboard-sidebar,
    .dashboard-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: min(85vw, 310px) !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 99999 !important;
        transform: translateX(-105%) !important;
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease, visibility 0.28s !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 18px 14px 28px !important;
        background: #ffffff !important;
        box-shadow: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .dashboard-body.sidebar-open .dashboard-sidebar,
    body.sidebar-open .dashboard-sidebar,
    .dashboard-body .dashboard-sidebar.open,
    .dashboard-sidebar.open {
        transform: translateX(0) !important;
        box-shadow: 10px 0 35px rgba(15, 23, 42, 0.35) !important;
        visibility: visible !important;
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    .dashboard-body .sidebar-toggle-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
        border: 1px solid #cbd5e1 !important;
        background: #ffffff !important;
        color: #0f172a !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
        transition: all 0.15s ease !important;
    }

    .dashboard-body .sidebar-toggle-btn:active {
        transform: scale(0.95);
        background: #f1f5f9 !important;
    }

    .sidebar-mobile-close-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        color: #475569;
        cursor: pointer;
        margin-left: auto;
        transition: all 0.15s ease;
    }

    .sidebar-mobile-close-btn:hover,
    .sidebar-mobile-close-btn:active {
        background: #fee2e2;
        color: #dc2626;
        border-color: #fecaca;
    }

    .sidebar-collapse-btn {
        display: none !important;
    }

    .dashboard-body .side-link,
    .dashboard-body .side-group-btn {
        padding: 11px 12px !important;
        min-height: 42px !important;
        font-size: 14px !important;
    }

    .dashboard-body .sub-side-link {
        padding: 9px 12px 9px 24px !important;
        min-height: 38px !important;
        font-size: 13px !important;
    }

    .dashboard-body .dashboard-home {
        padding: 14px 10px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .sidebar-backdrop {
        position: fixed !important;
        inset: 0 !important;
        background: rgba(15, 23, 42, 0.6) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 99990 !important;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease !important;
        display: none;
    }

    .dashboard-body.sidebar-open .sidebar-backdrop,
    body.sidebar-open .sidebar-backdrop,
    .sidebar-backdrop.show {
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

@media (max-width: 760px) {
    .dashboard-body .home-kpi-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-body .navbar,
    .navbar {
        padding: 8px 12px !important;
        height: auto !important;
        min-height: 56px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .dashboard-body .nav-left,
    .nav-left {
        gap: 8px !important;
        flex-wrap: nowrap !important;
        min-width: 0 !important;
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
    }

    .dashboard-body .nav-left h2,
    .nav-left h2 {
        font-size: 15px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 130px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }

    .dashboard-body .nav-left select,
    .nav-left select {
        width: auto !important;
        max-width: 120px !important;
        font-size: 12px !important;
        padding: 5px 8px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .dashboard-body .overview-filters {
        width: 100%;
    }

    .dashboard-body .overview-filters label {
        flex: 1 1 140px;
    }

    .dashboard-body .overview-head h1 {
        font-size: 20px;
    }

    .dashboard-body .directory-head h2 {
        font-size: 20px;
    }

    /* Universal responsive table containers across all views */
    .table-container,
    .table-responsive,
    .table-wrapper,
    .directory-table-wrap,
    .ua-table-container,
    .admin-table-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Universal responsive card padding adjustments */
    .overview-card,
    .directory-card,
    .admin-card,
    .card,
    .panel {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ===== REFERRAL ANALYTICS CARD — LIGHT THEME ===== */

.referral-analytics-card {
    margin-top: 18px;
    padding: 20px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e6ebf2;
    color: #1f2937;
}

.ref-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #111827;
}

/* ===== OVERVIEW ===== */

.ref-overview {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.ref-overview-item {
    text-align: center;
    flex: 1;
}

.ref-number {
    font-size: 30px;
    font-weight: 700;
    color: #111827;
}

.ref-green {
    color: #16a34a;
}

.ref-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

/* ===== LEVEL GRID ===== */

.ref-level-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ref-level {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.ref-level:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.ref-level-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: #111827;
}

.ref-level-users {
    font-size: 12px;
    color: #6b7280;
}

.ref-level-coins {
    font-weight: 600;
    margin-top: 4px;
    color: #2563eb;
}

/* ===== USER ACTIVITY PAGE ===== */

/* Back Button */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: #f3f4f6;
    border-color: #2563eb;
}

/* User Detail Header */
.user-detail-header {
    margin-bottom: 20px;
}

/* User Profile Card */
.user-profile-card {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 20px;
}

.ua-avatar {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.ua-user-info {
    flex: 1;
}

.ua-user-info h2 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #0f172a;
}

.ua-user-info p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 8px;
}

.ua-meta-row {
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
}

.ua-meta-item {
    font-size: 13px;
    color: #475569;
}

.ua-meta-item span {
    font-weight: 600;
    color: #1e293b;
}

.ua-status-chips {
    display: flex;
    gap: 8px;
}

.ua-status-chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.ua-status-chip.ok {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.ua-status-chip.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

/* Date Filter Bar */
.ua-date-filter-bar {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
}

.ua-date-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ua-date-filter-group label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.ua-date-filter-group input {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

/* Tabs */
.ua-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
    overflow-x: auto;
}

.ua-tab {
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.ua-tab:hover {
    color: #2563eb;
}

.ua-tab.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* Tab Panels */
.ua-tab-panel {
    display: none;
}

.ua-tab-panel.active {
    display: block;
}

/* Stats Grid */
.ua-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.ua-stat-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.ua-stat-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ua-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #e2e8f0;
}

.ua-stat-value.stat-blue {
    color: #3b82f6;
}

.ua-stat-value.stat-green {
    color: #22c55e;
}

/* Cards */
.ua-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
}

.ua-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

/* Profile Grid */
.ua-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.ua-profile-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ua-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.ua-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}

/* Breakdown Lists */
.ua-breakdown-list {
    display: grid;
    gap: 8px;
}

.ua-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    gap: 12px;
}

.ua-breakdown-item>div {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ua-breakdown-label {
    font-size: 13px;
    color: #1e293b;
    font-weight: 600;
}

.ua-breakdown-time {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
}

.ua-breakdown-value {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.coin-earn {
    color: #16a34a;
}

.coin-spend {
    color: #dc2626;
}

/* Referral Level Grid */
.ua-ref-level-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ua-ref-level {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.ua-ref-level-title {
    font-weight: 700;
    font-size: 16px;
    color: #2563eb;
    margin-bottom: 8px;
}

.ua-ref-level-users {
    font-size: 12px;
    color: #6b7280;
}

.ua-ref-level-coins {
    font-weight: 600;
    margin-top: 6px;
    color: #16a34a;
}

/* Table */
.ua-table-container {
    overflow-x: auto;
}

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

.ua-table th {
    background: #f8fafc;
    padding: 12px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    border-bottom: 2px solid #e2e8f0;
}

.ua-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #475569;
}

.ua-table tr:hover {
    background: #f8fafc;
}

/* Expandable Earnings Items */
.ua-expandable-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
}

.ua-expandable-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ua-expandable-header:hover {
    background: #f1f5f9;
}

.ua-expandable-header .ua-breakdown-label {
    font-weight: 600;
}

.ua-expandable-header>div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ua-expand-arrow {
    font-size: 10px;
    color: #64748b;
    transition: transform 0.2s ease;
}

.ua-expandable-content {
    border-top: 1px solid #e2e8f0;
    padding: 8px;
    background: #fff;
}

.ua-expand-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    gap: 10px;
}

.ua-expand-item .ua-expand-date {
    flex: 1;
    font-size: 12px;
    color: #64748b;
}

.ua-expand-item .ua-expand-coins {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.ua-expand-item:hover {
    background: #f8fafc;
}

.ua-expand-date {
    font-size: 12px;
    color: #64748b;
}

.ua-expand-coins {
    font-size: 13px;
    font-weight: 600;
}

/* Referral Level Cards - Clickable */
.ua-ref-level {
    cursor: pointer;
    transition: all 0.2s ease;
}

.ua-ref-level:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

/* Payout Stats Bar */
.ua-payout-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px;
}

.ua-payout-stat {
    text-align: center;
}

.ua-payout-stat-label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ua-payout-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #e2e8f0;
}

.ua-payout-stat-value.stat-green {
    color: #22c55e;
}

/* Activity Status Badge */
.ua-activity-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
}

.ua-activity-status.status-success {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.ua-activity-status.status-pending {
    background: rgba(251, 191, 36, 0.15);
    color: #d97706;
}

.ua-activity-status.status-failed {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.ua-activity-status.status-inprogress {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

/* Activity Item Improvements */
.ua-activity-item {
    padding: 14px 16px;
}

.ua-activity-details {
    flex: 1;
    min-width: 0;
}

.ua-activity-label {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ua-activity-time {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.ua-activity-coins {
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    min-width: 80px;
    text-align: right;
}

/* Activity List */
.ua-activity-list {
    display: grid;
    gap: 8px;
    max-height: 600px;
    overflow-y: auto;
}

.ua-activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.ua-activity-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.ua-activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ua-activity-icon.reward {
    background: #dbeafe;
}

.ua-activity-icon.daily_task {
    background: #dcfce7;
}

.ua-activity-icon.task {
    background: #fef3c7;
}

.ua-activity-icon.game {
    background: #f3e8ff;
}

.ua-activity-icon.payout {
    background: #fee2e2;
}

.ua-activity-details {
    flex: 1;
    min-width: 0;
}

.ua-activity-label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ua-activity-time {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.ua-activity-coins {
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Empty State */
.ua-empty-state {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-size: 14px;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-success {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.status-pending {
    background: rgba(251, 191, 36, 0.15);
    color: #d97706;
}

.status-failed {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.status-inprogress {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

/* ===== UNUSUAL ACTIVITY STYLES ===== */

/* Stats Row */
.ua-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.ua-stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ua-stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 4px;
}

.ua-stat-label {
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tabs */
.ua-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.ua-tab {
    padding: 10px 20px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.ua-tab:hover {
    background: #f3f4f6;
}

.ua-tab.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Type Filter */
.ua-type-filter {
    margin-bottom: 16px;
}

.ua-type-filter select {
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

/* Table */
.ua-table-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

.ua-table th {
    background: #f9fafb;
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
}

.ua-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

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

.ua-table tr:hover td {
    background: #f9fafb;
}

/* Status */
.ua-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.status-blocked {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

/* Badge */
.ua-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
}

/* Buttons */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Pagination */
.ua-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.ua-pagination button {
    padding: 8px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.ua-pagination button:hover {
    background: #f3f4f6;
}

.ua-pagination span {
    font-size: 14px;
    color: #6b7280;
}

/* Activity Item */
.ua-activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f9fafb;
}

.ua-activity-icon {
    font-size: 24px;
}

.ua-activity-type {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
}

.ua-activity-details {
    font-size: 12px;
    color: #6b7280;
}

.ua-activity-date {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 2px;
}

/* History Item */
.ua-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
    background: #fefce8;
}

/* User Details Table */
.ua-details-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

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

.ua-details-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.ua-details-table tbody tr:last-child {
    border-bottom: none;
}

.ua-details-table tbody tr:hover {
    background: #f8fafc;
}

.ua-detail-label {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    background: #f8fafc;
    width: 160px;
    border-right: 1px solid #e2e8f0;
}

.ua-detail-value {
    padding: 8px 16px;
}

.ua-edit-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #1e293b;
}

.ua-edit-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ua-edit-input:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

/* ===== TASK MANAGEMENT SIDEBAR SUB-MENU ===== */
.side-menu-group {
    display: flex;
    flex-direction: column;
}

.side-group-btn {
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.sub-menu-chevron {
    font-size: 10px;
    margin-left: auto;
    transition: transform 0.25s ease;
    color: #94a3b8;
}

.side-menu-group.open .sub-menu-chevron {
    transform: rotate(180deg);
}

.sub-menu-list {
    display: none;
    flex-direction: column;
    padding-left: 20px;
    gap: 4px;
    margin-top: 4px;
    margin-bottom: 6px;
}

.side-menu-group.open .sub-menu-list {
    display: flex;
}

.sub-side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sub-side-link:hover {
    background: rgba(5, 46, 31, 0.06);
    color: #052e1f;
}

.sub-side-link.active {
    background: #052e1f;
    color: #ffffff;
    font-weight: 700;
}

.sub-bullet {
    font-size: 14px;
    line-height: 1;
    color: #94a3b8;
}

.sub-side-link.active .sub-bullet {
    color: #ffffff;
}