/* ==========================================================================
   nc-pages — redesign overrides per page. Подключается ПОСЛЕ основных стилей страницы.
   Палитра не меняется: только глубина, стекло, свет, анимации.
   Секции: [A] panel (index, admin_accounts)  [B] sait  [C] auth/admin (sait)
           [D] strik  [E] kuky*  [F] cut  [G] wheel  [H] ext_install  [I] tg
   ========================================================================== */

/* общие кнопки-«шиммер» для страниц с .btn */
.nc-p-panel .btn, .nc-p-sait .btn, .nc-p-sait .topbar-btn, .nc-p-auth .btn-primary, .nc-p-auth .btn-ghost,
.nc-p-panel .modal-submit-btn, .nc-p-panel .add-streamer-btn, .nc-p-panel .pagination button {
    position: relative; overflow: hidden; isolation: isolate;
}
.nc-p-panel .btn::after, .nc-p-sait .btn::after, .nc-p-sait .topbar-btn::after, .nc-p-auth .btn-primary::after,
.nc-p-auth .btn-ghost::after, .nc-p-panel .modal-submit-btn::after, .nc-p-panel .add-streamer-btn::after {
    content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-18deg); transition: left 0.8s var(--nc-ease); pointer-events: none;
}
.nc-p-panel .btn:hover::after, .nc-p-sait .btn:hover::after, .nc-p-sait .topbar-btn:hover::after, .nc-p-auth .btn-primary:hover::after,
.nc-p-auth .btn-ghost:hover::after, .nc-p-panel .modal-submit-btn:hover::after, .nc-p-panel .add-streamer-btn:hover::after { left: 130%; }

/* ==========================================================================
   [A] PANEL — index.html, admin_accounts.html
   ========================================================================== */
.nc-p-panel .app-bg { background: transparent; }
.nc-p-panel .topbar {
    background: rgba(10, 10, 10, 0.55);
    -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 12px 40px -22px #000;
    animation: nc-bar-in 0.8s var(--nc-ease) both;
}
@keyframes nc-bar-in { from { transform: translateY(-100%); opacity: 0; } }
.nc-p-panel .brand-logo {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 26px rgba(255, 255, 255, 0.2);
    transition: transform 0.6s var(--nc-spring), box-shadow 0.4s;
}
.nc-p-panel .topbar-brand:hover .brand-logo { transform: rotate(-10deg) scale(1.08); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 36px rgba(255, 255, 255, 0.4); }
.nc-p-panel .btn { transition: transform 0.3s var(--nc-ease), background 0.25s, border-color 0.25s, box-shadow 0.4s var(--nc-ease), color 0.2s, filter 0.2s; }
.nc-p-panel .btn:hover { transform: translateY(-2px); }
.nc-p-panel .btn:active { transform: translateY(0) scale(0.96); transition-duration: 0.1s; }
.nc-p-panel .btn-primary:hover { filter: none; background: #fff; box-shadow: 0 12px 34px -10px rgba(255, 255, 255, 0.55); }
.nc-p-panel .btn-ghost:hover, .nc-p-panel .btn-danger:hover, .nc-p-panel .btn-link:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.1); }
.nc-p-panel .btn-glow { animation: nc-btn-breathe 3.2s ease-in-out infinite; }
@keyframes nc-btn-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.28); } 50% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } }

/* --- landing --- */
.nc-p-panel .landing-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)), rgba(14, 14, 14, 0.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 40px 100px -30px #000, 0 0 140px -20px rgba(255, 255, 255, 0.1);
    animation: nc-card-pop 1s var(--nc-spring) both;
}
@keyframes nc-card-pop { from { opacity: 0; transform: translateY(40px) scale(0.94); filter: blur(10px); } }
.nc-p-panel .landing-card::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: conic-gradient(from var(--nc-ang), transparent 0 55%, rgba(255, 255, 255, 0.6) 78%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: nc-spin 8s linear infinite;
}
.nc-p-panel .landing-card > * { animation: nc-rise 0.9s var(--nc-ease) both; }
.nc-p-panel .landing-card > :nth-child(1) { animation-delay: 0.15s; }
.nc-p-panel .landing-card > :nth-child(2) { animation-delay: 0.25s; }
.nc-p-panel .landing-card > :nth-child(3) { animation-delay: 0.32s; }
.nc-p-panel .landing-card > :nth-child(4) { animation-delay: 0.4s; }
.nc-p-panel .landing-card > :nth-child(5) { animation-delay: 0.48s; }
.nc-p-panel .landing-card > :nth-child(6) { animation-delay: 0.56s; }
.nc-p-panel .landing-card > :nth-child(7) { animation-delay: 0.64s; }
.nc-p-panel .landing-card > .logo-3d-wrap { animation: nc-rise 0.9s var(--nc-ease) 0.15s both, logoFloat 4s ease-in-out 1.2s infinite; }
.nc-p-panel .logo-3d-wrap::before {
    content: ""; position: absolute; inset: -8px; border-radius: 50%; pointer-events: none;
    background: conic-gradient(from var(--nc-ang), transparent 0 40%, rgba(255, 255, 255, 0.85) 75%, transparent 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
    animation: nc-spin 5s linear infinite;
}
.nc-p-panel .logo-3d-wrap::after {
    content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); opacity: 0; pointer-events: none;
    animation: nc-ring-out 3.4s var(--nc-ease) infinite;
}
@keyframes nc-ring-out { from { transform: scale(0.9); opacity: 0.6; } to { transform: scale(1.5); opacity: 0; } }
.nc-p-panel .landing-title {
    background: linear-gradient(100deg, #8c8c8c 0%, #ffffff 30%, #f5f5f5 45%, #8c8c8c 70%, #ffffff 100%);
    background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: nc-rise 0.9s var(--nc-ease) 0.25s both, nc-shimmer 7s linear 1s infinite;
}
.nc-p-panel .landing-stat {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)); border-color: rgba(255, 255, 255, 0.09);
    transition: transform 0.5s var(--nc-ease), border-color 0.3s, box-shadow 0.5s var(--nc-ease);
}
.nc-p-panel .landing-stat:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.28); box-shadow: 0 22px 44px -22px #000; }
.nc-p-panel .landing-stat-value { color: #f5f5f5; font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(255, 255, 255, 0.25); }
.nc-p-panel .landing-status { border: 1px solid rgba(255, 255, 255, 0.08); }
.nc-p-panel .landing-status .status-dot { position: relative; }
.nc-p-panel .landing-status.online .status-dot::after, .nc-p-panel .landing-status.degraded .status-dot::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0;
    animation: nc-pulse 2.2s var(--nc-ease) infinite;
}
.nc-p-panel .landing-status.online { color: #86efac; } .nc-p-panel .landing-status.online #landing-status-text { color: #d4d4d4; }
.nc-p-panel .landing-status.degraded { color: var(--nc-warn); } .nc-p-panel .landing-status.degraded #landing-status-text { color: #d4d4d4; }
.nc-p-panel .btn-discord:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); }

/* --- dashboard --- */
.nc-p-panel .streamers-sidebar, .nc-p-panel .stats-sidebar, .nc-p-panel .streamers-management, .nc-p-panel .table-container {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008)), rgba(14, 14, 14, 0.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 60px -30px #000;
}
.nc-p-panel .streamers-sidebar h3, .nc-p-panel .stats-sidebar h3 { font-family: "IBM Plex Mono", monospace; letter-spacing: 0.16em; font-size: 0.68rem; }
.nc-p-panel .streamer-item { position: relative; transition: transform 0.4s var(--nc-ease), background 0.25s, border-color 0.25s, box-shadow 0.4s; border-radius: 12px; }
.nc-p-panel .streamer-item:hover { transform: translateX(4px); }
.nc-p-panel .streamer-item.active { background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 30px -16px rgba(255, 255, 255, 0.2); }
.nc-p-panel .streamer-item.active::before { animation: nc-breathe 2.4s ease-in-out infinite; box-shadow: 0 0 10px rgba(34, 197, 94, 0.9); }
.nc-p-panel .add-streamer-input, .nc-p-panel .search-input, .nc-p-panel .add-streamer-form input { transition: border-color 0.25s, box-shadow 0.4s var(--nc-ease), background 0.25s; }
.nc-p-panel .add-streamer-input:focus, .nc-p-panel .search-input:focus, .nc-p-panel .add-streamer-form input:focus { background: rgba(0, 0, 0, 0.5); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.5); }
.nc-p-panel .add-streamer-btn, .nc-p-panel .add-streamer-form button { transition: transform 0.3s var(--nc-ease), box-shadow 0.4s; }
.nc-p-panel .add-streamer-btn:hover, .nc-p-panel .add-streamer-form button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(255, 255, 255, 0.5); }
.nc-p-panel .add-streamer-form button { color: #0a0a0a; background: var(--nc-accent); font-weight: 700; }

.nc-p-panel .kpi-card, .nc-p-panel .stat-item {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008)), rgba(14, 14, 14, 0.55);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px;
    transition: transform 0.5s var(--nc-ease), border-color 0.3s, box-shadow 0.5s var(--nc-ease);
    animation: nc-rise 0.8s var(--nc-ease) both;
}
.nc-p-panel .kpi-card:nth-child(2) { animation-delay: 0.06s; } .nc-p-panel .kpi-card:nth-child(3) { animation-delay: 0.12s; } .nc-p-panel .kpi-card:nth-child(4) { animation-delay: 0.18s; }
.nc-p-panel .kpi-card:hover, .nc-p-panel .stat-item:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.24); box-shadow: 0 24px 44px -24px #000; }
.nc-p-panel .kpi-card > *:not(.nc-glow), .nc-p-panel .stat-item > *:not(.nc-glow), .nc-p-panel .account-card > *:not(.nc-glow), .nc-p-panel .landing-stat > *:not(.nc-glow) { position: relative; z-index: 1; }
.nc-p-panel .kpi-value, .nc-p-panel .stat-value { font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.nc-p-panel .kpi-value { font-size: 1.7rem; }

.nc-p-panel .cards-header h2 { font-size: 1.3rem; letter-spacing: -0.03em; }
.nc-p-panel .live-dot span { position: relative; animation: none; box-shadow: 0 0 10px rgba(34, 197, 94, 0.8); }
.nc-p-panel .live-dot span::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--success); opacity: 0; animation: nc-pulse 2.2s var(--nc-ease) infinite; }

.nc-p-panel .account-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)), rgba(18, 18, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px;
    transition: transform 0.5s var(--nc-ease), border-color 0.3s, box-shadow 0.5s var(--nc-ease), opacity 0.3s;
    animation: nc-card-in 0.55s var(--nc-ease) backwards; /* короткий каскад при смене стримера/страницы */
}
@keyframes nc-card-in { from { opacity: 0; transform: translateY(18px) scale(0.95); } }
.nc-p-panel .cards-grid .account-card:nth-child(2) { animation-delay: 0.03s; } .nc-p-panel .cards-grid .account-card:nth-child(3) { animation-delay: 0.06s; }
.nc-p-panel .cards-grid .account-card:nth-child(4) { animation-delay: 0.09s; } .nc-p-panel .cards-grid .account-card:nth-child(5) { animation-delay: 0.12s; }
.nc-p-panel .cards-grid .account-card:nth-child(6) { animation-delay: 0.15s; } .nc-p-panel .cards-grid .account-card:nth-child(7) { animation-delay: 0.18s; }
.nc-p-panel .cards-grid .account-card:nth-child(8) { animation-delay: 0.21s; } .nc-p-panel .cards-grid .account-card:nth-child(n+9) { animation-delay: 0.24s; }
.nc-p-panel .account-card:hover { transform: translateY(-5px) scale(1.02); border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 26px 50px -22px #000, 0 0 0 1px rgba(255, 255, 255, 0.06); }
.nc-p-panel .account-card::before { height: 2px; background: linear-gradient(90deg, transparent, #fff, transparent); }
.nc-p-panel .account-card .points { font-size: 1.45rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.nc-p-panel .daily-report-banner { animation: nc-rise 0.7s var(--nc-ease) both; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 14px; }
.nc-p-panel .pagination button { transition: transform 0.3s var(--nc-ease), border-color 0.25s, background 0.25s; border-radius: 12px; }
.nc-p-panel .pagination button:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.4); }
.nc-p-panel .pagination button:active:not(:disabled) { transform: scale(0.95); }
.nc-p-panel .loading, .nc-p-panel .empty { animation: nc-rise 0.6s var(--nc-ease) both; }
.nc-p-panel .loading::before { content: ""; display: block; width: 22px; height: 22px; margin: 0 auto 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: #fff; animation: nc-rot 0.8s linear infinite; }

/* admin_accounts table */
.nc-p-panel thead th { background: rgba(255, 255, 255, 0.03); font-family: "IBM Plex Mono", monospace; letter-spacing: 0.12em; }
.nc-p-panel tbody tr { transition: background 0.25s, box-shadow 0.25s; }
.nc-p-panel tbody tr:hover { background: rgba(255, 255, 255, 0.05); box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.7); }
.nc-p-panel .points-badge { transition: transform 0.3s var(--nc-spring), background 0.25s; }
.nc-p-panel tbody tr:hover .points-badge { transform: scale(1.06); background: rgba(255, 255, 255, 0.1); }
.nc-p-panel .streamer-tag { transition: transform 0.3s var(--nc-ease), border-color 0.25s, background 0.25s; border-radius: 12px; }
.nc-p-panel .streamer-tag:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.09); }
.nc-p-panel .streamer-tag .delete-btn { transition: background 0.2s, transform 0.3s var(--nc-spring); }
.nc-p-panel .streamer-tag .delete-btn:hover { background: rgba(239, 68, 68, 0.25); transform: rotate(90deg) scale(1.15); }

/* --- modal (glass + exit animation) --- */
.nc-p-panel .modal-overlay {
    display: flex; opacity: 0; visibility: hidden; pointer-events: none; animation: none;
    background: rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
    transition: opacity 0.35s var(--nc-ease), backdrop-filter 0.45s var(--nc-ease), -webkit-backdrop-filter 0.45s var(--nc-ease), visibility 0s linear 0.45s;
}
.nc-p-panel .modal-overlay.active {
    display: flex; opacity: 1; visibility: visible; pointer-events: auto; animation: none; transition-delay: 0s;
    -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.nc-p-panel .modal {
    position: relative; overflow: hidden; border-radius: 24px; padding: 34px 30px 30px; animation: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012)), rgba(14, 14, 14, 0.72);
    -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 50px 120px -20px rgba(0, 0, 0, 0.95);
    transform: translateY(34px) scale(0.92); opacity: 0; filter: blur(8px);
    transition: transform 0.6s var(--nc-spring), opacity 0.35s var(--nc-ease), filter 0.5s var(--nc-ease);
}
.nc-p-panel .modal-overlay.active .modal { transform: none; opacity: 1; filter: none; }
.nc-p-panel .modal::before { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent); }
.nc-p-panel .modal h2 { letter-spacing: -0.02em; }
.nc-p-panel .modal > input, .nc-p-panel .input-wrap-key input { transition: border-color 0.25s, box-shadow 0.4s var(--nc-ease), background 0.25s; border-radius: 13px; }
.nc-p-panel .modal > input:focus, .nc-p-panel .input-wrap-key input:focus { background: rgba(0, 0, 0, 0.55); border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07); }
.nc-p-panel .modal-submit-btn { border-radius: 13px; transition: transform 0.3s var(--nc-ease), box-shadow 0.4s, background 0.25s; filter: none; }
.nc-p-panel .modal-submit-btn:hover:not(:disabled) { transform: translateY(-2px); background: #fff; filter: none; box-shadow: 0 14px 34px -10px rgba(255, 255, 255, 0.5); }
.nc-p-panel .modal-submit-btn:active:not(:disabled) { transform: scale(0.97); }
.nc-p-panel .error-message { animation: nc-shake 0.45s var(--nc-ease); }
.nc-p-panel .toggle-key-btn { transition: opacity 0.2s, transform 0.3s var(--nc-spring); }
.nc-p-panel .toggle-key-btn:hover { transform: translateY(-50%) scale(1.2); }

/* ==========================================================================
   [B] SAIT — главный интерфейс /sait/
   ========================================================================== */
.nc-p-sait .app-bg { background: transparent; }
.nc-p-sait .topbar {
    background: rgba(10, 10, 10, 0.55);
    -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07); box-shadow: 0 12px 40px -22px #000;
    animation: nc-bar-in 0.8s var(--nc-ease) both;
}
.nc-p-sait .brand-logo { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 24px rgba(255, 255, 255, 0.2); transition: transform 0.6s var(--nc-spring), box-shadow 0.4s; }
.nc-p-sait .topbar-brand:hover .brand-logo { transform: rotate(-10deg) scale(1.08); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 34px rgba(255, 255, 255, 0.4); }
.nc-p-sait .brand-sub { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.16em; }
.nc-p-sait .live-pill { background: rgba(255, 255, 255, 0.04); transition: border-color 0.3s, background 0.3s, box-shadow 0.4s; }
.nc-p-sait .live-pill.connected { box-shadow: 0 0 30px -8px rgba(239, 68, 68, 0.5); }
.nc-p-sait .live-dot { position: relative; }
.nc-p-sait .live-pill.connected .live-dot { animation: none; }
.nc-p-sait .live-pill.connected .live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--live); opacity: 0; animation: nc-pulse 1.8s var(--nc-ease) infinite; }
.nc-p-sait .topbar-btn { transition: transform 0.3s var(--nc-ease), background 0.25s, border-color 0.25s, box-shadow 0.4s; }
.nc-p-sait .topbar-btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.1); }
.nc-p-sait .topbar-btn:active { transform: scale(0.95); }
.nc-p-sait .user-badge { background: rgba(255, 255, 255, 0.08); }

/* шапка fixed: отступ даём body, а не margin у .container (margin схлопывался с body и страница
   получала лишние ~60px прокрутки — при фокусе/клике панели «уезжали» под шапку) */
body.nc-p-sait { padding-top: var(--topbar-h); }
.nc-p-sait .container { margin-top: 0; gap: 14px; padding: 14px; background: transparent; }
.nc-p-sait .left-col { gap: 14px; overflow: visible; }
.nc-p-sait .left-col .predictions-section {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    max-height: 44%;
}
.nc-p-sait .panel {
    border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008)), rgba(14, 14, 14, 0.58);
    -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 70px -34px #000;
    animation: nc-rise 0.9s var(--nc-ease) both;
}
.nc-p-sait .panel:nth-child(2) { animation-delay: 0.08s; } .nc-p-sait .panel:nth-child(3) { animation-delay: 0.16s; }
.nc-p-sait .panel-header { background: rgba(255, 255, 255, 0.025); border-bottom-color: rgba(255, 255, 255, 0.07); }
.nc-p-sait .panel-header h2 { font-size: 13px; letter-spacing: 0.02em; }

/* шапка списка аккаунтов + чип сортировки */
.nc-p-sait .acc-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nc-p-sait .sort-chip {
    display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; position: relative; overflow: hidden;
    padding: 6px 12px 6px 10px; border-radius: 99px; cursor: pointer;
    font: 600 11.5px/1 "IBM Plex Sans", system-ui, sans-serif; letter-spacing: 0.02em;
    color: var(--nc-muted, #8c8c8c); background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.25s, background 0.3s, border-color 0.3s, transform 0.3s var(--nc-ease), box-shadow 0.4s var(--nc-ease);
}
.nc-p-sait .sort-chip:hover { color: #f5f5f5; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); transform: translateY(-1px); }
.nc-p-sait .sort-chip:active { transform: scale(0.95); transition-duration: 0.1s; }
.nc-p-sait .sort-chip[data-sort="points"] { color: #f5f5f5; border-color: rgba(255, 255, 255, 0.22); box-shadow: 0 0 18px -8px rgba(255, 255, 255, 0.5); }
.nc-p-sait .sort-chip .sort-ico { transition: transform 0.5s var(--nc-spring); }
.nc-p-sait .sort-chip[data-sort="name"] .sort-ico { transform: scaleY(-1); }
.nc-p-sait .sort-chip .sort-label { white-space: nowrap; }
.nc-p-sait .accounts-panel .search-input { margin-top: 12px; }

.nc-p-sait .chat-message { animation: nc-msg-in 0.45s var(--nc-ease) backwards; background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.07); border-radius: 12px; transition: transform 0.3s var(--nc-ease), border-color 0.25s, background 0.25s; }
@keyframes nc-msg-in { from { opacity: 0; transform: translateX(-14px) scale(0.97); } }
.nc-p-sait .chat-message:hover { transform: translateX(3px); background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.22); }

.nc-p-sait .card, .nc-p-sait .connected-streamers-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008)), rgba(18, 18, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px;
    transition: border-color 0.3s, box-shadow 0.5s var(--nc-ease), transform 0.5s var(--nc-ease);
}
.nc-p-sait .card:hover { border-color: rgba(255, 255, 255, 0.18); box-shadow: 0 20px 44px -26px #000; }
.nc-p-sait .mass-send-section h3, .nc-p-sait .predictions-section h3, .nc-p-sait .rewards-section h3, .nc-p-sait .connected-streamers-section h3 { letter-spacing: -0.01em; }
.nc-p-sait .streamer-name {
    background: linear-gradient(100deg, #8c8c8c 0%, #fff 30%, #f5f5f5 45%, #8c8c8c 70%, #fff 100%); background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: nc-shimmer 8s linear infinite;
}
.nc-p-sait .status-badge { position: relative; }
.nc-p-sait .status-badge.live { animation: nc-live-glow 2.2s ease-in-out infinite; }
@keyframes nc-live-glow { 50% { box-shadow: 0 0 22px -2px rgba(239, 68, 68, 0.55); } }

.nc-p-sait .btn { transition: transform 0.3s var(--nc-ease), background 0.25s, box-shadow 0.4s var(--nc-ease), opacity 0.2s, border-color 0.25s; }
.nc-p-sait .btn:hover:not(:disabled) { transform: translateY(-2px); }
.nc-p-sait .btn:active:not(:disabled) { transform: scale(0.97); transition-duration: 0.1s; }
.nc-p-sait .btn-purple:hover:not(:disabled) { opacity: 1; background: #fff; box-shadow: 0 14px 34px -12px rgba(255, 255, 255, 0.55); }
.nc-p-sait .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.nc-p-sait .btn-danger:hover, .nc-p-sait .btn-follow:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.5); }

.nc-p-sait .url-input, .nc-p-sait .chat-send-input, .nc-p-sait .mass-send-input, .nc-p-sait .search-input, .nc-p-sait .notes-textarea { border-radius: 12px; transition: border-color 0.25s, box-shadow 0.4s var(--nc-ease), background 0.25s; }
.nc-p-sait .url-input:focus, .nc-p-sait .chat-send-input:focus, .nc-p-sait .mass-send-input:focus, .nc-p-sait .search-input:focus, .nc-p-sait .notes-textarea:focus {
    background: rgba(0, 0, 0, 0.55); border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07);
}

/* переключатели */
.nc-p-sait .toggle input[type="checkbox"] {
    -webkit-appearance: none; appearance: none; position: relative; width: 36px; height: 21px; border-radius: 99px; flex: 0 0 auto;
    background: #1c1c1c; border: 1px solid var(--nc-line-2); cursor: pointer; margin: 0;
    transition: background 0.35s, border-color 0.35s, box-shadow 0.4s;
}
.nc-p-sait .toggle input[type="checkbox"]::after {
    content: ""; position: absolute; left: 3px; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: #8c8c8c;
    transition: transform 0.45s var(--nc-spring), background 0.3s, box-shadow 0.3s;
}
.nc-p-sait .toggle input[type="checkbox"]:checked { background: rgba(34, 197, 94, 0.22); border-color: rgba(34, 197, 94, 0.55); box-shadow: 0 0 16px -4px rgba(34, 197, 94, 0.55); }
.nc-p-sait .toggle input[type="checkbox"]:checked::after { transform: translateX(15px); background: var(--nc-ok); box-shadow: 0 0 8px rgba(34, 197, 94, 0.8); }
.nc-p-sait .toggle:hover span { color: #d4d4d4; }

.nc-p-sait .streamer-item, .nc-p-sait .account-item, .nc-p-sait .prediction-item, .nc-p-sait .reward-item, .nc-p-sait .outcome-item {
    border-radius: 14px; transition: transform 0.4s var(--nc-ease), border-color 0.25s, background 0.25s, box-shadow 0.4s;
}
.nc-p-sait .account-item { position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.07); }
.nc-p-sait .account-item:hover { transform: translateX(-3px); background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.25); }
.nc-p-sait .account-item.active { background: rgba(255, 255, 255, 0.08); box-shadow: inset 3px 0 0 #fff, 0 0 0 1px rgba(255, 255, 255, 0.14), 0 14px 34px -18px rgba(255, 255, 255, 0.25); }
.nc-p-sait .account-item > *:not(.nc-glow) { position: relative; z-index: 1; }
.nc-p-sait .streamer-item:hover, .nc-p-sait .outcome-item:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.25); }
.nc-p-sait .outcome-item.winning-outcome { box-shadow: 0 0 30px -10px rgba(34, 197, 94, 0.5); }
.nc-p-sait .bet-btn { border-radius: 10px; color: #0a0a0a; transition: transform 0.3s var(--nc-ease), background 0.25s, box-shadow 0.4s; }
.nc-p-sait .bet-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 26px -10px rgba(255, 255, 255, 0.55); }
.nc-p-sait .bet-btn.winning-outcome, .nc-p-sait .bet-btn.losing-outcome { color: #fff; }
.nc-p-sait .bet-btn:active:not(:disabled) { transform: scale(0.95); }
.nc-p-sait .bet-input, .nc-p-sait .bet-max-btn { transition: border-color 0.25s, box-shadow 0.35s, background 0.25s, transform 0.3s var(--nc-ease); }
.nc-p-sait .bet-input:focus { outline: none; border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07); }
.nc-p-sait .bet-max-btn:hover:not(:disabled) { transform: translateY(-1px); }
.nc-p-sait .reward-icon { transition: transform 0.5s var(--nc-spring); }
.nc-p-sait .reward-item:hover .reward-icon { transform: rotate(-8deg) scale(1.1); }
.nc-p-sait .reward-buy-btn { transition: transform 0.3s var(--nc-ease), background 0.25s; }
.nc-p-sait .reward-buy-btn:hover:not(:disabled) { transform: translateY(-2px); }
.nc-p-sait .coefficient-badge { font-family: "IBM Plex Mono", monospace; }
.nc-p-sait .loading::before { content: ""; display: block; width: 20px; height: 20px; margin: 0 auto 10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: #fff; animation: nc-rot 0.8s linear infinite; }

/* ==========================================================================
   [C] SAIT AUTH + ADMIN (login.html, admin.html)
   ========================================================================== */
.nc-p-auth .auth-bg { background: transparent; }
.nc-p-auth .auth-grid { display: none; }
.nc-p-auth .auth-card {
    position: relative; overflow: hidden; border-radius: 28px; padding: 42px 36px 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012)), rgba(14, 14, 14, 0.62);
    -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 50px 120px -30px #000, 0 0 140px -30px rgba(255, 255, 255, 0.12);
    animation: nc-card-pop 1s var(--nc-spring) both;
}
.nc-p-auth .auth-card::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: conic-gradient(from var(--nc-ang), transparent 0 55%, rgba(255, 255, 255, 0.6) 78%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: nc-spin 8s linear infinite;
}
.nc-p-auth .auth-card > * { position: relative; animation: nc-rise 0.9s var(--nc-ease) both; }
.nc-p-auth .auth-card > :nth-child(1) { animation-delay: 0.15s; } .nc-p-auth .auth-card > :nth-child(2) { animation-delay: 0.3s; } .nc-p-auth .auth-card > :nth-child(3) { animation-delay: 0.45s; }
.nc-p-auth .brand-icon { position: relative; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 40px rgba(255, 255, 255, 0.22); animation: nc-float 5s ease-in-out infinite; transition: transform 0.6s var(--nc-spring); }
.nc-p-auth .brand-icon:hover { transform: rotate(-10deg) scale(1.1); }
@keyframes nc-float { 50% { transform: translateY(-6px); } }
.nc-p-auth .auth-brand h1 {
    background: linear-gradient(100deg, #8c8c8c 0%, #fff 30%, #f5f5f5 45%, #8c8c8c 70%, #fff 100%); background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: nc-shimmer 7s linear infinite;
}
.nc-p-auth .auth-form label { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.16em; }
.nc-p-auth .auth-form input, .nc-p-auth .auth-form select { border-radius: 13px; transition: border-color 0.25s, box-shadow 0.4s var(--nc-ease), background 0.25s; }
.nc-p-auth .auth-form input:focus, .nc-p-auth .auth-form select:focus { background: rgba(0, 0, 0, 0.55); border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07); }
.nc-p-auth .btn-primary { border-radius: 13px; transition: transform 0.3s var(--nc-ease), box-shadow 0.4s, background 0.25s, opacity 0.2s; }
.nc-p-auth .btn-primary:hover:not(:disabled) { opacity: 1; background: #fff; transform: translateY(-2px); box-shadow: 0 14px 36px -10px rgba(255, 255, 255, 0.55); }
.nc-p-auth .btn-primary:active:not(:disabled) { transform: scale(0.97); }
.nc-p-auth .auth-error.visible { animation: nc-shake 0.45s var(--nc-ease); border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.08); color: #fecaca; }
.nc-p-auth .toggle-visibility { transition: opacity 0.2s, transform 0.3s var(--nc-spring); }
.nc-p-auth .toggle-visibility:hover { transform: translateY(-50%) scale(1.2); }
.nc-p-auth .auth-footer a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--nc-ease), color 0.25s; padding-bottom: 1px; }
.nc-p-auth .auth-footer a:hover { background-size: 100% 1px; color: #fff; }

/* admin dashboard */
.nc-p-auth .admin-header {
    background: rgba(10, 10, 10, 0.55); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
    box-shadow: 0 12px 40px -22px #000; animation: nc-bar-in 0.8s var(--nc-ease) both;
}
.nc-p-auth .brand-mini-logo { transition: transform 0.6s var(--nc-spring); }
.nc-p-auth .brand-mini:hover .brand-mini-logo { transform: rotate(-12deg) scale(1.12); }
.nc-p-auth .btn-ghost { border-radius: 11px; transition: transform 0.3s var(--nc-ease), background 0.25s, border-color 0.25s; }
.nc-p-auth .btn-ghost:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.4); }
.nc-p-auth .btn-ghost:active { transform: scale(0.96); }
.nc-p-auth .stat-card, .nc-p-auth .admin-section {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)), rgba(14, 14, 14, 0.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 60px -30px #000;
    animation: nc-rise 0.9s var(--nc-ease) both; transition: transform 0.5s var(--nc-ease), border-color 0.3s, box-shadow 0.5s var(--nc-ease);
}
.nc-p-auth .stat-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.25); }
.nc-p-auth .stat-card > *:not(.nc-glow), .nc-p-auth .admin-section > *:not(.nc-glow) { position: relative; z-index: 1; }
.nc-p-auth .stat-card.accent { border-color: rgba(255, 255, 255, 0.22); }
.nc-p-auth .stat-value { font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.nc-p-auth .admin-stats .stat-card:nth-child(2) { animation-delay: 0.08s; }
.nc-p-auth .admin-section:nth-of-type(2) { animation-delay: 0.14s; } .nc-p-auth .admin-section:nth-of-type(3) { animation-delay: 0.2s; }
.nc-p-auth .keys-table th { font-family: "IBM Plex Mono", monospace; letter-spacing: 0.14em; }
.nc-p-auth .keys-table tbody tr { transition: background 0.25s, box-shadow 0.25s; }
.nc-p-auth .keys-table tbody tr:hover td { background: rgba(255, 255, 255, 0.045); }
.nc-p-auth .keys-table tbody tr:hover { box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.7); }
.nc-p-auth .create-key-form > input, .nc-p-auth .create-key-form > select {
    width: 100%; padding: 13px 15px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border); border-radius: 13px;
    color: var(--text); font: 500 14px "IBM Plex Sans", system-ui, sans-serif; transition: border-color 0.25s, box-shadow 0.4s var(--nc-ease), background 0.25s;
}
.nc-p-auth .create-key-form > input::placeholder { color: #666; }
.nc-p-auth .create-key-form > input:hover, .nc-p-auth .create-key-form > select:hover { border-color: var(--nc-line-2); }
.nc-p-auth .create-key-form > input:focus, .nc-p-auth .create-key-form > select:focus { outline: none; background: rgba(0, 0, 0, 0.55); border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07); }
.nc-p-auth .create-key-form select option { background: #141414; }
.nc-p-auth .create-key-form .btn-primary { width: auto; padding: 13px 22px; white-space: nowrap; }
.nc-p-auth .btn-icon, .nc-p-auth .btn-copy { transition: transform 0.3s var(--nc-ease), background 0.25s, border-color 0.25s; }
.nc-p-auth .btn-icon:hover, .nc-p-auth .btn-copy:hover { transform: translateY(-2px); }
.nc-p-auth .new-key-banner { animation: nc-rise 0.7s var(--nc-ease) both; border-radius: 16px; }
.nc-p-auth .badge-active { background: rgba(34, 197, 94, 0.12); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.25); }
.nc-p-auth .badge-inactive { background: rgba(239, 68, 68, 0.1); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.22); }

/* ==========================================================================
   [D] STD — strik.html, cut.html  (общий словарь: wrap/header/eyebrow/h1/.card/.modal-overlay.show)
   ========================================================================== */
.nc-p-std .wrap { animation: none; }
.nc-p-std .eyebrow { display: flex; align-items: center; gap: 12px; letter-spacing: 0.18em; }
.nc-p-std .eyebrow::before { content: ""; width: 30px; height: 1px; background: linear-gradient(90deg, transparent, #f5f5f5); transform-origin: left; animation: nc-grow 1.1s var(--nc-ease) 0.2s both; }
@keyframes nc-grow { from { transform: scaleX(0); } }
.nc-p-std h1 {
    background: linear-gradient(100deg, #8c8c8c 0%, #fff 30%, #f5f5f5 45%, #8c8c8c 70%, #fff 100%); background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: nc-rise 1s var(--nc-ease) 0.1s both, nc-shimmer 8s linear 1.2s infinite;
}
.nc-p-std .sub { animation: nc-rise 1s var(--nc-ease) 0.25s both; }
.nc-p-std .auth-box { animation: nc-rise 1s var(--nc-ease) 0.35s both; }

.nc-p-std :is(.auth-box button, .add-row button, .modal-actions button, .locked button, .toolbar button, .actions button, .btn) {
    position: relative; overflow: hidden; isolation: isolate;
    transition: transform 0.3s var(--nc-ease), background 0.25s, border-color 0.25s, box-shadow 0.4s var(--nc-ease), color 0.2s, opacity 0.2s;
}
.nc-p-std :is(.auth-box button, .add-row button, .modal-actions button, .locked button, .toolbar button, .actions button, .btn)::after {
    content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.26), transparent);
    transform: skewX(-18deg); transition: left 0.8s var(--nc-ease); pointer-events: none;
}
.nc-p-std :is(.auth-box button, .add-row button, .modal-actions button, .locked button, .toolbar button, .actions button, .btn):hover:not(:disabled)::after { left: 130%; }
.nc-p-std :is(.auth-box button, .add-row button, .modal-actions button, .locked button, .toolbar button, .actions button, .btn):hover:not(:disabled) { transform: translateY(-2px); }
.nc-p-std :is(.auth-box button, .add-row button, .modal-actions button, .locked button, .toolbar button, .actions button, .btn):active:not(:disabled) { transform: scale(0.96); transition-duration: 0.1s; }
.nc-p-std :is(.auth-box button, .add-row button, .modal-actions .submit, .locked button, .toolbar button, .actions button, .btn):not(.ghost):not(.danger):not(.ok):not(.cancel):hover:not(:disabled) { background: #fff; box-shadow: 0 12px 30px -10px rgba(255, 255, 255, 0.5); }
.nc-p-std .ghost:hover:not(:disabled), .nc-p-std .cancel:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.35); box-shadow: none; }
.nc-p-std button.danger:hover:not(:disabled) { background: rgba(239, 68, 68, 0.26); border-color: rgba(239, 68, 68, 0.7); box-shadow: 0 10px 26px -10px rgba(239, 68, 68, 0.55); }
.nc-p-std button.ok:hover:not(:disabled) { background: rgba(34, 197, 94, 0.26); border-color: rgba(34, 197, 94, 0.7); box-shadow: 0 10px 26px -10px rgba(34, 197, 94, 0.55); }

.nc-p-std .card, .nc-p-std .locked, .nc-p-std .guide, .nc-p-std .acc-card, .nc-p-std .empty {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008)), rgba(16, 16, 16, 0.6);
    -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
    border-color: rgba(255, 255, 255, 0.08); border-radius: 18px; position: relative;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 20px 50px -28px #000;
}
.nc-p-std .card, .nc-p-std .acc-card { transition: transform 0.5s var(--nc-ease), border-color 0.3s, box-shadow 0.5s var(--nc-ease), background 0.3s, opacity 0.3s; }
.nc-p-std .card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.22); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 30px 54px -26px #000; }
.nc-p-std .card > *:not(.nc-glow), .nc-p-std .acc-card > *:not(.nc-glow) { position: relative; z-index: 1; }
.nc-p-std .locked { animation: nc-card-pop 0.9s var(--nc-spring) both; border-radius: 24px; }
.nc-p-std .locked h2 { letter-spacing: -0.02em; }
.nc-p-std .health .card .value { font-variant-numeric: tabular-nums; }
.nc-p-std .health .card { animation: nc-rise 0.8s var(--nc-ease) both; }
.nc-p-std .health .card:nth-child(2) { animation-delay: 0.07s; } .nc-p-std .health .card:nth-child(3) { animation-delay: 0.14s; } .nc-p-std .health .card:nth-child(4) { animation-delay: 0.21s; }
.nc-p-std .dot.online, .nc-p-std .dot.degraded, .nc-p-std .dot.offline { position: relative; }
.nc-p-std .dot.online::after, .nc-p-std .dot.degraded::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0; animation: nc-pulse 2.4s var(--nc-ease) infinite; }
.nc-p-std .dot.online { color: var(--nc-ok); } .nc-p-std .dot.degraded { color: var(--nc-warn); }
.nc-p-std .chip { transition: transform 0.3s var(--nc-ease), border-color 0.25s, background 0.25s, color 0.25s; backdrop-filter: blur(10px); }
.nc-p-std .chip:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.3); color: #e5e5e5; }
.nc-p-std .add-row input, .nc-p-std .modal input, .nc-p-std .modal textarea { border-radius: 13px; transition: border-color 0.25s, box-shadow 0.4s var(--nc-ease), background 0.25s; }
.nc-p-std .add-row input:focus, .nc-p-std .modal input:focus, .nc-p-std .modal textarea:focus { background: rgba(0, 0, 0, 0.55); border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07); }
.nc-p-std .bar > i { position: relative; overflow: hidden; transition: width 0.8s var(--nc-ease); }
.nc-p-std .bar:not(.done) > i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: translateX(-100%); animation: nc-skel 1.8s ease-in-out infinite; }
.nc-p-std .state { transition: background 0.3s, color 0.3s; }
.nc-p-std .switch .slider::before { transition: transform 0.45s var(--nc-spring); }
.nc-p-std .switch .slider { transition: background 0.3s, box-shadow 0.4s; }
.nc-p-std .switch input:checked + .slider { box-shadow: 0 0 14px -2px rgba(34, 197, 94, 0.6); }
.nc-p-std .acc-ch { transition: background 0.25s; } .nc-p-std .acc-ch:hover { background: rgba(255, 255, 255, 0.035); }
.nc-p-std .card.live-on { animation: nc-live-card 2.6s ease-in-out infinite alternate; }
@keyframes nc-live-card { from { box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.1), 0 0 18px -6px rgba(239, 68, 68, 0.15); } to { box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.22), 0 0 34px -4px rgba(239, 68, 68, 0.35); } }
.nc-p-std .badge.live, .nc-p-std .badge.on { backdrop-filter: blur(6px); }
.nc-p-std .toast { background: rgba(14, 14, 14, 0.8); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-color: rgba(255, 255, 255, 0.18); border-radius: 14px; box-shadow: 0 18px 50px -12px #000; transition: opacity 0.3s var(--nc-ease), transform 0.5s var(--nc-spring); transform: translateX(-50%) translateY(16px) scale(0.95); }
.nc-p-std .toast.show { transform: translateX(-50%) translateY(0) scale(1); }
.nc-p-std .guide a, .nc-p-std footer a { transition: color 0.25s; }
.nc-p-std .guide li { transition: transform 0.3s var(--nc-ease); } .nc-p-std .guide li:hover { transform: translateX(4px); }
.nc-p-std .key-box { transition: border-color 0.25s, background 0.25s; } .nc-p-std .key-box:hover { border-color: rgba(255, 255, 255, 0.35); }

/* glass modals (display:none → visibility/opacity, чтобы работала анимация закрытия) */
.nc-p-std .modal-overlay {
    display: flex; opacity: 0; visibility: hidden; pointer-events: none;
    background: rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0);
    transition: opacity 0.35s var(--nc-ease), backdrop-filter 0.45s var(--nc-ease), -webkit-backdrop-filter 0.45s var(--nc-ease), visibility 0s linear 0.45s;
}
.nc-p-std .modal-overlay.show { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.nc-p-std .modal {
    position: relative; overflow: hidden; border-radius: 24px; padding: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012)), rgba(14, 14, 14, 0.72);
    -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 50px 120px -20px rgba(0, 0, 0, 0.95);
    transform: translateY(34px) scale(0.92); opacity: 0; filter: blur(8px);
    transition: transform 0.6s var(--nc-spring), opacity 0.35s var(--nc-ease), filter 0.5s var(--nc-ease);
}
.nc-p-std .modal-overlay.show .modal { animation: none; transform: none; opacity: 1; filter: none; }
.nc-p-std .modal::before { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent); }
.nc-p-std .modal-err { animation: none; } .nc-p-std .modal-err:not(:empty) { animation: nc-shake 0.45s var(--nc-ease); }

/* ==========================================================================
   [E] BOX — kuky, kuky_go, kuky_done, ext_install (центрированная карточка)
   ========================================================================== */
.nc-p-box { background: transparent; }
.nc-p-box .box, .nc-p-box > .card {
    position: relative; overflow: hidden; border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012)), rgba(14, 14, 14, 0.62);
    -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 50px 120px -30px #000, 0 0 140px -30px rgba(255, 255, 255, 0.12);
    animation: nc-card-pop 1s var(--nc-spring) both;
}
.nc-p-box .box::before, .nc-p-box > .card::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: conic-gradient(from var(--nc-ang), transparent 0 55%, rgba(255, 255, 255, 0.6) 78%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: nc-spin 8s linear infinite;
}
.nc-p-box .box > *, .nc-p-box > .card > * { position: relative; animation: nc-rise 0.9s var(--nc-ease) both; }
.nc-p-box .box > :nth-child(1), .nc-p-box > .card > :nth-child(1) { animation-delay: 0.12s; }
.nc-p-box .box > :nth-child(2), .nc-p-box > .card > :nth-child(2) { animation-delay: 0.2s; }
.nc-p-box .box > :nth-child(3), .nc-p-box > .card > :nth-child(3) { animation-delay: 0.28s; }
.nc-p-box .box > :nth-child(4), .nc-p-box > .card > :nth-child(4) { animation-delay: 0.36s; }
.nc-p-box .box > :nth-child(5), .nc-p-box > .card > :nth-child(5) { animation-delay: 0.44s; }
.nc-p-box .box > :nth-child(n+6), .nc-p-box > .card > :nth-child(n+6) { animation-delay: 0.52s; }
.nc-p-box h1 {
    background: linear-gradient(100deg, #8c8c8c 0%, #fff 30%, #f5f5f5 45%, #8c8c8c 70%, #fff 100%); background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: nc-rise 0.9s var(--nc-ease) 0.2s both, nc-shimmer 8s linear 1.2s infinite;
}
.nc-p-box .eyebrow { letter-spacing: 0.2em; }
.nc-p-box :is(button, .btn, a.btn, .box > a, .box a:not(.back):not(.ghost)) { position: relative; overflow: hidden; isolation: isolate; transition: transform 0.3s var(--nc-ease), background 0.25s, box-shadow 0.4s var(--nc-ease), border-color 0.25s, filter 0.2s; }
.nc-p-box :is(button, .btn, a.btn, .box > a)::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent); transform: skewX(-18deg); transition: left 0.8s var(--nc-ease); pointer-events: none; }
.nc-p-box :is(button, .btn, a.btn, .box > a):hover:not(:disabled)::after { left: 130%; }
.nc-p-box :is(button, .btn, a.btn, .box > a):hover:not(:disabled) { transform: translateY(-2px); filter: none; }
.nc-p-box :is(button, .btn, a.btn, .box > a):active:not(:disabled) { transform: scale(0.97); transition-duration: 0.1s; }
.nc-p-box :is(button, .btn, a.btn, .box > a):not(.secondary):not(.ghost):hover:not(:disabled) { background: #fff; box-shadow: 0 14px 34px -10px rgba(255, 255, 255, 0.5); }
.nc-p-box :is(button.secondary, .btn.ghost):hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }
.nc-p-box .box a.ghost, .nc-p-box .box a.back, .nc-p-box .back a { overflow: visible; }
.nc-p-box a.ghost::after, .nc-p-box a.back::after { display: none; }
.nc-p-box a.ghost:hover, .nc-p-box a.back:hover { background-color: transparent !important; box-shadow: none !important; transform: none !important; }
.nc-p-box a.back, .nc-p-box .back a, .nc-p-box a.ghost { background: linear-gradient(currentColor, currentColor) 50% 100% / 0 1px no-repeat; transition: background-size 0.4s var(--nc-ease), color 0.25s; padding-bottom: 2px; }
.nc-p-box a.back:hover, .nc-p-box .back a:hover, .nc-p-box a.ghost:hover { background-size: 60% 1px; color: #fff; }
.nc-p-box .code { position: relative; border-style: solid; border-color: rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.45); text-shadow: 0 0 24px rgba(255, 255, 255, 0.45); transition: border-color 0.3s, box-shadow 0.4s; cursor: copy; }
.nc-p-box .code:hover { border-color: rgba(255, 255, 255, 0.45); box-shadow: 0 0 40px -8px rgba(255, 255, 255, 0.25); }
.nc-p-box .steps li { transition: transform 0.3s var(--nc-ease), color 0.25s; } .nc-p-box .steps li:hover { transform: translateX(5px); color: #d4d4d4; }
.nc-p-box ol li { transition: transform 0.3s var(--nc-ease); } .nc-p-box ol li:hover { transform: translateX(4px); }
.nc-p-box .check { position: relative; width: 64px; height: 64px; animation: nc-pop 0.9s var(--nc-spring) 0.1s both !important; box-shadow: 0 0 40px rgba(255, 255, 255, 0.2); }
.nc-p-box .check::before, .nc-p-box .check::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); animation: nc-ring-out 2.6s var(--nc-ease) infinite; }
.nc-p-box .check::after { animation-delay: 1.3s; }
@keyframes nc-pop { from { opacity: 0; transform: scale(0.3) rotate(-30deg); } }
.nc-p-box .status { transition: color 0.3s; } .nc-p-box .status:not(.ok):not(.err)::after { content: ""; display: inline-block; width: 1em; text-align: left; animation: nc-dots 1.4s steps(4) infinite; }
@keyframes nc-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.nc-p-box .err:not(:empty) { animation: nc-shake 0.45s var(--nc-ease); }

/* ==========================================================================
   [F] WHEEL
   ========================================================================== */
.nc-p-wheel .card {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008)), rgba(16, 16, 16, 0.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
    border-color: rgba(255, 255, 255, 0.08); border-radius: 24px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 70px -34px #000;
    animation: nc-rise 0.9s var(--nc-ease) both;
}
.nc-p-wheel aside.card { animation-delay: 0.12s; }
.nc-p-wheel .wheel-wrap { border-radius: 50%; box-shadow: 0 0 80px -10px rgba(255, 255, 255, 0.18); }
.nc-p-wheel .wheel-wrap::before {
    content: ""; position: absolute; inset: -14px; border-radius: 50%; pointer-events: none; will-change: transform;
    background: conic-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.55) 25%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.4) 75%, rgba(255, 255, 255, 0.04));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); animation: nc-rot 14s linear infinite;
}
.nc-p-wheel .wheel-wrap::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5); }
.nc-p-wheel .pointer { filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.45)); }
.nc-p-wheel :is(button.spin, button.ghost, .list-actions button, .mini-btn, .settings-open, .modal-box button) { position: relative; overflow: hidden; isolation: isolate; transition: transform 0.3s var(--nc-ease), background 0.25s, border-color 0.25s, box-shadow 0.4s var(--nc-ease), opacity 0.2s; }
.nc-p-wheel :is(button.spin, button.ghost, .list-actions button, .modal-box button)::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent); transform: skewX(-18deg); transition: left 0.8s var(--nc-ease); pointer-events: none; }
.nc-p-wheel :is(button.spin, button.ghost, .list-actions button, .modal-box button):hover:not(:disabled)::after { left: 130%; }
.nc-p-wheel :is(button.spin, button.ghost, .list-actions button, .mini-btn, .modal-box button):hover:not(:disabled) { transform: translateY(-2px); }
.nc-p-wheel :is(button.spin, button.ghost, .list-actions button, .mini-btn, .modal-box button):active:not(:disabled) { transform: scale(0.96); transition-duration: 0.1s; }
.nc-p-wheel button.spin:hover:not(:disabled) { background: #fff; box-shadow: 0 14px 40px -10px rgba(255, 255, 255, 0.55); }
.nc-p-wheel button.spin:not(:disabled) { animation: nc-btn-breathe 3s ease-in-out infinite; }
.nc-p-wheel :is(button.ghost, .list-actions button):hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.35); }
.nc-p-wheel .modal-box button:hover { background: #fff; box-shadow: 0 14px 34px -10px rgba(255, 255, 255, 0.5); }
.nc-p-wheel .mode-switch { background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(10px); position: relative; }
.nc-p-wheel .mode-switch button { transition: background 0.35s var(--nc-ease), color 0.25s, box-shadow 0.4s, transform 0.3s var(--nc-ease); }
.nc-p-wheel .mode-switch button:not(.active):hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nc-p-wheel .mode-switch button.active { box-shadow: 0 6px 20px -8px rgba(255, 255, 255, 0.55); }
.nc-p-wheel textarea, .nc-p-wheel .search-box input, .nc-p-wheel .settings, .nc-p-wheel .field-row select { transition: border-color 0.25s, box-shadow 0.4s var(--nc-ease), background 0.25s; border-radius: 13px; }
.nc-p-wheel textarea:focus, .nc-p-wheel .search-box input:focus, .nc-p-wheel .field-row select:focus { border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.07); background: rgba(0, 0, 0, 0.5); }
.nc-p-wheel .participant { transition: transform 0.35s var(--nc-ease), background 0.25s, border-color 0.25s, opacity 0.3s, box-shadow 0.4s; animation: nc-msg-in 0.4s var(--nc-ease) backwards; }
.nc-p-wheel .participant:not(.out):hover { transform: translateX(4px); background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); }
.nc-p-wheel .participant.winner { box-shadow: 0 0 36px -8px rgba(34, 197, 94, 0.55); animation: nc-live-win 1.6s ease-in-out infinite alternate; }
@keyframes nc-live-win { from { box-shadow: 0 0 14px -6px rgba(34, 197, 94, 0.35); } to { box-shadow: 0 0 36px -4px rgba(34, 197, 94, 0.7); } }
.nc-p-wheel .participant .rm { transition: color 0.2s, transform 0.3s var(--nc-spring); } .nc-p-wheel .participant .rm:hover { transform: rotate(90deg) scale(1.2); }
.nc-p-wheel .count { transition: color 0.3s; }
.nc-p-wheel .modal-overlay { background: rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: opacity 0.35s var(--nc-ease), visibility 0.35s, backdrop-filter 0.5s var(--nc-ease), -webkit-backdrop-filter 0.5s var(--nc-ease); }
.nc-p-wheel .modal-overlay.open { -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.nc-p-wheel .modal-box {
    position: relative; overflow: hidden; border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)), rgba(14, 14, 14, 0.72);
    -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5);
    border-color: rgba(255, 255, 255, 0.16); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 50px 120px -20px rgba(0, 0, 0, 0.95);
    transform: scale(0.88) translateY(30px); opacity: 0; filter: blur(8px);
    transition: transform 0.65s var(--nc-spring), opacity 0.35s var(--nc-ease), filter 0.5s var(--nc-ease);
}
.nc-p-wheel .modal-overlay.open .modal-box { transform: none; opacity: 1; filter: none; }
.nc-p-wheel .modal-box::before { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent); }
.nc-p-wheel .modal-icon { animation: nc-trophy 2.4s var(--nc-spring) infinite; display: inline-block; filter: drop-shadow(0 0 20px rgba(234, 179, 8, 0.6)); }
@keyframes nc-trophy { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-8px) rotate(-8deg); } 75% { transform: translateY(-4px) rotate(8deg); } }
.nc-p-wheel .modal-name { text-shadow: 0 0 40px rgba(34, 197, 94, 0.5); animation: nc-rise 0.8s var(--nc-ease) both; }
.nc-p-wheel .modal-overlay.open .modal-name { animation: nc-pop 0.9s var(--nc-spring) 0.15s both; }

