:root{
    --bg: #0b1220;
    --bg-soft: #111827;
    --card: rgba(255,255,255,0.06);
    --card-border: rgba(255,255,255,0.12);
    --text: #f8fafc;
    --muted: #94a3b8;
    --primary: #2563eb;
    --warning: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --shadow: 0 20px 60px rgba(0,0,0,0.25);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Tahoma", "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #09111f 0%, #0d1526 100%);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

body.rtl {
    text-align: right;
}

body.ltr {
    text-align: left;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Navbar */
.main-navbar {
    background: rgba(8, 15, 29, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: all .3s ease;
    padding-top: 14px;
    padding-bottom: 14px;
    z-index: 1030;
}

.main-navbar.scrolled {
    background: rgba(8, 15, 29, 0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    padding-top: 10px;
    padding-bottom: 10px;
}

.navbar .nav-link {
    color: #d9e2f1;
    font-weight: 500;
    transition: color .2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #4f8cff);
    color: #fff;
    box-shadow: 0 0 20px rgba(37,99,235,0.35);
    flex-shrink: 0;
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.brand-subtitle {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 500;
}

/* Hero */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 30px 0 20px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.35);
    color: #d7e6ff;
    font-size: .95rem;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.hero-text {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 650px;
    line-height: 1.9;
}

.hero-trust .trust-item {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    transition: transform .25s ease, border-color .25s ease;
}

.hero-trust .trust-item:hover {
    transform: translateY(-4px);
    border-color: rgba(245,158,11,.35);
}

.hero-trust .trust-item i {
    color: var(--warning);
    flex-shrink: 0;
}

/* Offcanvas */
.offcanvas {
    background: #0b1220;
    color: #fff;
}

.offcanvas .nav-link {
    color: #d9e2f1;
}

.offcanvas .nav-link:hover {
    color: #fff;
}

/* Generic Preview */
.dashboard-preview {
    position: relative;
    border-radius: 28px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: var(--shadow);
}

.preview-header {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: var(--muted);
    min-height: 44px;
}

.preview-body {
    padding-top: 16px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* TradingView Hero Widgets */
.tv-dashboard-preview {
    position: relative;
    overflow: hidden;
}

.tv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tv-widget-card {
    min-height: 260px;
    border-radius: 22px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.10);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    overflow: hidden;
}

.tv-widget-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37,99,235,.35);
    box-shadow: 0 18px 40px rgba(0,0,0,.22);
}

.tv-widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
}

.tv-widget-title i {
    color: var(--warning);
    flex-shrink: 0;
}

.tv-widget-box {
    width: 100%;
    height: 210px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
}

.tv-widget-box > div {
    width: 100%;
    height: 100%;
}

.tv-widget-box iframe {
    border: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.tv-ticker-wrap {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    padding: 6px 10px;
}

.live-badge-tv,
.live-badge {
    position: absolute;
    top: 20px;
    right: 18px;
    background: rgba(16,185,129,.15);
    border: 1px solid rgba(16,185,129,.35);
    color: #d1fae5;
    border-radius: 999px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    z-index: 2;
}

body.rtl .live-badge-tv,
body.rtl .live-badge {
    left: 18px;
    right: auto;
}

.live-badge-tv i,
.live-badge i {
    color: var(--success);
    font-size: .7rem;
    animation: pulseLive 1.8s infinite;
}

/* Sections */
.section-space {
    padding: 100px 0;
}

.section-muted {
    background: rgba(255,255,255,0.02);
}

.section-heading h2 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 0;
}

.section-heading p {
    color: var(--muted);
    max-width: 760px;
    margin: 14px auto 0;
    line-height: 1.85;
}

/* Stats */
.stats-section {
    position: relative;
}

.stat-card,
.feature-card,
.step-card,
.plan-card,
.security-box,
.cta-box,
.faq-box,
.testimonial-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 28px 20px;
    text-align: center;
    transition: transform .25s ease, border-color .25s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37,99,235,.35);
}

.stat-card h3 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-card p {
    margin: 0;
    color: var(--muted);
}

/* Features */
.feature-card {
    padding: 28px 22px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245,158,11,.35);
    box-shadow: 0 25px 70px rgba(0,0,0,0.28);
}

.feature-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37,99,235,.14);
    color: #d8e6ff;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.feature-card h5,
.step-card h5,
.plan-card h4,
.testimonial-card strong {
    color: #fff;
}

.feature-card p,
.step-card p,
.security-box p,
.testimonial-card p {
    color: var(--muted);
    line-height: 1.85;
}

/* Steps */
.step-card {
    padding: 26px 22px;
    position: relative;
    height: 100%;
    transition: transform .25s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    display: inline-flex;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #4f8cff);
    margin-bottom: 18px;
}

/* Plans */
.plan-card {
    padding: 30px 24px;
    position: relative;
    transition: transform .25s ease, border-color .25s ease;
    height: 100%;
}

.plan-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37,99,235,.35);
}

.plan-card.featured {
    border-color: rgba(245,158,11,.35);
    transform: scale(1.02);
}

.plan-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.plan-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--warning);
    color: #111;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
}

body.ltr .plan-badge {
    right: 16px;
    left: auto;
}

body.rtl .plan-badge {
    left: 16px;
    right: auto;
}

.plan-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(245,158,11,.12);
    color: var(--warning);
    font-size: 1.6rem;
    margin-bottom: 18px;
}

.plan-card ul li {
    color: var(--muted);
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Security */
.security-box {
    padding: 32px 26px;
}

.security-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform .25s ease;
    color: #e5edf8;
}

.security-item:hover {
    transform: translateY(-3px);
}

.security-item i {
    color: var(--success);
    flex-shrink: 0;
}

.security-visual {
    min-height: 100%;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(79,140,255,.10));
    border: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.shield-wrap {
    width: 180px;
    height: 180px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    font-size: 5rem;
    color: var(--warning);
    animation: floatY 4s ease-in-out infinite;
}

/* Testimonials */
.testimonial-card {
    padding: 26px 22px;
    height: 100%;
    transition: transform .25s ease, border-color .25s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245,158,11,.35);
}

.testimonial-stars {
    color: var(--warning);
    margin-bottom: 18px;
    display: flex;
    gap: 4px;
}

.testimonial-user {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37,99,235,.18);
    color: #fff;
    font-weight: 800;
    flex-shrink: 0;
}

.testimonial-user span {
    display: block;
    color: var(--muted);
    font-size: .9rem;
}

/* FAQ */
.faq-box {
    max-width: 850px;
    padding: 10px;
}

.accordion-item {
    background: transparent;
    border: 0;
}

.accordion-button {
    background: rgba(255,255,255,.04);
    color: var(--text);
    border-radius: 16px !important;
    box-shadow: none !important;
    margin-bottom: 12px;
    transition: all .2s ease;
}

.accordion-button:not(.collapsed) {
    background: rgba(37,99,235,.12);
    color: #fff;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-body {
    color: var(--muted);
    background: transparent;
    padding-top: 0;
    line-height: 1.9;
}

/* CTA */
.cta-section {
    padding: 50px 0 100px;
}

.cta-box {
    padding: 50px 24px;
    background: linear-gradient(135deg, rgba(37,99,235,.15), rgba(245,158,11,.12));
}

.cta-box p {
    color: var(--muted);
    max-width: 760px;
    margin-inline: auto;
    line-height: 1.85;
}

/* Footer */
.footer-section {
    background: #070d18;
    padding: 70px 0 30px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.footer-title,
.footer-heading {
    color: #fff;
    font-weight: 700;
}

.footer-section p,
.footer-links a,
.footer-section .small {
    color: var(--muted);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: #fff;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform .25s ease, border-color .25s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    border-color: rgba(37,99,235,.35);
}

.footer-divider {
    border-color: rgba(255,255,255,.08);
    margin: 30px 0 20px;
}

/* Glows */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    animation: glowMove 10s ease-in-out infinite alternate;
}

.hero-glow-1 {
    width: 260px;
    height: 260px;
    background: rgba(37,99,235,.25);
    top: 10%;
    left: 5%;
}

.hero-glow-2 {
    width: 240px;
    height: 240px;
    background: rgba(245,158,11,.16);
    bottom: 10%;
    right: 6%;
    animation-delay: 1.5s;
}

.hero-glow-3 {
    width: 180px;
    height: 180px;
    background: rgba(16,185,129,.14);
    top: 45%;
    left: 45%;
    animation-delay: .8s;
}

/* Motion / Reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform .8s ease;
    transition-delay: var(--delay, 0ms);
}

.reveal.reveal-scale {
    transform: scale(.96);
}

.reveal.active {
    opacity: 1;
    transform: none;
}

.floating-card {
    animation: floatY 5s ease-in-out infinite;
}

.pulse-btn {
    animation: pulseSoft 2.3s infinite;
}

@keyframes pulseSoft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.18); }
    50% { box-shadow: 0 0 0 12px rgba(245,158,11,0); }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glowMove {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(20px, -18px, 0) scale(1.08); }
}

/* Buttons */
.btn-warning {
    color: #111 !important;
    font-weight: 700;
}

.btn-outline-light:hover,
.btn-outline-primary:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: clamp(2rem, 4vw, 3.5rem);
    }
}

@media (max-width: 991.98px) {
    .section-space {
        padding: 75px 0;
    }

    .hero-section .min-vh-100 {
        min-height: auto !important;
    }

    .hero-section {
        padding-top: 20px;
    }

    .hero-title,
    .hero-text {
        max-width: 100%;
    }

    .tv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-preview,
    .tv-dashboard-preview {
        margin-top: 10px;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.22;
    }

    .hero-text {
        font-size: 1rem;
    }

    .section-heading p,
    .hero-text,
    .accordion-body,
    .feature-card p,
    .step-card p,
    .cta-box p {
        line-height: 1.8;
    }

    .cta-box {
        padding: 35px 18px;
    }

    .feature-card,
    .step-card,
    .plan-card,
    .security-box,
    .testimonial-card,
    .stat-card {
        padding: 22px 18px;
    }

    .tv-grid {
        grid-template-columns: 1fr;
    }

    .tv-widget-card {
        min-height: 240px;
    }

    .tv-widget-box {
        height: 190px;
    }

    .live-badge-tv,
    .live-badge {
        position: static;
        margin-top: 14px;
        width: fit-content;
    }

    .hero-trust .col-sm-4 {
        width: 100%;
    }

    .plan-card.featured,
    .plan-card.featured:hover {
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .brand-subtitle {
        display: none;
    }

    .hero-badge {
        font-size: .82rem;
    }

    .preview-header small {
        font-size: .78rem;
    }

    .tv-widget-title {
        font-size: .9rem;
    }

    .tv-widget-card {
        padding: 12px;
    }

    .btn-lg {
        width: 100%;
    }

    .hero-title {
        font-size: 1.8rem;
    }
}