:root {
  --bg: #0f0c1b;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f7f3ff;
  --muted: #c8bddf;
  --accent: #ff7a59;
  --accent-2: #ffc857;
  --good: #2dd4bf;
  --bad: #ff6b6b;
  --shadow: 0 20px 60px rgba(4, 6, 12, 0.55);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Serif KR", "Nanum Myeongjo", "Malgun Gothic", serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(255, 122, 89, 0.35), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(255, 200, 87, 0.25), transparent 55%),
    radial-gradient(1100px 700px at 50% 120%, rgba(45, 212, 191, 0.25), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px 80px;
  position: relative;
  z-index: 1;
}

.bg-orb {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.25;
  z-index: 0;
}

.orb-a {
  background: radial-gradient(circle, rgba(255, 122, 89, 0.7), transparent 70%);
  top: -120px;
  left: -90px;
}

.orb-b {
  background: radial-gradient(circle, rgba(45, 212, 191, 0.6), transparent 70%);
  bottom: -160px;
  right: -120px;
}

.top {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

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

.logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #2c1a14;
  letter-spacing: 0.04em;
}

.title {
  font-size: 24px;
  font-weight: 700;
}

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

.notice {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 122, 89, 0.12);
  border: 1px solid rgba(255, 122, 89, 0.3);
  font-size: 13px;
  color: #ffe6dc;
}

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

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

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

h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.desc {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.dropzone {
  position: relative;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  background: rgba(10, 12, 22, 0.45);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.dropzone.dragover {
  border-color: var(--accent-2);
  background: rgba(255, 200, 87, 0.12);
  transform: translateY(-2px);
}

.dz-inner { display: grid; gap: 6px; }
.dz-title { font-size: 15px; font-weight: 600; }
.dz-sub { font-size: 12px; color: var(--muted); }

#fileInput {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #2b1b12;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-grid {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

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

.field input {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 12px;
  background: rgba(8, 10, 18, 0.7);
  color: var(--text);
}

.auth-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-status {
  font-size: 12px;
  color: var(--muted);
}

.auth-user {
  margin-top: 10px;
  font-size: 12px;
  color: #f7e6d1;
}

.auth-verify {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  display: none;
}

.auth-verify-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.auth-verify-desc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.toggle {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.status {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  min-height: 18px;
}

.section-title {
  margin-top: 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e5d9ff;
}

.card-list {
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

.card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(9, 12, 21, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

.card-title { font-size: 14px; font-weight: 600; }
.card-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.card-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.15);
  color: #bff7ef;
  font-size: 11px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.rate-card {
  display: grid;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(8, 10, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rate-image-wrap {
  height: 240px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

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

.rate-name {
  font-size: 15px;
  font-weight: 600;
}

.stars {
  display: flex;
  gap: 8px;
}

.stars button {
  font-size: 24px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.15s, color 0.15s;
}

.stars button.active {
  color: var(--accent-2);
  transform: translateY(-2px) scale(1.05);
}

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

.empty {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .rate-image-wrap { height: 200px; }
}
