:root {
    --primary-red: #dc3545;
    --primary-red-dark: #b71c1c;
    --primary-yellow: #ffc107;
    --primary-yellow-dark: #e0a800;
    --light-bg: #fff8dc;
    --light-bg-alt: #ffeaa7;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Container */
.mgp-container {
    font-family: var(--font-family);
    max-width: 900px;
    margin: 0 auto;
    padding: 14px;
    direction: rtl;
    text-align: right;
    background: white;
    border-radius: 20px;
}

/* Header */
.mgp-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.2);
}

.mgp-title {
    color: #fff;
    font-size: 1.8rem;
    margin: 0 0 10px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.mgp-last-update {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Grid */
.mgp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

/* Cards */
.mgp-card {
    background: linear-gradient(135deg, #fff5f5, #fffbf0);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(207, 137, 12, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mgp-card::before {
    display: none;
}

.mgp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(207, 137, 12, 0.35);
    border-color: transparent;
    background: linear-gradient(135deg, #fff0f0, #fffbea);
}

.mgp-card-header {
    margin-bottom: 20px;
}

.mgp-card-header h3 {
    color: var(--primary-red);
    font-size: 1.3rem;
    margin: 0;
    font-weight: bold;
    text-align: center;
}

/* Hide the change indicators completely */
.mgp-change {
    display: none !important;
}

/* Price Main */
.mgp-price-main {
    text-align: center;
    margin-bottom: 10px;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-red-dark), var(--primary-yellow-dark));
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.mgp-currency,
.mgp-unit {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
}

.mgp-currency {
    margin-bottom: 5px;
}

.mgp-amount {
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin: 10px 0;
}

/* Highlight animation for updated prices */
@keyframes highlight {
    0% { background-color: rgba(255, 193, 7, 0.3); }
    100% { background-color: transparent; }
}
.mgp-amount.updated {
    animation: highlight 1s ease;
}

/* Price Secondary */
.mgp-price-secondary {
    text-align: center;
    color: var(--primary-red);
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(255, 193, 7, 0.2);
    padding: 10px;
    border-radius: 8px;
}

/* Footer */
.mgp-footer {
    text-align: center;
}

.mgp-refresh-btn {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-yellow));
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.mgp-refresh-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.5);
    background: linear-gradient(135deg, var(--primary-red-dark), var(--primary-yellow-dark));
}

.mgp-refresh-icon {
    margin-left: 10px;
    font-size: 1.3rem;
}

/* No Data */
.mgp-no-data {
    text-align: center;
    padding: 40px;
    color: var(--primary-red);
    font-size: 1.2rem;
    background: linear-gradient(135deg, #fff5f5, var(--light-bg-alt));
    border-radius: 15px;
    border: 3px dashed var(--primary-red);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .mgp-grid {
        grid-template-columns: 1fr;
    }
    .mgp-title {
        font-size: 2rem;
    }
    .mgp-amount {
        font-size: 2rem;
    }
    .mgp-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .mgp-amount {
        font-size: 1.6rem;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.mgp-loading .mgp-refresh-icon {
    animation: spin 1s linear infinite;
    color: #fff;
}