/* Web Hosting Page Styles */
.web-hosting-page {
    direction: rtl;
    min-height: 100vh;
    background: #ffffff;
}

/* Hero Section */
.wh-hero {
    position: relative;
    padding: calc(var(--hero-gap, 64px) + clamp(32px, 6vw, 96px)) 0 80px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    overflow: hidden;
}

.wh-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.wh-hero-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
}

.wh-hero-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
}

.wh-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.wh-hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wh-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.wh-title-line {
    display: block;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.wh-title-highlight {
    display: block;
    background: linear-gradient(90deg, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wh-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Hero Features */
.wh-hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.wh-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.wh-feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.wh-feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wh-feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.wh-feature-text h3 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.wh-feature-text p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Hero CTA */
.wh-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.wh-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
}

.wh-btn-primary {
    background: white;
    color: #2563eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wh-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.wh-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.wh-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Packages Section */
.wh-packages {
    padding: 80px 0;
    background: #f8fafc;
}

.wh-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.wh-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
}

.wh-section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Package Tabs */
.wh-package-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.wh-tab {
    padding: 1rem 2rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.wh-tab.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
}

.wh-tab i {
    font-size: 1.2rem;
}

/* Packages Grid */
.wh-packages-grid {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    animation: fadeIn 0.5s ease;
}

.wh-packages-grid.active {
    display: grid;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Package Card */
.wh-package-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.wh-package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.wh-package-card.featured {
    border: 2px solid #3b82f6;
    transform: scale(1.05);
}

.wh-package-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

/* Package Badge */
.wh-package-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

/* Package Header */
.wh-package-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.wh-package-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.wh-package-desc {
    font-size: 0.95rem;
    color: #64748b;
}

/* Package Price */
.wh-package-price {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.wh-currency {
    font-size: 1.5rem;
    color: #64748b;
    font-weight: 600;
}

.wh-amount {
    font-size: 3.5rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 1;
}

.wh-period {
    font-size: 1rem;
    color: #64748b;
    margin-right: 0.5rem;
}

/* Package Features */
.wh-package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex: 1;
}

.wh-package-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #475569;
}

.wh-package-features li:last-child {
    border-bottom: none;
}

.wh-package-features i {
    color: #10b981;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Package Button */
.wh-package-btn {
    width: 100%;
    padding: 1rem;
    background: white;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wh-package-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.wh-package-card.featured .wh-package-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.wh-package-card.featured .wh-package-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

/* Features Section */
.wh-features {
    padding: 80px 0;
    background: white;
}

.wh-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.wh-feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.wh-feature-card:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.wh-feature-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wh-feature-icon-wrap i {
    font-size: 2rem;
    color: white;
}

.wh-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.wh-feature-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* CTA Section */
.wh-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
}

.wh-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.wh-cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.wh-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.wh-cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.wh-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.wh-btn-white {
    background: white;
    color: #2563eb;
}

.wh-btn-white:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wh-btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.wh-btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .wh-packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wh-hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wh-hero {
        padding-top: calc(var(--hero-gap, 60px) + clamp(28px, 10vw, 72px));
    }

    .wh-hero-title {
        font-size: 2.5rem;
    }
    
    .wh-title-line {
        font-size: 2rem;
    }
    
    .wh-hero-features {
        grid-template-columns: 1fr;
    }
    
    .wh-packages-grid {
        grid-template-columns: 1fr;
    }
    
    .wh-package-card.featured {
        transform: none;
    }
    
    .wh-package-tabs {
        flex-direction: column;
    }
    
    .wh-features-grid {
        grid-template-columns: 1fr;
    }
    
    .wh-cta-buttons {
        flex-direction: column;
    }
    
    .wh-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wh-hero {
        padding-top: calc(var(--hero-gap, 52px) + clamp(24px, 12vw, 64px));
    }
}

/* Domain Modal */
.domain-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    font-family: 'Heebo', sans-serif;
}

.domain-modal[hidden] {
    display: none;
}

.domain-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.domain-modal__card {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    padding: 2.2rem 2.4rem;
    max-width: 420px;
    width: calc(100% - 3rem);
    z-index: 1;
    text-align: right;
}

.domain-modal__close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: #64748b;
    cursor: pointer;
}

#domainModalTitle {
    margin: 0 0 0.4rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
}

.domain-modal__subtitle {
    margin: 0 0 1rem;
    color: #475569;
    font-size: 0.95rem;
}

.domain-modal__plan {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.28);
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
    margin-bottom: 1rem;
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.9rem;
}

.domain-modal__label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.35rem;
}

.domain-modal__input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    font-size: 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    direction: ltr;
}

.domain-modal__input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.domain-modal__hint {
    margin: 0.4rem 0 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

.domain-modal__error {
    min-height: 1.2rem;
    margin: 0.6rem 0 0;
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 600;
}

.domain-modal__actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.4rem;
    justify-content: flex-end;
}

.domain-modal__confirm,
.domain-modal__cancel {
    border-radius: 10px;
    padding: 0.65rem 1.5rem;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.domain-modal__confirm {
    background: #1d4ed8;
    color: #ffffff;
}

.domain-modal__confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.18);
}

.domain-modal__cancel {
    background: #e2e8f0;
    color: #475569;
}

.domain-modal__cancel:hover {
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .domain-modal__card {
        padding: 1.8rem;
    }

    .domain-modal__actions {
        flex-direction: column;
    }

    .domain-modal__actions button {
        width: 100%;
    }
}
