:root {
  --studio-ink: #17211b;
  --studio-deep: #10251c;
  --studio-green: #176b4d;
  --studio-green-soft: #e7f2ec;
  --studio-lime: #c7e66b;
  --studio-coral: #e9795f;
  --studio-bg: #f3f5ef;
  --studio-line: #dfe6dc;
  --studio-muted: #6d796f;
  --studio-shadow: 0 16px 38px rgba(24, 48, 35, .08);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--studio-bg);
  color: var(--studio-ink);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

.studio-sidebar, .studio-mobile-drawer {
  width: 276px;
  background: var(--studio-deep);
  color: #fff;
  padding: 30px 20px !important;
  position: relative;
  overflow: hidden;
}

.studio-sidebar::after, .studio-mobile-drawer::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -110px;
  bottom: 80px;
  border: 1px solid rgba(199,230,107,.25);
  border-radius: 50%;
  pointer-events: none;
}

.studio-brand {
  color: #fff;
  letter-spacing: .01em;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.studio-brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-right: 10px;
  filter: brightness(0) invert(1);
}

.studio-brand small {
  color: #aabcae;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: system-ui, sans-serif;
  font-size: .58rem !important;
  margin: 10px 0 0 46px;
}

.studio-section-label {
  color: #829889;
  font: 700 .63rem/1 system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 42px 12px 14px;
}

.studio-nav {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.studio-nav .nav-link {
  color: #c1d0c4;
  border-radius: 8px;
  padding: .82rem .9rem;
  font-family: system-ui, sans-serif;
  font-size: .88rem;
  position: relative;
  z-index: 3;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.studio-nav .nav-link i {
  width: 22px;
  color: #8eae98;
}

.studio-nav .nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
  transform: translateX(3px);
}

.studio-nav .nav-link.active {
  color: var(--studio-deep);
  background: var(--studio-lime);
  font-weight: 800;
}

.studio-nav .nav-link.active i {
  color: var(--studio-deep);
}

.studio-main {
  min-width: 0;
}

.studio-help-page {
  max-width: 1180px;
  margin: 0 auto;
}

.studio-help-header {
  margin-bottom: 1.5rem;
}

.studio-help-header h2 {
  margin: .4rem 0 .5rem;
  color: var(--studio-ink);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.studio-help-header p {
  max-width: 620px;
  margin: 0;
  color: var(--studio-muted);
}

.studio-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.studio-help-card {
  padding: 1.35rem;
  border: 1px solid var(--studio-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--studio-shadow);
}

.studio-help-card > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: .9rem;
  border-radius: 10px;
  background: var(--studio-green-soft);
  color: var(--studio-green);
  font-size: 1.2rem;
}

.studio-help-card h3,
.studio-help-links h3 {
  margin: 0 0 .45rem;
  color: var(--studio-ink);
  font-size: 1.05rem;
}

.studio-help-card p {
  min-height: 3.2rem;
  margin: 0 0 1rem;
  color: var(--studio-muted);
  line-height: 1.55;
}

.studio-help-card a,
.studio-help-link-list a {
  color: var(--studio-green);
  font-weight: 800;
  text-decoration: none;
}

.studio-help-card a:hover,
.studio-help-link-list a:hover {
  text-decoration: underline;
}

.studio-help-card a i {
  margin-left: .3rem;
}

.studio-help-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 1.35rem;
  border: 1px solid var(--studio-line);
  border-radius: 12px;
  background: var(--studio-green-soft);
}

.studio-help-link-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .75rem 1.2rem;
}

.studio-help-link-list a {
  white-space: nowrap;
}

.studio-help-link-list i {
  margin-right: .35rem;
}

.studio-footer {
  padding: 2rem clamp(1rem, 4vw, 3rem) 1rem;
  border-top: 1px solid var(--studio-line);
  background: #f3f5ef;
  color: #68786d;
  font-size: .8rem;
}

.studio-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.35fr 1.5fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.studio-footer h2 {
  margin: 0 0 .75rem;
  color: var(--studio-green);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.studio-footer p {
  margin: 0 0 .55rem;
  line-height: 1.55;
}

.studio-footer a {
  display: block;
  margin-bottom: .45rem;
  color: var(--studio-green);
  font-weight: 700;
  text-decoration: none;
}

.studio-footer a:hover {
  text-decoration: underline;
}

.studio-footer-trust {
  color: var(--studio-green);
  font-weight: 700;
}

.studio-footer-founder {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.studio-footer-founder img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--studio-lime);
}

.studio-footer-founder strong {
  color: var(--studio-green);
}

.studio-footer-founder p {
  margin-top: .25rem;
}

.studio-footer-socials {
  display: flex;
  gap: .7rem;
  margin-top: .8rem;
}

.studio-footer .studio-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  border: 1px solid var(--studio-line);
  border-radius: 50%;
}

.studio-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--studio-line);
}

.studio-footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.studio-footer-bottom nav a {
  display: inline;
  margin: 0;
}

.studio-user-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.studio-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--studio-lime);
}

.studio-bottom-nav {
  z-index: 1040;
  display: none !important;
  justify-content: space-around;
  gap: .35rem;
  padding: .55rem .5rem calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(16, 37, 28, .97);
  border-top: 1px solid rgba(199, 230, 107, .22);
  box-shadow: 0 -8px 24px rgba(16, 37, 28, .18);
}

.studio-bottom-nav-link {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .35rem .2rem;
  border-radius: 8px;
  color: #c1d0c4;
  font-size: .68rem;
  font-weight: 700;
  text-decoration: none;
}

.studio-bottom-nav-link i {
  font-size: 1.05rem;
  line-height: 1;
}

.studio-bottom-nav-link.active,
.studio-bottom-nav-link:hover {
  color: var(--studio-lime);
  background: rgba(199, 230, 107, .12);
}

.studio-push-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.studio-push-button.active {
  color: var(--studio-lime);
  background: rgba(199, 230, 107, .12);
}

.studio-push-button.active i {
  color: #ffd166;
  filter: drop-shadow(0 0 5px rgba(255, 209, 102, .55));
}

/* Show compact navigation only inside the installed PWA. */
@media (display-mode: standalone) {
  .studio-footer {
    display: none;
  }

  .studio-bottom-nav {
    display: flex !important;
  }
}

@media (display-mode: fullscreen) {
  .studio-footer {
    display: none;
  }

  .studio-bottom-nav {
    display: flex !important;
  }
}

@media (display-mode: minimal-ui) {
  .studio-footer {
    display: none;
  }

  .studio-bottom-nav {
    display: flex !important;
  }
}

.studio-topbar {
  background: rgba(243,245,239,.9);
  border-bottom: 1px solid var(--studio-line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.studio-topbar-label {
  color: var(--studio-green);
  font: 800 .65rem/1 system-ui, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.studio-user-chip {
  background: #fff;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  color: var(--studio-deep);
  font: 700 .78rem system-ui, sans-serif;
  padding: .52rem .72rem;
}

.studio-content {
  max-width: 1480px;
}

.dashboard-page,
.service-management-page {
  margin-top: 1rem;
}

.studio-eyebrow {
  color: var(--studio-green);
  font: 800 .68rem/1 system-ui, -apple-system, 'Segoe UI', sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.stat-card, .queue-panel, .wallet-dashboard .card, .bookings-table {
  background: #fff;
  border: 1px solid var(--studio-line) !important;
  border-radius: 10px !important;
  box-shadow: var(--studio-shadow);
}

.active-bookings-panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--studio-line) !important;
  border-radius: 10px !important;
  box-shadow: var(--studio-shadow);
}

.active-bookings-panel .card-header {
  padding: 1.35rem 1.5rem !important;
}

.active-booking-card {
  padding: 1rem;
  border: 1px solid #dce9df;
  border-radius: 9px;
  background: linear-gradient(135deg, #f9fcf8, #ffffff);
}

.active-booking-label {
  display: block;
  margin-bottom: .2rem;
  color: var(--studio-green);
  font: 800 .62rem system-ui, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.stat-card {
  overflow: hidden;
  position: relative;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--studio-green);
}

.stat-card .card-body {
  padding: 1.35rem;
}

.stat-label {
  color: var(--studio-muted);
  font: 800 .67rem system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stat-value {
  color: var(--studio-deep);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1;
}

.stat-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--studio-green-soft);
  color: var(--studio-green);
}

.stat-card--accent {
  background: var(--studio-green) !important;
  border-color: var(--studio-green) !important;
}

.stat-card--accent::before {
  background: var(--studio-lime);
}

.stat-card--accent .stat-label, .stat-card--accent .stat-value {
  color: #fff;
}

.stat-card--accent .stat-icon {
  background: rgba(255,255,255,.16);
  color: var(--studio-lime);
}

.queue-panel {
  overflow: hidden;
}

.queue-panel .card-header {
  padding: 1.45rem 1.5rem !important;
  background: #fff !important;
}

.queue-table thead th {
  color: var(--studio-muted);
  font: 800 .65rem system-ui, sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--studio-line);
  padding: .9rem 1.5rem;
}

.queue-table tbody td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #edf1eb;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: .86rem;
}

.queue-table tbody tr:last-child td {
  border-bottom: none;
}

.queue-table tbody tr:hover {
  background: #f8faf6;
}

.queue-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fbe0d8;
  color: #9b4f3e;
  font-weight: 800;
}

.queue-status {
  border-radius: 5px;
  font: 800 .65rem system-ui, sans-serif;
  letter-spacing: .04em;
  padding: .42rem .62rem;
}

.studio-empty {
  padding: 4rem 1rem;
  color: var(--studio-muted);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.studio-open-pill {
  box-shadow: 0 0 0 5px rgba(23,107,77,.12);
  animation: studio-pulse 2.4s ease-in-out infinite;
}

.studio-content .btn {
  border-radius: 7px;
  font-weight: 700;
}

.studio-content .form-control, .studio-content .form-select {
  border-color: var(--studio-line);
  border-radius: 7px;
}

.studio-content .form-control:focus, .studio-content .form-select:focus {
  border-color: var(--studio-green);
  box-shadow: 0 0 0 .2rem rgba(23,107,77,.12);
}

.studio-menu-toggle {
  display: none;
  border: 0;
  background: var(--studio-deep);
  color: var(--studio-lime);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(16,37,28,.18);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.studio-menu-toggle:hover, .studio-menu-toggle:focus-visible {
  background: var(--studio-green);
  color: #fff;
  transform: translateY(-1px);
}

.studio-menu-toggle:focus-visible {
  outline: 3px solid rgba(199,230,107,.55);
  outline-offset: 2px;
}

.studio-sidebar-close {
  display: none;
  flex: 0 0 auto !important;
}

@keyframes studio-pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(23,107,77,.08);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(23,107,77,.16);
  }
}

@media (max-width: 991.98px) {
  .studio-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .studio-footer-bottom {
    flex-direction: column;
  }

  .studio-shell {
    display: block !important;
  }

  .studio-menu-toggle {
    display: inline-flex;
  }

  .studio-mobile-drawer.offcanvas {
    --bs-offcanvas-width: 50vw;
    position: fixed;
    z-index: 1055;
    width: var(--bs-offcanvas-width) !important;
    max-width: var(--bs-offcanvas-width);
    flex: 0 0 var(--bs-offcanvas-width);
    height: 100vh;
    max-height: 100vh;
    top: 0;
    bottom: 0;
    padding: 22px 18px !important;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .studio-mobile-drawer-header {
    position: relative;
    z-index: 1;
    min-height: 44px;
    margin-bottom: 1.25rem;
  }

  .studio-mobile-drawer-title {
    color: var(--studio-lime);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
  }

  .studio-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    right: 12px;
    z-index: 2;
    width: 38px !important;
    max-width: 38px !important;
    height: 38px;
    min-width: 38px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: #c1d0c4;
    font-size: 1rem;
    padding: 0;
  }

  .studio-sidebar-close:hover, .studio-sidebar-close:focus-visible {
    background: rgba(255,255,255,.18);
    color: #fff;
  }

  .studio-nav {
    display: flex;
    flex-direction: column;
    gap: .35rem !important;
  }

  .studio-nav .nav-link {
    padding: .72rem .7rem;
  }

  .studio-section-label {
    margin: 25px 12px 10px;
  }

  .queue-table {
    min-width: 760px;
  }

  .studio-content {
    padding: 5px !important;
    padding-bottom: 6rem !important;
  }

  .studio-help-grid {
    grid-template-columns: 1fr;
  }

  .studio-help-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .studio-help-link-list {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .studio-footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive safeguards for Studio pages without changing the Studio palette. */
.studio-app img,
.studio-app video,
.studio-app canvas,
.studio-app svg {
  max-width: 100%;
  height: auto;
}

.studio-app .studio-content,
.studio-app .studio-main,
.studio-app .card,
.studio-app .card-body {
  min-width: 0;
}

.studio-app .btn {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.studio-app .table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
  .studio-app .studio-content {
    padding-left: .75rem !important;
    padding-right: .75rem !important;
  }

  .studio-app .row > [class*="col-"] {
    min-width: 0;
  }

  .studio-app .d-flex {
    flex-wrap: wrap;
  }

  .studio-app .studio-content .btn {
    min-height: 42px;
  }
}

@media (max-width: 575.98px) {
  .studio-app .studio-content {
    padding-left: .5rem !important;
    padding-right: .5rem !important;
  }

  .studio-app .card-body {
    padding: 1rem !important;
  }

  .studio-app h1,
  .studio-app h2,
  .studio-app h3 {
    overflow-wrap: anywhere;
  }
}
