:root {
  --bg: #0f1220;
  --card: #181c2f;
  --card-soft: #20253d;
  --text: #f5f7fb;
  --muted: #aeb6d3;
  --accent: #7c5cff;
  --accent-2: #24d1a0;
  --danger: #ff5c7a;
  --warning: #ffbd4a;
  --border: rgba(255,255,255,.1);
}

* {
  box-sizing: border-box;
}

[hidden] { display: none !important; }
.grid > *, .list-row > * { min-width: 0; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.btn:disabled { opacity: .6; cursor: wait; }
@media (max-width: 480px) {
  .nav { flex-wrap: wrap; }
  .nav > .nav-actions { margin-left: auto; }
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: radial-gradient(circle at top left, rgba(124,92,255,.35), transparent 35%),
              radial-gradient(circle at top right, rgba(36,209,160,.18), transparent 30%),
              var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(15,18,32,.72);
  border-bottom: 1px solid var(--border);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 22px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  padding: 12px 18px;
  font-weight: 800;
  color: var(--text);
  background: var(--card-soft);
  transition: .2s;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #9a7cff);
}

.btn.success {
  background: linear-gradient(135deg, #19b987, var(--accent-2));
}

.btn.danger {
  background: var(--danger);
}

.btn.ghost {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
}

.hero {
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
}

.badge {
  display: inline-flex;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.06);
  font-size: 14px;
}

h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: .95;
  margin: 22px 0;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 18px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-card, .card {
  background: rgba(24,28,47,.8);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.feature {
  min-height: 170px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(124,92,255,.18);
  margin-bottom: 14px;
}

.section {
  padding: 48px 0;
}

.input, textarea, select {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 16px;
  padding: 13px 14px;
  outline: none;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.full {
  grid-column: 1 / -1;
}

.list-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
}

.wish-card {
  overflow: hidden;
  padding: 0;
}

.wish-img {
  height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, #252b47, #191d31);
  display: grid;
  place-items: center;
  color: var(--muted);
}

.wish-img img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: block;
  object-fit: cover;
}

.wish-body {
  padding: 18px;
}

.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
  font-size: 13px;
  margin-right: 6px;
  margin-bottom: 6px;
}

.tag.green {
  color: #76ffd5;
  background: rgba(36,209,160,.13);
}

.tag.yellow {
  color: #ffd78a;
  background: rgba(255,189,74,.13);
}

.tag.red {
  color: #ff9aac;
  background: rgba(255,92,122,.13);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 50;
}

.modal-backdrop.active {
  display: flex;
}

.modal {
  width: min(520px, 100%);
  background: #171b2d;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 24px;
}

.footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.mobile-menu {
  display: none;
}

.helper {
  font-size: 14px;
  color: var(--muted);
}

.notice {
  padding: 14px 16px;
  background: rgba(36,209,160,.1);
  border: 1px solid rgba(36,209,160,.25);
  color: #b9ffeb;
  border-radius: 18px;
}

@media (max-width: 860px) {
  .hero,
  .grid.two,
  .grid.three,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    height: auto;
    padding: 14px 0;
    align-items: flex-start;
  }

  .nav-actions {
    justify-content: flex-end;
  }

  h1 {
    font-size: 42px;
  }

  .list-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
select {
  background-color: #1c2138;
  color: #fff;
}

option {
  background-color: #1c2138;
  color: #fff;
}
.file-upload {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-preview {
  width: 100%;
  height: 160px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  overflow: hidden;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-image-btn {
  width: 100%;
  min-height: 58px;
  border: 1px dashed rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.upload-image-btn:hover {
  background: rgba(124,92,255,.16);
  border-color: var(--accent);
}

.upload-image-btn span {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(124,92,255,.2);
}

.upload-image-btn b {
  display: block;
  font-size: 14px;
}

.upload-image-btn small {
  color: var(--muted);
}

.image-preview {
  width: 100%;
  height: 160px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  overflow: hidden;
  background: rgba(255,255,255,.04);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
