* { box-sizing: border-box; }

:root {
  --teal-50: #f0fdfa;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --bg-0: #071b1c;
  --bg-1: #0c2426;
  --surface: rgba(20, 184, 166, 0.06);
  --surface-border: rgba(45, 212, 191, 0.18);
  --text: #e6fffb;
  --text-dim: #9fc7c3;
  --danger: #f87171;
}

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

body {
  margin: 0;
  font-family: 'Segoe UI', Inter, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(45, 212, 191, 0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(20, 184, 166, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 60%, var(--bg-0));
  background-attachment: fixed;
}

a { color: var(--teal-300); }
a:hover { color: var(--teal-400); }

h1, h2, h3 { color: #ffffff; font-weight: 700; letter-spacing: -0.01em; }

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(7, 27, 28, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
}
.nav-brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 12px 2px rgba(45, 212, 191, 0.7);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}
.nav-links a { color: var(--text-dim); text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--teal-300); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.hero {
  text-align: center;
  padding: 60px 20px 30px;
}
.hero h1 {
  font-size: 40px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #fff, var(--teal-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { color: var(--text-dim); font-size: 16px; }

.guild-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  margin-bottom: 10px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.guild-list a:hover {
  border-color: var(--teal-400);
  transform: translateX(4px);
}

label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

select, input[type="text"], textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--surface-border);
  background: rgba(7, 27, 28, 0.6);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

button, .btn {
  margin-top: 20px;
  padding: 11px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: #04201d;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  text-decoration: none;
  display: inline-block;
}
button:hover, .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.5);
}
.btn-danger {
  background: linear-gradient(135deg, #f87171, #dc2626);
  color: #2b0a0a;
  box-shadow: 0 4px 16px rgba(248, 113, 113, 0.3);
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--text);
  box-shadow: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 27, 28, 0.7);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 6px 12px;
  margin: 4px 6px 4px 0;
  font-size: 13px;
}
.tag form { margin: 0; }
.tag button {
  margin: 0;
  padding: 0 2px;
  background: transparent;
  box-shadow: none;
  color: var(--danger);
  font-size: 14px;
}
.tag button:hover { transform: none; }

.saved-banner {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.25), rgba(45, 212, 191, 0.15));
  border: 1px solid var(--teal-400);
  color: var(--teal-50);
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--surface-border); }
th { color: var(--text-dim); text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; }
code {
  background: rgba(7, 27, 28, 0.7);
  border: 1px solid var(--surface-border);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--teal-300);
  font-size: 13px;
}
.badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.15);
  color: var(--teal-300);
  border: 1px solid var(--surface-border);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
}

details summary {
  cursor: pointer;
  color: var(--teal-300);
  font-size: 13px;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.15s ease;
}
details[open] summary::before {
  transform: rotate(90deg);
}
details[open] summary { margin-bottom: 4px; }
