/* ─── منصة غصون — Landing Styles ─── */
:root {
    --black: #222222;
    --black-light: #2d2d2d;
    --black-soft: #3a3a3a;
    --yellow: #ffb606;
    --yellow-dark: #e6a405;
    --yellow-glow: rgba(255, 182, 6, 0.15);
    --white: #ffffff;
    --gray: #a0a0a0;
    --gray-light: #f5f5f5;
    --font: 'Tajawal', 'Segoe UI', sans-serif;
    --radius: 12px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--black);
    color: var(--white);
    direction: rtl;
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ─── Navbar ─── */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(34, 34, 34, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 182, 6, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(34, 34, 34, 0.97);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 800;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--yellow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--black);
    font-weight: 900;
}

.site-logo {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 10px;
}

.site-logo--nav {
    width: 42px;
    height: 42px;
}

.logo span { color: var(--yellow); }

.logo-text {
    line-height: 1.2;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover { color: var(--yellow); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    border-color: rgba(255, 182, 6, 0.45);
    color: var(--yellow);
    outline: none;
}

.navbar.is-open .nav-toggle {
    border-color: rgba(255, 182, 6, 0.45);
    background: var(--yellow-glow);
    color: var(--yellow);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

body.nav-open {
    overflow: hidden;
}

.btn-nav-login .btn-label-short { display: none; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

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

.btn-primary:hover {
    background: var(--yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--yellow-glow);
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
}

/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, var(--yellow-glow) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 182, 6, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, var(--black) 0%, #1a1a1a 100%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 182, 6, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 182, 6, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--yellow-glow);
    border: 1px solid rgba(255, 182, 6, 0.3);
    color: var(--yellow);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--yellow);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.hero h1 .highlight {
    color: var(--yellow);
    position: relative;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-card {
    background: var(--black-light);
    border: 1px solid rgba(255, 182, 6, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -1px;
    right: 20%;
    left: 20%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--yellow), transparent);
    border-radius: 3px;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-item { text-align: center; }

.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--yellow);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* ─── Features ─── */
.features {
    padding: 6rem 2rem;
    background: #1a1a1a;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header h2 span { color: var(--yellow); }

.section-header p { color: var(--gray); }

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--black-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(255, 182, 6, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--yellow-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--yellow);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p { color: var(--gray); font-size: 0.95rem; }

/* ─── About Section ─── */
.about-section {
    padding: 5rem 2rem;
    background: var(--black);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-inner {
    max-width: 800px;
    margin: 0 auto;
}

.about-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 2.5rem auto 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    max-width: 560px;
}

.about-stat {
    flex: 1;
    padding: 1.75rem 1rem;
    text-align: center;
}

.about-stat-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--yellow);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.about-stat-label {
    font-size: 0.82rem;
    color: var(--gray);
    font-weight: 500;
}

.about-stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.about-cta { margin-top: 0.5rem; }

@media (max-width: 480px) {
    .about-stats { flex-direction: column; max-width: 100%; }
    .about-stat-divider { width: 60px; height: 1px; }
}

/* ─── Footer ─── */
.footer {
    padding: 2.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--black);
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* طرق الدفع */
.footer-payments {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.footer-payments-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-payments-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.payment-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.45rem 0.8rem;
    transition: border-color 0.2s ease, background 0.2s ease;
    height: 44px;
    min-width: 64px;
}

.payment-badge:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.25);
}

.payment-badge svg {
    display: block;
}

/* مدى — خلفية بيضاء لأن الشعار مصمم على فاتح */
.payment-badge--white {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.payment-badge--white:hover {
    background: #f5f5f5;
}

/* بطاقات بخلفية داكنة ثابتة */
.payment-badge--dark {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
    padding: 0;
    overflow: hidden;
}

.payment-badge--dark:hover {
    background: #222;
}

/* الفاصل */
.footer-divider {
    width: 100%;
    max-width: 480px;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

/* معلومات التواصل */
.footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(160, 160, 160, 0.8);
}

.footer-contact-item svg {
    color: var(--yellow);
    flex-shrink: 0;
}

.footer-contact-link {
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-link:hover {
    color: var(--yellow);
}

.footer-contact-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .footer-contact { flex-direction: column; gap: 0.5rem; }
    .footer-contact-sep { display: none; }
}

/* أسفل الفوتر */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
}

.footer-copy {
    color: var(--gray);
    font-size: 0.88rem;
}

.footer-copy span { color: var(--yellow); }

.footer-doc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.82rem;
    color: rgba(160, 160, 160, 0.7);
}

.footer-doc-code {
    margin: 0;
}

.footer-doc-code span {
    color: var(--yellow);
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.06em;
}

.footer-doc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 182, 6, 0.45);
    background: rgba(255, 182, 6, 0.12);
    color: var(--yellow);
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.footer-doc-btn:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--black);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .footer-payments-icons { gap: 0.5rem; }
    .payment-badge { padding: 0.35rem 0.55rem; height: 38px; }
}

/* ─── زر واتساب العائم ─── */
.whatsapp-float {
    position: fixed;
    bottom: 1.75rem;
    left: 1.75rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #25D366;
    color: white;
    padding: 0.7rem 1.15rem 0.7rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    white-space: nowrap;
}

.whatsapp-float:hover {
    background: #1ebe5d;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
    flex-shrink: 0;
}

.whatsapp-float-label {
    line-height: 1;
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 1.25rem;
        left: 1.25rem;
        padding: 0.75rem;
        border-radius: 50%;
    }

    .whatsapp-float-label {
        display: none;
    }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .navbar {
        padding: 0.65rem 1rem;
        gap: 0.75rem;
    }

    .logo {
        font-size: 1.05rem;
        gap: 0.55rem;
        min-width: 0;
    }

    .site-logo--nav {
        width: 36px;
        height: 36px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        right: 1rem;
        left: 1rem;
        z-index: 1001;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem;
        background: rgba(34, 34, 34, 0.98);
        border: 1px solid rgba(255, 182, 6, 0.2);
        border-radius: 14px;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px) scale(0.98);
        transform-origin: top center;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
        pointer-events: none;
    }

    .navbar.is-open .nav-links {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 0.9rem 0.75rem;
        font-size: 1rem;
        border-radius: 8px;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover,
    .nav-links a:focus-visible {
        background: rgba(255, 182, 6, 0.08);
        color: var(--yellow);
    }

    .btn-nav-login {
        padding: 0.55rem 0.95rem;
        font-size: 0.88rem;
        white-space: nowrap;
    }

    .btn-nav-login .btn-label-full { display: none; }
    .btn-nav-login .btn-label-short { display: inline; }

    .hero {
        padding: 6.5rem 1.25rem 3rem;
    }

    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }

    .features { padding: 4rem 1.25rem; }
    .section-header { margin-bottom: 2.5rem; }
    .section-header h2 { font-size: 1.75rem; }
}
