/* ── Design tokens ─────────────────────────────────────────── */
:root {
    --navy: #1F3864;
    --teal: #0AB39C;
    --amber: #F7B731;
    --rose: #F06548;
    --slate: #F3F6F9;
    --ink: #1A1D23;
    --muted: #6C7293;
    --radius: 14px;
}

/* ── Page base ─────────────────────────────────────────────── */
.db-page {
    padding: 28px 0;
}

/* ── Section eyebrow ───────────────────────────────────────── */
.eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── Welcome strip ─────────────────────────────────────────── */
.welcome-strip {
    background: linear-gradient(120deg, var(--navy) 0%, #2c4a8a 60%, #1a5a6e 100%);
    border-radius: var(--radius);
    padding: 28px 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
}

.welcome-strip::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
}

.welcome-strip::after {
    content: '';
    position: absolute;
    right: 80px;
    bottom: -80px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(10, 179, 156, .12);
}

.welcome-strip h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
}

.welcome-strip p {
    font-size: 13px;
    opacity: .75;
    margin: 0;
}

.welcome-strip .badge-pending {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(247, 183, 49, .18);
    border: 1px solid rgba(247, 183, 49, .4);
    color: var(--amber);
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
    position: relative;
    z-index: 1;
}

.welcome-strip .badge-pending:hover {
    background: rgba(247, 183, 49, .28);
}

.welcome-strip .badge-pending .count {
    background: var(--amber);
    color: #fff;
    border-radius: 20px;
    padding: 0 7px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* ── Stat card ─────────────────────────────────────────────── */
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 22px 24px;
    border: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
    transition: transform .22s, box-shadow .22s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .09);
}

.stat-card .bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: var(--radius) 0 0 var(--radius);
}

.stat-card .label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.stat-card .value {
    font-size: 34px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-card .link {
    font-size: 12px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    opacity: .7;
}

.stat-card .link:hover {
    opacity: 1;
}

.stat-card .icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

/* Pending card — special treatment */
.stat-card.pending-highlight {
    background: linear-gradient(135deg, #fff8ee 0%, #fff 100%);
}

.stat-card.pending-highlight .value {
    color: #e07b00;
}

/* ── Activity table card ────────────────────────────────────── */
.activity-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
    overflow: hidden;
}

.activity-card .ac-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--slate);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.activity-card .ac-header h6 {
    margin: 0;
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
}

.activity-card .ac-body {
    padding: 0;
}

.ac-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--slate);
    transition: background .15s;
}

.ac-row:last-child {
    border-bottom: none;
}

.ac-row:hover {
    background: var(--slate);
}

.ac-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.ac-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.ac-email {
    font-size: 11px;
    color: var(--muted);
}

.ac-uid {
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    font-family: monospace;
}

.ac-time {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}

.ac-action {}

.btn-review {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--navy);
    color: var(--navy);
    background: transparent;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}

.btn-review:hover {
    background: var(--navy);
    color: #fff;
}

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
    padding: 40px 24px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.empty-state i {
    font-size: 36px;
    opacity: .3;
    display: block;
    margin-bottom: 10px;
}

/* ── View more strip ────────────────────────────────────────── */
.view-more-strip {
    padding: 12px 24px;
    text-align: center;
    border-top: 1px solid var(--slate);
}

.view-more-strip a {
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
}

.view-more-strip a:hover {
    text-decoration: underline;
}

/* ── Quick links row ────────────────────────────────────────── */
.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 12px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    text-decoration: none;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    transition: all .2s;
    text-align: center;
}

.quick-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
    color: var(--navy);
}

.quick-link i {
    font-size: 22px;
}

/* ── Counter animation ──────────────────────────────────────── */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.value {
    animation: countUp .5s ease both;
}

@media (max-width: 767px) {
    .welcome-strip {
        padding: 20px 18px;
    }

    .ac-row {
        grid-template-columns: 1fr auto;
    }

    .ac-uid,
    .ac-time {
        display: none;
    }
}