:root {
  --kadim-blue: #095f8f;
  --kadim-cyan: #13b6cf;
  --kadim-gold: #f1a735;
}

body {
  background:
    radial-gradient(circle at top right, rgba(19, 182, 207, 0.12), transparent 30rem),
    var(--body-bg, #f5f7f8);
}

.landing-body {
  min-height: 100vh;
}

.landing-only {
  min-height: 100vh;
}

body:not(.has-auth-sidebar) .sidebar-wrapper {
  display: none;
}

body:not(.has-auth-sidebar) .main-wrapper {
  margin-left: 0;
}

body:not(.has-auth-sidebar) .btn-desktop-toggle,
body:not(.has-auth-sidebar) .sidebar-toggle-btn,
body:not(.has-auth-sidebar) .kadim-admin-key,
body:not(.has-auth-sidebar) .navbar-profile-btn {
  display: none !important;
}

body[data-auth-role="business"] .sidebar-menu-link[data-tab="business"].active {
  background: rgba(180, 241, 5, 0.14);
  color: #fff;
}

.sidebar-brand i {
  color: var(--kadim-gold);
}

.sidebar-menu-link {
  width: 100%;
  border: 0;
  text-align: left;
  min-height: 44px;
}

.sidebar-menu-link.active {
  background: rgba(180, 241, 5, 0.14);
  color: #fff;
}

.content-area {
  padding: 24px;
}

.section-divider {
  margin: 8px 0 16px;
  padding: 16px;
  border: 1px solid rgba(9, 95, 143, 0.12);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(9, 95, 143, 0.08), rgba(19, 182, 207, 0.08));
}

.section-divider h3 {
  margin: 0 0 4px;
  color: #072f1f;
  font-size: 1rem;
  font-weight: 850;
}

.section-divider p {
  margin: 0;
  color: #64776e;
  font-size: 0.9rem;
  font-weight: 600;
}

.public-welcome {
  min-height: calc(100vh - 112px);
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.public-welcome-inner {
  width: min(100%, 560px);
  text-align: center;
}

.public-logo {
  width: min(86vw, 360px);
  height: auto;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(9, 95, 143, 0.18));
}

.public-welcome h1 {
  margin: 22px 0 6px;
  color: #072f1f;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 0;
}

.public-welcome p {
  margin: 0;
  color: #64776e;
  font-size: 1.05rem;
  font-weight: 700;
}

.public-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.public-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid #072f1f;
  border-radius: 12px;
  background: #072f1f;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(7, 47, 31, 0.14);
}

.public-action:hover,
.public-action:focus {
  background: #0d4932;
  color: #fff;
}

.public-action-secondary {
  border-color: rgba(9, 95, 143, 0.24);
  background: #fff;
  color: var(--kadim-blue);
  box-shadow: none;
}

.public-action-secondary:hover,
.public-action-secondary:focus {
  background: #eef9fb;
  color: var(--kadim-blue);
}

.store-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.store-badge {
  min-width: 152px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  text-align: left;
  text-decoration: none;
}

.store-badge:hover {
  color: #fff;
  transform: translateY(-1px);
}

.store-badge i {
  font-size: 1.45rem;
}

.store-badge span {
  display: grid;
  line-height: 1.05;
  font-size: 1rem;
  font-weight: 800;
}

.store-badge small {
  font-size: 0.64rem;
  font-weight: 650;
  opacity: 0.82;
}

.kadim-admin-key {
  max-width: 420px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.hidden {
  display: none !important;
}

.business-auth-shell {
  border-radius: 18px;
  overflow: hidden;
}

.business-auth-shell .login-wrapper {
  min-height: calc(100vh - 112px);
  border-radius: 18px;
}

.login-brand-logo {
  width: min(76vw, 230px);
  height: auto;
  border-radius: 0;
  object-fit: contain;
}

.login-card-wide {
  max-width: 760px;
}

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

.auth-grid-submit {
  grid-column: 1 / -1;
}

.verify-panel {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 22px;
  border: 1px solid rgba(7, 47, 31, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 250, 247, 0.82));
  text-align: center;
}

.verify-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--brand-forest-medium, #072f1f);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 14px 30px rgba(7, 47, 31, 0.18);
}

.verify-title {
  margin: 0;
  color: var(--brand-forest-deep, #032017);
  font-size: 1.35rem;
  font-weight: 800;
}

.verify-copy {
  margin: 0;
  max-width: 460px;
  color: #647067;
}

.verify-hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0.01;
  pointer-events: none;
}

.sms-code-boxes {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.sms-code-boxes span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 56px;
  border: 1.5px solid rgba(7, 47, 31, 0.16);
  border-radius: 14px;
  background: #fff;
  color: var(--brand-forest-deep, #032017);
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(7, 47, 31, 0.08);
  cursor: text;
}

.sms-code-boxes span.active {
  border-color: var(--brand-lime-hover, #9fd800);
  box-shadow: 0 0 0 4px rgba(159, 216, 0, 0.16);
}

.link-button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-forest-medium, #072f1f);
  font: inherit;
  font-weight: 800;
}

.link-button:hover {
  color: var(--brand-lime-hover, #9fd800);
  text-decoration: underline;
}

.business-dashboard {
  animation: fadeUp 0.24s ease both;
}

.owner-data-list {
  display: grid;
  gap: 10px;
}

.owner-data-list span {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 12px;
  border: 1px solid #e7efed;
  border-radius: 12px;
  background: #fbfdfd;
  color: #6c7e75;
  font-size: 0.82rem;
  font-weight: 750;
}

.owner-data-list strong {
  color: #072f1f;
  font-size: 1rem;
}

.turbo-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(241, 167, 53, 0.28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(241, 167, 53, 0.16), rgba(19, 182, 207, 0.08));
}

.turbo-status-card strong {
  display: block;
  color: #072f1f;
  font-weight: 900;
}

.turbo-status-card span {
  display: block;
  margin-top: 3px;
  color: #64776e;
  font-size: 0.88rem;
  font-weight: 700;
}

.turbo-status-card i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 14px;
  background: #fff;
  color: var(--kadim-gold);
  font-size: 1.4rem;
}

.form-label {
  width: 100%;
  color: #21312b;
  font-size: 0.85rem;
  font-weight: 700;
}

.form-control,
.form-select {
  margin-top: 0.35rem;
}

.page-subtitle {
  margin: 0.35rem 0 0;
  color: #6c7e75;
}

.stat-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.entity-list {
  display: grid;
  gap: 14px;
}

.business-card {
  border: 1px solid #e8eeee;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.business-card:hover {
  border-color: rgba(9, 95, 143, 0.25);
  box-shadow: 0 16px 36px rgba(7, 47, 31, 0.08);
  transform: translateY(-1px);
}

.business-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.business-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 12px;
  object-fit: cover;
  background: #e9f6f8;
  color: var(--kadim-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(19, 182, 207, 0.12);
  color: #075673;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.tag-passive {
  background: rgba(108, 126, 117, 0.14);
  color: #59655f;
}

.tag-pending {
  background: #fff8e8;
  color: #a76a00;
}

.muted {
  color: #6c7e75;
  font-size: 0.9rem;
}

.menu-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.menu-tools a,
.menu-tools button,
.business-card button[data-approve] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dbe5e4;
  border-radius: 10px;
  background: #fff;
  color: #072f1f;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.menu-tools a:hover,
.menu-tools button:hover,
.business-card button[data-approve]:hover {
  border-color: var(--kadim-cyan);
  color: var(--kadim-blue);
}

.menu-tools button.danger {
  border-color: rgba(190, 18, 60, 0.22);
  background: rgba(190, 18, 60, 0.08);
  color: #be123c;
}

.menu-tools button.danger:hover {
  border-color: #be123c;
  color: #9f1239;
}

.super-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.super-stat-card {
  display: flex;
  gap: 12px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid #e3ecea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(7, 47, 31, 0.05);
}

.super-stat-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(9, 95, 143, 0.1);
  color: var(--kadim-blue);
  font-size: 1.2rem;
}

.super-stat-card p,
.super-stat-card small {
  margin: 0;
}

.super-stat-card p {
  color: #63756f;
  font-size: 0.82rem;
  font-weight: 800;
}

.super-stat-card strong {
  display: block;
  margin: 2px 0;
  color: #072f1f;
  font-size: 1.9rem;
  line-height: 1;
}

.super-stat-card small {
  color: #768780;
  font-size: 0.78rem;
  font-weight: 700;
}

.super-stat-warning .super-stat-icon {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

@media (max-width: 1199.98px) {
  .super-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.business-card button[data-approve] {
  background: #072f1f;
  color: #fff;
  border-color: #072f1f;
}

.ad-thumb {
  width: 68px;
  height: 46px;
  flex: 0 0 68px;
  border-radius: 12px;
  object-fit: cover;
  background: #f0f5f4;
  color: var(--kadim-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.business-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.business-gallery a {
  display: block;
  width: 74px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e3ecea;
}

.business-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-preview {
  min-height: 52px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px dashed #cbdad7;
  border-radius: 12px;
  background: #f8fbfb;
}

.upload-preview img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e3ecea;
}

.upload-preview-gallery img {
  width: 76px;
  height: 58px;
}

.menu-builder {
  display: grid;
  gap: 16px;
}

.menu-guide-card {
  border: 1px solid rgba(9, 95, 143, 0.12);
  background: linear-gradient(135deg, rgba(9, 95, 143, 0.08), rgba(19, 182, 207, 0.08));
}

.menu-guide-steps {
  display: grid;
  gap: 8px;
}

.menu-guide-steps span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: #21312b;
  font-size: 0.86rem;
  font-weight: 800;
}

.menu-guide-steps i {
  color: var(--kadim-blue);
}

.menu-category-builder {
  display: grid;
  gap: 16px;
}

.menu-category-card {
  padding: 16px;
  border: 1px solid #e3ecea;
  border-radius: 14px;
  background: #fbfdfd;
}

.menu-card-kicker,
.menu-product-number {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(9, 95, 143, 0.1);
  color: var(--kadim-blue);
  font-size: 0.72rem;
  font-weight: 900;
}

.menu-category-card > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.menu-products {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.menu-product-card {
  position: relative;
  padding: 14px 44px 14px 14px;
  border: 1px solid #edf3f1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(7, 47, 31, 0.04);
}

.menu-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(120px, 0.45fr);
  gap: 10px;
}

.menu-product-description,
.menu-product-image-box {
  grid-column: 1 / -1;
}

.menu-product-image-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.menu-image-preview {
  width: 76px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px dashed #cbdad7;
  border-radius: 10px;
  background: #f8fbfb;
  color: #71827b;
  font-size: 0.75rem;
  font-weight: 700;
  overflow: hidden;
}

.menu-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-product-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #fff2f2;
  color: #c62828;
}

.menu-builder-actions {
  display: flex;
  justify-content: flex-end;
}

.super-menu-builder {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e3ecea;
  border-radius: 14px;
  background: #fbfdfd;
}

.menu-qr-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid rgba(9, 95, 143, 0.14);
  border-radius: 12px;
  background: rgba(9, 95, 143, 0.06);
}

.menu-qr-preview strong,
.menu-qr-preview span {
  display: block;
}

@media (max-width: 767.98px) {
  .super-stats-grid {
    grid-template-columns: 1fr;
  }

  .menu-category-card > header,
  .menu-product-grid,
  .menu-product-image-box {
    grid-template-columns: 1fr;
  }

  .menu-product-image-box {
    align-items: stretch;
  }

  .menu-image-preview {
    width: 100%;
    height: 150px;
  }

  .menu-builder-actions .btn {
    width: 100%;
  }
}

.menu-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(19, 182, 207, 0.18), transparent 26rem),
    linear-gradient(180deg, #eef8f9 0%, #f8fbfb 48%, #ffffff 100%);
  color: #072f1f;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.menu-page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 22px 16px 36px;
}

.menu-hero {
  padding: 24px 0 18px;
  text-align: center;
}

.menu-hero img {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(9, 95, 143, 0.16);
}

.menu-hero p {
  margin: 12px 0 4px;
  color: #64776e;
  font-weight: 800;
}

.menu-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 8vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0;
}

.menu-hero h2 {
  margin: 8px 0 0;
  color: var(--kadim-blue);
  font-size: 1.05rem;
  font-weight: 850;
}

.menu-category-section {
  margin-top: 18px;
}

.menu-category-section h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 900;
}

.menu-list {
  display: grid;
  gap: 10px;
}

.menu-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5efec;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(18, 60, 52, 0.06);
}

.menu-item img {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
  background: #eef4f3;
}

.menu-item strong {
  display: block;
  color: #072f1f;
  font-weight: 900;
}

.menu-item p {
  margin: 4px 0 0;
  color: #63756e;
  font-size: 0.92rem;
}

.menu-item span {
  color: var(--kadim-blue);
  font-weight: 900;
  white-space: nowrap;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.metric-strip span {
  min-height: 48px;
  padding: 10px;
  border-radius: 10px;
  background: #f5f8f7;
  color: #53645d;
  font-size: 0.78rem;
  font-weight: 700;
}

.metric-strip strong {
  display: block;
  color: #072f1f;
  font-size: 1rem;
}

.review-details {
  margin-top: 14px;
}

.review-details summary {
  cursor: pointer;
  color: var(--kadim-blue);
  font-weight: 800;
}

.review-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.review-card {
  padding: 12px;
  border: 1px solid #e7efed;
  border-radius: 12px;
  background: #fbfdfd;
}

.review-card header {
  margin-bottom: 8px;
}

.reply-box {
  margin: 10px 0;
  padding: 10px;
  border-left: 3px solid var(--kadim-cyan);
  border-radius: 8px;
  background: #eef9fb;
}

.reply-box p {
  margin: 4px 0 0;
}

.reply-form {
  display: grid;
  gap: 8px;
}

.reply-form button {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #072f1f;
  border-radius: 10px;
  background: #072f1f;
  color: #fff;
  font-weight: 800;
}

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

  .sms-code-boxes {
    gap: 6px;
  }

  .sms-code-boxes span {
    width: 40px;
    height: 50px;
  }

  .business-auth-shell .login-wrapper {
    min-height: calc(100vh - 92px);
    padding: 18px 0;
  }

  .public-welcome {
    min-height: calc(100vh - 92px);
    padding: 24px 0;
  }

  .public-actions,
  .store-badges {
    align-items: stretch;
    flex-direction: column;
  }

  .public-action,
  .store-badge {
    width: 100%;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .menu-category-card > header,
  .menu-product-grid,
  .menu-product-image-box {
    grid-template-columns: 1fr;
  }

  .menu-builder-actions {
    justify-content: stretch;
  }

  .menu-builder-actions .btn {
    width: 100%;
  }

  .menu-image-preview {
    width: 100%;
    height: 130px;
  }

  .menu-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .menu-item span {
    grid-column: 2;
  }
}

@media (max-width: 767.98px) {
  .content-area {
    padding: 16px;
  }

  .kadim-admin-key {
    display: none;
  }

  .business-card header {
    align-items: stretch;
    flex-direction: column;
  }
}
