/* ── My Gold History Plugin Styles ── */

.mgh-wrap {
    max-width: 900px;
}

/* ── Summary Cards ── */
.mgh-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 36px;
}

.mgh-card {
    background: #fff;
    border: 1px solid #e8e0d0;
    border-top: 4px solid #d4a017;
    border-radius: 8px;
    padding: 20px 24px;
    min-width: 160px;
    flex: 1;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mgh-card-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.mgh-card-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 6px;
}

.mgh-card-grams {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

.mgh-card-grams small {
    font-size: 0.85rem;
    font-weight: 400;
    color: #888;
}

.mgh-card-total .mgh-card-grams {
    font-size: 1.2rem;
    color: #2c7a2c;
}

/* ── Section Title ── */
.mgh-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0e8d0;
}

/* ── Table ── */
.mgh-table-wrap {
    overflow-x: auto;
    margin-bottom: 24px;
}

.mgh-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.mgh-table th {
    background: #faf6ee;
    color: #7a5c00;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid #e8d89a;
    white-space: nowrap;
}

.mgh-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0ebe0;
    vertical-align: middle;
    color: #444;
}

.mgh-table tbody tr:hover {
    background: #fffdf5;
}

.mgh-table tfoot td {
    padding: 12px 14px;
    border-top: 2px solid #e8d89a;
    background: #faf6ee;
    font-weight: 600;
}

.mgh-table a {
    color: #d4a017;
    text-decoration: none;
    font-weight: 600;
}

.mgh-table a:hover {
    text-decoration: underline;
}

/* ── Purity Badges ── */
.mgh-purity-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.mgh-purity-24 {
    background: #fff8e0;
    color: #a07000;
    border: 1px solid #f0d060;
}

.mgh-purity-22 {
    background: #fff3d0;
    color: #8a5c00;
    border: 1px solid #e8c050;
}

.mgh-purity-18 {
    background: #ffecc0;
    color: #704800;
    border: 1px solid #d8a040;
}

.mgh-purity-20 {
    background: #f0f0f0;
    color: #555;
    border: 1px solid #ccc;
}

/* ── Status ── */
.mgh-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.mgh-status-Completed {
    background: #dcfce7;
    color: #166534;
}

.mgh-status-Processing {
    background: #dbeafe;
    color: #1e40af;
}

/* ── Empty State ── */
.mgh-empty {
    text-align: center;
    padding: 48px 24px;
    background: #faf6ee;
    border: 1px dashed #d4a017;
    border-radius: 8px;
    margin-bottom: 24px;
}

.mgh-empty p {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 16px;
}

/* ── Buy More Button ── */
.mgh-buy-more {
    margin-top: 24px;
}

.mgh-buy-more .button {
    background: #d4a017;
    border-color: #b8880e;
    color: #fff;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.mgh-buy-more .button:hover {
    background: #b8880e;
    color: #fff;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .mgh-summary {
        flex-direction: column;
    }
    .mgh-table th,
    .mgh-table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

/* ── Card stats rows ── */
.mgh-card-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #555;
    padding: 3px 0;
}
.mgh-stat-avail {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0e8d0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #166534;
}
.mgh-stat-red strong { color: #c0392b; }
.mgh-red-text { color: #c0392b; }
.mgh-card-grams {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c7a2c;
    margin-top: 8px;
}
