/* BigLink Mini App — Dashboard styles */

/* Hero balance card */
.hero-card {
    position: relative;
    margin: 16px;
    padding: 24px 20px 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, #7c2d12 0%, #b45309 40%, #f59e0b 100%);
    overflow: hidden;
    color: #0f172a;
    box-shadow: 0 20px 40px -20px rgba(245, 158, 11, 0.6);
}
.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.hero-card::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}
.hero-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 6px;
}
.hero-amount {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.hero-currency {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.7;
    margin-left: 4px;
}
.hero-meta {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.15);
}
.hero-meta-item {
    display: flex;
    flex-direction: column;
}
.hero-meta-label {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.65;
    text-transform: uppercase;
}
.hero-meta-value {
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
}

/* Quick actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 16px 8px;
}
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px;
    border-radius: 16px;
    background: #1e293b;
    border: 1px solid #334155;
    transition: transform 100ms ease, border-color 150ms ease, background 150ms ease;
}
.quick-action:active { transform: scale(0.95); }
.quick-action:hover { border-color: #f59e0b; background: #263449; }
.quick-action-icon {
    font-size: 24px;
    margin-bottom: 6px;
}
.quick-action-label {
    font-size: 11px;
    font-weight: 600;
    color: #cbd5e1;
    text-align: center;
}

/* Section header */
.section {
    padding: 8px 16px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0 10px;
}
.section-title {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.section-action {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 600;
}

/* Stats row */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 16px;
}
.stat-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 14px 16px;
}
.stat-label {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #f8fafc;
}
.stat-sub {
    font-size: 11px;
    color: #64748b;
    margin-top: 3px;
}

/* Transaction list */
.tx-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px;
    margin-bottom: 8px;
    transition: background 150ms ease;
}
.tx-row:hover { background: #263449; }
.tx-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: #0f172a;
    flex-shrink: 0;
}
.tx-body {
    flex: 1;
    min-width: 0;
    margin-left: 12px;
}
.tx-type {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    text-transform: capitalize;
}
.tx-time {
    font-size: 11px;
    color: #64748b;
    margin-top: 1px;
}
.tx-amount {
    text-align: right;
    flex-shrink: 0;
    margin-left: 8px;
}
.tx-amount-main {
    font-size: 14px;
    font-weight: 700;
}
.tx-amount-bal {
    font-size: 10px;
    color: #64748b;
    margin-top: 1px;
}
.tx-credit { color: #34d399; }
.tx-debit { color: #fb7185; }

/* Empty state */
.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
}
.empty-state-icon {
    font-size: 40px;
    opacity: 0.5;
    margin-bottom: 8px;
}
.empty-state-text {
    font-size: 13px;
}

/* Notifications drawer */
.notif-item {
    padding: 12px 14px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    transition: background 150ms ease;
}
.notif-item.unread {
    border-color: #f59e0b;
    background: #1e293b;
    position: relative;
}
.notif-item.unread::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
}
.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.notif-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
}
.notif-time {
    font-size: 10px;
    color: #64748b;
}
.notif-text {
    font-size: 12.5px;
    color: #cbd5e1;
    line-height: 1.45;
    white-space: pre-line;
}

/* Profile */
.profile-header {
    text-align: center;
    padding: 24px 16px 16px;
}
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c2d12, #f59e0b);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}
.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #f8fafc;
}
.profile-sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}
.profile-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    overflow: hidden;
}
.profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #334155;
}
.profile-row:last-child { border-bottom: none; }
.profile-row-label {
    font-size: 13px;
    color: #94a3b8;
}
.profile-row-value {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    max-width: 60%;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.badge-success { background: #064e3b; color: #6ee7b7; }
.badge-warning { background: #78350f; color: #fcd34d; }
.badge-error   { background: #7f1d1d; color: #fca5a5; }
.badge-neutral { background: #334155; color: #cbd5e1; }
.badge-brand   { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }