/* ═══════════════════════════════════════════════════════
   AI Trader — WordPress Theme Styles
   Dark theme, modern, clean
   ═══════════════════════════════════════════════════════ */

:root {
    --bg: #0a0a0f;
    --card: #13131a;
    --border: #1e1e2e;
    --text: #e4e4e7;
    --muted: #71717a;
    --green: #22c55e;
    --red: #ef4444;
    --blue: #3b82f6;
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --radius: 12px;
    --radius-lg: 20px;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }

/* ── Navigation ─────────────────────────────────────── */
.aitrader-nav {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.aitrader-nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 2rem;
}
.aitrader-logo {
    font-size: 1.4rem; font-weight: 700; color: var(--accent);
}
.aitrader-logo-accent { color: var(--green); }
.aitrader-nav-links {
    display: flex; gap: 0.75rem; align-items: center;
}
.aitrader-nav-links a {
    color: var(--text); padding: 0.4rem 0.8rem; border-radius: 8px;
    font-size: 0.9rem; transition: background 0.2s;
}
.aitrader-nav-links a:hover { background: var(--border); color: var(--text); }
.aitrader-user-email { color: var(--muted); font-size: 0.85rem; }

/* ── Buttons ─────────────────────────────────────────── */
.aitrader-btn {
    display: inline-block; padding: 0.65rem 1.4rem; border-radius: var(--radius);
    font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer;
    transition: all 0.2s; text-align: center; line-height: 1.4;
}
.aitrader-btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.aitrader-btn-lg { padding: 0.9rem 2.2rem; font-size: 1.05rem; }
.aitrader-btn-block { display: block; width: 100%; }
.aitrader-btn-primary { background: var(--accent); color: #fff; }
.aitrader-btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.aitrader-btn-secondary { background: var(--border); color: var(--text); }
.aitrader-btn-secondary:hover { background: #2a2a3a; color: var(--text); }
.aitrader-btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.aitrader-btn-outline:hover { background: var(--border); }

/* ── Hero ────────────────────────────────────────────── */
.aitrader-hero {
    text-align: center; padding: 6rem 2rem 4rem;
}
.aitrader-hero-inner { max-width: 750px; margin: 0 auto; }
.aitrader-hero h1 {
    font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem;
}
.aitrader-gradient {
    background: linear-gradient(135deg, var(--accent), var(--green));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.aitrader-hero-sub {
    font-size: 1.2rem; color: var(--muted); margin-bottom: 2.5rem;
    max-width: 550px; margin-left: auto; margin-right: auto;
}
.aitrader-hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Container ───────────────────────────────────────── */
.aitrader-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ── Features ────────────────────────────────────────── */
.aitrader-features { padding: 4rem 0; }
.aitrader-features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.aitrader-feature-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem;
    transition: border-color 0.2s;
}
.aitrader-feature-card:hover { border-color: var(--accent); }
.aitrader-feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.aitrader-feature-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.aitrader-feature-card p { color: var(--muted); font-size: 0.9rem; }

/* ── Pricing ─────────────────────────────────────────── */
.aitrader-pricing { padding: 4rem 0; text-align: center; }
.aitrader-section-title { font-size: 2rem; margin-bottom: 2rem; }
.aitrader-pricing-card {
    background: var(--card); border: 2px solid var(--accent);
    border-radius: var(--radius-lg); padding: 2.5rem;
    max-width: 450px; margin: 0 auto;
}
.aitrader-pricing-amount { font-size: 3.5rem; font-weight: 800; }
.aitrader-pricing-period { color: var(--muted); margin-bottom: 1.5rem; }
.aitrader-pricing-features {
    list-style: none; text-align: left; margin: 2rem 0;
}
.aitrader-pricing-features li {
    padding: 0.5rem 0; font-size: 0.95rem;
}
.aitrader-pricing-features li::before { content: '✓ '; color: var(--green); font-weight: 700; }

/* ── Dashboard ───────────────────────────────────────── */
.aitrader-dashboard { padding: 2rem; }
.aitrader-dashboard-title { font-size: 1.8rem; margin-bottom: 1.5rem; }

.aitrader-alert {
    padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem;
    display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
}
.aitrader-alert-warning { background: #451a03; color: #f59e0b; border: 1px solid #78350f; }
.aitrader-alert-success { background: #064e3b; color: var(--green); border: 1px solid #065f46; }

.aitrader-stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem; margin-bottom: 2rem;
}
.aitrader-stat-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.5rem;
}
.aitrader-stat-card h3 { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.aitrader-stat-value { font-size: 2rem; font-weight: 700; }
.aitrader-stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }

.aitrader-section { margin-bottom: 2rem; }
.aitrader-section h2 { font-size: 1.2rem; margin-bottom: 1rem; }

.aitrader-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.5rem;
}

/* ── Forms ───────────────────────────────────────────── */
.aitrader-form-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.aitrader-form-row > * { flex: 1; }
.aitrader-form-group { margin-bottom: 1rem; }
.aitrader-form-group label { display: block; margin-bottom: 0.3rem; color: var(--muted); font-size: 0.85rem; }
.aitrader-form-group input,
.aitrader-form-group select {
    width: 100%; background: var(--bg); border: 1px solid var(--border);
    color: var(--text); padding: 0.65rem 1rem; border-radius: var(--radius);
    font-size: 0.9rem; font-family: inherit;
}
.aitrader-form-group input:focus,
.aitrader-form-group select:focus { outline: none; border-color: var(--accent); }

/* ── Utilities ──────────────────────────────────────── */
.aitrader-text-green { color: var(--green); }
.aitrader-text-red { color: var(--red); }
.aitrader-text-muted { color: var(--muted); text-align: center; padding: 2rem; }

/* ── Footer ─────────────────────────────────────────── */
.aitrader-footer {
    border-top: 1px solid var(--border); padding: 2rem;
    text-align: center; color: var(--muted); font-size: 0.85rem;
    margin-top: 4rem;
}

/* ── WordPress Login/Register Forms ─────────────────── */
/* ═══════════════════════════════════════════════════════════
   AUTH PAGES — Login, Register, Verify Email
   ═══════════════════════════════════════════════════════════ */

.auth-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--bg);
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* ── Icon ──────────────────────────────────────────── */
.auth-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

/* ── Title & Subtitle ───────────────────────────────── */
.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: var(--muted);
    font-size: 0.95rem;
    text-align: center;
    margin: 0 0 2rem;
    line-height: 1.5;
}

/* ── Alerts ─────────────────────────────────────────── */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.auth-alert a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.auth-alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.auth-alert-success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

/* ── Form ───────────────────────────────────────────── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.field-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.01em;
}

/* ── Input Wrapper (icon + input + toggle) ──────────── */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.9rem;
    color: var(--muted);
    pointer-events: none;
    flex-shrink: 0;
}

.input-wrapper input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem 1rem 0.8rem 2.6rem;
    color: var(--text);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
}

.input-wrapper input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.input-wrapper input::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

/* ── Password Toggle ────────────────────────────────── */
.toggle-password {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.toggle-password:hover {
    color: var(--text);
}

/* ── Password Strength Meter ────────────────────────── */
.password-strength {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.35rem;
}

.strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    transition: background 0.2s;
}

.strength-bar.weak { background: #ef4444; }
.strength-bar.medium { background: #f59e0b; }
.strength-bar.strong { background: #22c55e; }

.strength-text {
    font-size: 0.75rem;
    margin-left: 0.5rem;
    min-width: 3rem;
    text-align: right;
}

.strength-text.text-weak { color: #ef4444; }
.strength-text.text-medium { color: #f59e0b; }
.strength-text.text-strong { color: #22c55e; }

/* ── Field Row (remember me + forgot, or terms) ─────── */
.field-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ── Custom Checkbox ────────────────────────────────── */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.checkbox-label input:checked + .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -1px;
}

.checkbox-label a {
    color: var(--accent);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ── Forgot Password Link ───────────────────────────── */
.forgot-link {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.forgot-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ── Primary Button ─────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--accent);
    color: #fff;
    position: relative;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-full {
    width: 100%;
}

/* ── Button Loading State ───────────────────────────── */
.btn-primary.loading {
    pointer-events: none;
    opacity: 0.85;
}

.btn-spinner {
    display: none;
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-primary.loading .btn-spinner {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Divider ────────────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.75rem 0;
}

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

.auth-divider span {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Switch Link ────────────────────────────────────── */
.auth-switch {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

.auth-switch a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .field-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}


