@font-face {
  font-family: 'MiSansArabic';
  src: url('../fonts/MiSansArabic-Normal.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MiSansArabic', sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.header {
    background: linear-gradient(135deg, #e60012 0%, #c5000f 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(230, 0, 18, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.data-display {
    display: none;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.data-header {
    background: linear-gradient(135deg, #e60012 0%, #c5000f 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.data-header h2 {
    font-size: 24px;
    margin: 0;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
}

.data-section {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.data-section:nth-child(even) {
    background: #fafbfc;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #e60012;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.data-row:last-child {
    border-bottom: none;
}

.data-label {
    font-weight: 500;
    color: #666;
    flex: 1;
}

.data-value {
    font-weight: 600;
    color: #333;
    text-align: left;
    flex: 1;
}

.balance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.balance-card {
    background: linear-gradient(135deg, #e60012 0%, #c5000f 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.balance-card h4 {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.balance-card .amount {
    font-size: 22px;
    font-weight: bold;
}

.subscription-list {
    margin-top: 15px;
}

.subscription-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-right: 4px solid #e60012;
}

.subscription-item:last-child {
    margin-bottom: 0;
}

.form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
}

.form-title h1 {
    font-size: 26px;
    color: #333;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 15px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e8eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-input:focus {
    outline: none;
    border-color: #e60012;
    background: white;
    box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.1);
}

.submit-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #e60012 0%, #c5000f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'MiSansArabic', sans-serif;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(230, 0, 18, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.reload-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #e60012 0%, #c5000f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    font-family: 'MiSansArabic', sans-serif;
}

.reload-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(230, 0, 18, 0.3);
}

.reload-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .data-grid {
        grid-template-columns: 1fr;
    }
    
    .data-section {
        padding: 20px;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .balance-cards {
        grid-template-columns: 1fr;
    }
}