.terms-modal-content {
    background-color: #fff;
    margin: 2% auto;
    width: 85%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.terms-modal-header {
    background: linear-gradient(135deg, #4a6bff, #06b8ff);
    color: white;
    padding: 5px 5px;
    position: relative;
}

.terms-modal-header h3 {
    margin: 0;
	text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.header-icon {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    opacity: 0.2;
}

.last-updated {
    margin: 5px 0 0;
    font-size: 0.8rem;
    opacity: 0.9;
	color:white;
}

.terms-modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.terms-content {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

.terms-nav {
    width: 220px;
    background-color: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 20px 0;
    overflow-y: auto;
}

.terms-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-nav li {
    margin-bottom: 5px;
}

.terms-sections {
    flex-grow: 1;
    padding: 25px;
    overflow-y: auto;
    max-height: 60vh;
}

.terms-section {
}

.terms-section h2 {
    color: #4a6bff;
    font-size: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.terms-section h2 i {
    margin-right: 10px;
}

.terms-section h3 {
    font-size: 1.1rem;
    margin: 20px 0 10px;
    color: #343a40;
}

.terms-section h4 {
    font-size: 1rem;
    color: #495057;
}

.definition-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.definition-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
}

.definition-icon {
    background: #e9f5ff;
    color: #4a6bff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.definition-item h3 {
    margin: 0 0 5px;
    font-size: 0.95rem;
    color: #4a6bff;
}

.definition-item p {
    margin: 0;
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
}

.styled-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.styled-list li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
}

.styled-list i {
    color: #4a6bff;
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.method {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.2s;
}

.method:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.method-icon {
    font-size: 2rem;
    color: #4a6bff;
    margin-bottom: 10px;
}

.method h4 {
    margin: 10px 0 5px;
    font-size: 0.95rem;
}

.method p {
    margin: 0;
    font-size: 0.8rem;
    color: #6c757d;
}

.process-steps {
    margin: 20px 0;
}

.step {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.step-number {
    background: #4a6bff;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: bold;
}

.step-content {
    flex-grow: 1;
}

.step-content h4 {
    margin: 0 0 5px;
    font-size: 0.95rem;
}

.step-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.topup-calculator {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #495057;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    color: #6c757d;
}

.input-with-icon input {
    padding-left: 35px;
}

#topup-amount {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
}

.fee-details {
    background: white;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

.fee-row:last-child {
    border-bottom: none;
}

.fee-row.total {
    font-weight: bold;
    color: #4a6bff;
}

.fee-tables {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.fee-table-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
}

.fee-table th, .fee-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.fee-table th {
    background-color: #e9f5ff;
    color: #4a6bff;
    font-weight: 600;
}

.fee-table tr:hover {
    background-color: #f1f8ff;
}

.info-card {
    background: #e9f5ff;
    border-left: 4px solid #4a6bff;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 0 6px 6px 0;
    display: flex;
    align-items: flex-start;
}

.info-card i {
    color: #4a6bff;
    margin-right: 10px;
    margin-top: 2px;
}

.info-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #495057;
}

.info-card.warning {
    background: #fff8e6;
    border-left-color: #ffc107;
}

.info-card.warning i {
    color: #ffc107;
}

.terms-agreement {
    background: #f8f9fa;
    padding: 2px;
    border-top: 1px solid #e9ecef;
    margin-top: 0px;
}


.terms-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
}

.btn i {
    margin-right: 8px;
}

.btn-outline-secondary {
    background: transparent;
    border: 1px solid #6c757d;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background: #f1f1f1;
}

.btn-primary {
    background: #4a6bff;
    color: white;
}

.btn-primary:hover {
    background: #3a5bef;
}

.btn-primary:disabled {
    background: #b0b9ff;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .terms-modal-content {
        width: 95%;
        margin: 10px auto;
        max-height: 95vh;
    }
    
    .terms-content {
        flex-direction: column;
    }
    
    .terms-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 10px 0;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .terms-nav ul {
        display: inline-flex;
    }
    
    .terms-nav li {
        margin-bottom: 0;
        margin-right: 5px;
    }
    
    .definition-list, .payment-methods, .fee-tables {
        grid-template-columns: 1fr;
    }
}
