:root {
    --c-bg: #f5f7fa;
    --c-side: #0f1b2d;
    --c-side-2: #0a1422;
    --c-text: #1f2937;
    --c-muted: #6b7280;
    --c-border: #e5e7eb;
    --c-primary: #2463eb;
    --c-primary-d: #1d4ed8;
    --c-primary-l: #eff4ff;
    --c-card: #ffffff;
    --c-green: #16a34a;
    --c-red: #dc2626;
    --c-orange: #ea580c;
    --c-purple: #7c3aed;
    --c-cyan: #0891b2;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(15, 27, 45, .04), 0 1px 2px rgba(15, 27, 45, .03);
    --shadow-md: 0 4px 16px rgba(15, 27, 45, .08);
    --sidebar-w: 220px;
    --topbar-h: 58px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Microsoft Yahei", "微软雅黑", "Segoe UI", Roboto, sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis: none;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
code { font-family: "Cascadia Code", Consolas, Monaco, monospace; background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 12px; color: #475569; }
img { max-width: 100%; height: auto; }
.layout { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-w);
    background: var(--c-side);
    color: #9aa7bd;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform .25s ease;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 18px 18px; border-bottom: 1px solid rgba(255,255,255,.06); color: #fff; }
.brand-logo { width: 30px; height: 30px; background: var(--c-primary); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-logo svg { width: 18px; height: 18px; color: #fff; }
.brand-name { color: #fff; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { flex: 1; padding: 10px 0; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 18px; color: #9aa7bd; font-size: 14px; transition: .15s; border-left: 3px solid transparent; cursor: pointer; }
.nav-item:hover { background: rgba(255,255,255,.04); color: #fff; }
.nav-item.active { background: rgba(36,99,235,.14); color: #fff; border-left-color: var(--c-primary); }
.ic { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.nav-item.active .ic { opacity: 1; }
.sidebar-foot { border-top: 1px solid rgba(255,255,255,.06); padding: 12px 16px; }
.user-mini { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--c-primary), #4f8ef7); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 500; text-transform: uppercase; flex-shrink: 0; font-size: 13px; }
.user-name { color: #fff; font-size: 13px; font-weight: 500; }
.logout-link { color: #7d8a9e; font-size: 12px; }
.logout-link:hover { color: #fff; }
.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }
.topbar { height: var(--topbar-h); background: #fff; border-bottom: 1px solid var(--c-border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 10; }
.topbar-title { font-size: 16px; font-weight: 500; color: #111827; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.site-select { height: 34px; padding: 0 10px; border: 1px solid var(--c-border); border-radius: 6px; background: #fff; font-size: 13px; max-width: 220px; color: #374151; }
.content { padding: 22px 24px; flex: 1; }
.hamburger {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.hamburger svg { width: 20px; height: 20px; color: #374151; }
.sidebar-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 90;
}
.card { background: var(--c-card); border-radius: var(--radius); border: 1px solid var(--c-border); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px; }
.card-title { font-size: 14px; font-weight: 500; color: #1f2937; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.card-title .more { font-size: 12px; color: var(--c-primary); font-weight: 400; }
.card-title .more:hover { text-decoration: underline; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.kpi { background: #fff; border-radius: var(--radius); border: 1px solid var(--c-border); box-shadow: var(--shadow); padding: 18px 20px; }
.kpi-label { font-size: 12px; color: var(--c-muted); display: flex; align-items: center; gap: 7px; font-weight: 500; }
.kpi-value { font-size: 26px; font-weight: 500; margin: 8px 0 2px; color: #111827; letter-spacing: -.5px; }
.kpi-sub { font-size: 12px; color: var(--c-muted); }
.kpi-up { color: var(--c-green); }
.kpi-down { color: var(--c-red); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-blue { background: var(--c-primary); }
.dot-green { background: var(--c-green); }
.dot-orange { background: var(--c-orange); }
.dot-cyan { background: var(--c-cyan); }
.dot-purple { background: var(--c-purple); }
table { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--c-border); }
.tbl th { color: var(--c-muted); font-weight: 500; background: #f9fafb; white-space: nowrap; }
.tbl td.num, .tbl th.num { white-space: nowrap; }
.tbl .badge { white-space: nowrap; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: #f9fafb; }
.muted { color: var(--c-muted); }
.num { text-align: right; font-family: Consolas, "Cascadia Code", Monaco, monospace; font-variant-numeric: tabular-nums; }

.tbl a, .dash-table a, .ref-link, .url a { color: #2563eb; text-decoration: none; }
.tbl a:hover, .dash-table a:hover, .ref-link:hover, .url a:hover { text-decoration: underline; }
.bar-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.bar-label { width: 160px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #374151; flex-shrink: 0; }
.bar-track { flex: 1; height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; min-width: 0; }
.bar-fill { height: 100%; background: var(--c-primary); border-radius: 4px; }
.bar-val { width: 90px; text-align: right; font-size: 12px; color: var(--c-muted); font-family: Consolas, "Cascadia Code", Monaco, monospace; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 7px; border: 1px solid var(--c-border); background: #fff; color: #374151; font-size: 14px; cursor: pointer; transition: .15s; white-space: nowrap; font-family: inherit; }
.btn:hover { background: #f9fafb; }
.btn-primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-d); }
.btn-danger { color: var(--c-red); border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { height: 46px; padding: 0 28px; font-size: 15px; border-radius: 8px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; color: #374151; margin-bottom: 6px; font-weight: 500; }
.form-control { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--c-border); border-radius: 7px; font-size: 14px; background: #fff; color: #111827; transition: .15s; font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(36,99,235,.12); }
textarea.form-control { height: auto; padding: 10px 12px; resize: vertical; }
.alert { padding: 11px 14px; border-radius: 7px; margin-bottom: 14px; font-size: 13px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f1b2d 0%, #1a2b45 100%); padding: 20px; }
.auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: 14px; padding: 36px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.auth-logo { text-align: center; margin-bottom: 6px; }
.auth-logo svg { width: 40px; height: 40px; }
.auth-title { text-align: center; font-size: 20px; font-weight: 600; margin-bottom: 22px; color: #111827; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--c-muted); }
.auth-foot a { color: var(--c-primary); }
.auth-divider { height: 1px; background: var(--c-border); margin: 16px 0; }
.code-block { background: #0f172a; color: #e2e8f0; padding: 14px 16px; border-radius: 8px; font-family: "Cascadia Code", Consolas, Monaco, monospace; font-size: 12.5px; line-height: 1.6; overflow-x: auto; white-space: pre; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-orange { background: #ffedd5; color: #9a3412; }

.chart-wrap { position: relative; height: 280px; }
.chart-wrap-sm { position: relative; height: 200px; }
.empty { text-align: center; padding: 40px 20px; color: var(--c-muted); font-size: 13px; }
.empty svg { width: 40px; height: 40px; margin-bottom: 10px; opacity: .35; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--c-border); border-radius: 6px; font-size: 13px; color: #475569; }
.pagination a:hover { background: #f9fafb; }
.pagination .cur { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

.range-tabs { display: inline-flex; border: 1px solid var(--c-border); border-radius: 7px; overflow: hidden; margin-bottom: 14px; background: #fff; flex-wrap: wrap; }
.range-tabs a { padding: 6px 14px; font-size: 13px; color: #475569; border-right: 1px solid var(--c-border); }
.range-tabs a:last-child { border-right: none; }
.range-tabs a:hover { background: #f9fafb; }
.range-tabs a.active { background: var(--c-primary); color: #fff; }
.admin-subnav { background: #fff; border-bottom: 1px solid var(--c-border); margin-bottom: 18px; overflow-x: auto; }
.admin-subnav-inner { display: flex; align-items: center; padding: 0 24px; gap: 0; white-space: nowrap; }
.admin-subnav-inner > a, .admin-subnav-inner > span { font-size: 13.5px; color: #6b7280; padding: 0 16px; height: 42px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; transition: .15s; flex-shrink: 0; }
.admin-subnav-inner > a:hover { color: var(--c-primary); }
.admin-subnav-inner > a.active { color: var(--c-primary); border-bottom-color: var(--c-primary); font-weight: 500; }
.admin-subnav-tag { margin-left: auto; font-size: 12px; color: #9ca3af; padding: 0 12px; background: #f3f4f6; border-radius: 4px; height: 24px; margin-right: 12px; }
.admin-subnav-back { border-bottom: none !important; color: #6b7280 !important; font-size: 13px !important; padding: 0 8px !important; }
.admin-subnav-back:hover { color: var(--c-primary) !important; }
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-border); }
.site-nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; }
.site-nav .logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: #111827; }
.site-nav .logo .logo-box { width: 32px; height: 32px; background: var(--c-primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.site-nav .logo .logo-box svg { width: 18px; height: 18px; color: #fff; }
.site-nav .nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav .nav-links a { font-size: 14px; color: #475569; }
.site-nav .nav-links a:hover { color: var(--c-primary); }
.site-nav .nav-cta { display: flex; gap: 10px; margin-left: 28px; }

.hero { background: linear-gradient(135deg, #0f1b2d 0%, #16356b 100%); color: #fff; padding: 90px 24px 100px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgba(36,99,235,.25), transparent 40%), radial-gradient(circle at 80% 70%, rgba(124,58,237,.2), transparent 40%); }
.hero-inner { max-width: 820px; margin: 0 auto; position: relative; }
.hero h1 { font-size: 44px; font-weight: 700; letter-spacing: -1px; margin-bottom: 18px; line-height: 1.2; }
.hero .sub { font-size: 18px; color: #b8c6e0; margin-bottom: 34px; line-height: 1.7; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-light { background: #fff; color: #1d4ed8; border: none; }
.btn-light:hover { background: #f1f5f9; }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.hero-stats { display: flex; gap: 50px; justify-content: center; margin-top: 50px; flex-wrap: wrap; }
.hero-stats .hs b { font-size: 30px; font-weight: 700; display: block; }
.hero-stats .hs span { font-size: 13px; color: #9fb0d4; }

.section { max-width: 1180px; margin: 0 auto; padding: 80px 24px; }
.section-title { text-align: center; font-size: 30px; font-weight: 600; color: #111827; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--c-muted); font-size: 15px; margin-bottom: 50px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat { background: #fff; border: 1px solid var(--c-border); border-radius: 12px; padding: 28px 24px; transition: .2s; }
.feat:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #c7d8f8; }
.feat-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--c-primary-l); color: var(--c-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feat-ic svg { width: 22px; height: 22px; }
.feat h3 { font-size: 16px; font-weight: 500; margin-bottom: 8px; color: #111827; }
.feat p { font-size: 13.5px; color: var(--c-muted); line-height: 1.7; }

.section-gray { background: #f8fafc; }
.section-gray .section { padding-top: 70px; padding-bottom: 70px; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step { position: relative; }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--c-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; margin-bottom: 16px; }
.step h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--c-muted); line-height: 1.7; }

.cta-band { background: linear-gradient(135deg, #16356b, #2463eb); color: #fff; text-align: center; padding: 70px 24px; }
.cta-band h2 { font-size: 30px; font-weight: 600; margin-bottom: 12px; }
.cta-band p { color: #d6e2f7; margin-bottom: 28px; font-size: 15px; }

.site-footer { background: #0f1b2d; color: #9aa7bd; padding: 50px 24px 24px; }
.site-footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.site-footer .foot-brand { color: #fff; font-weight: 600; font-size: 16px; margin-bottom: 10px; }
.site-footer .foot-col h4 { color: #fff; font-size: 13px; margin-bottom: 12px; font-weight: 600; }
.site-footer .foot-col a { display: block; font-size: 13px; margin-bottom: 8px; color: #9aa7bd; }
.site-footer .foot-col a:hover { color: #fff; }
.site-footer .foot-bottom { max-width: 1180px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; text-align: center; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .step-grid { grid-template-columns: repeat(2, 1fr); }
    .site-nav .nav-links { gap: 16px; }
    .site-select { max-width: 160px; }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,.3);
    }
    .sidebar.open + .sidebar-mask { display: block; }

    .main { margin-left: 0; }
    .hamburger { display: inline-flex; }
    .site-nav-inner { position: relative; }
    .site-nav .nav-links,
    .site-nav .nav-cta {
        position: absolute;
        top: 100%;
        right: 0;
        background: #fff;
        border: 1px solid var(--c-border);
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,.12);
        padding: 10px;
        display: none;
        flex-direction: column;
        gap: 0;
        min-width: 140px;
        z-index: 60;
    }
    .site-nav .nav-links { right: auto; left: 0; min-width: 220px; }
    .site-nav .nav-links.show,
    .site-nav .nav-cta.show { display: flex; }
    /* 合并面板：登录/注册按钮块移入导航面板后的嵌套样式 */
    .site-nav .nav-links .nav-cta {
        position: static; display: block; background: none; border: none;
        box-shadow: none; border-top: 1px solid #f3f4f6; margin-top: 6px;
        padding: 10px 4px 2px; min-width: 0; gap: 8px;
    }
    .site-nav .nav-links .nav-cta .btn { width: 100%; justify-content: center; }
    .site-nav .nav-links a {
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 6px;
        gap: 0;
    }
    .site-nav .nav-links a:hover { background: #f3f4f6; color: var(--c-primary); }
    .site-nav .nav-cta { padding: 12px; gap: 8px; }
    .site-nav .nav-cta .btn { width: 100%; justify-content: center; }
    .site-hamburger { display: inline-flex; margin-left: auto; }
    #faq > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    .topbar { padding: 0 14px; height: 52px; gap: 10px; }
    .topbar-title { font-size: 15px; }
    .site-select { max-width: 120px; }
    .topbar-right .btn-add-site { display: none; } /* 手机隐藏"添加网站"按钮，挤在导航里 */
    .content { padding: 14px; }
    .card { padding: 14px; margin-bottom: 14px; border-radius: 9px; }
    .card-title { font-size: 13px; margin-bottom: 10px; }
    .grid-4, .grid-3, .grid-2,
    .feat-grid, .step-grid { grid-template-columns: 1fr; gap: 12px; }
    .hero { padding: 60px 20px 70px; }
    .hero h1 { font-size: 28px; }
    .hero .sub { font-size: 15px; margin-bottom: 24px; }
    .hero-stats { gap: 30px; margin-top: 36px; }
    .hero-stats .hs b { font-size: 24px; }
    .section { padding: 50px 20px; }
    .section-title { font-size: 24px; margin-bottom: 6px; }
    .section-sub { margin-bottom: 36px; font-size: 14px; }
    .site-nav .nav-links { gap: 14px; font-size: 13px; }
    .site-nav-inner { padding: 0 16px; height: 52px; }
    .auth-wrap { padding: 12px; }
    .auth-card { padding: 24px 20px; border-radius: 12px; }
    .admin-subnav-inner { padding: 0 14px; }
    .btn { height: 34px; padding: 0 12px; font-size: 13px; }
    .btn-lg { height: 44px; font-size: 14px; padding: 0 22px; }
    .form-control { height: 36px; font-size: 14px; }
    .range-tabs a { padding: 5px 10px; font-size: 12.5px; }
}

@media (max-width: 520px) {
    .tbl-visitors th:nth-child(5),  /* IP */
    .tbl-visitors td:nth-child(5),
    .tbl-visitors th:nth-child(6),  /* 浏览器 */
    .tbl-visitors td:nth-child(6),
    .tbl-visitors th:nth-child(7),  /* 来路网站 */
    .tbl-visitors td:nth-child(7),
    .tbl-visitors th:nth-child(9),  /* 关键词 */
    .tbl-visitors td:nth-child(9) { display: none; }

    .tbl th, .tbl td { padding: 8px 8px; font-size: 12.5px; }
    .modal-box { width: 96vw; max-height: 92vh; }
    .vd-grid { grid-template-columns: 1fr; }

    .hero-stats { gap: 20px; }
    .site-footer { padding: 36px 20px 20px; }
}
input, select, textarea { font-size: 16px; }

/* ===== Flash / Toast / Confirm ===== */
#flashBar { position: fixed; top: 18px; right: 18px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.flash-item { padding: 11px 18px; border-radius: 8px; font-size: 13.5px; box-shadow: 0 4px 16px rgba(0,0,0,.12); min-width: 220px; animation: flashIn .25s ease; transition: opacity .3s; pointer-events: auto; }
.flash-item.flash-fade { opacity: 0; }
.flash-ok { background: #dcfce7; color: #166534; border-left: 3px solid #22c55e; }
.flash-err { background: #fee2e2; color: #991b1b; border-left: 3px solid #ef4444; }
.flash-info { background: #dbeafe; color: #1e40af; border-left: 3px solid #3b82f6; }
@keyframes flashIn { from { transform: translateX(30px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }

#toastBox { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast-item { padding: 12px 24px; border-radius: 8px; font-size: 14px; background: rgba(17,24,39,.92); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); animation: toastIn .2s ease; transition: opacity .3s; text-align: center; }
.toast-item.toast-fade { opacity: 0; }
.toast-ok { background: rgba(22,163,74,.92); }
.toast-err { background: rgba(220,38,38,.92); }
@keyframes toastIn { from { transform: scale(.9); opacity: 0 } to { transform: scale(1); opacity: 1 } }

#confirmBox { position: fixed; inset: 0; background: rgba(15,27,45,.55); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.confirm-modal { background: #fff; border-radius: 12px; padding: 28px 26px 22px; width: 360px; max-width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.2); text-align: center; animation: confirmIn .2s ease; }
.confirm-icon { font-size: 36px; margin-bottom: 6px; }
.confirm-title { font-size: 16px; font-weight: 600; color: #111827; margin-bottom: 6px; }
.confirm-msg { font-size: 13.5px; color: #6b7280; margin-bottom: 20px; line-height: 1.6; }
.confirm-btns { display: flex; gap: 10px; justify-content: center; }
@keyframes confirmIn { from { transform: scale(.9); opacity: 0 } to { transform: scale(1); opacity: 1 } }
