@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap");

:root {
  --bg: #2b1a14;
  --ink: #1e1714;
  --muted: #5b4a3f;
  --card: #fff7ee;
  --accent: #7a3b24;
  --accent-2: #d66a3a;
  --border: #ecd7c2;
  --gold: #c9a44b;
  --gold-dark: #8c6a1e;
  --shadow: 0 26px 60px rgba(20, 10, 8, 0.28);
  --glow: 0 0 0 6px rgba(214, 106, 58, 0.18);
  font-family: "Space Grotesk", "Segoe UI", Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(1200px 800px at 20% 0%, #ffb35c, transparent 60%),
    radial-gradient(1200px 900px at 80% 10%, #e65b3a, transparent 60%),
    radial-gradient(900px 700px at 70% 70%, #4a2a1c, transparent 70%),
    linear-gradient(180deg, #5b2a2a 0%, #3a1f1c 55%, #1c1412 100%);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 235, 210, 0.2) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.15;
  pointer-events: none;
}

.card {
  width: min(780px, 92vw);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 32px 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: rise 600ms ease-out;
}

.card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 420'><g fill='none' stroke='%238a5a38' stroke-opacity='0.25' stroke-width='2' stroke-linecap='round'><path d='M40 70 C90 30 150 40 210 70' /><path d='M390 40 C450 20 520 40 560 90' /><path d='M40 350 C90 380 160 380 220 350' /><path d='M380 370 C450 400 520 380 560 330' /><path d='M25 120 C40 140 60 160 70 190' /><path d='M575 120 C560 150 540 170 520 190' /><path d='M90 50 C110 70 130 80 150 90' /><path d='M470 60 C500 70 520 90 540 110' /></g><g fill='%236a8f63' fill-opacity='0.22'><circle cx='85' cy='60' r='6'/><circle cx='135' cy='85' r='5'/><circle cx='510' cy='80' r='6'/><circle cx='540' cy='120' r='5'/><circle cx='95' cy='360' r='6'/><circle cx='150' cy='340' r='5'/><circle cx='500' cy='350' r='6'/><circle cx='540' cy='320' r='5'/></g></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  opacity: 0.9;
}

.card::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 180, 100, 0.35), transparent 70%);
  opacity: 0.75;
  pointer-events: none;
}

.brand {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #4c2f19;
  padding: 7px 14px;
  border-radius: 999px;
  display: inline-flex;
  border: 1px solid rgba(201, 164, 75, 0.7);
  background: linear-gradient(90deg, rgba(255, 232, 191, 0.7), rgba(255, 255, 255, 0.25));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75), 0 12px 20px rgba(140, 106, 30, 0.3);
  margin-bottom: 10px;
}

.hero {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 6px;
}

.tree {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 30%, #ffe5b3, #d8a05b 42%, #6a3a2a 100%);
  position: relative;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.35), 0 12px 20px rgba(0, 0, 0, 0.18);
}

.tree::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 18px;
  height: 38px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #8a5a3c, #5a3323);
  border-radius: 10px;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.2);
}

.tree::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.6), transparent 55%);
  opacity: 0.8;
}

h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

h2 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #4c2f19;
}

.sub {
  margin: 0 0 18px;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

label {
  font-size: 13px;
  color: var(--muted);
}

input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  background: #fff6ec;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: var(--glow);
}

.mono {
  font-family: "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace;
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}

button {
  border: 1px solid var(--border);
  background: #f7eadc;
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(20, 16, 12, 0.14);
}

button.primary {
  background: linear-gradient(135deg, #a34a2d, #e17b40);
  color: #ffffff;
  border-color: transparent;
}

button.primary:hover {
  box-shadow: 0 12px 20px rgba(226, 120, 67, 0.35);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.metrics {
  display: grid;
  gap: 10px;
  margin: 8px 0 16px;
}

.balance {
  font-size: 14px;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6eee2;
  border: 1px solid var(--border);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 110, 70, 0.4), transparent);
  margin: 6px 0 18px;
}

.status {
  min-height: 20px;
  font-size: 14px;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6eee2;
  border: 1px solid var(--border);
}

.guide {
  margin-top: 10px;
  padding: 16px;
  border-radius: 16px;
  background: #f6eee2;
  border: 1px solid var(--border);
}

.guide ol {
  margin: 0 0 10px 18px;
  color: var(--muted);
}

.guide p {
  margin: 0;
  color: var(--muted);
}

.help {
  margin-top: 10px;
}

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
}

.quick button {
  background: #fbe7d6;
  border-color: #efcbb2;
}

.foot {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

code {
  background: #f5eadf;
  padding: 2px 6px;
  border-radius: 6px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .tree {
    width: 78px;
    height: 78px;
  }

  h1 {
    font-size: 22px;
  }

  .card {
    padding: 24px 20px;
  }
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f7eadc;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}

.pill.soft {
  background: #fff1e4;
  color: #6b4b36;
  border-color: #efcbb2;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 4px 0 18px;
}

.panel {
  padding: 16px;
  border-radius: 18px;
  background: #f6eee2;
  border: 1px solid var(--border);
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ee;
  border: 1px solid #f0d9c4;
}

.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #efe1d3;
  color: #6b4b36;
  border: 1px solid #e7cdb4;
  white-space: nowrap;
}

.table {
  display: grid;
  gap: 8px;
}

.table .row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ee;
  border: 1px solid #f0d9c4;
  font-size: 14px;
}

.table .row.head {
  background: #efe1d3;
  font-weight: 600;
  color: #5c4030;
}

.up {
  color: #1f6b3a;
  font-weight: 600;
}

.down {
  color: #9b2f1f;
  font-weight: 600;
}

.upload {
  display: grid;
  gap: 12px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 600px) {
  .table .row {
    grid-template-columns: 1fr;
  }
}

select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  background: #fff6ec;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

select:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: var(--glow);
}

.stack {
  display: grid;
  gap: 12px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.mini-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #fff7ee;
  border: 1px solid #f0d9c4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.mini-card .actions {
  margin: 0;
}

.tag.ok {
  background: #dfeee3;
  color: #1f6b3a;
  border-color: #b9dcc4;
}

.tag.warn {
  background: #f8efd8;
  color: #8c6a1e;
  border-color: #ecd7aa;
}

.tag.bad {
  background: #f4d9d5;
  color: #9b2f1f;
  border-color: #e3b3aa;
}

.badge {
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a34a2d, #e17b40);
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.kpi {
  font-size: 28px;
  font-weight: 700;
  color: #4c2f19;
}

textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  background: #fff6ec;
  transition: box-shadow 200ms ease, border-color 200ms ease;
  resize: vertical;
  min-height: 120px;
}

textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: var(--glow);
}

.link-block {
  margin: 12px 0 0;
  font-size: 12px;
  white-space: pre-wrap;
}

.link-card {
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(20, 16, 12, 0.16);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f7eadc;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(20, 16, 12, 0.14);
}

.btn.primary {
  background: linear-gradient(135deg, #a34a2d, #e17b40);
  color: #ffffff;
  border-color: transparent;
}

.btn.primary:hover {
  box-shadow: 0 12px 20px rgba(226, 120, 67, 0.35);
}

.role-card {
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.role-card .actions {
  margin-top: auto;
}


.break {
  word-break: break-all;
}

.admin-request {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(240px, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-request .request-main {
  display: grid;
  gap: 6px;
}

.admin-request .request-edit {
  display: grid;
  gap: 8px;
}

.admin-edit-grid {
  margin-top: 6px;
}

.request-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
  padding-top: 4px;
  border-top: 1px dashed rgba(150, 110, 70, 0.35);
}

.request-actions button {
  min-width: 120px;
}

@media (max-width: 720px) {
  .admin-request {
    grid-template-columns: 1fr;
  }
}
