/**
 * CoinWin 终端页壳：与 login.html 同源的弱化背景 + 玻璃卡增强。
 * 使用方式：<body class="cw-terminal-shell"> + 页面内原有 .header-full / .glass-card。
 * 嵌入模式（如 api_key embedded）请保留 body.embedded，壳层会自动去掉重背景。
 */
:root {
    --cw-bg-deep: #030508;
    --cw-primary: #00d2ff;
    --cw-accent: #00f5a0;
    --cw-accent-mag: #b84dff;
}

body.cw-terminal-shell {
    position: relative;
    background-color: var(--cw-bg-deep) !important;
    background-image:
        radial-gradient(ellipse 80% 45% at 15% -5%, rgba(0, 210, 255, 0.14), transparent 52%),
        radial-gradient(ellipse 55% 50% at 100% 25%, rgba(184, 77, 255, 0.09), transparent 48%),
        radial-gradient(ellipse 50% 42% at 50% 105%, rgba(0, 245, 160, 0.08), transparent 45%),
        radial-gradient(circle at 50% -10%, rgba(30, 40, 55, 0.95), transparent 55%),
        radial-gradient(circle at 50% 120%, rgba(0, 0, 0, 0.45), transparent 45%) !important;
    background-attachment: fixed;
}

body.cw-terminal-shell.embedded {
    background: transparent !important;
    background-image: none !important;
    background-attachment: scroll !important;
}

body.cw-terminal-shell .header-full {
    border-bottom-color: rgba(0, 210, 255, 0.16) !important;
}

body.cw-terminal-shell .header-full .logo {
    text-shadow: 0 0 28px rgba(0, 210, 255, 0.2);
}

body.cw-terminal-shell .glass-card {
    background: rgba(12, 18, 28, 0.78) !important;
    border: 1px solid rgba(0, 210, 255, 0.14) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 24px 48px -20px rgba(0, 0, 0, 0.65),
        0 0 48px -18px rgba(0, 210, 255, 0.12);
}

body.cw-terminal-shell .ver {
    color: rgba(148, 163, 184, 0.92) !important;
}

/* 马丁等使用 .toolbar 顶栏的页面 */
body.cw-terminal-shell .toolbar.page-head,
body.cw-terminal-shell header.page-head {
    border-bottom-color: rgba(0, 210, 255, 0.14);
}

/* 马丁风控事件分析页（与 admin-theme 混用） */
body.martin-risk-shell .toolbar,
body.martin-risk-shell .panel,
body.martin-risk-shell .table-wrap {
    background: rgba(12, 18, 28, 0.82) !important;
    border-color: rgba(0, 210, 255, 0.14) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 0 40px -22px rgba(0, 210, 255, 0.1);
}

body.martin-risk-shell .hero h1 {
    text-shadow: 0 0 22px rgba(0, 210, 255, 0.18);
}
