/* ═══════════════════════════════════════════
   ACM Control Panel — Admin Styles
═══════════════════════════════════════════ */
.acm-wrap h1 { margin-bottom: 20px; }
.acm-table th, .acm-table td { vertical-align: middle; }
.acm-balance { font-weight: 600; }
.acm-negative { color: #c0392b; }
.acm-badge { display:inline-block;padding:2px 10px;border-radius:12px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.4px; }
.acm-badge-credit { background:#d4edda;color:#155724; }
.acm-badge-debit  { background:#f8d7da;color:#721c24; }
.acm-credit-amount { color:#1e7e34;font-weight:600; }
.acm-debit-amount  { color:#c0392b;font-weight:600; }
.acm-user-header { display:flex;gap:24px;margin-bottom:28px;flex-wrap:wrap; }
.acm-stat { background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:16px 24px;min-width:180px; }
.acm-stat-label { display:block;font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:#718096;margin-bottom:6px; }
.acm-stat-value { font-size:16px;font-weight:600;color:#1a202c; }
.acm-big-balance { font-size:28px;color:#2d6a4f; }
.acm-stat-balance { border-color:#2d6a4f;background:#f0fdf4; }
.acm-actions-row { display:flex;gap:24px;flex-wrap:wrap; }
.acm-card { background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:20px 24px;min-width:280px;flex:1; }
.acm-card h3 { margin-top:0; }
.acm-card label { display:block;font-size:13px;font-weight:600;margin-bottom:12px; }
.acm-card input { display:block;margin-top:4px; }

/* ═══════════════════════════════════════════
   ACM Frontend Dashboard
═══════════════════════════════════════════ */

.acmd-wrap {
    font-family: inherit;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 8px 0 40px;
}

/* Greeting */
.acmd-greeting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.acmd-greeting h2 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
}
.acmd-greeting p {
    margin: 0;
    color: #718096;
    font-size: 14px;
}
.acmd-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ebf4ff;
    color: #2b6cb0;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 24px;
    border: 1px solid #bee3f8;
}
.acmd-plan-dot {
    width: 8px;
    height: 8px;
    background: #3a7fbe;
    border-radius: 50%;
    display: inline-block;
}

/* Stat Cards */
.acmd-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 700px) {
    .acmd-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
    .acmd-stats { grid-template-columns: 1fr; }
}

.acmd-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 20px 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: transform .15s, box-shadow .15s;
}
.acmd-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}
.acmd-stat-card.acmd-stat-primary {
    background: linear-gradient(135deg, #3a7fbe 0%, #2563a8 100%);
    color: #fff;
}
.acmd-stat-card.acmd-stat-primary .acmd-stat-value { color: #fff; font-size: 26px; }
.acmd-stat-card.acmd-stat-primary .acmd-stat-label { color: rgba(255,255,255,0.8); }

.acmd-stat-icon {
    font-size: 28px;
    line-height: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    border-radius: 12px;
    flex-shrink: 0;
}
.acmd-stat-primary .acmd-stat-icon {
    background: rgba(255,255,255,0.2);
}
.acmd-icon-green { background: #f0fff4 !important; }
.acmd-icon-red   { background: #fff5f5 !important; }
.acmd-icon-blue  { background: #ebf8ff !important; }

.acmd-stat-body { flex: 1; min-width: 0; }
.acmd-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.acmd-stat-label {
    font-size: 12px;
    color: #718096;
    margin-top: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Card base */
.acmd-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.acmd-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.acmd-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
}

/* Progress card */
.acmd-progress-row {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.acmd-progress-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}
.acmd-progress-num {
    font-size: 32px;
    font-weight: 800;
    color: #3a7fbe;
    line-height: 1;
}
.acmd-progress-lbl {
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 4px;
}
.acmd-progress-bar-wrap { flex: 1; min-width: 180px; }
.acmd-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #718096;
    margin-bottom: 8px;
}
.acmd-progress-bar {
    height: 10px;
    background: #e8edf3;
    border-radius: 999px;
    overflow: hidden;
}
.acmd-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3a7fbe, #63b3ed);
    border-radius: 999px;
    transition: width 1s ease;
}

/* Toggle button */
.acmd-toggle-btn {
    background: #3a7fbe;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.acmd-toggle-btn:hover { background: #2563a8; }

/* Transactions table */
.acmd-empty { color: #718096; font-style: italic; margin: 0; }
.acmd-txn-scroll { overflow-x: auto; }

.acmd-txn-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.acmd-txn-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #a0aec0;
    border-bottom: 2px solid #f0f4f8;
}
.acmd-txn-table td {
    padding: 14px 14px;
    border-bottom: 1px solid #f7f9fc;
    color: #2d3748;
    vertical-align: middle;
}
.acmd-txn-table tbody tr:last-child td { border-bottom: none; }
.acmd-txn-table tbody tr:hover td { background: #f7f9fc; }

.acmd-date { color: #718096; font-size: 13px; white-space: nowrap; }
.acmd-running { font-weight: 600; color: #1a202c; white-space: nowrap; }

.acmd-amount {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.acmd-credit { background: #f0fff4; color: #276749; }
.acmd-debit  { background: #fff5f5; color: #c53030; }

.acmd-login-msg { color: #4a5568; }
