:root {
  --bg-base: #000000;
  --bg-elevated: #060608;
  --bg-card: rgba(9, 10, 15, 0.42);
  --bg-card-hover: rgba(16, 18, 26, 0.56);
  --bg-glass-btn: rgba(10, 11, 16, 0.30);
  --bg-glass-btn-hover: rgba(20, 22, 32, 0.48);
  --bg-input: rgba(9, 10, 15, 0.42);
  --glass-blur: blur(28px) saturate(155%);
  --glass-blur-heavy: blur(36px) saturate(160%);
  --border-subtle: transparent;
  --border-strong: transparent;
  --border-focus: transparent;
  --text-primary: #ededed;
  --text-secondary: #8a8a8a;
  --text-muted: #525252;
  --accent-silver: #ededed;
  --accent-soft: rgba(255, 255, 255, 0.06);
  --status-green: #b5b5b5;
  --status-red: #d46b6b;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --font-sans: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ink: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

::selection {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-color: #040406;
  overflow-x: hidden;
  position: relative;
}

/* ==================== ATMOSPHERIC MOTION BACKDROP ==================== */
.sv-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #040406;
}

.sv-bg-photo {
  position: absolute;
  inset: -4%;
  background-image: url('/assets/bg-minecraft.jpg?v=2');
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  opacity: 0.74;
  filter: saturate(1.08) contrast(1.05) brightness(0.84);
  transform: translate3d(var(--bgx, 0px), var(--bgy, 0px), 0) scale(1.06);
  animation: svBgBreathe 28s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes svBgBreathe {
  0% {
    transform: translate3d(var(--bgx, 0px), var(--bgy, 0px), 0) scale(1.04);
  }
  100% {
    transform: translate3d(calc(var(--bgx, 0px) - 10px), calc(var(--bgy, 0px) - 8px), 0) scale(1.1);
  }
}

.sv-backdrop-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 78% 72% at 50% 34%, rgba(0, 0, 0, 0.9) 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 34%, rgba(0, 0, 0, 0.9) 0%, transparent 80%);
  animation: svGridDrift 28s linear infinite;
}

@keyframes svGridDrift {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-32px, 24px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.sv-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform, opacity;
}

.sv-orb-a {
  width: 620px;
  height: 620px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.085) 0%, rgba(140, 150, 175, 0.03) 45%, transparent 72%);
  animation: svOrbFloatA 18s ease-in-out infinite alternate;
}

.sv-orb-b {
  width: 560px;
  height: 560px;
  top: 22%;
  right: -140px;
  background: radial-gradient(circle, rgba(190, 200, 225, 0.07) 0%, rgba(120, 125, 145, 0.025) 48%, transparent 74%);
  animation: svOrbFloatB 22s ease-in-out infinite alternate;
}

.sv-orb-c {
  width: 640px;
  height: 460px;
  bottom: -140px;
  left: 28%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  animation: svOrbFloatC 25s ease-in-out infinite alternate;
}

@keyframes svOrbFloatA {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.75; }
  100% { transform: translate3d(90px, 60px, 0) scale(1.12); opacity: 1; }
}

@keyframes svOrbFloatB {
  0% { transform: translate3d(0, 0, 0) scale(1.04); opacity: 0.7; }
  100% { transform: translate3d(-80px, 75px, 0) scale(0.95); opacity: 0.95; }
}

@keyframes svOrbFloatC {
  0% { transform: translate3d(-40px, 0, 0) scale(0.96); opacity: 0.65; }
  100% { transform: translate3d(60px, -45px, 0) scale(1.08); opacity: 0.9; }
}

.sv-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.sv-backdrop-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 88% 82% at 50% 40%, rgba(4, 4, 8, 0.10) 0%, rgba(2, 2, 5, 0.72) 100%),
    linear-gradient(180deg, rgba(4, 4, 6, 0.22) 0%, rgba(4, 4, 6, 0.14) 32%, rgba(4, 4, 6, 0.58) 82%, rgba(3, 3, 5, 0.88) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==================== SPRING MOTION REVEALS & LIQUID TEXT FILL ==================== */
.reveal-up {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition:
    opacity 0.85s var(--ease-lux),
    transform 0.9s var(--ease-lux);
  transition-delay: var(--delay, 0ms);
}

.reveal-up.in-view {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@keyframes metricPulseGlow {
  0% { transform: scale(1); text-shadow: none; }
  45% { transform: scale(1.08); text-shadow: 0 0 18px rgba(255, 255, 255, 0.55); }
  100% { transform: scale(1); text-shadow: none; }
}

.metric-val.stat-bump {
  animation: metricPulseGlow 0.65s var(--ease-lux);
}

.text-fill-up {
  background: linear-gradient(
    to top,
    #ffffff 0%,
    #d4d4d4 40%,
    #454545 55%,
    #262626 100%
  );
  background-size: 100% 230%;
  background-position: 0% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 1.6s var(--ease-ink);
  transition-delay: var(--delay, 0ms);
}

.text-fill-up.in-view,
.reveal-up.in-view .text-fill-up {
  background-position: 0% 100%;
}

.text-fill-silver {
  background: linear-gradient(
    to top,
    #ffffff 0%,
    #a8a8a8 46%,
    #3a3a3a 56%,
    #222222 100%
  );
  background-size: 100% 230%;
  background-position: 0% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 1.8s var(--ease-ink);
  transition-delay: var(--delay, 80ms);
}

.text-fill-silver.in-view,
.reveal-up.in-view .text-fill-silver {
  background-position: 0% 100%;
}

/* ==================== STICKY NAVBAR ==================== */
.navbar-wrap {
  position: sticky;
  top: 14px;
  z-index: 50;
  padding: 0 20px;
  margin-top: 18px;
}

.navbar {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  min-height: 58px;
  background: rgba(8, 9, 14, 0.44);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: none;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.52);
  border-radius: 16px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  transition: background-color 0.55s ease, box-shadow 0.55s ease;
}

.navbar:hover {
  background: rgba(10, 11, 17, 0.54);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  transition: transform 0.45s var(--ease-lux);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(16, 18, 26, 0.52);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  flex-shrink: 0;
  transition: background-color 0.45s ease, transform 0.5s var(--ease-lux);
}

.brand:hover .brand-logo {
  background: rgba(24, 27, 38, 0.68);
  transform: scale(1.06);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
  min-width: 0;
  flex: 0 1 auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition:
    color 0.35s ease,
    background-color 0.35s var(--ease-lux),
    transform 0.4s var(--ease-lux);
  cursor: pointer;
  border: none;
  background: rgba(10, 11, 16, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  white-space: nowrap;
}

.nav-link svg {
  width: 14px;
  height: 14px;
  opacity: 0.72;
  transition: opacity 0.35s ease, transform 0.4s var(--ease-lux);
  flex-shrink: 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-link:hover svg, .nav-link.active svg {
  opacity: 1;
  transform: scale(1.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-actions .btn-sm {
  padding: 7px 11px;
  font-size: 12px;
  gap: 6px;
}

.user-nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-glass-btn);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: none;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.35s ease, transform 0.35s var(--ease-lux);
}
.mobile-menu-btn:hover {
  background: var(--bg-glass-btn-hover);
}
.mobile-menu-btn svg {
  width: 18px;
  height: 18px;
}

/* ==================== DEEP DARK FROSTED BLUR BUTTONS (BORDERLESS) ==================== */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
  transition:
    background-color 0.42s var(--ease-lux),
    box-shadow 0.45s var(--ease-lux),
    color 0.35s ease,
    transform 0.45s var(--ease-lux);
  border: none;
  outline: none;
  white-space: nowrap;
  user-select: none;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -135%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-18deg);
  transition: left 0.85s var(--ease-lux);
  pointer-events: none;
}

.btn:hover::before {
  left: 165%;
}

.btn:active {
  transform: scale(0.968);
}

.btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-lux);
}

.btn:hover svg {
  transform: translateY(-0.5px) scale(1.06);
}

.btn-primary {
  background: linear-gradient(180deg, rgba(26, 28, 38, 0.46) 0%, rgba(10, 11, 17, 0.54) 100%);
  color: #f4f5f8;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.52);
}

.btn-primary::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
}

.btn-primary:hover {
  background: linear-gradient(180deg, rgba(38, 41, 56, 0.62) 0%, rgba(16, 18, 26, 0.68) 100%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(12, 13, 19, 0.34);
  color: var(--text-primary);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.44);
}

.btn-secondary:hover {
  background: rgba(24, 26, 36, 0.54);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.58);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(9, 10, 15, 0.24);
  color: #c2c5d0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.36);
}

.btn-ghost:hover {
  color: #ffffff;
  background: rgba(20, 22, 32, 0.46);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.btn-violet {
  background: rgba(20, 19, 32, 0.42);
  color: #ededf5;
}

.btn-violet:hover {
  background: rgba(32, 30, 50, 0.62);
  transform: translateY(-2px);
}

.btn-danger {
  background: rgba(34, 15, 19, 0.42);
  color: #e59898;
}

.btn-danger:hover {
  background: rgba(48, 20, 25, 0.62);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: 10px;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 14.5px;
  border-radius: 13px;
}

/* ==================== USER CHIP ==================== */
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 5px;
  background: var(--bg-glass-btn);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  border-radius: 99px;
  cursor: pointer;
  transition: background-color 0.45s var(--ease-lux), transform 0.4s var(--ease-lux);
}

.user-pill:hover {
  background: var(--bg-glass-btn-hover);
  transform: translateY(-1px);
}

.user-pill-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  background: #0a0a0a;
}

.user-pill-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.role-badge svg {
  width: 11px;
  height: 11px;
}

.role-OWNER, .role-ADMIN {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.role-BETA, .role-ALPHA {
  background: rgba(255, 255, 255, 0.08);
  color: #d4d4d4;
}

/* ==================== HERO ==================== */
.hero {
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 38px;
  align-items: center;
}

.hero-title {
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 15.5px;
  color: var(--text-secondary);
  max-width: 470px;
  margin-bottom: 30px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: none;
}

.metric-val {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.metric-lbl {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.metric-lbl svg {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
}

/* ==================== 1:1 MONOCHROME STATIC CLICKGUI WINDOW ==================== */
.clickgui-window {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 22% 8%, rgba(255, 255, 255, 0.06) 0%, transparent 65%),
    radial-gradient(ellipse 75% 65% at 85% 32%, rgba(220, 224, 232, 0.04) 0%, transparent 68%),
    linear-gradient(155deg, rgba(20, 21, 25, 0.72) 0%, rgba(11, 12, 15, 0.82) 54%, rgba(6, 7, 9, 0.88) 100%);
  backdrop-filter: blur(28px) saturate(125%);
  -webkit-backdrop-filter: blur(28px) saturate(125%);
  border: none;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.78);
  display: flex;
  flex-direction: column;
  user-select: none;
}

.clickgui-static,
.clickgui-static * {
  pointer-events: none !important;
  cursor: default !important;
  user-select: none !important;
}

.cg1-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 14px 8px;
  gap: 10px;
}

.cg1-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cg1-logo {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.25));
}

.cg1-logo svg {
  width: 22px;
  height: 22px;
}

.cg1-config-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 9px;
  min-width: 106px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  border: none;
  color: #ebedf2;
  font-size: 10.5px;
  font-weight: 500;
}

.cg1-cfg-icon {
  width: 11px;
  height: 11px;
  color: #d0d4dc;
  flex-shrink: 0;
}

.cg1-cfg-chevron {
  width: 11px;
  height: 11px;
  color: #a4a9b6;
  margin-left: auto;
  flex-shrink: 0;
}

.cg1-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
}

.cg1-profile-pill img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.06);
  border: none;
}

.cg1-profile-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.cg1-profile-name {
  font-size: 10.5px;
  font-weight: 600;
  color: #f5f6f8;
}

.cg1-profile-sub {
  font-size: 8.5px;
  font-weight: 500;
  color: #9ba0ad;
  letter-spacing: 0.01em;
}

.cg1-profile-arrow {
  width: 10px;
  height: 10px;
  color: #848996;
  margin-left: 2px;
}

.cg1-top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cg1-search-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #d6d9e0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.cg1-search-btn svg {
  width: 14px;
  height: 14px;
}

.cg1-body-wrap {
  position: relative;
  padding: 2px 14px 14px;
}

.cg1-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  min-height: 256px;
  max-height: 268px;
  overflow: hidden;
}

.cg1-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.cg1-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cg1-group-title {
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(196, 200, 210, 0.6);
  padding-left: 2px;
  margin-bottom: 1px;
  letter-spacing: 0.01em;
}

.cg1-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 31px;
  padding: 0 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  border: none;
}

.cg1-row.enabled {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.20) 0%, rgba(220, 224, 232, 0.13) 100%);
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.cg1-row-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.cg1-sw,
.cg1-sl {
  display: inline-block;
  flex-shrink: 0;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
}

.cg1-sw {
  width: 11px;
  height: 11px;
  color: rgba(190, 195, 206, 0.72);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='14.5 17.5 3 6 3 3 6 3 17.5 14.5'/%3E%3Cline x1='13' y1='19' x2='19' y2='13'/%3E%3Cline x1='16' y1='16' x2='20' y2='20'/%3E%3Cline x1='19' y1='21' x2='21' y2='19'/%3E%3Cpolyline points='14.5 6.5 18 3 21 3 21 6 17.5 9.5'/%3E%3Cline x1='5' y1='14' x2='9' y2='18'/%3E%3Cline x1='7' y1='17' x2='4' y2='20'/%3E%3Cline x1='3' y1='19' x2='5' y2='21'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='14.5 17.5 3 6 3 3 6 3 17.5 14.5'/%3E%3Cline x1='13' y1='19' x2='19' y2='13'/%3E%3Cline x1='16' y1='16' x2='20' y2='20'/%3E%3Cline x1='19' y1='21' x2='21' y2='19'/%3E%3Cpolyline points='14.5 6.5 18 3 21 3 21 6 17.5 9.5'/%3E%3Cline x1='5' y1='14' x2='9' y2='18'/%3E%3Cline x1='7' y1='17' x2='4' y2='20'/%3E%3Cline x1='3' y1='19' x2='5' y2='21'/%3E%3C/svg%3E");
}

.cg1-row.enabled .cg1-sw {
  color: #ffffff;
}

.cg1-mod-name {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(228, 231, 238, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cg1-row.enabled .cg1-mod-name {
  color: #ffffff;
  font-weight: 600;
}

.cg1-row-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cg1-sl {
  width: 10px;
  height: 10px;
  color: rgba(164, 170, 182, 0.56);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.1' stroke-linecap='round'%3E%3Cline x1='4' y1='6' x2='20' y2='6'/%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Cline x1='4' y1='18' x2='20' y2='18'/%3E%3Ccircle cx='9' cy='6' r='2' fill='%23fff'/%3E%3Ccircle cx='15' cy='12' r='2' fill='%23fff'/%3E%3Ccircle cx='10' cy='18' r='2' fill='%23fff'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.1' stroke-linecap='round'%3E%3Cline x1='4' y1='6' x2='20' y2='6'/%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Cline x1='4' y1='18' x2='20' y2='18'/%3E%3Ccircle cx='9' cy='6' r='2' fill='%23fff'/%3E%3Ccircle cx='15' cy='12' r='2' fill='%23fff'/%3E%3Ccircle cx='10' cy='18' r='2' fill='%23fff'/%3E%3C/svg%3E");
}

.cg1-row.enabled .cg1-sl {
  color: rgba(255, 255, 255, 0.78);
}

.cg1-toggle {
  position: relative;
  width: 22px;
  height: 12px;
  border-radius: 99px;
  background: rgba(168, 174, 188, 0.25);
  flex-shrink: 0;
}

.cg1-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #eceef3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.cg1-row.enabled .cg1-toggle {
  background: #f3f5f8;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.36);
}

.cg1-row.enabled .cg1-toggle-knob {
  transform: translateX(10px);
  background: #0c0d11;
}

.cg1-body-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 10, 13, 0.92) 100%);
}

.cg1-subtabs {
  position: absolute;
  left: 50%;
  transform: translateX(-18%);
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  border-radius: 8px;
  background: rgba(12, 13, 16, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.58);
  z-index: 3;
}

.cg1-subtab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(190, 195, 206, 0.65);
  font-size: 9.5px;
  font-weight: 500;
}

.cg1-subtab svg {
  width: 10px;
  height: 10px;
}

.cg1-subtab.active {
  background: rgba(255, 255, 255, 0.11);
  color: #f5f6f8;
}

.cg1-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(9, 10, 13, 0.95);
  border-top: none;
  flex-wrap: nowrap;
  overflow-x: hidden;
}

.cg1-dock-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: rgba(176, 181, 192, 0.64);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.cg1-dock-tab svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.cg1-dock-tab.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: none;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.cg1-dock-tab.active svg {
  color: #ffffff;
}

.wm-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.wm-chip svg {
  width: 12px;
  height: 12px;
  color: var(--text-secondary);
}

.wm-chip-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.wm-logo-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.wm-muted {
  color: var(--text-secondary);
  font-size: 11px;
}

.seavis-clickgui-mock {
  background: rgba(10, 11, 16, 0.56);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
}

.cg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: none;
  background: rgba(14, 15, 22, 0.55);
  gap: 8px;
  flex-wrap: wrap;
}

.cg-logo-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.cg-logo-box img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.cg-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  padding: 4px 10px 4px 6px;
  border-radius: 9px;
}

.cg-profile-chip img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.cg-profile-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.cg-profile-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.cg-profile-sub {
  font-size: 10px;
  color: var(--text-secondary);
}

.cg-search-mock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  background: rgba(9, 10, 14, 0.55);
  border: none;
  padding: 4px 10px;
  border-radius: 7px;
}

.cg-search-mock svg {
  width: 12px;
  height: 12px;
}

.cg-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
}

.cg-group {
  background: rgba(255, 255, 255, 0.03);
  border: none;
  border-radius: 10px;
  padding: 10px;
}

.cg-group-title {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.cg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: none;
  transition: background-color 0.45s ease, color 0.45s ease;
}

.cg-row.enabled {
  background: rgba(255, 255, 255, 0.1);
  color: #ededed;
  border: none;
}

.cg-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px;
  background: rgba(9, 10, 14, 0.65);
  border-top: none;
  font-size: 11px;
  color: var(--text-secondary);
}

.cg-dock span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
}

.cg-dock span svg {
  width: 11px;
  height: 11px;
}

.cg-dock span.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border: none;
}

/* ==================== SECTIONS & BENTO CARDS ==================== */
.section {
  padding: 68px 0;
  border-top: none;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.section-tag svg {
  width: 13px;
  height: 13px;
  color: var(--text-secondary);
}

.section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 460px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  padding: 24px;
  transition:
    background-color 0.55s var(--ease-lux),
    box-shadow 0.55s var(--ease-lux),
    transform 0.6s var(--ease-lux);
}

.bento-card:hover {
  background: var(--bg-card-hover);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.62);
  transform: translateY(-5px);
}

.bento-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.bento-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background-color 0.45s ease, color 0.45s ease, transform 0.5s var(--ease-lux);
}

.bento-card:hover .bento-icon {
  background: rgba(255, 255, 255, 0.11);
  color: var(--text-primary);
  transform: scale(1.08) translateY(-1px);
}

.bento-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.bento-icon svg {
  width: 18px;
  height: 18px;
}

.bento-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bento-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== CLIENT SCREENSHOT SHOWCASE (DARKNESS ABSORPTION) ==================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  background: #000000;
  border: none;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.6);
  border-radius: 18px;
  height: 350px;
  cursor: pointer;
  transition:
    box-shadow 0.75s var(--ease-lux),
    transform 0.9s var(--ease-lux);
}

.gallery-card.featured {
  grid-column: 1 / -1;
  height: 440px;
}

.gallery-card:hover {
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.78);
  transform: translateY(-4px);
}

.gallery-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.06);
  transition: transform 1.4s var(--ease-lux), filter 1.2s var(--ease-lux);
  filter: brightness(0.92) contrast(1.04);
}

.gallery-card.in-view .gallery-media img {
  transform: scale(1);
}

.gallery-card:hover .gallery-media img {
  transform: scale(1.035);
  filter: brightness(1) contrast(1.06);
}

/* Darkness swallows the lower half & blends frame seamlessly into pure black */
.gallery-darkness {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      #000000 0%,
      #000000 18%,
      rgba(0, 0, 0, 0.94) 36%,
      rgba(0, 0, 0, 0.62) 58%,
      rgba(0, 0, 0, 0.16) 80%,
      rgba(0, 0, 0, 0.05) 100%
    ),
    radial-gradient(ellipse 90% 80% at 50% 42%, transparent 52%, rgba(0, 0, 0, 0.78) 100%);
  transition: opacity 0.9s var(--ease-lux);
}

.gallery-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  z-index: 2;
}

.gallery-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(18, 18, 22, 0.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #c8c8c8;
  margin-bottom: 10px;
}

.gallery-meta-chip svg {
  width: 13px;
  height: 13px;
}

.gallery-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.gallery-card.featured .gallery-title {
  font-size: 24px;
}

.gallery-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.5;
}

.gallery-expand-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(10, 11, 17, 0.44);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.45s var(--ease-lux);
}

.gallery-card:hover .gallery-expand-btn {
  background: rgba(24, 26, 38, 0.68);
  color: #ffffff;
  transform: scale(1.08);
}

.gallery-expand-btn svg {
  width: 16px;
  height: 16px;
}

/* Lightbox Viewer Modal */
.lightbox-card {
  width: 100%;
  max-width: 980px;
  background: rgba(8, 9, 14, 0.68);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: none;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.78);
  border-radius: 20px;
  padding: 20px;
  animation: modalIn3d 0.75s var(--ease-lux);
}

.lightbox-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: none;
  background: #040404;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage img {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.35s var(--ease-lux);
}

.lightbox-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ==================== PRICING GRID ==================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.plan-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    background-color 0.55s var(--ease-lux),
    box-shadow 0.55s var(--ease-lux),
    transform 0.6s var(--ease-lux);
}

.plan-card.featured {
  background: linear-gradient(180deg, rgba(22, 24, 34, 0.54) 0%, rgba(10, 11, 17, 0.52) 100%);
  border: none;
}

.plan-card:hover {
  background: var(--bg-card-hover);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.65);
  transform: translateY(-5px);
}

.plan-top {
  margin-bottom: 20px;
}

.plan-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: none;
}

.plan-badge svg {
  width: 11px;
  height: 11px;
}

.plan-card.featured .plan-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #ededed;
}

.plan-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.plan-price {
  font-size: 30px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.plan-old-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-family: var(--font-mono);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
  border-top: none;
  padding-top: 12px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.plan-features li svg {
  width: 15px;
  height: 15px;
  color: var(--text-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==================== SCRIPTS/FAQ & CHANGELOGS ==================== */
.scripts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.script-card {
  background: var(--bg-card);
  border: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition:
    background-color 0.7s var(--ease-lux),
    box-shadow 0.7s var(--ease-lux),
    transform 0.8s var(--ease-lux);
}

.script-card:hover {
  background: var(--bg-card-hover);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.6);
  transform: translateY(-3px);
}

.faq-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.faq-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-icon svg {
  width: 15px;
  height: 15px;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.changelog-card {
  background: var(--bg-card);
  border: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  padding: 22px;
  transition: background-color 0.65s ease, box-shadow 0.65s ease;
}

.changelog-card:hover {
  background: var(--bg-card-hover);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.6);
}

.changelog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.changelog-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.changelog-items li {
  font-size: 13.5px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 16px;
}

.changelog-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #777777;
}

/* ==================== VIEWS & CABINET ==================== */
.view-panel {
  display: none;
  padding: 36px 0 72px;
  animation: panelFadeUp 0.9s var(--ease-lux);
}

.view-panel.active {
  display: block;
}

@keyframes panelFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==================== ALIGNMENT, SPOTLIGHT MOTION & CUSTOM CONTROLS ==================== */
.bento-card,
.plan-card,
.panel-card,
.script-card,
.changelog-card,
.client-showcase {
  --mx: 50%;
  --my: 50%;
}

.bento-card::after,
.plan-card::after,
.script-card::after,
.panel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.065),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.45s var(--ease-lux);
}

.panel-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
  transition: transform 0.6s var(--ease-lux), background-color 0.5s ease, box-shadow 0.5s ease;
}

.panel-card:last-child {
  margin-bottom: 0;
}

.bento-card:hover::after,
.plan-card:hover::after,
.script-card:hover::after,
.panel-card:hover::after {
  opacity: 1;
}

.panel-card:hover {
  background: var(--bg-card-hover);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.6);
}

.cabinet-grid {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 20px;
  align-items: start;
}

.bento-card,
.plan-card,
.script-card,
.changelog-card,
.client-showcase {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.navbar.scrolled {
  background: rgba(7, 8, 12, 0.58);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.68);
}

.hero-metrics > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

.metric-val {
  font-variant-numeric: tabular-nums;
}

.plan-name {
  min-height: 24px;
}

.plan-price-row {
  min-height: 44px;
}

.cg-dock span {
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease;
  border: none;
}

.cg-dock span:hover:not(.active) {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.cg-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ededed;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.75);
  animation: svLivePulse 2.2s ease-in-out infinite;
}

@keyframes svLivePulse {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.12); }
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  background: var(--bg-input);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
  border-radius: 11px;
  color: var(--text-primary);
  font-size: 13.5px;
  line-height: 1.35;
  outline: none;
  color-scheme: dark;
  transition: background-color 0.45s ease, box-shadow 0.45s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  background: rgba(20, 22, 32, 0.74);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.08);
}

input[type="number"].form-input {
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type="number"].form-input::-webkit-outer-spin-button,
input[type="number"].form-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input::-ms-reveal,
input::-ms-clear {
  display: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
  -webkit-text-fill-color: #ededed;
  -webkit-box-shadow: 0 0 0 1000px rgba(14, 15, 22, 0.92) inset;
  transition: background-color 9999s ease-out 0s;
}

.form-textarea {
  min-height: 106px;
  resize: vertical;
}

.inline-form-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.inline-form-row .btn {
  height: 42px;
  flex-shrink: 0;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.admin-form-grid > div {
  min-width: 0;
}

.admin-form-grid .btn {
  height: 42px;
}

.admin-table th,
.admin-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: none;
  vertical-align: middle;
}

.admin-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table td {
  white-space: nowrap;
}

/* Native select hidden cleanly once hydrated into .sv-select */
select.sv-native-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==================== CUSTOM SEAVIS DROPDOWN (.sv-select) ==================== */
.sv-select {
  position: relative;
  width: 100%;
  user-select: none;
}

.sv-select-trigger {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  background: var(--bg-glass-btn);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  border-radius: 11px;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition:
    background-color 0.35s var(--ease-lux),
    box-shadow 0.35s var(--ease-lux);
}

.sv-select-trigger:hover {
  background: var(--bg-glass-btn-hover);
}

.sv-select.open .sv-select-trigger,
.sv-select-trigger:focus-visible {
  background: rgba(20, 22, 32, 0.68);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
  outline: none;
}

.sv-select--sm .sv-select-trigger {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 12px;
  border-radius: 8px;
}

.sv-select-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sv-select-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #ededed;
  opacity: 0.72;
  flex-shrink: 0;
}

.sv-select-arrow {
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform 0.38s var(--ease-lux), color 0.3s ease;
}

.sv-select.open .sv-select-arrow {
  transform: rotate(180deg);
  color: var(--text-primary);
}

.sv-select-menu {
  position: fixed;
  z-index: 420;
  background: rgba(10, 11, 16, 0.62);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: none;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 350px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.24s var(--ease-lux), transform 0.28s var(--ease-lux);
}

.sv-select-menu::-webkit-scrollbar {
  width: 4px;
}

.sv-select-menu::-webkit-scrollbar-track {
  background: transparent;
}

.sv-select-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
}

.sv-select-menu::-webkit-scrollbar-button {
  display: none;
}

.sv-select-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.sv-select-option {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.sv-select-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.sv-select-option.selected {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 600;
}

.sv-select-check {
  width: 13px;
  height: 13px;
  color: #ededed;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s ease, transform 0.24s var(--ease-lux);
}

.sv-select-option.selected .sv-select-check {
  opacity: 1;
  transform: scale(1);
}

/* ==================== CUSTOM SEAVIS SLIDER (.sv-slider) ==================== */
.sv-slider {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.sv-slider-track {
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  overflow: hidden;
}

.sv-slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 30%;
  background: linear-gradient(90deg, #6e6e78 0%, #ededed 100%);
  border-radius: 99px;
  transition: width 0.08s ease-out;
}

/* Rounded-square with black inner dot thumb (matching in-game Seavis UI) */
.sv-slider-thumb {
  position: absolute;
  top: 50%;
  left: 30%;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: #ededed;
  border: none;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  transition: transform 0.22s var(--ease-lux), background-color 0.2s ease;
  pointer-events: none;
}

.sv-slider-thumb::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #08080a;
}

.sv-slider:hover .sv-slider-thumb,
.sv-slider.dragging .sv-slider-thumb {
  transform: translate(-50%, -50%) scale(1.12);
  background: #ffffff;
}

.panel-card-title {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.title-with-icon svg {
  width: 17px;
  height: 17px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.avatar-upload-zone {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: var(--bg-input);
  border: none;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.avatar-big-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  background: #141414;
  flex-shrink: 0;
}

.form-group { margin-bottom: 14px; position: relative; }
.form-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.form-label svg { width: 13px; height: 13px; color: var(--text-muted); }

.info-list { display: flex; flex-direction: column; gap: 10px; }
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  background: var(--bg-input);
  border: none;
  border-radius: 10px;
  font-size: 13px;
}
.info-row-lbl { color: var(--text-secondary); display: inline-flex; align-items: center; gap: 7px; }
.info-row-lbl svg { width: 14px; height: 14px; color: var(--text-muted); }
.info-row-val { font-family: var(--font-mono); font-weight: 500; }

.cab-preview-box {
  background: rgba(9, 10, 15, 0.46);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 12px;
  padding: 13px;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}

/* table-wrap stays cleanly positioned above responsive rules */
.table-wrap { width: 100%; overflow-x: auto; border-radius: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.045);
}
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

/* ==================== MODALS (UNOBSTRUCTED HEADER + CLOSE BUTTON) ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 120;
}

.modal-backdrop.open {
  display: flex;
  animation: backdropIn 0.55s var(--ease-lux);
}

@keyframes backdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 450px;
  background: rgba(9, 10, 15, 0.68);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: none;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.78);
  border-radius: 20px;
  padding: 24px 26px 26px;
  position: relative;
  animation: modalIn3d 0.85s var(--ease-lux);
}

@keyframes modalIn3d {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-brand-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-brand-title img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.modal-brand-title svg {
  width: 17px;
  height: 17px;
  color: var(--text-secondary);
}

.modal-close {
  flex-shrink: 0;
  background: var(--bg-glass-btn);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.35s ease, background-color 0.35s ease, transform 0.35s var(--ease-lux);
}

.modal-close svg {
  width: 15px;
  height: 15px;
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-glass-btn-hover);
  transform: scale(1.06);
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.captcha-img {
  height: 48px;
  width: 160px;
  border-radius: 10px;
  border: none;
  background: #0b0b0b;
  flex-shrink: 0;
}

.toast-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.toast {
  background: rgba(10, 11, 16, 0.68);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  max-width: 360px;
  animation: panelFadeUp 0.55s var(--ease-lux);
}
.toast.error { color: #e29696; }
.toast.success { color: #ffffff; }

/* ==================== MONOBANK CHECKOUT BOX ==================== */
.monobank-pay-box {
  background: rgba(10, 11, 16, 0.52);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: none;
  border-radius: 14px;
  padding: 16px;
}

.monobank-pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.monobank-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.pay-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4a74a;
  box-shadow: 0 0 10px rgba(212, 167, 74, 0.65);
  animation: svPayPulse 1.6s ease-in-out infinite;
}

.pay-status-dot.paid {
  background: #6ee7b7;
  box-shadow: 0 0 10px rgba(110, 231, 183, 0.7);
  animation: none;
}

@keyframes svPayPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.12); }
}

.pay-copy-btn {
  border: none;
  background: var(--bg-glass-btn);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s var(--ease-lux);
}

.pay-copy-btn:hover {
  background: var(--bg-glass-btn-hover);
  transform: translateY(-1px);
}

.monobank-pay-hint {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer {
  border-top: none;
  padding: 40px 0;
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.4s ease;
}

.footer-links a svg {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

.footer-links a:hover {
  color: var(--text-primary);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up, .text-fill-up, .text-fill-silver, .view-panel, .modal-card, .lightbox-card,
  .sv-backdrop-grid, .sv-orb, .sv-bg-photo, .sv-bg-canvas, .cg-live-dot, .pay-status-dot {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    background-position: 0% 100% !important;
  }
}

@media (max-width: 1220px) {
  .nav-dl-btn span,
  .adm-btn-text { display: none; }
  .nav-dl-btn,
  #adminNavBtn { padding: 7px 10px; }
}

@media (max-width: 980px) {
  .mobile-menu-btn { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(10, 10, 14, 0.85);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    border: none;
    border-radius: 16px;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  }
  .nav-links.open { display: flex; }
  .nav-link { text-align: left; padding: 10px 14px; font-size: 14px; }
  .hero-grid, .cabinet-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card, .gallery-card.featured { height: 320px; }
  .admin-form-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .navbar-wrap { padding: 0 12px; top: 10px; }
  .navbar { padding: 8px 12px; gap: 8px; }
  .adm-btn-text { display: none; }
  .user-pill-name { max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { padding: 36px 0 44px; }
  .hero-title { font-size: 32px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .hero-metrics { grid-template-columns: 1fr; gap: 12px; }
  .pricing-grid, .bento-grid, .scripts-grid, .admin-form-grid { grid-template-columns: 1fr; }
  .cg-body, .cg1-columns { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .cg1-topbar { grid-template-columns: 1fr auto; }
  .cg1-top-right { display: none; }
  .cg1-subtabs { display: none; }
  .cg1-body-fade { display: none; }
  .cg-dock, .cg1-dock { flex-wrap: wrap; }
  .inline-form-row { flex-direction: column; align-items: stretch; }
  .avatar-upload-zone { flex-direction: column; text-align: center; }
  .gallery-card, .gallery-card.featured { height: 260px; }
  .gallery-content { padding: 18px; }
}

/* ==================== CABINET SUBTABS & CONFIGS TAB ==================== */
.cabinet-subtabs {
  display: inline-flex;
  gap: 8px;
  padding: 5px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  backdrop-filter: blur(var(--glass-blur));
}

.cab-subtab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.cab-subtab svg {
  width: 15px;
  height: 15px;
}

.cab-subtab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.cab-subtab.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-weight: 600;
}

.configs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 18px;
}

.cfg-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cfg-card-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
  max-height: 190px;
  overflow: hidden;
}

.cfg-photo-thumb {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  height: 170px;
  overflow: hidden;
  position: relative;
}

.cfg-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.cfg-photo-thumb:hover img {
  transform: scale(1.04);
}

.cfg-card-no-photo {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.cfg-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.cfg-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cfg-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--text-primary);
}

.cfg-card-author {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.cfg-card-author img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.cfg-code-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f4f4f6;
  white-space: nowrap;
}

.cfg-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.cfg-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.cfg-meta-info {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.pub-cfg-photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pub-cfg-photo-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 70px;
}

.pub-cfg-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pub-cfg-photo-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.pub-cfg-code-input {
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.pub-cfg-code-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.pub-cfg-code-hint.ok {
  color: #4ade80;
}

.pub-cfg-code-hint.err {
  color: #f87171;
}

.pub-cfg-manual-details {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.pub-cfg-manual-details summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-secondary);
  user-select: none;
}

.pub-cfg-manual-details summary:hover {
  color: var(--text-primary);
}
