:root {
    --primary-bg: #1a1a1a;
    --section-bg: #212121;
    --accent-color: #e67e22;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Section Styling */
section {
    background-color: var(--section-bg);
    border-radius: 12px;
    margin-bottom: 30px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

/* Enhanced Section Headers */
.section-header {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.section-header i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.section-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.section-description {
    margin: 8px 0 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

/* Info Banner */
.info-banner {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    border-left: 4px solid var(--accent-color);
}

.info-banner i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-right: 10px;
}

.info-banner p {
    margin: 0;
    color: var(--text-color);
}

/* Payout Info */
.payout-info {
    background: rgba(230, 126, 34, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.payout-info i {
    color: var(--accent-color);
    margin-right: 8px;
}

.payout-info span {
    color: var(--text-color);
    font-size: 0.9rem;
}



/* Intro Section Styling */
.intro-section {
    margin-bottom: 40px;
}

.intro-content {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.intro-text {
    flex: 1;
}

.intro-text h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.intro-text p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.intro-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.benefit-item {
    background-color: var(--primary-bg);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.benefit-item h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.apply-section {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: var(--primary-bg);
    border-radius: 8px;
}

.apply-section h3 {
    margin-bottom: 10px;
    color: var(--accent-color);
}

.apply-section p {
    margin-bottom: 20px;
}

.apply-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.apply-btn:hover {
    background-color: #d35400;
    transform: scale(1.05);
}

/* Application Form Styles */
.application-form {
    max-width: 700px;
    margin: 25px auto 0;
    text-align: left;
    background-color: var(--section-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.application-form h4 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Success/Error Messages */
.bg-green-100 {
    background-color: rgba(34, 197, 94, 0.1);
}

.text-green-700 {
    color: #15803d;
}

.border-green-300 {
    border-color: rgba(34, 197, 94, 0.3);
}

.bg-red-100 {
    background-color: rgba(239, 68, 68, 0.1);
}

.text-red-700 {
    color: #dc2626;
}

.border-red-300 {
    border-color: rgba(239, 68, 68, 0.3);
}

.text-red-500 {
    color: #ef4444;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.p-3 {
    padding: 0.75rem;
}

.rounded {
    border-radius: 0.375rem;
}

.text-sm {
    font-size: 0.875rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group label .optional {
    font-weight: normal;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s, background-color 0.3s;
    background-color: var(--primary-bg);
    color: var(--text-color);
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.social-media-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.social-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-input i {
    font-size: 1.5rem;
    color: var(--accent-color);
    width: 30px;
    text-align: center;
}

.social-input .form-control {
    flex: 1;
}

.application-form .apply-btn {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .social-media-inputs {
        grid-template-columns: 1fr;
    }
}

/* FAQ Page Specific Styles */


.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.section-header i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Coupon Section */
.coupon-container {
    margin-bottom: 15px;
}

/* Rate Editing Section */
.rates-container {
    background-color: var(--primary-bg);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 0;
}

.rate-edit {
    display: flex;
    align-items: center;
}

.edit-btn {
    background: transparent;
    color: var(--accent-color);
    border: none;
    cursor: pointer;
    margin-left: 10px;
    font-size: 0.9rem;
}

.edit-btn:hover {
    color: #d35400;
}

.total-rate {
    font-weight: bold;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.rate-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

.save-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 10px;
    display: none;
}

.save-btn.active {
    display: block;
}

.save-btn:hover {
    background-color: #d35400;
}

.rate-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.rate-input {
    background-color: var(--section-bg);
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    width: 40px;
    padding: 2px 5px;
    border-radius: 3px;
    text-align: center;
}

.coupon-input {
    background-color: var(--section-bg);
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    width: 100%;
    max-width: 120px;
    padding: 2px 5px;
    border-radius: 3px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.coupon-input.valid {
    border-bottom: 2px solid #4CAF50;
}

.coupon-input.invalid {
    border-bottom: 2px solid #F44336;
}

.validation-message {
    font-size: 0.8rem;
    color: #F44336;
    margin-top: 5px;
    text-align: center;
}

.coupon-code {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
}

.copy-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background-color: #d35400;
}

.referral-link h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.link-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.link-container input {
    flex-grow: 1;
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px;
    border-radius: 4px;
    margin-right: 10px;
}

.info-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.templates-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 10px;
    cursor: pointer;
}

.templates-link:hover {
    text-decoration: underline;
}

/* Templates Section */
.templates-section {
    background-color: var(--primary-bg);
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
    display: none;
}

.templates-section.active {
    display: block;
}

.templates-section h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.template-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Language Toggle */
.language-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.lang-btn {
    background-color: var(--section-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.lang-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.lang-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.lang-btn.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Slides Container */
.slides-container {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
}

.slides-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--section-bg);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.slide.active {
    opacity: 1;
    display: block;
}

.slide-content {
    display: none;
    height: 100%;
    padding: 20px;
    text-align: center;
    flex-direction: column;
    justify-content: center;
}

.slide-content.arabic {
    direction: rtl;
    text-align: right;
}

.slide-content.active {
    display: flex;
}

.slide-number {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.slide-copy-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: var(--accent-color);
    border: none;
    color: var(--bg-color);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.slide-copy-btn:hover {
    opacity: 1;
    transform: scale(1.05);
}

.slide-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-size: 1.1rem;
}

.slide-body p {
    margin-bottom: 15px;
}

.discount-highlight {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 10px;
}

.discount-value {
    font-size: 1.3rem;
}

.cta {
    margin-top: 15px;
    font-weight: 500;
}

.referral-link {
    background-color: var(--primary-bg);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-top: 10px;
    word-break: break-all;
}

/* Slide Controls */
.slide-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.slide-btn {
    background-color: var(--section-bg);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slide-btn:hover {
    background-color: var(--accent-color);
}

.slide-indicators {
    display: flex;
    margin: 0 15px;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slide-dot.active {
    background-color: var(--accent-color);
}


.copy-template-btn,
.download-template-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.copy-template-btn:hover,
.download-template-btn:hover {
    background-color: #d35400;
}

/* Earnings Section */
.earnings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.earnings-box {
    background-color: var(--primary-bg);
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.earnings-box h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.amount {
    font-size: 1.5rem;
    font-weight: bold;
}

/* General Button Styling */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
}

.btn:hover {
    background-color: #d35400;
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--accent-color);
}

.btn-secondary {
    background-color: var(--section-bg);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.cancel-btn {
    background-color: #6c757d;
}

.cancel-btn:hover {
    background-color: #545b62;
}

/* Loading state for buttons */
.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Text utilities */
.text-center {
    text-align: center;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* FAQ Section */
.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1rem;
    font-weight: 500;
}

.faq-answer {
    padding: 0 0 15px 0;
    display: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.faq-answer.active {
    display: block;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stats-box {
    background-color: var(--primary-bg);
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.stats-box h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.stats-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
    margin-right: 10px;
}

.stats-period {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stats-content i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Footer */
footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 20px 0;
}



/* Toast Notification */
#toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#toast-notification.show {
    opacity: 1;
    visibility: visible;
}

/* Orders History Section */
.orders-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    padding: 0;
    background-color: var(--section-bg);
}

.orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--section-bg);
    overflow: hidden;
}

.orders-table thead {
    background-color: var(--primary-bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.orders-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: white;
    background-color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.orders-table td {
    padding: 14px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.orders-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

.orders-table tr:hover {
    background-color: rgba(230, 126, 34, 0.1);
    transition: background-color 0.2s ease;
}

/* Rounded corners for the table */
.orders-table thead tr:first-child th:first-child {
    border-top-left-radius: 8px;
}

.orders-table thead tr:first-child th:last-child {
    border-top-right-radius: 8px;
}

.orders-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.orders-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination-btn {
    background-color: var(--primary-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-indicator {
    margin: 0 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 15px;
    }
    
    .intro-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-header i {
        margin-right: 0;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .intro-text p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .benefits {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .benefit-item {
        padding: 15px;
    }
    
    .benefit-item i {
        font-size: 1.5rem;
    }
    
    .benefit-item h4 {
        font-size: 1rem;
    }
    
    .application-form {
        padding: 15px;
        margin-top: 20px;
    }
    
    .social-media-inputs {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .social-input {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .social-input i {
        align-self: flex-start;
    }
    
    .faq-question {
        padding: 12px 0;
    }
    
    .faq-question h3 {
        font-size: 0.95rem;
        padding-right: 30px;
    }
    
    .faq-answer {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .earnings-grid, .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .coupon-code {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .amount {
        font-size: 1.2rem;
    }
    
    .orders-table-container {
        font-size: 0.8rem;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .apply-btn {
        padding: 15px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .section-header h2 {
        font-size: 1.1rem;
    }
    
    .intro-text p {
        font-size: 0.9rem;
    }
    
    .benefit-item {
        padding: 12px;
    }
    
    .benefit-item i {
        font-size: 1.3rem;
    }
    
    .benefit-item h4 {
        font-size: 0.95rem;
    }
    
    .benefit-item p {
        font-size: 0.85rem;
    }
    
    .application-form {
        padding: 12px;
    }
    
    .form-control {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .faq-question h3 {
        font-size: 0.9rem;
    }
    
    .faq-answer {
        font-size: 0.8rem;
    }
    
    .apply-btn {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 6px 4px;
        font-size: 0.75rem;
    }
}