/* Amorazza – Style v002 */
:root {
  --rose-50:  #fdf6f3;
  --rose-100: #fbeaf0;
  --rose-200: #f4c0d1;
  --rose-400: #d4537e;
  --rose-600: #993556;
  --rose-800: #4b1528;

  --ink-900: #2c2c2a;
  --ink-700: #5f5e5a;
  --ink-500: #888780;
  --ink-300: #d3d1c7;
  --ink-100: #f4f2ed;

  --bg:       #fdfcfa;
  --surface:  #ffffff;
  --border:   rgba(0, 0, 0, 0.08);
  --border-2: rgba(0, 0, 0, 0.16);

  --ok:       #0a7c3a;
  --warn:     #b8860b;
  --err:      #c0392b;

  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(40,20,30,0.04);
  --shadow-md: 0 4px 16px rgba(40,20,30,0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink-900);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rose-600); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* TOPBAR */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink-900); }
.logo:hover { text-decoration: none; }
.logo-heart { font-size: 22px; color: var(--rose-400); }
.logo-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px; font-weight: 500; letter-spacing: 0.01em;
}
.topnav { display: flex; gap: 4px; }
.topnav a {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 6px 10px; border-radius: var(--r-md);
  color: var(--ink-500); font-size: 16px;
}
.topnav a.active, .topnav a:hover { color: var(--rose-600); text-decoration: none; background: var(--rose-50); }
.topnav .icn { font-size: 18px; line-height: 1; }
.topnav .lbl { font-weight: 500; }

/* CONTAINER */
.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 80px;
}

/* HERO */
.hero { text-align: center; padding: 40px 12px 24px; }
.hero-mark { font-size: 56px; color: var(--rose-400); line-height: 1; margin-bottom: 8px; }
.hero-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 6px;
}
.hero-sub { font-size: 17px; color: var(--ink-700); margin: 0 0 24px; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; max-width: 280px; margin: 0 auto; }

/* FEATURES */
.features { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
.feature {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: var(--r-lg); padding: 18px; text-align: center;
}
.feature-icon { font-size: 28px; margin-bottom: 6px; }
.feature h3 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.feature p { margin: 0; color: var(--ink-700); font-size: 14px; }

/* BUTTONS */
.btn {
  display: inline-block; padding: 12px 18px;
  border-radius: var(--r-md); font-size: 15px; font-weight: 500;
  border: 0.5px solid var(--border-2); background: transparent;
  cursor: pointer; text-align: center;
  transition: transform 0.06s ease, background 0.15s ease;
  font-family: inherit;
  color: var(--ink-900);
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--rose-400); color: #fff; border-color: var(--rose-400); }
.btn-primary:hover { background: var(--rose-600); border-color: var(--rose-600); color: #fff; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--rose-50); border-color: var(--rose-200); }
.btn-secondary { background: var(--ink-100); color: var(--ink-900); border: 1px solid var(--border-2); }
.btn-secondary:hover { background: var(--ink-300); }
.btn-block { display: block; width: 100%; margin-bottom: 8px; }
.btn-small { padding: 8px 14px; font-size: 14px; }
.btn-danger { color: var(--err); border-color: rgba(192,57,43,0.35); }
.btn-danger:hover { background: #fbe7e3; }
.btn-link {
  background: transparent; border: none; color: var(--rose-600); cursor: pointer;
  padding: 0; font: inherit; text-decoration: underline;
}

/* CARD / FORM */
.card {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: var(--r-lg); padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 10px; font-size: 17px; font-weight: 500; }
.form-card h2 { margin: 0 0 14px; font-size: 22px; font-weight: 500; }
.form-card label, .card label {
  display: block; margin-bottom: 12px;
  font-size: 13px; color: var(--ink-700); font-weight: 500;
}
.form-card label.check {
  display: flex; align-items: flex-start; gap: 10px;
  font-weight: 400; color: var(--ink-900); font-size: 14px;
}
.form-card label.check input { margin-top: 3px; }
.form-card label.check span { line-height: 1.5; }
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="password"],
.form-card input[type="number"],
.form-card select,
.form-card textarea,
.card input[type="text"],
.card input[type="email"],
.card input[type="password"],
.card input[type="number"],
.card select,
.card textarea {
  display: block; width: 100%; margin-top: 4px;
  padding: 11px 12px; font-size: 16px;
  background: var(--surface); color: var(--ink-900);
  border: 0.5px solid var(--border-2); border-radius: var(--r-md);
  font-family: inherit;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus,
.card input:focus, .card select:focus, .card textarea:focus {
  outline: none; border-color: var(--rose-400);
  box-shadow: 0 0 0 3px var(--rose-100);
}
.form-card small, .card small { display: block; margin-top: 4px; color: var(--ink-500); font-weight: 400; }
.form-card textarea { resize: vertical; min-height: 90px; }
.row { display: flex; gap: 12px; }
.row .col { flex: 1; min-width: 0; }
.center { text-align: center; }
.muted { color: var(--ink-500); }
.small { font-size: 13px; }
.page-title { font-size: 22px; font-weight: 500; margin: 4px 0 16px; }
code { background: var(--ink-100); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

/* ALERTS */
.alert { padding: 10px 14px; border-radius: var(--r-md); font-size: 14px; margin-bottom: 14px; }
.alert-ok   { background: #e8f6ee; color: #0a7c3a; }
.alert-err  { background: #fbe7e3; color: #c0392b; }
.alert-info { background: var(--rose-50); color: var(--rose-600); }
.alert-warn { background: #fdf3df; color: #855600; }

/* BIG ICON */
.big-icon { font-size: 48px; color: var(--rose-400); margin-bottom: 8px; }
.big-icon-err { color: var(--err); }

/* LOGIN-LINKS */
.login-links {
  margin-top: 16px; text-align: center; font-size: 13px;
  color: var(--ink-500);
}
.login-links a { color: var(--ink-700); }
.login-links .dot { margin: 0 6px; }

/* PROFILE CARD */
.profile-card {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 12px;
}
.profile-cover {
  background: linear-gradient(135deg, var(--rose-100), var(--rose-50));
  padding: 56px 16px; text-align: center;
  position: relative;
}
.profile-emoji { font-size: 84px; line-height: 1; }
.profile-menu-btn {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.85); border: 0.5px solid var(--border-2);
  font-size: 20px; cursor: pointer; line-height: 1;
}
.profile-menu {
  position: absolute; top: 54px; right: 12px; z-index: 10;
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
  min-width: 140px; padding: 4px;
}
.profile-menu a, .profile-menu button {
  display: block; width: 100%; text-align: left;
  padding: 8px 12px; font-size: 14px; color: var(--ink-900);
  background: transparent; border: none; cursor: pointer; font-family: inherit;
  border-radius: var(--r-md);
}
.profile-menu a:hover, .profile-menu button:hover { background: var(--rose-50); text-decoration: none; }
.profile-body { padding: 18px 20px; }
.profile-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.profile-name { margin: 0; font-size: 22px; font-weight: 500; }
.profile-age { font-size: 18px; color: var(--ink-700); }
.profile-meta { font-size: 13px; color: var(--ink-700); margin-bottom: 10px; }
.profile-bio { margin: 8px 0 12px; font-size: 15px; line-height: 1.6; color: var(--ink-900); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--rose-50); color: var(--rose-600); font-size: 12px; padding: 4px 10px; border-radius: 12px; }

.profile-actions {
  display: flex; gap: 14px; justify-content: center;
  padding: 14px 16px 18px;
  border-top: 0.5px solid var(--border);
}
.btn-circle {
  width: 60px; height: 60px; border-radius: 50%;
  border: 0.5px solid var(--border-2); background: var(--surface);
  font-size: 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.08s ease, background 0.15s ease;
  font-family: inherit;
}
.btn-circle:active { transform: scale(0.94); }
.btn-skip { color: var(--ink-700); }
.btn-skip:hover { background: var(--ink-100); }
.btn-like { background: var(--rose-400); color: #fff; border-color: var(--rose-400); width: 72px; height: 72px; font-size: 30px; }
.btn-like:hover { background: var(--rose-600); border-color: var(--rose-600); }

/* MATCH LIST */
.match-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.match-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: var(--r-lg); padding: 12px 14px;
}
.match-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--rose-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
}
.match-info { flex: 1; min-width: 0; }
.match-name { font-size: 15px; font-weight: 500; }
.match-meta { font-size: 12px; color: var(--ink-700); margin-top: 2px; }
.match-bio {
  font-size: 13px; color: var(--ink-700); margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.match-heart-mini { font-size: 20px; color: var(--rose-400); }

/* MATCH TOAST */
.match-toast {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
}
.match-toast[hidden] { display: none; }
.match-toast-inner {
  background: var(--surface); border-radius: var(--r-xl);
  padding: 28px 24px; text-align: center; max-width: 320px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.match-heart { font-size: 56px; margin-bottom: 8px; }
.match-text { font-size: 20px; font-weight: 500; margin-bottom: 16px; }

/* BLOCK-LIST */
.block-list { list-style: none; padding: 0; margin: 0; }
.block-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 0.5px solid var(--border);
  font-size: 14px;
}
.block-list li:last-child { border-bottom: none; }
.inline-form { display: inline; margin: 0; }
.account-actions { display: flex; flex-direction: column; gap: 8px; }

/* LEGAL */
.legal { background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--r-lg); padding: 24px; line-height: 1.7; }
.legal h1 { font-family: Georgia, serif; font-weight: 500; font-size: 28px; margin: 0 0 16px; }
.legal h2 { font-size: 17px; font-weight: 500; margin: 24px 0 8px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.legal-table th, .legal-table td { padding: 8px 10px; border: 0.5px solid var(--border); text-align: left; vertical-align: top; }
.legal-table th { background: var(--rose-50); font-weight: 500; }

/* COOKIE OVERLAY */
.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-overlay[hidden] { display: none; }
.cookie-popup {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 40px 32px;
  max-width: 600px;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-popup h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--rose-600);
  margin: 0 0 24px;
}
.cookie-popup p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-900);
  text-align: left;
}
.cookie-popup p strong {
  color: var(--rose-600);
  font-weight: 600;
}
.cookie-popup hr {
  border: none;
  border-top: 1px solid var(--ink-200);
  margin: 24px 0;
}
.cookie-popup .cookie-info {
  font-size: 14px;
  text-align: center;
  margin-bottom: 24px;
}
.cookie-popup a {
  color: var(--rose-600);
  font-weight: 500;
}
.cookie-popup .btn {
  min-width: 200px;
}

/* FOOTER */
.footer { text-align: center; padding: 24px 16px 60px; color: var(--ink-500); font-size: 12px; }
.footer a { color: var(--ink-500); }
.footer-nav { margin-bottom: 6px; }
.footer-nav .dot { margin: 0 6px; color: var(--ink-300); }

/* PHOTO GRID */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.photo-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--ink-100);
}
.photo-item.primary {
  border-color: var(--rose-400);
}
.photo-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.photo-actions {
  padding: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.95);
}
.photo-actions .btn {
  flex: 1;
  min-width: 80px;
  font-size: 12px;
  padding: 6px 10px;
}
.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--rose-600);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.upload-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 0.5px solid var(--border);
}
.file-upload input[type="file"] {
  display: none;
}
.file-upload .btn {
  cursor: pointer;
  margin-bottom: 8px;
}

/* PHOTO PREVIEW */
.photo-preview {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin: 16px 0;
  padding: 12px;
  background: var(--rose-50);
  border-radius: var(--r-md);
}
.preview-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
}
.preview-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}
.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}
.preview-remove:hover {
  background: var(--err);
}
.preview-filename {
  font-size: 10px;
  padding: 4px;
  text-align: center;
  color: var(--ink-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* DESKTOP */
@media (min-width: 720px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .topnav a { flex-direction: row; padding: 8px 14px; font-size: 14px; }
  .topnav .icn { font-size: 16px; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .photo-item img { height: 220px; }
}
