.raid-tab.clean-panel {
  margin-left: 0;
  margin-right: 0;
}

.raid-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.raid-tab-btn {
  font: inherit;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  text-align: left;
  padding: 0.58rem 0.68rem;
  cursor: pointer;
  transition: 180ms ease;
}

.raid-tab-btn:hover,
.raid-tab-btn.active {
  color: var(--text);
  border-color: rgba(162, 145, 198, 0.42);
  background: rgba(150, 132, 181, 0.14);
}

.raid-tab {
  margin-top: 0;
}
:root {
  --bg: #040405;
  --bg-soft: #0a0711;
  --surface: rgba(15, 14, 19, 0.82);
  --surface-strong: rgba(20, 19, 26, 0.94);
  --border: rgba(143, 138, 156, 0.24);
  --text: #f4f1f8;
  --text-soft: #acabb4;
  --glow: #c05fff;
  --glow-2: #4a63ff;
  --ok: #82f7bf;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at 15% -10%, rgba(96, 63, 170, 0.35), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(74, 99, 255, 0.25), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
}

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
  animation: drift 14s ease-in-out infinite;
}

.orb-a {
  width: 240px;
  height: 240px;
  top: 12%;
  right: 12%;
  background: rgba(93, 108, 255, 0.22);
}

.orb-b {
  width: 300px;
  height: 300px;
  left: 8%;
  bottom: 10%;
  background: rgba(196, 103, 255, 0.18);
  animation-delay: -6s;
}

.top-nav {
  width: min(1040px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 12, 0.82);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 3;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--glow), var(--glow-2));
  box-shadow: 0 0 12px var(--glow);
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 180ms ease;
}

nav a:hover {
  color: var(--text);
}

main {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 48vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.8rem;
}

.hero-grid {
  min-height: 72vh;
  grid-template-columns: minmax(0, 1fr) 480px;
  align-items: center;
  gap: 2rem;
  text-align: left;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: #c8c4d3;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5.3vw, 4rem);
  line-height: 1;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.hero h1 span {
  color: #d58cff;
  text-shadow: 0 0 16px rgba(213, 140, 255, 0.28);
}

.hero p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.35rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.metric-card {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 16, 20, 0.72);
  backdrop-filter: blur(8px);
}

.metric-card strong,
.metric-card span {
  display: block;
}

.metric-card strong {
  font-size: 1.05rem;
}

.metric-card span {
  margin-top: 0.25rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.hero-showcase {
  position: relative;
}

.showcase-shell {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(20, 20, 28, 0.92), rgba(12, 12, 16, 0.94));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-10deg) rotateX(6deg);
  animation: float-card 8s ease-in-out infinite;
}

.showcase-topbar {
  display: flex;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.showcase-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.showcase-content {
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 360px;
}

.showcase-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0.75rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.showcase-pill {
  border: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
}

.showcase-pill.active {
  color: var(--text);
  background: rgba(126, 112, 171, 0.18);
}

.showcase-panel {
  padding: 1rem;
  position: relative;
  min-height: 360px;
}

.showcase-view {
  position: absolute;
  inset: 1rem;
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
  display: grid;
  gap: 0.9rem;
}

.showcase-view.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.showcase-row,
.showcase-stats {
  display: grid;
  gap: 0.8rem;
}

.showcase-row {
  grid-template-columns: 1fr 120px;
}

.showcase-stats {
  grid-template-columns: repeat(3, 1fr);
}

.showcase-box {
  min-height: 78px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(30, 30, 38, 0.82), rgba(20, 20, 25, 0.92));
}

.showcase-box.large {
  min-height: 110px;
}

.showcase-box.badge-box {
  min-height: 110px;
}

.showcase-box.wide {
  min-height: 130px;
}

.showcase-box.stat {
  min-height: 86px;
}

.mock-profile-card,
.mock-form-card,
.mock-preview-card,
.mock-status-group {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(28, 28, 36, 0.86), rgba(18, 18, 23, 0.92));
}

.mock-profile-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem;
}

.mock-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(208, 149, 255, 0.38), rgba(116, 128, 255, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mock-avatar.small {
  width: 32px;
  height: 32px;
}

.mock-profile-copy,
.mock-status-stack,
.mock-editor {
  display: grid;
  gap: 0.55rem;
}

.mock-editor {
  align-content: start;
}

.mock-line {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.mock-line-lg { width: 82%; height: 14px; }
.mock-line-md { width: 58%; }
.mock-line-sm { width: 36%; }

.mock-badge {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(130, 247, 191, 0.28);
  color: #bff2d9;
  font-size: 0.74rem;
}

.mock-selfbot-layout {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 0.8rem;
  align-items: start;
}

.mock-tab-row {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}

.mock-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
  height: auto;
  padding: 0.28rem 0.46rem;
  border-radius: 8px;
  font-size: 0.66rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-width: 42px;
  text-align: center;
}

.mock-tab.active {
  color: var(--text);
  background: rgba(120, 107, 166, 0.2);
  border-color: rgba(150, 138, 193, 0.22);
}

.mock-form-card,
.mock-preview-card,
.mock-status-group {
  padding: 0.8rem;
}

.mock-form-card {
  display: grid;
  gap: 0.5rem;
}

.mock-input {
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 8, 10, 0.5);
}

.mock-input.tall {
  height: 84px;
}

.mock-preview-profile {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.mock-presence-card {
  min-height: 134px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(36, 38, 48, 0.88), rgba(23, 25, 31, 0.96));
}

.mock-status-stack {
  grid-template-columns: 1fr;
}

.mock-status-group {
  display: grid;
  gap: 0.6rem;
}

.pulse {
  animation: panel-pulse 3.2s ease-in-out infinite;
}

.button {
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0.7rem 1rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.button.primary {
  background: linear-gradient(135deg, #5765f3, #6d7dff);
  box-shadow: 0 6px 18px rgba(87, 101, 243, 0.26);
}

.button.danger {
  background: linear-gradient(135deg, #e34d67, #c83751);
  color: #fff;
  border-color: rgba(255, 114, 142, 0.38);
  box-shadow: 0 6px 18px rgba(227, 77, 103, 0.25);
}

.button.danger:hover {
  filter: brightness(1.05);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
}

.features {
  padding-top: 1.4rem;
}

.feature-showcase {
  display: grid;
  gap: 1.35rem;
}

.feature-head h2 {
  margin: 0.2rem 0 0.35rem;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.01em;
}

.feature-head p {
  margin: 0;
  color: var(--text-soft);
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.feature-primary,
.feature-mini,
.stat-tile {
  background: linear-gradient(180deg, rgba(15, 16, 22, 0.92), rgba(10, 11, 15, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.feature-primary {
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.terminal-mock {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(6, 7, 10, 0.6);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-top span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.terminal-top p {
  margin: 0 0 0 0.25rem;
  font-size: 0.72rem;
  color: rgba(225, 225, 235, 0.46);
}

.terminal-top p strong {
  color: rgba(159, 245, 219, 0.9);
  font-weight: 700;
}

.terminal-lines {
  padding: 0.55rem 0.65rem;
  height: 92px;
  overflow: hidden;
}

.terminal-track {
  display: grid;
  gap: 0.33rem;
}

.terminal-track div {
  display: grid;
  grid-template-columns: 64px 1fr 34px;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: rgba(203, 206, 220, 0.56);
}

.terminal-track div span:last-child {
  color: rgba(157, 241, 216, 0.78);
}

.terminal-track div.terminal-live {
  color: rgba(220, 224, 238, 0.82);
}

.feature-primary h3,
.feature-mini h4,
.stat-tile h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
}

.feature-primary p,
.feature-mini p,
.stat-tile p,
.stat-tile small {
  margin: 0;
  color: var(--text-soft);
}

.feature-accent {
  color: #3ad1aa;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.feature-right-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-mini {
  padding: 1rem;
  display: grid;
  gap: 0.55rem;
}

.feature-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.45rem;
}

.stat-tile {
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}

.stat-tile p {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(210, 212, 225, 0.42);
}

.stat-tile h3 {
  font-size: clamp(1.9rem, 3.8vw, 2.25rem);
  color: #f2f3f8;
}

.bar-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.2rem;
}

.bar-row span {
  height: 12px;
  border-radius: 2px;
  background: rgba(57, 223, 180, 0.7);
}

.bar-animated span {
  transform-origin: center bottom;
  animation: meter 1.5s ease-in-out infinite;
}

.bar-animated span:nth-child(2) { animation-delay: 0.12s; }
.bar-animated span:nth-child(3) { animation-delay: 0.24s; }
.bar-animated span:nth-child(4) { animation-delay: 0.36s; }
.bar-animated span:nth-child(5) { animation-delay: 0.48s; }

.bars-purple span {
  background: rgba(134, 113, 244, 0.8);
}

.stat-tile small {
  font-size: 0.72rem;
  color: rgba(212, 214, 224, 0.42);
}

.feature-card,
.stat-card,
.panel,
.auth-wrap {
  background: linear-gradient(180deg, rgba(20, 19, 26, 0.9), rgba(14, 14, 17, 0.94));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 8px 24px rgba(0, 0, 0, 0.24);
}

.feature-card h3,
.panel h3,
.auth-wrap h1,
.stat-card h4 {
  margin: 0 0 0.65rem;
  font-family: "Montserrat", sans-serif;
}

.feature-card p,
.auth-wrap p,
.panel p,
.stat-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.45;
}

.feature-card {
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(189, 176, 217, 0.36);
}

.feature-kicker {
  margin: 0 0 0.7rem;
  color: #c7c1d3;
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-card.tall {
  grid-row: auto;
}

.feature-card.wide {
  grid-column: auto;
}

.chip {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(215, 121, 255, 0.22);
  font-size: 0.78rem;
  color: #e7c4ff;
}

.auth-page {
  display: grid;
  place-items: center;
}

.auth-wrap {
  width: min(560px, calc(100% - 2rem));
  margin: 2rem auto;
  text-align: center;
}

.auth-form {
  display: grid;
  gap: 0.8rem;
  margin: 1.2rem 0;
}

.auth-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
}

.error {
  min-height: 1.4rem;
  color: #ff8ea3;
}

.dashboard {
  margin-top: 2rem;
}

.dashboard-app {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.panel-soft {
  background: linear-gradient(180deg, rgba(17, 15, 24, 0.76), rgba(11, 10, 17, 0.72));
  border: 1px solid rgba(181, 166, 210, 0.18);
  border-radius: 14px;
  padding: 0.8rem;
}

.sidebar {
  display: grid;
  gap: 0.5rem;
  position: sticky;
  top: 1.2rem;
}

.side-btn,
.self-btn {
  font: inherit;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  text-align: left;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  transition: 180ms ease;
}

.side-btn:hover,
.self-btn:hover,
.side-btn.active,
.self-btn.active {
  color: var(--text);
  border-color: rgba(162, 145, 198, 0.42);
  background: rgba(150, 132, 181, 0.14);
}

.dashboard-content {
  min-width: 0;
  width: 100%;
}

.hint {
  color: var(--text-soft);
  margin: 0.35rem 0 0;
}

.quick-actions .actions-row,
.bot-panel .actions-row {
  margin-top: 0.9rem;
}

.actions-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.profile-panel {
  margin-top: 0;
  margin-bottom: 1rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  justify-content: space-between;
}

.profile-header > div {
  flex: 1;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(215, 121, 255, 0.4);
  object-fit: cover;
  box-shadow: 0 0 24px rgba(192, 95, 255, 0.28);
}

.avatar.tiny {
  width: 36px;
  height: 36px;
  border-width: 1px;
  box-shadow: none;
}

#username {
  margin: 0;
  font-family: "Sora", sans-serif;
}

#userMeta {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
}

.badge {
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  font-size: 0.78rem;
  color: #d5d6df;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.badge.is-running {
  border-color: rgba(130, 247, 191, 0.36);
  color: #b9ffd9;
}

.badge.is-stopped {
  border-color: rgba(255, 142, 163, 0.38);
  color: #ffc2cf;
}

.view-block {
  width: 100%;
}

.view-block.hidden,
.self-tab.hidden {
  display: none;
}

.selfbot-nav {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}


.selfbot-layout {
  display: flex;
  gap: 2.5rem;
  width: 100%;
}

.selfbot-left {
  flex: 1;
  min-width: 0;
}
.selfbot-right {
  flex: 0 0 360px;
}
.selfbot-right {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 1rem;
}

.selfbot-right .panel,
.selfbot-left .panel {
  margin-top: 0;
}

.edit-form {
  display: grid;
  gap: 0.8rem;
}

.edit-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--text-soft);
}

.edit-form input,
.edit-form textarea,
.edit-form select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  border-radius: 10px;
  padding: 0.68rem 0.75rem;
  font: inherit;
}

.input-with-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.input-with-buttons input,
.input-with-buttons select {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  border-radius: 10px;
  padding: 0.68rem 0.75rem;
  font: inherit;
  margin: 0;
  width: auto;
}

.button.small {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.raid-token-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.raid-token-text {
  word-break: break-all;
  line-height: 1.25;
}

.raid-token-remove-btn {
  padding: 0.32rem 0.6rem;
  font-size: 0.78rem;
  border-radius: 8px;
  min-width: auto;
  box-shadow: 0 3px 10px rgba(227, 77, 103, 0.2);
}

.upload-row {
  display: grid;
  gap: 0.7rem;
}

.upload-card {
  border: 1px dashed rgba(182, 171, 208, 0.42);
  border-radius: 12px;
  padding: 0.7rem;
  background: rgba(23, 20, 31, 0.58);
}

.hidden-file-input {
  display: none;
}

.upload-single-btn {
  width: 100%;
  text-align: center;
}

.upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.upload-head p,
.upload-head span {
  margin: 0;
}

.upload-head span {
  color: var(--text-soft);
  font-size: 0.83rem;
}

.upload-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

.compact-error {
  min-height: 0;
  margin: -0.3rem 0 0.1rem;
}

.discord-preview {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(29, 31, 40, 0.68), rgba(22, 24, 31, 0.82));
  padding: 0.8rem;
}

.discord-preview h4 {
  margin: 0 0 0.8rem;
  font-family: "Sora", sans-serif;
}

.discord-profile {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.discord-name,
.discord-custom-status,
.rp-title,
.rp-sub {
  margin: 0;
}

.discord-name {
  color: #f1f1f1;
  font-weight: 700;
  font-size: 0.95rem;
}

.discord-custom-status {
  color: #c9ccd3;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.emoji-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.discord-rp {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  padding: 0.55rem;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 0.7rem;
}

.rp-context {
  grid-column: 1 / -1;
  margin: 0 0 0.15rem;
  font-weight: 600;
}

.discord-rp img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.discord-rp > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rp-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
}

.rp-sub {
  color: #c9ccd3;
  font-size: 0.82rem;
}

.rp-sub.dim {
  color: #9ca0aa;
}

.log-box {
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.compact {
  max-height: 220px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.stat-card p {
  color: var(--text);
  font-size: 1.15rem;
}

.panel {
  margin-top: 1rem;
}

.json {
  margin-top: 0.8rem;
  max-height: 360px;
  overflow: auto;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem;
  color: #d2c8e0;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 480ms ease forwards;
}

.delay-1 { animation-delay: 120ms; }
.delay-2 { animation-delay: 220ms; }
.delay-3 { animation-delay: 320ms; }
.delay-4 { animation-delay: 420ms; }

.hidden {
  display: none !important;
}

.unsaved-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(700px, calc(100% - 2rem));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(10, 10, 13, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  animation: slideUpIn 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dashboard-page .dashboard-nav {
  width: min(1400px, calc(100% - 2rem));
}

.dashboard-page .dashboard-app {
  width: min(1400px, calc(100% - 2rem));
  margin: 1.1rem auto 0;
  grid-template-columns: 220px 1fr;
  gap: 1.15rem;
}

.dashboard-page .dashboard-sidebar {
  padding: 0.65rem;
  border-radius: 12px;
}

.sidebar-title {
  margin: 0.2rem 0 0.55rem;
  color: #cecad9;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-page .side-btn,
.dashboard-page .self-btn {
  border-radius: 8px;
  padding: 0.58rem 0.68rem;
}

.dashboard-page .dashboard-content {
  display: grid;
  gap: 1.9rem;
}

.clean-panel {
  background: rgba(16, 16, 20, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.dashboard-page .profile-panel {
  margin-bottom: 0.35rem;
  padding: 1.35rem;
}

.dashboard-page .profile-header {
  gap: 1rem;
}

.dashboard-page .avatar {
  width: 64px;
  height: 64px;
  border-color: rgba(206, 190, 232, 0.36);
  box-shadow: 0 0 12px rgba(192, 95, 255, 0.18);
}

.dashboard-page #username {
  font-size: 1.45rem;
}

.dashboard-page #userMeta {
  margin-top: 0.35rem;
  font-size: 1rem;
}

.dashboard-page .stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1.8rem;
  row-gap: 1.8rem;
}

.dashboard-page .stat-card {
  padding: 1.35rem;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dashboard-page .stat-card h4 {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 600;
}

.dashboard-page .stat-card p {
  font-size: 1.55rem;
  line-height: 1.1;
}

.dashboard-page .quick-actions {
  margin-top: 0.45rem;
  padding: 1.55rem;
}

.dashboard-page .quick-actions h3 {
  margin-bottom: 0.55rem;
}

.dashboard-page .quick-actions .hint {
  margin-bottom: 1rem;
}

.dashboard-page .selfbot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 1rem;
  align-items: start;
}

.dashboard-page .selfbot-left {
  min-width: 0;
}

.dashboard-page .selfbot-right {
  flex: initial;
  width: 100%;
}

.dashboard-page .dashboard-tabs {
  margin-bottom: 0.7rem;
}

.dashboard-page .edit-form {
  gap: 0.8rem;
}

.status-group {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.015);
  display: grid;
  gap: 0.75rem;
}

.status-group h4 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.92rem;
}

.group-hint {
  margin-top: -0.35rem;
}

.dashboard-page .edit-form input,
.dashboard-page .edit-form textarea,
.dashboard-page .edit-form select {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(7, 7, 9, 0.45);
  padding: 0.78rem 0.82rem;
}

.dashboard-page .upload-card {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(10, 10, 12, 0.62);
}

.dashboard-page .discord-preview {
  background: rgba(24, 26, 32, 0.94) !important;
  padding: 1rem;
}

.dashboard-page .discord-rp {
  grid-template-columns: 64px 1fr;
  gap: 0.85rem;
}

.dashboard-page .discord-rp img {
  width: 64px;
  height: 64px;
}

.dashboard-page .unsaved-bar {
  width: min(640px, calc(100% - 1.5rem));
  border-radius: 14px;
}

.unsaved-bar p {
  margin: 0;
  font-weight: 700;
}

.toast-stack {
  position: fixed;
  right: 16px;
  top: 16px;
  display: grid;
  gap: 0.5rem;
  z-index: 55;
}

.toast {
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 24, 0.95);
  min-width: 220px;
  animation: slideInRight 360ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-ok {
  box-shadow: 0 0 0 1px rgba(130, 247, 191, 0.2), 0 10px 40px rgba(130, 247, 191, 0.15);
}

.toast-error {
  box-shadow: 0 0 0 1px rgba(255, 142, 163, 0.2), 0 10px 40px rgba(255, 142, 163, 0.15);
}

.fade-out {
  opacity: 0;
  transform: translateX(16px) translateY(-12px);
  transition: 240ms ease;
}

@keyframes float-card {
  0%,
  100% {
    transform: perspective(1400px) rotateY(-10deg) rotateX(6deg) translateY(0);
  }
  50% {
    transform: perspective(1400px) rotateY(-8deg) rotateX(4deg) translateY(-8px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -12px, 0) scale(1.06);
  }
}

@keyframes panel-pulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 0 rgba(124, 110, 255, 0.12);
  }
  50% {
    box-shadow: inset 0 0 0 1px rgba(124, 110, 255, 0.26), 0 0 24px rgba(124, 110, 255, 0.08);
  }
}

@keyframes meter {
  0%,
  100% {
    transform: scaleY(0.55);
    opacity: 0.65;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUpIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(24px) translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

@media (max-width: 900px) {
  .features,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .feature-layout,
  .feature-right-grid,
  .feature-stats {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 1.5rem;
    text-align: center;
    padding-top: 3rem;
  }

  .hero-copy,
  .hero p {
    max-width: none;
  }

  .hero-actions,
  .hero-metrics {
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-showcase {
    display: none;
  }

  .dashboard-app {
    grid-template-columns: 1fr;
  }

  .dashboard-page .dashboard-app {
    width: calc(100% - 1rem);
    gap: 0.8rem;
  }

  .selfbot-layout {
    grid-template-columns: 1fr;
  }

  .selfbot-right {
    position: static;
  }

  .sidebar {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .feature-card.tall,
  .feature-card.wide {
    grid-row: auto;
    grid-column: auto;
  }

  .top-nav {
    border-radius: 16px;
  }

  nav {
    display: none;
  }

  .unsaved-bar {
    border-radius: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}
