:root {
  --red: #CE1126;
  --blue: #003F87;
  --gold: #FCD116;
  --coral: #ff6f61;
  --blush: #ffd6cc;
  --white: #ffffff;
  --ink: #1f2430;
  --muted: #6b7280;
  --bg: #fff5f0;
  --card: #fffdfb;
  --border: #f3ddd4;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.5;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 111, 97, 0.16), transparent 45%),
    radial-gradient(circle at 100% 10%, rgba(252, 209, 22, 0.18), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(0, 63, 135, 0.10), transparent 55%),
    linear-gradient(180deg, #fff8f4 0%, #fff5f0 40%, #fdf3ee 100%);
  background-attachment: fixed;
}

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

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(120deg, var(--blue) 0%, #0a5fb8 55%, var(--coral) 130%);
  color: var(--white);
}

.site-header .brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}
.site-header .brand:hover { text-decoration: none; }

.site-header nav { display: flex; align-items: center; gap: 1.25rem; }
.site-header nav a { color: var(--white); font-weight: 500; }
.site-header nav a.cta {
  background: var(--red);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}
.site-header nav a.cta:hover { text-decoration: none; opacity: 0.9; }

.inline-form { display: inline; }
.link-button {
  background: none;
  border: none;
  color: var(--white);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}
.link-button:hover { text-decoration: underline; }

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero {
  position: relative;
  text-align: center;
  padding: 3.5rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 111, 97, 0.25), transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(252, 209, 22, 0.30), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(0, 63, 135, 0.15), transparent 60%),
    linear-gradient(160deg, #fff9f6 0%, #ffeee7 100%);
}
.hero::before {
  content: "💕";
  position: absolute;
  top: -1.5rem;
  right: 5%;
  font-size: 6rem;
  opacity: 0.12;
  transform: rotate(12deg);
  pointer-events: none;
}
.hero::after {
  content: "🌺";
  position: absolute;
  bottom: -1.5rem;
  left: 4%;
  font-size: 5rem;
  opacity: 0.14;
  transform: rotate(-10deg);
  pointer-events: none;
}
.hero h1 {
  font-size: 2.3rem;
  margin-bottom: 0.75rem;
  color: var(--red);
}
.hero p { max-width: 560px; margin: 0 auto 1.5rem; color: var(--muted); position: relative; }
.hero-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; position: relative; }

.button {
  display: inline-block;
  background: linear-gradient(135deg, var(--coral), var(--red));
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(206, 17, 38, 0.25);
}
.button:hover { text-decoration: none; opacity: 0.9; }
.button:disabled { background: var(--muted); cursor: default; opacity: 0.7; }

.button-secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.fee-note {
  max-width: 560px;
  margin: 1rem auto;
  padding: 0.85rem 1rem;
  background: #fff8e1;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: #6b5300;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.feature-card h3 { margin-top: 0; }

.form-page { max-width: 480px; margin: 0 auto; }
.form-page h1 { text-align: center; }

.card-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.card-form input,
.card-form select,
.card-form textarea {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}
.card-form .button { align-self: center; margin-top: 0.5rem; }

.sso-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.button-google,
.button-facebook {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.button-google:hover,
.button-facebook:hover { text-decoration: none; opacity: 0.85; }
.button-google::before { content: "G  "; font-weight: 700; color: #4285F4; }
.button-facebook { background: #1877F2; color: var(--white); border-color: #1877F2; }
.button-facebook::before { content: "f  "; font-weight: 700; }

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 1rem 0;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border);
}
.divider span { padding: 0 0.75rem; }

.hint { color: var(--muted); font-weight: 400; font-size: 0.8rem; margin: 0; }
.error {
  background: #fdecea;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  max-width: 480px;
  margin: 0 auto 1rem;
}

.filter-form { margin-bottom: 1.5rem; }
.filter-form select { padding: 0.5rem 0.75rem; border-radius: 8px; border: 1px solid var(--border); }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 700px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.profile-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.profile-card:hover {
  border-color: var(--coral);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 111, 97, 0.18);
}
.profile-card h3 { margin: 0.5rem 0 0.15rem; font-size: 1rem; }
.profile-card p { margin: 0; color: var(--muted); font-size: 0.85rem; }

.avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff3cd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.large { width: 140px; height: 140px; font-size: 3.5rem; }

.badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--gold);
  color: #4a3b00;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.profile-detail {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.profile-detail .meta { color: var(--muted); }
.profile-detail .bio { text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
