.section-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.section-icons .icon-container:nth-child(n+5) {
    display: none;
}

.section-icons.expanded .icon-container:nth-child(n+5) {
    display: block;
}

/* Prepaid Recharge Styles */
.operator-card {
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.operator-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.operator-card.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.operator-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.plan-card {
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.plan-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.plan-card.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.plan-card.popular {
    border-color: #f59e0b;
    position: relative;
    overflow: hidden;
}

.plan-card.popular::before {
    content: "Most Popular";
    position: absolute;
    top: 8px;
    right: -30px;
    background: #f59e0b;
    color: white;
    padding: 2px 30px;
    font-size: 0.75rem;
    transform: rotate(45deg);
}

.operator-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Loader Styles */
.loader {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pin Input Styles */
.pin-input {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 1.1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin: 0 4px;
}

.pin-input:focus {
    border-color: #3b82f6;
    outline: none;
}

/* Receipt Styles */
.receipt {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
}

.receipt-success {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

/* NEW Plan Modal Styles - Updated to match the image */
.plan-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.plan-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.plan-item:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.plan-item.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.plan-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 12px;
}

.plan-details {
    text-align: left;
    margin-bottom: 12px;
}

.plan-detail-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.plan-detail-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-detail-text {
    font-size: 0.9rem;
    color: #4b5563;
}

.plan-detail-note {
    font-size: 0.75rem;
    color: #6b7280;
    margin-left: 28px;
    margin-top: -4px;
    margin-bottom: 4px;
}

.plan-validity {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
}

.plan-popular-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f59e0b;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Responsive design for main content */
@media (max-width: 1023px) {
    /* Plan modal for mobile */
    .plan-modal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .plan-item {
        padding: 10px;
    }
}

@media (max-width: 640px) {
    .plan-modal-grid {
        grid-template-columns: 1fr;
    }
}