/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0A1929;
    color: #FFFFFF;
    min-height: 100vh;
}

a { color: #10B981; text-decoration: none; }
a:hover { color: #34D399; text-decoration: none; }

/* === Pages === */
.page { display: none; }
.page.active { display: block; }

/* === Navbar === */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 184, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFB800, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-links a { color: #E5E7EB; }
.nav-links a:hover { color: #FFFFFF; }
.nav-links .btn-primary { color: #FFFFFF; }

/* === Buttons === */
.btn {
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: #1a2332;
    color: #9CA3AF;
    border: 1px solid #2a3444;
}
.btn-secondary:hover { color: #FFFFFF; border-color: #3a4454; }

.btn-danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.btn-lg { padding: 0.75rem 2rem; font-size: 1.1rem; }
.btn-sm { padding: 0.3rem 0.8rem; font-size: 0.8rem; }

/* === Badge === */
.badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === Hero === */
.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.2rem;
    color: #9CA3AF;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-sub {
    font-size: 0.95rem;
    color: #9CA3AF;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* === Trust Bar === */
.trust-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: #0f172a;
    border-top: 1px solid #1a2332;
    border-bottom: 1px solid #1a2332;
    flex-wrap: wrap;
}

.trust-item { text-align: center; }

.trust-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFB800;
}

.trust-label {
    font-size: 0.85rem;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: #2a3444;
}

/* === Sections === */
.section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: #FFFFFF;
}

/* === Steps === */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #1a2332;
    border: 1px solid #2a3444;
    border-radius: 12px;
    position: relative;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.step-num {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: #FFFFFF;
}

.step-card p {
    font-size: 0.9rem;
    color: #9CA3AF;
    line-height: 1.5;
}

/* === Features === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 1.5rem;
    background: #1a2332;
    border: 1px solid #2a3444;
    border-radius: 12px;
    transition: border-color 0.2s ease;
}
.feature-card:hover { border-color: #3a4454; }

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: #FFFFFF;
}

.feature-card p {
    font-size: 0.9rem;
    color: #9CA3AF;
    line-height: 1.5;
}

/* === Comparison === */
.compare-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 750px;
    margin: 0 auto;
}

.compare-card {
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.compare-old {
    background: #111c2e;
    border: 1px solid #2a3444;
}

.compare-new {
    background: #1a2332;
    border: 2px solid #FFB800;
    box-shadow: 0 4px 24px rgba(255, 184, 0, 0.1);
}

.compare-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.compare-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #9CA3AF;
    margin-bottom: 1.5rem;
}
.compare-price span { font-size: 0.9rem; font-weight: 400; }
.compare-price.highlight { color: #10B981; }

.compare-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.compare-card li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    padding-left: 1.5rem;
    position: relative;
}

.compare-con { color: #6B7280; }
.compare-con::before {
    content: "\2717";
    position: absolute;
    left: 0;
    color: #EF4444;
}

.compare-pro { color: #E5E7EB; }
.compare-pro::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #10B981;
}

/* === Disclaimer === */
.disclaimer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: #6B7280;
    border-top: 1px solid #1a2332;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* === Mobile === */
@media (max-width: 768px) {
    .trust-bar { gap: 1.5rem; }
    .trust-divider { display: none; }
    .trust-number { font-size: 1.5rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .compare-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.5rem; }
}

/* === Pricing === */
.pricing {
    text-align: center;
    padding: 3rem 2rem;
}

.pricing h2 {
    margin-bottom: 2rem;
    color: #FFFFFF;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.card {
    background: #1a2332;
    border: 1px solid #2a3444;
    border-radius: 12px;
    padding: 2rem;
    width: 280px;
    text-align: left;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.card.featured { border-color: #FFB800; }
.card.single-card { width: 360px; text-align: center; }

.card h3 { margin-bottom: 0.5rem; }

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #FFB800;
}

.price span { font-size: 1rem; color: #9CA3AF; font-weight: 400; }

.price-note {
    font-size: 0.85rem;
    color: #9CA3AF;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.trial-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFB800, #F59E0B);
    color: #0A1929;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.card li {
    padding: 0.4rem 0;
    color: #9CA3AF;
}

.card li::before {
    content: "\2713  ";
    color: #10B981;
}

/* === Auth === */
.auth-container {
    max-width: 400px;
    margin: 6rem auto;
    padding: 2rem;
    background: #1a2332;
    border: 1px solid #2a3444;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.auth-container h2 { margin-bottom: 0.5rem; text-align: center; }

.auth-subtitle {
    text-align: center;
    color: #9CA3AF;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.auth-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-container input {
    padding: 0.75rem;
    border: 1px solid #2a3444;
    border-radius: 6px;
    background: #0A1929;
    color: #FFFFFF;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}
.auth-container input:focus {
    outline: none;
    border-color: #10B981;
}

.auth-container p { text-align: center; margin-top: 1rem; color: #9CA3AF; }

.error { color: #EF4444; margin-top: 0.5rem; font-size: 0.9rem; }

/* === Subscription Banner === */
.sub-banner {
    padding: 0.75rem 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.sub-banner a { font-weight: 600; }

.sub-banner.info {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    color: #34D399;
}

.sub-banner.info a { color: #10B981; }

.sub-banner.warning {
    background: linear-gradient(90deg, rgba(255, 184, 0, 0.1), rgba(255, 184, 0, 0.05));
    border-bottom: 1px solid rgba(255, 184, 0, 0.2);
    color: #FFB800;
}

.sub-banner.warning a { color: #FFB800; }

.sub-banner.expired {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.sub-banner.expired a { color: #F87171; }

/* === Badge Variants === */
.badge-pro {
    background: linear-gradient(135deg, #FFB800, #F59E0B);
    color: #0A1929;
    font-weight: 700;
}
.badge-trial {
    background: rgba(255, 184, 0, 0.15);
    color: #FFB800;
    border: 1px solid rgba(255, 184, 0, 0.3);
}
.badge-expired {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* === Disabled Button === */
.btn-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.btn-disabled:hover { opacity: 0.4; transform: none; box-shadow: none; }

/* === Dashboard === */
.dashboard { max-width: 1100px; margin: 0 auto; padding: 2rem; }

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.bot-card {
    background: #1a2332;
    border: 1px solid #2a3444;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bot-card:hover {
    border-color: #3a4454;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bot-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bot-card-header h4 { margin: 0; }

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.3rem;
}

.status-dot.running {
    background: #10B981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}
.status-dot.stopped { background: #6B7280; }
.status-dot.error {
    background: #EF4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.bot-card-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }

.muted { color: #9CA3AF; }

/* === Stats === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #1a2332;
    border: 1px solid #2a3444;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-card .label {
    color: #9CA3AF;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.positive { color: #10B981; }
.negative { color: #EF4444; }

/* === Table === */
.trades-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.trades-table th,
.trades-table td {
    text-align: left;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #1a2332;
}

.trades-table th {
    color: #9CA3AF;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trades-table tr:hover td {
    background: rgba(255, 184, 0, 0.03);
}

/* === Modal === */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 25, 41, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-content {
    background: #1a2332;
    border: 1px solid #2a3444;
    border-radius: 12px;
    padding: 2rem;
    width: 420px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.modal-content h3 { margin-bottom: 1.5rem; }

.modal-content label {
    display: block;
    margin-bottom: 0.3rem;
    color: #9CA3AF;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #2a3444;
    border-radius: 6px;
    background: #0A1929;
    color: #FFFFFF;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}
.modal-content input:focus,
.modal-content select:focus {
    outline: none;
    border-color: #10B981;
}

.modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem; }
