:root {
  --orange: #ff6a00;
  --orange-dark: #dd5500;
  --bg: #f2f3f5;
  --card: #ffffff;
  --text: #18181b;
  --muted: #64666d;
  --border: #e4e6eb;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: 72px;
}

.app-header {
  background: linear-gradient(180deg, #ff6a00 0%, #ff7a14 100%);
  padding: 10px 12px 12px;
  position: sticky;
  top: 0;
  z-index: 30;
  color: #fff;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.logo-icon {
  background: #fff;
  color: var(--orange);
  font-weight: 900;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 6px;
}

.logo-text {
  font-size: 16px;
  font-weight: 800;
}

.free-pill {
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}

.card-box .free-pill {
  background: #e8f7ee;
  color: #137333;
}

.header-right-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.currency-select {
  background: rgba(255, 255, 255, 0.95);
  color: #18181b;
  border: none;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10.5px;
  font-weight: 700;
}

.header-acc-btn {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.search-bar-wrap {
  display: flex;
  background: #fff;
  border-radius: 999px;
  padding: 2px;
  overflow: hidden;
}

.search-bar-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 7px 12px;
  font-size: 13px;
}

.search-bar-wrap button {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.tab-view {
  display: none;
}

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

.compact-banner {
  margin: 10px 12px;
  background: linear-gradient(135deg, #161f30, #283752);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.banner-tag {
  font-size: 9.5px;
  font-weight: 800;
  color: #ff9d54;
}

.compact-banner h2 {
  font-size: 14.5px;
  margin: 2px 0;
}

.compact-banner p {
  font-size: 11px;
  color: #d4dce8;
}

.banner-cta {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.quick-nav {
  margin: 0 12px 10px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.q-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.q-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff2e8;
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
}

.chips-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 12px 9px;
  scrollbar-width: none;
}

.chips-row::-webkit-scrollbar {
  display: none;
}

.chip {
  border: none;
  background: #fff;
  color: var(--text);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.chip.active {
  background: var(--orange);
  color: #fff;
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 12px 8px;
}

.feed-header h3 {
  font-size: 15px;
}

.feed-sub {
  font-size: 11px;
  color: #b45309;
  font-weight: 700;
}

.feed-sub.verified-ok {
  color: #137333;
}

.ali-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 10px;
}

.ali-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.ali-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.ali-body {
  padding: 8px;
}

.ali-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.ali-price {
  font-size: 14.5px;
  font-weight: 800;
  color: #111;
}

.ali-moq {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}

.ali-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.badge-ver {
  background: #fff3e6;
  color: #d95b00;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.badge-free {
  background: #e8f7ee;
  color: #137333;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.ali-supplier {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-pad {
  padding: 12px;
}

.sub-text {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.card-box {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
}

.locked-box {
  border: 1px dashed #ff6a00;
  text-align: center;
}

.admin-panel {
  border: 2px solid #161f30;
}

.admin-badge {
  display: inline-block;
  background: #161f30;
  color: #ff9d54;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}

.app-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
}

.app-form input,
.app-form select,
.app-form textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  font-family: inherit;
  background: #fafafa;
}

.two-col-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-full-orange {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.btn-full-gray {
  width: 100%;
  background: #eef0f3;
  color: var(--text);
  border: none;
  border-radius: 8px;
  padding: 11px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-danger-sm {
  background: #fee2e2;
  color: #b91c1c;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.cat-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cat-tile {
  background: #fff;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.account-banner {
  background: linear-gradient(135deg, #ff6a00, #d94e00);
  color: #fff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
  font-size: 20px;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.account-banner p {
  font-size: 12px;
  opacity: 0.92;
}

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

.rfq-card {
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 40;
}

.nav-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.nav-btn.active {
  color: var(--orange);
  font-weight: 800;
}

.nav-ico {
  font-size: 17px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  z-index: 70;
}

.hidden {
  display: none;
}

.modal-sheet {
  background: #fff;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 16px 16px 0 0;
  padding: 16px;
}
