/* Version: 1.1 | 2026-10-03T23:00:00Z */
/* 1.1: light navbar rules moved to assets/navbar.css */
/* Light theme for the web + mini-app surfaces. Dark is the base in
   assets/style.css and bot/miniapp/assets/style.css; this file only
   re-points the tokens. assets/theme.js sets <html data-theme> before
   first paint (saved choice > Telegram colour scheme > OS preference). */

:root[data-theme="light"] {
    color-scheme: light;
    --bg-color: #F3F6F4;
    --bg-elev: #FFFFFF;
    --card-bg: #FFFFFF;
    --panel-bg: #F7F9F8;
    --secondary: #EEF2EF;

    /* chrome green / copper, darkened to keep text contrast on white */
    --primary: #178A52;
    --primary-hover: #12703F;
    --primary-dim: rgba(23, 138, 82, 0.12);
    --buy-color: #178A52;
    --sell-color: #A35A17;
    --sell-dim: rgba(163, 90, 23, 0.12);

    --text-primary: #111814;
    --text-secondary: #4E5C54;
    --text-faint: #6F7D75;
    --border-color: #D6DDD9;
    --border-soft: #E6EBE8;

    --success: #178A52;
    --warning: #A86B0C;
    --error: #C0392B;

    --chrome-sheen: linear-gradient(180deg, #FFFFFF 0%, #DCE3DF 45%, #AEB9B3 55%, #EEF2EF 100%);
    --shadow-1: 0 1px 2px rgba(16, 24, 20, 0.08);
    --shadow-2: 0 14px 34px -18px rgba(16, 24, 20, 0.22);
}
:root[data-theme="dark"] { color-scheme: dark; }

:root[data-theme="light"] body {
    background-image:
        radial-gradient(900px 500px at 88% -8%, rgba(23, 138, 82, 0.07), transparent 60%),
        radial-gradient(700px 460px at -6% 4%, rgba(42, 168, 224, 0.05), transparent 55%);
}
:root[data-theme="light"] .card { background: var(--card-bg); }
:root[data-theme="light"] .alert-error { background: rgba(192, 57, 43, 0.08); }
:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea { color-scheme: light; }

/* ------------------------------------------------------------ toggle */
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 36px; height: 36px; margin-left: 4px; padding: 0; border-radius: 9px; cursor: pointer;
    background: transparent; color: var(--text-secondary); border: 1px solid var(--border-color);
    transition: color 0.18s, border-color 0.18s;
}
.theme-toggle:hover { color: var(--text-primary); border-color: var(--primary); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
