/* ═══════════════════════════════════════════════════════════
   EXEYION DASHBOARD — LIQUID GLASS LAYER
   Loaded after dashboard.css. Pure visual override, no layout change.
   ═══════════════════════════════════════════════════════════ */
:root {
  --g-fill:    linear-gradient(145deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.04) 38%, rgba(34,197,94,0.07) 100%);
  --g-fill-hi: linear-gradient(145deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.07) 40%, rgba(34,197,94,0.12) 100%);
  --g-edge:    rgba(255,255,255,0.16);
  --g-shadow:  0 12px 40px rgba(0,0,0,0.38), 0 2px 8px rgba(0,0,0,0.25);
  --g-inset:   inset 0 1px 0 rgba(255,255,255,0.38), inset 0 -1px 0 rgba(255,255,255,0.05), inset 0 0 22px rgba(255,255,255,0.045);
  --g-blur:    blur(18px) saturate(165%);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --card: transparent; --card-hover: transparent;
  --text-muted: #a8c9b3; --text: #f0fff5;
  --g-tint: linear-gradient(rgba(3,12,7,0.46), rgba(3,12,7,0.46));
}

/* ── Background: image + vignette + soft green light ── */
body { background: #030a05 url('bg.jpg') center / cover no-repeat fixed; }
body::before {
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%,  rgba(34,197,94,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 95% 100%, rgba(163,230,53,0.10) 0%, transparent 60%),
    linear-gradient(180deg, rgba(3,10,5,0.66) 0%, rgba(3,10,5,0.84) 100%);
}

/* ── Shared glass recipe ── */
.sidebar, .dash-card, .stat-card, .nav-card, .help-bar, .pro-tip-bar,
.redeem-card, .game-card, .script-card, .featured-script, .script-manager, .console-section,
.plan-option, .modal, .community-warning, .admin-field, .gen-keys-list, .roblox-user-preview,
.executor-header, .execute-bar, .search-wrap, .server-item, .qs-item {
  background: var(--g-fill), var(--g-tint) !important;
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
  border: 1px solid var(--g-edge) !important;
  box-shadow: var(--g-inset), var(--g-shadow) !important;
}
.sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(3,10,5,0.7)), rgba(3,10,5,0.4) !important;
  border-radius: 0 22px 22px 0; border-left: none !important;
}
.qs-item, .server-item, .search-wrap, .admin-field, .gen-keys-list { box-shadow: inset 0 1px 0 rgba(255,255,255,0.18) !important; border-radius: 12px; background: rgba(0,0,0,0.22) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.quick-launch { background: transparent !important; border: none !important; box-shadow: none !important; backdrop-filter: none; }

/* specular highlight in the top-left corner of the big cards */
.dash-card, .stat-card, .nav-card, .redeem-card, .game-card, .script-card, .featured-script, .plan-option { position: relative; isolation: isolate; }
.dash-card::after, .stat-card::after, .nav-card::after, .redeem-card::after,
.game-card::after, .script-card::after, .featured-script::after, .plan-option::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 70% at 0% 0%, rgba(255,255,255,0.16) 0%, transparent 45%);
  opacity: 0.8; transition: opacity .35s var(--ease-out);
}
.dash-card:hover::after, .stat-card:hover::after, .nav-card:hover::after, .game-card:hover::after,
.script-card:hover::after, .plan-option:hover::after { opacity: 1; }

/* lift on hover */
.stat-card, .nav-card, .game-card, .script-card, .plan-option, .dash-card {
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .25s !important;
}
.stat-card:hover, .nav-card:hover, .game-card:hover, .script-card:hover, .plan-option:hover {
  transform: translateY(-4px);
  border-color: rgba(134,239,172,0.45) !important;
  box-shadow: var(--g-inset), 0 18px 50px rgba(0,0,0,0.45), 0 0 34px rgba(34,197,94,0.22) !important;
}
.dash-card:hover { border-color: rgba(134,239,172,0.35) !important; }

/* ── Sidebar items: glass pills ── */
.sidebar-logo .logo-text { background: linear-gradient(135deg,#fff 30%,#86efac); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 900; letter-spacing: -0.03em; }
.sidebar-logo img { filter: drop-shadow(0 0 12px rgba(34,197,94,0.7)); }
.sidebar-item { border: 1px solid transparent; border-radius: 12px; overflow: hidden; }
.sidebar-item:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.1); transform: translateX(3px); }
.sidebar-item.active {
  background: linear-gradient(145deg, rgba(134,239,172,0.34), rgba(34,197,94,0.16)) !important;
  border-color: rgba(255,255,255,0.3) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -1px 0 rgba(0,0,0,0.12), 0 6px 22px rgba(34,197,94,0.28) !important;
}
.sidebar-user-row { background: rgba(255,255,255,0.06) !important; border: 1px solid rgba(255,255,255,0.12) !important; border-radius: 14px; }

/* ── Buttons: liquid glass ── */
.btn-accent, .btn-execute, .btn-join, .btn-join-sm, .btn-buy, .quick-launch-btn, .btn-execute-sm, .btn-sm-add, .btn-info, .btn-exec-action {
  position: relative; overflow: hidden; color: #fff !important; border: 1px solid rgba(255,255,255,0.42) !important;
  background:
    linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.55) 50%, transparent 65%) no-repeat -160% 0 / 260% 100%,
    linear-gradient(180deg, rgba(190,255,215,0.78) 0%, rgba(52,211,110,0.66) 46%, rgba(21,150,70,0.82) 100%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(170%); backdrop-filter: blur(10px) saturate(170%);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,0.75), inset 0 -2px 6px rgba(0,60,20,0.35), inset 0 0 14px rgba(255,255,255,0.12),
    0 8px 24px rgba(34,197,94,0.35), 0 1px 3px rgba(0,0,0,0.4) !important;
  text-shadow: 0 1px 2px rgba(0,40,10,0.55);
  transition: background-position .8s var(--ease-out), transform .25s var(--ease-out), box-shadow .3s !important;
}
.btn-accent:hover, .btn-execute:hover, .btn-join:hover, .btn-join-sm:hover, .btn-buy:hover, .quick-launch-btn:hover,
.btn-execute-sm:hover, .btn-sm-add:hover, .btn-info:hover, .btn-exec-action:hover {
  background-position: 160% 0, 0 0 !important; transform: translateY(-2px) scale(1.02); opacity: 1 !important;
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.85), inset 0 -2px 6px rgba(0,60,20,0.35), 0 12px 32px rgba(34,197,94,0.55), 0 0 28px rgba(134,239,172,0.4) !important;
}
.btn-accent:active, .btn-execute:active, .btn-join:active, .quick-launch-btn:active { transform: translateY(0) scale(0.97); }
.btn-accent:disabled { filter: saturate(0.5); }

.btn-ghost, .btn-cancel, .btn-logout, .btn-copy-sm, .btn-clear-sm, .btn-fav-sm, .btn-view-sm, .btn-sm-pill, .btn-copy-key, .filter-tab, .script-tab, .hub-tab, .admin-tab, .tab-close {
  background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04)) !important;
  -webkit-backdrop-filter: blur(8px) saturate(150%); backdrop-filter: blur(8px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.2) !important; color: #e6f4ea;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 14px rgba(0,0,0,0.25) !important;
  transition: transform .25s var(--ease-out), background .25s, box-shadow .25s, border-color .25s !important;
}
.btn-ghost:hover, .btn-cancel:hover, .btn-copy-sm:hover, .btn-clear-sm:hover, .btn-fav-sm:hover, .btn-view-sm:hover, .btn-sm-pill:hover, .btn-copy-key:hover, .filter-tab:hover, .script-tab:hover, .hub-tab:hover, .admin-tab:hover {
  background: linear-gradient(145deg, rgba(167,243,196,0.3), rgba(34,197,94,0.12)) !important;
  border-color: rgba(167,243,196,0.55) !important; transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 8px 22px rgba(34,197,94,0.25) !important;
}
.filter-tab.active, .script-tab.active, .hub-tab.active, .admin-tab.active {
  background: linear-gradient(145deg, rgba(167,243,196,0.5), rgba(34,197,94,0.28)) !important;
  border-color: rgba(255,255,255,0.45) !important; color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 6px 20px rgba(34,197,94,0.35) !important;
}
.btn-logout { color: #fecaca; border-color: rgba(248,113,113,0.35) !important; }
.btn-logout:hover { background: linear-gradient(145deg, rgba(248,113,113,0.35), rgba(248,113,113,0.12)) !important; border-color: rgba(248,113,113,0.7) !important; }
.btn-discord { backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.35) !important; box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.5), 0 8px 24px rgba(88,101,242,0.4) !important; transition: transform .25s var(--ease-out) !important; }
.btn-discord:hover { transform: translateY(-2px) scale(1.02); }

/* ── Inputs ── */
input.admin-input, .admin-input, .admin-select, .script-form-input, .script-form-textarea, .username-input, .search-wrap input, input[type="text"], input[type="password"], input[type="search"], textarea, select {
  background: rgba(0,0,0,0.28) !important; border: 1px solid rgba(255,255,255,0.16) !important; color: #eefff3 !important;
  border-radius: 12px; box-shadow: inset 0 2px 8px rgba(0,0,0,0.35), inset 0 -1px 0 rgba(255,255,255,0.06);
  transition: border-color .25s, box-shadow .25s, background .25s !important;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: rgba(134,239,172,0.7) !important; background: rgba(34,197,94,0.07) !important;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.3), 0 0 0 3px rgba(34,197,94,0.2), 0 0 24px rgba(34,197,94,0.25) !important;
}

/* ── Typography ── */
.page-title { font-size: 2rem; letter-spacing: -0.045em; text-shadow: 0 2px 24px rgba(0,0,0,0.5); }
.page-title .accent { background: linear-gradient(135deg, #d9ffe6 0%, #86efac 45%, #22c55e 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 14px rgba(34,197,94,0.55)); }
.page-sub { color: #b4d6bf; text-shadow: 0 1px 12px rgba(0,0,0,0.6); }
.stat-card-value { text-shadow: 0 0 22px rgba(134,239,172,0.55); }
.stat-badge, .feat-badge, .player-badge, .log-plan-badge, .user-plan-sm {
  background: linear-gradient(145deg, rgba(167,243,196,0.4), rgba(34,197,94,0.2)) !important;
  border: 1px solid rgba(255,255,255,0.3) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); color: #eafff0 !important;
}
.nav-card-icon, .quick-launch-icon, .redeem-card-icon, .si-icon { filter: drop-shadow(0 4px 10px rgba(34,197,94,0.35)); }
.nav-card-icon { background: linear-gradient(145deg, rgba(255,255,255,0.22), rgba(34,197,94,0.14)) !important; border: 1px solid rgba(255,255,255,0.28) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 6px 18px rgba(34,197,94,0.25); }

/* live dot pulse */
.player-dot { animation: exePulse 1.8s ease-in-out infinite; }
@keyframes exePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); } 50% { box-shadow: 0 0 0 7px rgba(74,222,128,0); } }

/* ── Page enter animation (staggered) ── */
.page.active { animation: exeIn .55s var(--ease-out) both; }
.page.active .stat-card, .page.active .dash-card, .page.active .nav-card, .page.active .game-card, .page.active .script-card, .page.active .redeem-card, .page.active .pro-tip-bar, .page.active .help-bar {
  animation: exeRise .6s var(--ease-out) both;
}
.page.active .stat-card:nth-child(2), .page.active .nav-card:nth-child(2) { animation-delay: .06s; }
.page.active .stat-card:nth-child(3), .page.active .nav-card:nth-child(3) { animation-delay: .12s; }
.page.active .nav-card:nth-child(4) { animation-delay: .18s; }
.page.active .dash-card:nth-of-type(2) { animation-delay: .1s; }
@keyframes exeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes exeRise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

/* ── Executor / modals / toasts ── */
.executor-header, .execute-bar { border-radius: 16px; }
.editor-area, .console-body { background: rgba(0,0,0,0.38) !important; border-radius: 14px; }
.modal-backdrop { background: rgba(2,8,4,0.55) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal { border-radius: 22px; }
.toast { background: var(--g-fill-hi) !important; -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); border: 1px solid var(--g-edge) !important; box-shadow: var(--g-inset), var(--g-shadow) !important; border-radius: 14px; }

/* scrollbars */
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(167,243,196,0.5), rgba(34,197,94,0.35)); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* mobile: lighter glass for performance */
@media (max-width: 800px) {
  .sidebar, .dash-card, .stat-card, .nav-card { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .sidebar { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* full-bleed executor bars: no rounded corners at the window edge */
.executor-header, .execute-bar, .console-section { border-radius: 0 !important; border-left: none !important; border-right: none !important; }
.search-wrap input { background: transparent !important; border: none !important; box-shadow: none !important; }
