:root {
  --nala-bg-1: #f5f7ff;
  --nala-bg-2: #f6fffa;
  --nala-card: #ffffff;
  --nala-text: #122138;
  --nala-muted: #556483;
  --nala-accent: #0f8a74;
  --nala-accent-2: #1f5eff;
  --nala-accent-soft: #edf1ff;
  --nala-danger: #bb2f4e;
  --nala-border: #d6deee;
  --nala-shadow: 0 18px 40px rgba(22, 43, 82, 0.12);
}

body.nala-homepage-active .wp-site-blocks > header,
body.nala-homepage-active .wp-site-blocks > footer {
  display: none;
}

body.nala-homepage-active .wp-site-blocks {
  padding-top: 0;
}

body.nala-homepage-active main.wp-block-group {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.nala-homepage-active main.wp-block-group > .wp-block-group.alignfull {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.nala-homepage-active .wp-block-post-content {
  margin: 0 !important;
  padding: 0 !important;
}

body.nala-homepage-active .wp-block-post-title,
body.nala-homepage-active .entry-title,
body.nala-homepage-active .post-navigation-link-next,
body.nala-homepage-active .post-navigation-link-previous {
  display: none !important;
}

.nala-shell {
  box-sizing: border-box;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--nala-text);
  background: radial-gradient(140% 160% at 0% 0%, var(--nala-bg-1) 0%, var(--nala-bg-2) 48%, #fffcef 100%);
  border: 1px solid #e4e9f5;
  border-radius: 0;
  padding: 24px;
  box-shadow: var(--nala-shadow);
  margin: 0;
  width: 100%;
  max-width: none !important;
}

.nala-shell *,
.nala-shell *::before,
.nala-shell *::after {
  box-sizing: border-box;
}

body.nala-homepage-active .nala-shell--homepage,
body.nala-homepage-active .nala-shell--dashboard-page {
  border-left: 0;
  border-right: 0;
  min-height: 100vh;
  display: flex;
}

.nala-shell--homepage .nala-dashboard-layout,
.nala-shell--dashboard-page .nala-dashboard-layout {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
}

.nala-dashboard-footer-row {
  min-width: 0;
}

.nala-site-header {
  display: grid;
  grid-template-columns: auto minmax(420px, 1fr) auto;
  grid-template-areas: "brand nav actions";
  align-items: center;
  column-gap: 18px;
  row-gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f4;
}

.nala-brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  color: var(--nala-text);
  text-decoration: none;
}

.nala-brand-logo {
  width: 44px;
  height: auto;
  display: block;
}

.nala-brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--nala-accent), var(--nala-accent-2));
}

.nala-site-nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 0 clamp(10px, 1.8vw, 24px);
  gap: 12px;
}

.nala-site-nav a {
  text-decoration: none;
  color: var(--nala-text);
  font-weight: 600;
  font-size: 0.94rem;
  white-space: nowrap;
  text-align: center;
}

.nala-site-actions {
  grid-area: actions;
  display: inline-flex;
  gap: 10px;
  justify-self: end;
}

.nala-hero {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.nala-hero--dashboard-home {
  margin-top: 0;
}

.nala-hero-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.nala-hero-brand-logo {
  width: 54px;
  height: auto;
  display: block;
}

.nala-hero-copy h1 {
  margin: 8px 0;
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.nala-hero-copy p {
  margin: 0;
  color: var(--nala-muted);
  font-size: 1rem;
  max-width: 60ch;
}

.nala-hero-subtitle-row {
  margin-top: 18px;
}

.nala-hero-subtitle {
  max-width: 60ch;
}

.nala-kicker {
  display: inline-block;
  font-weight: 700;
  color: var(--nala-accent-2);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nala-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

@media (min-width: 721px) {
  .nala-hero-subtitle-row {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) auto;
    gap: 18px;
    align-items: center;
  }

  .nala-hero-subtitle-row .nala-hero-subtitle {
    max-width: 100%;
  }

  .nala-hero-subtitle-row .nala-hero-cta {
    margin-top: 0;
    justify-content: flex-end;
  }
}

.nala-form,
.nala-card {
  background: var(--nala-card);
  border: 1px solid var(--nala-border);
  border-radius: 16px;
  padding: 18px;
  margin: 16px 0;
}

.nala-form-tight {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.nala-form label {
  font-weight: 600;
  margin-top: 10px;
  display: block;
}

.nala-form .nala-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-weight: 600;
}

.nala-form .nala-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.nala-form input[type="email"],
.nala-form input[type="number"],
.nala-form input[type="text"],
.nala-form input[type="password"],
.nala-form input[type="file"],
.nala-auth-card #nala-login-form input[type="text"],
.nala-auth-card #nala-login-form input[type="password"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--nala-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.nala-auth-card #nala-login-form p {
  margin: 8px 0;
}

.nala-auth-card #nala-login-form .login-submit {
  margin-top: 14px;
}

.nala-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.nala-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.nala-shell--homepage .nala-payment-ui {
  display: none !important;
}

.nala-required {
  color: var(--nala-danger);
}

.nala-conditional {
  display: none;
  margin-top: 8px;
  animation: nalaFade 0.24s ease;
}

.nala-conditional.is-active {
  display: block;
}

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

.nala-btn {
  display: inline-block;
  border: 0;
  border-radius: 11px;
  padding: 10px 15px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--nala-accent), var(--nala-accent-2));
  cursor: pointer;
}

.nala-btn:hover {
  filter: brightness(1.06);
}

.nala-form.is-submitting .nala-btn[type="submit"] {
  cursor: wait;
  opacity: 0.85;
}

.nala-submit-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.nala-submit-waiting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  color: var(--nala-muted);
  font-weight: 600;
}

.nala-submit-waiting[hidden] {
  display: none !important;
}

.nala-submit-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #c7d5ef;
  border-top-color: var(--nala-accent-2);
  border-radius: 50%;
  animation: nalaSpin 0.8s linear infinite;
}

@keyframes nalaSpin {
  to {
    transform: rotate(360deg);
  }
}

.nala-btn-secondary {
  background: var(--nala-accent-soft);
  color: #143379;
}

.nala-btn-ghost {
  background: transparent;
  border: 1px solid #b8c7e7;
  color: #1c2f5d;
}

.nala-btn-danger {
  background: var(--nala-danger);
}

.nala-btn-google {
  background: #ffffff;
  border: 1px solid #dadce0;
  color: #1f1f1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
  font-weight: 600;
}

.nala-btn-google:hover {
  border-color: #c3c8d0;
  box-shadow: 0 2px 5px rgba(17, 24, 39, 0.12);
  filter: none;
}

.nala-auth-google-wrap {
  margin: 10px 0 0;
}

.nala-btn-google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.nala-btn-google-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.nala-btn-google-label {
  line-height: 1.2;
}

.nala-link-btn {
  border: 0;
  background: transparent;
  color: var(--nala-accent-2);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.nala-notice {
  margin: 10px 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--nala-border);
}

.nala-notice-success {
  background: #e8fff5;
  border-color: #98e2c8;
}

.nala-notice-error {
  background: #fff2f5;
  border-color: #f1b6c2;
}

.nala-notice-info,
.nala-notice-warning {
  background: #f4f7ff;
  border-color: #c7d5ff;
}

.nala-auth-card {
  animation: nalaFade 0.24s ease;
}

.nala-auth-card[hidden] {
  display: none !important;
}

.nala-auth-switch {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.nala-auth-switch-btn {
  border: 1px solid var(--nala-border);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: var(--nala-text);
  font-weight: 600;
  cursor: pointer;
}

.nala-auth-switch-btn.is-active {
  background: var(--nala-accent-soft);
  color: #143379;
  border-color: #b8c7e7;
}

.nala-auth-panels {
  display: block;
}

.nala-auth-panel[hidden] {
  display: none !important;
}

.nala-auth-form-shell {
  width: min(100%, 420px);
  max-width: 100%;
  min-width: 0;
}

.nala-auth-form-shell .nala-form {
  margin: 0;
}

.nala-auth-form-shell .nala-btn {
  margin-top: 10px;
}

.nala-auth-card #nala-login-form,
.nala-auth-card .nala-form-tight {
  width: min(100%, 420px);
  max-width: 100%;
  min-width: 0;
}

.nala-auth-grid,
.nala-feature-strip,
.nala-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.nala-feature-strip article {
  background: #fbfdff;
  border: 1px solid #e2e9f8;
  border-radius: 12px;
  padding: 14px;
}

.nala-feature-strip h3 {
  margin: 0 0 6px;
}

.nala-feature-strip p {
  margin: 0;
  color: var(--nala-muted);
}

.nala-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}

.nala-nav a {
  font-size: 0.94rem;
  color: var(--nala-accent-2);
  text-decoration: none;
  border-bottom: 1px dashed var(--nala-accent-2);
}

.nala-wallet-card {
  padding: 14px;
  background: #f7fbff;
  border: 1px solid #dce8fa;
  border-radius: 12px;
}

.nala-wallet-balance {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 6px 0;
}

.nala-wallet-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--nala-muted);
}

.nala-credit-pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.nala-credit-pack-card {
  border: 1px solid #d8e3f5;
  border-radius: 14px;
  padding: 40px 16px 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.nala-credit-pack-card.is-selected {
  border-color: #1f5fbf;
  box-shadow: 0 0 0 2px rgba(31, 95, 191, 0.12);
}

.nala-credit-pack-card h3 {
  margin: 0;
}

.nala-credit-pack-price {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.nala-credit-pack-pricing {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nala-credit-pack-original-price {
  margin: 0;
  font-size: 0.95rem;
  color: var(--nala-muted);
  text-decoration: line-through;
}

.nala-credit-pack-discount {
  margin: 0;
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px 6px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(135deg, #ff9156, #e25a4b);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(226, 90, 75, 0.18);
}

.nala-credit-pack-badge {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1f5fbf;
  font-weight: 700;
}

.nala-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.nala-grid article {
  border: 1px solid var(--nala-border);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.nala-grid h3 {
  margin: 0;
  font-size: 0.87rem;
  color: var(--nala-muted);
}

.nala-grid p {
  margin: 8px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.nala-about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.nala-about-page {
  display: grid;
  gap: 14px;
  max-width: min(100%, 980px);
  margin-inline: auto;
}

.nala-about-page .nala-about-card {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-color: #dbe4f4;
  background:
    linear-gradient(90deg, rgba(31, 94, 255, 0.06) 0%, rgba(31, 94, 255, 0.02) 18%, rgba(255, 255, 255, 0.98) 52%),
    #ffffff;
}

.nala-about-page .nala-about-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #1f5eff 0%, #0f8a74 100%);
  opacity: 0.75;
}

.nala-about-page .nala-about-card:nth-child(3n + 2) {
  background:
    linear-gradient(90deg, rgba(15, 138, 116, 0.06) 0%, rgba(15, 138, 116, 0.02) 18%, rgba(255, 255, 255, 0.98) 52%),
    #ffffff;
}

.nala-about-page .nala-about-card:nth-child(3n + 2)::before {
  background: linear-gradient(180deg, #0f8a74 0%, #1f5eff 100%);
}

.nala-about-page .nala-about-card:nth-child(3n + 3) {
  background:
    linear-gradient(90deg, rgba(130, 106, 255, 0.06) 0%, rgba(130, 106, 255, 0.02) 18%, rgba(255, 255, 255, 0.98) 52%),
    #ffffff;
}

.nala-about-page .nala-about-card:nth-child(3n + 3)::before {
  background: linear-gradient(180deg, #826aff 0%, #1f5eff 100%);
}

.nala-about-page .nala-about-card--intro {
  border-color: #d9e5f8;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(31, 94, 255, 0.08), transparent 60%),
    #ffffff;
}

.nala-about-page .nala-about-card > :first-child,
.nala-about-page .nala-about-grid article > :first-child {
  margin-top: 0;
}

.nala-about-page .nala-about-card > h2 {
  margin-bottom: 8px;
  color: #1c2f5d;
}

.nala-about-grid article {
  border: 1px solid var(--nala-border);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.nala-about-page .nala-about-grid article {
  position: relative;
  overflow: hidden;
  border-color: #dbe4f4;
  border-radius: 12px;
  padding: 12px 12px 12px 16px;
  background:
    linear-gradient(90deg, rgba(31, 94, 255, 0.05) 0%, rgba(31, 94, 255, 0.015) 18%, rgba(255, 255, 255, 0.98) 52%),
    #ffffff;
}

.nala-about-page .nala-about-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #1f5eff 0%, #0f8a74 100%);
  opacity: 0.72;
}

.nala-about-page .nala-about-grid article:nth-child(3n + 2) {
  background:
    linear-gradient(90deg, rgba(15, 138, 116, 0.05) 0%, rgba(15, 138, 116, 0.015) 18%, rgba(255, 255, 255, 0.98) 52%),
    #ffffff;
}

.nala-about-page .nala-about-grid article:nth-child(3n + 2)::before {
  background: linear-gradient(180deg, #0f8a74 0%, #1f5eff 100%);
}

.nala-about-page .nala-about-grid article:nth-child(3n + 3) {
  background:
    linear-gradient(90deg, rgba(130, 106, 255, 0.05) 0%, rgba(130, 106, 255, 0.015) 18%, rgba(255, 255, 255, 0.98) 52%),
    #ffffff;
}

.nala-about-page .nala-about-grid article:nth-child(3n + 3)::before {
  background: linear-gradient(180deg, #826aff 0%, #1f5eff 100%);
}

.nala-about-grid h3 {
  margin: 0;
}

.nala-about-grid p {
  margin: 8px 0 0;
}

.nala-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.94rem;
}

.nala-table-scroll {
  max-height: 520px;
  overflow: auto;
  border: 1px solid #e6ebf5;
  border-radius: 12px;
}

.nala-table-scroll .nala-table {
  margin-top: 0;
}

.nala-table-scroll .nala-table th {
  position: sticky;
  top: 0;
  background: #f8faff;
  z-index: 1;
}

.nala-table th,
.nala-table td {
  border-bottom: 1px solid #e6ebf5;
  text-align: left;
  padding: 9px 8px;
  vertical-align: top;
}

.nala-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--nala-muted);
  letter-spacing: 0.04em;
}

/* === SIMPLIFIED TABLE STYLING - Light Blue Header, No Borders === */

/* Section container */
.nala-analysis-section {
  margin: 40px 0;
  padding: 24px; /* Add padding inside the card for spacing between text and border */
}

/* Main heading - applies to both Analysis History (h2) and Latest Analyses (h3) */
.nala-analysis-section h2,
.nala-analysis-section h3 {
  color: var(--nala-accent);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--nala-accent);
  letter-spacing: -0.02em;
}

/* Container - Clean, no borders or shadows */
.nala-analysis-section .nala-table-scroll {
  border-radius: 8px !important; /* Reduced from 16px */
  overflow: auto !important; /* ENABLE both horizontal and vertical scrolling */
  max-height: 520px !important; /* Set max height for vertical scrolling */
  background: rgba(255, 255, 255, 0.95); /* Solid, non-transparent */
  border: none !important; /* NO border */
  box-shadow: none !important; /* NO shadow */
  padding: 0;
}

/* Table */
.nala-analysis-section .nala-table-scroll .nala-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: none !important;
  border-radius: 8px !important; /* Match container */
  min-width: 800px !important; /* Ensure table is wide enough to require horizontal scroll on smaller screens */
  width: 100% !important;
  max-width: none !important;
}

/* Light blue solid header background */
.nala-analysis-section .nala-table-scroll .nala-table thead {
  background: #e0f0ff !important; /* Very light blue */
  backdrop-filter: none !important; /* Remove blur */
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
}

/* Header row */
.nala-analysis-section .nala-table-scroll .nala-table thead tr {
  background: transparent !important;
  border: none !important;
}

/* Header cells - Bold black text on light blue */
.nala-analysis-section .nala-table-scroll .nala-table thead th {
  background: transparent !important;
  font-weight: 700 !important;
  color: #000000 !important; /* Bold black text */
  border: none !important;
  padding: 10px 12px !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.04em !important;
  position: relative;
  text-shadow: none !important; /* Remove text shadow */
}

/* === TABLE BODY STYLING - Clean and Simple === */

/* Data rows - Simple alternating background */
.nala-analysis-section .nala-table-scroll .nala-table tbody tr {
  background: #ffffff !important; /* Solid white */
  border-bottom: 1px solid #e6ebf5 !important; /* Light gray row separator */
  transition: none !important; /* Remove animation */
}

.nala-analysis-section .nala-table-scroll .nala-table tbody tr:nth-child(even) {
  background: #f8f9ff !important; /* Very light gray/blue for even rows */
}

.nala-analysis-section .nala-table-scroll .nala-table tbody tr:hover {
  background: #e0ecff !important; /* Light blue hover */
}

/* Data cells - Clean */
.nala-analysis-section .nala-table-scroll .nala-table tbody td {
  background: transparent !important;
  border: none !important;
  padding: 12px 12px !important; /* Consistent padding */
}

/* === MOBILE RESPONSIVENESS - Simplified === */
@media (max-width: 768px) {
  .nala-analysis-section .nala-table-scroll {
    border-radius: 6px !important; /* Smaller radius on mobile */
    background: #ffffff !important;
    max-height: 400px !important; /* Smaller max height on mobile */
  }
  
  .nala-analysis-section .nala-table-scroll .nala-table thead th {
    padding: 8px 8px !important;
    font-size: 0.78rem !important;
  }
  
  .nala-analysis-section .nala-table-scroll .nala-table tbody td {
    padding: 10px 8px !important;
  }
  
  .nala-analysis-section .nala-table-scroll .nala-table {
    min-width: 600px !important; /* Smaller min width on mobile */
  }
}

/* === RESPONSIVE PADDING FOR ANALYSIS HISTORY CARD === */
@media (max-width: 1024px) {
  .nala-analysis-section {
    padding: 20px; /* Slightly smaller padding on tablets */
    margin: 30px 0; /* Adjust margin for tablets */
  }
}

@media (max-width: 768px) {
  .nala-analysis-section {
    padding: 16px; /* Smaller padding on mobile phones */
    margin: 20px 0; /* Smaller margin on mobile */
  }
  
  .nala-analysis-section h2,
  .nala-analysis-section h3 {
    font-size: 1.4rem; /* Slightly smaller heading on mobile */
    margin-bottom: 20px; /* Adjust margin */
    padding-bottom: 10px; /* Adjust padding */
  }
}

/* === CUSTOM SCROLLBAR STYLING === */
.nala-analysis-section .nala-table-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.nala-analysis-section .nala-table-scroll::-webkit-scrollbar-track {
  background: #f1f5ff;
  border-radius: 8px;
}

.nala-analysis-section .nala-table-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--nala-accent), var(--nala-accent-2));
  border-radius: 8px;
  border: 2px solid #f1f5ff;
}

.nala-analysis-section .nala-table-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0d7562, #1b4fe0);
}

.nala-hint {
  color: var(--nala-muted);
  font-size: 0.9rem;
}

#nala-uploader {
  padding: 14px 16px;
  margin: 12px 0;
}

#nala-uploader h2 {
  margin: 0 0 6px;
  line-height: 1.14;
}

#nala-uploader > .nala-hint {
  margin: 0 0 6px;
  font-size: 0.84rem;
}

#nala-uploader .nala-form {
  margin: 8px 0 0;
  padding: 12px;
  border-radius: 12px;
}

#nala-uploader .nala-form label {
  margin-top: 8px;
  font-size: 0.92rem;
}

#nala-uploader .nala-form label:first-of-type {
  margin-top: 0;
}

#nala-uploader .nala-submit-actions {
  margin-top: 8px;
  gap: 8px;
}

#nala-uploader .nala-auth-cta-actions {
  margin-top: 8px;
  gap: 8px;
}

#nala-uploader .nala-upload-credit-line {
  margin: 0 0 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

#nala-uploader .nala-upload-premium-line {
  margin-bottom: 8px;
}

#nala-uploader .nala-upload-credit-note {
  color: var(--nala-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

#nala-uploader .nala-upload-buy-btn {
  margin-left: 4px;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 0.74rem;
  line-height: 1.1;
  white-space: nowrap;
}

.nala-uploader-layout {
  display: block;
  margin-top: 6px;
}

.nala-uploader-form-col,
.nala-uploader-tracker-col {
  min-width: 0;
}

.nala-uploader-tracker-col {
  margin-top: 10px;
}

.nala-uploader-tracker-col > .nala-queue-tracker {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 721px) {
  .nala-uploader-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(8px, 1.1vw, 12px);
    align-items: end;
    width: 100%;
  }

  .nala-uploader-form-col,
  .nala-uploader-tracker-col {
    align-self: end;
  }

  .nala-uploader-tracker-col {
    margin-top: 0;
  }

  .nala-auth-cta-strip-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .nala-auth-cta-featured {
    width: 300px;
    justify-self: end;
  }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .nala-uploader-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  }
}

.nala-queue-tracker {
  margin: 0;
  padding: clamp(8px, 0.8vw, 10px);
  border: 1px solid #d6e0f0;
  border-radius: clamp(10px, 1vw, 12px);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(31, 94, 255, 0.08), transparent 62%),
    radial-gradient(80% 90% at 100% 0%, rgba(15, 138, 116, 0.08), transparent 68%),
    #ffffff;
}

.nala-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nala-queue-header h3 {
  margin: 0;
  font-size: clamp(0.82rem, 0.77rem + 0.22vw, 0.9rem);
  line-height: 1;
}

.nala-queue-updated {
  margin: 0;
  color: #4b5f84;
  font-size: clamp(0.67rem, 0.64rem + 0.12vw, 0.72rem);
  font-weight: 600;
}

.nala-queue-graphic-grid {
  margin-top: 6px;
}

.nala-queue-graphic-panel {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 100%;
}

.nala-queue-stack-shell {
  min-height: clamp(70px, 7.2vw, 84px);
  width: 70%;
  max-width: 70%;
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}

.nala-queue-stack-sheet {
  height: 6px;
  border-radius: 5px;
  border: 1px solid #ccd8ee;
  background: #f7faff;
  transition: background-color 0.28s ease;
}

.nala-queue-stack-sheet.is-filled {
  background: linear-gradient(135deg, rgba(15, 138, 116, 0.88), rgba(31, 94, 255, 0.88));
  border-color: transparent;
}

.nala-queue-graphic-caption {
  margin: 0;
  color: #435675;
  font-size: 0.72rem;
  font-weight: 600;
}

.nala-queue-eta-grid {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.nala-queue-eta-card {
  border: 1px solid #d2deef;
  border-radius: 9px;
  background: #ffffff;
  padding: 7px;
}

.nala-queue-eta-card.is-premium {
  background:
    linear-gradient(135deg, rgba(15, 138, 116, 0.14), rgba(31, 94, 255, 0.17)),
    #ffffff;
  border-color: rgba(31, 94, 255, 0.3);
}

.nala-queue-eta-card.is-free {
  background: #f7faff;
}

.nala-queue-eta-label {
  margin: 0;
  color: #3d5272;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nala-queue-eta-value {
  margin: 3px 0 0;
  font-size: 0.98rem;
  line-height: 1.1;
  font-weight: 800;
  color: #102a52;
}

.nala-queue-premium-cta {
  margin-top: 6px;
  border: 1px dashed #b9cae8;
  border-radius: 9px;
  background: #f5f9ff;
  padding: 6px;
}

.nala-queue-premium-cta .nala-btn {
  width: 100%;
  text-align: center;
  padding: 7px 10px;
  font-size: 0.74rem;
  line-height: 1.2;
}

.nala-queue-warning {
  margin-top: 4px;
  font-size: 0.72rem;
  line-height: 1.25;
}

.nala-site-footer {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid #dfe5f2;
  width: 100%;
}

.nala-site-footer h4 {
  margin: 0 0 6px;
}

.nala-site-footer p {
  margin: 0;
  color: var(--nala-muted);
  font-size: 0.92rem;
}

.nala-site-footer p + p {
  margin-top: 6px;
}

.nala-site-footer a {
  color: #1f5eff;
  text-decoration: none;
}

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

.nala-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.nala-footer-logo {
  width: 34px;
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.nala-footer-brand h4 {
  margin-bottom: 2px;
}

.nala-footer-copyright {
  margin-top: 8px !important;
  font-size: 0.85rem;
}

@media (min-width: 721px) and (max-width: 1024px) {
  .nala-site-header {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
  }

  .nala-site-nav {
    width: min(100%, 680px);
    padding: 0 clamp(6px, 2vw, 14px);
  }
}

@media (max-width: 900px) {
  .nala-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nala-site-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "actions"
      "nav";
    align-items: flex-start;
  }

  .nala-site-actions {
    justify-self: start;
    flex-wrap: wrap;
  }

  .nala-site-nav {
    width: 100%;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }

  .nala-shell {
    padding: 14px;
  }

  .nala-form,
  .nala-card {
    padding: 12px;
    border-radius: 12px;
  }

  #nala-uploader {
    padding: 12px;
    margin: 10px 0;
  }

  .nala-uploader-layout {
    display: block;
  }

  .nala-uploader-tracker-col {
    margin-top: 8px;
  }

  .nala-queue-tracker {
    padding: 8px;
  }

  .nala-queue-stack-shell {
    width: 70%;
    max-width: 70%;
    min-height: 0;
    height: clamp(32px, 10vw, 40px);
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    gap: 2px;
  }

  .nala-queue-stack-sheet {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: 100%;
    border-radius: 3px;
    transform: none;
  }

  .nala-queue-eta-grid {
    gap: 4px;
  }

  .nala-queue-eta-card {
    padding: 6px;
  }

  .nala-queue-premium-cta .nala-btn {
    width: 100%;
    text-align: center;
  }

  .nala-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Homepage sidebar dashboard redesign */
.nala-home-dashboard {
  --nala-sidebar-open-width: 248px;
  --nala-sidebar-collapsed-width: 82px;
  display: grid;
  grid-template-columns: var(--nala-sidebar-open-width) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  position: relative;
  overflow-x: hidden;
}


.nala-sidebar-overlay {
  display: none;
  border: 0;
  background: rgba(10, 20, 40, 0.42);
  padding: 0;
}

.nala-sidebar {
  box-sizing: border-box;
  position: relative;
  align-self: stretch;
  min-height: 100%;
  height: auto;
  max-height: none;
  overflow-x: hidden;
  overflow-y: visible;
  background: #edf1f6;
  border: 1px solid #dde4ef;
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.nala-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nala-sidebar .nala-brand {
  gap: 10px;
  font-size: 1.15rem;
  min-width: 0;
}

.nala-sidebar .nala-brand strong {
  white-space: nowrap;
}

.nala-sidebar .nala-brand-logo {
  width: 38px;
  flex: 0 0 auto;
}

.nala-sidebar-toggle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #d4dceb;
  background: #f7f9fc;
  color: #5a6784;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.nala-sidebar-toggle:hover {
  background: #ffffff;
}

.nala-sidebar-toggle-collapsed {
  display: none;
}

.nala-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
}

.nala-sidebar-group-title {
  margin: 10px 4px 2px;
  color: #6c7996;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.nala-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--nala-text);
  border: 1px solid transparent;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.nala-sidebar-link:hover {
  background: #f8faff;
  border-color: #dde6f7;
}

.nala-sidebar-link.is-active {
  background: linear-gradient(135deg, rgba(15, 138, 116, 0.2), rgba(31, 94, 255, 0.26));
  border-color: rgba(31, 94, 255, 0.38);
  color: #103160;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.nala-sidebar-link-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #f3f5fb;
  border: 1px solid #dde4f2;
  color: #596783;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.nala-sidebar-link-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nala-sidebar-link-icon svg rect,
.nala-sidebar-link-icon svg circle {
  fill: none;
}

.nala-sidebar-link.is-active .nala-sidebar-link-icon {
  background: linear-gradient(135deg, var(--nala-accent), var(--nala-accent-2));
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.nala-sidebar-link-label {
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: normal;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
}

.nala-sidebar-link.is-active .nala-sidebar-link-label {
  font-weight: 700;
}

.nala-sidebar-footer {
  margin-top: auto;
  border-top: 1px solid #dbe2ee;
  padding-top: 12px;
  flex: 0 0 auto;
}

.nala-sidebar-meta {
  margin: 0;
  color: var(--nala-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.nala-sidebar-logout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 8px 10px;
  min-height: 46px;
  border: 0;
  background: transparent;
}

.nala-sidebar-logout:hover {
  border: 0;
  background: #f8faff;
  filter: none;
}

.nala-sidebar-logout .nala-sidebar-link-icon {
  background: rgba(255, 255, 255, 0.9);
}

.nala-main-panel {
  min-width: 0;
}

.nala-main-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 38px;
  margin-bottom: 10px;
}

.nala-mobile-menu-toggle {
  display: none;
  border: 1px solid #cfd9ec;
  border-radius: 12px;
  background: #ffffff;
  color: #1c2f5d;
  width: 44px;
  height: 44px;
  padding: 0;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  font-size: 0;
  line-height: 0;
}

.nala-mobile-menu-toggle::before,
.nala-mobile-menu-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.nala-mobile-menu-toggle::before {
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.nala-mobile-menu-toggle::after {
  opacity: 0;
}

.nala-auth-cta-strip {
  margin-top: 0;
}

.nala-auth-cta-strip-layout {
  display: grid;
  gap: 16px;
  align-items: center;
}

.nala-auth-cta-copy {
  min-width: 0;
}

.nala-auth-cta-strip h2 {
  margin: 0 0 12px;
}

.nala-auth-cta-featured {
  justify-self: start;
}

.nala-auth-cta-featured a,
.nala-auth-cta-featured img {
  display: block;
}

.nala-auth-cta-featured a {
  width: min(100%, 300px);
}

.nala-auth-cta-featured img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 14px;
}

.nala-embedded-page {
  margin-top: 0;
}

.nala-embedded-page-content > :first-child {
  margin-top: 0;
}

.nala-embedded-page-content > :last-child {
  margin-bottom: 0;
}

.nala-legal-card-layout {
  display: grid;
  gap: 14px;
  max-width: min(100%, 980px);
  margin-inline: auto;
}

.nala-legal-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.nala-legal-intro-card .nala-embedded-page-content h1 {
  margin-bottom: 8px;
}

.nala-legal-section-card {
  margin-top: 0;
  position: relative;
  overflow: hidden;
  border-color: #dbe4f4;
  background:
    linear-gradient(90deg, rgba(31, 94, 255, 0.06) 0%, rgba(31, 94, 255, 0.02) 18%, rgba(255, 255, 255, 0.98) 52%),
    #ffffff;
}

.nala-legal-section-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #1f5eff 0%, #0f8a74 100%);
  opacity: 0.75;
}

.nala-legal-section-card:nth-child(3n + 2) {
  background:
    linear-gradient(90deg, rgba(15, 138, 116, 0.06) 0%, rgba(15, 138, 116, 0.02) 18%, rgba(255, 255, 255, 0.98) 52%),
    #ffffff;
}

.nala-legal-section-card:nth-child(3n + 2)::before {
  background: linear-gradient(180deg, #0f8a74 0%, #1f5eff 100%);
}

.nala-legal-section-card:nth-child(3n + 3) {
  background:
    linear-gradient(90deg, rgba(130, 106, 255, 0.06) 0%, rgba(130, 106, 255, 0.02) 18%, rgba(255, 255, 255, 0.98) 52%),
    #ffffff;
}

.nala-legal-section-card:nth-child(3n + 3)::before {
  background: linear-gradient(180deg, #826aff 0%, #1f5eff 100%);
}

.nala-legal-section-card .nala-embedded-page-content {
  padding-left: 10px;
}

.nala-legal-intro-card {
  border-color: #d9e5f8;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(31, 94, 255, 0.08), transparent 60%),
    #ffffff;
}

.nala-legal-section-card .nala-embedded-page-content h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: #1c2f5d;
}

.nala-legal-section-card .nala-embedded-page-content p + p {
  margin-top: 8px;
}

.nala-auth-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nala-video-examples {
  margin-top: 0;
}

.nala-video-examples h2 {
  margin-bottom: 8px;
}

.nala-video-carousel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.nala-video-carousel-arrow {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--nala-accent), var(--nala-accent-2));
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(31, 94, 255, 0.24);
}

.nala-video-carousel-arrow:hover:not(:disabled) {
  filter: brightness(1.06);
}

.nala-video-carousel-arrow:disabled {
  background: #cad6e9;
  color: #6a7897;
  box-shadow: none;
  cursor: default;
}

.nala-video-carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  flex: 1;
}

.nala-video-carousel-track::-webkit-scrollbar {
  height: 8px;
}

.nala-video-carousel-track::-webkit-scrollbar-thumb {
  background: #c9d6ed;
  border-radius: 999px;
}

.nala-video-card {
  flex: 0 0 min(100%, 360px);
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #d8e4f4;
  border-radius: 14px;
  padding: 10px;
}

.nala-video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: #0e1726;
}

.nala-video-placeholder {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #0e1726;
  cursor: pointer;
}

.nala-video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nala-video-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 138, 116, 0.95), rgba(31, 94, 255, 0.95));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(10, 20, 40, 0.45);
  transition: transform 0.2s ease;
}

.nala-video-placeholder:hover .nala-video-play-icon {
  transform: translate(-50%, -50%) scale(1.06);
}

.nala-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.nala-main-panel [id^="nala-"] {
  scroll-margin-top: 12px;
}

.nala-home-dashboard.is-sidebar-collapsed {
  grid-template-columns: var(--nala-sidebar-collapsed-width) minmax(0, 1fr);
}

.nala-home-dashboard.is-sidebar-collapsed .nala-sidebar {
  padding-left: 10px;
  padding-right: 10px;
}

.nala-home-dashboard.is-sidebar-collapsed .nala-sidebar .nala-brand {
  justify-content: center;
}

.nala-home-dashboard.is-sidebar-collapsed .nala-sidebar .nala-brand strong,
.nala-home-dashboard.is-sidebar-collapsed .nala-sidebar-group-title,
.nala-home-dashboard.is-sidebar-collapsed .nala-sidebar-link-label,
.nala-home-dashboard.is-sidebar-collapsed .nala-sidebar-meta {
  display: none;
}

.nala-home-dashboard.is-sidebar-collapsed .nala-sidebar-header {
  flex-direction: column;
  align-items: center;
}

.nala-home-dashboard.is-sidebar-collapsed .nala-sidebar-link,
.nala-home-dashboard.is-sidebar-collapsed .nala-sidebar-logout {
  justify-content: center;
  padding-left: 6px;
  padding-right: 6px;
}

.nala-home-dashboard.is-sidebar-collapsed .nala-sidebar-logout {
  width: auto;
}

.nala-home-dashboard.is-sidebar-collapsed .nala-sidebar-toggle-open {
  display: none;
}

.nala-home-dashboard.is-sidebar-collapsed .nala-sidebar-toggle-collapsed {
  display: inline;
}

@media (max-width: 1024px) {
  .nala-home-dashboard {
    --nala-sidebar-open-width: 240px;
    --nala-sidebar-collapsed-width: 78px;
    grid-template-columns: var(--nala-sidebar-open-width) minmax(0, 1fr);
    gap: 12px;
  }

  .nala-sidebar {
    position: relative;
    width: auto;
    min-height: 100%;
    height: auto;
    max-height: none;
    border-radius: 18px;
    border-left: 1px solid #dde4ef;
    padding-top: 14px;
  }

  .nala-mobile-menu-toggle {
    display: none;
  }
}

@media (max-width: 720px) {
  .nala-video-carousel {
    gap: 6px;
  }

  .nala-video-carousel-arrow {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .nala-video-card {
    flex: 0 0 min(100%, 300px);
  }

  .nala-video-play-icon {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }

  .nala-home-dashboard {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .nala-sidebar {
    position: fixed;
    top: 12px;
    left: 12px;
    bottom: auto;
    width: min(92vw, 340px);
    min-height: 0;
    height: min(50vh, 420px);
    max-height: min(50vh, 420px);
    border-radius: 16px;
    border-left: 1px solid #dde4ef;
    z-index: 40;
    transform: translateX(calc(-100% - 16px));
    transition: transform 0.22s ease;
    padding-top: 8px;
    overflow: hidden;
  }

  .nala-sidebar-header {
    min-height: 28px;
    gap: 6px;
  }

  .nala-sidebar .nala-brand {
    gap: 7px;
  }

  .nala-sidebar .nala-brand-logo {
    width: clamp(20px, 2.8vh, 24px);
  }

  .nala-sidebar .nala-brand strong {
    font-size: clamp(0.62rem, 1.55vh, 0.82rem);
    line-height: 1;
  }

  .nala-sidebar-toggle {
    display: none;
  }

  .nala-sidebar {
    gap: clamp(3px, 0.45vh, 5px);
    padding: clamp(6px, 0.8vh, 8px);
  }

  .nala-sidebar-nav {
    gap: clamp(1px, 0.2vh, 3px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nala-sidebar-group-title {
    margin: clamp(2px, 0.3vh, 4px) 2px 0;
    font-size: clamp(0.44rem, 0.95vh, 0.58rem);
    line-height: 1;
    letter-spacing: 0.06em;
  }

  .nala-sidebar-link,
  .nala-sidebar-logout {
    min-height: clamp(22px, 2.9vh, 28px);
    padding: clamp(2px, 0.25vh, 4px) 7px;
    gap: 7px;
    border-radius: 10px;
  }

  .nala-sidebar-link-label {
    font-size: clamp(0.62rem, 1.55vh, 0.82rem);
    line-height: 1.05;
  }

  .nala-sidebar-link-icon {
    width: clamp(20px, 2.8vh, 24px);
    height: clamp(20px, 2.8vh, 24px);
    border-radius: 8px;
  }

  .nala-sidebar-link-icon svg {
    width: clamp(11px, 1.6vh, 14px);
    height: clamp(11px, 1.6vh, 14px);
  }

  .nala-sidebar-footer {
    padding-top: clamp(3px, 0.35vh, 5px);
  }

  .nala-sidebar-meta {
    display: none;
  }

  .nala-home-dashboard.is-sidebar-open .nala-sidebar {
    transform: translateX(0);
  }

  .nala-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .nala-home-dashboard.is-sidebar-open .nala-sidebar-overlay {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .nala-mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nala-home-dashboard.is-sidebar-collapsed {
    grid-template-columns: minmax(0, 1fr);
  }

  .nala-home-dashboard.is-sidebar-collapsed .nala-sidebar .nala-brand strong,
  .nala-home-dashboard.is-sidebar-collapsed .nala-sidebar-group-title,
  .nala-home-dashboard.is-sidebar-collapsed .nala-sidebar-link-label,
  .nala-home-dashboard.is-sidebar-collapsed .nala-sidebar-meta {
    display: initial;
  }

  .nala-home-dashboard.is-sidebar-collapsed .nala-sidebar-header {
    flex-direction: row;
    align-items: center;
  }

  .nala-home-dashboard.is-sidebar-collapsed .nala-sidebar-link,
  .nala-home-dashboard.is-sidebar-collapsed .nala-sidebar-logout {
    justify-content: flex-start;
    padding-left: 10px;
    padding-right: 10px;
  }

  .nala-home-dashboard.is-sidebar-collapsed .nala-sidebar-logout {
    width: 100%;
  }

  body.admin-bar .nala-sidebar {
    top: 58px;
    bottom: auto;
  }
}

@media (max-width: 720px) {
  .nala-home-dashboard.is-sidebar-open .nala-mobile-menu-toggle::before {
    box-shadow: none;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .nala-home-dashboard.is-sidebar-open .nala-mobile-menu-toggle::after {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .nala-sidebar {
    width: min(92vw, 340px);
  }

  .nala-main-toolbar {
    margin-bottom: 8px;
  }

  .nala-auth-cta-actions .nala-btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nala-sidebar,
  .nala-sidebar-overlay,
  .nala-sidebar-link,
  .nala-video-carousel-track {
    transition: none;
  }

  .nala-video-carousel-track {
    scroll-behavior: auto;
  }
}

