@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&family=Fira+Code:wght@400;500;600&display=swap');

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

/* BotForge Styles - Modern Glassmorphism & High-Tech Dark Mode */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0f172a;
    --accent: #a78bfa;
    --pink: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --background: #090d16;
    --background-secondary: #0f172a;
    --background-tertiary: #1e293b;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --glass: rgba(18, 24, 38, 0.75);
    --glass-border: rgba(99, 102, 241, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(139, 92, 246, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(236, 72, 153, 0.08) 0%, transparent 55%);
}

h1, h2, h3, h4, .logo span {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo i {
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

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

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

.nav-menu a.active {
    color: var(--primary-light);
}

.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 7px);
    background: var(--primary-light);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -7px);
    background: var(--primary-light);
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        gap: 0;
        flex-direction: column;
        background: rgba(30, 41, 59, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        padding: 3rem 0;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: flex;
    }
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient);
    color: var(--text);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: var(--text);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
    background: var(--gradient);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 30px;
    background: var(--background);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(114, 137, 218, 0.1) 0%, transparent 50%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.stats {
    display: flex;
    gap: 3rem;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary);
}

.stat-item p {
    color: var(--gray);
    font-size: 0.9rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-bots {
    position: relative;
    width: 400px;
    height: 400px;
}

.floating-bots i {
    position: absolute;
    font-size: 4rem;
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
}

.bot-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.bot-2 {
    top: 50%;
    right: 20%;
    animation-delay: 0.5s;
    color: var(--success);
}

.bot-3 {
    bottom: 20%;
    left: 40%;
    animation-delay: 1s;
    color: var(--warning);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Section Styles */
section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--light);
}

/* Features Section */
.features {
    padding: 100px 30px;
    background: var(--background-secondary);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 4rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(51, 65, 85, 0.5);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    border-color: var(--primary-light);
}

.feature-card i {
    font-size: 3.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 1.4rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--light);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--light);
}

.feature-card p {
    color: var(--gray);
}

/* Pricing Section */
.pricing {
    padding: 100px 30px;
    background: var(--background);
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.25);
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card.featured {
    border: 2px solid var(--primary-light);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.pricing-card.featured::before {
    opacity: 1;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-weight: 700;
}

.pricing-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.pricing-card .price span {
    font-size: 1.2rem;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
}

.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-card li {
    padding: 0.8rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-card li i {
    color: var(--success);
    font-size: 1.1rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.features-list li {
    padding: 0.5rem 0;
    color: var(--gray);
}

.features-list i {
    color: var(--success);
    margin-right: 10px;
}

.pricing-card button {
    width: 100%;
}

/* Security Section */
.security {
    background: var(--dark);
}

.security-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.security-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.security-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.security-item i {
    font-size: 2rem;
    color: var(--success);
    margin-bottom: 0.5rem;
}

.security-item h3 {
    color: var(--light);
}

.security-item p {
    color: var(--gray);
    font-size: 0.9rem;
}

.security-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    background: var(--gradient);
    border-radius: 50%;
    color: var(--light);
}

.security-badge i {
font-size: 3rem;
margin-bottom: 1rem;
}

/* Footer */
footer {
background: rgba(15, 23, 42, 0.95);
backdrop-filter: blur(20px);
padding: 4rem 0 2rem;
margin-top: 6rem;
border-top: 1px solid var(--glass-border);
}

.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 3rem;
max-width: 1400px;
margin: 0 auto;
padding: 0 30px;
}

.footer-section h3 {
margin-bottom: 1.5rem;
color: var(--text);
font-size: 1.3rem;
font-weight: 600;
}

.footer-section p {
color: var(--text-muted);
line-height: 1.6;
}

.footer-section ul {
list-style: none;
}

.footer-section ul li {
margin-bottom: 0.8rem;
}

.footer-section a {
color: var(--text-muted);
text-decoration: none;
transition: all 0.3s;
}

.footer-section a:hover {
color: var(--primary-light);
transform: translateX(5px);
display: inline-block;
}

.footer-bottom {
text-align: center;
padding-top: 2rem;
margin-top: 3rem;
border-top: 1px solid var(--glass-border);
color: var(--text-muted);
font-size: 0.9rem;
}

.footer-bottom p {
color: var(--gray);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--gray);
    font-size: 1.2rem;
    transition: color 0.3s;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .stats {
        justify-content: center;
    }

    .floating-bots {
        display: none;
    }

    .security-content {
        grid-template-columns: 1fr;
    }

    .security-features {
        grid-template-columns: 1fr;
    }

    .security-badge {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    padding-top: 70px;
}

.sidebar {
    width: 250px;
    background: var(--dark);
    padding: 2rem;
    position: fixed;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--gray);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--primary);
    color: var(--light);
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Statistics Section */
.stats-section {
    padding: 100px 30px;
    background: var(--background-secondary);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(51, 65, 85, 0.5);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s;
    border: 1px solid var(--glass-border);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.stat-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.stat-change {
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 500;
}

.stat-change i {
    margin-right: 4px;
}

.stat-card .change {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.change.positive {
    color: var(--success);
}

.change.negative {
    color: var(--danger);
}

/* Bot Cards */
.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.bot-card {
    background: var(--dark);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--secondary);
    transition: all 0.3s;
}

.bot-card:hover {
    border-color: var(--primary);
}

.bot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bot-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--success);
}

.status-dot.offline {
    background: var(--danger);
}

.status-dot.maintenance {
    background: var(--warning);
}

.bot-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.bot-actions button {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-start {
    background: var(--success);
    color: var(--light);
}

.btn-stop {
    background: var(--danger);
    color: var(--light);
}

.btn-restart {
    background: var(--warning);
    color: var(--dark);
}

.btn-logs {
    background: var(--primary);
    color: var(--light);
}

/* Console/Logs */
.console-container {
    background: #0d0d0d;
    border-radius: 12px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    height: 400px;
    overflow-y: auto;
    border: 1px solid var(--secondary);
}

.console-line {
    padding: 2px 0;
    border-bottom: 1px solid #1a1a1a;
}

.console-line.error {
    color: var(--danger);
}

.console-line.warning {
    color: var(--warning);
}

.console-line.info {
    color: var(--primary);
}

.console-line.success {
    color: var(--success);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--darker);
    border: 1px solid var(--secondary);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.error-message {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.error input,
.form-group.error select {
    border-color: var(--danger);
}

.form-group.error .error-message {
    display: block;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--darker);
}

.auth-box {
    background: var(--dark);
    padding: 3rem;
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--secondary);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--light);
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--secondary);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.remember-forgot label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    cursor: pointer;
}

.remember-forgot a {
    color: var(--primary);
    text-decoration: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal[style*="display: block"],
.modal.active {
    display: flex !important;
}

.modal-content {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 520px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--light);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 3000;
}

.toast {
    background: var(--dark);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

.toast.warning {
    border-left-color: var(--warning);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Charts */
.chart-container {
    background: var(--dark);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--secondary);
    margin-bottom: 2rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--secondary);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Rate Limit Indicator */
.rate-limit {
    background: var(--dark);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--secondary);
}

.rate-limit-bar {
    height: 8px;
    background: var(--secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.rate-limit-fill {
    height: 100%;
    background: var(--gradient);
    transition: width 0.3s;
}

.rate-limit-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

/* Legal Pages Styling */
.legal-page-container {
    padding: 120px 20px 80px;
    min-height: 100vh;
    background: var(--background);
}

.legal-card {
    background: rgba(18, 24, 38, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    max-width: 900px;
    margin: 0 auto;
}

.legal-card h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.4rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

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

.legal-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-alert {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.legal-alert.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.legal-alert.warning i {
    font-size: 1.5rem;
    color: #f59e0b;
}

.legal-alert.warning p {
    color: #fef3c7;
    margin: 0;
    font-size: 0.92rem;
}

.legal-back {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* Hacker-style Terminal & Log Viewer QoL */
.console-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #090d16;
    padding: 10px 16px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border: 1px solid var(--glass-border);
    border-bottom: none;
}

.console-filters {
    display: flex;
    gap: 6px;
}

.console-filter-btn {
    padding: 4px 10px;
    font-size: 0.78rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.console-filter-btn.active, .console-filter-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.console-container {
    background: #060911 !important;
    font-family: 'Fira Code', monospace !important;
    border-radius: 0 0 12px 12px !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.console-line {
    font-size: 0.88rem;
    line-height: 1.5;
    padding: 3px 0;
}

.console-input-bar {
    display: flex;
    margin-top: 10px;
    gap: 8px;
}

.console-input-bar input {
    flex: 1;
    background: #0c1220;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px 14px;
    color: #4ade80;
    font-family: 'Fira Code', monospace;
    font-size: 0.88rem;
}

.console-input-bar input:focus {
    outline: none;
    border-color: var(--primary-light);
}

/* File Explorer Component */
.file-tree {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.88rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.file-item:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--text);
}

/* Pulse status dot */
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
