@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --brand: #6366f1;
    --brand-alt: #10b981;
    --brand-glow: rgba(99, 102, 241, 0.15);
    --brand-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --dark-950: #030712;
    --dark-900: #0f172a;
    --dark-800: #1e293b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --transition-snappy: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1)
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Cairo', sans-serif
}

body {
    background-color: var(--dark-950);
    color: var(--slate-200);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition-snappy)
}

header.scrolled {
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border)
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.logo-wrap {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--brand-glow))
}

.logo-text {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--white);
    letter-spacing: -0.03em
}

.logo-text span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent
}

.hero-v3 {
    position: relative;
    padding: 12rem 0 8rem;
    background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%), radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
    overflow: hidden
}

.hero-v3 .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center
}

.hero-content {
    text-align: right
}

.hero-tag {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--brand);
    margin-bottom: 2rem;
    backdrop-filter: blur(5px)
}

.hero-v3 h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--white)
}

.hero-v3 h1 span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent
}

.hero-v3 p {
    font-size: 1.35rem;
    color: var(--slate-400);
    margin-bottom: 3rem;
    line-height: 1.8
}

.btn-main {
    background: var(--brand-gradient);
    color: var(--white);
    text-decoration: none;
    padding: 1.4rem 3rem;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-snappy);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.5)
}

.btn-main:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.6)
}

.hero-visual-v3 {
    position: relative
}

.main-mockup {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    filter: brightness(1.1)
}

.section-v3 {
    padding: 10rem 0
}

.showcase-row {
    display: flex;
    align-items: center;
    gap: 6rem;
    margin-bottom: 10rem
}

.showcase-row:nth-child(even) {
    flex-direction: row-reverse
}

.showcase-text {
    flex: 1
}

.showcase-num {
    font-size: 6rem;
    font-weight: 900;
    background: linear-gradient(to bottom, var(--glass-border), transparent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: -1rem
}

.showcase-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem
}

.showcase-text h2 span {
    color: var(--brand)
}

.showcase-text p {
    font-size: 1.25rem;
    color: var(--slate-400);
    line-height: 1.8
}

.showcase-visual {
    flex: 1;
    height: 400px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    position: relative;
    overflow: hidden
}

.showcase-visual::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
    z-index: -1
}

.reviews-v3 {
    padding: 10rem 0;
    background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, 0.05), transparent)
}

.stats-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 4rem;
    align-items: center
}

.stats-summary {
    text-align: center;
    border-left: 1px solid var(--glass-border);
    padding-left: 2rem
}

[dir="rtl"] .stats-summary {
    border-left: 1px solid var(--glass-border);
    border-right: none;
    padding-left: 2rem;
    padding-right: 0
}

.big-rating {
    font-size: 5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.5rem
}

.stars-display {
    font-size: 1.5rem;
    color: #fbbf24;
    margin-bottom: 0.5rem;
    letter-spacing: 5px
}

.total-count {
    color: var(--slate-400);
    font-size: 1rem
}

.stats-details {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 1rem
}

.star-label {
    min-width: 60px;
    color: var(--slate-300);
    font-size: 0.95rem;
    white-space: nowrap
}

.progress-bar-bg {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden
}

.progress-bar-fill {
    height: 100%;
    background: var(--brand);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1)
}

#bar-5 {
    background: #10b981
}

#bar-4 {
    background: #34d399
}

#bar-3 {
    background: #fbbf24
}

#bar-2 {
    background: #f59e0b
}

#bar-1 {
    background: #ef4444
}

.count-label {
    min-width: 30px;
    text-align: left;
    color: var(--slate-400);
    font-size: 0.9rem
}

@media (max-width:768px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem
    }

    .stats-summary {
        border-left: none !important;
        border-bottom: 1px solid var(--glass-border);
        padding-bottom: 2rem;
        padding-left: 0 !important
    }
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto
}

.review-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 0;
    transition: var(--transition-snappy);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)
}

.review-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)
}

.review-main-content {
    padding: 2rem
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem
}

.reviewer-profile {
    display: flex;
    align-items: center;
    gap: 1rem
}

.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1)
}

.reviewer-meta {
    display: flex;
    flex-direction: column
}

.reviewer-name {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem
}

.review-date {
    color: var(--slate-400);
    font-size: 0.85rem;
    margin-top: 0.2rem
}

.review-body {
    color: var(--slate-200);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    white-space: pre-line
}

.review-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05)
}

.btn-reply {
    background: transparent;
    color: var(--slate-400);
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-snappy)
}

.btn-reply:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--brand)
}

.replies-section {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem 2rem
}

.replies-count {
    font-size: 0.85rem;
    color: var(--slate-400);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem
}

.replies-count::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--slate-400)
}

.reply-thread {
    display: flex;
    flex-direction: column;
    gap: 1.5rem
}

.reply-card {
    position: relative;
    padding-right: 1.5rem;
    border-right: 2px solid var(--glass-border)
}

.reply-card:hover {
    border-right-color: var(--brand)
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem
}

.reply-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--dark-800);
    border: 1px solid var(--glass-border);
    color: var(--slate-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700
}

.reply-author {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700
}

.reply-meta {
    color: var(--slate-400);
    font-size: 0.75rem
}

.reply-body {
    color: var(--slate-300);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-right: 42px
}

.reply-actions {
    margin-right: 42px;
    margin-top: 0.5rem
}

.reply-btn-mini {
    background: none;
    border: none;
    color: var(--slate-400);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s
}

.reply-btn-mini:hover {
    color: var(--brand);
    text-decoration: underline
}

.inline-reply-form {
    background: var(--dark-900);
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
    animation: slideDown 0.3s ease
}

.inline-inputs {
    display: flex;
    gap: 1rem;
    flex-direction: column
}

.reply-tag-indicator {
    font-size: 0.85rem;
    color: var(--brand);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem
}

.btn-inline-submit {
    align-self: flex-start;
    background: var(--brand);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 600
}

.btn-inline-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.submit-area-v3 {
    max-width: 800px;
    margin: 5rem auto 10rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 4rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-premium)
}

.submit-area-v3 h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--white)
}

.rating-wrapper {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center
}

.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 0.5rem
}

.rating input {
    display: none
}

.rating label {
    font-size: 2.5rem;
    color: var(--dark-800);
    cursor: pointer;
    transition: var(--transition-snappy)
}

.rating label:hover,
.rating label:hover~label,
.rating input:checked~label {
    color: #fbbf24;
    transform: scale(1.2);
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.4)
}

.reply-status {
    background: var(--brand-glow);
    border: 1px solid var(--brand);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    font-weight: 600
}

.btn-cancel-reply {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-snappy)
}

.btn-cancel-reply:hover {
    background: #dc2626
}

.modern-input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--white);
    border-radius: 12px;
    padding: 1.2rem;
    font-size: 1.1rem;
    width: 100%;
    transition: var(--transition-snappy);
    margin-bottom: 1.5rem
}

.modern-input:focus {
    border-color: var(--brand);
    background: rgba(255, 255, 255, 0.05);
    outline: none
}

.loading-spinner {
    grid-column: 1/-1;
    text-align: center;
    padding: 4rem;
    color: var(--slate-400);
    font-size: 1.1rem
}

footer {
    padding: 6rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center
}

footer p {
    color: var(--slate-400)
}

@media (max-width:1024px) {
    .hero-v3 .container {
        grid-template-columns: 1fr;
        text-align: center
    }

    .hero-content {
        text-align: center
    }

    .showcase-row {
        flex-direction: column !important;
        text-align: center
    }
}

[dir="rtl"] .hero-content {
    text-align: right
}

@media (max-width:1024px) {
    [dir="rtl"] .hero-content {
        text-align: center
    }
}