.idgp-card,
.idgp-single,
.idgp-table-wrap {
    box-sizing: border-box;
    font-family: inherit;
}

.idgp-card {
    width: 100%;
    max-width: 760px;
    overflow: hidden;
    border: 1px solid rgba(120, 86, 10, .18);
    border-radius: 18px;
    background: linear-gradient(145deg, #fffdf7, #fff8df);
    box-shadow: 0 14px 40px rgba(68, 48, 0, .10);
    color: #2e250f;
}

.idgp-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(120, 86, 10, .12);
}

.idgp-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #88650d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.idgp-card h3 {
    margin: 0;
    font-size: clamp(22px, 4vw, 30px);
    line-height: 1.2;
}

.idgp-unit-badge {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: #2e250f;
    color: #fff9e6;
    font-size: 13px;
    font-weight: 700;
}

.idgp-rate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.idgp-rate-item {
    min-width: 0;
    padding: 24px;
    border-right: 1px solid rgba(120, 86, 10, .12);
}

.idgp-rate-item:last-child { border-right: 0; }

.idgp-purity {
    display: block;
    margin-bottom: 6px;
    color: #88650d;
    font-size: 13px;
    font-weight: 800;
}

.idgp-price {
    display: block;
    overflow-wrap: anywhere;
    font-size: clamp(22px, 3.2vw, 34px);
    line-height: 1.15;
}

.idgp-trend {
    display: inline-flex;
    margin-top: 8px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.idgp-up { background: #eaf8ef; color: #147a3b; }
.idgp-down { background: #fff0f0; color: #b42318; }
.idgp-flat { background: #f2efe5; color: #6b6351; }

.idgp-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    background: rgba(255,255,255,.55);
    color: #6b6046;
    font-size: 12px;
}

.idgp-card-foot small { font-size: inherit; }

.idgp-single {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 12px 15px;
    border: 1px solid rgba(120, 86, 10, .18);
    border-radius: 12px;
    background: #fffaf0;
    color: #2e250f;
}

.idgp-single-label { color: #88650d; font-size: 13px; font-weight: 800; }
.idgp-single-price { font-size: 22px; }
.idgp-single-unit { color: #776c53; font-size: 12px; }
.idgp-single .idgp-trend { margin-top: 0; }

.idgp-table-wrap {
    width: 100%;
    max-width: 680px;
    overflow-x: auto;
    border: 1px solid #e8dfc7;
    border-radius: 14px;
}

.idgp-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.idgp-table th,
.idgp-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee7d5;
    text-align: left;
}

.idgp-table th {
    background: #fff8df;
    color: #5f4709;
    font-size: 13px;
    text-transform: uppercase;
}

.idgp-table tr:last-child td { border-bottom: 0; }
.idgp-table td:last-child { font-weight: 800; }

@media (max-width: 640px) {
    .idgp-card-head,
    .idgp-card-foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .idgp-rate-grid { grid-template-columns: 1fr; }
    .idgp-rate-item {
        display: grid;
        grid-template-columns: 60px minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        padding: 17px 20px;
        border-right: 0;
        border-bottom: 1px solid rgba(120, 86, 10, .12);
    }
    .idgp-rate-item:last-child { border-bottom: 0; }
    .idgp-purity { margin-bottom: 0; }
    .idgp-price { font-size: 25px; }
    .idgp-trend { margin-top: 0; }
}
