/* TradeYourWay - Web Theme
   Unified brand palette, matching the desktop app:
   - Accent  = brand ORANGE (from the logo wordmark)  -> buttons, links, highlights
   - Info    = brand BLUE (from the logo icon)         -> secondary accents
   - Neutral dark slate backgrounds (same family as the app's dark theme)
   Import in each page: <link rel="stylesheet" href="theme.css">
*/

:root {
    /* === Brand accent (ORANGE) — the primary interactive color === */
    --accent: #f07e1a;
    --accent-hover: #e06f0c;
    --accent-light: rgba(240, 126, 26, 0.16);

    /* === Brand secondary (BLUE) — links on dark, info, subtle detail === */
    --primary: #4b90d6;           /* brand blue, readable on dark */
    --primary-light: #7db4e8;     /* lighter blue (hover/links) */
    --primary-dark: #1e5aa8;      /* deep blue */

    /* === Status === */
    --success: #34d399;
    --error: #f87171;
    --warning: #fbbf24;

    /* === Text (on dark backgrounds) === */
    --text-primary: #e6edf5;      /* main text */
    --text-secondary: #9fb0c3;    /* subtitles / descriptions */
    --text-muted: #6b7c91;        /* footers / small print */
    --text-on-accent: #1a0f02;    /* near-black over the bright orange */
    /* Text on light cards (forms) */
    --text-dark: #0f1b2d;
    --text-body: #475569;

    /* === Backgrounds (neutral slate, matches app dark theme) === */
    --bg-body: #0e1621;           /* page background */
    --bg-card: #172232;           /* cards / feature panels */
    --bg-navbar: rgba(14, 22, 33, 0.95);
    --bg-card-light: rgba(255, 255, 255, 0.98); /* light form cards */
    --bg-stats: #172232;          /* stats band */
    --bg-inset: #0b111a;

    /* === Borders === */
    --border: #29394d;
    --border-hover: #3a4d66;
    --border-accent: var(--accent);
    --border-input: #cbd5e1;

    /* === Gradients (kept subtle, brand-anchored) === */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark), var(--accent));
    --gradient-text: linear-gradient(135deg, #ffa94d, var(--accent));

    /* === Shadows === */
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.35);
    --shadow-button: 0 10px 30px rgba(240, 126, 26, 0.28);
    --shadow-hover: 0 4px 12px rgba(240, 126, 26, 0.20);

    /* === Typography === */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-xs: 12px;

    /* === Spacing / sizing === */
    --navbar-height: 70px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;

    /* === Plan colors === */
    --plan-free: #34d399;
    --plan-pro: #4b90d6;
    --plan-pro-plus: #f07e1a;

    /* === Landing (dark fintech look) === */
    --ink: #0a0e14;               /* near-black page background */
    --ink-2: #0f141c;             /* section alt background */
    --surface: #141a24;           /* cards */
    --surface-2: #1a222e;         /* raised cards / inputs */
    --hairline: #232c3a;          /* subtle borders */
    --accent-grad: linear-gradient(135deg, #ffa94d, #f07e1a);
    --eyebrow: #f0a35a;           /* small orange eyebrow labels */
}

/* ============================================================
   Shared dark chrome — used by every page (navbar, footer,
   buttons, form cards). Import theme.css and use these classes
   instead of per-page inline styles so the whole site stays
   consistent with the landing.
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tyw { font-family: var(--font-family); background: var(--ink); color: var(--text-primary); min-height: 100vh; }
.tyw a { text-decoration: none; }
.tyw-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.tyw .accent { color: var(--accent); }

/* Buttons */
.tyw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: transform 0.15s, background 0.2s, box-shadow 0.2s, border-color 0.2s; border: none; font-family: inherit; }
.tyw-btn-primary { background: var(--accent); color: var(--text-on-accent); }
.tyw-btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-button); }
.tyw-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.tyw-btn-ghost { background: transparent; color: var(--text-primary); border: 1.5px solid var(--hairline); }
.tyw-btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.tyw-btn-danger { background: var(--error); color: #fff; }
.tyw-btn-danger:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(248,113,113,0.25); }
.tyw-btn-block { width: 100%; }

/* Navbar */
.tyw-nav { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(10,14,20,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hairline); }
.tyw-nav .tyw-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.tyw-logo { display: flex; align-items: center; }
.tyw-logo img { height: 44px; }
.tyw-logo .brand { display: none; } /* logo image already includes the wordmark */
.tyw-nav-links { display: flex; gap: 30px; align-items: center; }
.tyw-nav-links a { color: var(--text-secondary); font-weight: 500; transition: color 0.2s; }
.tyw-nav-links a:hover { color: var(--text-primary); }

/* Auth / form card (dark, matches landing) */
.tyw-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 110px 20px 60px; }
.tyw-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--border-radius-xl); box-shadow: var(--shadow-card); padding: 40px; width: 100%; }
.tyw-card-narrow { max-width: 460px; }
.tyw-card-wide { max-width: 720px; }
.tyw-card .card-logo { text-align: center; margin-bottom: 28px; }
.tyw-card .card-logo img { height: 46px; margin-bottom: 10px; }
.tyw-card .card-logo .sub { color: var(--text-secondary); font-weight: 600; }
.tyw-eyebrow { color: var(--eyebrow); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* Form fields (dark) */
.tyw-field { margin-bottom: 18px; }
.tyw-field label { display: block; margin-bottom: 8px; color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.tyw-input, .tyw .tyw-input {
    width: 100%; padding: 13px 15px; background: var(--surface-2);
    border: 1px solid var(--hairline); color: var(--text-primary);
    border-radius: var(--border-radius); font-size: 15px; font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.tyw-input::placeholder { color: var(--text-muted); }
.tyw-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }

/* Alerts */
.tyw-alert { padding: 12px 14px; border-radius: var(--border-radius); margin-bottom: 18px; font-size: 14px; }
.tyw-alert-error { background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.4); color: #fca5a5; }
.tyw-alert-success { background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.4); color: #6ee7b7; }

.tyw-link { text-align: center; color: var(--text-secondary); font-size: 14px; }
.tyw-link a { color: var(--accent); font-weight: 600; }
.tyw-link a:hover { text-decoration: underline; }

/* Footer (compact, for inner pages) */
.tyw-foot { background: var(--ink-2); border-top: 1px solid var(--hairline); padding: 40px 0 30px; text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-top: auto; }
.tyw-foot a { color: var(--text-secondary); }
.tyw-foot a:hover { color: var(--accent); }
.tyw-foot .risk { margin-top: 8px; font-size: 0.85rem; }
.tyw-foot-links { margin-top: 14px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 768px) {
    .tyw-nav-links { display: none; }
}
