:root {
  --safo-bg: #F9FAFB;
  --safo-surface: #FFFFFF;
  --safo-surface-muted: #F3F6FB;
  --safo-border: rgba(148, 163, 184, 0.18);
  --safo-border-strong: rgba(73, 180, 123, 0.16);
  --safo-text: #111827;
  --safo-text-muted: #6B7280;
  --safo-text-soft: #94A3B8;
  --safo-primary: #49B47B;
  --safo-primary-hover: #3D9A68;
  --safo-success: #10B981;
  --safo-warning: #F59E0B;
  --safo-danger: #EF4444;
  --safo-shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.06);
  --safo-shadow-md: 0 20px 60px rgba(15, 23, 42, 0.10);
  --safo-shadow-lg: 0 28px 90px rgba(73, 180, 123, 0.14);
  --safo-radius-sm: 14px;
  --safo-radius-md: 20px;
  --safo-radius-lg: 28px;
  --safo-radius-xl: 34px;
}

html, body {
  background:
    radial-gradient(circle at top right, rgba(73, 180, 123, 0.10), transparent 26%),
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.08), transparent 24%),
    var(--safo-bg) !important;
}

body,
button,
input,
select,
textarea {
  font-family: 'Tajawal', 'Cairo', 'Noto Sans Arabic', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

body {
  color: var(--safo-text);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(249,250,251,0.2));
  z-index: -1;
}

#app-content {
  position: relative;
}

.home-premium-shell,
.profile-page,
.auth-page,
.search-page,
.products-page,
.product-page,
.categories-page,
.suppliers-page {
  max-width: 560px;
  margin: 0 auto;
}

.safo-mobile-header.premium-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(249, 250, 251, 0.82) !important;
  border-bottom: 1px solid rgba(255,255,255,0.7);
}

.safo-header-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 18px 12px;
}

.safo-header-right {
  gap: 12px;
}

.safo-header-logo {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: #fff;
  padding: 6px;
  box-shadow: var(--safo-shadow-sm);
}

.safo-header-name {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  color: var(--safo-text) !important;
}

.safo-header-tagline {
  color: var(--safo-text-muted) !important;
  font-size: 0.8rem !important;
}

.safo-header-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(148,163,184,0.14) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  color: var(--safo-text) !important;
}

.home-content-premium,
.profile-page {
  padding: 16px 16px 124px !important;
}

.search-experience-card.sticky-search {
  position: sticky;
  top: 72px;
  z-index: 60;
  margin-bottom: 18px;
}

.smart-search-premium {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.92)) !important;
  border: 1px solid var(--safo-border) !important;
  border-radius: 24px !important;
  padding: 10px 12px !important;
  box-shadow: var(--safo-shadow-sm);
}

.smart-search-premium input {
  font-size: 0.98rem !important;
  color: var(--safo-text) !important;
}

.smart-search-premium input::placeholder {
  color: var(--safo-text-soft) !important;
}

.search-btn-orange,
.hero-cta-primary,
.product-card-cta--buy,
.product-quick-add,
.btn-primary,
.admin-login-card .btn-primary,
.profile-primary-action {
  background: linear-gradient(135deg, var(--safo-primary), var(--safo-primary-hover)) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.26) !important;
}

.search-btn-orange {
  width: 48px !important;
  height: 48px !important;
  border-radius: 18px !important;
}

.search-actions {
  gap: 8px !important;
}

.search-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #F3F6FB !important;
  color: var(--safo-text-muted) !important;
}

.search-chip-groups {
  margin-top: 12px;
  gap: 10px !important;
}

.search-chip-group {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 8px !important;
}
.search-chip-group::-webkit-scrollbar { display:none; }

.search-chip-label {
  white-space: nowrap;
  color: var(--safo-text-soft) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
}

.search-chip {
  background: #fff !important;
  color: var(--safo-text) !important;
  border: 1px solid rgba(148,163,184,0.16) !important;
  border-radius: 999px !important;
  padding: 9px 14px !important;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(15,23,42,0.04);
}

.trend-chip {
  background: rgba(37,99,235,0.08) !important;
  color: var(--safo-primary) !important;
  border-color: rgba(37,99,235,0.08) !important;
}

.premium-top-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 8px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.premium-top-tabs::-webkit-scrollbar { display:none; }

.premium-top-tabs .top-tab {
  flex: 0 0 auto;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.86) !important;
  color: var(--safo-text-muted) !important;
  border: 1px solid rgba(148,163,184,0.14) !important;
  padding: 12px 16px !important;
  font-weight: 700 !important;
}

.premium-top-tabs .top-tab.active {
  background: linear-gradient(135deg, var(--safo-primary), #4F46E5) !important;
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(37,99,235,0.22);
}

.home-hero-panel {
  margin-bottom: 18px;
}

.hero-slider-container-premium {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: var(--safo-radius-xl) !important;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(37, 99, 235, 0.85) 55%, rgba(16, 185, 129, 0.72)),
    linear-gradient(180deg, #111111, #1D4ED8) !important;
  box-shadow: var(--safo-shadow-lg);
  border: 1px solid rgba(255,255,255,0.18);
}

.hero-slider-track,
.hero-skeleton,
.hero-slider-track > * {
  height: 100%;
}

.hero-premium-overlay--minimal {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(15,23,42,0.10), rgba(15,23,42,0.72) 70%);
}

.hero-story-card {
  width: 100%;
  color: #fff;
  display: grid;
  gap: 14px;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-premium-title {
  font-size: clamp(1.9rem, 5vw, 2.5rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.04em;
  font-weight: 800 !important;
  max-width: 9ch;
}

.hero-premium-text {
  color: rgba(255,255,255,0.86) !important;
  font-size: 0.98rem !important;
  line-height: 1.8 !important;
  min-height: 52px;
}

.hero-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-cta-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px !important;
  font-weight: 800 !important;
}

.hero-cta-secondary {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  color: #fff !important;
}

.hero-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.hero-proof-item {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 12px 10px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.hero-proof-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.hero-proof-item span {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.82);
}

.hero-slider-dots {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
}

.hero-slider-arrow {
  width: 44px !important;
  height: 44px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.14) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
}

.home-curation-strip,
.home-promo-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.home-promo-card {
  border-radius: 24px !important;
  background: rgba(255,255,255,0.9) !important;
  border: 1px solid var(--safo-border) !important;
  padding: 18px !important;
  box-shadow: var(--safo-shadow-sm);
}

.home-promo-card strong {
  color: var(--safo-text) !important;
  font-size: 1rem !important;
}

.home-promo-card span:last-child {
  color: var(--safo-text-muted) !important;
  line-height: 1.6 !important;
}

.home-promo-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(37,99,235,0.08);
  color: var(--safo-primary);
}

.section-block.premium-section,
.ui2-suppliers.premium-section {
  margin-bottom: 18px !important;
  background: transparent !important;
}

.section-header-inline,
.ui2-suppliers__header {
  align-items: center;
  margin-bottom: 12px !important;
}

.section-header-inline h3,
.ui2-suppliers__title {
  color: var(--safo-text) !important;
  font-size: 1.18rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
}

.view-all,
.ui2-suppliers__link {
  color: var(--safo-primary) !important;
  font-weight: 700 !important;
}

.alibaba-categories-scroll,
.pro-categories-grid {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: minmax(88px, 1fr);
  gap: 12px !important;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.alibaba-categories-scroll::-webkit-scrollbar { display:none; }

.category-icon-card,
.category-bubble,
.category-chip {
  border-radius: 22px !important;
  background: rgba(255,255,255,0.92) !important;
  border: 1px solid var(--safo-border) !important;
  box-shadow: var(--safo-shadow-sm);
}

.products-grid,
.deals-grid,
.premium-products-grid,
.premium-deals-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px !important;
}

.product-card,
.deal-card,
.ui2-supplier-card {
  position: relative;
  border-radius: 26px !important;
  border: 1px solid var(--safo-border) !important;
  background: rgba(255,255,255,0.94) !important;
  box-shadow: var(--safo-shadow-sm) !important;
  overflow: hidden;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-card:hover,
.deal-card:hover,
.ui2-supplier-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--safo-shadow-md) !important;
}

.product-card-img-wrap,
.deal-card-img {
  background: linear-gradient(180deg, #F8FAFC, #EEF2FF) !important;
  aspect-ratio: 0.95;
}

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

.product-card-wishlist {
  top: 14px !important;
  right: 14px !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,0.92) !important;
  box-shadow: 0 12px 24px rgba(15,23,42,0.12);
}

.product-badges {
  top: 14px !important;
  left: 14px !important;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.product-badge {
  border-radius: 999px !important;
  padding: 6px 10px !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 16px rgba(15,23,42,0.08);
}

.badge-discount { background: #FEE2E2 !important; color: #B91C1C !important; }
.badge-featured { background: #DBEAFE !important; color: #1D4ED8 !important; }
.badge-fast,
.badge-ready,
.badge-sample { background: #ECFDF5 !important; color: #047857 !important; }

.product-card-overlay {
  bottom: 14px !important;
  left: 14px !important;
  right: 14px !important;
  border-radius: 16px !important;
  background: rgba(15,23,42,0.50) !important;
  backdrop-filter: blur(10px);
}

.overlay-btn {
  color: #fff !important;
  font-weight: 700 !important;
}

.product-card-body,
.deal-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 16px !important;
}

.product-badges-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-lower-price,
.badge-shipping,
.badge-fast-ship {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #F3F6FB;
  color: var(--safo-text-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.product-card-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-card-price,
.deal-card-price {
  font-size: 1.18rem !important;
  font-weight: 800 !important;
  color: var(--safo-text) !important;
  letter-spacing: -0.04em;
}

.old-price {
  color: #94A3B8 !important;
  font-size: 0.85rem !important;
}

.discount-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #FEE2E2;
  color: #DC2626;
  font-size: 0.74rem;
  font-weight: 800;
}

.product-card-title,
.deal-card-title {
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  color: var(--safo-text) !important;
  font-weight: 700 !important;
  min-height: 3.15em;
}

.product-card-rating,
.product-card-seller,
.product-card-supplier-badge,
.product-card-meta-row,
.deal-card-lowest {
  color: var(--safo-text-muted) !important;
}

.product-card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-card-sold,
.product-card-moq,
.product-card-supplier-badge {
  background: #F8FAFC;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 700;
}

.stock-low,
.stock-out {
  font-size: 0.72rem;
  font-weight: 700;
}

.stock-low { color: #B45309; }
.stock-out { color: #DC2626; }

.product-card-cta-row,
.deal-card-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.product-card-cta,
.deal-card-cta {
  min-height: 42px;
  border-radius: 14px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card-cta:active,
.deal-card-cta:active {
  transform: scale(0.98);
}

.product-card-cta--cart,
.deal-card-cta--cart {
  background: #EFF6FF !important;
  color: var(--safo-primary) !important;
  border: 1px solid rgba(37,99,235,0.10) !important;
}

.product-card-cta--buy,
.deal-card-cta--buy {
  background: linear-gradient(135deg, var(--safo-success), #059669) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 14px 34px rgba(16,185,129,0.24);
}

.ui2-suppliers-carousel {
  display: grid !important;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px !important;
}

.bottom-nav.ui2-bottom-nav,
.bottom-nav {
  max-width: 560px;
  margin: 0 auto;
  left: 0;
  right: 0;
  bottom: 12px !important;
  width: calc(100% - 16px);
  border: 1px solid rgba(255,255,255,0.7) !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,0.86) !important;
  box-shadow: 0 20px 50px rgba(15,23,42,0.12) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 8px 6px calc(env(safe-area-inset-bottom, 8px) + 8px) !important;
}

.bottom-nav-item.ui2-nav-item,
.bottom-nav-item {
  position: relative;
  gap: 6px !important;
  color: var(--safo-text-soft) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
}

.bottom-nav-item.ui2-nav-item .bnav-icon,
.bottom-nav-item .bnav-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: transparent;
  transition: all 0.2s ease;
}

.bottom-nav-item.ui2-nav-item.active,
.bottom-nav-item.active {
  color: var(--safo-text) !important;
}

.bottom-nav-item.ui2-nav-item.active .bnav-icon,
.bottom-nav-item.active .bnav-icon {
  background: rgba(37,99,235,0.10) !important;
  color: var(--safo-primary) !important;
}

.bottom-nav-item.ui2-nav-item.active::after,
.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--safo-primary), #4F46E5);
}

.profile-page {
  display: grid;
  gap: 16px;
}

.profile-header {
  background: linear-gradient(135deg, #49B47B, #3D9A68 58%, #10B981);
  border-radius: 32px !important;
  padding: 26px 22px !important;
  color: #fff;
  box-shadow: var(--safo-shadow-lg);
}

.profile-avatar {
  width: 78px !important;
  height: 78px !important;
  border-radius: 26px !important;
  background: rgba(255,255,255,0.16) !important;
  border: 1px solid rgba(255,255,255,0.18);
}

.profile-info h3,
.profile-info p,
.profile-info .badge {
  color: #fff !important;
}

.profile-menu {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--safo-border);
  border-radius: 28px !important;
  overflow: hidden;
  box-shadow: var(--safo-shadow-sm);
}

.profile-menu-item {
  min-height: 58px;
  padding: 0 18px !important;
  border-bottom: 1px solid rgba(148,163,184,0.08);
}

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

.pmi-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: #F3F6FB;
  color: var(--safo-primary);
}

.profile-divider {
  margin: 0 !important;
  border-color: rgba(148,163,184,0.08) !important;
}

.seller-layout,
.admin-layout {
  background: transparent !important;
}

.seller-sidebar,
.admin-sidebar {
  background: rgba(255,255,255,0.88) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-left: 1px solid rgba(148,163,184,0.12);
  box-shadow: 0 20px 60px rgba(15,23,42,0.08);
}

.seller-sidebar-header,
.admin-sidebar-header {
  padding: 22px 20px !important;
  border-bottom: 1px solid rgba(148,163,184,0.10);
}

.seller-avatar-sm,
.seller-sidebar-avatar,
.admin-user-badge {
  border-radius: 18px !important;
}

.seller-nav,
.admin-nav {
  padding: 14px 10px !important;
}

.seller-nav-item,
.admin-nav-item {
  min-height: 52px;
  border-radius: 18px !important;
  margin-bottom: 6px;
  color: var(--safo-text-muted) !important;
}

.seller-nav-item.active,
.admin-nav-item.active {
  background: rgba(37,99,235,0.08) !important;
  color: var(--safo-primary) !important;
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.10);
}

.seller-nav-icon,
.admin-nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(243,246,251,0.95);
}

.seller-main,
.admin-main {
  background: transparent !important;
}

.seller-topbar,
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249,250,251,0.82) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148,163,184,0.10);
}

.seller-content,
.admin-content {
  padding: 18px !important;
}

.seller-content > div,
.admin-content > div,
.admin-login-card,
.modal-card,
.confirm-card {
  border-radius: 28px !important;
}

.admin-login,
.admin-login-standalone {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.20), transparent 28%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.18), transparent 22%),
    linear-gradient(135deg, #111111, #111827 45%, #1D4ED8);
}

.admin-login-card {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  box-shadow: 0 40px 100px rgba(0,0,0,0.28);
}

.admin-login-subtitle,
.admin-login-card p {
  color: rgba(255,255,255,0.78) !important;
}

.admin-login-card .form-input {
  border-radius: 16px !important;
}

.admin-stat-card,
.admin-alert,
.admin-table-wrap,
.seller-card,
.seller-stat-card,
.card {
  border-radius: 24px !important;
  border: 1px solid var(--safo-border) !important;
  box-shadow: var(--safo-shadow-sm) !important;
}

@media (min-width: 768px) {
  .home-premium-shell,
  .profile-page,
  .auth-page,
  .search-page,
  .products-page,
  .product-page,
  .categories-page,
  .suppliers-page {
    max-width: 1200px;
  }

  .safo-header-inner,
  .bottom-nav.ui2-bottom-nav,
  .bottom-nav {
    max-width: 1200px;
  }

  .home-content-premium {
    padding-inline: 24px !important;
  }

  .home-promo-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid,
  .deals-grid,
  .premium-products-grid,
  .premium-deals-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ui2-suppliers-carousel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .seller-layout,
  .admin-layout {
    flex-direction: column;
  }

  .hero-proof-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .home-content-premium,
  .profile-page {
    padding-inline: 12px !important;
  }

  .hero-premium-title {
    max-width: 10ch;
  }

  .hero-proof-strip {
    gap: 8px;
  }

  .hero-proof-item {
    padding: 10px 8px;
  }

  .product-card-body,
  .deal-card-body {
    padding: 12px 12px 14px !important;
  }

  .product-card-title,
  .deal-card-title {
    font-size: 0.88rem !important;
  }

  .product-card-cta,
  .deal-card-cta {
    font-size: 0.76rem !important;
    min-height: 40px;
  }
}


/* ═══ Unified SAFO identity: profile + seller command center ═══ */
.profile-page {
  width: min(100%, 760px);
  margin-inline: auto;
  gap: 13px;
  padding: 10px 0 34px;
}
.profile-header {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 112px;
  padding: 18px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #064e3b 0%, #047857 58%, #0f766e 100%) !important;
  box-shadow: 0 12px 28px rgba(4, 120, 87, .16);
}
.profile-header::after {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  inset-inline-end: -58px;
  top: -82px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.profile-header > * { position: relative; z-index: 1; }
.profile-avatar {
  width: 64px !important;
  height: 64px !important;
  flex: 0 0 64px;
  border-radius: 18px !important;
  background: rgba(255,255,255,.16) !important;
  border: 2px solid rgba(255,255,255,.55);
  box-shadow: 0 5px 16px rgba(2,44,34,.24);
}
.profile-info { min-width: 0; }
.profile-info h3 { font-size: 17px; line-height: 1.35; }
.profile-info p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .82; }
.profile-info .badge { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.14); }
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.profile-stat-card {
  min-width: 0;
  padding: 11px 8px;
  border: 1px solid rgba(16,185,129,.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15,23,42,.045);
  text-align: center;
}
.profile-stat-icon {
  display: grid;
  width: 28px;
  height: 28px;
  margin: 0 auto 4px;
  place-items: center;
  border-radius: 9px;
  background: #ecfdf5;
  color: #047857;
}
.profile-stat-icon svg { stroke: currentColor; }
.profile-stat-value { color: #065F46; font-size: 19px; font-weight: 800; line-height: 1.2; }
.profile-stat-value--money { font-size: 14px; }
.profile-stat-label { margin-top: 3px; color: #64748b; font-size: 10px; font-weight: 700; }
.profile-menu {
  border: 1px solid rgba(16,185,129,.14);
  border-radius: 18px !important;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 22px rgba(15,23,42,.05);
}
.profile-menu-item {
  min-height: 54px;
  padding: 0 14px !important;
  gap: 10px;
  border-bottom: 1px solid rgba(148,163,184,.12);
}
.profile-menu-item:active { background: #f0fdf4; }
.pmi-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 11px;
  background: #ecfdf5;
  color: #047857;
}
.pmi-icon svg, .pmi-arrow svg { stroke: currentColor; }
.profile-divider { border-color: rgba(16,185,129,.1) !important; }
.profile-store-entry { margin: 0; }
.profile-section-kicker { color: #047857; }
.profile-store-entry-card { border-color: rgba(16,185,129,.18); background: linear-gradient(135deg,#f0fdf4,#ecfeff); }

@media (max-width: 700px) {
  .profile-page { padding: 6px 12px 30px; gap: 10px; }
  .profile-header { min-height: 96px; padding: 14px !important; border-radius: 16px !important; }
  .profile-avatar { width: 56px !important; height: 56px !important; flex-basis: 56px; border-radius: 16px !important; }
  .profile-info h3 { font-size: 15px; }
  .profile-stats { gap: 6px; }
  .profile-stat-card { padding: 9px 5px; border-radius: 12px; }
  .profile-stat-value { font-size: 17px; }
  .profile-stat-value--money { font-size: 12px; }
  .profile-menu { border-radius: 16px !important; }
  .profile-menu-item { min-height: 51px; padding-inline: 11px !important; }
  .profile-store-entry-card { padding: 10px; }
  .profile-store-entry-copy strong { font-size: 13px; }
  .profile-store-entry-copy small { font-size: 10px; }
}


.profile-info .badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid rgba(255,255,255,.3) !important;
  border-radius: 999px;
  background: rgba(255,255,255,.16) !important;
  color: #ecfdf5 !important;
  font-size: 10px;
  font-weight: 800;
}

/* Communication destinations: one visible Messages entry per viewport. */
.seller-command-item--messages {
  display: none !important;
}

@media (min-width: 1180px) {
  .seller-command-item--messages {
    display: flex !important;
  }
}
