/* Custom Variables & Design Tokens */
:root {
    --bg-primary: #05070f;
    --bg-secondary: #0c0f1d;
    --bg-tertiary: #141930;
    
    --accent-blue: #0084ff;
    --accent-blue-glow: rgba(0, 132, 255, 0.2);
    --accent-green: #00e676;
    --accent-green-glow: rgba(0, 230, 118, 0.2);
    --accent-purple: #7d26ff;
    --accent-purple-glow: rgba(125, 38, 255, 0.2);
    
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.05);
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset and Core Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* offset for the fixed navbar when jumping to anchors */
}

body {
    background-color: var(--bg-primary);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Subtle ambient glow so the page doesn't read as flat black */
    background-image:
        radial-gradient(900px circle at 15% -5%, rgba(0, 132, 255, 0.10), transparent 45%),
        radial-gradient(900px circle at 85% 5%, rgba(125, 38, 255, 0.08), transparent 45%);
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Bilingual Font Families */
html[lang="en"], html[lang="en"] * {
    font-family: 'Outfit', sans-serif;
}

html[lang="ar"], html[lang="ar"] * {
    font-family: 'Cairo', sans-serif;
}

/* Language Switcher CSS Toggles */
html[lang="en"] .lang-ar {
    display: none !important;
}

html[lang="ar"] .lang-en {
    display: none !important;
}

/* Layout Utilities (Logical Properties) */
.text-start {
    text-align: start;
}

/* Text selection accent */
::selection {
    background: var(--accent-blue);
    color: #fff;
}

/* Visible keyboard-focus ring for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 7, 15, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-white);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    filter: drop-shadow(0 0 8px var(--accent-blue-glow));
}

.logo-text .text-glow {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 132, 255, 0.4);
}

.lang-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.lang-toggle:hover {
    background: var(--glass-hover);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 132, 255, 0.15);
}

/* Primary nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.25s ease;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.25s ease;
}

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

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

/* Hide the inline nav links on smaller screens (logo + lang toggle remain) */
@media (max-width: 860px) {
    .nav-links { display: none; }
}

/* Hero Section */
.hero-section {
    padding: 160px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.grid-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background: var(--accent-blue-glow);
    border: 1px solid rgba(0, 132, 255, 0.3);
    color: #38bdf8;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

/* Hero key highlight — the most important selling line */
.hero-highlight {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(0, 132, 255, 0.16), rgba(0, 230, 118, 0.12));
    border: 1.5px solid rgba(0, 132, 255, 0.45);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 36px;
    max-width: 560px;
    box-shadow: 0 0 0 rgba(0, 132, 255, 0.5);
    animation: highlightPulse 2.4s ease-in-out infinite;
}

.hero-highlight-icon {
    font-size: 1.5em;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(0, 132, 255, 0.6));
}

@keyframes highlightPulse {
    0%, 100% { box-shadow: 0 0 18px rgba(0, 132, 255, 0.15); }
    50% { box-shadow: 0 0 30px rgba(0, 132, 255, 0.4); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-highlight { animation: none; }
}

h1 {
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(135deg, #38bdf8 0%, #0084ff 50%, #7d26ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Buttons System */
.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: var(--text-white);
    color: var(--bg-primary);
    border: 1px solid var(--text-white);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-white);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 132, 255, 0.1);
}

.glow-green:hover {
    border-color: var(--accent-green);
    box-shadow: 0 10px 20px rgba(0, 230, 118, 0.15);
}

.arrow-icon {
    transition: var(--transition-smooth);
}

html[lang="ar"] .arrow-icon {
    transform: scaleX(-1);
}

.btn:hover .arrow-icon {
    transform: translateX(5px);
}

html[lang="ar"] .btn:hover .arrow-icon {
    transform: scaleX(-1) translateX(5px);
}

/* Hero Mockup / Graphic */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mockup-wrapper {
    position: relative;
    z-index: 2;
    animation: floatCard 6s ease-in-out infinite;
    max-width: 380px;
    width: 100%;
}

.app-mockup {
    width: 100%;
    height: auto;
    border-radius: 38px;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.6));
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    display: block;
}

.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 132, 255, 0.25) 0%, transparent 70%);
    z-index: -1;
    filter: blur(30px);
    pointer-events: none;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px) rotate(0.5deg); }
    50% { transform: translateY(-15px) rotate(-0.5deg); }
}

/* Stats Bar */
.stats-bar {
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: var(--bg-secondary);
    padding: 50px 24px;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-value {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--text-white);
    background: linear-gradient(135deg, #ffffff 30%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features Section */
.features-section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 18px;
}

.section-header p {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 24px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon.bg-blue {
    background: var(--accent-blue-glow);
    color: #38bdf8;
    border: 1px solid rgba(0, 132, 255, 0.3);
}

.feature-icon.bg-green {
    background: var(--accent-green-glow);
    color: #4ade80;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.feature-icon.bg-purple {
    background: var(--accent-purple-glow);
    color: #c084fc;
    border: 1px solid rgba(125, 38, 255, 0.3);
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Live Signal Engine Section (animated chart + phone) */
.engine-section {
    padding: 40px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.engine-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 48px;
    align-items: center;
}

/* Animated chart panel */
.chart-panel {
    background: linear-gradient(180deg, #0a0e1a 0%, #070a12 100%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 16px 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.chart-pair {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.chart-tf {
    margin-inline-start: 10px;
    font-size: 0.72rem;
    padding: 3px 9px;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-muted);
}

.chart-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 9px #f59e0b;
}

.chart-canvas-wrap {
    position: relative;
    height: 380px;
}

#signalChart,
#harmonicChart {
    width: 100%;
    height: 100%;
    display: block;
}

.signal-card {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    width: 232px;
    background: rgba(8, 12, 22, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px;
    font-family: monospace;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

.signal-card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.signal-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.signal-sym {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 1px;
}

.signal-side {
    background: rgba(239, 83, 80, 0.15);
    color: #ef5350;
    border: 1px solid rgba(239, 83, 80, 0.45);
    padding: 3px 13px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.signal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 9px;
}

.signal-row:last-child { margin-bottom: 0; }
.signal-row b { color: #fff; font-weight: 700; }
.signal-row b.sl { color: #ef5350; }
.signal-row b.tp { color: #26d07c; }

.signal-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 12px 0;
}

/* Harmonic Pattern section */
.harmonic-section {
    padding: 20px 24px 80px;
    max-width: 880px;
    margin: 0 auto;
}

.harmonic-panel {
    margin: 0 auto;
}

.harmonic-panel .chart-canvas-wrap {
    height: 470px;
}

.harmonic-badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(8, 12, 22, 0.92);
    border: 1px solid rgba(38, 208, 124, 0.45);
    border-radius: 10px;
    padding: 9px 15px;
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.harmonic-badge.show { opacity: 1; transform: none; }
.hb-name { font-weight: 700; font-size: 1rem; letter-spacing: 0.5px; }
.hb-dir { font-size: 0.75rem; color: #26d07c; font-weight: 600; }

.harmonic-toast {
    position: absolute;
    bottom: 16px;
    inset-inline-start: 50%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(8, 12, 22, 0.96);
    border: 1px solid rgba(0, 132, 255, 0.45);
    border-radius: 14px;
    padding: 11px 16px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
    max-width: 88%;
    opacity: 0;
    transform: translate(-50%, 22px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

.harmonic-toast.show { opacity: 1; transform: translate(-50%, 0); }
.harmonic-toast .notif-bell { width: 40px; height: 40px; }
.ht-title { font-weight: 700; font-size: 0.92rem; }
.ht-sub { font-size: 0.78rem; color: var(--text-muted); }

.phone-frame {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    background: #05070f;
    border: 10px solid #11141f;
    border-radius: 44px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    padding: 18px 12px;
    position: relative;
}

.phone-frame::before {
    /* top notch */
    content: "";
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.phone-screen {
    padding-top: 18px;
}

.notif-title {
    text-align: center;
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.notif-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 14px 12px;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(14px);
    animation: notifIn 0.5s ease forwards;
}

.notif-card:nth-child(2) { animation-delay: 0.1s; }
.notif-card:nth-child(3) { animation-delay: 0.25s; }
.notif-card:nth-child(4) { animation-delay: 0.4s; }
.notif-card:nth-child(5) { animation-delay: 0.55s; }

@keyframes notifIn {
    to { opacity: 1; transform: translateY(0); }
}

.notif-bell {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-bell svg { width: 22px; height: 22px; }

.notif-bell.red {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.notif-bell.green {
    background: rgba(0, 230, 118, 0.12);
    color: #4ade80;
}

.notif-body { flex: 1; min-width: 0; }

.notif-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.notif-symbol {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.notif-time {
    font-size: 0.7rem;
    color: var(--text-dark);
    white-space: nowrap;
}

.notif-level {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.notif-level.resistance { color: #f87171; }
.notif-level.support { color: #4ade80; }

.notif-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.notif-arrow {
    flex-shrink: 0;
    color: var(--text-dark);
    font-size: 1.4rem;
    line-height: 1;
}

html[lang="ar"] .notif-arrow { transform: scaleX(-1); }

.phone-tabbar {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--glass-border);
}

.phone-tabbar .tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.62rem;
    color: var(--text-dark);
    text-align: center;
}

.phone-tabbar .tab svg { width: 20px; height: 20px; }

.phone-tabbar .tab.active { color: var(--accent-blue); }

/* Notification list inside the phone (chart feeds new ones to the top) */
.notif-list { display: block; }

.notif-new {
    border-color: rgba(0, 132, 255, 0.55) !important;
    box-shadow: 0 0 22px rgba(0, 132, 255, 0.22);
}

/* Bell ring effect on the active tab when a new alert arrives */
.phone-frame.ringing .phone-tabbar .tab.active svg {
    animation: bellRing 0.6s ease;
    transform-origin: 50% 0;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(16deg); }
    40% { transform: rotate(-13deg); }
    60% { transform: rotate(8deg); }
    80% { transform: rotate(-5deg); }
}

/* Engine section responsive */
@media (max-width: 992px) {
    .engine-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        justify-items: center;
    }
    .chart-panel { width: 100%; }
}

@media (max-width: 480px) {
    .chart-canvas-wrap { height: 320px; }
    .signal-card {
        width: auto;
        inset-inline-start: 12px;
        inset-inline-end: 12px;
        top: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .notif-card { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Recommended Broker Section */
.broker-section {
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.broker-card {
    background: radial-gradient(circle at top right, rgba(0, 230, 118, 0.08), rgba(0, 0, 0, 0)), var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
}

.broker-content {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.broker-badge {
    background: var(--accent-green-glow);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: #4ade80;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.broker-card h2 {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 800;
    margin-bottom: 18px;
}

.broker-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Harmonic Validator (TradingView indicator) section */
.validator-section {
    padding: 20px 24px 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.validator-card {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: center;
    background: radial-gradient(circle at top left, rgba(0, 132, 255, 0.10), rgba(0, 0, 0, 0)), var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 48px 46px;
    position: relative;
    overflow: hidden;
}

.validator-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-blue-glow);
    border: 1px solid rgba(0, 132, 255, 0.3);
    color: #38bdf8;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.validator-card h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.validator-content p.lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 26px;
}

.validator-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: grid;
    gap: 14px;
}

.validator-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.98rem;
    line-height: 1.5;
}

.validator-list li svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: #4ade80;
    margin-top: 2px;
}

.validator-cta { display: inline-flex; align-items: center; gap: 10px; }

.glow-blue:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 12px 26px rgba(0, 132, 255, 0.28);
}

.tv-note {
    display: block;
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--text-dark);
}

.validator-visual { position: relative; }

/* TradingView-style frame */
.tv-frame {
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    background: #0a0e1a;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.tv-frame-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.85rem;
}

.tv-frame-title { display: flex; align-items: center; gap: 7px; }
.tv-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #26a69a; box-shadow: 0 0 8px rgba(38, 166, 154, 0.8);
}
.tv-pair { font-weight: 700; color: var(--text-white); }
.tv-meta { color: var(--text-muted); }
.tv-ind {
    color: #38bdf8; font-weight: 600;
    margin-inline-start: auto;
}
.tv-badge {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.5px;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 3px 8px; border-radius: 6px;
}

.validator-chart {
    width: 100%;
    height: auto;
    display: block;
    background: #0a0e1a;
}

.validator-caption {
    margin: 0;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}
.validator-caption strong { color: var(--text-white); }

@media (max-width: 860px) {
    .validator-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 36px 24px;
    }
}

/* Live Signals Data Table Section */
.table-section {
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.table-wrapper {
    overflow-x: auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

html[lang="ar"] .data-table {
    text-align: right;
}

.data-table th, .data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
}

.data-table th {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-table tbody tr {
    transition: var(--transition-smooth);
}

.data-table tbody tr:hover {
    background: var(--glass-hover);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Pagination & Spinner */
.page-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 600;
}
.page-btn:hover:not(:disabled) {
    background: var(--glass-hover);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}
.page-btn.active {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}
.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

.badge-buy, .badge-sell {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
}

.badge-buy {
    background: var(--accent-green-glow);
    color: #4ade80;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.badge-sell {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-active, .status-waiting {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-active::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0084ff;
    box-shadow: 0 0 8px #0084ff;
}

.status-waiting::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

/* Pricing Section */
.pricing-section {
    padding: 60px 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card.premium {
    background: linear-gradient(180deg, rgba(0, 132, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%), var(--bg-secondary);
    border-color: rgba(0, 132, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 132, 255, 0.1);
}

.badge-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0084ff 0%, #38bdf8 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 132, 255, 0.3);
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.pricing-header .price {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.pricing-header .currency {
    font-size: 1.5rem;
    vertical-align: super;
    margin-inline-end: 4px;
    color: var(--text-muted);
}

.pricing-header .period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-inline-start: 6px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text-white);
}

.pricing-features svg {
    width: 20px;
    height: 20px;
    color: #4ade80;
    margin-inline-end: 12px;
    flex-shrink: 0;
}

.btn-full {
    width: 100%;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Advertisement Section */
.ads-section {
    padding: 20px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.ads-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.ad-box {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.ad-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.ad-image {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    display: block;
}

/* Styled CSS placeholder shown until a real ad image is dropped in */
.ad-placeholder {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.ad-placeholder--blue {
    background:
        radial-gradient(circle at 30% 30%, rgba(0, 132, 255, 0.18), transparent 60%),
        var(--bg-secondary);
}

.ad-placeholder--green {
    background:
        radial-gradient(circle at 70% 30%, rgba(0, 230, 118, 0.16), transparent 60%),
        var(--bg-secondary);
}

.ad-label {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-white);
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
}

html[lang="ar"] .ad-label {
    right: auto;
    left: 8px;
}

/* Mobile Responsive Ads */
@media (max-width: 768px) {
    .ads-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .ad-image {
        min-height: 200px;
    }
}

/* FAQ Section */
.faq-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.faq-item {
    background: var(--glass-bg);
    border-left: 3px solid var(--accent-blue);
    padding: 24px 30px;
    border-radius: 0 16px 16px 0;
}

html[lang="ar"] .faq-item {
    border-left: none;
    border-right: 3px solid var(--accent-blue);
    border-radius: 16px 0 0 16px;
}

.faq-item h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: var(--text-muted);
}

/* Footer & Risk Disclosure */
.footer {
    border-top: 1px solid var(--glass-border);
    background: #03050a;
    padding: 60px 24px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.risk-warning {
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.warning-title {
    font-weight: 700;
    color: #f87171;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 8px;
}

.risk-warning p {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .badge {
        margin-bottom: 20px;
    }
    
    .btn-group {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .mockup-wrapper {
        max-width: 320px;
    }
    
    .stats-container {
        gap: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .feature-card {
        align-items: center;
        text-align: center;
    }
    
    .broker-card {
        padding: 40px 30px;
        text-align: center;
    }
    
    .broker-content {
        align-items: center;
        max-width: 100%;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Small phones */
@media (max-width: 600px) {
    .nav-container {
        padding: 14px 18px;
    }

    .logo {
        font-size: 1.15rem;
    }

    .hero-section {
        padding: 120px 18px 60px;
    }

    .features-section,
    .faq-section {
        padding: 70px 18px;
    }

    .stats-bar {
        padding: 36px 18px;
    }

    /* Keep the 3 stats in a row but compact, instead of a tall single column */
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .stat-label {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .broker-card {
        padding: 32px 22px;
        border-radius: 24px;
    }

    /* Make the data table comfortable to scan on narrow screens */
    .table-wrapper {
        padding: 12px;
        border-radius: 18px;
    }

    .data-table th,
    .data-table td {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .section-header {
        margin-bottom: 40px;
    }
}

/* Testimonials / Social Proof */
.testimonials-section {
    padding: 40px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px 28px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-card .stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial-card blockquote {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-white);
    flex-grow: 1;
}

.testimonial-card figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
}

.t-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, #0084ff, #7d26ff);
}

.t-name {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    color: var(--text-white);
}

.t-role {
    font-weight: 500;
    font-size: 0.82rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 560px;
        margin: 0 auto;
    }
}

/* Footer columns */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 10px 0 40px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 28px;
}

.footer-col h5 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-col a {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.92rem;
    margin-bottom: 10px;
    transition: color 0.25s ease;
}

.footer-col a:hover {
    color: var(--accent-blue);
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-dark);
    max-width: 320px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 420px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Legal pages (Privacy / Terms) */
.legal-section {
    max-width: 820px;
    margin: 0 auto;
    padding: 150px 24px 80px;
}

.legal-section .legal-head {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 24px;
}

.legal-section h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 10px;
}

.legal-updated {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 36px 0 12px;
    color: var(--text-white);
}

.legal-section p,
.legal-section li {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 12px;
}

.legal-section ul {
    padding-inline-start: 22px;
    margin-bottom: 12px;
}

.legal-section a {
    color: var(--accent-blue);
    text-decoration: none;
}

.legal-section a:hover { text-decoration: underline; }

.legal-section .risk-warning {
    margin-top: 16px;
}
