html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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 #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Stamp cards */
.stamp-cards-page {
  max-width: 1100px;
  margin: 0 auto;
}

.stamp-cards-page__greeting {
  color: #374151;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.stamp-cards-page__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.loyalty-card {
  --stamp-accent: #c8922a;
  --stamp-accent-soft: #f4e4c8;
  --stamp-ink: #1f2937;
  --stamp-muted: #6b7280;
  background: linear-gradient(160deg, #ffffff 0%, #faf8f5 100%);
  border: 1px solid rgba(200, 146, 42, 0.18);
  border-radius: 1.25rem;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.loyalty-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(200, 146, 42, 0.08), transparent 42%);
  pointer-events: none;
}

.loyalty-card--complete {
  border-color: rgba(200, 146, 42, 0.35);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 16px 40px rgba(200, 146, 42, 0.16);
}

.loyalty-card__header {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: #fff;
  padding: 1.1rem 1.25rem 1rem;
  position: relative;
  z-index: 1;
}

.loyalty-card__shop {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.loyalty-card__address {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0.35rem 0 0;
}

.loyalty-card__body {
  padding: 1.25rem;
  position: relative;
  z-index: 1;
}

.loyalty-card__reward {
  color: var(--stamp-accent);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.loyalty-card__progress-label {
  align-items: baseline;
  color: var(--stamp-muted);
  display: flex;
  font-size: 0.82rem;
  gap: 0.35rem;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.loyalty-card__progress-label span:first-child {
  color: var(--stamp-ink);
  font-size: 1rem;
  font-weight: 700;
}

.stamp-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 0.25rem;
}

@media (max-width: 420px) {
  .stamp-grid {
    gap: 0.55rem;
  }
}

.stamp-slot {
  align-items: center;
  aspect-ratio: 1;
  background: #fff;
  border: 2px dashed rgba(200, 146, 42, 0.28);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stamp-slot--reward {
  border-style: solid;
  border-color: rgba(200, 146, 42, 0.45);
}

.stamp-slot--filled {
  background: linear-gradient(145deg, #d4a039 0%, #b87d1d 100%);
  border: 2px solid #a56f18;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 10px rgba(184, 125, 29, 0.28);
  transform: scale(1.02);
}

.stamp-slot--filled.stamp-slot--reward {
  background: linear-gradient(145deg, #e8b84a 0%, #c8922a 55%, #9a6714 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 0 3px rgba(200, 146, 42, 0.15),
    0 6px 14px rgba(184, 125, 29, 0.32);
}

.stamp-slot__icon {
  color: #fff;
  height: 52%;
  width: 52%;
}

.stamp-slot--reward:not(.stamp-slot--filled) .stamp-slot__icon {
  display: none;
}

.loyalty-card__fallback {
  color: var(--stamp-muted);
  margin: 0;
}

.loyalty-card__footer {
  border-top: 1px dashed rgba(200, 146, 42, 0.22);
  margin-top: auto;
  padding: 0.95rem 1.25rem 1.15rem;
  position: relative;
  z-index: 1;
}

.loyalty-card__badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.45rem 0.8rem;
}

.loyalty-card__badge--success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.loyalty-card__badge--muted {
  background: rgba(107, 114, 128, 0.1);
  color: var(--stamp-muted);
}

.portal-page {
  max-width: 760px;
  margin: 0 auto;
}

.portal-page__greeting {
  color: #374151;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.portal-page__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.portal-page__subtitle {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.portal-panel {
  background: #fff;
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  padding: 1.5rem;
}

.portal-panel--success {
  border-color: rgba(34, 197, 94, 0.25);
}

.appointment-form .form-label {
  font-weight: 600;
}

.required-mark,
.required-field::after {
  color: #dc2626;
  content: " *";
  font-weight: 700;
}

.privacy-note {
  background: rgba(59, 130, 246, 0.08);
  border-left: 4px solid #3b82f6;
  border-radius: 0.5rem;
  color: #1e3a8a;
  padding: 0.85rem 1rem;
}

.appointment-date-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.appointment-date-list__item {
  align-items: center;
  background: #f9fafb;
  border-radius: 0.75rem;
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.appointment-date-list__item span {
  color: #6b7280;
  font-size: 0.85rem;
}

.confirmed-box {
  background: rgba(34, 197, 94, 0.08);
  border-radius: 0.75rem;
  padding: 1rem;
}

.language-switcher {
  align-items: center;
  display: flex;
  gap: 0.35rem;
}

.language-switcher__link {
  color: #374151;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.language-switcher__link--active {
  color: #111827;
  text-decoration: underline;
}

.language-switcher__divider {
  color: #d1d5db;
}

.portal-home {
  max-width: 900px;
}

.portal-home-card {
  background: linear-gradient(160deg, #ffffff 0%, #faf8f5 100%);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-home-card:hover {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
}

.portal-home-card__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.portal-home-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.portal-home-card__text {
  color: #6b7280;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.portal-home-card__action {
  color: #1f2937;
  font-weight: 600;
}