/*
=========================================================
Market UI v2 — Global Layer System
Path: public/assets/marketv2/layouts/core/layers.css

Purpose:
Defines the global stacking context hierarchy for the entire UI system.

Rules:
- Controls z-index only
- No colors
- No layout logic
- No component styling
- No theme tokens
=========================================================
*/

:root {

    /* =====================================================
       Base document flow
    ===================================================== */

    --z-base: 0;



    /* =====================================================
       Component surfaces
       (cards, panels, sections)
    ===================================================== */

    --z-surface: 10;
    --z-surface-hover: 20;
    --z-surface-active: 30;
    --z-surface-focus: 40;



    /* =====================================================
       Sticky UI
       (sticky headers, sticky toolbars)
    ===================================================== */

    --z-sticky: 200;



    /* =====================================================
       Navigation chrome
       (topbar / sidebar overlays when needed)
    ===================================================== */

    --z-navigation: 400;



    /* =====================================================
       Floating UI
       (dropdown / select / autocomplete / menus)
    ===================================================== */

    --z-dropdown: 1000;



    /* =====================================================
       Popovers
       (context panels, inline floating tools)
    ===================================================== */

    --z-popover: 1050;



    /* =====================================================
       Modal system
    ===================================================== */

    --z-backdrop: 1080;

    --z-fullscreen: 1100;

    --z-modal: 1200;



    /* =====================================================
       Debug / emergency override layer
    ===================================================== */

    --z-debug: 9999;

}