/* ========== BASE & NOISE ========== */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ========== GRADIENT ANIMATION ========== */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.animate-gradient {
    animation: gradient-shift 4s ease-in-out infinite;
}

/* ========== SMOOTH SCROLL ========== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

/* ========== GLASS CARDS ========== */
.glass-card {
    padding: 1.5rem;
    background: rgba(15, 21, 32, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    border-color: rgba(0, 255, 136, 0.15);
    background: rgba(15, 21, 32, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.05);
}

/* ========== BOT CARDS ========== */
.bot-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: rgba(15, 21, 32, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
}
.bot-card:hover {
    border-color: rgba(0, 255, 136, 0.2);
    background: rgba(15, 21, 32, 0.9);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 255, 136, 0.08);
}

/* ========== FAQ ========== */
.faq-item {
    background: rgba(15, 21, 32, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}
.faq-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: #e5e7eb;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.2s;
}
.faq-toggle:hover {
    color: #fff;
}
.faq-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: #6b7280;
    transition: transform 0.3s, color 0.3s;
}
.faq-item.open .faq-icon {
    transform: rotate(45deg);
    color: #00ff88;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
    padding: 0 1.5rem;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem 1.5rem;
}
.faq-answer p {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.7;
}
.faq-answer a {
    color: #00d4ff;
    text-decoration: none;
}
.faq-answer a:hover {
    text-decoration: underline;
}
.faq-answer strong {
    color: #d1d5db;
}

/* ========== TERMINAL LINES ========== */
.term-line {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInLine 0.3s ease forwards;
}
@keyframes fadeInLine {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.term-line .line-num {
    color: #374151;
    min-width: 1.5rem;
    text-align: right;
    font-size: 0.7rem;
}
.term-line .line-cmd {
    color: #6b7280;
}
.term-line .line-val {
    color: #d1d5db;
}
.term-line .line-ok {
    color: #00ff88;
    font-weight: 700;
}
.term-line .line-warn {
    color: #fbbf24;
    font-weight: 700;
}
.term-line .line-profit {
    color: #00ff88;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}
.term-line .line-hash {
    color: #00d4ff;
    font-size: 0.7rem;
    opacity: 0.6;
}
.term-line .line-route {
    color: #a78bfa;
}

/* ========== SELECTION ========== */
::selection {
    background: rgba(0, 255, 136, 0.2);
    color: #fff;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0e17;
}
::-webkit-scrollbar-thumb {
    background: #1a2540;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2a3550;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .term-line {
        font-size: 0.7rem;
    }
}
