:root {
  --bg: #f0f4f8;
  --surface: #ffffff;
  --surface2: #f7f9fc;
  --border: #e2e8f0;
  --text: #1a202c;
  --muted: #718096;
  --accent: #00c896;
  --accent-dark: #00a67d;
  --accent-soft: #e6faf5;
  --warn: #ff6b35;
  --warn-soft: #fff2ed;
  --info: #4299e1;
  --info-soft: #ebf8ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

.screen {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 80px;
}

.screen.active {
  display: flex;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-title {
  font-size: 18px;
  font-weight: 900;
}

.topbar-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.topbar-action {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent-dark);
}

.scroll-area {
  flex: 1;
  overflow-y: auto;
}

.pad {
  padding: 16px 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card,
.order-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 16px;
}

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

.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.stat-value {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  margin: 4px 0 2px;
}

.stat-sub {
  font-size: 11px;
  color: var(--muted);
}

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

.section-title {
  font-size: 15px;
  font-weight: 800;
}

.section-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
}

.order-card {
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--info-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.order-info {
  flex: 1;
  min-width: 0;
}

.order-name {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-items {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 100;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}

.nav-item {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Nunito', sans-serif;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0;
}

.nav-item.active {
  color: var(--accent-dark);
}

.nav-icon {
  font-size: 22px;
  line-height: 1;
}

.nav-label {
  font-size: 10px;
  font-weight: 700;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.login-card {
  width: 100%;
  background: var(--surface);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.login-logo {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  font-size: 30px;
  margin-bottom: 12px;
}

.login-kicker {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.login-card h1 {
  font-size: 30px;
  line-height: 1;
  margin: 6px 0 8px;
}

.login-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 20px;
}

.login-form label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 14px 0 6px;
}

.login-form input {
  width: 100%;
  border: 2px solid var(--border);
  background: var(--surface2);
  border-radius: 14px;
  padding: 14px;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.login-form input:focus {
  border-color: var(--accent);
  background: #fff;
}

.login-form button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 900;
  padding: 15px;
  margin-top: 18px;
  cursor: pointer;
}

.login-message {
  margin-top: 12px;
  color: var(--warn);
  font-size: 13px;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-img {
  aspect-ratio: 1;
  background: var(--surface2);
  display: grid;
  place-items: center;
  font-size: 42px;
}

.product-body {
  padding: 10px 12px 12px;
}

.product-name {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.product-price {
  font-size: 15px;
  font-weight: 900;
  color: var(--accent-dark);
  margin-top: 4px;
}

.product-stock {
  font-size: 10px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}

.empty-state-small {
  grid-column: 1 / -1;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--muted);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.fab {
  position: fixed;
  bottom: 90px;
  right: calc(50% - 195px);
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,200,150,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
}

@media (max-width: 430px) {
  .fab {
    right: 20px;
  }
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: flex-end;
  backdrop-filter: blur(2px);
}

.drawer-overlay.open {
  display: flex;
}

.drawer {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 0 0 calc(24px + env(safe-area-inset-bottom));
  max-height: 92vh;
  overflow-y: auto;
}

.drawer-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 20px;
}

.drawer-title {
  font-size: 18px;
  font-weight: 900;
  padding: 0 20px 16px;
}

.form-group {
  padding: 0 20px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}

.form-input {
  width: 100%;
  padding: 13px 14px;
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  background: #fff;
}

textarea.form-input {
  resize: none;
  height: 80px;
  line-height: 1.5;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px;
  margin-bottom: 16px;
}

.price-row .form-group {
  padding: 0;
  margin-bottom: 0;
}

.img-upload-zone {
  border: 2.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: var(--surface2);
}

.upload-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

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

.upload-hint {
  font-size: 11px;
  color: #a0aec0;
  margin-top: 4px;
  font-weight: 600;
}

.upload-preview {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  display: none;
}

.btn {
  width: calc(100% - 40px);
  margin: 0 20px;
  padding: 15px;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 900;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,200,150,0.3);
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  margin-top: 10px;
}

.btn-danger {
  background: #fee2e2;
  color: #dc2626;
  margin-top: 10px;
}

.drawer-message {
  min-height: 20px;
  padding: 12px 20px 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

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

.product-add-card .product-img {
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-weight: 900;
}

.profile-header {
  background: var(--accent);
  padding: 28px 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.profile-name {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

.profile-plan {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  margin-top: 3px;
  font-weight: 700;
}

.settings-group {
  background: var(--surface);
  border-radius: var(--radius);
  margin: 16px 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.settings-item {
  width: 100%;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-label {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.settings-value {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.settings-arrow {
  color: var(--muted);
  font-size: 16px;
}

.toggle-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.toggle-btn {
  padding: 7px 14px;
  border-radius: 20px;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  border: 2px solid var(--border);
  cursor: pointer;
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
}

.toggle-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.order-right {
  text-align: right;
  flex-shrink: 0;
}

.order-price {
  font-size: 15px;
  font-weight: 900;
}

.order-time {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-new {
  background: var(--info-soft);
  color: var(--info);
}

.badge-paid {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.badge-pending {
  background: var(--warn-soft);
  color: var(--warn);
}

.order-detail-box {
  padding: 0 20px 16px;
}

.order-detail-name {
  font-size: 18px;
  font-weight: 900;
}

.order-detail-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
  font-weight: 700;
}

.order-detail-status {
  display: inline-flex;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--info-soft);
  color: var(--info);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 900;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 0 20px 16px;
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  margin-bottom: 12px;
}

.order-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.order-item-name {
  font-size: 13px;
  font-weight: 700;
  flex: 1;
}

.order-item-qty {
  font-size: 12px;
  color: var(--muted);
}

.order-item-price {
  font-size: 14px;
  font-weight: 900;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: var(--surface2);
  margin: 0 0 16px;
}

.order-total-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.order-total-value {
  font-size: 20px;
  font-weight: 900;
}

.wa-btn {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 40px);
  margin: 0 20px 10px;
  padding: 15px;
  border-radius: var(--radius-sm);
  background: #25D366;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 900;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

/* FASE 4B FIX */
.screen {
  padding-bottom: 96px !important;
}

.bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 430px !important;
  z-index: 150 !important;
  background: var(--surface) !important;
  border-top: 1px solid var(--border) !important;
  display: flex !important;
  align-items: center !important;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom)) !important;
}

.nav-icon {
  position: relative;
}

.nav-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  background: var(--warn);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.drawer-overlay {
  z-index: 300 !important;
}

.settings-button {
  appearance: none;
}

/* FASE 5 SETTINGS */
.settings-form-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.settings-form-title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 4px;
}

.settings-form-sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.settings-form-card label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 14px 0 6px;
}

.settings-form-card input,
.settings-form-card textarea {
  width: 100%;
  border: 2px solid var(--border);
  background: var(--surface2);
  border-radius: 14px;
  padding: 13px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  outline: none;
}

.settings-form-card input[type="color"] {
  padding: 4px;
  height: 48px;
}

.settings-form-card textarea {
  min-height: 84px;
  resize: none;
  line-height: 1.45;
}

.settings-form-card input:focus,
.settings-form-card textarea:focus {
  border-color: var(--accent);
  background: #fff;
}

.settings-form-card button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 900;
  padding: 15px;
  margin-top: 16px;
  cursor: pointer;
}

.settings-message {
  min-height: 20px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

/* FASE 5B LOGO */
.logo-upload-zone {
  width: 100%;
  min-height: 124px;
  border: 2.5px dashed var(--border);
  border-radius: 18px;
  background: var(--surface2);
  display: grid;
  place-items: center;
  padding: 14px;
  cursor: pointer;
  overflow: hidden;
}

.logo-upload-zone:active {
  border-color: var(--accent);
}

.logo-empty {
  text-align: center;
  color: var(--muted);
}

.logo-empty-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.logo-empty-title {
  font-size: 14px;
  font-weight: 900;
}

.logo-empty-sub {
  font-size: 11px;
  font-weight: 700;
  margin-top: 3px;
}

.logo-preview {
  display: none;
  max-width: 100%;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
}

/* FASE 6 PLATFORM */
.platform-screen {
  padding-bottom: 24px !important;
}

.platform-form-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 18px;
}

.platform-form-card label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 14px 0 6px;
}

.platform-form-card input,
.platform-form-card select {
  width: 100%;
  border: 2px solid var(--border);
  background: var(--surface2);
  border-radius: 14px;
  padding: 13px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  outline: none;
}

.platform-form-card input:focus,
.platform-form-card select:focus {
  border-color: var(--accent);
  background: #fff;
}

.platform-form-card button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 900;
  padding: 15px;
  margin-top: 16px;
  cursor: pointer;
}

.platform-list-header {
  margin-top: 8px;
}

.platform-refresh {
  border: 0;
  background: transparent;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
}

.platform-tenant-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 15px;
  margin-bottom: 12px;
}

.platform-tenant-title {
  font-size: 16px;
  font-weight: 900;
}

.platform-tenant-sub {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  margin-top: 2px;
}

.platform-tenant-owner {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

.platform-tenant-stats {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.platform-tenant-stats span {
  background: var(--surface2);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

.platform-open-link {
  display: inline-flex;
  margin-top: 12px;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 900;
}

/* FASE 7A PLATFORM CONTROLS */
.platform-tenant-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.platform-open-mini {
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

.is-active {
  color: var(--accent-dark);
  font-weight: 900;
}

.is-inactive {
  color: #dc2626;
  font-weight: 900;
}

.platform-control-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.platform-control-grid label {
  font-size: 11px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.platform-control-grid select {
  width: 100%;
  margin-top: 5px;
  border: 2px solid var(--border);
  background: var(--surface2);
  border-radius: 12px;
  padding: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  color: var(--text);
}

.platform-control-grid button,
.platform-reset-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 13px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  cursor: pointer;
}

.platform-danger {
  background: #fee2e2;
  color: #dc2626;
}

.platform-success {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.platform-reset-btn {
  width: 100%;
  margin-top: 10px;
  background: var(--surface2);
  color: var(--text);
}

.platform-card-message {
  min-height: 18px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

/* FASE 7B REQUESTS */
.signup-request-card {
  border-left: 4px solid var(--accent);
}

.signup-note {
  margin-top: 10px;
  background: var(--surface2);
  color: var(--text);
  border-radius: 12px;
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

/* FASE 8 STOCK / PEDIDOS */
.badge-cancelled {
  background: #fee2e2;
  color: #dc2626;
}

.order-detail-status {
  max-width: 100%;
  flex-wrap: wrap;
  line-height: 1.25;
}

/* FASE 8C STOCK / FILTROS PEDIDOS */
.toggle-wrap {
  overflow-x: auto;
  scrollbar-width: none;
}

.toggle-wrap::-webkit-scrollbar {
  display: none;
}

.badge-stock {
  background: var(--surface2);
  color: var(--muted);
}

.badge-cancelled {
  background: #fee2e2;
  color: #dc2626;
}

.order-detail-status {
  max-width: 100%;
  flex-wrap: wrap;
  line-height: 1.25;
}

/* FASE 8D */
.badge-paid {
  white-space: nowrap;
}

/* FASE 9 ENTREGA ADMIN */
.order-delivery-box {
  margin: 0 20px 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface2);
}

.order-delivery-box strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.order-delivery-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
  line-height: 1.35;
}

/* FASE 10 PWA */
@media (display-mode: standalone) {
  [data-pwa-install] {
    display: none !important;
  }
}

/* FASE 11B SUPERADMIN LOGS */
.security-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.security-stat {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.security-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.security-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  margin-top: 4px;
}

.security-stat.is-warn {
  border: 2px solid #ff6b35;
}

.security-row,
.activity-log-card,
.backup-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 10px;
}

.security-row strong,
.backup-card strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.security-row span,
.backup-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

.activity-filter-row {
  margin-bottom: 12px;
}

.activity-filter-row select {
  width: 100%;
  border: 2px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 12px 13px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  color: var(--text);
}

.activity-log-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.activity-log-top strong {
  font-size: 14px;
  font-weight: 900;
}

.activity-log-top span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.activity-log-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.activity-log-meta span {
  background: var(--surface2);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
}

.activity-meta-json {
  margin-top: 10px;
  background: #111827;
  color: #e5e7eb;
  border-radius: 12px;
  padding: 10px;
  font-size: 11px;
  overflow-x: auto;
  white-space: pre-wrap;
}

.backup-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.backup-card small {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.backup-command-box {
  background: var(--surface2);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.backup-command-box code {
  display: block;
  color: var(--text);
  margin-top: 4px;
  word-break: break-all;
}

/* FASE 11C FIX LOGS */
.platform-log-test-btn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}

.platform-log-test-btn:disabled {
  opacity: .7;
}

/* FASE 11F REPEAT COUNT */
.repeat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff6b35;
  color: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 6px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
