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

:root {
  --bg: #f5f5f8;
  --sidebar-bg: #ffffff;
  --panel: #ffffff;
  --panel-soft: #fcfaff;
  --panel-soft-2: #f8f4ff;
  --card: #ffffff;
  --card-soft: #f8f4ff;
  --text: #1a1523;
  --muted: #6e6481;
  --line: #e3dbf8;
  --purple: #7c4dff;
  --purple-dark: #6236ff;
  --purple-soft: #f4efff;
  --teal: #14b8a6;
  --teal-soft: #f0fdfa;
  --shadow: 0 18px 40px rgba(124, 77, 255, 0.08);
  --shadow-btn: 0 10px 22px rgba(122, 77, 255, 0.2);
  --shadow-active: 0 10px 18px rgba(109, 79, 247, 0.18);
  --overlay: rgba(26, 21, 35, 0.4);
  --hover-bg: #f5efff;
  --hover-line: #d6ccf5;
  --active-blue: #3b82f6;
  --hover-shadow: 0 18px 34px rgba(124, 77, 255, 0.12);
  --danger: #ef4444;
  --danger-border: #fca5a5;
  --danger-bg: #fef2f2;
  --white: #ffffff;
  --focus-ring: rgba(122, 77, 255, 0.1);
  --avatar-bg: #f1f1f5;
  --drop-bg: #f8fafc;
  --drop-border: #e2e8f0;
  --drop-text: #64748b;
  --accent-gradient: linear-gradient(135deg, #7a4dff, #9a7cff);
  --btn-shadow: 0 10px 22px rgba(122, 77, 255, 0.2);
  --btn-shadow-hover: 0 14px 26px rgba(122, 77, 255, 0.28);
}

[data-theme="dark"] {
  --bg: #131018;
  --sidebar-bg: #1f1a28;
  --panel: #1f1a28;
  --panel-soft: #1f1a28;
  --panel-soft-2: #1f1a28;
  --card: #1f1a28;
  --card-soft: #1f1a28;
  --text: #ffffff;
  --muted: #a3aac2;
  --line: #2d323e;
  --purple: #9a7cff;
  --purple-dark: #f0e9ff;
  --purple-soft: #241d31;
  --teal: #46d8ca;
  --teal-soft: #20312f;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  --shadow-btn: 0 10px 22px rgba(0, 0, 0, 0.3);
  --shadow-active: 0 10px 18px rgba(0, 0, 0, 0.3);
  --overlay: rgba(0, 0, 0, 0.55);
  --hover-bg: #2d3341;
  --hover-line: #5b4a83;
  --active-blue: #3b82f6;
  --hover-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
  --danger: #ff5c5c;
  --danger-border: #4a2121;
  --danger-bg: #241414;
  --white: #ffffff;
  --focus-ring: rgba(154, 124, 255, 0.25);
  --avatar-bg: #2d3341;
  --drop-bg: #1e222a;
  --drop-border: #334155;
  --drop-text: #94a3b8;
  --accent-gradient: linear-gradient(135deg, #7a4dff, #8a66f7);
  --btn-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
  --btn-shadow-hover: 0 14px 26px rgba(0, 0, 0, 0.4);
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}
.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}

.app-shell.sidebar-active .sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  width: 294px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
  padding: 18px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sidebar-top {
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 0 10px;
}

.brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7a4dff, #c26be3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.brand-subtitle {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}

.back-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  text-decoration: none;
  font-size: 13px;
  color: var(--purple-dark);
  font-weight: 700;
}

.back-link-arrow {
  font-size: 18px;
  line-height: 1;
}

.back-link:hover {
  color: var(--purple);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.nav-section-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  margin-top: 8px;
  margin-bottom: 0;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.nav-item:hover {
  background: var(--hover-bg);
  border-color: var(--hover-line);
  box-shadow: var(--hover-shadow);
  transform: translateY(-1px);
}

.nav-item.active {
  background: var(--hover-bg);
  border-color: var(--active-blue);
  box-shadow: var(--hover-shadow);
  color: var(--active-blue);
  transform: translateY(-1px);
}

.nav-item.active .nav-icon {
  color: var(--active-blue);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.single-link {
  justify-content: flex-start;
}

.single-link .nav-left {
  width: 100%;
}

.nav-icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.nav-item:hover .nav-icon {
  color: var(--purple);
}

.helper-note {
  font-size: 11px;
  color: var(--muted);
  padding: 0 4px 0 14px;
  line-height: 1.4;
}

.main-content {
  flex: 1;
  padding: 0;
}

.topbar {
  height: 72px;
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--line);
  display: flex; /* Visible on all screens */
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 20px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--panel-soft);
  color: var(--purple);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: #f4efff;
  transform: scale(1.04);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.search-wrap {
  display: none;
  max-width: 330px;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--panel-soft-2);
  color: var(--text);
  border-radius: 13px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}

.search-input:focus {
  border-color: var(--hover-line);
  box-shadow: 0 0 0 3px rgba(122, 77, 255, 0.1);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.theme-toggle {
  height: 40px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--panel-soft-2);
  color: var(--purple-dark);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--hover-bg);
  border-color: var(--hover-line);
  transform: translateY(-1px);
}

.credits-box {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--sidebar-bg);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--purple-dark);
}

.credits-box strong {
  color: var(--purple);
  font-size: 14px;
}

.store-btn,
.primary-btn,
.institutions-btn,
.view-all-institutions-btn,
.book-now-btn {
  height: 40px;
  padding: 0 15px;
  border-radius: 13px;
  border: none;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  background: var(--accent-gradient);
  color: white;
  box-shadow: var(--btn-shadow);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.store-btn:hover,
.primary-btn:hover,
.institutions-btn:hover,
.view-all-institutions-btn:hover,
.book-now-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--btn-shadow-hover);
}
.page {
  min-height: 100vh;
  padding: 22px;
}

.layout {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.98fr 0.92fr;
  gap: 22px;
  align-items: start;
}

.form-panel,
.preview-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
}

.form-panel h1,
.preview-panel h2 {
  font-size: 2rem;
  line-height: 0.5;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 8px;
}

.subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.field {
  margin-bottom: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
  background: var(--card);
  color: var(--text);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
  padding-right: 16px;
}

.select-wrap select::-ms-expand {
  display: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.field textarea {
  resize: vertical;
  min-height: 132px;
  line-height: 1.55;
}

.helper-text,
.error-text {
  font-size: 12px;
  line-height: 1.4;
  margin-top: 7px;
}

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

.helper-spacing {
  margin-top: -8px;
  margin-bottom: 14px;
}

.error-text {
  color: var(--danger);
  min-height: 16px;
}

.upload-dropzone {
  width: 100%;
  min-height: 120px;
  border: 2px dashed var(--drop-border);
  border-radius: 18px;
  background: var(--drop-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 18px;
  cursor: pointer;
  color: var(--muted);
  transition: 0.2s ease;
}

.upload-dropzone:hover,
.upload-dropzone:focus,
.upload-dropzone.dragover {
  background: var(--hover-bg);
  border-color: var(--hover-line);
}

.upload-icon {
  font-size: 22px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1;
}

.upload-main {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.upload-sub {
  font-size: 12px;
  color: var(--muted);
}

.image-actions-row {
  margin-top: 10px;
}

.remove-image-btn {
  border: none;
  background: transparent;
  color: var(--purple);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.remove-image-btn:hover {
  text-decoration: underline;
}

.crop-section {
  display: none;
  margin: 16px 0 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: var(--panel-soft-2);
}

.crop-section.active {
  display: block;
}

.crop-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.crop-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-dark);
}

.zoom-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.zoom-wrap input {
  width: 160px;
}

.crop-stage {
  display: flex;
  justify-content: center;
}

.crop-box {
  position: relative;
  width: 260px;
  height: 260px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  touch-action: none;
  cursor: grab;
}

.crop-box.dragging {
  cursor: grabbing;
}

.crop-box img {
  position: absolute;
  top: 0;
  left: 0;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: top left;
}

.crop-mask {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 2px var(--focus-ring);
  border-radius: 22px;
  pointer-events: none;
}

.crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.secondary-btn,
.primary-btn,
.save-btn,
.slack-btn {
  border: none;
  border-radius: 14px;
  padding: 11px 15px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  text-decoration: none;
}

.secondary-btn {
  background: var(--hover-bg);
  color: var(--purple);
}

.secondary-btn:hover {
  background: var(--active-blue-soft);
}

.primary-btn,
.save-btn,
.slack-btn {
  background: var(--purple);
  color: #fff;
}

.primary-btn:hover,
.save-btn:hover,
.slack-btn:hover {
  background: var(--purple-dark);
}

.save-btn {
  width: 100%;
  margin-top: 4px;
  padding: 13px 16px;
  font-size: 14px;
}

.slack-box,
.payout-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: var(--panel-soft);
}

.slack-text,
.payout-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.slack-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.payout-text + .payout-text {
  margin-top: 8px;
}

.payout-list {
  margin-top: 10px;
  margin-left: 18px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}

.payout-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.payout-status {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.payout-status.enabled {
  color: var(--teal);
}

.preview-panel {
  padding: 22px;
}

.mentor-card {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--card);
  padding: 24px 22px 18px;
  max-width: 650px;
}

.card-top {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: start;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--avatar-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 21px;
  font-weight: 800;
  flex-shrink: 0;
}

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

.avatar.has-image img {
  display: block;
}

.avatar.has-image span {
  display: none;
}

.card-main h3 {
  font-size: 24px;
  line-height: 1.08;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  min-height: 25px;
}

.card-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  min-height: 20px;
}

.office-hours-inline {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 600;
  display: none;
}

.office-hours-inline span:first-child {
  color: var(--purple);
  font-weight: 700;
  margin-right: 4px;
}

.office-hours-inline span:last-child {
  color: var(--text);
  font-weight: 600;
}

.rating-badge {
  height: 38px;
  background: #f3f6f7;
  color: #2eb8ad;
  border: 1px solid #e5eeee;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 16px;
  font-weight: 800;
  padding: 0 12px;
}

.star {
  line-height: 1;
  font-size: 15px;
}

.card-description-wrap {
  margin-top: 26px;
}

.card-description {
  color: #293042;
  font-size: 16px;
  line-height: 1.52;
  font-weight: 500;
  max-width: 560px;
  min-height: 24px;
}

.card-description.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--purple);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin: 18px auto 0;
  width: 100%;
  justify-content: center;
}

.read-more-arrow {
  font-size: 15px;
  transform: translateY(1px);
}

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

@media (max-width: 720px) {
  .page {
    padding: 14px;
  }

  .form-panel,
  .preview-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mentor-card {
    border-radius: 28px;
    padding: 18px 16px 16px;
  }

  .card-top {
    grid-template-columns: 64px 1fr;
    gap: 14px;
  }

  .avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-size: 18px;
  }

  .card-main h3 {
    font-size: 20px;
  }

  .card-subtitle,
  .card-description,
  .read-more-btn,
  .office-hours-inline {
    font-size: 15px;
  }

  .rating-badge {
    grid-column: 2;
    justify-self: start;
    margin-top: 6px;
  }

  .crop-box {
    width: 220px;
    height: 220px;
  }
}

/* Remove datalist dropdown arrow (Chrome, Edge, Safari) */
input[list]::-webkit-calendar-picker-indicator {
  display: none !important;
}

/* Remove extra browser styling */
input[list] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
/* Sidebar & Layout Styles from demo1.css */
.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.app-shell.sidebar-active .sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  width: 294px;
  background: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  padding: 18px 16px;
  height: 100vh;
  position: sticky;
  top: 0;
  flex-shrink: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.sidebar::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.sidebar-top {
  padding: 8px 0 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 0 10px;
}

.brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7a4dff, #c26be3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  color: #1f2430;
}

.brand-subtitle {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #7c8395;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.nav-item {
  width: 100%;
  min-height: 48px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  text-decoration: none;
  color: #1f2430;
  font-size: 14px;
  font-weight: 700;
}

.nav-item:hover {
  background: #f7f3ff;
}

.nav-item.active {
  background: #f7f3ff;
  border-color: #7c4dff;
  box-shadow: 0 10px 22px rgba(124, 77, 255, 0.08);
  color: #7c4dff;
  transform: translateY(-1px);
}

.main-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 991px) {
  .topbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 900;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.15);
    width: 290px;
  }

  .app-shell.sidebar-active .sidebar {
    transform: translateX(0);
  }

  .app-shell.sidebar-active .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .main-content {
    padding-top: 0;
  }
}

/* Sidebar & Layout Styles from demo1.css */
.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.app-shell.sidebar-active .sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  width: 294px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
  padding: 18px 16px;
  height: 100vh;
  position: sticky;
  top: 0;
  flex-shrink: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.sidebar::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.sidebar-top {
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 0 10px;
}

.brand-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7a4dff, #c26be3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  font-weight: 600;
  flex-shrink: 0;
}

.brand-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.brand-subtitle {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.nav-item {
  width: 100%;
  min-height: 48px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.nav-item:hover {
  background: var(--hover-bg);
}

.nav-item.active {
  background: var(--hover-bg);
  border-color: var(--active-blue);
  box-shadow: var(--hover-shadow);
  color: var(--active-blue);
  transform: translateY(-1px);
}

.main-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .topbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 900;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.15);
    width: 290px;
  }

  .app-shell.sidebar-active .sidebar {
    transform: translateX(0);
  }

  .app-shell.sidebar-active .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .main-content {
    padding-top: 0;
  }
}

/* Uniform sidebar + main content spacing and typography across pages */
.sidebar {
  width: 294px !important;
  min-width: 294px !important;
}
.main-content {
  flex: 1 !important;
  padding: 0px !important;
  min-width: 0;
}
.page-shell,
.demo14-page-wrap,
.page-wrap {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding-top: 12px !important;
  padding-bottom: 24px !important;
}
.page-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 24px !important;
  margin-bottom: 24px !important;
}
.title-wrap h1,
.page-heading h1 {
  font-size: 34px !important;
  line-height: 1.2 !important;
  margin-bottom: 12px !important;
}
.title-wrap p,
.page-heading p,
.info-copy p {
  font-size: 16px !important;
  color: var(--muted) !important;
  max-width: 870px !important;
}

@media (max-width: 768px) {
  .topbar-right .credits-box {
    display: none;
  }
}
