/* =========================================================
   Management, wallet, coupons, addresses, reviews
   ========================================================= */

.wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--lime-soft);
  border: 1px solid rgba(23, 63, 46, 0.1);
  font-size: 9px;
  color: var(--muted);
}.wallet-chip strong {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 500;
  color: var(--forest);
}

/* ---------------- coupons ---------------- */

.coupon-page,
.wallet-page,
.admin-management,
.settings-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.coupon-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 34px 38px;
  border-radius: var(--radius-lg);
  background: var(--forest);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.coupon-hero::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  border: 1px solid rgba(217, 236, 155, 0.14);
  right: -80px;
  top: -150px;
  box-shadow: 0 0 0 50px rgba(217, 236, 155, 0.025);
}

.coupon-hero h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin: 10px 0;
}

.coupon-hero .eyebrow {
  color: rgba(246, 242, 231, 0.45);
}

.coupon-hero p:not(.eyebrow) {
  font-size: 10.5px;
  color: rgba(246, 242, 231, 0.58);
  max-width: 480px;
  line-height: 1.8;
}

.coupon-hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: none;
  position: relative;
  z-index: 2;
}

.coupon-hero-side > span {
  font-size: 8.5px;
  color: rgba(246, 242, 231, 0.5);
}

.coupon-hero-side > strong {
  font-family: var(--font-num);
  font-size: 44px;
  font-weight: 400;
  color: var(--lime);
  line-height: 1.1;
}

.coupon-hero-side > strong small {
  font-size: 11px;
  margin-left: 3px;
}

.coupon-hero-side .btn {
  margin-top: 9px;
}

.coupon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.coupon-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 22px 18px 22px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.coupon-card::before {
  content: "";
  position: absolute;
  left: 104px;
  top: 10px;
  bottom: 10px;
  border-left: 1px dashed var(--line-strong);
}

.coupon-cut {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f3efe3;
  left: 96px;
  z-index: 2;
}

.coupon-cut-top {
  top: -10px;
}

.coupon-cut-bottom {
  bottom: -10px;
}

.coupon-value {
  font-family: var(--font-num);
  font-size: 38px;
  line-height: 1;
  color: var(--clay);
  letter-spacing: -0.04em;
  text-align: center;
}

.coupon-value small {
  font-size: 15px;
  margin-right: 1px;
}

.coupon-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.coupon-info > span {
  font-size: 8px;
  color: var(--muted);
}

.coupon-info h3 {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.35;
  margin: 2px 0 3px;
}

.coupon-info p {
  font-size: 8px;
  color: var(--muted-2);
  line-height: 1.55;
  margin-bottom: 8px;
}

.coupon-card .btn {
  justify-self: start;
  grid-column: 2;
}

.checkout-new-address[hidden] {
  display: none;
}

.coupon-card.is-claimed {
  opacity: 0.7;
}

.coupon-card.is-claimed .coupon-value {
  color: var(--muted-2);
}

.coupon-rules {
  background: var(--lime-soft);
  border-color: rgba(23, 63, 46, 0.08);
}

.coupon-rules h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 4px 0 13px;
}

.coupon-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.coupon-rule-grid > div {
  display: flex;
  flex-direction: column;
}

.coupon-rule-grid span {
  font-family: var(--font-num);
  font-size: 9px;
  color: var(--clay);
}

.coupon-rule-grid strong {
  font-size: 10.5px;
  margin: 3px 0;
}

.coupon-rule-grid p {
  font-size: 8.5px;
  color: rgba(23, 63, 46, 0.62);
  line-height: 1.7;
}

/* ---------------- wallet ---------------- */

.wallet-hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  background: var(--forest);
  color: var(--cream);
  overflow: hidden;
  position: relative;
}

.wallet-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -180px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(217, 236, 155, 0.12);
  box-shadow: 0 0 0 60px rgba(217, 236, 155, 0.02);
}

.wallet-balance .eyebrow {
  color: rgba(246, 242, 231, 0.45);
}

.wallet-balance > span {
  display: block;
  font-size: 9px;
  color: rgba(246, 242, 231, 0.55);
  margin-top: 13px;
}

.wallet-balance > strong {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(44px, 5vw, 62px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--lime);
  letter-spacing: -0.03em;
}

.wallet-balance > strong small {
  font-size: 18px;
  margin-right: 4px;
  color: rgba(246, 242, 231, 0.55);
}

.wallet-balance > p {
  font-size: 9px;
  color: rgba(246, 242, 231, 0.45);
  margin-top: 8px;
}

.wallet-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.wallet-side > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.wallet-side span {
  font-size: 8.5px;
  color: rgba(246, 242, 231, 0.5);
}

.wallet-side strong {
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 500;
  color: var(--cream);
}

.wallet-side strong small {
  font-size: 8px;
  margin-left: 2px;
  color: rgba(246, 242, 231, 0.45);
}

.wallet-side .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.wallet-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.recharge-panel h3,
.wallet-coupons h3,
.wallet-logs h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 4px 0 14px;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}

.quick-amounts button {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 0;
  font-family: var(--font-num);
  font-size: 10px;
  color: var(--ink-soft);
}

.quick-amounts button:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.wallet-coupons {
  min-width: 0;
}

.wallet-coupon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.wallet-coupon:last-child {
  border-bottom: 0;
}

.wallet-coupon-value {
  font-family: var(--font-num);
  font-size: 19px;
  color: var(--clay);
  width: 54px;
  flex: none;
}

.wallet-coupon > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  min-width: 0;
}

.wallet-coupon strong {
  font-size: 9.5px;
}

.wallet-coupon > div span {
  font-size: 8px;
  color: var(--muted);
}

.wallet-coupon.is-used {
  opacity: 0.55;
}

.wallet-logs {
  grid-column: 1 / -1;
}

.wallet-log-list {
  display: flex;
  flex-direction: column;
}

.wallet-log {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.wallet-log:last-child {
  border-bottom: 0;
}

.wallet-log-icon {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--moss);
}

.wallet-log-icon .icon {
  width: 14px;
  height: 14px;
}

.wallet-log > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  min-width: 0;
}

.wallet-log strong {
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-log > div span {
  font-size: 8px;
  color: var(--muted);
}

.wallet-log em {
  font-family: var(--font-num);
  font-style: normal;
  font-size: 12px;
  color: var(--clay);
}

.wallet-log.is-in em {
  color: var(--moss);
}

/* ---------------- profile additions ---------------- */

.profile-wallet-btn {
  margin-left: 10px;
  margin-bottom: 6px;
}

.address-panel {
  grid-column: span 1;
}

.address-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 13px;
}

.address-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
  background: var(--white);
}

.address-card.is-default {
  border-color: rgba(60, 96, 73, 0.35);
  background: rgba(217, 236, 155, 0.08);
}

.address-card-head {
  display: flex;
  align-items: center;
  gap: 7px;
}

.address-card-head strong {
  font-size: 10px;
}

.address-card-head > span {
  font-size: 8.5px;
  color: var(--muted);
}

.address-card-head .badge {
  margin-left: auto;
  font-size: 7px;
  padding: 2px 6px;
}

.address-card p {
  font-size: 8.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 3px;
}

.address-actions {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.address-actions button {
  font-size: 8px;
  color: var(--moss);
}

.address-actions button.danger {
  color: #a8452a;
}

.address-form {
  border-top: 1px dashed var(--line);
  padding-top: 11px;
}

.address-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.address-form-grid .full {
  grid-column: span 2;
}

.address-default-check {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ---------------- admin management ---------------- */

.management-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.management-summary > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.management-summary > div > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  color: var(--muted);
}

.management-summary > div > span .icon {
  width: 13px;
  height: 13px;
}

.management-summary > div > strong {
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.management-summary > div > strong small {
  font-size: 10px;
  color: var(--muted);
  margin-left: 2px;
}

.management-summary > div > em {
  font-style: normal;
  font-size: 7.5px;
  color: var(--muted-2);
}

.management-summary > div.dark {
  background: var(--forest);
  border-color: transparent;
  color: var(--cream);
}

.management-summary > div.dark > span,
.management-summary > div.dark > em {
  color: rgba(246, 242, 231, 0.5);
}

.management-summary > div.dark > strong {
  color: var(--lime);
}

.management-form-panel {
  padding: 22px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 12px;
}

.admin-form-grid .full {
  grid-column: 1 / -1;
}

.admin-form-grid .field {
  margin-bottom: 8px;
}

.admin-subform {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 12px;
  align-items: end;
  background: var(--cream);
  border-radius: 10px;
  padding: 11px 14px;
  margin-top: 4px;
}

.admin-subform > div {
  display: flex;
  flex-direction: column;
  padding-bottom: 8px;
}

.admin-subform strong {
  font-size: 10px;
}

.admin-subform span {
  font-size: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.admin-form .field {
  margin-bottom: 8px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 12px;
  margin-top: 5px;
  border-top: 1px solid var(--line);
}

.admin-feature-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.admin-feature-row .btn {
  margin-left: auto;
}

.cms-status-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: var(--ink-soft);
  cursor: pointer;
}

.cms-status-toggle input {
  display: none;
}

.cms-status-toggle i {
  width: 32px;
  height: 18px;
  border-radius: 99px;
  background: rgba(28, 43, 33, 0.14);
  position: relative;
  transition: background 0.2s;
}

.cms-status-toggle i::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.cms-status-toggle input:checked + i {
  background: var(--moss);
}

.cms-status-toggle input:checked + i::after {
  transform: translateX(14px);
}

.farm-list {
  display: flex;
  flex-direction: column;
}

.farm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.farm-row:last-child {
  border-bottom: 0;
}

.farm-row > img {
  width: 68px;
  height: 52px;
  border-radius: 9px;
  object-fit: cover;
  flex: none;
}

.farm-row-main {
  flex: 1;
  min-width: 0;
}

.farm-row-title {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.farm-row-title h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.farm-row-title .badge {
  font-size: 7px;
  padding: 2px 6px;
}

.mini-type {
  font-size: 7.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
}

.farm-row-main > p {
  font-size: 8.5px;
  color: var(--muted);
  margin: 2px 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.farm-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.farm-row-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 8px;
  color: var(--muted);
}

.farm-row-meta .icon {
  width: 10px;
  height: 10px;
}

.plan-editor {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.plan-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.plan-editor-head > div {
  display: flex;
  flex-direction: column;
}

.plan-editor-head strong {
  font-size: 10.5px;
}

.plan-editor-head span {
  font-size: 8px;
  color: var(--muted);
}

.plan-edit-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.plan-edit-head {
  display: grid;
  gap: 5px;
  align-items: center;
  margin: 2px 0 4px;
  padding: 0 1px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: .02em;
}

.plan-edit-head > span:last-child {
  text-align: right;
}

.plan-edit-head-product {
  grid-template-columns: 62px 1.2fr 70px 90px 80px 1.4fr 30px;
}

.plan-edit-row {
  display: grid;
  grid-template-columns: 62px 1.2fr 70px 90px 80px 1.4fr 30px;
  gap: 5px;
  align-items: center;
}

.plan-edit-row input {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 8.5px;
  background: var(--white);
  min-width: 0;
}

.plan-edit-row input:focus {
  outline: 0;
  border-color: var(--forest);
}

.plan-edit-row .icon-btn {
  width: 28px;
  height: 28px;
}

.plan-edit-row .icon-btn .icon {
  width: 12px;
  height: 12px;
}

.row-actions {
  display: flex;
  gap: 4px;
}

.table-product {
  max-width: 230px;
}

.table-user > span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.table-user small {
  font-size: 7.5px;
  color: var(--muted);
}

.service-table-name {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 270px;
  white-space: normal;
}

.service-table-name .service-icon {
  width: 30px;
  height: 30px;
  flex: none;
}

.service-table-name > div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.service-table-name strong {
  font-size: 9.5px;
}

.service-table-name small {
  font-size: 7.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}

.camera-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.camera-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}

.camera-card.is-offline {
  opacity: 0.62;
}

.camera-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.camera-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(16, 47, 34, 0.4));
}

.camera-card-media .live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 7px;
}

.camera-card.is-offline .live-badge {
  background: rgba(28, 43, 33, 0.5);
}

.camera-area {
  position: absolute;
  right: 8px;
  bottom: 7px;
  z-index: 2;
  font-size: 7px;
  color: rgba(255, 255, 255, 0.7);
}

.camera-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
}

.camera-card-body > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.4;
}

.camera-card-body strong {
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.camera-card-body span {
  font-size: 7.5px;
  color: var(--muted);
}

.camera-card-body .badge {
  font-size: 7px;
  padding: 2px 6px;
}

.camera-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 9px;
}

.camera-stream {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 7px;
  color: var(--muted);
}

.camera-stream .icon {
  width: 10px;
  height: 10px;
}

.finance-summary > div > strong {
  font-size: 23px;
}

.finance-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 14px;
  align-items: start;
}

.finance-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 160px;
  padding: 10px 4px 0;
}

.finance-bar-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  height: 100%;
}

.finance-bar-day .finance-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 130px;
  padding: 0;
}

.finance-bar-day .finance-bars span {
  width: 10px;
  border-radius: 3px 3px 0 0;
}

.bar-in {
  background: var(--leaf);
}

.bar-out {
  background: var(--clay);
}

.finance-bar-day > span {
  font-size: 7px;
  color: var(--muted-2);
}

.chart-legend .legend-in::before,
.chart-legend .legend-out::before {
  content: "";
  width: 10px;
  height: 8px;
  border-radius: 2px;
  background: var(--leaf);
}

.chart-legend .legend-out::before {
  background: var(--clay);
}

.finance-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  color: var(--muted-2);
}

.finance-note .icon {
  width: 11px;
  height: 11px;
}

.live-clock {
  right: 60px !important;
}

.finance-tip-panel h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 4px 0 12px;
}

.finance-tip {
  display: flex;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.finance-tip > span {
  width: 25px;
  height: 25px;
  flex: none;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--lime-soft);
  color: var(--moss);
}

.finance-tip > span .icon {
  width: 12px;
  height: 12px;
}

.finance-tip strong {
  display: block;
  font-size: 9px;
}

.finance-tip p {
  font-size: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.finance-tip-panel .btn {
  margin-top: 11px;
}

.finance-in {
  color: #4d7a48;
}

.finance-out {
  color: var(--clay);
}

.inline-balance-form {
  display: flex;
  align-items: center;
  gap: 4px;
}

.inline-balance-form input {
  width: 72px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 8px;
  min-height: 26px;
}

.danger-text {
  color: #a8452a;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 330px;
  gap: 14px;
  align-items: start;
}

.settings-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-divider {
  height: 1px;
  background: var(--line);
  margin: 8px 0 14px;
}

.settings-links {
  display: flex;
  flex-direction: column;
}

.settings-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.settings-links button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.settings-links button > .icon:first-child {
  width: 15px;
  height: 15px;
  color: var(--moss);
}

.settings-links button > .icon:last-child {
  width: 11px;
  height: 11px;
  color: var(--muted-2);
  margin-left: auto;
}

.settings-links a:last-child {
  border-bottom: 0;
}

.settings-links > a > .icon:first-child {
  width: 15px;
  height: 15px;
  color: var(--moss);
}

.settings-links > a > .icon:last-child {
  width: 11px;
  height: 11px;
  color: var(--muted-2);
  margin-left: auto;
}

.settings-links div {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.settings-links strong {
  font-size: 9.5px;
}

.settings-links span {
  font-size: 8px;
  color: var(--muted);
}

.settings-site-preview .site-preview-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  background: var(--cream);
  border-radius: 9px;
  margin-bottom: 10px;
}

.site-preview-card img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-preview-card div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  min-width: 0;
}

.site-preview-card strong {
  font-size: 10px;
}

.site-preview-card span {
  font-size: 7.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 8.5px;
}

.settings-stat:last-child {
  border-bottom: 0;
}

.settings-stat span {
  color: var(--muted);
}

.settings-stat strong {
  font-size: 9px;
}

.settings-note {
  background: var(--lime-soft);
  border-color: rgba(23, 63, 46, 0.08);
}

.settings-note > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--forest);
  color: var(--lime);
  margin-bottom: 9px;
}

.settings-note > span .icon {
  width: 14px;
  height: 14px;
}

.settings-note h4 {
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 4px;
}

.settings-note p {
  font-size: 8.5px;
  line-height: 1.7;
  color: rgba(23, 63, 46, 0.62);
}

/* ---------------- review ---------------- */

.review-button-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.review-card {
  border: 1px solid rgba(217, 164, 65, 0.24);
  background: rgba(244, 232, 201, 0.25);
  border-radius: 12px;
  padding: 15px;
}

.review-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.review-stars {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.review-card p {
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.review-card small {
  display: block;
  margin-top: 6px;
  font-size: 8px;
  color: var(--muted-2);
}

.review-form-stars {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
}

.review-form-stars button {
  font-size: 25px;
  color: var(--line-strong);
  transition: color 0.2s, transform 0.2s;
}

.review-form-stars button.is-active {
  color: var(--gold);
  transform: scale(1.05);
}

/* ---------------- checkout additions ---------------- */

.checkout-section-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 14px 0 6px;
}

.checkout-address-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.checkout-address-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.checkout-address-option:hover,
.checkout-address-option.is-selected {
  border-color: var(--forest);
  background: rgba(217, 236, 155, 0.08);
}

.checkout-address-option input {
  display: none;
}

.address-radio {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  flex: none;
  margin-top: 2px;
  position: relative;
}

.checkout-address-option input:checked + .address-radio {
  border-color: var(--forest);
}

.checkout-address-option input:checked + .address-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--forest);
}

.checkout-address-option > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.checkout-address-option strong {
  font-size: 9.5px;
}

.checkout-address-option strong small {
  font-size: 8px;
  color: var(--muted);
  margin-left: 4px;
  font-weight: 400;
}

.checkout-address-option p {
  font-size: 8px;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.address-default {
  font-size: 7px;
  color: var(--moss);
  border: 1px solid rgba(60, 96, 73, 0.25);
  border-radius: 3px;
  padding: 1px 4px;
  flex: none;
}

.checkout-new-address {
  margin-top: 5px;
  padding: 8px 10px;
  background: var(--cream);
  border-radius: 8px;
}

.checkout-new-address .checkout-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 0;
}

.checkout-new-address .checkout-fields .field {
  margin-bottom: 0;
}

.checkout-new-address > .field {
  margin-bottom: 2px;
}

.checkout-coupon {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 4px 0 8px;
}

.checkout-coupon .field {
  flex: 1;
  margin-bottom: 0;
}

.checkout-coupon .text-link {
  flex: none;
  font-size: 8.5px;
  padding-bottom: 10px;
}

.pay-balance {
  background: var(--forest);
}

.pay-balance .icon {
  width: 12px;
  height: 12px;
  color: var(--lime);
}

.pay-option strong {
  font-size: 8px;
}

.demo-login-farmer {
  grid-column: 1 / -1;
}

.plan-option.is-soldout {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-reviews-section .section-head-side .rating {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 0;
}

.order-review-panel {
  margin-top: 14px;
}

.review-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.review-card-head > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.review-card-head > div strong {
  font-size: 10px;
}

.review-card-head > small {
  margin-left: auto;
  font-size: 7.5px;
  color: var(--muted-2);
}

.so-result-image,
.task-result-image {
  display: block;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 7px;
  margin-top: 7px;
  border: 1px solid var(--line);
}

.live-camera-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 12px 0;
}

.live-camera-list button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-align: left;
}

.live-camera-list button.is-active {
  border-color: var(--forest);
  background: rgba(217, 236, 155, 0.1);
}

.live-camera-list img {
  width: 42px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
}

.live-camera-list span {
  font-size: 8.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-nav-sheet {
  padding: 24px 20px 20px;
}

.mobile-nav-sheet .btn-block {
  margin-top: 10px;
}

.mobile-nav-sheet .mobile-nav-logout {
  color: var(--muted);
  margin-top: 6px;
}

.install-help {
  padding: 26px 24px 22px;
}

.install-help-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.install-mark {
  width: 62px;
  height: 62px;
  flex: none;
  border-radius: 17px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(23, 63, 46, 0.16);
}

.install-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.install-help h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  margin: 4px 0 7px;
  line-height: 1.25;
}

.install-help-head p:last-child {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

.install-wechat-note {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  padding: 10px 11px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(217, 164, 65, 0.12);
  color: #8a6427;
  font-size: 9px;
  line-height: 1.7;
}

.install-wechat-note .icon {
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 1px;
}

.install-steps {
  border-top: 1px solid var(--line);
  padding-top: 4px;
  margin-bottom: 18px;
}

.install-steps > div {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.install-steps > div > span {
  font-family: var(--font-num);
  font-size: 10px;
  color: var(--clay);
  flex: none;
  padding-top: 1px;
}

.install-steps strong {
  display: block;
  font-size: 10px;
  margin-bottom: 3px;
}

.install-steps p {
  font-size: 9px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

.install-steps code {
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--cream);
  color: var(--moss);
}

button.mobile-nav-link {
  border: 0;
  background: transparent;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
}

button.mobile-nav-link span {
  display: block;
}

.mobile-nav-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mobile-nav-sheet-head h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  margin-top: 4px;
}

.mobile-nav-grid {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.mobile-nav-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.mobile-nav-grid a .icon:first-child {
  width: 17px;
  height: 17px;
  color: var(--moss);
}

.mobile-nav-grid a .icon:last-child {
  width: 12px;
  height: 12px;
  margin-left: auto;
  color: var(--muted-2);
}

.task-result-image {
  max-width: 100%;
  margin-top: 6px;
}

.review-card-head .review-stars {
  font-size: 9px;
}

@media (max-width: 720px) {
  .checkout-coupon {
    flex-direction: column;
    align-items: stretch;
  }

  .checkout-coupon .text-link {
    padding-bottom: 0;
  }

  .product-review-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- responsive ---------------- */

@media (max-width: 1180px) {
  .admin-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .coupon-grid {
    grid-template-columns: 1fr 1fr;
  }

  .camera-grid {
    grid-template-columns: 1fr 1fr;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .settings-note {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .wallet-chip > span {
    display: none;
  }

  .wallet-grid {
    grid-template-columns: 1fr;
  }

  .wallet-hero {
    grid-template-columns: 1fr;
  }

  .wallet-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .wallet-side .btn {
    grid-column: span 2;
  }

  .coupon-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .coupon-hero-side {
    align-items: flex-start;
  }

  .management-summary {
    grid-template-columns: 1fr 1fr;
  }

  .finance-grid {
    grid-template-columns: 1fr;
  }

  .admin-subform {
    grid-template-columns: 1fr 1fr;
  }

  .admin-subform > div {
    grid-column: span 2;
  }

  .coupon-rule-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wallet-chip {
    display: none;
  }

  .coupon-grid {
    grid-template-columns: 1fr;
  }

  .coupon-card {
    grid-template-columns: 78px 1fr;
    padding-left: 16px;
  }

  .coupon-card::before {
    left: 88px;
  }

  .coupon-cut {
    left: 80px;
  }

  .coupon-value {
    font-size: 32px;
  }

  .wallet-hero {
    padding: 24px 22px;
  }

  .wallet-side {
    grid-template-columns: 1fr;
  }

  .wallet-side .btn {
    grid-column: auto;
    width: 100%;
  }

  .management-summary {
    gap: 8px;
  }

  .management-summary > div {
    padding: 12px;
  }

  .management-summary > div > strong {
    font-size: 22px;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-grid .full {
    grid-column: auto;
  }

  .admin-subform {
    grid-template-columns: 1fr;
  }

  .admin-subform > div {
    grid-column: auto;
  }

  .plan-edit-row {
    grid-template-columns: 54px 1fr 60px 70px;
  }

  .plan-edit-row input:nth-child(5),
  .plan-edit-row input:nth-child(6) {
    display: none;
  }

  .camera-grid {
    grid-template-columns: 1fr;
  }

  .farm-row {
    flex-wrap: wrap;
  }

  .farm-row > img {
    width: 58px;
    height: 46px;
  }

  .farm-row > .btn {
    margin-left: 70px;
  }

  .settings-side {
    grid-template-columns: 1fr;
  }

  .settings-note {
    grid-column: auto;
  }

  .inline-balance-form input {
    width: 58px;
  }

  .profile-wallet-btn {
    margin-left: auto;
  }
}

.application-list { display: grid; gap: 14px; }
.farmer-application-card { border: 1px solid rgba(31,53,43,.12); border-radius: 12px; padding: 18px; background: #fffdf7; }
.application-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.application-head h3 { margin: 4px 0; font-family: var(--font-serif); font-size: 20px; color: var(--forest); }
.application-head small { color: var(--muted); font-size: 11px; }
.application-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; color: var(--muted); font-size: 11px; }
.application-meta span { display: inline-flex; align-items: center; gap: 4px; }
.application-directions { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.application-directions span { padding: 4px 9px; border-radius: 12px; background: rgba(31,77,58,.08); color: var(--forest); font-size: 10px; }
.application-address, .application-desc, .application-note { margin: 8px 0; color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.application-desc.muted, .application-note { color: var(--muted); }
.application-note { padding: 8px 10px; background: rgba(183,101,69,.08); border-radius: 8px; }
.application-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.application-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.application-files a { width: 96px; border: 1px solid rgba(31,53,43,.12); border-radius: 8px; overflow: hidden; background: #fff; text-decoration: none; }
.application-files img { width: 100%; height: 68px; object-fit: cover; display: block; }
.application-files a span { display: block; padding: 5px 6px; color: var(--muted); font-size: 9px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.application-files small { color: var(--muted); font-size: 10px; }

.cost-table .cost-input { width: 100px; padding: 7px 9px; border: 1px solid rgba(31,53,43,.16); border-radius: 7px; background: #fff; font-size: 12px; }
.profit-input { display: flex; align-items: center; gap: 5px; }
.profit-input input { width: 74px; padding: 7px 9px; border: 1px solid rgba(31,53,43,.16); border-radius: 7px; background: #fff; font-size: 12px; }
.profit-input span { color: var(--muted); font-size: 11px; }
.cost-table td small { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }
.inline-field { display: flex; align-items: center; gap: 8px; margin: 0; }
.inline-field > span { white-space: nowrap; color: var(--muted); font-size: 11px; }
.inline-field select { min-width: 150px; padding: 8px 10px; border: 1px solid rgba(31,53,43,.16); border-radius: 8px; background: #fff; }
@media (max-width: 760px) { .cost-table { min-width: 760px; } .panel-head-inline { align-items: flex-start; gap: 10px; } }

.bulk-profit { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin: 10px 0 14px; border: 1px dashed rgba(31,53,43,.18); border-radius: 9px; background: rgba(31,77,58,.03); }
.bulk-profit label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.bulk-profit label span { white-space: nowrap; }
.bulk-profit input { width: 74px; padding: 7px 8px; border: 1px solid rgba(31,53,43,.16); border-radius: 7px; background: #fff; font-size: 12px; }
.bulk-profit em { font-style: normal; color: var(--muted); font-size: 11px; }
.bulk-profit small { color: var(--muted); font-size: 10px; }

.cost-spec-row > td { background: rgba(31,77,58,.025); padding: 10px 12px 14px; }
.spec-cost-list { display: grid; gap: 7px; }
.spec-cost-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.spec-cost-head span { color: var(--forest); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.spec-cost-head small { color: var(--muted); font-size: 9px; }
.spec-cost-item { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 7px 9px; border: 1px solid rgba(31,53,43,.1); border-radius: 8px; background: #fff; font-size: 10px; }
.spec-cost-item > strong { min-width: 74px; color: var(--ink); font-size: 11px; }
.spec-cost-item > span { color: var(--muted); }
.spec-cost-item label { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.spec-cost-item input { width: 68px; padding: 5px 6px; border: 1px solid rgba(31,53,43,.14); border-radius: 5px; font-size: 10px; }
.spec-cost-item em { font-style: normal; color: var(--muted); }
.spec-settlement { margin-left: auto; }
.spec-settlement strong { color: var(--forest); }
.shelf-spec-cost { display: block; color: var(--muted); font-size: 9px; line-height: 1.6; }

.panel-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cost-product-row > td { background: #fff; }
.cost-product-row .muted { color: var(--muted); font-size: 11px; }
@media (max-width: 760px) { .panel-head-actions { width: 100%; justify-content: flex-start; } }

.admin-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.admin-list-search {
  display: flex;
  align-items: center;
  gap: 7px;
  width: min(360px, 100%);
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(31, 53, 43, .14);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--muted);
}

.admin-list-search .icon {
  width: 14px;
  height: 14px;
  flex: none;
}

.admin-list-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}

.admin-list-search input::placeholder {
  color: var(--muted);
}

.admin-list-count {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

tbody tr[hidden] {
  display: none !important;
}

.service-bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 53, 43, .12);
  border-radius: 10px;
  background: rgba(255, 253, 248, .7);
}

.service-bulk-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
}

.service-bulk-info strong {
  font-size: 11px;
}

.service-bulk-info span {
  color: var(--muted);
  font-size: 9px;
}

.service-bulk-adjust {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
}

.service-bulk-adjust select,
.service-bulk-adjust input {
  min-height: 30px;
  border: 1px solid rgba(31, 53, 43, .14);
  border-radius: 6px;
  background: #fffdf8;
  padding: 4px 7px;
  font-size: 10px;
}

.service-bulk-adjust input {
  width: 92px;
}

.service-select-cell {
  width: 30px;
  text-align: center;
}

.service-select-cell input {
  width: 14px;
  height: 14px;
  accent-color: var(--forest);
}

.service-price-edit { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.service-price-edit input { width: 88px; padding: 6px 7px; border: 1px solid rgba(31,53,43,.14); border-radius: 6px; background: #fffdf8; font-size: 11px; }
.service-price-edit span { color: var(--muted); font-size: 10px; }
