@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --bg: #f7f2ea;
  --bg-2: #fdf8f2;
  --panel: #ffffff;
  --text: #2a2623;
  --muted: #6f6a64;
  --accent: #d7906d;
  --accent-2: #7bb5a6;
  --danger: #c94242;
  --border: #eadfd2;
  --radius: 14px;
  --container: 980px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, #fff3e6 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 0%, #e7f5f2 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 234, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner { max-width: var(--container); margin: 0 auto; padding: 24px 24px 16px; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.profile-wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.menu-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-card {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(300px, 90vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  padding: 12px;
}

h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.3px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
}

.sub { color: var(--muted); font-size: 13px; }
.sub-spaced { margin-top: 6px; }

.nav-btn,
button {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

button.primary {
  background: linear-gradient(135deg, var(--accent), #c47d5c);
  color: #fff;
  border-color: transparent;
}

button.success {
  background: var(--accent-2);
  color: #fff;
  border-color: var(--accent-2);
}

button.danger {
  color: var(--danger);
  border-color: #e8c5c0;
}

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

button[data-locked="1"] {
  opacity: 0.5;
  cursor: not-allowed;
}

main { max-width: var(--container); margin: 0 auto; padding: 24px; }

.card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.status {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  white-space: pre-wrap;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}

.panel h2 {
  font-size: 24px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  margin-bottom: 8px;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.row-top-12 { margin-top: 12px; }
.row-top-10 { margin-top: 10px; }
.stack-grid { display: grid; gap: 8px; }
.nav-btn-full { width: 100%; text-align: center; }
.flex-wrap-gap-8 { display: flex; gap: 8px; flex-wrap: wrap; }
.top-space-8 { margin-top: 8px; }
.top-space-14 { margin-top: 14px; }
.mono-top-4 { margin-top: 4px; }

.profile-card-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  word-break: break-word;
}

input[type="text"],
input[type="password"],
input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
}

.qr-wrap {
  margin-top: 12px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #fcfaf7;
}

.qr-wrap img {
  max-width: 320px;
  width: 100%;
  background: #fff;
  image-rendering: pixelated;
}

.info-box {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}

.info-box h2 {
  font-size: 24px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  margin-bottom: 8px;
}

.info-list {
  margin: 0 0 0 18px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.info-list li + li { margin-top: 6px; }

.confirm-row {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
}

.confirm-row.warning { color: var(--danger); }

.confirm-warning {
  margin-top: 6px;
  font-size: 12px;
  color: var(--danger);
}

.account-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.hidden { display: none !important; }

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-top { display: grid; grid-template-columns: 1fr auto; align-items: start; }
  .profile-wrap { justify-self: end; margin-left: auto; }
  .row { grid-template-columns: 1fr; }
}
