/* ==========================================================================
   YRsite Host - World-Class SaaS Design System (Bilingual AR & EN)
   Inspired by Hostinger, Vercel, Stripe & Cloudflare
   ========================================================================== */

:root {
    --bg-base: #07090e;
    --bg-surface: #0d111a;
    --bg-card: rgba(15, 20, 32, 0.72);
    --bg-card-hover: rgba(22, 30, 48, 0.85);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(56, 189, 248, 0.35);
    --border-glow: rgba(99, 102, 241, 0.35);
    
    --primary: #38bdf8;
    --primary-hover: #7dd3fc;
    --primary-dark: #0284c7;
    --primary-glow: rgba(56, 189, 248, 0.25);
    
    --accent: #6366f1;
    --accent-purple: #a855f7;
    
    --gradient-brand: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #a855f7 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.12);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.12);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    
    --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-card: 0 16px 36px -12px rgba(0, 0, 0, 0.65);
    --shadow-glow: 0 0 35px rgba(56, 189, 248, 0.18);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Direction-aware typography */
html[dir="rtl"] body {
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    text-align: right;
    direction: rtl;
}

html[dir="ltr"] body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    text-align: left;
    direction: ltr;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 50% -10%, rgba(56, 189, 248, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 90% 40%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 10% 70%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 90px 0;
    position: relative;
}

.text-center { text-align: center !important; }

/* Section Header Typography */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
}

.section-title {
    font-size: 2.7rem;
    font-weight: 900;
    line-height: 1.22;
    margin-bottom: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.6px;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 55px;
    line-height: 1.7;
}

/* ==========================================================================
   Navigation Bar & Language Switcher
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo img, .brand-logo svg {
    height: 42px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.94rem;
    padding: 6px 0;
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language Toggle Pill */
.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.lang-toggle-btn:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

/* ==========================================================================
   Trust / Social Proof Strip
   ========================================================================== */
.trust-strip {
    background: rgba(13, 17, 26, 0.6);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.trust-items {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.trust-stars {
    display: inline-flex;
    gap: 2px;
    color: #f59e0b;
}

/* ==========================================================================
   Hero Section & Search Bar
   ========================================================================== */
.hero {
    padding: 90px 0 50px;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 900;
    line-height: 1.18;
    margin-bottom: 24px;
    letter-spacing: -0.8px;
}

.hero-highlight {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 780px;
    margin: 0 auto 42px;
    line-height: 1.7;
}

.domain-search-card {
    max-width: 860px;
    margin: 0 auto;
    background: rgba(13, 17, 26, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    backdrop-filter: blur(16px);
}

.domain-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.domain-input-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

html[dir="rtl"] .domain-input-box svg { right: 18px; }
html[dir="ltr"] .domain-input-box svg { left: 18px; }

.domain-input-box svg {
    position: absolute;
    color: var(--text-tertiary);
    pointer-events: none;
}

html[dir="rtl"] .domain-main-input { padding: 18px 56px 18px 20px; }
html[dir="ltr"] .domain-main-input { padding: 18px 20px 18px 56px; }

.domain-main-input {
    width: 100%;
    background: rgba(7, 9, 14, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 1.15rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.domain-main-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.tld-chips-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tld-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.tld-chip:hover {
    border-color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

.tld-chip strong { color: #fff; }
.tld-chip .price { color: var(--primary); font-weight: 800; }
.tld-chip .save-tag {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
}

/* ==========================================================================
   Hosting Plans (World-Class Cards like Hostinger)
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 42px 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    backdrop-filter: blur(16px);
    transition: var(--transition);
}

.plan-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.plan-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, rgba(15, 20, 32, 0.95) 100%);
    box-shadow: 0 16px 40px -8px rgba(56, 189, 248, 0.25);
}

.featured-pill {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-brand);
    color: #fff;
    padding: 6px 22px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.5);
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.plan-name-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.plan-tagline-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    min-height: 48px;
    line-height: 1.5;
}

.plan-price-box {
    margin: 22px 0 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.plan-strike-price {
    font-size: 1rem;
    color: var(--text-tertiary);
    text-decoration: line-through;
    margin-bottom: 4px;
}

.plan-main-rate {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.plan-main-rate .currency {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.plan-main-rate .number {
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    letter-spacing: -1px;
}

.plan-main-rate .period {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.plan-monthly-equiv {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.1);
    color: #7dd3fc;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
}

.plan-free-domain-badge {
    margin-top: 8px;
    display: block;
    color: var(--success);
    font-size: 0.88rem;
    font-weight: 700;
}

.plan-check-list {
    list-style: none;
    margin-bottom: 32px;
    flex: 1;
}

.plan-check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.plan-check-list li svg {
    color: var(--success);
    flex-shrink: 0;
}

/* ==========================================================================
   Comprehensive Comparison Matrix Table
   ========================================================================== */
.matrix-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(14px);
    margin-top: 40px;
}

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

.matrix-table th {
    padding: 22px 24px;
    background: rgba(13, 17, 26, 0.9);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.matrix-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.matrix-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.matrix-table .feat-col {
    font-weight: 700;
    color: #fff;
    width: 34%;
}

.matrix-table .plan-col {
    text-align: center;
    width: 22%;
}

.matrix-table .plan-col.highlight {
    background: rgba(56, 189, 248, 0.04);
}

/* ==========================================================================
   Customer Reviews & Social Proof
   ========================================================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.review-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.review-text {
    font-size: 1rem;
    color: #e2e8f0;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.review-author-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-name {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-role {
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

/* ==========================================================================
   Interactive FAQ Accordion
   ========================================================================== */
.faq-box {
    max-width: 840px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-question {
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.faq-arrow {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 26px 22px;
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.75;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 16px;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.25s ease;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 26px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: #ffffff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-primary { background: rgba(56, 189, 248, 0.12); color: var(--primary); border: 1px solid var(--border-glow); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #05070a;
    border-top: 1px solid var(--border-subtle);
    padding: 70px 0 35px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 45px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 26px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-tertiary);
    flex-wrap: wrap;
    gap: 16px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .matrix-table { font-size: 0.85rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .domain-search-form { flex-direction: column; }
    .domain-search-form .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .trust-items { justify-content: center; text-align: center; }
}
