:root {
  --bg: #0b1220;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --text: #e6edf7;
  --muted: #94a3b8;
  --accent: #7cfece;
  --accent-2: #5ea8ff;
  --shadow: 0 10px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(124, 254, 206, 0.14), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(94, 168, 255, 0.16), transparent 25%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: linear-gradient(90deg, rgba(11, 18, 32, 0.85), rgba(11, 18, 32, 0.6));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dot {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(124, 254, 206, 0.6);
}

.brand-title {
  font-weight: 600;
  font-size: 15px;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.page {
  position: relative;
  z-index: 1;
  padding: 36px 24px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}

.hero.split {
  grid-template-columns: 1.1fr 0.9fr;
}

.hero-text h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.5px;
}

.summary {
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
}

.title-line {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 8px 0 12px;
}

.pill {
  background: rgba(124, 254, 206, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(124, 254, 206, 0.35);
  color: #c9ffe8;
  font-size: 14px;
}

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

.eyebrow {
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1220;
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
}

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

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}

.lang {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-chip {
  padding: 6px 10px;
  background: rgba(94, 168, 255, 0.12);
  border: 1px solid rgba(94, 168, 255, 0.35);
  border-radius: 12px;
  color: #dcecff;
  font-size: 13px;
}

.hero-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.hero-card.compact {
  max-width: 520px;
}

.photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.kv-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.kv-value {
  font-size: 14px;
  color: var(--text);
}

.section {
  margin: 38px 0;
}

.section-header {
  margin-bottom: 18px;
}

.section-header h2 {
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}

.cards-grid {
  display: grid;
  gap: 14px;
}

.cards-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.cards-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 16px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.card-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.card.highlight {
  border-color: rgba(124, 254, 206, 0.35);
  background: linear-gradient(145deg, rgba(124, 254, 206, 0.08), rgba(255, 255, 255, 0.02));
}

.tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(124, 254, 206, 0.65);
}

.timeline-dot.small {
  width: 10px;
  height: 10px;
}

.timeline-meta {
  color: var(--muted);
  font-size: 13px;
}

.timeline-title {
  font-weight: 600;
}

.wish-card {
  position: relative;
}

.wishlist-grid .wish-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wish-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge.free {
  background: rgba(124, 254, 206, 0.14);
  color: #c9ffe8;
  border: 1px solid rgba(124, 254, 206, 0.4);
}

.badge.busy {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.wish-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.wish-admin {
  margin-top: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: grid;
  gap: 8px;
}

.form-inline {
  display: grid;
  gap: 8px;
}

input,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
}

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

input:focus,
textarea:focus {
  outline: 1px solid rgba(124, 254, 206, 0.4);
}

.full {
  width: 100%;
}

.posts-grid .card {
  border-color: rgba(94, 168, 255, 0.18);
}

.tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(94, 168, 255, 0.1);
  color: #d1e3ff;
  font-size: 12px;
  margin-right: 6px;
}

.wishlist-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-row {
  display: flex;
  gap: 8px;
}

.filter-chip {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-chip.active {
  background: rgba(124, 254, 206, 0.16);
  border-color: rgba(124, 254, 206, 0.45);
  color: #dfffee;
}

.upload {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.upload input[type="file"] {
  padding: 8px 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 20;
}

.toast[data-tone="error"] {
  background: rgba(255, 99, 99, 0.85);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .nav {
    flex-wrap: wrap;
  }
}
