/* ===== FARM DIRECT — Agricultural Marketplace ===== */
/* ===== CSS Variables & Theme ===== */
:root {
  --green: #2d7d46;
  --green2: #3a9d5a;
  --green-dark: #1e5e32;
  --orange: #e67e22;
  --orange2: #f39c12;
  --warm: #fef9e7;
  --bg: #f6f7f2;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text2: #5a6a5a;
  --muted: #7a8a7a;
  --line: #dce4d3;
  --soft: #e5fe;
  --shadow:  12px 40px rgba(30, 50, 30, .1);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --font: 'Inter', Arial, sans-serif;
  --nav-height: 78px;
  --topbar-height: 72px;
}

/* ===== Dark Theme ===== */
body.dark {
  --bg: #f1a12;
  --surface: #16261b;
  --text: #e8fe8;
  --text2: #ab8a;
  --muted: #6a8a6a;
  --line: #1f3828;
  --soft: #1a2f20;
  --shadow:  12px 40px rgba(, , , .4);
  --warm: #1a2a1a;
}

/* ===== Reset & Base ===== */
* { box-sizing: border-box; margin: ; padding: ; }
body {
  font-family: var(--font);
  background: linear-gradient(135deg, #dadfd, #c8dc);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
input, textarea, select { outline: none; }
img { max-width: 100%; display: block; }

/* ===== App Shell ===== */
.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: auto;
  background: var(--bg);
  position: relative;
  padding-bottom: var(--nav-height);
  box-shadow:   60px rgba(, , , .12);
  overflow-x: hidden;
}

/* ===== Top Bar ===== */
.topbar {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  position: sticky;
  top: ;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 10px; align-items: center; }
.brand .logo {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--green2));
  display: grid; place-items: center;
  font-size: 22px;
  box-shadow:  4px 12px rgba(45, 125, 70, .25);
}
.brand strong { font-size: 17px; font-weight: 800; display: block; line-height: 1.2; }
.brand span { font-size: 10px; color: var(--muted); display: block; }
.topbar-actions { display: flex; gap: 8px; }
.icon-btn {
  border: ;
  background: var(--surface);
  width: 40px; height: 40px;
  border-radius: 12px;
  box-shadow:  3px 12px rgba(,,,.06);
  font-size: 18px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: .2s;
  border: 1px solid var(--line);
}
.icon-btn:active { transform: scale(.94); }

/* ===== Main Content ===== */
main { padding: 16px; }

/* ===== Screens ===== */
.screen { display: none; }
.screen.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn {
  from { opacity: ; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ===== Screen Title ===== */
.screen-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.screen-title h2 { font-size: 21px; margin: ; }
.screen-title p { font-size: 12px; color: var(--text2); margin: 3px  ; }
.back-btn {
  border: ;
  background: var(--surface);
  width: 40px; height: 40px;
  border-radius: 12px;
  font-size: 22px;
  cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  flex-shrink: ;
  color: var(--text);
}

/* ===== Hero Card ===== */
.hero-card {
  padding: 24px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #1e5e32 %, #2d7d46 40%, #3a9d5a 100%);
  box-shadow:  20px 50px rgba(45, 125, 70, .3);
  margin-bottom: 16px;
}
.hero-card h1 { font-size: 26px; line-height: 1.1; margin: 12px  8px; }
.hero-card p { font-size: 13px; line-height: 1.5; color: #d4fd4; }
.pill {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  text-transform: uppercase;
}
.hero-stats {
  display: flex;
  gap: 20px;
  margin: 16px  18px;
}
.hero-stats b { display: block; font-size: 18px; }
.hero-stats span { font-size: 10px; opacity: .8; }
.primary-btn {
  width: 100%;
  border: ;
  border-radius: 14px;
  padding: 15px 18px;
  background: linear-gradient(135deg, var(--green), var(--green2));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow:  10px 25px rgba(45, 125, 70, .25);
  transition: .2s;
  display: block;
  text-align: center;
}
.primary-btn:active { transform: scale(.97); opacity: .9; }
.hero-card .primary-btn {
  background: #fff;
  color: var(--green-dark);
  box-shadow: none;
}

/* ===== Ticker ===== */
.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
  overflow: hidden;
}
.ticker-label { font-size: 18px; flex-shrink: ; }
.ticker {
  display: flex;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
}
.ticker span { display: inline; }
.ticker span:nth-child(even) { color: var(--muted); }

/* ===== Section Head ===== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 2px 10px;
}
.section-head h2, .section-head h3 { margin: ; font-size: 17px; }
.section-head.compact { margin:   10px; }
.link-btn {
  border: ;
  background: transparent;
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

/* ===== Category Grid ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 6px;
}
.cat-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px 8px;
  text-align: center;
  cursor: pointer;
  transition: .2s;
}
.cat-card:active { transform: scale(.95); }
.cat-card span.cat-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.cat-card b { font-size: 12px; display: block; }
.cat-card small { font-size: 9px; color: var(--muted); }

/* ===== Horizontal Scroll ===== */
.scroll-x {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px  12px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * {
  flex-shrink: ;
  scroll-snap-align: start;
}

/* ===== Featured Card ===== */
.featured-card {
  width: 170px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: .2s;
}
.featured-card:active { transform: scale(.96); }
.featured-card .fc-icon { font-size: 32px; display: block; margin-bottom: 10px; }
.featured-card b { font-size: 13px; display: block; }
.featured-card .fc-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--green);
  margin: 6px  3px;
}
.featured-card .fc-meta {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 6px;
}

/* ===== Quick Grid (Home) ===== */
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.quick-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: .2s;
}
.quick-card:active { transform: scale(.96); }
.quick-card .quick-icon { font-size: 24px; display: block; margin-bottom: 10px; }
.quick-card b { display: block; font-size: 13px; }
.quick-card small { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }

/* ===== Search ===== */
.search-wrap {
  position: relative;
  margin-bottom: 14px;
}
.search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 13px 13px 13px 40px;
  font-size: 14px;
}
.search-wrap input:focus {
  border-color: var(--green);
  box-shadow:    3px rgba(45, 125, 70, .12);
}
.search-wrap.small input { padding: 10px 13px 10px 36px; font-size: 13px; }
.search-wrap.small .search-icon { left: 12px; font-size: 13px; }

/* ===== Chips ===== */
.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
  white-space: nowrap;
}
.chip.selected {
  border-color: var(--green);
  background: var(--soft);
  color: var(--green-dark);
}

/* ===== Market Grid ===== */
.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-bottom: 20px;
}
.market-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: .2s;
}
.market-card:active { transform: scale(.96); }
.market-card .mc-icon {
  font-size: 30px;
  display: block;
  margin-bottom: 10px;
}
.market-card .mc-badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.mc-badge.sale { background: #e5fe; color: #1e5e32; }
.mc-badge.lease { background: #fff3e; color: #e67e22; }
.mc-badge.rental { background: #e3f2fd; color: #1565c; }
.mc-badge.enquiry { background: #f3e5f5; color: #7b1fa2; }
.market-card b { font-size: 13px; display: block; }
.market-card .mc-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--green);
  margin: 5px  3px;
}
.market-card .mc-meta {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.card > label {
  font-weight: 700;
  font-size: 13px;
  display: block;
  margin-bottom: 10px;
  color: var(--text2);
}
.card input[type="text"],
.card input[type="number"],
.card textarea,
.card select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius-xs);
  padding: 12px 13px;
  font-size: 14px;
  transition: .2s;
}
.card input:focus,
.card textarea:focus,
.card select:focus {
  border-color: var(--green);
  box-shadow:    3px rgba(45, 125, 70, .1);
}
.card textarea { resize: vertical; min-height: 70px; }
.row { display: flex; gap: 10px; align-items: center; }
.grow { flex: 1; min-width: ; }

/* ===== Segmented Controls ===== */
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.segmented.two-col { grid-template-columns: repeat(2, 1fr); }
.segmented button,
.segmented label {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius-xs);
  padding: 11px 6px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: .2s;
}
.segmented button.selected {
  border-color: var(--green);
  background: var(--soft);
  color: var(--green-dark);
}

/* ===== Upload Area ===== */
.upload-area {
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: .2s;
}
.upload-area:active { border-color: var(--green); background: var(--soft); }
.upload-icon { font-size: 32px; display: block; margin-bottom: 8px; }
.upload-area span:last-child { font-size: 12px; color: var(--muted); }

/* ===== Seller Row ===== */
.seller-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.seller-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green2));
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: ;
}
.seller-row .grow b { display: block; font-size: 14px; }
.seller-row .grow small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ===== Detail ===== */
.detail-img {
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 14px;
  display: grid;
  place-items: center;
}
.detail-img .detail-img-placeholder { font-size: 56px; opacity: .4; }
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.detail-header h2 { font-size: 20px; margin: ; }
.detail-price { font-size: 24px; font-weight: 900; color: var(--green); white-space: nowrap; }
.detail-meta { display: flex; gap: 12px; margin: 10px ; font-size: 11px; color: var(--text2); }
.detail-meta span { display: flex; align-items: center; gap: 4px; }
.detail-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }

/* ===== Detail Action Buttons ===== */
.action-btn {
  width: 100%;
  border: ;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: .2s;
  display: block;
  text-align: center;
}
.action-btn:active { transform: scale(.97); }
.action-btn.buy { background: linear-gradient(135deg, var(--green), var(--green2)); color: #fff; }
.action-btn.enquire { background: var(--orange); color: #fff; }
.action-btn.offer { background: #7b1fa2; color: #fff; }
.action-btn.inspect { background: var(--surface); color: var(--text); border: 2px solid var(--line); }
.action-btn.secondary {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--line);
}

/* ===== Quantity Selector ===== */
.qty-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qty-selector button {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius-xs);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: grid; place-items: center;
}
.qty-selector input {
  width: 70px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-xs);
  padding: 10px;
  -moz-appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: ; }

/* ===== Fee & Total Rows ===== */
.fee-row, .total-row > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px ;
  font-size: 13px;
  color: var(--text2);
}
.total-row .total {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 12px;
}

/* ===== Wallet ===== */
.wallet-card {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: var(--radius);
  padding: 24px;
  color: #fff;
  margin-bottom: 14px;
}
.wallet-balance span { font-size: 12px; opacity: .8; }
.wallet-balance .balance { font-size: 32px; font-weight: 900; margin: 8px  16px; }
.wallet-actions { display: flex; gap: 10px; }
.wallet-actions .soft-btn {
  flex: 1;
  border: ;
  background: rgba(255,255,255,.15);
  color: #fff;
  border-radius: var(--radius-xs);
  padding: 10px;
  font-weight: 700;
  cursor: pointer;
}
.transaction-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
}
.transaction-item .tx-icon { font-size: 20px; }
.transaction-item .grow b { display: block; font-size: 13px; }
.transaction-item .grow small { display: block; font-size: 10px; color: var(--muted); }
.transaction-item .tx-amount { font-weight: 800; font-size: 15px; }
.tx-amount.positive { color: var(--green); }
.tx-amount.negative { color: #e74c3c; }

/* ===== Profile ===== */
.profile-card {
  text-align: center;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  margin-bottom: 16px;
}
.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #fff;
  color: var(--green-dark);
  display: grid; place-items: center;
  margin: auto;
  font-size: 24px;
  font-weight: 800;
}
.profile-card h2 { margin: 12px  4px; font-size: 20px; }
.profile-card p { margin: ; font-size: 13px; opacity: .85; }
.profile-location { font-size: 12px; opacity: .8; margin: 6px  14px; }
.profile-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.profile-stats b { display: block; font-size: 18px; }
.profile-stats span { font-size: 10px; opacity: .7; }
.settings-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.settings-list button {
  width: 100%;
  border: ;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 16px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: .15s;
}
.settings-list button:active { background: var(--bg); }
.settings-list button:last-child { border: ; }
.settings-list button span:last-child { color: var(--muted); }

/* ===== Soft Button ===== */
.soft-btn {
  border: ;
  background: var(--soft);
  color: var(--green-dark);
  border-radius: var(--radius-xs);
  padding: 9px 13px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: .2s;
}
.soft-btn:active { opacity: .7; }

/* ===== Vet Cards ===== */
.vet-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: .2s;
}
.vet-card:active { transform: scale(.98); }
.vet-card .vet-top { display: flex; gap: 12px; align-items: center; }
.vet-card .vet-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1abc9c, #16a085);
  display: grid; place-items: center;
  font-size: 20px;
  flex-shrink: ;
}
.vet-card .vet-info b { display: block; font-size: 14px; }
.vet-card .vet-info small { display: block; font-size: 11px; color: var(--muted); }
.vet-card .vet-rating { font-size: 12px; color: var(--orange2); }
.vet-card .vet-meta { display: flex; gap: 10px; margin-top: 8px; font-size: 11px; color: var(--text2); }
.vet-card .vet-meta span { display: flex; align-items: center; gap: 4px; }
.vet-card .vet-status {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.vet-status.available { background: #e5fe; color: #1e5e32; }
.vet-status.busy { background: #fff3e; color: #e67e22; }

/* ===== Animal Cards ===== */
.animal-card {
  width: 130px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.animal-card .animal-icon { font-size: 36px; display: block; margin-bottom: 8px; }
.animal-card b { font-size: 13px; display: block; }
.animal-card small { font-size: 10px; color: var(--muted); display: block; margin-top: 2px; }

/* ===== Appointments ===== */
.appt-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
}
.appt-item .appt-date { text-align: center; min-width: 44px; }
.appt-item .appt-date b { display: block; font-size: 16px; }
.appt-item .appt-date small { font-size: 9px; color: var(--muted); }
.appt-item .grow b { font-size: 13px; display: block; }
.appt-item .grow small { font-size: 10px; color: var(--muted); display: block; margin-top: 2px; }
.appt-item .appt-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}
.appt-badge.confirmed { background: #e5fe; color: #1e5e32; }
.appt-badge.pending { background: #fff3e; color: #e67e22; }

/* ===== Listing & Order Items ===== */
.listing-item, .order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
}
.listing-item .li-icon, .order-item .oi-icon { font-size: 24px; }
.listing-item .grow b, .order-item .grow b { font-size: 13px; display: block; }
.listing-item .grow small, .order-item .grow small { font-size: 10px; color: var(--muted); display: block; margin-top: 2px; }
.listing-item .li-status, .order-item .oi-status {
  font-size: 9px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}
.li-status.active { background: #e5fe; color: #1e5e32; }
.li-status.sold { background: #fce4e4; color: #c0392b; }
.oi-status.pending { background: #fff3e; color: #e67e22; }
.oi-status.completed { background: #e5fe; color: #1e5e32; }
.oi-status.shipped { background: #e3f2fd; color: #1565c; }

/* ===== Appointments List (Upcoming section) ===== */
#upcomingAppts .empty-state,
#myListingsContainer .empty-state,
#myOrdersContainer .empty-state,
#myAnimalsContainer .empty-state,
#transactionList .empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
  font-size: 13px;
}

/* ===== Bottom Nav ===== */
.bottom-nav {
  position: fixed;
  bottom: ;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--nav-height);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 100;
  padding: 6px 8px 8px;
}
.bottom-nav button {
  border: ;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: .2s;
  position: relative;
}
.bottom-nav .nav-icon { font-size: 20px; display: block; }
.bottom-nav .nav-label { font-size: 9px; }
.bottom-nav button.active {
  color: var(--green);
}
.bottom-nav .create-fab {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--green), var(--green2));
  color: #fff;
  place-self: start center;
  margin-top: -14px;
  box-shadow:  8px 24px rgba(45, 125, 70, .3);
}
.bottom-nav .create-fab .nav-icon { font-size: 24px; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-height) + 12px);
  transform: translate(-50%, 20px);
  background: #1a1a2e;
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  opacity: ;
  pointer-events: none;
  transition: .3s;
  z-index: 200;
  font-size: 12px;
  font-weight: 600;
  max-width: 340px;
  text-align: center;
  box-shadow:  10px 30px rgba(,,,.2);
}
.toast.show { opacity: 1; transform: translate(-50%, ); }

/* ===== Empty State in Market ===== */
.market-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  color: var(--muted);
  font-size: 13px;
}

/* ===== Responsive ===== */
@media (min-width: 700px) {
  body { padding: 20px ; background: linear-gradient(135deg, #c8dc, #bcc4b4); }
  .app-shell { min-height: calc(100vh - 40px); border-radius: 32px; overflow: hidden; }
  .bottom-nav { bottom: 20px; border-radius:   32px 32px; }
}

/* ===== Scrollbar hide ===== */
::-webkit-scrollbar { width: ; height: ; }
