html {
  font-size: 14px;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  margin: 0;
  color: #1f2937;
  background: #f4f7fb;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(21, 61, 119, 0.25);
}

.portal-navbar {
  background: linear-gradient(90deg, #153d77 0%, #1b6ec2 100%);
  box-shadow: 0 12px 30px rgba(21, 61, 119, 0.16);
}

.hero-panel {
  border-radius: 24px;
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
  border: 1px solid rgba(27, 110, 194, 0.12);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.dashboard-card {
  border-radius: 24px;
}

.link-box {
  padding: 1rem;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #d7e6fb;
  overflow-wrap: anywhere;
}

.link-panel {
  padding: 1rem;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #d7e6fb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.link-code {
  overflow-wrap: anywhere;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.summary-tile {
  padding: 1rem;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #d7e6fb;
}

.summary-tile-danger {
  background: #fff1f2;
  border-color: #fecdd3;
}

.summary-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #153d77;
  line-height: 1;
}

.summary-label {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #475569;
}

.audit-list {
  display: grid;
  gap: 0.75rem;
}

.audit-item {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #d7e6fb;
}

.upload-issue-box {
  padding: 1rem;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.preview-banner {
  background: #eff6ff;
}

.eyebrow {
  margin-bottom: 0.5rem;
  color: #1b6ec2;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-shell {
  background:
    linear-gradient(rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.84)),
    url('/images/Birthday.png') no-repeat center center fixed;
  background-size: cover;
}

.login-wrapper {
  min-height: 100vh;
}

.login-card {
  padding: 2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(21, 61, 119, 0.08);
}

.birthday-shell {
  background: #fff7ef;
}

.birthday {
  min-height: 100vh;
  background: url('/images/Birthday.png') no-repeat center center fixed;
  background-size: cover;
}

.birthday-tag {
  max-width: min(100%, 560px);
}

.birthday-marquee {
  height: 72vh;
  padding-right: 0.75rem;
  overflow: hidden;
  position: relative;
}

.birthday-marquee-track {
  will-change: transform;
}

.birthday-marquee.is-static {
  overflow: visible;
}

.birthday-marquee.is-static .birthday-marquee-track {
  transform: none !important;
}

.birthday-card {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(220, 53, 69, 0.12);
}

.birthday-empty {
  padding: 2rem;
  text-align: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
}

.birthday-photo {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-width: 3px !important;
  border-color: #dc3545 !important;
}

.birthday-line {
  max-width: 298px;
}

.occasion-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9f1239;
  background: #ffe4e6;
}

.occasion-pill-anniversary {
  color: #0f766e;
  background: #ccfbf1;
}

.anniversary-years {
  font-size: 1.05rem;
  font-weight: 700;
  color: #153d77;
}

@media (max-width: 767.98px) {
  .hero-panel,
  .login-card,
  .birthday-card,
  .birthday-empty {
    border-radius: 18px;
  }

  .birthday-marquee {
    height: auto;
    overflow: visible;
  }
}
