:root {
  --text: #2b241c;
  --muted: #6f655d;
  --surface: rgba(255, 251, 244, 0.86);
  --surface-strong: #fffdf8;
  --primary: #276749;
  --primary-dark: #174430;
  --secondary: #f2b24c;
  --accent: #d26a3c;
  --border: rgba(74, 56, 42, 0.14);
  --shadow: 0 18px 50px rgba(59, 42, 28, 0.12);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(242, 178, 76, 0.34), transparent 25%),
    radial-gradient(circle at bottom right, rgba(39, 103, 73, 0.22), transparent 28%),
    linear-gradient(140deg, #f9f3e6 0%, #f4ede2 48%, #ece4d7 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 48px;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 38px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(31, 91, 61, 0.97), rgba(21, 56, 41, 0.94)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.09), transparent);
  box-shadow: var(--shadow);
}

.hero--company {
  background:
    linear-gradient(135deg, rgba(110, 68, 136, 0.96), rgba(60, 36, 74, 0.94)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent);
}

.hero--admin {
  background:
    linear-gradient(135deg, rgba(43, 88, 163, 0.96), rgba(28, 46, 79, 0.94)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent);
}

.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255, 221, 151, 0.18);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 235, 195, 0.96);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: #fff8ea;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.hero__text {
  margin: 14px 0 0;
  max-width: 650px;
  color: rgba(255, 248, 234, 0.84);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.layout,
.dashboard,
.stats-grid,
.dashboard-grid,
.mini-grid,
.two-columns {
  display: grid;
  gap: 22px;
}

.two-columns,
.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.section-card {
  display: grid;
  gap: 18px;
}

.narrow-card {
  width: min(560px, 100%);
  margin: 0 auto;
}

.card__header h2,
.card__header h3 {
  margin: 0 0 8px;
}

.card__header p,
.topbar__label,
.stat-card__hint,
.empty-state,
.report-card p {
  color: var(--muted);
}

.feature-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 247, 230, 0.96));
}

.accent-card {
  background: linear-gradient(135deg, rgba(255, 244, 237, 0.96), rgba(255, 232, 212, 0.96));
}

.stat-card__label {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.stat-card__value {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.form-grid,
.form-inline {
  display: grid;
  gap: 16px;
}

.form-inline {
  grid-template-columns: 1fr auto;
  align-items: center;
}

label span {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(82, 63, 49, 0.16);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--surface-strong);
  color: var(--text);
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(39, 103, 73, 0.46);
  box-shadow: 0 0 0 4px rgba(39, 103, 73, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--secondary), #ee9734);
  color: #412303;
  box-shadow: 0 12px 24px rgba(242, 178, 76, 0.28);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fef6e8;
}

.card .btn--ghost,
.coupon-item .btn--ghost,
.topbar .btn--ghost {
  background: rgba(39, 103, 73, 0.08);
  color: var(--primary-dark);
}

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

.coupon-store,
.coupon-history {
  display: grid;
  gap: 12px;
}

.chip,
.coupon-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.chip {
  background: rgba(39, 103, 73, 0.08);
  color: var(--primary-dark);
}

.coupon-tag {
  margin-top: 10px;
  background: rgba(210, 106, 60, 0.12);
  color: var(--accent);
}

.coupon-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(82, 63, 49, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.coupon-item h4,
.coupon-item p {
  margin: 0;
}

.coupon-item p {
  margin-top: 6px;
  color: var(--muted);
}

.feedback {
  margin: 0;
}

.feedback--block {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(82, 63, 49, 0.1);
  background: rgba(255, 251, 244, 0.9);
}

.feedback--block.success {
  color: var(--primary-dark);
}

.feedback--block.error {
  color: #9d3026;
}

.empty-state {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(82, 63, 49, 0.2);
  border-radius: var(--radius-md);
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(82, 63, 49, 0.08);
  text-align: left;
  font-size: 0.95rem;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.report-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
}

.mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .stats-grid--3,
  .stats-grid--4,
  .two-columns,
  .dashboard-grid,
  .admin-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }
}

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

  .hero,
  .card {
    padding: 22px;
  }

  .topbar,
  .stats-grid,
  .form-inline,
  .coupon-item {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
