@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #080b14;
  --bg-2: #0d1222;
  --card: rgba(255, 255, 255, 0.075);
  --card-2: rgba(255, 255, 255, 0.105);
  --border: rgba(255, 255, 255, 0.13);
  --text: #f7f8ff;
  --muted: rgba(247, 248, 255, 0.68);
  --muted-2: rgba(247, 248, 255, 0.44);
  --blue: #5865f2;
  --blue-2: #7c87ff;
  --danger: #ff5277;
  --success: #42e39b;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.35);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(88, 101, 242, 0.22), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(120, 80, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #070a13 0%, #0d1222 48%, #080b14 100%);
}

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

button,
a {
  letter-spacing: 0.01em;
}

.hidden {
  display: none !important;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 10%, rgba(88, 101, 242, 0.25), transparent 32%),
    #080b14;
}

.loader-card {
  width: min(460px, 100%);
  padding: 42px;
  border-radius: 34px;
  text-align: center;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.loader-logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 18px 34px rgba(88, 101, 242, 0.25));
}

.loader-card h1 {
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.loader-card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.progress-shell {
  height: 13px;
  border-radius: 99px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--border);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #9aa2ff, #48ddff);
  box-shadow: 0 0 28px rgba(88, 101, 242, 0.7);
  transition: width 0.08s linear;
}

.progress-percent {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
}

.app {
  width: min(1180px, calc(100% - 38px));
  margin: 0 auto;
  padding: 26px 0 32px;
}

.panel-app {
  width: min(1320px, calc(100% - 38px));
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 18px;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--muted);
  font-weight: 700;
  padding: 11px 12px;
  border-radius: 14px;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  font-family: inherit;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: white;
  box-shadow: 0 14px 38px rgba(88, 101, 242, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border);
  color: var(--text);
}

.btn-danger {
  background: rgba(255, 82, 119, 0.15);
  border-color: rgba(255, 82, 119, 0.3);
  color: #ffd9e2;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--text);
}

.btn-small {
  min-height: 38px;
  padding: 0 13px;
  font-size: 13px;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 5px 13px 5px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.profile-pill img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
}

.hero {
  position: relative;
  padding: 88px 0 46px;
  text-align: center;
}

.hero h1,
.panel-hero h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

.hero-text,
.panel-hero p {
  width: min(760px, 100%);
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 12px;
  color: #aeb5ff;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.hero-glow {
  position: absolute;
  inset: 40px 20% auto;
  height: 160px;
  background: rgba(88, 101, 242, 0.2);
  filter: blur(80px);
  z-index: -1;
}

.services {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
  margin-top: 18px;
}

.service-card {
  min-height: 360px;
  padding: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.055));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
  overflow: hidden;
  position: relative;
}

.service-card.clickable {
  cursor: pointer;
}

.service-card.clickable:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 135, 255, 0.48);
  background:
    radial-gradient(circle at 20% 0%, rgba(88, 101, 242, 0.25), transparent 35%),
    linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.065));
}

.service-icon {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--border);
  margin-bottom: 28px;
}

.service-icon img {
  max-width: 58px;
  max-height: 58px;
  object-fit: contain;
  border-radius: 16px;
}

.service-card h2 {
  font-size: clamp(31px, 4vw, 50px);
  line-height: 1;
  letter-spacing: -0.055em;
  margin: 0 0 15px;
}

.service-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

.card-kicker {
  color: #aeb5ff !important;
  text-transform: uppercase;
  font-size: 12px !important;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.card-action {
  width: fit-content;
  display: inline-flex;
  margin-top: 28px;
  padding: 13px 15px;
  border-radius: 15px;
  background: rgba(88, 101, 242, 0.16);
  border: 1px solid rgba(88, 101, 242, 0.28);
  font-weight: 900;
  letter-spacing: 0.01em;
}

.card-action.disabled {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted-2);
  border-color: var(--border);
}

.service-locked {
  opacity: .62;
  filter: grayscale(.65);
}

.service-locked::after {
  content: "LOCKED";
  position: absolute;
  top: 30px;
  right: -45px;
  width: 170px;
  text-align: center;
  padding: 9px 0;
  transform: rotate(35deg);
  background: rgba(255,255,255,.12);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.stats-section {
  margin-top: 64px;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.055em;
}

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

.stat-card {
  padding: 26px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.072);
}

.stat-card strong {
  display: block;
  font-size: 38px;
  letter-spacing: -0.06em;
  margin-bottom: 8px;
}

.stat-card span {
  color: var(--muted);
  font-weight: 700;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 54px;
  padding: 24px 4px 0;
  color: var(--muted);
}

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

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
}

.modal-box {
  position: relative;
  width: min(440px, 100%);
  padding: 30px;
  border-radius: 26px;
  background: #11182b;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.modal-box h3 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.modal-box p {
  color: var(--muted);
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.07);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.panel-hero {
  padding: 62px 0 30px;
  text-align: left;
}

.panel-hero h1 {
  width: min(920px, 100%);
  font-size: clamp(42px, 6vw, 72px);
}

.panel-hero p {
  margin-left: 0;
  width: min(820px, 100%);
}

.panel-status {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.22);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-status strong {
  color: var(--text);
}

.guild-columns {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.guild-column {
  min-height: 520px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.07);
  box-shadow: 0 20px 70px rgba(0,0,0,.22);
}

.muted-column {
  background: rgba(255,255,255,.048);
}

.column-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.column-title h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.045em;
}

.counter {
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(88, 101, 242, .18);
  border: 1px solid rgba(88, 101, 242, .3);
  font-weight: 900;
}

.guild-list {
  display: grid;
  gap: 13px;
}

.guild-card,
.empty-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 19px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.07);
}

.guild-edit {
  cursor: pointer;
}

.guild-edit:hover {
  border-color: rgba(124, 135, 255, 0.42);
  background: rgba(255,255,255,.095);
}

.guild-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 17px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(88,101,242,.22);
  border: 1px solid var(--border);
  font-weight: 900;
}

.guild-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guild-info {
  min-width: 0;
  flex: 1;
}

.guild-info h3 {
  margin: 0 0 5px;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.guild-info p,
.empty-card span {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.empty-card {
  flex-direction: column;
  align-items: start;
}

.guild-actions {
  flex: 0 0 auto;
}

.guild-config {
  margin-top: 24px;
}

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

.selected-guild {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.07);
}

.selected-guild h2 {
  margin: 0;
  font-size: 22px;
}

.selected-guild span {
  color: var(--muted);
  font-size: 13px;
}

.config-layout {
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 22px;
}

.config-sidebar,
.config-content,
.config-card,
.module-card {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.07);
  border-radius: 24px;
}

.config-sidebar {
  padding: 14px;
  display: grid;
  gap: 9px;
  align-content: start;
}

.config-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 13px 14px;
  border-radius: 15px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.config-tab.active,
.config-tab:hover {
  color: var(--text);
  background: rgba(88,101,242,.16);
  border-color: rgba(88,101,242,.23);
}

.config-content {
  padding: 22px;
}

.config-card {
  padding: 24px;
  margin-bottom: 18px;
}

.config-card h2 {
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.config-card p {
  color: var(--muted);
  line-height: 1.65;
}

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

.module-card {
  padding: 20px;
  position: relative;
}

.module-card h3 {
  margin: 20px 0 8px;
}

.module-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.dot {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: rgba(255,255,255,.28);
}

.dot.ok {
  background: var(--success);
  box-shadow: 0 0 18px rgba(66,227,155,.55);
}

@media (max-width: 920px) {
  .services,
  .stats-grid,
  .guild-columns,
  .config-layout,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    width: 100%;
  }

  .btn,
  .nav-link {
    flex: 1;
  }

  .service-card {
    min-height: 300px;
  }
}

@media (max-width: 560px) {
  .app,
  .panel-app {
    width: min(100% - 24px, 1180px);
  }

  .loader-card {
    padding: 28px 20px;
  }

  .hero {
    padding-top: 60px;
  }

  .service-card,
  .guild-column,
  .config-content {
    padding: 20px;
  }

  .guild-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .guild-actions {
    width: 100%;
  }

  .guild-actions .btn {
    width: 100%;
  }
}

.panel-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.settings-form {
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.055);
  border-radius: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.form-grid label {
  display: grid;
  gap: 8px;
}

.form-grid label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-grid input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline: none;
  font: inherit;
}

.form-grid input:focus {
  border-color: rgba(124,135,255,.55);
}

.switch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.switch-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.045);
  color: var(--muted);
  font-weight: 800;
}

.switch-row input {
  width: 18px;
  height: 18px;
}

.save-status {
  min-height: 22px;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 920px) {
  .form-grid,
  .switch-grid {
    grid-template-columns: 1fr;
  }
}

.bot-process-card {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.065);
}

.bot-process-card .dot {
  position: static;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
}

.bot-process-card.online .dot {
  background: var(--success);
  box-shadow: 0 0 18px rgba(66,227,155,.6);
}

.bot-process-card strong {
  display: block;
  margin-bottom: 4px;
}

.bot-process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tab-panel {
  display: none;
}

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

.config-card.compact {
  margin-bottom: 18px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.feature-list span {
  padding: 14px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-weight: 800;
}

.premium-card {
  background:
    radial-gradient(circle at 20% 0%, rgba(88, 101, 242, 0.22), transparent 35%),
    rgba(255,255,255,.07);
}

button:disabled,
.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
}

@media (max-width: 920px) {
  .feature-list {
    grid-template-columns: 1fr;
  }
}



/* =========================
   V17 FULL LANDING POLISH
   ========================= */

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(88, 101, 242, 0.16), transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(57, 198, 255, 0.08), transparent 22%),
    #080b14 !important;
}

.loader-glow {
  position: absolute;
  width: min(620px, 78vw);
  height: min(620px, 78vw);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(88, 101, 242, 0.24), rgba(72, 221, 255, 0.10) 34%, transparent 68%);
  filter: blur(24px);
  opacity: 0.95;
  pointer-events: none;
}

.loader-card {
  position: relative;
  z-index: 2;
  width: min(500px, 100%);
  padding: 42px;
  border-radius: 34px;
  text-align: center;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.loader-logo {
  width: 116px;
  height: 116px;
  object-fit: contain;
  margin-bottom: 18px;
  border-radius: 0;
  filter: drop-shadow(0 18px 34px rgba(88, 101, 242, 0.35));
}

.hero-full {
  padding-top: 96px;
  padding-bottom: 58px;
}

.hero-full h1 {
  width: min(1020px, 100%);
  margin-inline: auto;
  font-size: clamp(48px, 7.2vw, 92px);
}

.hero-badge {
  width: fit-content;
  margin: 0 auto 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(88, 101, 242, 0.34);
  background: rgba(88, 101, 242, 0.14);
  color: rgba(247, 248, 255, 0.82);
  font-size: 13px;
  font-weight: 900;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: #42e39b;
  box-shadow: 0 0 18px rgba(66, 227, 155, 0.75);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-mini-grid {
  width: min(860px, 100%);
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-mini-grid div {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.058);
}

.hero-mini-grid strong {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
}

.hero-mini-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.07);
}

.status-pill.available {
  color: #d9fff0;
  border-color: rgba(66, 227, 155, 0.26);
  background: rgba(66, 227, 155, 0.10);
}

.status-pill.locked {
  color: rgba(247, 248, 255, 0.68);
}

.service-locked {
  position: relative;
  overflow: hidden;
  padding-top: 34px;
}

.service-locked::after {
  display: none !important;
}

.locked-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 4;
  min-width: 128px;
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.105);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(247, 248, 255, 0.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  white-space: nowrap;
}

.service-locked .service-top {
  padding-top: 14px;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  padding: 26px 26px 24px;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: -60px auto auto -60px;
  width: 150px;
  height: 150px;
  background: rgba(88, 101, 242, 0.16);
  border-radius: 999px;
  filter: blur(18px);
}

.stat-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(88, 101, 242, 0.18);
  border: 1px solid rgba(88, 101, 242, 0.30);
  font-size: 22px;
}

.stat-card strong,
.stat-card span {
  position: relative;
}

.features-section,
.roadmap-section {
  margin-top: 70px;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-cards article {
  min-height: 230px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 20% 0%, rgba(88, 101, 242, 0.14), transparent 36%),
    rgba(255, 255, 255, 0.065);
}

.feature-cards article span {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--border);
  color: #aeb5ff;
  font-weight: 900;
}

.feature-cards article h3 {
  margin: 22px 0 10px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.feature-cards article p {
  color: var(--muted);
  line-height: 1.65;
}

.roadmap-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 34px;
  border-radius: 28px;
  border: 1px solid rgba(88, 101, 242, 0.25);
  background:
    radial-gradient(circle at 10% 0%, rgba(88, 101, 242, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.055));
  box-shadow: var(--shadow);
}

.roadmap-card h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.055em;
}

.roadmap-card p {
  margin: 0;
  width: min(680px, 100%);
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 920px) {
  .hero-mini-grid,
  .feature-cards,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-card {
    align-items: stretch;
    flex-direction: column;
  }

  .roadmap-card .btn {
    width: 100%;
  }

  .service-top {
    flex-direction: column;
  }

  .locked-badge {
    top: 16px;
    right: 16px;
  }
}

@media (max-width: 560px) {
  .loader-card {
    padding: 28px 20px;
  }

  .loader-logo {
    width: 96px;
    height: 96px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}



/* V18: stary wygląd menu usług + poprawiony loading i locked badge */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(88, 101, 242, 0.18), transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(57, 198, 255, 0.08), transparent 24%),
    #080b14 !important;
}

.loader-glow {
  position: absolute;
  width: min(620px, 78vw);
  height: min(620px, 78vw);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(88, 101, 242, 0.24), rgba(72, 221, 255, 0.10) 34%, transparent 68%);
  filter: blur(24px);
  opacity: 0.95;
  pointer-events: none;
}

.loader-card {
  position: relative;
  z-index: 2;
}

.old-hero {
  text-align: left;
  padding-top: 88px;
}

.old-hero h1 {
  margin-left: 0;
  width: min(760px, 100%);
}

.old-hero .hero-text {
  margin-left: 0;
  width: min(740px, 100%);
}

.old-services {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.old-services .service-card {
  min-height: 345px;
}

.old-locked {
  position: relative;
  overflow: hidden;
}

.service-locked::after {
  display: none !important;
}

.locked-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 5;
  min-width: 132px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: rgba(255,255,255,.105);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(247,248,255,.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.stats-icons .stat-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding-top: 26px;
}

.stats-icons .stat-card::before {
  content: "";
  position: absolute;
  inset: -70px auto auto -70px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(88,101,242,.16);
  filter: blur(18px);
}

.stat-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(88,101,242,.18);
  border: 1px solid rgba(88,101,242,.30);
  font-size: 22px;
}

.stats-icons .stat-card strong,
.stats-icons .stat-card span {
  position: relative;
}

@media (max-width: 920px) {
  .old-services {
    grid-template-columns: 1fr;
  }

  .old-hero {
    text-align: center;
  }

  .old-hero h1,
  .old-hero .hero-text {
    margin-left: auto;
    margin-right: auto;
  }
}


/* =========================
   V21 PANEL POWITANIA
   ========================= */

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(88, 101, 242, 0.18), transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(57, 198, 255, 0.08), transparent 24%),
    #080b14 !important;
}

.loader-glow {
  position: absolute;
  width: min(620px, 78vw);
  height: min(620px, 78vw);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(88, 101, 242, 0.24), rgba(72, 221, 255, 0.10) 34%, transparent 68%);
  filter: blur(24px);
  pointer-events: none;
}

.loader-card {
  position: relative;
  z-index: 2;
}

.loader-logo-wrap {
  width: 118px;
  height: 118px;
  margin: 0 auto 18px;
  border-radius: 32px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(88,101,242,.16);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 48px rgba(88,101,242,.22);
}

.loader-logo-wrap .loader-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 !important;
}

.old-hero {
  text-align: left;
  padding-top: 88px;
}

.old-hero h1 {
  margin-left: 0;
  width: min(760px, 100%);
}

.old-hero .hero-text {
  margin-left: 0;
  width: min(740px, 100%);
}

.old-services {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.old-services .service-card {
  min-height: 345px;
}

.old-locked {
  position: relative;
  overflow: hidden;
}

.service-locked::after {
  display: none !important;
}

.locked-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 5;
  min-width: 132px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: rgba(255,255,255,.105);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(247,248,255,.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.stats-icons .stat-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  padding-top: 26px;
}

.stats-icons .stat-card::before {
  content: "";
  position: absolute;
  inset: -70px auto auto -70px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(88,101,242,.16);
  filter: blur(18px);
}

.stat-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(88,101,242,.18);
  border: 1px solid rgba(88,101,242,.30);
  font-size: 22px;
}

.selected-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.premium-buy-btn {
  min-height: 56px;
  padding: 0 20px;
  border: 1px solid rgba(255, 197, 61, .42);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffc53d, #ff9f1c);
  color: #1d1200;
  font-weight: 900;
  font-family: inherit;
  cursor: not-allowed;
  box-shadow: 0 18px 44px rgba(255, 177, 32, .18);
}

.premium-buy-btn span {
  display: block;
  font-size: 11px;
  opacity: .76;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sidebar-heading {
  margin: 18px 8px 6px;
  color: rgba(247,248,255,.46);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: default;
}

.tab-panel {
  display: none;
}

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

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.info-grid div {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.055);
}

.info-grid strong {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: rgba(88,101,242,.18);
  color: #cdd2ff;
}

.info-grid span {
  color: var(--muted);
  font-weight: 700;
}

.settings-box,
.config-line {
  display: grid;
  gap: 14px;
}

.settings-box {
  grid-template-columns: 1fr 1fr;
}

.settings-box label:first-child {
  grid-column: 1 / -1;
}

.settings-box label,
.config-line label {
  display: grid;
  gap: 8px;
}

.settings-box span,
.config-line label > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.settings-box input,
.config-line input,
.config-line textarea,
.config-line select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(0,0,0,.2);
  color: var(--text);
  outline: none;
  font: inherit;
}

.config-line textarea {
  padding: 13px 14px;
  resize: vertical;
}

.settings-box input:disabled {
  color: rgba(247,248,255,.46);
  cursor: not-allowed;
}

.panel-card-header,
.welcome-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.welcome-block {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.055);
  margin-top: 18px;
}

.welcome-title-row {
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.welcome-title-row h3 {
  margin: 0 0 6px;
  font-size: 23px;
  letter-spacing: -.04em;
}

.welcome-title-row p {
  margin: 0;
  color: var(--muted);
}

.step-pill {
  min-width: 54px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.24);
  color: var(--text);
  font-weight: 900;
}

.switch-main {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 32px;
}

.switch-main input {
  display: none;
}

.switch-main span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: .18s ease;
}

.switch-main span::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 4px;
  top: 3px;
  border-radius: 999px;
  background: white;
  transition: .18s ease;
}

.switch-main input:checked + span {
  background: linear-gradient(135deg, #8bdc38, #5ea91f);
  box-shadow: 0 0 22px rgba(139,220,56,.32);
}

.switch-main input:checked + span::after {
  transform: translateX(25px);
}

.clean-switch {
  display: flex !important;
  flex-direction: row;
  align-items: center;
}

.clean-switch input {
  width: 19px;
  height: 19px;
}

.embed-preview {
  margin-top: 18px;
  display: flex;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(88,101,242,.28);
  background: rgba(88,101,242,.08);
}

.embed-line {
  width: 5px;
  background: #5865f2;
}

.embed-body {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
}

.embed-body strong {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  color: #ffffff;
}

.embed-body h4 {
  margin: 0 0 10px;
  font-size: 17px;
}

.embed-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.embed-body img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
}

.save-bar {
  position: sticky;
  bottom: 18px;
  z-index: 6;
  margin-top: 22px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(12, 17, 31, .88);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.save-status {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

@media (max-width: 920px) {
  .old-services,
  .info-grid,
  .settings-box {
    grid-template-columns: 1fr;
  }

  .old-hero {
    text-align: center;
  }

  .old-hero h1,
  .old-hero .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .selected-row {
    justify-content: stretch;
  }

  .selected-row > * {
    width: 100%;
  }

  .panel-card-header,
  .welcome-title-row,
  .save-bar {
    flex-direction: column;
    align-items: stretch;
  }
}



/* =========================
   V22 PREMIUM STATUS + DISCORD EMBED POLISH
   ========================= */

.brand img,
.topbar .brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 28px rgba(88,101,242,.18);
}

.profile-pill img {
  border-radius: 999px !important;
}

.premium-status-box {
  margin-top: 20px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 197, 61, .30);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 197, 61, .13), transparent 34%),
    rgba(255,255,255,.055);
}

.premium-status-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.premium-status-header h3 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -.05em;
}

.premium-status-header span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.premium-locked-field {
  position: relative;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 197, 61, .34);
  background:
    linear-gradient(135deg, rgba(255,197,61,.10), rgba(255,159,28,.04)),
    rgba(0,0,0,.18);
  overflow: hidden;
}

.premium-locked-field label {
  display: grid;
  gap: 8px;
}

.premium-locked-field label span {
  color: rgba(255, 230, 166, .9);
  font-size: 13px;
  font-weight: 900;
}

.premium-locked-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255, 197, 61, .28);
  border-radius: 15px;
  background: rgba(0,0,0,.24);
  color: var(--text);
  outline: none;
  font: inherit;
}

.premium-locked-field:not(.is-premium) input,
.premium-status-box:not(.is-premium) .switch-main {
  filter: grayscale(.35);
}

.premium-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  text-align: center;
  background: rgba(12, 13, 18, .74);
  backdrop-filter: blur(7px);
  border-radius: inherit;
  color: #ffe7a3;
}

.premium-locked-field.is-premium .premium-lock-overlay {
  display: none;
}

.premium-crown {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(135deg, #ffc53d, #ff9f1c);
  color: #1d1200;
  font-size: 27px;
  box-shadow: 0 16px 38px rgba(255, 177, 32, .22);
}

.premium-lock-overlay strong {
  font-size: 20px;
  letter-spacing: -.03em;
}

.premium-lock-overlay span {
  color: rgba(255, 238, 196, .78);
  font-size: 13px;
  font-weight: 800;
}

/* Discord-like embed preview */
.embed-preview {
  margin-top: 18px;
  display: flex;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(35, 39, 42, .95);
  background: #2b2d31 !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.25);
  max-width: 540px;
}

.embed-line {
  width: 5px;
  background: #5865f2;
}

.embed-body {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  color: #dbdee1;
}

.embed-body strong {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  color: #f2f3f5;
  font-weight: 700;
}

.embed-body h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #ffffff;
  font-weight: 800;
}

.embed-body p {
  margin: 0;
  color: #dbdee1;
  line-height: 1.48;
  font-size: 14px;
}

.embed-body img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
}

.premium-buy-btn {
  transition: transform .18s ease, filter .18s ease;
}

.premium-buy-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

@media (max-width: 700px) {
  .premium-status-header {
    flex-direction: column;
  }

  .embed-preview {
    max-width: 100%;
  }
}



/* =========================
   V23 SOFT FRONTEND PROTECTION + AUTH FIX
   ========================= */

body:not(.allow-select),
body:not(.allow-select) * {
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
select,
option {
  -webkit-user-select: text !important;
  user-select: text !important;
}

#loginButton {
  visibility: hidden;
}

body.auth-ready #loginButton {
  visibility: visible;
}

body.auth-ready #loginButton.hidden {
  visibility: hidden;
}

.security-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(15, 18, 31, .92);
  color: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(12px);
  transition: .18s ease;
  font-weight: 800;
  pointer-events: none;
  backdrop-filter: blur(14px);
}

.security-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Rounder logos */
.brand img,
.loader-logo-wrap,
.service-icon img {
  border-radius: 16px;
}


/* =========================
   V24 ENGAGEMENT SYSTEMS UI
   ========================= */

.sub-tab {
  margin-left: 12px;
  width: calc(100% - 12px);
  opacity: .88;
}

.instruction-card {
  margin: 20px 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(88,101,242,.24);
  background:
    radial-gradient(circle at 0% 0%, rgba(88,101,242,.14), transparent 38%),
    rgba(255,255,255,.052);
  display: grid;
  gap: 8px;
}

.instruction-card strong {
  color: #fff;
  font-size: 17px;
}

.instruction-card span {
  color: var(--muted);
  font-weight: 700;
}

.dependency-warning {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,197,61,.34);
  background: rgba(255,197,61,.09);
  color: #ffe8ad;
  font-weight: 800;
}

.config-line select {
  appearance: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.02)),
    rgba(0,0,0,.2);
}

.config-line textarea {
  min-height: 110px;
}

.premium-locked-field .config-line {
  margin-top: 0;
}

@media (max-width: 920px) {
  .sub-tab {
    margin-left: 0;
    width: 100%;
  }
}


/* =========================
   V26 ADMIN PANEL + CHANGELOG
   ========================= */

.btn-admin {
  border: 1px solid rgba(255, 197, 61, .42);
  background: linear-gradient(135deg, #ffbf2f, #ff8c1a);
  color: #1b1000 !important;
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(255, 159, 28, .16);
}

.changelog-section {
  margin: 54px auto 0;
  width: min(1180px, calc(100% - 36px));
}

.changelog-section .section-header {
  text-align: left;
}

.changelog-section .section-header p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 8px;
}

.changelog-rail {
  margin-top: 22px;
  display: flex;
  flex-direction: row-reverse;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
}

.changelog-rail::-webkit-scrollbar {
  height: 10px;
}

.changelog-rail::-webkit-scrollbar-thumb {
  background: rgba(255, 180, 43, .32);
  border-radius: 999px;
}

.changelog-card {
  flex: 0 0 320px;
  min-height: 190px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 197, 61, .35);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 197, 61, .22), transparent 38%),
    linear-gradient(135deg, rgba(255, 197, 61, .13), rgba(255, 135, 31, .07)),
    rgba(255,255,255,.055);
  box-shadow: 0 22px 60px rgba(255, 159, 28, .10);
  scroll-snap-align: end;
}

.changelog-card h3 {
  margin: 12px 0 10px;
  font-size: 23px;
  letter-spacing: -.04em;
}

.changelog-card p {
  margin: 0;
  color: rgba(247,248,255,.75);
  line-height: 1.56;
  white-space: pre-wrap;
}

.changelog-date {
  display: inline-flex;
  height: 30px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 197, 61, .16);
  color: #ffe6a3;
  font-size: 12px;
  font-weight: 900;
}

.changelog-empty {
  width: 100%;
  padding: 22px;
  border-radius: 20px;
  border: 1px dashed rgba(255,255,255,.14);
  color: var(--muted);
  background: rgba(255,255,255,.04);
}

.admin-app {
  min-height: 100vh;
}

.admin-hero {
  width: min(1180px, calc(100% - 36px));
  margin: 54px auto 0;
  padding: 38px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 197, 61, .16), transparent 36%),
    radial-gradient(circle at 100% 0%, rgba(88,101,242,.14), transparent 32%),
    rgba(255,255,255,.052);
}

.admin-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -.07em;
}

.admin-hero p {
  margin: 0;
  color: var(--muted);
  width: min(760px, 100%);
  line-height: 1.65;
}

.admin-grid {
  width: min(1180px, calc(100% - 36px));
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 18px;
}

.admin-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.055);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.admin-span-2 {
  grid-column: 1 / -1;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.admin-card h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -.04em;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form label {
  display: grid;
  gap: 8px;
}

.admin-form label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.22);
  color: var(--text);
  font: inherit;
  outline: none;
}

.admin-form textarea {
  min-height: 110px;
  padding: 13px 14px;
  resize: vertical;
}

.admin-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.admin-list.compact {
  max-height: 280px;
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.16);
}

.admin-list-item strong {
  display: block;
  color: #fff;
  margin-bottom: 5px;
}

.admin-list-item span,
.admin-list-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  white-space: pre-wrap;
}

.admin-empty {
  padding: 15px;
  border-radius: 15px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.12);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.admin-stats div {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.16);
}

.admin-stats strong {
  display: block;
  font-size: 28px;
  letter-spacing: -.05em;
}

.admin-stats span {
  color: var(--muted);
  font-weight: 800;
}

.admin-console {
  max-height: 460px;
  overflow: auto;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: #070a12;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.console-line {
  display: flex;
  gap: 10px;
  padding: 5px 0;
  color: #d7d9e8;
  border-bottom: 1px solid rgba(255,255,255,.035);
}

.console-time {
  color: #ffcf70;
  flex: 0 0 auto;
}

.console-type {
  color: #8da2ff;
  flex: 0 0 auto;
}

.console-line.muted {
  color: var(--muted);
}

@media (max-width: 920px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-list-item,
  .admin-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }
}


/* =========================
   V27 ADMIN PREMIUM MANAGEMENT
   ========================= */

.admin-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.22);
  color: var(--text);
  font: inherit;
  outline: none;
}

.admin-form select option {
  background: #111522;
  color: #fff;
}


/* =========================
   V28 PREMIUM UNLOCK FIX
   ========================= */

.premium-status-box.is-premium {
  border-color: rgba(255, 197, 61, .55);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 197, 61, .18), transparent 34%),
    rgba(255,255,255,.055);
}

.premium-locked-field.is-premium {
  border-color: rgba(255, 197, 61, .48);
  box-shadow: inset 0 0 0 1px rgba(255, 197, 61, .08);
}

.premium-locked-field.is-premium::before {
  content: "♛ PREMIUM";
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 197, 61, .15);
  border: 1px solid rgba(255, 197, 61, .35);
  color: #ffe6a3;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}

.premium-locked-field.is-premium input,
.premium-locked-field.is-premium textarea,
.premium-locked-field.is-premium select {
  border-color: rgba(255, 197, 61, .35);
}

.premium-locked-field.is-premium .premium-lock-overlay {
  display: none !important;
}

.premium-status-box.is-premium .switch-main {
  filter: none !important;
}


/* =========================
   V29 SWITCH + PANEL STABILITY FIX
   ========================= */

/* Naprawa: przełączniki nie mogą dziedziczyć rozciągania z gridów/formularzy. */
.switch-main {
  flex: 0 0 58px !important;
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-block !important;
  position: relative !important;
  align-self: flex-start !important;
  line-height: 0 !important;
}

.switch-main input {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

.switch-main span {
  position: absolute !important;
  inset: 0 !important;
  width: 58px !important;
  height: 32px !important;
  display: block !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,.36) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  cursor: pointer !important;
  transition: background .18s ease, box-shadow .18s ease, border-color .18s ease !important;
  box-sizing: border-box !important;
}

.switch-main span::after {
  content: "" !important;
  position: absolute !important;
  width: 24px !important;
  height: 24px !important;
  left: 4px !important;
  top: 3px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.24) !important;
  transform: translateX(0) !important;
  transition: transform .18s ease !important;
}

.switch-main input:checked + span {
  background: linear-gradient(135deg, #8bdc38, #65b82a) !important;
  border-color: rgba(139,220,56,.42) !important;
  box-shadow: 0 0 18px rgba(139,220,56,.25) !important;
}

.switch-main input:checked + span::after {
  transform: translateX(25px) !important;
}

/* W kartach nagłówków przełącznik ma stać równo po prawej, a nie robić grubego bloba. */
.panel-card-header .switch-main,
.premium-status-header .switch-main,
.welcome-title-row .switch-main {
  margin-top: 2px !important;
}

/* Naprawa wyglądu pól premium po odblokowaniu. */
.premium-locked-field {
  min-height: 86px;
}

.premium-locked-field.is-premium {
  padding-top: 48px;
}

.premium-locked-field.is-premium::before {
  top: 12px;
  right: 12px;
}

/* Żeby przełączniki w formularzach nie łapały stylu inputów tekstowych. */
.config-line .switch-main,
.settings-box .switch-main,
.admin-form .switch-main {
  display: inline-block !important;
}

/* Selecty i inputy w panelu mają stabilny box sizing. */
input,
textarea,
select,
button {
  box-sizing: border-box;
}

/* Trochę lepszy odstęp w długich panelach. */
.config-content {
  min-width: 0;
}

.config-card {
  overflow: visible;
}

.panel-card-header {
  align-items: flex-start !important;
}

@media (max-width: 920px) {
  .switch-main {
    align-self: flex-start !important;
  }

  .panel-card-header .switch-main,
  .premium-status-header .switch-main {
    margin-top: 6px !important;
  }
}


/* =========================
   V30 OAUTH CALLBACK ERROR UI
   ========================= */

.login-error-box {
  width: min(1180px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 93, 93, .34);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 93, 93, .14), transparent 38%),
    rgba(255, 93, 93, .07);
  color: #fff;
  display: grid;
  gap: 5px;
}

.login-error-box strong {
  color: #ffb3b3;
}

.login-error-box span {
  color: rgba(255,255,255,.86);
  font-weight: 800;
}

.login-error-box small {
  color: rgba(255,255,255,.62);
  line-height: 1.5;
}


/* =========================
   V33 PANEL GUILDS ERROR FIX
   ========================= */

.panel-warning {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,197,61,.32);
  background: rgba(255,197,61,.08);
  color: #ffe8ad;
  line-height: 1.45;
  font-weight: 800;
}


/* =========================
   V34 NO CACHE PANEL HARD FIX
   ========================= */

.version-badge {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 99999;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,197,61,.35);
  background: rgba(10,12,20,.88);
  color: #ffe6a3;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  pointer-events: none;
}

.panel-status .btn,
#panelStatus .btn {
  margin-top: 12px;
}


/* =========================
   V36 ADMIN GUILDS DIRECT FIX
   ========================= */

.manual-guild-box {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-left: 10px;
}

.manual-guild-box input {
  min-height: 44px;
  width: 260px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline: none;
}

@media (max-width: 780px) {
  .manual-guild-box {
    display: flex;
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
  }
  .manual-guild-box input {
    width: 100%;
  }
}


/* =========================
   V41 TICKETS SYSTEM UI
   ========================= */

.ticket-premium-grid {
  display: grid;
  gap: 14px;
}

.ticket-premium-item {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  display: grid;
  gap: 12px;
}

.ticket-premium-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.ticket-premium-title strong {
  color: #fff;
  font-size: 16px;
}

.ticket-premium-item input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline: none;
}

.premium-ticket-branding {
  margin-top: 16px;
}

@media (max-width: 720px) {
  .ticket-premium-title {
    flex-direction: column;
  }
}


/* v63-polar-premium */
.premium-buy-btn,
[data-premium-buy],
[data-premium-dev-activate] {
  cursor: pointer;
}


/* v63-premium-test */
[data-premium-dev-clear] {
  cursor: pointer;
}


/* V63 — Premium zablokowane do czasu publikacji strony */
.premium-buy-btn.premium-disabled,
.premium-buy-btn:disabled {
  cursor: not-allowed !important;
  opacity: 0.72;
  filter: grayscale(0.25);
  background: linear-gradient(135deg, rgba(255, 197, 61, .35), rgba(255, 159, 28, .22)) !important;
  color: rgba(255, 244, 214, .86) !important;
  border-color: rgba(255, 197, 61, .26) !important;
  box-shadow: none !important;
}

.premium-buy-btn.premium-disabled:hover,
.premium-buy-btn:disabled:hover {
  transform: none !important;
}

.premium-buy-main {
  display: block;
  font-weight: 950;
}

.premium-buy-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  opacity: .8;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.premium-buy-btn.premium-active {
  opacity: 1;
  filter: none;
  background: linear-gradient(135deg, #36d399, #19b37b) !important;
  color: #04130d !important;
  border-color: rgba(54, 211, 153, .45) !important;
}


/* V63 legal pages */
.legal-page{min-height:100vh;padding:18px clamp(16px,4vw,42px) 60px;background:radial-gradient(circle at 15% 10%,rgba(88,101,242,.22),transparent 34%),radial-gradient(circle at 90% 18%,rgba(255,197,61,.12),transparent 28%),linear-gradient(135deg,#070a13 0%,#0d1222 48%,#080b14 100%)}
.legal-topbar{position:sticky;top:18px;margin:0 auto 38px;max-width:1180px}
.legal-hero{position:relative;max-width:1180px;margin:0 auto 24px;padding:clamp(28px,5vw,54px);border:1px solid rgba(255,255,255,.12);border-radius:34px;overflow:hidden;background:linear-gradient(135deg,rgba(88,101,242,.19),rgba(255,255,255,.055)),rgba(255,255,255,.055);box-shadow:0 28px 90px rgba(0,0,0,.34)}
.legal-hero:before{content:"";position:absolute;right:-90px;top:-120px;width:330px;height:330px;border-radius:999px;background:rgba(88,101,242,.28);filter:blur(18px)}
.privacy-hero:before{background:rgba(54,211,153,.20)}
.legal-badge{position:relative;display:inline-flex;align-items:center;min-height:34px;padding:0 13px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:#dfe3ff;font-size:12px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.legal-hero h1{position:relative;max-width:900px;margin:18px 0 14px;font-size:clamp(34px,6vw,68px);line-height:.95;letter-spacing:-.065em}
.legal-hero p{position:relative;max-width:820px;margin:0;color:rgba(247,248,255,.75);font-size:17px;line-height:1.75}
.legal-meta{position:relative;display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.legal-meta span{padding:10px 13px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(0,0,0,.18);color:rgba(247,248,255,.68);font-size:13px;font-weight:800}
.legal-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:22px;max-width:1180px;margin:0 auto;align-items:start}
.legal-toc{position:sticky;top:104px;display:grid;gap:8px;padding:18px;border:1px solid rgba(255,255,255,.11);border-radius:24px;background:rgba(255,255,255,.06);box-shadow:0 22px 70px rgba(0,0,0,.23)}
.legal-toc strong{margin-bottom:8px;color:#fff;font-size:13px;letter-spacing:.08em;text-transform:uppercase}
.legal-toc a{padding:10px 11px;border-radius:13px;color:rgba(247,248,255,.68);font-size:13px;font-weight:800}
.legal-toc a:hover{color:#fff;background:rgba(88,101,242,.16)}
.legal-card{padding:clamp(24px,4vw,42px);border:1px solid rgba(255,255,255,.11);border-radius:30px;background:rgba(255,255,255,.065);box-shadow:0 24px 76px rgba(0,0,0,.28)}
.legal-card section+section{margin-top:38px;padding-top:32px;border-top:1px solid rgba(255,255,255,.10)}
.legal-card h2{margin:0 0 14px;font-size:clamp(24px,3vw,36px);letter-spacing:-.045em}
.legal-card p,.legal-card li{color:rgba(247,248,255,.74);line-height:1.8;font-size:15px}
.legal-card ul{margin:12px 0 0;padding-left:20px}.legal-card li+li{margin-top:8px}
.legal-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.site-footer{max-width:1180px;margin:42px auto 0;padding:20px 2px;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;color:rgba(247,248,255,.48);font-size:13px}
.site-footer div{display:flex;gap:14px;flex-wrap:wrap}.site-footer a{color:rgba(247,248,255,.72);font-weight:800}.site-footer a:hover{color:#fff}
@media(max-width:900px){.legal-layout{grid-template-columns:1fr}.legal-toc,.legal-topbar{position:relative;top:auto}}

/* V63 Discord-like live preview + modules */
.discord-live-preview-card { overflow: hidden; }
.discord-live-preview {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  background: #313338;
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  gap: 14px;
  color: #dbdee1;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
}
.discord-preview-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #1e1f22;
  overflow: hidden;
  flex: 0 0 auto;
}
.discord-preview-avatar img { width: 100%; height: 100%; object-fit: cover; }
.discord-preview-message { min-width: 0; flex: 1; }
.discord-preview-author { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.discord-preview-author span { color:#f2f3f5; font-weight:800; }
.discord-preview-author b { font-size:10px; padding:2px 4px; border-radius:4px; color:#fff; background:#5865f2; }
.discord-preview-author em { font-size:12px; color:#949ba4; font-style:normal; }
.discord-preview-content { color:#dbdee1; margin-bottom:8px; line-height:1.35; }
.discord-preview-embed { display:flex; max-width:560px; border-radius:4px; overflow:hidden; background:#2b2d31; }
.discord-preview-embed-bar { width:4px; background:#2c8fff; flex:0 0 auto; }
.discord-preview-embed-body { padding:12px 14px; min-width:0; }
.discord-preview-embed-title { color:#f2f3f5; font-weight:900; margin-bottom:6px; }
.discord-preview-embed-desc { color:#dbdee1; font-size:14px; line-height:1.45; white-space:pre-wrap; }
.discord-preview-embed-footer { color:#b5bac1; font-size:12px; margin-top:12px; font-weight:700; }
.config-note {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(88,101,242,.22);
  background: rgba(88,101,242,.10);
  color: rgba(247,248,255,.78);
  line-height: 1.55;
}


/* V63 — fix nowych modułów: formularze, inputy, preview */
.config-content .tab-panel {
  min-width: 0;
}

.config-content .tab-panel .settings-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(240px, 1fr)) !important;
  gap: 16px !important;
  align-items: start !important;
}

.config-content .tab-panel .settings-grid > label,
.config-content .tab-panel .settings-grid > .switch-row,
.config-content .tab-panel .settings-grid > .config-note,
.config-content .tab-panel .settings-grid > .premium-locked-field {
  min-width: 0;
}

.config-content .tab-panel .settings-grid label {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  margin: 0 !important;
  color: rgba(247, 248, 255, .72);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .02em;
}

.config-content .tab-panel .settings-grid label span {
  color: #73a7ff;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .08em;
}

.config-content .tab-panel .settings-grid input,
.config-content .tab-panel .settings-grid select,
.config-content .tab-panel .settings-grid textarea {
  width: 100% !important;
  min-height: 42px !important;
  box-sizing: border-box !important;
  border-radius: 13px !important;
  border: 1px solid rgba(115, 167, 255, .18) !important;
  background: rgba(5, 9, 20, .72) !important;
  color: #f7f8ff !important;
  padding: 10px 12px !important;
  outline: none !important;
  font: inherit !important;
}

.config-content .tab-panel .settings-grid textarea {
  min-height: 96px !important;
  resize: vertical;
}

.config-content .tab-panel .settings-grid input:focus,
.config-content .tab-panel .settings-grid select:focus,
.config-content .tab-panel .settings-grid textarea:focus {
  border-color: rgba(88, 101, 242, .75) !important;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, .16) !important;
}

.config-content .tab-panel .settings-grid input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  accent-color: #5865f2;
  flex: 0 0 auto;
}

.config-content .tab-panel .settings-grid .switch-row {
  grid-column: span 2;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  min-height: 54px;
  padding: 13px 15px !important;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}

.config-content .tab-panel .settings-grid .switch-row span {
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 14px !important;
  color: #fff !important;
}

.config-content .tab-panel .settings-grid .switch-row small {
  display: block;
  margin-top: 4px;
  color: rgba(247,248,255,.58);
  font-weight: 600;
  line-height: 1.35;
}

.config-content .tab-panel .settings-grid .wide,
.config-content .tab-panel .settings-grid .config-note,
.config-content .tab-panel .settings-grid .premium-locked-field,
.module-preview-card {
  grid-column: 1 / -1 !important;
}

.module-preview-card {
  margin: 0 0 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
}

.module-preview-card h3 {
  margin: 4px 0 14px;
  font-size: 20px;
  letter-spacing: -.03em;
}

.discord-live-preview.compact {
  margin-top: 0;
  padding: 16px;
  border-radius: 18px;
}

.discord-preview-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 10px 18px;
  margin-top: 10px;
}

.discord-preview-fields span {
  display: block;
  min-width: 0;
}

.discord-preview-fields b {
  display: block;
  color: #f2f3f5;
  font-size: 13px;
  margin-bottom: 2px;
}

.discord-preview-fields small {
  display: block;
  color: #b5bac1;
  font-size: 13px;
}

.discord-preview-embed-bar.green { background: #57f287; }
.discord-preview-embed-bar.orange { background: #faa61a; }
.discord-preview-embed-bar.red { background: #ed4245; }
.discord-preview-embed-bar.gold { background: #f1c40f; }

.reaction-preview {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #2b2d31;
  color: #dbdee1;
  border: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  font-weight: 800;
}

.fake-discord-button {
  margin-top: 10px;
  display: inline-flex;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  background: #5865f2;
  font-weight: 900;
  cursor: default;
}

.fake-discord-button.success {
  background: #248046;
}

@media (max-width: 900px) {
  .config-content .tab-panel .settings-grid {
    grid-template-columns: 1fr !important;
  }

  .config-content .tab-panel .settings-grid .switch-row {
    grid-column: auto !important;
  }

  .discord-preview-fields {
    grid-template-columns: 1fr;
  }
}


/* V63 — bezpieczny pasek zapisu + ładne przełączniki */
.save-bar {
  display: none !important;
}

.config-content input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 48px !important;
  height: 26px !important;
  min-width: 48px !important;
  min-height: 26px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  background: rgba(255,255,255,.12) !important;
  position: relative !important;
  cursor: pointer !important;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.config-content input[type="checkbox"]::before {
  content: "" !important;
  position: absolute !important;
  width: 20px !important;
  height: 20px !important;
  left: 2px !important;
  top: 2px !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.35) !important;
  transition: transform .18s ease !important;
}

.config-content input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #5865f2, #2c8fff) !important;
  border-color: rgba(115,167,255,.72) !important;
  box-shadow: 0 0 0 3px rgba(88,101,242,.16) !important;
}

.config-content input[type="checkbox"]:checked::before {
  transform: translateX(22px) !important;
}

.config-content .switch-row input[type="checkbox"] {
  flex: 0 0 auto !important;
}

.dirty-save-bar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 99999;
  width: min(780px, calc(100vw - 32px));
  transform: translate(-50%, 28px) scale(.98);
  opacity: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 197, 61, .42);
  background:
    linear-gradient(135deg, rgba(255, 197, 61, .16), rgba(88, 101, 242, .14)),
    rgba(10, 13, 28, .96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255,255,255,.06) inset;
  backdrop-filter: blur(18px);
  transition: opacity .18s ease, transform .18s ease;
}

.dirty-save-bar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.dirty-save-bar strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -.02em;
}

.dirty-save-bar .save-status {
  display: block;
  margin-top: 3px;
  color: rgba(247,248,255,.70);
  font-size: 12px;
  font-weight: 700;
}

.dirty-save-bar .btn {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .dirty-save-bar {
    grid-template-columns: 1fr;
    bottom: 12px;
  }

  .dirty-save-bar .btn {
    width: 100%;
  }
}


/* V63 — równe przełączniki, bez krzywych białych kółek */
.config-content input[type="checkbox"],
#settingsForm input[type="checkbox"],
.switch-row input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-block !important;
  width: 52px !important;
  height: 30px !important;
  min-width: 52px !important;
  min-height: 30px !important;
  max-width: 52px !important;
  max-height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  background: rgba(8, 12, 28, .75) !important;
  position: relative !important;
  vertical-align: middle !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18) !important;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease !important;
  overflow: hidden !important;
}

.config-content input[type="checkbox"]::before,
#settingsForm input[type="checkbox"]::before,
.switch-row input[type="checkbox"]::before {
  content: "" !important;
  position: absolute !important;
  width: 24px !important;
  height: 24px !important;
  left: 2px !important;
  top: 2px !important;
  right: auto !important;
  bottom: auto !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.38) !important;
  transform: translateX(0) !important;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), background .18s ease !important;
}

.config-content input[type="checkbox"]:checked,
#settingsForm input[type="checkbox"]:checked,
.switch-row input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #5865f2, #2c8fff) !important;
  border-color: rgba(115, 167, 255, .72) !important;
  box-shadow: 0 0 0 3px rgba(88,101,242,.14), inset 0 0 0 1px rgba(255,255,255,.12) !important;
}

.config-content input[type="checkbox"]:checked::before,
#settingsForm input[type="checkbox"]:checked::before,
.switch-row input[type="checkbox"]:checked::before {
  transform: translateX(22px) !important;
}

.config-content input[type="checkbox"]:focus-visible,
#settingsForm input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(44, 143, 255, .35) !important;
  outline-offset: 3px !important;
}

.config-content .switch-row,
#settingsForm .switch-row {
  align-items: center !important;
}

.config-content .switch-row > input[type="checkbox"],
#settingsForm .switch-row > input[type="checkbox"] {
  flex: 0 0 52px !important;
}

/* V63 — responsywność panelu pod telefon */
.mobile-config-menu-btn {
  display: none;
}

@media (max-width: 1100px) {
  .dashboard-shell,
  .panel-shell,
  .config-shell,
  .admin-shell {
    width: min(100%, 100vw) !important;
    max-width: 100vw !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
  }

  .topbar,
  .main-nav,
  .navbar,
  .panel-topbar {
    max-width: calc(100vw - 24px) !important;
  }

  .guild-columns,
  .stats-grid,
  .cards-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 860px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 14px;
  }

  .page,
  .app,
  .dashboard,
  .panel-discord-page,
  main {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .topbar,
  .main-nav,
  .navbar,
  .panel-topbar {
    position: relative !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    border-radius: 18px !important;
    margin: 10px auto !important;
  }

  .topbar .nav-links,
  .main-nav .nav-links,
  .navbar .nav-links,
  .panel-topbar .nav-links {
    order: 3;
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .topbar a,
  .topbar button,
  .main-nav a,
  .main-nav button,
  .navbar a,
  .navbar button,
  .panel-topbar a,
  .panel-topbar button {
    min-height: 42px !important;
    justify-content: center !important;
  }

  .config-layout,
  .settings-layout,
  .guild-config-layout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .mobile-config-menu-btn {
    display: flex !important;
    position: sticky;
    top: 10px;
    z-index: 80;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 12px;
    border: 1px solid rgba(115,167,255,.28);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(88,101,242,.24), rgba(44,143,255,.18));
    color: #fff;
    font-weight: 950;
    box-shadow: 0 14px 36px rgba(0,0,0,.24);
  }

  .mobile-config-menu-btn.is-active {
    border-color: rgba(255,197,61,.48);
    background: linear-gradient(135deg, rgba(255,197,61,.20), rgba(88,101,242,.20));
  }

  .config-sidebar {
    display: none !important;
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 74px !important;
    bottom: 12px !important;
    z-index: 79 !important;
    width: auto !important;
    max-width: none !important;
    overflow-y: auto !important;
    padding: 14px !important;
    border-radius: 22px !important;
    background: rgba(10, 13, 28, .97) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    box-shadow: 0 30px 120px rgba(0,0,0,.55) !important;
    backdrop-filter: blur(18px) !important;
  }

  .config-sidebar.is-mobile-open {
    display: block !important;
  }

  .config-sidebar .config-tab,
  .config-sidebar button {
    width: 100% !important;
    min-height: 44px !important;
    margin-bottom: 8px !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .config-content,
  .settings-content,
  .guild-config-content {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .config-card,
  .module-preview-card,
  .premium-card,
  .guild-card,
  .status-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px !important;
    padding: 16px !important;
    box-sizing: border-box !important;
  }

  .config-card h2,
  .module-preview-card h3 {
    font-size: clamp(20px, 6vw, 28px) !important;
    line-height: 1.08 !important;
  }

  .config-content .tab-panel .settings-grid,
  #settingsForm .settings-grid,
  .settings-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 13px !important;
    width: 100% !important;
  }

  .config-content .tab-panel .settings-grid .switch-row,
  #settingsForm .settings-grid .switch-row {
    grid-column: 1 / -1 !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 13px !important;
  }

  .config-content .tab-panel .settings-grid label,
  #settingsForm .settings-grid label {
    min-width: 0 !important;
    width: 100% !important;
  }

  .config-content .tab-panel .settings-grid input:not([type="checkbox"]),
  .config-content .tab-panel .settings-grid select,
  .config-content .tab-panel .settings-grid textarea,
  #settingsForm input:not([type="checkbox"]),
  #settingsForm select,
  #settingsForm textarea {
    width: 100% !important;
    min-height: 46px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
  }

  .discord-live-preview {
    padding: 12px !important;
    gap: 10px !important;
    overflow-x: hidden !important;
  }

  .discord-preview-avatar {
    width: 34px !important;
    height: 34px !important;
  }

  .discord-preview-embed {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .discord-preview-fields {
    grid-template-columns: 1fr !important;
  }

  .dirty-save-bar {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    width: auto !important;
    transform: translateY(24px) scale(.98) !important;
    grid-template-columns: 1fr !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .dirty-save-bar.is-visible {
    transform: translateY(0) scale(1) !important;
  }

  .dirty-save-bar .btn {
    width: 100% !important;
    min-height: 44px !important;
  }
}

@media (max-width: 520px) {
  .dashboard-shell,
  .panel-shell,
  .config-shell,
  .admin-shell {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .config-card,
  .module-preview-card {
    padding: 14px !important;
  }

  .brand-name,
  .logo-text {
    font-size: 14px !important;
  }

  .user-pill,
  .profile-pill {
    max-width: 100%;
  }

  .btn,
  button,
  input,
  select {
    font-size: 15px !important;
  }
}


/* V63 — informacja Beta przy usługach */
.beta-service-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
  width: min(1120px, calc(100% - 32px));
  margin: 22px auto 18px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 197, 61, .38);
  background:
    linear-gradient(135deg, rgba(255, 197, 61, .16), rgba(88, 101, 242, .10)),
    rgba(255, 255, 255, .045);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255,255,255,.045);
}

.beta-service-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 197, 61, .16);
  border: 1px solid rgba(255, 197, 61, .28);
  font-size: 21px;
}

.beta-service-notice strong {
  display: block;
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -.02em;
}

.beta-service-notice p {
  margin: 6px 0 0;
  color: rgba(247, 248, 255, .72);
  line-height: 1.55;
  font-weight: 650;
}

@media (max-width: 680px) {
  .beta-service-notice {
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
    margin: 16px auto 14px;
    padding: 16px;
    border-radius: 18px;
  }

  .beta-service-icon {
    width: 38px;
    height: 38px;
  }

  .beta-service-notice strong {
    font-size: 16px;
  }

  .beta-service-notice p {
    font-size: 14px;
  }
}

/* V68 Economy Builder */
.economy-builder-card {
  margin-top: 18px;
}
.economy-dynamic-list {
  display: grid;
  gap: 14px;
  margin: 14px 0;
}
.economy-dynamic-row {
  position: relative;
  margin: 0;
}
.economy-dynamic-row .btn-small {
  margin-top: 10px;
}
.economy-dynamic-row.premium-over-limit {
  opacity: 0.72;
}
.economy-dynamic-row.premium-over-limit .premium-lock-overlay {
  position: relative;
  inset: auto;
  margin-bottom: 12px;
  border-radius: 14px;
}
