:root {
  --bg: #07110d;
  --panel: rgba(12, 26, 21, 0.86);
  --panel-strong: #0d1f18;
  --moss: #557a46;
  --moss-dark: #233d2b;
  --sky: #72d6ff;
  --white: #f4fbf7;
  --muted: #9daaa4;
  --line: rgba(114, 214, 255, 0.18);
  --danger: #ff5b68;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  background:
    radial-gradient(circle at 15% 8%, rgba(114, 214, 255, 0.20), transparent 28rem),
    radial-gradient(circle at 80% 15%, rgba(85, 122, 70, 0.34), transparent 24rem),
    linear-gradient(135deg, #050807, var(--bg) 52%, #0c1c16);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

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

.hero {
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(13, 31, 24, 0.92), rgba(7, 17, 13, 0.84));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(114, 214, 255, 0.20), transparent 68%);
}

.compact {
  padding: 40px;
}

.badge {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid rgba(114, 214, 255, 0.35);
  border-radius: 999px;
  color: var(--sky);
  background: rgba(114, 214, 255, 0.08);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h2 {
  margin: 0;
  font-size: 24px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero p {
  max-width: 720px;
  font-size: 18px;
}

.hero-actions,
.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  border: 0;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  background: linear-gradient(135deg, var(--moss), #70a85c);
  box-shadow: 0 14px 30px rgba(85, 122, 70, 0.22);
}

.ghost {
  border: 1px solid var(--line);
  background: rgba(114, 214, 255, 0.08);
}

.danger {
  background: rgba(255, 91, 104, 0.14);
  border: 1px solid rgba(255, 91, 104, 0.35);
}

.card {
  margin-top: 24px;
  padding: 34px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 18px;
}

.section-title:first-child {
  margin-top: 0;
}

.no-margin {
  margin: 0;
}

.section-title span {
  color: var(--sky);
  font-weight: 900;
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(114, 214, 255, 0.08);
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 16px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px 15px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.20);
  outline: none;
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(114, 214, 255, 0.11);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
}

.check input {
  width: auto;
  margin-top: 4px;
}

.submit {
  width: 100%;
  margin-top: 8px;
}

.result {
  min-height: 24px;
  font-weight: 800;
}

.ok {
  color: #8de384;
}

.bad {
  color: var(--danger);
}

.hidden {
  display: none;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.muted {
  margin: 6px 0 0;
  color: var(--muted);
}

.applications {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.application {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.18);
}

.app-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.app-head h3 {
  margin: 0;
  font-size: 22px;
}

.pill {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
  background: rgba(114, 214, 255, 0.10);
  color: var(--sky);
  border: 1px solid var(--line);
  white-space: nowrap;
}

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

.field {
  padding: 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
}

.field strong {
  display: block;
  color: var(--sky);
  margin-bottom: 4px;
}

.wide {
  grid-column: 1 / -1;
}

.status-card {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: rgba(114, 214, 255, 0.08);
}

.status-card h3 {
  margin: 12px 0 4px;
  font-size: 26px;
}

.status-aprovado {
  border-color: rgba(141, 227, 132, 0.45);
  background: rgba(85, 122, 70, 0.18);
}

.status-recusado {
  border-color: rgba(255, 91, 104, 0.45);
  background: rgba(255, 91, 104, 0.10);
}

.store-hero {
  margin-bottom: 24px;
}

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

.store-products,
.cart-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.cart-panel {
  position: sticky;
  top: 20px;
}

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

.product-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(114, 214, 255, 0.12), transparent 12rem),
    rgba(0, 0, 0, 0.18);
}

.product-card h3 {
  margin: 0;
  font-size: 26px;
}

.product-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.price {
  color: #8de384;
  font-size: 28px;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.cart-item span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.quantity-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.quantity-actions button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--white);
  background: rgba(114, 214, 255, 0.08);
  cursor: pointer;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cart-total strong {
  color: #8de384;
  font-size: 22px;
}

.chat-box textarea {
  min-height: 190px;
}

.chat-message {
  padding: 16px;
  border-radius: 18px;
  margin-bottom: 16px;
  background: rgba(114, 214, 255, 0.08);
  border: 1px solid var(--line);
}

.chat-message p {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1040px);
    padding: 18px 0 40px;
  }

  .hero,
  .card {
    padding: 24px;
    border-radius: 24px;
  }

  .grid,
  .fields,
  .store-layout,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }

  .admin-top,
  .app-head {
    display: grid;
  }
}
