:root {
  --mq-green: #08745f;
  --mq-green-dark: #045447;
  --mq-green-soft: #e9f7f3;
  --mq-gold: #c7a34a;
  --mq-gold-soft: #fff8e8;
  --mq-red: #c8424a;
  --mq-red-soft: #fff0f1;
  --mq-ink: #17312b;
  --mq-muted: #6c7d78;
  --mq-line: #dce9e5;
  --mq-card: #ffffff;
  --mq-bg: #f5faf8;
  --mq-shadow: 0 14px 40px rgba(7, 79, 65, .10);
  --mq-radius: 22px;
}

html,
body {
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 0%, rgba(199,163,74,.12), transparent 28%),
    linear-gradient(180deg, #fbfefd 0%, var(--mq-bg) 100%) !important;
  color: var(--mq-ink) !important;
  font-family: Vazirmatn, Tahoma, Arial, sans-serif !important;
}

body,
body * {
  text-shadow: none !important;
}

body div,
body section,
body main,
body header,
body footer,
body nav,
body article,
body aside {
  background-color: transparent !important;
  background-image: none !important;
}

body .page,
body .wrap,
body .container,
body .content {
  width: 100% !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
}

body .card,
body .box,
body .panel,
body .section-card,
body .credit-card,
body .welcome-card,
body .item,
body form,
body table,
body .filters,
body .jg-pwa-card {
  background: var(--mq-card) !important;
  border: 1px solid var(--mq-line) !important;
  border-radius: var(--mq-radius) !important;
  box-shadow: var(--mq-shadow) !important;
  color: var(--mq-ink) !important;
}

body .topbar,
body .head,
body .header {
  background: rgba(255,255,255,.94) !important;
  border: 1px solid var(--mq-line) !important;
  border-right: 5px solid var(--mq-gold) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(7,79,65,.08) !important;
  backdrop-filter: blur(14px);
}

body h1,
body h2,
body h3,
body h4,
body strong,
body .title,
body .brand {
  color: var(--mq-ink) !important;
}

body p,
body small,
body .muted,
body .subtitle,
body .hint,
body label {
  color: var(--mq-muted) !important;
}

body a {
  color: var(--mq-green-dark) !important;
}

body input,
body select,
body textarea {
  min-height: 48px;
  background: #fff !important;
  color: var(--mq-ink) !important;
  border: 1px solid #cfe1dc !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(7,79,65,.04) !important;
  outline: none !important;
}

body input:focus,
body select:focus,
body textarea:focus {
  border-color: var(--mq-green) !important;
  box-shadow: 0 0 0 4px rgba(8,116,95,.12) !important;
}

body button,
body .btn,
body input[type="submit"],
body a.btn {
  min-height: 46px;
  background: linear-gradient(135deg, var(--mq-green), var(--mq-green-dark)) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 9px 22px rgba(8,116,95,.22) !important;
  font-weight: 800 !important;
}

body button:hover,
body .btn:hover,
body input[type="submit"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

body .buy,
body .btn-buy,
body .buy-btn,
body .approved,
body .ok,
body .success {
  background: var(--mq-green-soft) !important;
  color: var(--mq-green-dark) !important;
  border-color: #9ed5c6 !important;
}

body button.buy,
body a.btn-buy,
body .buy-btn {
  background: linear-gradient(135deg, #0b8c70, #05614f) !important;
  color: #fff !important;
  border: 0 !important;
}

body .sell,
body .btn-sell,
body .sell-btn,
body .danger,
body .rejected,
body .bad,
body .error {
  background: var(--mq-red-soft) !important;
  color: #9e2630 !important;
  border-color: #efb9bd !important;
}

body button.sell,
body a.btn-sell,
body .sell-btn,
body .danger {
  background: linear-gradient(135deg, #d9535c, #a92f38) !important;
  color: #fff !important;
  border: 0 !important;
}

body .pending,
body .warn,
body .warning {
  background: var(--mq-gold-soft) !important;
  color: #755712 !important;
  border-color: #ead598 !important;
}

body table {
  overflow: hidden;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body th {
  background: var(--mq-green-soft) !important;
  color: var(--mq-green-dark) !important;
  border-color: var(--mq-line) !important;
}

body td {
  background: #fff !important;
  color: var(--mq-ink) !important;
  border-color: var(--mq-line) !important;
}

body .grid,
body .product-grid,
body .credit-grid {
  gap: 14px !important;
}

body .product-card,
body .trade-row {
  background: #fff !important;
  border: 1px solid var(--mq-line) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 24px rgba(7,79,65,.07) !important;
}

body .product-card:hover {
  border-color: var(--mq-gold) !important;
  box-shadow: 0 13px 32px rgba(7,79,65,.12) !important;
}

.mq-brand-mark {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 11px;
  direction: rtl;
  background: transparent !important;
  margin: 4px auto 16px;
}

.mq-brand-monogram {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--mq-green), var(--mq-green-dark)) !important;
  color: #fff !important;
  border: 2px solid var(--mq-gold) !important;
  box-shadow: 0 9px 24px rgba(8,116,95,.20);
  font-size: 27px;
  font-weight: 900;
}

.mq-brand-copy {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.mq-brand-copy strong {
  color: var(--mq-green-dark) !important;
  font-size: 20px;
  font-weight: 900;
}

.mq-brand-copy small {
  color: #927323 !important;
  font-size: 11px;
  margin-top: 2px;
}

body .brand {
  color: var(--mq-green-dark) !important;
  font-weight: 900 !important;
}

body .logout {
  background: var(--mq-red-soft) !important;
  color: #9e2630 !important;
  border: 1px solid #efb9bd !important;
}

body .bottom-nav {
  background: rgba(255,255,255,.96) !important;
  border: 1px solid var(--mq-line) !important;
  border-top: 3px solid var(--mq-gold) !important;
  border-radius: 22px 22px 0 0 !important;
  box-shadow: 0 -10px 35px rgba(7,79,65,.12) !important;
  backdrop-filter: blur(16px);
}

body .bottom-nav a {
  color: var(--mq-muted) !important;
  border-radius: 13px !important;
}

body .bottom-nav a.active,
body .bottom-nav a:hover {
  background: var(--mq-green-soft) !important;
  color: var(--mq-green-dark) !important;
}

@media (max-width: 720px) {
  body {
    padding-bottom: 86px !important;
  }

  body .page,
  body .wrap,
  body .container,
  body .content {
    padding-inline: 13px !important;
  }

  body .grid,
  body .product-grid,
  body .credit-grid {
    grid-template-columns: 1fr !important;
  }

  body .card,
  body .box,
  body .panel,
  body .section-card,
  body .credit-card,
  body .welcome-card,
  body form {
    border-radius: 18px !important;
  }

  body button,
  body .btn,
  body input[type="submit"] {
    min-height: 50px;
  }

  body .bottom-nav {
    position: fixed !important;
    right: 10px !important;
    left: 10px !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    width: auto !important;
  }
}
