:root {
  --bg: #f3efe6;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --text: #1f231e;
  --muted: #667164;
  --line: rgba(35, 51, 29, 0.12);
  --accent: #1c8f45;
  --accent-deep: #0f6b31;
  --accent-soft: #dff4d8;
  --danger: #d9485f;
  --danger-soft: #ffe6ea;
  --shadow: 0 24px 60px rgba(37, 49, 31, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(28, 143, 69, 0.16), transparent 32%),
    radial-gradient(circle at right center, rgba(244, 183, 63, 0.18), transparent 24%),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 100%);
}

img {
  display: block;
  width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1340px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 26px;
}

.hero-copy,
.hero-panel,
.composer-card,
.feed-wrap {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 38px;
  border-radius: 36px;
}

.eyebrow,
.section-kicker,
.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent-deep);
}

.hero h1 {
  margin: 12px 0 14px;
  max-width: 12ch;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.hero p {
  margin: 0;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.hero-stats div,
.panel-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
}

.hero-stats div {
  padding: 18px;
}

.hero-stats strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.25rem;
}

.hero-stats span,
.panel-text,
.section-copy,
.form-note {
  color: var(--muted);
}

.hero-panel {
  border-radius: 36px;
  padding: 18px;
}

.panel-card {
  height: 100%;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(223, 244, 216, 0.9), rgba(255, 252, 244, 0.95)),
    white;
}

.panel-card h2 {
  margin: 8px 0 12px;
  font-size: 2rem;
  line-height: 1.05;
}

.rule-pill {
  display: inline-flex;
  margin-top: 22px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #16331f;
  color: #f2fbec;
  font-size: 0.92rem;
  font-weight: 700;
}

.layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.composer-card,
.feed-wrap {
  border-radius: 28px;
  padding: 24px;
}

.section-heading,
.feed-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.section-heading h2,
.feed-header h2 {
  margin: 8px 0 0;
  font-size: 1.6rem;
  line-height: 1.15;
}

.deal-form {
  margin-top: 22px;
}

.field-row {
  margin-bottom: 16px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 15px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input:focus,
textarea:focus {
  border-color: rgba(28, 143, 69, 0.45);
  box-shadow: 0 0 0 5px rgba(28, 143, 69, 0.12);
}

textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 0;
}

.primary-button,
.comment-form button,
.toggle-comments {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.primary-button:hover,
.comment-form button:hover,
.toggle-comments:hover,
.vote-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  padding: 14px 20px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: white;
}

.feed-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.feed {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.empty-state {
  padding: 48px 26px;
  border-radius: 24px;
  border: 1px dashed rgba(35, 51, 29, 0.16);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  color: var(--muted);
}

.deal-card {
  display: grid;
  grid-template-columns: 78px 210px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(35, 51, 29, 0.08);
  box-shadow: 0 16px 40px rgba(38, 50, 31, 0.08);
}

.vote-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.vote-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  color: var(--accent-deep);
  font-size: 1.05rem;
  cursor: pointer;
}

.score-stack {
  text-align: center;
}

.score {
  display: block;
  font-size: 1.6rem;
}

.score-label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.deal-image-wrap {
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(19, 103, 50, 0.12), rgba(246, 196, 68, 0.16)),
    #f4f7f1;
}

.deal-image {
  height: 100%;
  object-fit: cover;
}

.deal-body {
  min-width: 0;
}

.deal-topline,
.price-row,
.deal-footer,
.poster-row,
.action-row {
  display: flex;
  align-items: center;
}

.deal-topline,
.price-row,
.deal-footer {
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.deal-topline-left {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.time-badge,
.location-badge,
.seller-badge {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.time-badge,
.location-badge {
  background: #f5f2e8;
  color: #655d4f;
}

.seller-badge {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.deal-title {
  margin: 14px 0 12px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.18;
}

.deal-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.deal-business {
  color: var(--muted);
  font-weight: 700;
}

.deal-description {
  margin: 14px 0 18px;
  color: #505b4f;
  line-height: 1.7;
}

.poster-row {
  gap: 8px;
  color: var(--muted);
}

.toggle-comments {
  padding: 10px 14px;
  background: #17311e;
  color: #f5fbef;
}

.comments-panel {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(35, 51, 29, 0.08);
}

.comments-panel.open {
  display: block;
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.comment-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f6f7f1;
  border: 1px solid rgba(35, 51, 29, 0.07);
}

.comment-item strong {
  display: block;
  margin-bottom: 4px;
}

.comment-item p {
  margin: 0;
  color: #4f5b4d;
  line-height: 1.55;
}

.comment-form {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 10px;
}

.comment-form button {
  padding: 12px 16px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  padding: 14px 16px;
  border-radius: 16px;
  color: white;
  background: rgba(20, 33, 23, 0.92);
  box-shadow: var(--shadow);
}

@media (max-width: 1100px) {
  .hero,
  .layout,
  .deal-card {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel,
  .composer-card,
  .feed-wrap {
    border-radius: 24px;
  }

  .deal-card {
    gap: 14px;
  }

  .vote-column {
    flex-direction: row;
    justify-content: flex-start;
  }

  .deal-image-wrap {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 18px, 100%);
    padding-top: 18px;
  }

  .hero-copy,
  .hero-panel,
  .composer-card,
  .feed-wrap {
    padding: 18px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-stats,
  .two-col,
  .comment-form,
  .section-heading,
  .feed-header,
  .form-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .comment-form {
    display: grid;
  }

  .deal-price {
    font-size: 1.55rem;
  }
}
