.account-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.account-panel {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.account-panel h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

/* Profile */
.profile-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.acc-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.profile-name {
    font-size: 1.15rem;
    font-weight: 600;
}

.profile-email {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Email change */
.email-change {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.email-change h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.inline-form {
    display: flex;
    gap: 0.5rem;
}

.inline-form input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
}

.inline-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.inline-form .btn {
    white-space: nowrap;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.otp-msg {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 0.5rem;
    text-decoration: underline;
}

.msg {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.msg.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.msg.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Stats */
.stats-row {
    display: flex;
    gap: 1rem;
}

.stat-box {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: var(--bg);
    border-radius: 8px;
}

.stat-box.highlight {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
}

.stat-num {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

.stat-box.highlight .stat-num {
    color: var(--accent);
}

.stat-lbl {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* Data tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table th {
    text-align: left;
    padding: 0.6rem 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid var(--border);
}

.data-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--border);
}

.data-table tbody tr:hover {
    background: var(--bg);
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-size: 0.9rem;
}

/* Buy More */
.buy-more {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.next-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 600px) {
    .account-page {
        padding: 1rem;
    }

    .stats-row {
        flex-direction: column;
    }

    .inline-form {
        flex-direction: column;
    }

    .data-table {
        font-size: 0.75rem;
    }

    .data-table th, .data-table td {
        padding: 0.4rem 0.25rem;
    }
}
