
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --background: #080b14;
  --surface: #111a2b;
  --surface-light: #172238;
  --purple: #8b5cf6;
  --blue: #38bdf8;
  --cyan: #14f1d9;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: #ffffff18;
  --success: #22c55e;
  --danger: #ef4444;
}

body {
  background:
    radial-gradient(circle at 10% 0%, #8b5cf626, transparent 35%),
    radial-gradient(circle at 90% 20%, #14f1d915, transparent 30%),
    var(--background);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

button, input, textarea, select {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
  transition: .2s ease;
}

button:hover {
  transform: translateY(-2px);
}

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

.sidebar {
  width: 250px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 22px 15px;
  background: #090e1bdf;
  backdrop-filter: blur(28px);
  border-right: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 7px 28px;
}

.brand-logo {
  width: 43px;
  height: 43px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--blue), var(--cyan));
  box-shadow: 0 0 30px #8b5cf655;
}

.brand-info strong {
  letter-spacing: 2px;
  font-size: 16px;
}

.brand-info small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1px;
  margin-top: 4px;
}

.sidebar-label {
  color: #64748b;
  font-size: 9px;
  letter-spacing: 1.8px;
  padding: 13px 11px 8px;
}

.navigation {
  overflow-y: auto;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin: 2px 0;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #a9b6c9;
  text-align: left;
  font-size: 12px;
}

.nav-item span {
  font-size: 17px;
  width: 19px;
  text-align: center;
}

.nav-item.active,
.nav-item:hover {
  color: white;
  background: linear-gradient(100deg, #8b5cf633, #38bdf811);
  border-color: #8b5cf644;
}

.sidebar-bottom {
  margin-top: auto;
}

.cloud-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid #8b5cf644;
  border-radius: 13px;
  background: #8b5cf614;
}

.cloud-status strong {
  font-size: 9px;
  display: block;
}

.cloud-status small {
  font-size: 9px;
  color: var(--muted);
}

.status-indicator,
.glowing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}

.owner-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 3px 0;
}

.owner-avatar,
.top-avatar {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  font-weight: 900;
}

.owner-profile strong {
  font-size: 11px;
}

.owner-profile small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}

.owner-badge {
  margin-left: auto;
  color: #86efac;
  font-size: 8px;
  border: 1px solid #22c55e55;
  background: #22c55e15;
  padding: 5px 7px;
  border-radius: 20px;
}

.main-content {
  margin-left: 250px;
  min-height: 100vh;
}

.topbar {
  height: 75px;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: #080b14dc;
  backdrop-filter: blur(24px);
}

.breadcrumb {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.5px;
}

.topbar h1 {
  font-size: 17px;
  margin-top: 5px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.top-icon {
  width: 37px;
  height: 37px;
  background: #ffffff09;
  border: 1px solid var(--border);
  border-radius: 11px;
  font-size: 18px;
}

.topbar select,
.settings-select {
  color: white;
  background: #111a2b;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px;
  outline: none;
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
}

.page-container {
  max-width: 1600px;
  padding: 27px;
  margin: auto;
}

.page {
  display: none;
  animation: pageIn .3s ease;
}

.page.active {
  display: block;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* GLASS */

.glass {
  background: rgba(23, 34, 56, .64);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, .32),
    inset 0 1px 0 rgba(255, 255, 255, .04);
  border-radius: 17px;
}

/* HERO */

.hero-section {
  min-height: 310px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 35px;
  border: 1px solid #8b5cf655;
  border-radius: 22px;
  background:
    linear-gradient(110deg, #8b5cf62c, #38bdf817 65%, #14f1d913);
  box-shadow: 0 20px 55px #0005;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c4b5fd;
  font-size: 9px;
  letter-spacing: 1.6px;
}

.demo-label,
.mini-badge {
  font-size: 8px;
  letter-spacing: 1px;
  padding: 5px 8px;
  border-radius: 20px;
  color: #c4b5fd;
  border: 1px solid #8b5cf655;
  background: #8b5cf619;
}

.hero-section h2 {
  font-size: clamp(27px, 4vw, 43px);
  line-height: 1.2;
  margin: 20px 0 12px;
}

.hero-section h2 span,
.about-card h3 {
  background: linear-gradient(90deg, #c4b5fd, #7dd3fc, #5eead4);
  background-clip: text;
  color: transparent;
}

.hero-section p,
.page-heading p {
  color: #aab8cb;
  line-height: 1.8;
  font-size: 12px;
  max-width: 630px;
}

.hero-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-decoration {
  position: absolute;
  right: 65px;
  top: 30px;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
}

.orbit {
  position: absolute;
  border: 1px solid #8b5cf677;
  border-radius: 50%;
  transform: rotate(-25deg);
}

.orbit-one {
  width: 220px;
  height: 100px;
}

.orbit-two {
  width: 150px;
  height: 220px;
  border-color: #14f1d966;
}

.orbit-center {
  width: 85px;
  height: 85px;
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 900;
  border-radius: 25px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 0 60px #8b5cf688;
}

.primary-button,
.secondary-button {
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 11px;
  font-weight: 750;
}

.primary-button {
  background: linear-gradient(110deg, #8150ed, #218bc9);
  border: 1px solid transparent;
  color: white;
}

.secondary-button {
  background: #ffffff0b;
  border: 1px solid var(--border);
}

.primary-button:hover,
.secondary-button:hover {
  filter: brightness(1.15);
}

/* STATS */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin: 18px 0 28px;
}

.stat-card {
  padding: 17px;
  position: relative;
}

.stat-card > span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1px;
}

.stat-card strong {
  display: block;
  font-size: 28px;
  margin: 10px 0 3px;
}

.stat-card small {
  color: #5eead4;
  font-size: 9px;
}

.stat-icon {
  position: absolute;
  right: 16px;
  top: 17px;
  color: #c4b5fd;
  font-size: 19px;
}

.section-heading,
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.section-heading {
  margin: 22px 0 13px;
}

.section-heading small,
.page-heading small,
.owner-panel small {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.section-heading h2 {
  font-size: 17px;
  margin-top: 5px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
}

.dashboard-panel,
.owner-panel {
  padding: 17px;
}

.panel-heading h3 {
  font-size: 14px;
}

.mini-badge.cyan {
  color: #7dd3fc;
  border-color: #38bdf855;
  background: #38bdf815;
}

.bot-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--border);
  background: #ffffff07;
  border-radius: 12px;
  margin-top: 10px;
}

.bot-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #8b5cf655, #38bdf833);
  font-size: 19px;
}

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

.bot-info strong {
  font-size: 11px;
}

.bot-info small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}

.bot-status {
  font-size: 8px;
  color: #86efac;
  border: 1px solid #22c55e55;
  padding: 5px 7px;
  border-radius: 20px;
  background: #22c55e15;
}

.bot-status.stopped {
  color: #fcd34d;
  border-color: #f59e0b55;
  background: #f59e0b15;
}

.activity-list {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}

.activity-item {
  display: flex;
  gap: 10px;
}

.activity-item i {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  margin-top: 4px;
  box-shadow: 0 0 12px var(--cyan);
}

.activity-item strong {
  display: block;
  font-size: 10px;
}

.activity-item small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}

.owner-panel {
  margin-top: 15px;
  border-color: #38bdf844;
}

.owner-panel h3 {
  margin-top: 5px;
  font-size: 15px;
}

.owner-panel p {
  color: var(--muted);
  font-size: 10px;
  margin: 13px 0;
  line-height: 1.7;
}

.owner-panel textarea,
#broadcastMessage {
  width: 100%;
  background: #080d19;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: white;
  padding: 12px;
  resize: vertical;
  outline: none;
}

.broadcast-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

#broadcastResult {
  color: #5eead4;
  font-size: 10px;
}

/* GENERAL PAGES */

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.page-heading h2 {
  font-size: 26px;
  margin: 7px 0;
}

.page-heading p {
  margin: 0;
}

.bot-grid,
.user-grid,
.market-grid,
.command-grid,
.subscription-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bot-card,
.user-card,
.market-card,
.command-card,
.subscription-card {
  padding: 17px;
}

.bot-card h3,
.market-card h3,
.command-card h3 {
  font-size: 13px;
  margin: 12px 0 7px;
}

.bot-card p,
.market-card p,
.command-card p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  margin: 9px 0;
}

.bot-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.bot-actions button {
  padding: 7px 9px;
  font-size: 9px;
}

.full-button {
  width: 100%;
  margin-top: 10px;
}

/* TERMINAL */

.terminal-window {
  overflow: hidden;
  background: #050911;
}

.terminal-header,
.editor-header,
.editor-footer {
  padding: 13px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
}

.terminal-dots {
  display: flex;
  gap: 5px;
}

.terminal-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

.terminal-dots i:nth-child(2) {
  background: #f59e0b;
}

.terminal-dots i:nth-child(3) {
  background: #22c55e;
}

.terminal-output {
  min-height: 300px;
  max-height: 420px;
  overflow-y: auto;
  padding: 18px;
  font: 11px/1.8 monospace;
  color: #a7f3d0;
}

.terminal-purple {
  color: #c4b5fd;
}

.terminal-blue {
  color: #7dd3fc;
}

.terminal-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--border);
}

.terminal-input span {
  color: var(--cyan);
}

.terminal-input input,
.chat-form input,
.search-input {
  flex: 1;
  min-width: 0;
  padding: 12px;
  color: white;
  background: #101a2a;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
}

.terminal-input input:focus,
.chat-form input:focus,
.search-input:focus {
  border-color: var(--purple);
}

/* STUDIO */

.studio-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
}

.file-explorer {
  padding: 15px;
}

.file-explorer h3 {
  font-size: 12px;
  margin-bottom: 12px;
}

.file-button {
  display: block;
  width: 100%;
  padding: 10px;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  border-radius: 8px;
}

.file-button.active,
.file-button:hover {
  background: #8b5cf622;
  color: white;
}

.separator {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.file-explorer .muted {
  color: var(--muted);
  font-size: 9px;
  margin-top: 13px;
}

.code-editor {
  overflow: hidden;
}

.code-editor textarea {
  width: 100%;
  min-height: 410px;
  resize: vertical;
  padding: 18px;
  color: #bfdbfe;
  background: #080d18;
  border: none;
  outline: none;
  font: 12px/1.8 monospace;
}

.editor-footer {
  border-top: 1px solid var(--border);
  border-bottom: none;
}

/* DISCOVER */

.search-input {
  width: 100%;
  margin-bottom: 15px;
}

.user-card {
  text-align: center;
}

.user-picture {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  margin: auto;
  border-radius: 18px;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
}

.user-card h3 {
  margin: 11px 0 4px;
  font-size: 13px;
}

.user-card p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  margin: 8px 0;
}

/* CHAT */

.chat-window,
.messages-layout {
  overflow: hidden;
}

.chat-header {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}

.chat-header span {
  color: var(--muted);
  margin-left: 6px;
  font-size: 9px;
}

.chat-messages {
  height: 350px;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  max-width: 78%;
  width: fit-content;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff0b;
  border: 1px solid var(--border);
  font-size: 10px;
  line-height: 1.7;
}

.chat-message.mine {
  align-self: flex-end;
  background: #6941a755;
  border-color: #8b5cf655;
}

.chat-message small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 8px;
}

.chat-form {
  display: flex;
  gap: 9px;
  padding: 12px;
  border-top: 1px solid var(--border);
}

.messages-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 440px;
}

.conversation-list {
  padding: 10px;
  border-right: 1px solid var(--border);
}

.conversation-user {
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
}

.conversation-user.active,
.conversation-user:hover {
  background: #8b5cf622;
}

.conversation-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.conversation-content .chat-messages {
  flex: 1;
}

/* MARKETPLACE */

.market-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 19px;
  background: linear-gradient(135deg, #8b5cf644, #14f1d922);
}

/* PROFILE */

.profile-card {
  overflow: hidden;
}

.profile-cover {
  height: 155px;
  background:
    radial-gradient(circle at 80% 20%, #ffffff44, transparent 25%),
    linear-gradient(110deg, #4b269c, #11698a, #087d78);
}

.profile-information {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  margin-top: -32px;
}

.profile-avatar {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 4px solid #172238;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  font-size: 28px;
  font-weight: 900;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-information h2 {
  font-size: 19px;
}

.profile-information p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}

.profile-information .mini-badge {
  margin-left: auto;
}

.profile-bio {
  color: var(--muted);
  font-size: 11px;
  padding: 15px 18px;
  line-height: 1.8;
}

.profile-statistics {
  display: flex;
  gap: 55px;
  padding: 16px 18px;
  border-top: 1px solid var(--border);
}

.profile-statistics strong,
.profile-statistics small {
  display: block;
}

.profile-statistics small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 5px;
}

/* SUBSCRIPTION */

.subscription-card {
  position: relative;
}

.subscription-card.featured {
  border-color: #8b5cf688;
  box-shadow: 0 0 35px #8b5cf622;
}

.subscription-card > span {
  color: #c4b5fd;
  font-size: 9px;
  letter-spacing: 1px;
}

.subscription-card h2 {
  font-size: 30px;
  margin: 16px 0 7px;
}

.subscription-card p,
.subscription-card li {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}

.subscription-card ul {
  padding: 15px 0 8px 16px;
}

/* SETTINGS */

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-card {
  padding: 18px;
}

.settings-card h3 {
  font-size: 14px;
  margin-bottom: 13px;
}

.settings-card label:not(.setting-row) {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 13px;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.setting-row strong {
  display: block;
  font-size: 10px;
}

.setting-row small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}

.setting-row input[type="checkbox"] {
  width: 34px;
  height: 18px;
  accent-color: var(--purple);
}

.settings-input,
.settings-select {
  width: 100%;
  padding: 11px;
  margin-top: 7px;
  color: white;
  background: #080d19;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  font-size: 10px;
}

textarea.settings-input {
  min-height: 80px;
  resize: vertical;
}

/* ABOUT */

.about-card {
  text-align: center;
  padding: 45px 25px;
}

.large-logo {
  width: 75px;
  height: 75px;
  margin: auto;
  font-size: 38px;
}

.about-card h2 {
  font-size: 28px;
  margin: 17px 0 7px;
}

.about-card h3 {
  font-size: 12px;
  letter-spacing: 2px;
}

.about-card > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  max-width: 650px;
  margin: 18px auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 30px 0;
}

.about-grid div {
  padding: 16px;
  border-radius: 11px;
  background: #ffffff07;
  border: 1px solid var(--border);
}

.about-grid small,
.about-grid strong {
  display: block;
}

.about-grid small {
  color: var(--muted);
  font-size: 8px;
  margin-bottom: 8px;
}

.about-grid strong {
  font-size: 11px;
}

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

/* MODAL & TOAST */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #02040bcc;
  backdrop-filter: blur(9px);
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  width: min(520px, 100%);
  max-height: 85vh;
  overflow: auto;
  padding: 18px;
  border: 1px solid #ffffff2b;
  border-radius: 18px;
  background: #121c2d;
  box-shadow: 0 25px 70px #0009;
}

.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}

.modal-heading h3 {
  font-size: 15px;
}

.modal-heading button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #ffffff0a;
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 150;
  padding: 13px 17px;
  border: 1px solid #8b5cf666;

  
