/* ══════════════════════════════════════════════════════
   Delvantic UI — Stock Override Styles
   Loads after main.css. Overrides emerald theme to
   neutral grays + #198754 green for all stock public pages.
   ══════════════════════════════════════════════════════ */

/* ── Theme Overrides ───────────────────────────────── */
:root {
    --theme-primary:          #198754;
    --theme-primary-light:    #20a368;
    --theme-primary-dark:     #146c43;
    --theme-primary-rgb:      25, 135, 84;
    --theme-gradient-primary: #198754;
    --theme-bg-primary:       #ffffff;
    --theme-bg-secondary:     #f8f9fa;
    --theme-bg-tertiary:      #f3f4f6;
    --theme-text-primary:     #1f2937;
    --theme-text-secondary:   #6b7280;
    --theme-text-muted:       #9ca3af;
    --theme-border:           #e5e7eb;
    --theme-border-light:     #f3f4f6;

    /* Chart palette */
    --sc-blue:        #1e40af;
    --sc-teal:        #0d9488;
    --sc-amber:       #d97706;
    --sc-green:       #16a34a;
    --sc-red:         #dc2626;
    --sc-purple:      #7c3aed;
    --sc-indigo:      #4f46e5;
    --sc-cyan:        #0891b2;
    --sc-revenue:     #1e40af;
    --sc-gross:       #0d9488;
    --sc-operating:   #d97706;
    --sc-net:         #16a34a;
    --sc-loss:        #dc2626;
    --sc-fcf:         #7c3aed;
    --sc-assets:      #4f46e5;
    --sc-liabilities: #dc2626;
    --sc-equity:      #0d9488;
    --sc-health:      #16a34a;
    --sc-positive:    #198754;
    --sc-negative:    #dc3545;
    --sc-muted:       #6c757d;
    --sc-text:        #1f2937;
    --sc-text-light:  #6b7280;
    --sc-border:      #e5e7eb;
    --sc-bg-subtle:   #f8f9fa;
}

/* ── Buttons ───────────────────────────────────────── */
.dv-btn {
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 28px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
    line-height: 1.4;
}

.dv-btn-primary {
    background: #198754;
    color: #fff;
    border: 1px solid #198754;
}

.dv-btn-primary:hover {
    background: #146c43;
    border-color: #146c43;
    color: #fff;
    text-decoration: none;
}

.dv-btn-secondary {
    background: #fff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}

.dv-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #9ca3af;
    color: #1f2937;
    text-decoration: none;
}

.dv-btn-outline {
    background: transparent;
    color: #198754;
    border: 1px solid #198754;
}

.dv-btn-outline:hover {
    background: #198754;
    color: #fff;
    text-decoration: none;
}

.dv-btn-sm {
    font-size: 13px;
    padding: 6px 18px;
}

.dv-btn-lg {
    font-size: 16px;
    padding: 14px 36px;
}

/* Gold "Gem" CTA — the primary conversion treatment. Mirrors the gold gem-chip
   gradient on the stock homepage, tying signup/primary actions to the Gem brand
   motif. In use: nav "Get Started", stocks register "Create Account".
   Skin only (gradient/color/shadow/motion) — pair with a sizing class
   (.dv-btn / .dv-btn-signup / .st-login-btn) for padding + border-radius. */
.dv-btn-gem {
    background: linear-gradient(145deg, #f7cd5c 0%, #e0a526 55%, #c8870f 100%);
    border: 0;
    color: #3a2a08;
    font-weight: 700;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55),
                0 2px 6px rgba(168, 120, 10, 0.4);
    transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
}

.dv-btn-gem:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    color: #3a2a08;
    text-decoration: none;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55),
                0 4px 12px rgba(168, 120, 10, 0.5);
}

.dv-btn-gem:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 2px rgba(120, 84, 6, 0.4);
}

.dv-btn-gem:disabled,
.dv-btn-gem.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    filter: none;
}
