:root {
  --bg: #eef6ff;
  --ink: #0e1e1c;
  --muted: #4e6663;
  --panel: rgba(255, 255, 255, 0.78);
  --stroke: rgba(14, 30, 28, 0.14);
  --accent: #0e7be2;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  background:
    radial-gradient(circle at 10% 14%, #e1f5ff, transparent 38%),
    radial-gradient(circle at 86% 4%, #f0ffe9, transparent 40%),
    #f6fbff;
  color: var(--ink);
}

.admin-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.panel {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  padding: 20px;
  margin-top: 20px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1e6c64;
  font-size: 0.78rem;
  font-weight: 700;
}

h1, h2 {
  margin: 7px 0 0;
  font-family: "Fraunces", Georgia, serif;
}

.sub {
  color: var(--muted);
}

form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

label {
  font-size: 0.9rem;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 1rem;
}

button {
  border: 0;
  border-radius: 11px;
  padding: 11px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
}

.ghost {
  background: rgba(14, 123, 226, 0.12);
  color: #0f5eac;
  border: 1px solid rgba(14, 123, 226, 0.25);
}

.hidden {
  display: none;
}

.message {
  min-height: 22px;
  font-size: 0.9rem;
}

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.card {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.68);
}

.card h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
}

.card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.back-link {
  color: #1f5f9c;
  text-decoration: none;
}

.notice {
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: rgba(14, 123, 226, 0.08);
}

.module {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke);
}

.module h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
}

.module-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tickets-wrap {
  margin-top: 8px;
  overflow-x: auto;
}

.tickets-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.tickets-table th,
.tickets-table td {
  text-align: left;
  border-bottom: 1px solid var(--stroke);
  padding: 8px 6px;
  vertical-align: top;
}

.ticket-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ticket-actions select,
.ticket-actions input {
  max-width: 180px;
}

.empty {
  border: 1px dashed var(--stroke);
  border-radius: 10px;
  color: var(--muted);
  padding: 11px;
}

.ticket-form {
  margin-top: 10px;
}

textarea,
select {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 11px;
  padding: 10px 12px;
  font: inherit;
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
