
:root {
  --bg: #0a0a0a;
  --card: #0e1113;
  --text: #e7e9ea;
  --muted: #9aa0a6;
  --pri: #34d399;
  --pri-2: #22d3ee;
  --border: #1f2937;
}

* {
  box-sizing: border-box;
}

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

body {
  padding-top: 72px;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(52,211,153,.12), transparent 40%),
    radial-gradient(900px 500px at 120% 10%, rgba(34,211,238,.10), transparent 40%),
    linear-gradient(#060606, #000);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}

/* Navbar */
nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(15,17,19,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  padding-right: 64px;
  position: relative;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  font-weight: 700;
}
.brand img {
  width: 28px;
  height: 28px;
}
.menu {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.menu a {
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
}
.menu a:hover {
  background: rgba(255,255,255,.05);
  color: var(--pri-2);
}
.burger {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 20px;
}

@media (max-width: 760px) {
  .menu {
    display: none;
    flex-direction: column;
    padding: 0 20px 12px;
  }
  .menu.open {
    display: flex;
  }
  .burger {
    display: block;
  }
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}
h1 {
  font-size: clamp(28px, 4vw, 42px);
  background: linear-gradient(90deg, var(--pri), var(--pri-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 30px 20px;
  margin-top: 40px;
  text-align: center;
}
.small {
  color: var(--muted);
  font-size: .9rem;
}

/* Forms */
form.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(18,20,22,0.95), rgba(8,9,10,0.95));
  border: 1px solid rgba(52,211,153,0.25);
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.4);
  transition: border-color 0.2s, box-shadow 0.2s;
}
form.card:hover {
  border-color: rgba(34,211,238,0.4);
  box-shadow: 0 8px 36px rgba(0,0,0,0.55);
}
form.card label {
  font-weight: 600;
  color: var(--pri);
  font-size: 1rem;
  display: block;
}
form.card input,
form.card textarea {
  width: 100%;
  background: rgba(25,28,31,.95);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.15s ease;
}
form.card input::placeholder,
form.card textarea::placeholder {
  color: #7d8a92;
}
form.card input:focus,
form.card textarea:focus {
  border-color: var(--pri);
  outline: none;
  box-shadow: 0 0 8px rgba(52,211,153,0.35);
}
form.card textarea {
  resize: vertical;
  min-height: 150px;
}
form.card button {
  background: linear-gradient(90deg, var(--pri), var(--pri-2));
  border: none;
  color: #000;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}
form.card button:hover {
  opacity: .9;
  transform: translateY(-1px);
}
form.card .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 10px;
}
form.card .button {
  background: transparent;
  border: 1px solid var(--pri);
  color: var(--pri);
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
form.card .button:hover {
  background: var(--pri);
  color: #000;
}

/* Avatar + Dropdown */
.user-menu-wrapper {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.user-avatar {
  background-color: var(--pri);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 0 0 2px white;
}
.user-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 6px 0;
  min-width: 160px;
  z-index: 9999;
}
.user-dropdown a {
  display: block;
  padding: 10px 14px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}
.user-dropdown a:hover {
  background-color: #f3f3f3;
}
.hidden {
  display: none;
}
