:root {
  --yeva-bg: #f7faf8;
  --yeva-surface: #ffffff;
  --yeva-surface-soft: #f1f7f3;
  --yeva-primary: #18c56e;
  --yeva-primary-dark: #0ea85a;
  --yeva-primary-soft: #e7f9ef;
  --yeva-coral: #ff725e;
  --yeva-coral-soft: #fff0ed;
  --yeva-orange: #ffb347;
  --yeva-orange-soft: #fff7e9;
  --yeva-purple: #7657ff;
  --yeva-blue: #4d8dff;
  --yeva-blue-soft: #eef5ff;
  --yeva-text: #111827;
  --yeva-muted: #6b7280;
  --yeva-border: #e7ece8;
  --yeva-shadow: 0 18px 45px rgba(17, 24, 39, 0.07);
  --yeva-shadow-soft: 0 10px 25px rgba(17, 24, 39, 0.045);
  --yeva-radius-lg: 28px;
  --yeva-radius-md: 20px;
  --yeva-radius-sm: 14px;
  --yeva-sidebar: 280px;
  --yeva-topbar: 82px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background:
    radial-gradient(
      circle at top left,
      rgba(24, 197, 110, 0.1),
      transparent 32%
    ),
    radial-gradient(
      circle at top right,
      rgba(255, 114, 94, 0.09),
      transparent 30%
    ),
    var(--yeva-bg);
  color: var(--yeva-text);
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

.app {
  display: grid;
  grid-template-columns: var(--yeva-sidebar) 1fr;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(231, 236, 232, 0.9);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 40;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--yeva-primary),
    #35dd91 52%,
    var(--yeva-coral)
  );
  box-shadow: 0 15px 28px rgba(24, 197, 110, 0.28);
  font-weight: 900;
  letter-spacing: -1px;
}

.brand-copy strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.05em;
}

.brand-copy span {
  font-size: 12px;
  color: var(--yeva-muted);
  font-weight: 700;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  padding: 0 12px;
  margin-bottom: 8px;
}

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

.nav-item {
  border: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  font-weight: 750;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
  text-align: left;
}

.nav-item i {
  width: 20px;
  font-size: 15px;
  text-align: center;
}

.nav-item:hover {
  background: #f3f7f4;
  color: var(--yeva-text);
  transform: translateX(3px);
}

.nav-item.active {
  background: var(--yeva-primary-soft);
  color: #067a40;
  box-shadow: inset 0 0 0 1px rgba(24, 197, 110, 0.13);
}

.sidebar-card {
  margin-top: auto;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(160deg, #111827, #18251f 56%, #0f5d3a);
  color: #fff;
  box-shadow: var(--yeva-shadow);
  overflow: hidden;
  position: relative;
}

.sidebar-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  right: -50px;
  top: -45px;
  background: rgba(24, 197, 110, 0.35);
  filter: blur(2px);
}

.sidebar-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  position: relative;
  z-index: 1;
}

.sidebar-card p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.upgrade-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  color: #111827;
  font-weight: 850;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

/* MAIN */
.main {
  min-width: 0;
}

.topbar {
  height: var(--yeva-topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 34px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 250, 248, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(231, 236, 232, 0.72);
}

.mobile-menu {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--yeva-shadow-soft);
  cursor: pointer;
}

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

.business-logo {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #111827;
  color: #fff;
  box-shadow: var(--yeva-shadow-soft);
}

.business-copy {
  min-width: 0;
}

.business-copy span {
  display: block;
  font-size: 12px;
  color: var(--yeva-muted);
  font-weight: 700;
}

.business-copy h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill,
.plan-pill,
.ghost-btn,
.primary-btn {
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.status-pill {
  background: var(--yeva-primary-soft);
  color: #087642;
}

.status-pill .dot {
  width: 8px;
  height: 8px;
  background: var(--yeva-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(24, 197, 110, 0.13);
}

.plan-pill {
  background: #fff7e9;
  color: #a15b00;
  border: 1px solid rgba(255, 179, 71, 0.24);
}

.ghost-btn {
  border: 1px solid var(--yeva-border);
  background: var(--yeva-surface);
  color: var(--yeva-text);
  cursor: pointer;
  box-shadow: var(--yeva-shadow-soft);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.ghost-btn:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.09);
}

.primary-btn {
  border: 0;
  background: var(--yeva-primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(24, 197, 110, 0.23);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.primary-btn:active,
.ghost-btn:active,
.nav-item:active {
  transform: scale(0.98);
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yeva-coral), var(--yeva-purple));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: var(--yeva-shadow-soft);
}

.content {
  padding: 32px 34px 50px;
  max-width: 1480px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 22px;
  margin-bottom: 22px;
}

.welcome-card {
  border-radius: var(--yeva-radius-lg);
  padding: 30px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.8)
    ),
    radial-gradient(
      circle at 84% 10%,
      rgba(24, 197, 110, 0.22),
      transparent 25%
    ),
    radial-gradient(
      circle at 92% 90%,
      rgba(255, 114, 94, 0.18),
      transparent 30%
    );
  box-shadow: var(--yeva-shadow);
  border: 1px solid rgba(255, 255, 255, 0.75);
  position: relative;
  overflow: hidden;
}

.welcome-card h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  max-width: 680px;
}

.welcome-card p {
  margin: 0;
  max-width: 650px;
  color: var(--yeva-muted);
  line-height: 1.7;
  font-size: 15px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.live-card {
  border-radius: var(--yeva-radius-lg);
  padding: 24px;
  background: #101827;
  color: #fff;
  box-shadow: var(--yeva-shadow);
  position: relative;
  overflow: hidden;
}

.live-card::before {
  content: "";
  position: absolute;
  inset: auto -45px -60px auto;
  width: 180px;
  height: 180px;
  background: rgba(24, 197, 110, 0.42);
  border-radius: 999px;
  filter: blur(4px);
}

.live-card span {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.live-card h3 {
  margin: 14px 0 8px;
  font-size: 34px;
  letter-spacing: -0.06em;
}

.live-card p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
  font-size: 13px;
  font-weight: 650;
}

.pulse-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #bdfedb;
  font-weight: 850;
  font-size: 13px;
}

.pulse {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--yeva-primary);
  box-shadow: 0 0 0 rgba(24, 197, 110, 0.55);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(24, 197, 110, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(24, 197, 110, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(24, 197, 110, 0);
  }
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.kpi-card,
.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(231, 236, 232, 0.88);
  box-shadow: var(--yeva-shadow-soft);
  border-radius: var(--yeva-radius-md);
}

.kpi-card {
  padding: 20px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--yeva-shadow);
}

.kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 17px;
}

.kpi-icon.green {
  background: var(--yeva-primary-soft);
  color: #087642;
}
.kpi-icon.coral {
  background: var(--yeva-coral-soft);
  color: #cf3f2e;
}
.kpi-icon.orange {
  background: #fff7e9;
  color: #bf7200;
}
.kpi-icon.blue {
  background: #eef5ff;
  color: #246bdb;
}

.trend {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f1f8f3;
  color: #087642;
  font-size: 12px;
  font-weight: 850;
}

.kpi-label {
  color: var(--yeva-muted);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.kpi-sub {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  margin-top: 5px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.panel {
  padding: 22px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-header h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.04em;
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--yeva-muted);
  font-size: 13px;
  font-weight: 650;
}

.mini-link {
  border: 0;
  background: var(--yeva-surface-soft);
  color: #0d7c43;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.mini-link:hover {
  transform: translateY(-2px);
  background: var(--yeva-primary-soft);
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #fafdfb;
  border: 1px solid #edf2ee;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.order-row:hover {
  transform: translateX(3px);
  background: #fff;
}

.order-avatar {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #111827;
  color: #fff;
  font-weight: 900;
}

.order-info strong {
  display: block;
  font-size: 14px;
}

.order-info span {
  display: block;
  margin-top: 3px;
  color: var(--yeva-muted);
  font-size: 12px;
  font-weight: 650;
}

.order-meta {
  text-align: right;
}

.order-meta strong {
  display: block;
  font-size: 14px;
}

.badge {
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

.badge.new {
  background: var(--yeva-primary-soft);
  color: #087642;
}
.badge.prep {
  background: #fff7e9;
  color: #a15b00;
}
.badge.sent {
  background: #eef5ff;
  color: #246bdb;
}

.plan-box {
  border-radius: 22px;
  background: linear-gradient(135deg, #f6fff9, #ffffff);
  border: 1px solid #e4f3e9;
  padding: 18px;
  margin-bottom: 16px;
}

.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.plan-top strong {
  font-size: 15px;
}

.progress {
  height: 12px;
  background: #e8f1ec;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--yeva-primary), #75e7ad);
  border-radius: 999px;
  animation: loadbar 0.9s ease both;
}

@keyframes loadbar {
  from {
    width: 0;
  }
  to {
    width: 68%;
  }
}

.plan-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.plan-stat {
  padding: 12px;
  background: #fff;
  border: 1px solid #edf2ee;
  border-radius: 16px;
}

.plan-stat span {
  display: block;
  color: var(--yeva-muted);
  font-size: 11px;
  font-weight: 800;
}

.plan-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.insight-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.insight {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #fbfcfb;
  border: 1px solid #edf2ee;
}

.insight i {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.insight.green i {
  background: var(--yeva-primary-soft);
  color: #087642;
}
.insight.coral i {
  background: var(--yeva-coral-soft);
  color: #cf3f2e;
}
.insight.blue i {
  background: #eef5ff;
  color: #246bdb;
}

.insight strong {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
}

.insight span {
  color: var(--yeva-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

/* MÓDULOS SIMULADOS */
.module-screen {
  display: none;
  animation: fadeUp 0.22s ease both;
}

.module-screen.active {
  display: block;
}

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

.module-hero {
  background: #fff;
  border: 1px solid var(--yeva-border);
  border-radius: var(--yeva-radius-lg);
  box-shadow: var(--yeva-shadow-soft);
  padding: 28px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.module-hero h1 {
  margin: 0 0 8px;
  letter-spacing: -0.06em;
  font-size: 34px;
}

.module-hero p {
  margin: 0;
  color: var(--yeva-muted);
  font-weight: 650;
  line-height: 1.6;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mock-card {
  background: #fff;
  border: 1px solid var(--yeva-border);
  border-radius: var(--yeva-radius-md);
  padding: 22px;
  box-shadow: var(--yeva-shadow-soft);
  min-height: 170px;
}

.mock-card i {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--yeva-primary-soft);
  color: #087642;
  margin-bottom: 16px;
}

.mock-card h3 {
  margin: 0 0 8px;
  letter-spacing: -0.04em;
}

.mock-card p {
  margin: 0;
  color: var(--yeva-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.mobile-backdrop {
  display: none;
}

@media (max-width: 1180px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .mock-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    width: 290px;
    box-shadow: var(--yeva-shadow);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.32);
    z-index: 35;
  }

  .mobile-backdrop.show {
    display: block;
  }

  .mobile-menu {
    display: grid;
    place-items: center;
  }

  .topbar {
    padding: 14px 18px;
    height: auto;
  }

  .business-logo,
  .plan-pill,
  .status-pill {
    display: none;
  }

  .content {
    padding: 22px 18px 36px;
  }
  .welcome-card {
    padding: 24px;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .mock-grid {
    grid-template-columns: 1fr;
  }
  .module-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .ghost-btn span,
  .primary-btn span {
    display: none;
  }

  .ghost-btn,
  .primary-btn {
    width: 42px;
    padding: 0;
  }

  .avatar {
    width: 38px;
    height: 38px;
  }
  .top-actions {
    gap: 7px;
  }
  .business-copy h2 {
    font-size: 15px;
    max-width: 150px;
  }
  .hero-actions .primary-btn,
  .hero-actions .ghost-btn {
    width: auto;
    padding: 0 15px;
  }
  .hero-actions .primary-btn span,
  .hero-actions .ghost-btn span {
    display: inline;
  }
  .plan-stats {
    grid-template-columns: 1fr;
  }
  .order-row {
    grid-template-columns: auto 1fr;
  }
  .order-meta {
    grid-column: 1 / -1;
    text-align: left;
    padding-left: 58px;
  }
}

.nav-item,
.nav-item:link,
.nav-item:visited,
.nav-item:hover,
.nav-item:active {
  text-decoration: none;
}

.nav-item {
  color: #475569;
}

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

.yeva-search {
  min-height: 48px;
  flex: 1;
  background: #fff;
  border: 1px solid var(--yeva-border);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  box-shadow: var(--yeva-shadow-soft);
}

.yeva-search i {
  color: var(--yeva-muted);
}

.yeva-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--yeva-text);
  font-weight: 700;
}

.yeva-search input::placeholder {
  color: #9ca3af;
}

.yeva-filters {
  display: flex;
  gap: 10px;
}

.yeva-table-card {
  background: #fff;
  border: 1px solid var(--yeva-border);
  border-radius: var(--yeva-radius-lg);
  box-shadow: var(--yeva-shadow-soft);
  overflow: hidden;
}

.yeva-table {
  width: 100%;
  border-collapse: collapse;
}

.yeva-table thead {
  background: #f8fbf9;
}

.yeva-table th {
  padding: 16px 18px;
  text-align: left;
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 900;
  border-bottom: 1px solid var(--yeva-border);
}

.yeva-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #edf2ee;
  color: #475569;
  font-size: 13px;
  font-weight: 750;
}

.yeva-table tbody tr {
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.yeva-table tbody tr:hover {
  background: #fbfefc;
}

.yeva-table td strong {
  display: block;
  color: var(--yeva-text);
  font-size: 14px;
  margin-bottom: 3px;
}

.yeva-table td span {
  font-size: 12px;
}

.table-action {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: #f3f7f4;
  color: #475569;
  cursor: pointer;
}

.table-action:hover {
  background: var(--yeva-primary-soft);
  color: #087642;
}

@media (max-width: 980px) {
  .yeva-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .yeva-filters {
    width: 100%;
  }

  .yeva-filters .ghost-btn {
    flex: 1;
  }

  .yeva-table-card {
    overflow-x: auto;
  }

  .yeva-table {
    min-width: 900px;
  }
}

.store-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 420px;
  gap: 22px;
  align-items: start;
}

.store-main,
.store-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.yeva-form-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--yeva-border);
  border-radius: var(--yeva-radius-lg);
  box-shadow: var(--yeva-shadow-soft);
  padding: 24px;
}

.form-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.form-card-header h3 {
  margin: 0 0 5px;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.form-card-header p {
  margin: 0;
  color: var(--yeva-muted);
  font-size: 13px;
  font-weight: 650;
}

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

.yeva-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yeva-field.full {
  grid-column: 1 / -1;
}

.yeva-field label {
  font-size: 12px;
  color: #64748b;
  font-weight: 900;
}

.yeva-field input,
.yeva-field textarea {
  width: 100%;
  border: 1px solid var(--yeva-border);
  background: #fbfefc;
  border-radius: 16px;
  padding: 13px 15px;
  outline: none;
  color: var(--yeva-text);
  font-weight: 700;
  transition:
    border 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.yeva-field textarea {
  resize: vertical;
}

.yeva-field input:focus,
.yeva-field textarea:focus {
  border-color: rgba(24, 197, 110, 0.55);
  box-shadow: 0 0 0 5px rgba(24, 197, 110, 0.1);
  background: #fff;
}

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

.yeva-toggle-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--yeva-border);
  border-radius: 20px;
  background: #fbfefc;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border 0.18s ease;
}

.yeva-toggle-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--yeva-shadow-soft);
}

.yeva-toggle-card input {
  display: none;
}

.yeva-toggle-card > span {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #dbe4df;
  position: relative;
  transition: background 0.18s ease;
  margin-top: 2px;
}

.yeva-toggle-card > span::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 3px;
  left: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.15);
  transition: transform 0.18s ease;
}

.yeva-toggle-card input:checked + span {
  background: var(--yeva-primary);
}

.yeva-toggle-card input:checked + span::after {
  transform: translateX(16px);
}

.yeva-toggle-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.yeva-toggle-card small {
  color: var(--yeva-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.store-preview {
  text-align: center;
}

.preview-cover {
  height: 120px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(24, 197, 110, 0.88), rgba(255, 114, 94, 0.72)),
    radial-gradient(circle at top right, #fff, transparent 30%);
  margin-bottom: -36px;
}

.preview-logo {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  background: #111827;
  color: #fff;
  font-size: 24px;
  box-shadow: var(--yeva-shadow);
  border: 4px solid #fff;
  position: relative;
}

.store-preview h4 {
  margin: 0 0 6px;
  font-size: 21px;
  letter-spacing: -0.04em;
}

.store-preview p {
  margin: 0 auto 14px;
  color: var(--yeva-muted);
  font-size: 13px;
  font-weight: 650;
  max-width: 260px;
  line-height: 1.5;
}

.preview-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.preview-tags span {
  background: var(--yeva-primary-soft);
  color: #087642;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.schedule-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 15px;
  background: #fbfefc;
  border: 1px solid #edf2ee;
}

.schedule-list span {
  color: var(--yeva-muted);
  font-size: 12px;
  font-weight: 800;
}

.schedule-list strong {
  font-size: 12px;
}

.full-btn {
  width: 100%;
}

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

  .store-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .yeva-form-grid,
  .toggle-grid,
  .store-side {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   YEVA MENU ADMIN
============================== */

.menu-admin-header {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.82)
    ),
    radial-gradient(
      circle at 92% 15%,
      rgba(24, 197, 110, 0.18),
      transparent 24%
    ),
    radial-gradient(
      circle at 82% 90%,
      rgba(255, 114, 94, 0.14),
      transparent 28%
    );
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 30px;
  box-shadow: var(--yeva-shadow);
  padding: 30px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 22px;
  overflow: hidden;
}

.menu-admin-title small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #087642;
  background: var(--yeva-primary-soft);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 16px;
}

.menu-admin-title h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.menu-admin-title p {
  margin: 0;
  color: var(--yeva-muted);
  max-width: 690px;
  line-height: 1.7;
  font-size: 15px;
  font-weight: 650;
}

.menu-admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  height: 44px;
  border-radius: 999px;
  padding: 0 16px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--yeva-primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(24, 197, 110, 0.23);
}

.btn-ghost {
  background: #fff;
  color: var(--yeva-text);
  border: 1px solid var(--yeva-border);
  box-shadow: var(--yeva-shadow-soft);
}

.menu-toolbar {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(231, 236, 232, 0.88);
  border-radius: 24px;
  box-shadow: var(--yeva-shadow-soft);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  margin-bottom: 22px;
  align-items: center;
}

.menu-search-box {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fbf9;
  border: 1px solid var(--yeva-border);
  border-radius: 999px;
  padding: 0 16px;
}

.menu-search-box:focus-within {
  border-color: rgba(24, 197, 110, 0.55);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(24, 197, 110, 0.1);
}

.menu-search-box i {
  color: #94a3b8;
}

.menu-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--yeva-text);
  font-weight: 700;
}

.menu-filter-select {
  height: 48px;
  min-width: 170px;
  border-radius: 999px;
  border: 1px solid var(--yeva-border);
  background: #fff;
  color: var(--yeva-text);
  padding: 0 14px;
  outline: 0;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.035);
}

.menu-filter-select:focus-within {
  border-color: rgba(24, 197, 110, 0.55);
  box-shadow: 0 0 0 5px rgba(24, 197, 110, 0.1);
}

.menu-admin-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: start;
}

.menu-type-panel,
.menu-dish-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(231, 236, 232, 0.88);
  border-radius: 24px;
  box-shadow: var(--yeva-shadow-soft);
}

.menu-type-panel {
  padding: 18px;
  position: sticky;
  top: calc(var(--yeva-topbar) + 20px);
}

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

.menu-panel-head {
  margin-bottom: 14px;
}

.menu-panel-head h3,
.menu-dish-panel-head h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.menu-dish-panel {
  padding: 18px;
  min-width: auto;
}

.menu-dish-panel-head {
  padding: 4px 4px 16px;
  border-bottom: 1px solid var(--yeva-border);
  margin-bottom: 14px;
}

.menu-dish-panel-head p {
  margin: 4px 0 0;
  color: var(--yeva-muted);
  font-size: 13px;
  font-weight: 650;
}

.menu-mini-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 0;
  background: var(--yeva-primary-soft);
  color: #087642;
  cursor: pointer;
}

.menu-type-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-type-item {
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 18px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border 0.18s ease;
  text-align: left;
}

.menu-type-item:hover {
  transform: translateX(3px);
  background: #f8fbf9;
}

.menu-type-item.active {
  background: var(--yeva-primary-soft);
  border-color: rgba(24, 197, 110, 0.17);
}

.menu-type-dot {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #087642;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
}

.menu-type-name strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: var(--yeva-text);
}

.menu-type-name span {
  display: block;
  color: var(--yeva-muted);
  font-size: 11px;
  font-weight: 750;
  margin-top: 2px;
}

.menu-type-count {
  font-size: 12px;
  font-weight: 900;
  color: #64748b;
  background: #fff;
  padding: 5px 8px;
  border-radius: 999px;
}

.menu-sync-box {
  margin-top: 16px;
  border-radius: 22px;
  background: linear-gradient(150deg, #111827, #17251f 58%, #0f5d3a);
  color: #fff;
  padding: 18px;
}

.menu-sync-box strong {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
}

.menu-sync-box span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 650;
}

.menu-view-toggle {
  display: inline-flex;
  background: #f5f8f6;
  border: 1px solid var(--yeva-border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.menu-view-toggle button {
  border: 0;
  background: transparent;
  width: 36px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  color: #64748b;
}

.menu-view-toggle button.active {
  background: #fff;
  color: #087642;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.06);
}

.menu-dish-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-dish-row {
  display: grid;
  grid-template-columns: auto minmax(230px, 1.2fr) 120px 130px 130px 150px auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid #edf2ee;
  background: #fbfdfc;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.menu-dish-row:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: var(--yeva-shadow-soft);
}

.menu-drag-handle {
  width: 32px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #a1aab6;
  background: #f4f7f5;
  cursor: grab;
}

.menu-dish-main {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.menu-dish-img {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  overflow: hidden;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #e8f4ec, #ffffff);
  display: grid;
  place-items: center;
  color: #087642;
  font-weight: 900;
}

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

.menu-dish-copy {
  min-width: 0;
}

.menu-dish-copy strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 4px;
}

.menu-dish-copy span {
  display: block;
  color: var(--yeva-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 650;
}

.menu-source-pill,
.menu-status-badge,
.menu-issue-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.menu-source-pill.lara {
  color: #4b35c9;
  background: var(--yeva-purple-soft);
}

.menu-source-pill.manual {
  color: #475569;
  background: #f1f5f9;
}

.menu-status-badge.available {
  background: var(--yeva-primary-soft);
  color: #087642;
}

.menu-status-badge.paused {
  background: #f1f5f9;
  color: #64748b;
}

.menu-price-input {
  width: 100%;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--yeva-border);
  background: #fff;
  padding: 0 13px;
  outline: 0;
  font-weight: 900;
  color: var(--yeva-text);
}

.menu-issue-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.menu-issue-badge.ok {
  background: var(--yeva-primary-soft);
  color: #087642;
}

.menu-issue-badge.warn {
  background: var(--yeva-orange-soft);
  color: #a15b00;
}

.menu-issue-badge.danger {
  background: var(--yeva-coral-soft);
  color: #cf3f2e;
}

.menu-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.menu-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid var(--yeva-border);
  background: #fff;
  color: #64748b;
  cursor: pointer;
}

.menu-icon-btn:hover {
  color: #087642;
  background: var(--yeva-primary-soft);
}

.menu-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}

.menu-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.menu-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #dbe3df;
  transition: 0.2s;
  border-radius: 999px;
}

.menu-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.16);
}

.menu-switch input:checked + .menu-slider {
  background: var(--yeva-primary);
}

.menu-switch input:checked + .menu-slider:before {
  transform: translateX(20px);
}

@media (max-width: 1240px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-admin-layout {
    grid-template-columns: 1fr;
  }

  .menu-type-panel {
    position: static;
  }

  .menu-type-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-sync-box {
    display: none;
  }

  .menu-dish-row {
    grid-template-columns: auto minmax(220px, 1fr) 110px 120px 130px auto;
  }

  .menu-source-pill {
    display: none;
  }
}

@media (max-width: 920px) {
  .menu-admin-header {
    flex-direction: column;
  }

  .menu-admin-actions {
    justify-content: flex-start;
  }

  .menu-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .menu-search-box {
    grid-column: 1 / -1;
  }

  .menu-dish-row {
    grid-template-columns: auto 1fr auto;
    align-items: start;
  }

  .menu-dish-row > .menu-status-badge,
  .menu-dish-row > .menu-price-input,
  .menu-dish-row > .menu-issue-wrap,
  .menu-dish-row > .menu-row-actions {
    grid-column: 2 / -1;
  }

  .menu-drag-handle {
    grid-row: span 5;
    height: 100%;
  }

  .menu-row-actions {
    justify-content: flex-start;
  }
}

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

  .menu-toolbar {
    grid-template-columns: 1fr;
  }

  .menu-filter-select {
    width: 100%;
  }

  .menu-type-list {
    grid-template-columns: 1fr;
  }

  .menu-dish-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-admin-title h1 {
    font-size: 34px;
  }

  .btn {
    width: 100%;
  }

  .menu-admin-actions {
    width: 100%;
  }
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.summary-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(231, 236, 232, 0.88);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--yeva-shadow-soft);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.summary-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--yeva-shadow);
}

.summary-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.summary-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 17px;
}

.summary-icon.green {
  background: var(--yeva-primary-soft);
  color: #087642;
}

.summary-icon.coral {
  background: var(--yeva-coral-soft);
  color: #cf3f2e;
}

.summary-icon.orange {
  background: var(--yeva-orange-soft);
  color: #a15b00;
}

.summary-icon.blue {
  background: var(--yeva-blue-soft);
  color: #246bdb;
}

.summary-pill {
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
  background: #f4f8f5;
  color: #475569;
}

.summary-label {
  color: var(--yeva-muted);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 5px;
}

.summary-value {
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.summary-note {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  margin-top: 5px;
}

.menu-type-panel {
  max-height: calc(100vh - 130px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.menu-type-list {
  overflow-y: auto;
  padding-right: 4px;
  max-height: 520px;
}

.menu-type-list::-webkit-scrollbar {
  width: 6px;
}

.menu-type-list::-webkit-scrollbar-thumb {
  background: #d7e5dc;
  border-radius: 999px;
}

.menu-type-list::-webkit-scrollbar-track {
  background: transparent;
}

.menu-price-input:focus {
  border-color: rgba(24, 197, 110, 0.55);
  box-shadow: 0 0 0 5px rgba(24, 197, 110, 0.1);
}

/* =========================
   YEVA MODAL
========================= */

.yeva-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.yeva-modal-backdrop.active {
  display: flex;
}

.yeva-modal {
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
  padding: 24px;
}

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

.yeva-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.yeva-modal-header small {
  display: block;
  color: var(--yeva-muted);
  font-weight: 800;
  font-size: 12px;
}

.yeva-modal-header h3 {
  margin: 2px 0 0;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.yeva-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--yeva-border);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.yeva-modal-close:hover {
  background: #f3f7f4;
}

.yeva-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.yeva-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yeva-field.full {
  grid-column: 1 / -1;
}

.yeva-field label {
  font-size: 12px;
  font-weight: 800;
  color: var(--yeva-muted);
}

.yeva-field input,
.yeva-field textarea {
  border-radius: 14px;
  border: 1px solid var(--yeva-border);
  padding: 10px 12px;
  font-weight: 700;
  outline: none;
  transition: all 0.18s ease;
}

.yeva-field input:focus,
.yeva-field textarea:focus {
  border-color: rgba(24, 197, 110, 0.6);
  box-shadow: 0 0 0 4px rgba(24, 197, 110, 0.1);
}

.yeva-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* Responsive */
@media (max-width: 720px) {
  .yeva-modal {
    margin: 10px;
    padding: 18px;
  }

  .yeva-modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .yeva-modal-backdrop {
    align-items: flex-start;
    padding: 12px;
  }

  .yeva-modal {
    margin: 0;
    max-height: calc(100vh - 24px);
    padding: 18px;
    border-radius: 22px;
  }

  .yeva-image-preview {
    width: 160px;
  }

  .yeva-modal-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 12px;
  }
}

.yeva-image-preview {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: #f3f7f4;
  border: 1px dashed var(--yeva-border);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 0 auto 12px;
  color: #94a3b8;
}

.yeva-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 clave */
}

.menu-drag-ghost {
  opacity: 0.35;
}

.menu-drag-chosen {
  box-shadow: var(--yeva-shadow);
  background: #ffffff;
}

.menu-drag-handle:hover {
  color: #087642;
  background: var(--yeva-primary-soft);
}

.yeva-type-picker {
  position: relative;
}

.yeva-type-trigger {
  width: 100%;
  height: 46px;
  border: 1px solid #e7ece8;
  background: #fff;
  border-radius: 16px;
  padding: 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  cursor: pointer;
}

.yeva-type-dropdown {
  display: none;
  position: absolute;
  z-index: 80;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e7ece8;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  padding: 12px;
}

.yeva-type-picker.open .yeva-type-dropdown {
  display: block;
}

.yeva-type-search {
  height: 42px;
  border: 1px solid #e7ece8;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  margin-bottom: 10px;
  background: #f8fbf9;
}

.yeva-type-search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-weight: 700;
}

.yeva-type-search i {
  color: #94a3b8;
}

.yeva-type-list {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yeva-type-option {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 14px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 800;
  color: #111827;
}

.yeva-type-option:hover {
  background: #f1f7f3;
}

.yeva-type-option i {
  display: none;
  color: #18c56e;
}

.yeva-type-option.active {
  background: #e7f9ef;
  color: #087642;
}

.yeva-type-option.active i {
  display: inline-block;
}

.menu-type-item.is-disabled {
  opacity: 0.55;
  filter: grayscale(0.35);
}

.menu-type-item.is-disabled .menu-type-name strong {
  text-decoration: line-through;
}

.menu-type-edit {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #7b8a80;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--yeva-border);
  cursor: pointer;
  transition: 0.18s ease;
}

.menu-type-edit:hover {
  color: var(--yeva-primary);
  border-color: rgba(24, 197, 110, 0.35);
  background: #ffffff;
  transform: scale(1.05);
}

.menu-type-item.active .menu-type-edit {
  color: var(--yeva-primary);
}

.menu-type-item {
  grid-template-columns: 34px 1fr auto auto;
  align-items: center;
}

.yeva-schedule-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

@media (max-width: 720px) {
  .yeva-schedule-row {
    grid-template-columns: 1fr;
  }
}

.yeva-auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(
      circle at top left,
      rgba(24, 197, 110, 0.16),
      transparent 32%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(17, 24, 39, 0.08),
      transparent 34%
    ),
    #f7faf8;
  color: #111827;
  display: grid;
  place-items: center;
  padding: 28px;
}

.yeva-auth-shell {
  width: 100%;
  max-width: 1080px;
  min-height: 640px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(231, 236, 232, 0.9);
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.11);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.yeva-auth-hero {
  position: relative;
  padding: 64px;
  background:
    linear-gradient(135deg, rgba(24, 197, 110, 0.96), rgba(14, 168, 90, 0.92)),
    linear-gradient(135deg, #18c56e, #0ea85a);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.yeva-auth-hero::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -120px;
  top: -90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.yeva-auth-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  left: -80px;
  bottom: -70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.yeva-auth-badge {
  position: relative;
  z-index: 1;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 28px;
}

.yeva-auth-badge span {
  width: 9px;
  height: 9px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.16);
}

.yeva-auth-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 620px;
  font-size: 52px;
  line-height: 0.98;
  letter-spacing: -2.4px;
}

.yeva-auth-hero p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 600;
}

.yeva-auth-points {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.yeva-auth-points div {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 800;
  font-size: 13px;
}

.yeva-auth-card {
  padding: 54px 44px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.yeva-auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 38px;
}

.yeva-auth-logo {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #18c56e;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(24, 197, 110, 0.28);
}

.yeva-auth-brand h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -1px;
}

.yeva-auth-brand span {
  display: block;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

.yeva-auth-heading h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -1px;
}

.yeva-auth-heading p {
  margin: 8px 0 24px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
}

.yeva-auth-error {
  display: none;
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.yeva-auth-form {
  display: grid;
  gap: 16px;
}

.yeva-auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 7px;
  color: #1f2937;
}

.yeva-auth-field input {
  width: 100%;
  height: 50px;
  border: 1px solid #e7ece8;
  border-radius: 15px;
  padding: 0 15px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  background: #f9fbfa;
  transition: 0.18s ease;
}

.yeva-auth-field input:focus {
  border-color: rgba(24, 197, 110, 0.65);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(24, 197, 110, 0.11);
}

.yeva-auth-btn {
  margin-top: 8px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: #18c56e;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 16px 34px rgba(24, 197, 110, 0.28);
  transition: 0.18s ease;
}

.yeva-auth-btn:hover {
  background: #0ea85a;
  transform: translateY(-1px);
}

.yeva-auth-btn:disabled {
  cursor: not-allowed;
  opacity: 0.76;
  transform: none;
}

.yeva-auth-footer {
  margin-top: 24px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.yeva-auth-footer a {
  color: #18c56e;
  font-weight: 900;
  text-decoration: none;
}

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

@media (max-width: 920px) {
  .yeva-auth-shell {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .yeva-auth-hero {
    padding: 38px;
  }

  .yeva-auth-hero h1 {
    font-size: 36px;
    letter-spacing: -1.4px;
  }

  .yeva-auth-card {
    padding: 38px;
  }
}

@media (max-width: 520px) {
  .yeva-auth-body {
    padding: 14px;
  }

  .yeva-auth-shell {
    border-radius: 24px;
  }

  .yeva-auth-hero {
    padding: 30px 24px;
  }

  .yeva-auth-card {
    padding: 30px 24px;
  }

  .yeva-auth-hero h1 {
    font-size: 31px;
  }
}

.topbar-logout {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #6b7280;
  background: #ffffff;
  border: 1px solid var(--yeva-border);
  text-decoration: none;
  transition: 0.18s ease;
}

.topbar-logout:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.22);
  background: #fff5f5;
  transform: translateY(-1px);
}

.yeva-auth-success {
  display: none;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #bbf7d0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}

.integration-header {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 26px;
}

.integration-header small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yeva-primary);
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 14px;
}

.integration-header h1 {
  margin: 0;
  max-width: 760px;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -1.4px;
  color: #111827;
}

.integration-header p {
  margin: 14px 0 0;
  max-width: 820px;
  color: #6b7280;
  font-weight: 600;
  line-height: 1.7;
}

.integration-status-card,
.integration-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--yeva-border);
  border-radius: 24px;
  box-shadow: var(--yeva-shadow-soft);
}

.integration-status-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.integration-status-card span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.integration-status-card strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
}

.integration-status-card strong.ok {
  color: #047857;
}

.integration-status-card strong.pending {
  color: #92400e;
}

.integration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.integration-card {
  padding: 26px;
}

.integration-main-card {
  display: grid;
  gap: 22px;
}

.integration-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.integration-card-head h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.6px;
  color: #111827;
}

.integration-card-head p {
  margin: 7px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
}

.integration-card-head.compact {
  margin-bottom: 18px;
}

.integration-switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.integration-switch input {
  display: none;
}

.integration-switch span {
  width: 58px;
  height: 32px;
  border-radius: 999px;
  background: #e5e7eb;
  position: relative;
  transition: 0.18s ease;
}

.integration-switch span::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  top: 4px;
  left: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.16);
  transition: 0.18s ease;
}

.integration-switch input:checked + span {
  background: var(--yeva-primary);
}

.integration-switch input:checked + span::after {
  transform: translateX(26px);
}

.integration-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.integration-option {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--yeva-border);
  border-radius: 20px;
  background: #fbfdfc;
  cursor: pointer;
  transition: 0.18s ease;
}

.integration-option:hover {
  border-color: rgba(24, 197, 110, 0.35);
  transform: translateY(-1px);
}

.integration-option input {
  margin-top: 4px;
  accent-color: var(--yeva-primary);
}

.integration-option strong,
.integration-check-row strong {
  display: block;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 5px;
}

.integration-option small,
.integration-check-row small {
  display: block;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
}

.integration-check-row {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: #f7faf8;
  border: 1px solid var(--yeva-border);
  cursor: pointer;
}

.integration-check-row input {
  margin-top: 5px;
  accent-color: var(--yeva-primary);
}

.integration-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

#integrationMessage {
  font-size: 13px;
  font-weight: 800;
}

#integrationMessage.ok {
  color: #047857;
}

#integrationMessage.error {
  color: #be123c;
}

.integration-tech-list {
  display: grid;
  gap: 12px;
}

.integration-tech-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--yeva-border);
}

.integration-tech-list span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.integration-tech-list strong {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.integration-note {
  margin-top: 22px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(24, 197, 110, 0.08);
  color: #047857;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.integration-note i {
  margin-top: 3px;
}

.integration-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
}

@media (max-width: 980px) {
  .integration-header,
  .integration-grid,
  .integration-options {
    grid-template-columns: 1fr;
  }
}

.btn-secondary {
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--yeva-border);
  background: #fff;
  color: #111827;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--yeva-primary);
  color: var(--yeva-primary);
}

.yeva-modal.large {
  max-width: 720px;
}

.modificadores-container {
  max-height: 480px;
  overflow-y: auto;
  padding: 10px;
}

.modificadores-empty {
  text-align: center;
  padding: 40px;
  color: #64748b;
}

.mod-cat {
  margin-bottom: 18px;
}

.mod-cat-title {
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 8px;
  color: #172033;
}

.mod-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mod-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  align-items: center;
}

.mod-name {
  font-weight: 700;
}

.mod-price {
  font-size: 12px;
  color: #cc2649;
  font-weight: 800;
}

.mod-origin {
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 999px;
  font-weight: 700;
}

.mod-origin.plato {
  background: #dbeafe;
  color: #1d4ed8;
}

.mod-origin.tipo {
  background: #fef3c7;
  color: #b45309;
}

.yeva-modal.large {
  max-width: 860px;
}

.mod-resumen-container {
  max-height: 520px;
  overflow-y: auto;
  padding: 8px;
}

.mod-empty {
  padding: 38px;
  text-align: center;
  color: #64748b;
  font-weight: 700;
}

.mod-summary-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
}

.mod-summary-main {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.mod-summary-main small {
  display: block;
  color: #cc2649;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.mod-summary-main strong {
  display: block;
  font-size: 15px;
  color: #172033;
}

.mod-summary-main b {
  color: #cc2649;
  background: rgba(204, 38, 73, 0.08);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.mod-summary-relations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mod-summary-relations label {
  display: block;
  font-size: 11px;
  font-weight: 900;
  color: #475569;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.mod-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mod-chip-list span {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #172033;
}

.mod-chip-list em {
  color: #94a3b8;
  font-size: 12px;
}

@media (max-width: 720px) {
  .mod-summary-relations {
    grid-template-columns: 1fr;
  }
}

.mod-summary-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mod-online-switch {
  position: relative;
  width: 42px;
  height: 24px;
  display: inline-block;
}

.mod-online-switch input {
  display: none;
}

.mod-online-switch span {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #cbd5e1;
  border-radius: 999px;
  transition: 0.2s;
}

.mod-online-switch span:before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.25);
}

.mod-online-switch input:checked + span {
  background: #cc2649;
}

.mod-online-switch input:checked + span:before {
  transform: translateX(18px);
}
