:root {
    --bg-gradient: linear-gradient(155deg, #3d8bff 0%, #4f6bff 42%, #6b4ff0 100%);
    --brand: #4f6bff;
    --brand-gradient: linear-gradient(135deg, #4f8bff 0%, #5b5cf6 100%);
    --brand-soft: rgba(79, 107, 255, 0.12);
    --accent: #ffd447;

    --green: #12a866;
    --green-soft: rgba(18, 168, 102, 0.12);
    --red: #ef4462;
    --red-soft: rgba(239, 68, 98, 0.12);
    --orange: #ff7a1a;
    --orange-soft: rgba(255, 122, 26, 0.14);
    --yellow-soft: rgba(255, 196, 0, 0.18);
    --violet: #7b4fe0;
    --violet-soft: rgba(123, 79, 224, 0.12);

    --ink: #1b2142;
    --muted: #6b7393;
    --faint: #b9bfd3;
    --line: #e9ecf5;
    --soft: #f4f6fc;
    --white: #ffffff;

    --radius: 10px;
    --shadow-card: 0 14px 34px -10px rgba(20, 24, 90, 0.45), 0 2px 6px rgba(20, 24, 90, 0.08);
    --shadow-soft: 0 10px 30px -12px rgba(20, 24, 90, 0.22), 0 1px 3px rgba(20, 24, 90, 0.06);
    --shadow-pop: 0 30px 60px -18px rgba(20, 24, 90, 0.55);
    --font: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--soft);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p { margin: 0; }

a { color: inherit; text-decoration: none; }

button { font: inherit; }

svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow { max-width: 800px; }

.accent { color: var(--accent); }

.sparkle {
    position: absolute;
    fill: var(--accent);
    stroke: none;
    animation: twinkle 2.6s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(0.65) rotate(20deg); opacity: 0.7; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    border: none;
    font-size: 16px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
}

.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-lg { height: 58px; padding: 0 24px; font-size: 17px; border-radius: 16px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn-sm svg { width: 18px; height: 18px; }

.btn-white {
    background: var(--white);
    color: var(--brand);
    box-shadow: 0 8px 20px -8px rgba(20, 24, 90, 0.5);
}

.btn-yellow {
    background: var(--accent);
    color: var(--ink);
    box-shadow: 0 12px 26px -10px rgba(255, 190, 0, 0.9), inset 0 -3px 0 rgba(0, 0, 0, 0.08);
}

.btn-yellow:hover { filter: brightness(1.04); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- Tiles ---------- */
.tile {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tile svg { width: 18px; height: 18px; }
.tile-lg { width: 52px; height: 52px; border-radius: 16px; }
.tile-lg svg { width: 26px; height: 26px; }

.tile-blue { background: var(--brand-soft); color: var(--brand); }
.tile-yellow { background: var(--yellow-soft); color: #d99a00; }
.tile-orange { background: var(--orange-soft); color: var(--orange); }
.tile-green { background: var(--green-soft); color: var(--green); }
.tile-violet { background: var(--violet-soft); color: var(--violet); }
.tile-red { background: var(--red-soft); color: var(--red); }

.dir {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.dir-down { border-top: 5px solid var(--red); }
.dir-up { border-bottom: 5px solid var(--green); }

/* ================= HERO ================= */
.hero {
    position: relative;
    overflow: hidden;
    padding-bottom: 96px;
    background: var(--bg-gradient);
    color: var(--white);
}

.hero::before,
.section-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.25) 0, transparent 35%),
        radial-gradient(circle at 100% 70%, rgba(160, 120, 255, 0.5) 0, transparent 45%),
        repeating-radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.07) 0 1.5px, transparent 1.5px 46px);
}

.hero > *, .section-gradient > * { position: relative; }

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 80px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand img { border-radius: 9px; box-shadow: 0 4px 12px rgba(20, 24, 90, 0.25); }

.nav-links {
    display: flex;
    gap: 28px;
    margin-left: auto;
    font-size: 15px;
    font-weight: 600;
}

.nav-links a { color: rgba(255, 255, 255, 0.85); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--white); }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: center;
    padding-top: 24px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-weight: 650;
}

.eyebrow i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 212, 71, 0.3);
}

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

.hero h1 {
    position: relative;
    display: inline-block;
    margin-top: 22px;
    font-size: 62px;
    font-weight: 850;
    line-height: 1.03;
    letter-spacing: -0.035em;
    text-shadow: 0 4px 24px rgba(20, 24, 90, 0.25);
}

.hero h1 .sparkle-lg { width: 34px; height: 34px; right: -40px; top: -6px; }
.hero h1 .sparkle-sm { width: 16px; height: 16px; right: -52px; top: 34px; fill: var(--white); animation-delay: 1.3s; }

.lead {
    max-width: 560px;
    margin: 22px auto 0;
    font-size: 18.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

/* ---------- Live widget block ---------- */
.hero-demo { scroll-margin-top: 24px; margin-top: 56px; }

.browser { position: relative; color: var(--ink); }

.demo-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.demo-hint svg { width: 16px; height: 16px; fill: var(--accent); stroke: none; }

/* ================= WIDGET (mirrors the extension popup) ================= */
.w {
    position: relative;
    width: 100%;
    margin: 0;
    padding-bottom: 14px;
    border-radius: 20px;
    background: var(--bg-gradient);
    box-shadow: 0 24px 48px -16px rgba(20, 24, 90, 0.6);
    font-size: 14px;
    color: var(--ink);
    text-align: left;
}

.w::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.28) 0, transparent 38%),
        repeating-radial-gradient(circle at 92% 4%, rgba(255, 255, 255, 0.10) 0 1.5px, transparent 1.5px 30px);
    -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 60%);
    mask-image: linear-gradient(to bottom, #000 0, transparent 60%);
}

.w > * { position: relative; }

.w-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 16px 14px;
}

.w-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--white);
}

.w-demo-badge {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
    font-size: 11px;
    font-weight: 650;
    color: var(--white);
    white-space: nowrap;
}

.w-card {
    position: relative;
    margin: 0 12px;
    padding: 14px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.w-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.w-head h3 { font-size: 15px; font-weight: 750; letter-spacing: -0.01em; }

.live {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 8px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.live[data-state="loading"] { background: var(--brand-soft); color: var(--brand); }
.live[data-state="offline"] { background: var(--red-soft); color: var(--red); }

.live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: ping 1.8s ease-out infinite;
}

.live[data-state="offline"] i { background: var(--red); animation: none; }
.live[data-state="loading"] i { background: var(--brand); animation: none; }

.w-notifications-toggle {
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--white);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.w-notifications-toggle:disabled,
.w-notifications-toggle.is-blocked { color: var(--muted); }

@keyframes ping {
    0% { box-shadow: 0 0 0 0 rgba(18, 168, 102, 0.55); }
    100% { box-shadow: 0 0 0 7px rgba(18, 168, 102, 0); }
}

/* Form */
.w-form {
    display: grid;
    grid-template-columns: 1.3fr 0.85fr 1fr 1fr auto;
    gap: 7px;
    align-items: end;
}

.w-field { display: flex; flex-direction: column; min-width: 0; }

.w-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    white-space: nowrap;
}

.w-input-wrap { position: relative; display: block; }

.w-input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    width: 15px;
    height: 15px;
    transform: translateY(-50%);
    color: var(--brand);
    pointer-events: none;
}

.w-form input {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1.5px solid #cfd5e6;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: inset 0 1px 2px rgba(20, 24, 90, 0.06);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.w-form input:hover { border-color: #a9b3d6; }

.w-form input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.w-form input.invalid { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }

#w-symbol { padding-left: 31px; text-transform: uppercase; }

#w-current {
    background: var(--soft);
    border-color: transparent;
    box-shadow: none;
    font-weight: 700;
    opacity: 1;
    -webkit-text-fill-color: var(--ink);
}

.w-form input::placeholder { color: #9ba3bf; font-weight: 450; text-transform: none; }
#w-current::placeholder { color: var(--faint); -webkit-text-fill-color: var(--faint); }

.w-btn {
    height: 38px;
    padding: 0 16px;
    border: none;
    border-radius: var(--radius);
    background: var(--brand-gradient);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 14px -4px rgba(79, 107, 255, 0.6);
    transition: transform 0.15s ease, filter 0.2s ease;
}

.w-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.w-btn:disabled { cursor: wait; filter: saturate(0.6); opacity: 0.72; transform: none; }

/* Search dropdown */
.w-search {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% - 8px);
    max-height: 270px;
    overflow: auto;
    padding: 6px 8px 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-pop);
    z-index: 20;
}

.w-search-src {
    display: inline-flex;
    margin: 10px 0 4px 4px;
    padding: 3px 10px;
    border: 1.5px solid var(--brand-soft);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
}

.w-search-src:first-child { margin-top: 4px; }

.w-search-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: var(--radius);
    background: transparent;
    font-size: 13.5px;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.w-search-item span { color: var(--muted); }

.w-search-item::after {
    content: "+";
    margin-left: auto;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.w-search-item:hover { background: var(--soft); }
.w-search-item:hover::after { opacity: 1; }

.w-search-none { padding: 18px; text-align: center; font-size: 13px; color: var(--muted); }
.w-search-note { padding: 8px 14px; font-size: 11px; color: var(--muted); }

/* Flow + timer */
.w-flow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 11px 24px;
}

.w-flow-line { flex: 1; border-top: 2px dashed rgba(255, 255, 255, 0.45); }

.w-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
    color: var(--white);
    font-size: 12px;
    font-weight: 550;
    white-space: nowrap;
}

.w-timer svg { width: 15px; height: 15px; }
.w-timer b { min-width: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent); }

/* Table */
.w-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 6px;
    margin-top: -6px;
}

.w-table th {
    padding: 0 9px 2px;
    font-size: 10px;
    font-weight: 650;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    white-space: nowrap;
}

.w-table td {
    height: 48px;
    padding: 0 9px;
    vertical-align: middle;
    background: var(--soft);
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease;
}

.w-table td:first-child { border-radius: 14px 0 0 14px; }
.w-table td:last-child { border-radius: 0 14px 14px 0; text-align: right; }
.w-table tr:hover td { background: #edf0fa; }

.w-table th:nth-child(1) { width: 29%; }
.w-table th:nth-child(2) { width: 21%; }
.w-table th:nth-child(3) { width: 17%; }
.w-table th:nth-child(4) { width: 17%; }
.w-table th:nth-child(5) { width: 16%; text-align: right; }

.c-symbol { font-weight: 750; overflow: hidden; text-overflow: ellipsis; }
.c-symbol-info { display: inline-flex; flex-direction: column; min-width: 0; vertical-align: middle; }
.c-sym-text { overflow: hidden; text-overflow: ellipsis; }
.c-source { overflow: hidden; max-width: 175px; color: var(--muted); font-size: 10px; font-weight: 500; text-overflow: ellipsis; }
.c-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.c-price.up { color: var(--green); }
.c-price.down { color: var(--red); }

.c-level {
    font-size: 13.5px;
    font-weight: 550;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}

.c-level::before {
    content: "";
    display: inline-block;
    margin-right: 6px;
    vertical-align: 2px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.c-lower::before { border-top: 5px solid var(--red); }
.c-higher::before { border-bottom: 5px solid var(--green); }
.c-level:empty:not(.editing)::before { display: none; }
.c-level:empty:not(.editing)::after { content: "—"; color: var(--faint); }

.c-level.editing {
    background: var(--white) !important;
    color: var(--ink);
    border-radius: 8px;
    box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 3px var(--brand-soft);
    outline: none;
    cursor: text;
}

.w-table tr.is-triggered td { background: #fff3e8; }
.w-table tr.is-triggered .c-level.is-hit { color: var(--orange); font-weight: 800; }
.w-table tr.is-triggered .c-level.is-hit::before { border-top-color: var(--orange); border-bottom-color: var(--orange); }
.w-table tr.is-muted td { background: #eef0f4; color: var(--faint); }
.w-table tr.is-muted .c-symbol, .w-table tr.is-muted .c-price { color: var(--muted); }
.w-table tr.is-watch-only .c-level { color: var(--faint); }

.w-table tr.is-new td { animation: rowIn 0.5s ease; }

@keyframes rowIn {
    from { background: rgba(79, 107, 255, 0.18); }
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 9px;
    border-radius: 9px;
    vertical-align: middle;
    background: var(--green-soft);
    color: var(--green);
    padding: 0;
    border: 0;
    cursor: pointer;
}

.status svg { width: 15px; height: 15px; }
.is-triggered .status { background: var(--orange); color: var(--white); animation: ring 1.6s ease-out infinite; }
.is-muted .status { background: #dfe2ea; color: var(--muted); }

@keyframes ring {
    0% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.55); }
    100% { box-shadow: 0 0 0 8px rgba(255, 122, 26, 0); }
}

.act {
    width: 30px;
    height: 30px;
    padding: 0;
    margin-left: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.act svg { width: 16px; height: 16px; pointer-events: none; }
.act-edit:hover { background: var(--brand-soft); color: var(--brand); }
.act-edit.editing { background: var(--green); color: var(--white); }
.act-remove:hover { background: var(--red-soft); color: var(--red); }
.act:disabled { opacity: 0.3; cursor: not-allowed; background: transparent; color: var(--muted); }

/* Empty */
.w-empty { text-align: center; padding: 8px 16px 6px; }

.w-empty-art {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: var(--yellow-soft);
    color: #d99a00;
    box-shadow: 0 0 0 8px rgba(255, 196, 0, 0.08);
}

.w-empty-art svg { width: 24px; height: 24px; }
.w-empty-title { font-size: 14px; font-weight: 750; }
.w-empty-text { margin-top: 2px; font-size: 12.5px; color: var(--muted); }

/* Toasts inside widget */
.w-toasts {
    position: absolute !important;
    top: 12px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    z-index: 40;
}

.w-toast {
    --tone: var(--brand);
    --tone-soft: var(--brand-soft);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    padding: 10px 14px 10px 10px;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow-pop);
    font-size: 13.5px;
    font-weight: 600;
    animation: toastIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.w-toast.hiding { animation: toastOut 0.3s ease-in forwards; }
.w-toast i {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tone-soft);
    color: var(--tone);
    font-style: normal;
    font-weight: 800;
}

.w-toast-success { --tone: var(--green); --tone-soft: var(--green-soft); }
.w-toast-error { --tone: var(--red); --tone-soft: var(--red-soft); }
.w-toast-warning { --tone: var(--orange); --tone-soft: var(--orange-soft); }

@keyframes toastIn {
    from { transform: translateY(-14px) scale(0.96); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@keyframes toastOut {
    to { transform: translateY(-14px) scale(0.96); opacity: 0; }
}

/* Confirm dialog inside widget */
.w-overlay {
    position: absolute !important;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: inherit;
    background: rgba(20, 24, 70, 0.45);
    backdrop-filter: blur(3px);
    z-index: 50;
}

.w-overlay[hidden] { display: none; }

.w-dialog {
    width: 100%;
    max-width: 380px;
    padding: 20px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-pop);
    animation: toastIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.w-dialog-head { display: flex; align-items: center; gap: 12px; }
.w-dialog-head h4 { font-size: 16px; font-weight: 750; }

.w-dialog-msg {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff3e8;
    font-size: 14px;
    font-weight: 600;
}

.w-dialog-q { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

.w-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

.w-btn-soft, .w-btn-orange {
    height: 38px;
    padding: 0 18px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.w-btn-soft { background: var(--soft); color: var(--ink); }
.w-btn-soft:hover { background: var(--line); }
.w-btn-orange { background: linear-gradient(135deg, #ff9a3d 0%, #ff6a1a 100%); color: var(--white); }

/* Chrome-like desktop notification */
.notif {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 360px;
    max-width: calc(100vw - 32px);
    overflow: hidden;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 24px 60px -12px rgba(20, 24, 70, 0.45), 0 0 0 1px rgba(20, 24, 70, 0.06);
    z-index: 100;
    animation: notifIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}

.notif[hidden] { display: none; }

@keyframes notifIn {
    from { transform: translateX(110%); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.notif-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px 0 14px;
    font-size: 12px;
    color: var(--muted);
}

.notif-top img { border-radius: 5px; }

.notif-x {
    margin-left: auto;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 8px;
    background: none;
    color: var(--faint);
    font-size: 18px;
    cursor: pointer;
}

.notif-x:hover { background: var(--soft); color: var(--ink); }

.notif-body { display: flex; gap: 12px; padding: 8px 16px 14px; }
.notif-body img { border-radius: 10px; }
.notif-body b { font-size: 14.5px; }
.notif-body p { margin-top: 2px; font-size: 14px; color: var(--muted); }

.notif-actions { display: flex; border-top: 1px solid var(--line); }

.notif-actions button {
    flex: 1;
    height: 42px;
    border: none;
    background: none;
    font-size: 13.5px;
    font-weight: 650;
    color: var(--brand);
    cursor: pointer;
}

.notif-actions button + button { border-left: 1px solid var(--line); }
.notif-actions button:hover { background: var(--soft); }

/* ================= SECTIONS ================= */
.section { position: relative; padding: 104px 0; }
.section-light { background: var(--soft); }

.section-gradient {
    overflow: hidden;
    background: var(--bg-gradient);
    color: var(--white);
}

.section-head {
    max-width: 680px;
    margin: 0 auto 56px;
    text-align: center;
}

.kicker {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 12.5px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-head h2 {
    margin-top: 16px;
    font-size: 44px;
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }

.section-head-light .kicker { background: rgba(255, 255, 255, 0.16); color: var(--white); }
.section-head-light h2 { text-shadow: 0 4px 24px rgba(20, 24, 90, 0.25); }

.hl {
    background: linear-gradient(transparent 62%, rgba(255, 212, 71, 0.75) 62%, rgba(255, 212, 71, 0.75) 92%, transparent 92%);
    padding: 0 4px;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature {
    padding: 28px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -16px rgba(20, 24, 90, 0.3); }
.feature h3 { margin-top: 20px; font-size: 19px; font-weight: 750; letter-spacing: -0.01em; }
.feature p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* Steps */
.steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.step {
    position: relative;
    height: 100%;
    padding: 22px 22px 26px;
    border-radius: 24px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.step-num {
    position: absolute;
    top: -14px;
    left: 22px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--ink);
    font-weight: 850;
    box-shadow: 0 6px 14px -4px rgba(255, 190, 0, 0.8);
}

.step-art {
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 18px;
    background: var(--soft);
}

.step h3 { margin-top: 20px; font-size: 19px; font-weight: 750; }
.step p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }

.step-arrow { color: rgba(255, 255, 255, 0.85); }
.step-arrow svg { width: 34px; height: 34px; stroke-dasharray: 3 4; }

.mini-input {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 190px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1.5px solid var(--brand);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--brand-soft);
    font-size: 14px;
}

.mini-input svg { width: 15px; height: 15px; color: var(--brand); }
.caret { width: 1.5px; height: 18px; margin-left: -6px; background: var(--brand); animation: blink 1s steps(1) infinite; }

@keyframes blink { 50% { opacity: 0; } }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 230px; }

.chips span {
    padding: 3px 10px;
    border-radius: 999px;
    border: 1.5px solid rgba(79, 107, 255, 0.3);
    background: var(--white);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--brand);
}

.levels { display: flex; flex-direction: column; align-items: center; gap: 7px; }

.lvl {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 130px;
    justify-content: center;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.lvl-up { background: var(--green-soft); color: var(--green); }
.lvl-down { background: var(--red-soft); color: var(--red); }
.lvl-now { background: var(--white); color: var(--ink); box-shadow: var(--shadow-soft); }

.pulse-bell {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a3d, #ff6a1a);
    color: var(--white);
    animation: bigRing 2s ease-out infinite;
}

.pulse-bell svg { width: 34px; height: 34px; animation: shake 2s ease-in-out infinite; }

@keyframes bigRing {
    0% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.45), 0 0 0 0 rgba(255, 122, 26, 0.25); }
    100% { box-shadow: 0 0 0 16px rgba(255, 122, 26, 0), 0 0 0 30px rgba(255, 122, 26, 0); }
}

@keyframes shake {
    0%, 60%, 100% { transform: rotate(0); }
    10%, 30%, 50% { transform: rotate(-14deg); }
    20%, 40% { transform: rotate(14deg); }
}

.sources {
    display: flex;
    margin-top: 48px;
    padding: 18px 22px;
    border-radius: 22px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow-card);
}

.source { flex: 1; display: flex; align-items: center; gap: 12px; }
.source + .source { margin-left: 22px; padding-left: 22px; border-left: 1px solid var(--line); }
.source b { display: block; font-size: 15.5px; }
.source span { display: block; font-size: 13.5px; color: var(--muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }

.faq details {
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary svg {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    padding: 6px;
    border-radius: 9px;
    background: var(--brand-soft);
    color: var(--brand);
    transition: transform 0.25s ease;
}

.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 24px 22px; font-size: 15.5px; color: var(--muted); }

/* CTA */
.section-cta { padding-top: 0; background: var(--soft); }

.cta {
    position: relative;
    overflow: hidden;
    padding: 72px 32px;
    border-radius: 36px;
    background: var(--bg-gradient);
    color: var(--white);
    text-align: center;
    box-shadow: var(--shadow-pop);
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.08) 0 1.5px, transparent 1.5px 44px);
}

.cta > * { position: relative; }

.cta-icon {
    border-radius: 22px;
    box-shadow: 0 18px 36px -10px rgba(20, 24, 90, 0.6), 0 0 0 8px rgba(255, 255, 255, 0.16);
    animation: float 4s ease-in-out infinite;
}

@keyframes float { 50% { transform: translateY(-8px); } }

.cta h2 {
    margin-top: 28px;
    font-size: 46px;
    font-weight: 850;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.cta p { margin: 14px 0 32px; font-size: 18px; color: rgba(255, 255, 255, 0.85); }

.cta .sparkle { position: absolute; }
.cta-sparkle-1 { width: 40px; height: 40px; top: 50px; left: 16%; }
.cta-sparkle-2 { width: 22px; height: 22px; bottom: 60px; right: 18%; fill: var(--white); animation-delay: 1.2s; }

/* ================= WELCOME PAGE ================= */
.hero-welcome { padding-bottom: 56px; }
.hero-welcome .hero-grid { padding-top: 52px; }
.hero-welcome h1 { font-size: 52px; }
.hero-welcome .lead { max-width: 600px; }

.welcome-section { padding: 56px 0 88px; }
.welcome-container { max-width: 960px; }

.welcome-steps {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.welcome-card {
    padding: 28px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.welcome-card-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.welcome-card-copy h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.welcome-card-copy p {
    margin-top: 6px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--muted);
}

.welcome-card-copy strong { color: var(--ink); font-weight: 700; }

.welcome-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    margin: 0 2px;
    border-radius: 999px;
    background: var(--brand);
    color: var(--white);
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1;
    vertical-align: 1px;
}

.welcome-shot {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 12px 28px -14px rgba(20, 24, 90, 0.2);
}

.welcome-shot img {
    display: block;
    width: 100%;
    height: auto;
}

/* Footer */
.footer { padding: 32px 0 40px; background: var(--soft); border-top: 1px solid var(--line); }

.footer-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    color: var(--muted);
}

.brand-dark { color: var(--ink); font-size: 16px; }
.footer-inner p { flex: 1; }
.footer-inner a.store-link { font-weight: 650; color: var(--brand); }

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .step-arrow { justify-self: center; transform: rotate(90deg); }
    .sources { flex-direction: column; gap: 16px; }
    .source + .source { margin: 0; padding: 16px 0 0; border-left: none; border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav .btn { margin-left: auto; }
    .hero h1 { font-size: 42px; }
    .hero h1 .sparkle-lg { width: 26px; height: 26px; right: -10px; top: -22px; }
    .hero h1 .sparkle-sm { display: none; }
    .lead { font-size: 17px; }
    .section { padding: 72px 0; }
    .section-head h2, .cta h2 { font-size: 32px; }
    .features { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }

    .hero-welcome { padding-bottom: 40px; }
    .hero-welcome .hero-grid { padding-top: 36px; }
    .hero-welcome h1 { font-size: 36px; }
    .welcome-section { padding: 36px 0 64px; }
    .welcome-card { padding: 20px; border-radius: 20px; }
    .welcome-card-head { gap: 12px; margin-bottom: 16px; }
    .welcome-card-head .tile-lg { width: 42px; height: 42px; border-radius: 13px; }
    .welcome-card-head .tile-lg svg { width: 21px; height: 21px; }
    .welcome-card-copy h2 { font-size: 19px; }
    .welcome-card-copy p { font-size: 15px; }
    .welcome-shot { border-radius: 12px; }

    .w { width: auto; min-width: 0; margin: 0; }
    .w-form { grid-template-columns: 1fr 1fr; }
    .w-field-symbol { grid-column: span 2; }
    .w-btn { width: 100%; }
    .w-notifications-toggle { padding: 5px 7px; font-size: 10px; }

    /* Alerts table becomes a list of compact cards */
    .w-table, .w-table tbody { display: block; margin: 0; }
    .w-table thead { display: none; }
    .w-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
        grid-template-areas: "sym price act" "low high act";
        align-items: center;
        row-gap: 4px;
        margin-bottom: 6px;
        padding: 8px 10px;
        border-radius: 14px;
        background: var(--soft);
    }
    .w-table tr:hover { background: #edf0fa; }
    .w-table tr.is-triggered { background: #fff3e8; }
    .w-table tr.is-muted { background: #eef0f4; }
    .w-table td { height: auto; padding: 2px 0; background: transparent !important; border-radius: 0 !important; }
    .w-table td:nth-child(1) { grid-area: sym; }
    .w-table td:nth-child(2) { grid-area: price; }
    .w-table td:nth-child(3) { grid-area: low; padding-left: 32px; }
    .w-table .status { width: 24px; height: 24px; margin-right: 8px; border-radius: 8px; }
    .w-table .status svg { width: 13px; height: 13px; }
    .w-table .c-source { max-width: 150px; }
    .w-table td:nth-child(4) { grid-area: high; }
    .w-table td:nth-child(5) { grid-area: act; }
    .w-table .c-level.editing { padding: 4px 8px; margin-right: 8px; }
}

@media (max-width: 440px) {
    .btn-lg { width: 100%; }
    .w-demo-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
