/* ===========================================================
   Emas Now Calculator + Information Board
   =========================================================== */

/* ---------- Calculator ---------- */
.emasnow-calc.gold-calculator {
    padding: 32px !important;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    font-family: 'Montserrat', sans-serif;
    color: #2b3659;
    max-width: 600px;
    margin: 0 auto;
}

.emasnow-calc .title {
    text-align: center;
    font-size: 36px !important;
    font-weight: 700;
    color: #2b3659;
    margin-bottom: 10px;
}

.emasnow-calc .update {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.emasnow-calc .info-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 59, 59, 0.12);
    border: 2px solid rgba(255, 59, 59, 0.35);
    border-left: 6px solid #ff3b3b;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 24px;
    color: #b30000;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
}

.emasnow-calc .big {
    font-size: 14px !important;
}

.emasnow-calc .kuning {
    background: rgba(255, 176, 0, 0.12);
    border: 2px solid rgba(255, 176, 0, 0.35);
    border-left: 6px solid #ffb000;
    color: #c58800;
}

.emasnow-calc .kuning strong {
    color: #956700 !important;
    font-weight: 900 !important;
}

.emasnow-calc .info-alert .icon {
    width: 25px;
    height: 25px;
    min-width: 25px;
    border-radius: 50%;
    background: #ff3b3b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    margin-top: 2px;
    box-shadow: 0 2px 8px rgba(255, 59, 59, 0.35);
}

.emasnow-calc .icon-kuning {
    width: 25px;
    height: 25px;
    min-width: 25px;
    border-radius: 50%;
    background: #ffb000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    margin-top: 2px;
    box-shadow: 0 2px 8px rgba(255, 176, 0, 0.35);
}

.emasnow-calc .tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    background: #f1f1f1;
    border-radius: 16px;
    margin-bottom: 24px;
    padding: 8px;
}

.emasnow-calc .tab {
    flex: 1;
    min-width: 100px;
    padding: 12px !important;
    border: none;
    background: transparent !important;
    font-weight: 600;
    color: #ffb000 !important;
    cursor: pointer;
    border-radius: 12px !important;
    transition: all 0.2s ease;
}

.emasnow-calc .tab.active {
    background: #ffb000 !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
}

.emasnow-calc .tab-content {
    display: none;
}

.emasnow-calc .tab-content.active {
    display: block;
}

.emasnow-calc .card {
    background: #ffffff;
    border: 1px solid #ffb000;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(255, 176, 0, 0.1);
}

.emasnow-calc label {
    font-weight: 600;
    margin-top: 16px;
    display: block;
    font-size: 14px;
}

.emasnow-calc input,
.emasnow-calc select {
    width: 100% !important;
    padding: 12px 15px !important;
    margin-top: 8px !important;
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    box-sizing: border-box;
}

.emasnow-calc .calculate-btn {
    width: 100%;
    margin-top: 20px;
    background: #ffd700;
    color: #2b3659;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.emasnow-calc .calculate-btn:hover {
    background: #ffb000;
    color: white;
}

.emasnow-calc .result {
    margin-top: 20px;
    font-size: 24px;
    font-weight: 700;
    color: #333a73;
    text-align: center;
    min-height: 30px;
}

.emasnow-calc .wa-btn {
    width: 100%;
    background: #25d366;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 15px;
}

.emasnow-calc .wa-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.emasnow-calc .category-note {
    display: none;
    background: rgba(255, 77, 77, 0.1);
    border-left: 4px solid #ff4d4d;
    padding: 12px;
    margin-top: 15px;
    font-size: 13px;
    color: #cc3333;
}

.emasnow-calc .category-note.show {
    display: block;
}

@media (max-width: 600px) {
    .emasnow-calc.gold-calculator {
        padding: 20px !important;
    }

    .emasnow-calc .title {
        font-size: 28px !important;
    }
}

/* ---------- Live Price Box (GOLD PRICE card) ---------- */
.en-price-box {
    background: #0c1a3a;
    border-radius: 18px;
    padding: 22px 20px;
    text-align: center;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    max-width: 320px;
    box-shadow: 0 10px 26px rgba(12, 26, 58, 0.35);
}

.en-price-box-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffd873;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.en-price-box-row {
    margin-bottom: 14px;
}

.en-price-box-row:last-of-type {
    margin-bottom: 8px;
}

.en-price-box-label {
    font-size: 13px;
    font-weight: 600;
    color: #e7ecf7;
    margin-bottom: 2px;
}

.en-price-box-value {
    font-size: 24px;
    font-weight: 800;
    color: #ffd873;
    line-height: 1.2;
}

.en-price-box-updated {
    font-size: 11px;
    font-weight: 600;
    color: #aab6d4;
    margin-top: 6px;
}

/* ---------- Information Board ---------- */
.ib-wrapper {
    max-width: 900px;
    margin: 20px auto;
    background: #fff;
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
}

.ib-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #333A73;
    margin-bottom: 6px;
}

.ib-update {
    text-align: center;
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
}

.ib-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333A73;
    margin: 26px 0 12px;
    text-align: center;
}

.ib-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ib-lm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    min-width: 520px;
}

.ib-lm-table th {
    background: #333A73;
    color: #fff;
    padding: 12px;
    font-size: 13px;
    text-align: center;
}

.ib-lm-table th:first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.ib-lm-table th:last-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }

.ib-lm-table td {
    background: #fff;
    border: 2px solid #333A73;
    padding: 14px;
    text-align: center;
    font-weight: 700;
    color: #333A73;
    font-size: 14px;
}

.ib-lm-table td:first-child {
    color: #D4AF37;
    font-weight: 700;
    white-space: nowrap;
}

.ib-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.ib-box {
    border: 2px solid #333A73;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    font-weight: 600;
    color: #333A73;
    background: #fff;
}

.ib-box h4 {
    font-size: 13px;
    margin: 0 0 6px;
    color: #D4AF37;
}

.ib-box p {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .ib-lm-table th,
    .ib-lm-table td { font-size: 12px; padding: 10px; }
}
