/* ═══════════════════════════════════════════════════════════ */
/*  LANDING PAGE + AUTH & PAYMENT MODALS                      */
/* ═══════════════════════════════════════════════════════════ */

.landing-page {
    min-height: 100vh;
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: auto;
}

/* Beautiful global scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

html { scroll-behavior: smooth; }

/* Header */
.landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: none;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.landing-logo {
    font-size: 1.40625rem; /* -25% от текущего */
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-sans);
}

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

.landing-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.landing-nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.landing-nav-link:hover {
    color: var(--text-main);
}

/* Кнопка языка (планетка) */
.landing-lang-wrap {
    position: relative;
    margin-right: 0;
}
.landing-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.landing-lang-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
}
.landing-lang-wrap.dropdown-open .landing-lang-btn {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
}
.landing-lang-icon {
    width: 20px;
    height: 20px;
}
.landing-lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    min-width: 160px;
    background: var(--bg-panel);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    padding: 8px 0;
    display: none;
    z-index: 201;
}
.landing-lang-wrap.dropdown-open .landing-lang-dropdown {
    display: block;
    animation: dropdownIn 0.2s ease;
}
.landing-lang-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    padding: 6px 12px 8px;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 4px;
}
.landing-lang-option {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 0.88rem;
    color: var(--text-main);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-sans);
    transition: background 0.2s;
}
.landing-lang-option:hover {
    background: rgba(255, 255, 255, 0.06);
}
.landing-lang-option.active {
    color: var(--primary);
}

.landing-auth-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: -8px;
}

/* Prevent auth UI flicker until Firebase resolves session */
.auth-pending .landing-auth-wrap #btn-login,
.auth-pending .landing-auth-wrap #landing-account-wrap{
    display: none !important;
}

/* No page flash while auth/access are loading */
.boot-pending body{
    opacity: 0 !important;
    pointer-events: none !important;
}
body{
    transition: opacity 160ms ease;
}

/* Prevent demo/buy flicker until purchased is resolved */
.access-pending a[href*="demo=1"],
.access-pending #btn-pricing-lifetime,
.access-pending a[href="#pricing"]{
    visibility: hidden !important;
}

.landing-account-wrap {
    display: flex;
    align-items: center;
    position: relative;
}

.landing-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    min-width: 220px; /* fixed width to avoid layout shift */
    justify-content: flex-start;
}

.landing-account-icon {
    width: 18px;
    height: 18px;
}

#account-label{
    display: inline-block;
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.landing-account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    min-width: 180px;
    background: var(--bg-panel);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    padding: 8px 0;
    display: none;
    z-index: 200;
}

.landing-account-wrap.dropdown-open .landing-account-dropdown {
    display: block;
    animation: dropdownIn 0.2s ease;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.landing-account-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    font-size: 0.88rem;
    color: var(--text-main);
    text-decoration: none;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background 0.2s;
}
.landing-account-item-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-muted);
}
.landing-account-item:hover .landing-account-item-icon {
    color: var(--primary);
}
.landing-account-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.landing-account-logout {
    color: var(--text-main);
    border-top: 1px solid var(--card-border);
    margin-top: 4px;
    padding-top: 12px;
}
.landing-account-logout .landing-account-icon-exit {
    color: var(--text-main);
}
.landing-account-logout:hover {
    color: var(--accent);
}
.landing-account-logout:hover .landing-account-icon-exit {
    color: var(--accent);
}

/* Buttons */
.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    color: inherit;
}

.landing-btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--card-border);
}

.landing-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.landing-btn-demo {
    background: rgba(var(--warn-rgb), 0.12);
    color: var(--warn);
    border: 1px solid rgba(var(--warn-rgb), 0.3);
}

.landing-btn-demo:hover {
    background: rgba(var(--warn-rgb), 0.2);
    box-shadow: 0 0 20px rgba(var(--warn-rgb), 0.15);
}

.landing-btn-primary {
    background: rgba(0, 230, 118, 0.2);
    color: var(--primary);
    border: 1px solid rgba(0, 230, 118, 0.4);
}

.landing-btn-primary:hover {
    background: rgba(0, 230, 118, 0.3);
    box-shadow: 0 0 24px rgba(0, 230, 118, 0.2);
}

.landing-btn-block {
    width: 100%;
}

.btn-icon {
    font-size: 1.1rem;
}

/* Section labels & titles */
.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 40px;
    max-width: 560px;
}

/* Hero */
.landing-main {
    position: relative;
}

.landing-hero {
    position: relative;
    text-align: center;
    padding: 180px 24px 100px; /* +100px вниз */
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width:  min(600px, 90vw);
    height: 500px;
    background: radial-gradient(ellipse, rgba(0, 230, 118, 0.08) 0%, transparent 65%);
    animation: greenGlowDrift 10.5s ease-in-out infinite;
    will-change: transform;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
    overflow: hidden;
}

/* Shimmer that highlights grid LINES (not the whole background) */
.hero-grid::before,
.hero-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* brighter copy of the same grid */
    background-image:
        linear-gradient(rgba(255,255,255,0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.11) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.85;
    mix-blend-mode: screen;
    /* show it only inside a moving light band */
    -webkit-mask-image: linear-gradient(90deg,
        transparent 0%,
        rgba(0,0,0,0) 38%,
        rgba(0,0,0,1) 50%,
        rgba(0,0,0,0) 62%,
        transparent 100%);
    mask-image: linear-gradient(90deg,
        transparent 0%,
        rgba(0,0,0,0) 38%,
        rgba(0,0,0,1) 50%,
        rgba(0,0,0,0) 62%,
        transparent 100%);
    -webkit-mask-size: 240% 100%;
    mask-size: 240% 100%;
    -webkit-mask-position: 0% 50%;
    mask-position: 0% 50%;
}

.hero-grid::after {
    animation: gridLineShimmer 21s ease-in-out infinite;
}

/* second pass: slightly different width + speed for "organic" feel */
.hero-grid::before {
    opacity: 0.6;
    -webkit-mask-image: linear-gradient(90deg,
        transparent 0%,
        rgba(0,0,0,0) 34%,
        rgba(0,0,0,1) 50%,
        rgba(0,0,0,0) 66%,
        transparent 100%);
    mask-image: linear-gradient(90deg,
        transparent 0%,
        rgba(0,0,0,0) 34%,
        rgba(0,0,0,1) 50%,
        rgba(0,0,0,0) 66%,
        transparent 100%);
    animation: gridLineShimmer 17.6s ease-in-out infinite;
    animation-delay: -4.6s; /* offset phase */
}

@keyframes gridLineShimmer {
    0% { -webkit-mask-position: 0% 50%; mask-position: 0% 50%; opacity: 0; }
    8% { opacity: 0.75; }
    48% { opacity: 0.9; }
    78% { opacity: 0.75; }
    86% { opacity: 0; }
    100% { -webkit-mask-position: 100% 50%; mask-position: 100% 50%; opacity: 0; } /* pause at the end */
}

@media (prefers-reduced-motion: reduce) {
    .hero-grid::before,
    .hero-grid::after {
        animation: none;
        opacity: 0;
    }
}

.landing-hero .section-label {
    margin-bottom: 16px;
}

.landing-title {
    font-size: clamp(2.25rem, 5.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    position: relative;
    letter-spacing: -0.02em;
}

.text-primary {
    color: var(--primary);
    text-shadow: 0 0 40px rgba(0, 230, 118, 0.25);
}

.landing-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.6;
    max-width: 480px;
}

.landing-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 24px;
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.hero-trust-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-dim);
    opacity: 0.6;
}

.hero-trust-item {
    font-weight: 500;
}

.hero-slogan .text-primary {
    /* match the rest of the hero title; only color should differ */
    font-weight: inherit;
    letter-spacing: inherit;
    text-shadow: none;
    font-synthesis: none;
}

/* Slogan strip (второй слоган) */
.slogan-strip {
    padding: 48px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.slogan-strip-text {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 600;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: -0.01em;
}

.slogan-strip-accent {
    color: var(--primary);
}

/* Полоска на всю ширину (над метриками) */
.slogan-strip-full {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}
.slogan-strip-full .slogan-strip-text {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Metrics section (все нужные метрики) */
.landing-metrics .section-title {
    max-width: 440px;
}

.metrics-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.metrics-card {
    padding: 28px 24px;
    background: rgba(22, 23, 28, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
    transform: translateY(0);
}

.metrics-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
    background: rgba(22, 23, 28, 0.68);
}

.metrics-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.metrics-card-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.metrics-card:hover .metrics-card-icon {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.metrics-card:hover .metrics-card-icon svg {
    transform: rotate(-6deg) scale(1.08);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
}

.metrics-card:hover .metrics-icon-chart svg {
    filter: drop-shadow(0 0 12px rgba(96, 165, 250, 0.25));
}
.metrics-card:hover .metrics-icon-bolt svg {
    filter: drop-shadow(0 0 12px rgba(251, 146, 60, 0.25));
}
.metrics-card:hover .metrics-icon-target svg {
    filter: drop-shadow(0 0 12px rgba(236, 72, 153, 0.25));
}

.metrics-icon-chart {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
}

.metrics-icon-bolt {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
}

.metrics-icon-target {
    background: rgba(236, 72, 153, 0.12);
    color: #ec4899;
}

.metrics-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.metrics-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}

@media (max-width: 900px) {
    .metrics-cards {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .metrics-card,
    .metrics-card-icon,
    .metrics-card-icon svg {
        transition: none !important;
    }
    .metrics-card:hover {
        transform: none;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    }
    .metrics-card:hover .metrics-card-icon,
    .metrics-card:hover .metrics-card-icon svg {
        transform: none;
        filter: none;
        box-shadow: none;
    }
}

/* Lifetime pricing card */
.pricing-lifetime-wrap {
    max-width: 400px;
    margin: 0 auto 24px;
}

.pricing-lifetime-card {
    padding: 32px 28px;
    background: var(--bg-panel);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    isolation: isolate;
}

/* Pricing card texture (like hero: glow + subtle grid) */
.pricing-lifetime-card::before {
    content: '';
    position: absolute;
    inset: -30%;
    background: radial-gradient(ellipse, rgba(0, 230, 118, 0.10) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0.9;
    animation: greenGlowDriftCard 12.5s ease-in-out infinite;
    animation-delay: -2.1s;
    will-change: transform;
}

.pricing-lifetime-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, black 15%, transparent 72%);
    pointer-events: none;
    opacity: 0.35;
}

/* Keep card content above texture */
.pricing-lifetime-card > * {
    position: relative;
    z-index: 1;
}

.pricing-lifetime-card-inner {
    position: relative;
    z-index: 1;
}

/* Shimmer on full pricing card (grid lines only) */
.pricing-lifetime-shimmer {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, black 15%, transparent 72%);
    mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, black 15%, transparent 72%);
}

.pricing-lifetime-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.32;
    mix-blend-mode: screen;
    -webkit-mask-image: linear-gradient(90deg,
        transparent 0%,
        rgba(0,0,0,0) 34%,
        rgba(0,0,0,1) 50%,
        rgba(0,0,0,0) 66%,
        transparent 100%);
    mask-image: linear-gradient(90deg,
        transparent 0%,
        rgba(0,0,0,0) 34%,
        rgba(0,0,0,1) 50%,
        rgba(0,0,0,0) 66%,
        transparent 100%);
    -webkit-mask-size: 260% 100%;
    mask-size: 260% 100%;
    -webkit-mask-position: 0% 50%;
    mask-position: 0% 50%;
    animation: pricingGridShimmer 6.4s linear infinite;
}

@keyframes pricingGridShimmer {
    0% { -webkit-mask-position: 0% 50%; mask-position: 0% 50%; opacity: 0; }
    8% { opacity: 0.65; }
    45% { opacity: 0.8; }
    78% { opacity: 0.65; }
    86% { opacity: 0; }
    100% { -webkit-mask-position: 100% 50%; mask-position: 100% 50%; opacity: 0; } /* pause at the end */
}

@media (prefers-reduced-motion: reduce) {
    .pricing-lifetime-shimmer::after {
        animation: none;
        opacity: 0;
    }
}

.pricing-lifetime-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.pricing-lifetime-price {
    font-family: var(--font-mono);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.pricing-lifetime-forever {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-lifetime-list {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
}

.pricing-lifetime-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.pricing-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    background: rgba(0, 230, 118, 0.2);
    border: 1px solid var(--primary);
    border-radius: 4px;
    position: relative;
}

.pricing-check::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid var(--primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.landing-btn-crypto {
    font-weight: 700;
}

.pricing-lifetime-methods {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 14px;
    text-align: center;
}

/* Payment modal — Lifetime */
.payment-modal-lifetime .payment-lifetime-list {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
}

.payment-modal-lifetime .payment-lifetime-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Sections common */
.landing-section {
    padding: 80px 24px 100px;
    max-width: 1100px;
    margin: 0 auto;
}

.landing-section .section-title {
    margin-bottom: 48px;
}

/* Terminal UI preview */
.landing-preview {
    padding-top: 40px;
}

.landing-preview .section-title {
    max-width: 420px;
}

.terminal-preview-wrap {
    margin-bottom: 24px;
}

.terminal-preview-browser {
    background: var(--bg-panel);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.terminal-preview-url {
    padding: 10px 16px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--card-border);
}

.terminal-preview-frame {
    background: var(--bg-dark);
}

.terminal-preview-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--card-border);
    flex-wrap: wrap;
    font-size: 0.7rem;
}

.tp-logo {
    font-weight: 700;
    margin-right: 6px;
}

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

.tp-tabs {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px;
    border-radius: 6px;
}

.tp-tab {
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-muted);
}

.tp-tab.active {
    background: rgba(0, 230, 118, 0.15);
    color: var(--primary);
}

.tp-tab.tp-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    min-width: 28px;
}

.tp-theme-ico {
    width: 14px;
    height: 14px;
    display: block;
}

.tp-search {
    flex: 1;
    min-width: 80px;
    color: var(--text-dim);
    font-size: 0.65rem;
}

.tp-demo {
    color: var(--primary);
    font-weight: 600;
}

.tp-balance {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.72rem;
}

.terminal-preview-layout {
    display: grid;
    grid-template-columns: 200px 1fr 220px;
    height: 380px;
}

.tp-sidebar {
    background: var(--bg-panel);
    border-right: 1px solid var(--card-border);
    padding: 8px 0;
    height: 100%;
    overflow-y: auto;
}

.tp-chart,
.tp-ai {
    height: 100%;
}

.tp-sidebar-head {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 6px;
    padding: 6px 10px 8px;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tp-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 6px;
    align-items: center;
    padding: 6px 10px;
    font-size: 0.68rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
}

.tp-row.active {
    background: rgba(0, 230, 118, 0.08);
    border-left: 2px solid var(--primary);
    color: var(--text-main);
}

.tp-star {
    color: var(--text-dim);
    font-size: 0.6rem;
}

.tp-row.active .tp-star {
    color: var(--warn);
}

.tp-up { color: var(--primary); font-weight: 600; }
.tp-down { color: var(--accent); font-weight: 600; }

.tp-chart {
    position: relative;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    min-height: 200px;
}

.tp-chart-label {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    z-index: 2;
}

.tp-chart-svg-wrap {
    flex: 1;
    min-height: 140px;
    width: 100%;
    margin-top: 8px;
}

.tp-chart-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.tp-chart-line {
    filter: drop-shadow(0 0 2px rgba(0, 230, 118, 0.2));
    opacity: 0.5;
}


/* The mask rect slides L→R across the chart */
.tp-comet-reveal {
    animation: tpReveal 4.5s linear infinite;
    will-change: transform;
}

@keyframes tpReveal {
    0%   { transform: translateX(0); }
    100% { transform: translateX(460px); }
}

@media (prefers-reduced-motion: reduce) {
    .tp-comet-reveal {
        animation: none;
    }
}

.tp-ai {
    background: var(--bg-panel);
    border-left: 1px solid var(--card-border);
    padding: 10px 10px;
    overflow: hidden;
}

.tp-ai-head-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.tp-ai-head {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-main);
}
.tp-ai-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--primary);
    animation: tp-pulse-dot 2s infinite;
}
@keyframes tp-pulse-dot {
    0% { transform: scale(0.95); opacity: 0.6; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
    70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 4px rgba(0, 230, 118, 0); }
    100% { transform: scale(0.95); opacity: 0.6; }
}

.tp-ai-symbol {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.tp-ai-direction {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tp-ai-direction .tp-arrow {
    font-size: 1rem;
    line-height: 1;
}

.tp-ai-up {
    color: var(--primary);
}

.tp-ai-down {
    color: var(--accent);
}

.tp-ai-confidence {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-family: var(--font-mono);
}

.tp-ai-confidence strong {
    color: var(--text-main);
}

.tp-ai-hz {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 0.62rem;
    font-family: var(--font-mono);
}

.tp-ai-hz span {
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.tp-ai-hz .hz-up {
    color: var(--primary);
    background: rgba(0, 230, 118, 0.1);
}

.tp-ai-hz .hz-down {
    color: var(--accent);
    background: rgba(255, 51, 102, 0.1);
}

.tp-ai-hz .hz-side {
    color: var(--warn);
    background: rgba(var(--warn-rgb), 0.08);
}

/* Долгосрочный прогноз — мини-меню со стрелками */
.tp-ai-longterm {
    margin-bottom: 6px;
}

.tp-longterm-title {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.tp-longterm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.tp-longterm-item {
    text-align: center;
    padding: 6px 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.tp-longterm-item.tp-lt-up {
    border-color: rgba(0, 230, 118, 0.4);
    background: rgba(0, 230, 118, 0.06);
}

.tp-longterm-item.tp-lt-down {
    border-color: rgba(255, 51, 102, 0.4);
    background: rgba(255, 51, 102, 0.06);
}

.tp-lt-label {
    font-size: 0.68rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.tp-lt-arrow {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
}

.tp-lt-up .tp-lt-arrow {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

.tp-lt-down .tp-lt-arrow {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

.tp-lt-pct {
    font-size: 0.66rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
}

.tp-lt-rsi {
    font-size: 0.56rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    opacity: 0.9;
}

.tp-ai-indicators {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.tp-ai-indicators .ind {
    font-size: 0.62rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
}

.tp-ai-indicators .ind.up {
    color: var(--primary);
    background: rgba(0, 230, 118, 0.1);
}

.tp-ai-indicators .ind.down {
    color: var(--accent);
    background: rgba(255, 51, 102, 0.1);
}

.tp-ai-indicators .ind.side {
    color: var(--warn);
}

.tp-ai-text {
    font-size: 0.65rem;
    color: var(--text-dim);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-cta-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.preview-cta-hint a {
    color: var(--primary);
    text-decoration: none;
}

.preview-cta-hint a:hover {
    text-decoration: underline;
}

/* Powered by TradingView strip */
.tv-powered {
    padding: 0 24px 16px;
    max-width: 1100px;
    margin: -34px auto 0;
}

.tv-powered-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.175em; /* в 2 раза меньше */
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(22, 23, 28, 0.55);
    border: 1px solid var(--card-border);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    width: 100%;
    box-sizing: border-box;
    overflow: visible; /* чтобы увеличенный SVG не обрезался */
}

.tv-powered-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.175em; /* такой же пробел между текстом и лого */
    transform: none;
}

.tv-powered-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.02em;
    text-align: center;
}

.tv-powered-brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    justify-content: center;
    line-height: 0;
    margin-left: 0; /* чтобы весь блок был ровно по центру */
}

.tv-powered-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.08));
    margin-left: 0;
    transform: none;
    transform-origin: center;
    translate: 0 0;
}

@media (max-width: 600px) {
    .tv-powered {
        margin-top: -26px;
    }
    .tv-powered-inner {
        padding: 12px 14px;
        border-radius: 12px;
    }
    .tv-powered-logo {
        height: 24px;
    }
}

@media (max-width: 700px) {
    .terminal-preview-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .tp-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--card-border);
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
        padding: 8px;
    }
    .tp-sidebar-head { display: none; }
    .tp-row {
        grid-column: span 1;
        padding: 8px 6px;
        border-radius: 6px;
        border-bottom: none;
        border-left: none;
        text-align: center;
        font-size: 0.65rem;
    }
    .tp-row .tp-star { display: none; }
    .tp-row span:nth-child(3) { display: none; }
    .tp-chart {
        min-height: 180px;
    }
    .tp-sidebar {
        max-height: none;
    }
    .tp-ai {
        border-left: none;
        border-top: 1px solid var(--card-border);
    }
}

/* How it works */
.landing-how .section-title {
    max-width: 400px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.step {
    padding: 0;
    position: relative;
}

.step-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(0, 230, 118, 0.65);
    opacity: 0.35;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 12px;
    text-shadow: none;
    animation: stepNumPulse 12s ease-in-out infinite;
    animation-fill-mode: both;
}

/* Sequential glow for step numbers (01→02→03→04) */
@keyframes stepNumPulse {
    0%, 14% {
        opacity: 0.35;
        color: rgba(0, 230, 118, 0.65);
        text-shadow: none;
    }
    /* fast ignite, longer hold (fits 4-step cycle without overlap) */
    18% {
        opacity: 0.35;
        color: rgba(0, 230, 118, 0.65);
        text-shadow: none;
    }
    20%, 45% {
        opacity: 1;
        color: var(--primary);
        text-shadow: 0 0 14px rgba(0, 230, 118, 0.35);
    }
    50%, 100% {
        opacity: 0.35;
        color: rgba(0, 230, 118, 0.65);
        text-shadow: none;
    }
}

.steps .step:nth-child(1) .step-num { animation-delay: 0s; }
.steps .step:nth-child(2) .step-num { animation-delay: 3s; }
.steps .step:nth-child(3) .step-num { animation-delay: 6s; }
.steps .step:nth-child(4) .step-num { animation-delay: 9s; }

@media (prefers-reduced-motion: reduce) {
    .step-num {
        animation: none;
        opacity: 0.8;
        text-shadow: none;
    }
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 8px;
    animation: stepTitlePulse 12s ease-in-out infinite;
    animation-fill-mode: both;
}

.step-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@keyframes stepTitlePulse {
    0%, 18% {
        color: rgba(255, 255, 255, 0.62);
    }
    /* fast ignite */
    22% {
        color: rgba(255, 255, 255, 0.98);
    }
    /* hold to match green number timing (with small delay via animation-delay) */
    47% {
        color: rgba(255, 255, 255, 0.98);
    }
    /* fast fade */
    52% {
        color: rgba(255, 255, 255, 0.62);
    }
    100% {
        color: rgba(255, 255, 255, 0.62);
    }
}

/* Slight inertia vs green step number */
.steps .step:nth-child(1) .step-title { animation-delay: 0.12s; }
.steps .step:nth-child(2) .step-title { animation-delay: 3.12s; }
.steps .step:nth-child(3) .step-title { animation-delay: 6.12s; }
.steps .step:nth-child(4) .step-title { animation-delay: 9.12s; }

@media (prefers-reduced-motion: reduce) {
    .step-title {
        animation: none;
        color: var(--text-main);
    }
}

@media (max-width: 900px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Features */
.landing-features {
    padding-top: 40px;
}

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

.feature-card {
    padding: 28px 24px;
    background: rgba(22, 23, 28, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: rgba(0, 230, 118, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

.feature-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-icon-svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Product: one interface */
.landing-product {
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.product-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-block {
    padding: 32px 24px;
    background: var(--bg-panel);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    position: relative;
    transition: border-color 0.2s;
}

.product-block:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.product-block-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.7;
    display: block;
    margin-bottom: 14px;
}

.product-block h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.product-block p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

@media (max-width: 768px) {
    .product-blocks {
        grid-template-columns: 1fr;
    }
}

/* Pricing */
.landing-pricing .section-label,
.landing-pricing .section-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.landing-pricing .section-title {
    max-width: 360px;
}
.landing-pricing .pricing-note {
    text-align: center;
}

.pricing-currency {
    font-size: 1.2rem;
    opacity: 0.9;
}

.pricing-note {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.pricing-note a {
    color: var(--primary);
    text-decoration: none;
}

.pricing-note a:hover {
    text-decoration: underline;
}

@media (max-width: 500px) {
    .pricing-cards {
        grid-template-columns: 1fr;
    }
}

/* Final CTA */
.landing-cta-section {
    position: relative;
    overflow: visible; /* allow background to bleed upward */
    text-align: center;
    padding: 100px 24px 120px;
}

.landing-cta-section > *:not(.cta-bg) {
    position: relative;
    z-index: 1;
}

.landing-cta-section .cta-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: -90px;  /* let it go above previous block */
    bottom: 0;
    pointer-events: none;
    overflow: visible;
}

.landing-cta-section .cta-bg .hero-grid {
    /* keep the grid itself clipped inside the CTA area */
    overflow: hidden;
}

.landing-cta-section .cta-bg .hero-glow {
    top: -5%;
    height: 520px;
    width: min(720px, 92vw);
    background: radial-gradient(ellipse, rgba(0, 230, 118, 0.08) 0%, transparent 65%);
    animation-duration: 13.2s;
    animation-delay: -4.4s;
}

@keyframes greenGlowDrift {
    0% {
        transform: translateX(-50%) translate3d(-10px, 6px, 0) scale(1);
    }
    50% {
        transform: translateX(-50%) translate3d(10px, -8px, 0) scale(1.02);
    }
    100% {
        transform: translateX(-50%) translate3d(-10px, 6px, 0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-glow,
    .pricing-lifetime-card::before {
        animation: none !important;
    }
}

@keyframes greenGlowDriftCard {
    0% { transform: translate3d(-8px, 6px, 0) scale(1); }
    35% { transform: translate3d(10px, -6px, 0) scale(1.015); }
    70% { transform: translate3d(-4px, -10px, 0) scale(1.01); }
    100% { transform: translate3d(-8px, 6px, 0) scale(1); }
}

.landing-cta-section .cta-bg .hero-grid {
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

.cta-section-title {
    margin-bottom: 12px;
    max-width: none;
}

.cta-section-sub {
    margin-bottom: 32px;
    margin-left: auto;
    margin-right: auto;
    max-width: 480px;
    text-align: center;
}

/* Footer */
.landing-footer {
    border-top: 1px solid var(--card-border);
    padding: 32px 24px 40px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-dim);
    width: 100%;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-copy {
        text-align: center;
    }
}

/* ═══ MODALS ═══ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.visible {
    display: flex;
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--bg-panel);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 28px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Auth form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: -8px;
}

.input-field {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.2s;
}

.input-field::placeholder {
    color: var(--text-dim);
}

.input-field:focus {
    border-color: rgba(0, 230, 118, 0.5);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border);
}

.auth-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.auth-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.auth-social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.auth-social-btn.google:hover { border-color: rgba(234, 67, 53, 0.4); color: #ea4335; }
.auth-social-btn.facebook:hover { border-color: rgba(24, 119, 242, 0.4); color: #1877f2; }
.auth-social-btn.x:hover { border-color: rgba(255, 255, 255, 0.5); color: #fff; }

.auth-tabs{
    display:flex;
    gap:10px;
    margin: 0 0 14px;
}
.auth-tab{
    flex:1;
    padding:10px 12px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    color: var(--text-dim);
    font-size: 0.86rem;
    font-weight: 700;
    cursor:pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
}
.auth-tab:hover{
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 230, 118, 0.35);
    color: var(--text-main);
}
.auth-tab.active{
    border-color: rgba(0, 230, 118, 0.55);
    background: rgba(0, 230, 118, 0.10);
    color: var(--text-main);
}

.auth-error{
    margin-top: -6px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 74, 110, 0.35);
    background: rgba(255, 74, 110, 0.10);
    color: rgba(255, 180, 195, 0.95);
    font-size: 0.86rem;
    line-height: 1.35;
}

.auth-footer-note {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 20px;
    text-align: center;
}

/* Payment modal */
.payment-plans {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}



.payment-note {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 14px;
    text-align: center;
}

/* Demo expired toast */
.demo-expired-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    padding: 14px 20px 14px 20px;
    background: var(--bg-panel);
    border: 1px solid rgba(var(--warn-rgb), 0.3);
    border-radius: 12px;
    font-size: 0.88rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1100;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.toast-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.2s;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

@media (max-width: 600px) {
    .landing-cta {
        flex-direction: column;
    }
    .landing-cta .landing-btn {
        width: 100%;
    }
    .landing-header {
        padding: 16px;
    }
    .landing-hero {
        padding: 150px 20px 70px; /* +100px вниз */
        min-height: auto;
    }
    .landing-section {
        padding: 50px 20px 70px;
    }
    .landing-cta-section {
        padding: 60px 20px 80px;
    }
}/* Terms Modal & Legal Styles */
.terms-overlay {
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.7);
}

/* Inherit all aesthetic properties from .modal (background, border, radius, shadow) */
.terms-modal {
    max-width: 860px;
    width: 95%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terms-content-wrap {
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    padding-right: 16px;
    margin-top: 20px; /* Push scroll area fully below the close button */
}

.terms-content-wrap::-webkit-scrollbar {
    width: 6px;
}

.terms-content-wrap::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.terms-title {
    margin-bottom: 32px;
    font-size: 1.5rem;
    font-weight: 700;
}

.terms-section {
    margin-bottom: 24px;
}

.terms-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}

.terms-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.warning-section {
    padding: 16px 20px;
    background: rgba(255, 171, 0, 0.05); 
    border-left: 3px solid var(--warn);
    border-radius: 8px; 
    margin-top: 16px;
    margin-bottom: 32px;
}

.warning-section h3 {
    color: var(--warn);
}

/* Link styles */
.auth-terms-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border-bottom: none; /* Removed underline */
    transition: all 0.2s ease;
}

.auth-terms-link:hover {
    color: var(--primary);
}

#btn-terms-footer {
    transition: color 0.2s ease;
}

#btn-terms-footer:hover {
    color: var(--text-main);
}

/* ═══ Landing light theme (uses app.css html[data-theme="light"] variables) ═══ */
.landing-nav .landing-theme-tabs {
    flex-shrink: 0;
}

html[data-theme="light"] {
    scrollbar-color: rgba(15, 23, 42, 0.2) transparent;
}
html[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.15);
}
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.28);
}

html[data-theme="light"] .landing-lang-btn,
html[data-theme="light"] .landing-btn-ghost {
    background: rgba(15, 23, 42, 0.04);
    border-color: var(--card-border);
}
html[data-theme="light"] .landing-lang-btn:hover,
html[data-theme="light"] .landing-lang-wrap.dropdown-open .landing-lang-btn {
    background: rgba(15, 23, 42, 0.07);
    border-color: rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .landing-lang-dropdown,
html[data-theme="light"] .landing-account-dropdown {
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .landing-lang-option:hover {
    background: rgba(15, 23, 42, 0.05);
}
html[data-theme="light"] .landing-account-item:hover {
    background: rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .landing-nav .topbar-tabs {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.1);
}
html[data-theme="light"] .landing-nav .topbar-tabs::before {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .landing-btn-primary {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.35);
}
html[data-theme="light"] .landing-btn-primary:hover {
    background: rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.12);
}

html[data-theme="light"] .hero-glow {
    background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.14) 0%, transparent 65%);
}
html[data-theme="light"] .landing-cta-section .cta-bg .hero-glow {
    background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.12) 0%, transparent 65%);
}
html[data-theme="light"] .hero-grid {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
}
html[data-theme="light"] .hero-grid::before,
html[data-theme="light"] .hero-grid::after {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.1) 1px, transparent 1px);
    mix-blend-mode: multiply;
    opacity: 0.55;
}

html[data-theme="light"] .text-primary {
    text-shadow: 0 0 32px rgba(var(--primary-rgb), 0.2);
}

html[data-theme="light"] .slogan-strip {
    background: rgba(15, 23, 42, 0.03);
}

html[data-theme="light"] .terminal-preview-browser {
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .terminal-preview-url {
    background: #f1f5f9;
}
html[data-theme="light"] .tp-tabs {
    background: rgba(15, 23, 42, 0.05);
}
html[data-theme="light"] .tp-tab.active {
    background: rgba(var(--primary-rgb), 0.12);
}
html[data-theme="light"] .tp-row {
    border-bottom-color: rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .tp-row.active {
    background: rgba(var(--primary-rgb), 0.08);
}
html[data-theme="light"] .tp-ai-hz span {
    background: rgba(15, 23, 42, 0.05);
}
html[data-theme="light"] .tp-ai-hz .hz-up {
    background: rgba(var(--primary-rgb), 0.1);
}
html[data-theme="light"] .tp-ai-hz .hz-down {
    background: rgba(244, 63, 94, 0.1);
}
html[data-theme="light"] .tp-longterm-item {
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(15, 23, 42, 0.03);
}
html[data-theme="light"] .tp-longterm-item.tp-lt-up {
    border-color: rgba(var(--primary-rgb), 0.35);
    background: rgba(var(--primary-rgb), 0.06);
}
html[data-theme="light"] .tp-longterm-item.tp-lt-down {
    border-color: rgba(244, 63, 94, 0.35);
    background: rgba(244, 63, 94, 0.06);
}
html[data-theme="light"] .tp-lt-up .tp-lt-arrow {
    text-shadow: none;
}
html[data-theme="light"] .tp-lt-down .tp-lt-arrow {
    text-shadow: none;
}
html[data-theme="light"] .tp-ai-indicators .ind {
    background: rgba(15, 23, 42, 0.05);
}
html[data-theme="light"] .tp-ai-indicators .ind.up {
    background: rgba(var(--primary-rgb), 0.1);
}
html[data-theme="light"] .tp-ai-indicators .ind.down {
    background: rgba(244, 63, 94, 0.1);
}
html[data-theme="light"] .tp-chart-svg > rect {
    fill: rgba(15, 23, 42, 0.04) !important;
}
html[data-theme="light"] .tp-chart-svg line {
    stroke: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .tv-powered-inner {
    background: #f8fafc;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .tv-powered-logo {
    filter: none;
}

html[data-theme="light"] .metrics-card {
    background: #f8fafc;
    border-color: var(--card-border);
}
html[data-theme="light"] .metrics-card:hover {
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
    background: #ffffff;
}
html[data-theme="light"] .metrics-card:hover .metrics-card-icon {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}
html[data-theme="light"] .metrics-card:hover .metrics-card-icon svg {
    filter: none;
}

html[data-theme="light"] .pricing-lifetime-card {
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
}
html[data-theme="light"] .pricing-lifetime-card::before {
    background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.12) 0%, transparent 60%);
}
html[data-theme="light"] .pricing-lifetime-card::after {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
}

html[data-theme="light"] .product-block:hover {
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .modal-overlay {
    background: rgba(15, 23, 42, 0.45);
}
html[data-theme="light"] .terms-overlay {
    background: rgba(15, 23, 42, 0.45);
}
html[data-theme="light"] .modal {
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.14);
}
html[data-theme="light"] .modal-close {
    background: rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .modal-close:hover {
    background: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .input-field {
    background: #f8fafc;
    border-color: var(--card-border);
}
html[data-theme="light"] .input-field:focus {
    border-color: rgba(var(--primary-rgb), 0.45);
}

html[data-theme="light"] .auth-tab {
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(15, 23, 42, 0.03);
}
html[data-theme="light"] .auth-tab:hover {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(var(--primary-rgb), 0.25);
}
html[data-theme="light"] .auth-tab.active {
    border-color: rgba(var(--primary-rgb), 0.45);
    background: rgba(var(--primary-rgb), 0.08);
}

html[data-theme="light"] .auth-social-btn {
    background: #f8fafc;
    border-color: var(--card-border);
}
html[data-theme="light"] .auth-social-btn:hover {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.15);
}

html[data-theme="light"] .auth-error {
    border-color: rgba(244, 63, 94, 0.35);
    background: rgba(244, 63, 94, 0.08);
    color: #b91c1c;
}

html[data-theme="light"] .auth-terms-link {
    color: var(--primary);
}
html[data-theme="light"] .auth-terms-link:hover {
    color: var(--primary-deep);
}

html[data-theme="light"] .demo-expired-toast {
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .toast-close {
    background: rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .toast-close:hover {
    background: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .footer-copy {
    border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .terms-content-wrap {
    scrollbar-color: rgba(15, 23, 42, 0.2) transparent;
}
html[data-theme="light"] .terms-content-wrap::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.15);
}

html[data-theme="light"] .step-num {
    animation: none;
    opacity: 0.9;
    color: rgba(var(--primary-rgb), 0.55);
    text-shadow: none;
}
html[data-theme="light"] .step-title {
    animation: none;
    color: var(--text-main);
}

html[data-theme="light"] .feature-card {
    background: #f8fafc;
}
html[data-theme="light"] .feature-card:hover {
    border-color: rgba(var(--primary-rgb), 0.25);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .feature-icon-wrap {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.2);
}

