:root {
    --primary-color: #007bff;
    --dark-color: #333;
    --text-color: #666;
    --text-light: #888;
    --white: #fff;
    --light-gray: #f8f9fa;
    --gradient-1: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    background: var(--gradient-1);
    padding: 80px 0 50px;
    position: relative;
    color: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 80px 0;
}

.feature-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    background: var(--light-gray);
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    color: var(--primary-color);
    font-size: 28px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.plan-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.testimonial-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--primary-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Auth Pages Styles */
.auth-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo i {
    font-size: 48px;
    color: var(--primary-color);
    width: 80px;
    height: 80px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    user-select: none;
    cursor: pointer;
    margin-bottom: 20px;
}

.checkbox-label input[type="checkbox"] {
    margin-left: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-label span {
    color: var(--text-color);
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    float: left;
}

.forgot-link:hover {
    text-decoration: underline;
}


.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
    outline: none;
}

.input-group .icon {
    position: absolute;
    left: 15px;
    top: 40px;
    color: var(--text-light);
}

.input-group.invalid input {
    border-color: #dc3545;
}

.input-group .error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

.password-toggle {
    position: absolute;
    left: 15px;
    top: 40px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard-container {
    padding: 30px;
}

.dashboard-header {
    background: var(--white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.stat-card h3 {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 1.5rem;
    color: var(--dark-color);
    font-weight: 700;
}

/* Table Styles */
.table-container {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 20px;
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table th,
.custom-table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid var(--light-gray);
}

.custom-table th {
    font-weight: 500;
    color: var(--text-light);
    background: var(--light-gray);
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

/* License Page Styles */
.license-header {
    background: var(--gradient-1);
    color: var(--white);
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 0 0 20px 20px;
}

.license-header h2 {
    margin-bottom: 10px;
    color: var(--white);
}

.license-header p {
    opacity: 0.9;
    margin: 0;
}

.license-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.license-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.license-card-header {
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.license-card-body {
    padding: 20px;
}

.copy-group {
    display: flex;
    align-items: center;
    background: var(--light-gray);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 15px;
}

.copy-input {
    flex: 1;
    border: none;
    background: none;
    padding: 5px 10px;
    font-family: monospace;
}

.copy-button {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-button:hover {
    color: var(--dark-color);
}

.domain-list {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
}

.domain-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.domain-item:last-child {
    border-bottom: none;
}

.domain-item i {
    margin-left: 8px;
    color: var(--primary-color);
}

.domain-actions {
    display: flex;
    gap: 10px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Plans Page Styles */
.plans-header {
    background: var(--gradient-1);
    color: var(--white);
    padding: 60px 0;
    margin-bottom: 40px;
    text-align: center;
    border-radius: 0 0 20px 20px;
}

.plans-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.plans-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.plan-features {
    min-height: 200px;
    margin: 20px 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-color);
}

.feature-icon {
    color: var(--primary-color);
    margin-left: 10px;
    font-size: 18px;
}

.support-section {
    text-align: center;
    padding: 60px 0;
    margin-top: 40px;
}

.support-section h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.support-section p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Payment Page Styles */
.payment-header {
    background: var(--gradient-1);
    color: var(--white);
    padding: 40px 0;
    margin-bottom: 30px;
    text-align: center;
    border-radius: 0 0 20px 20px;
}

.payment-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.payment-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 30px;
}

.payment-card-header {
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.payment-card-body {
    padding: 20px;
}

.payment-card-footer {
    padding: 20px;
    background: var(--light-gray);
}

.plan-details {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.plan-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.plan-detail-row:last-child {
    border-bottom: none;
}

.plan-detail-row i {
    color: var(--primary-color);
    margin-left: 10px;
}

.payment-form {
    margin-top: 20px;
}

.card-input-group {
    position: relative;
    margin-bottom: 20px;
}

.card-input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}

.card-input-group input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.card-input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
    outline: none;
}

.card-input-group i {
    position: absolute;
    left: 15px;
    top: 40px;
    color: var(--text-light);
}

.security-note {
    text-align: center;
    color: var(--text-light);
    margin-top: 20px;
}

.security-note i {
    color: var(--primary-color);
    margin-left: 5px;
}

/* Header & Navigation Styles */
.main-header {
    background: var(--gradient-1);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.brand {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
}

.brand i {
    margin-left: 10px;
    font-size: 1.4rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 5px 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.nav-link i {
    margin-left: 8px;
}

.nav-link:hover, 
.nav-link.active {
    opacity: 1;
}

.user-nav {
    display: flex;
    align-items: center;
}

.notifications {
    position: relative;
    margin-left: 20px;
}

.notification-toggle {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.notification-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #dc3545;
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.user-menu {
    position: relative;
}

.user-toggle {
    background: none;
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.user-toggle i {
    margin-left: 8px;
    font-size: 1.2rem;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    min-width: 200px;
    padding: 10px 0;
    display: none;
}

.dropdown.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-item i {
    margin-left: 10px;
    width: 20px;
    color: var(--primary-color);
}

.dropdown-item:hover {
    background-color: var(--light-gray);
}

.dropdown-divider {
    height: 1px;
    background: var(--light-gray);
    margin: 8px 0;
}

.content-wrapper {
    margin-top: 70px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        right: -100%;
        bottom: 0;
        width: 260px;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        transition: right 0.3s ease;
        box-shadow: var(--shadow-md);
    }

    .main-nav.show {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-item {
        margin: 0;
    }

    .nav-link {
        color: var(--text-color);
        padding: 12px 0;
        border-bottom: 1px solid var(--light-gray);
    }

    .user-nav {
        margin-top: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .notifications {
        margin: 0;
        margin-bottom: 10px;
    }

    .notification-toggle,
    .user-toggle {
        color: var(--text-color);
        width: 100%;
        text-align: right;
        padding: 12px 0;
    }

    .dropdown {
        position: static;
        box-shadow: none;
        border: 1px solid var(--light-gray);
        margin-top: 10px;
    }
}

/* Profile Page Styles */
.profile-header {
    background: var(--gradient-1);
    color: var(--white);
    padding: 40px 0;
    margin-bottom: 30px;
    text-align: center;
    border-radius: 0 0 20px 20px;
}

.avatar-container {
    width: 120px;
    height: 120px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
}

.avatar-container i {
    font-size: 60px;
    color: var(--primary-color);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.profile-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.profile-card-header {
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.profile-card-body {
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-box {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-box h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-box p {
    color: var(--text-light);
    margin: 0;
}

/* Footer Styles */
.main-footer {
    background: var(--white);
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid var(--light-gray);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-widget h4 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-left: 8px;
    color: var(--primary-color);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact {
    color: var(--text-color);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-left: 10px;
    color: var(--primary-color);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
    color: var(--text-light);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .features-grid, .pricing-grid, .testimonials-grid {
        gap: 20px;
    }

    .auth-container {
        margin: 20px;
        padding: 20px;
    }

    .dashboard-container {
        padding: 15px;
    }

    .table-container {
        padding: 10px;
    }

    .license-grid {
        grid-template-columns: 1fr;
    }

    .license-header {
        padding: 30px 0;
    }

    .plans-header {
        padding: 40px 0;
    }

    .plans-header h1 {
        font-size: 2rem;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .payment-container {
        padding: 15px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links a,
    .footer-contact p {
        justify-content: center;
    }
}
