/* ================================================================
   HAPPY FIRSTS — Global Design System
   Modern Pastel & Warm Theme System
================================================================ */

:root {
  /* Core Palette */
  --bg-primary: #FAF8F6;
  --bg-card: #FFFFFF;
  --text-primary: #2C2628;
  --text-secondary: #7D7074;
  --text-muted: #A09397;
  
  --border-color: #EAE3E1;
  --divider-color: #F0EAE8;
  
  /* Accent Colors — Refined Rose (matches the mobile app's brand primary) */
  --accent-color: #B26A82;
  --accent-hover: #9A5670;
  --accent-soft: #F6EAEE;
  --accent-gradient: linear-gradient(135deg, #C47E94, #9A5670);
  
  /* Category Pastels */
  --cat-social: #F28F9F;
  --cat-social-bg: #FFF5F6;
  --cat-language: #8CBBE6;
  --cat-language-bg: #F2F7FC;
  --cat-motor: #88D49E;
  --cat-motor-bg: #F2FAF5;
  --cat-cognitive: #F7C06D;
  --cat-cognitive-bg: #FFFDF5;
  --cat-self-care: #B19CE3;
  --cat-self-care-bg: #F7F5FC;
  
  /* Transitions & Shadows */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  
  --shadow-sm: 0 2px 8px rgba(179, 125, 146, 0.05);
  --shadow-md: 0 6px 20px rgba(179, 125, 146, 0.08);
  --shadow-lg: 0 12px 32px rgba(179, 125, 146, 0.12);
  
  /* Fonts */
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ================================================================
   APP NAV
================================================================ */
.hf-nav {
  height: 90px;
  background: rgba(250, 248, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(234, 227, 225, 0.6);
  display: flex;
  align-items: center;
  padding: 0 80px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all var(--transition-normal);
}

.hf-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-gradient);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(179, 125, 146, 0.3);
}

.hf-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  font-family: var(--font-display);
  color: var(--text-primary);
  text-decoration: none;
  margin-right: auto;
  transition: transform var(--transition-fast);
}

.hf-nav__brand:hover {
  transform: translateY(-1px);
}

.hf-nav__inbox {
  position: relative;
  margin-right: 32px;
}

.hf-nav__inbox-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-primary);
  border-radius: 50%;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.hf-nav__inbox-link:hover {
  background: var(--accent-soft);
  color: var(--accent-color);
}

.hf-nav__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--cat-social);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(242, 143, 159, 0.4);
}

.hf-nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.hf-nav__link {
  font-weight: 500;
  font-size: 16px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.hf-nav__link:hover {
  color: var(--accent-color);
}

.hf-nav__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--text-primary);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hf-nav__btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ================================================================
   MAIN CONTENT
================================================================ */
.hf-main {
  min-height: calc(100vh - 90px - 264px);
  padding: 48px 80px;
}

.hf-main--flush {
  padding: 0;
}

/* ================================================================
   FLASH ALERTS
================================================================ */
.hf-flash-container {
  padding: 0 80px;
}

@media (max-width: 768px) {
  .hf-flash-container { padding: 0 20px; }
}

.hf-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 12px;
}

.hf-alert--success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.hf-alert--danger  { background: #fdf0f0; color: #c0392b; border: 1px solid #fecaca; }
.hf-alert--warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.hf-alert--info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ================================================================
   FOOTER
================================================================ */
.hf-footer {
  background: #fff;
  border-top: 1px solid #E6E6E6;
  height: 264px;
  position: relative;
  padding: 52px 80px 0;
}

.hf-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  color: #000;
  margin: 0;
}

.hf-footer__social {
  display: flex;
  gap: 8px;
  position: absolute;
  bottom: 40px;
  left: 80px;
}

.hf-footer__icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.hf-footer__legal {
  position: absolute;
  bottom: 40px;
  right: 80px;
  font-size: 14px;
}

.hf-footer__legal a {
  color: #828282;
  text-decoration: none;
}

.hf-footer__legal a + a {
  margin-left: 16px;
}

.hf-footer__legal a:hover {
  color: #1E1E1E;
  text-decoration: underline;
}

/* ================================================================
   PAGE HEADINGS
================================================================ */
.hf-page-title {
  font-weight: 600;
  font-size: 40px;
  line-height: 120%;
  color: #000;
  margin-bottom: 8px;
}

.hf-page-subtitle {
  font-weight: 400;
  font-size: 20px;
  color: #828282;
  margin-bottom: 32px;
}

/* ================================================================
   CARDS
================================================================ */
.hf-card {
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.hf-card__title {
  font-weight: 600;
  font-size: 18px;
  color: #000;
  margin-bottom: 4px;
}

.hf-card__subtitle {
  font-size: 14px;
  color: #828282;
  margin-bottom: 16px;
}

/* Baby profile card (on index / account) */
.hf-baby-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hf-baby-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 2px 8px rgba(156,108,125,0.15);
}

.hf-baby-card__name {
  font-weight: 600;
  font-size: 20px;
  color: #000;
  margin-bottom: 4px;
}

.hf-baby-card__meta {
  font-size: 14px;
  color: #828282;
}

.hf-baby-card__arrow {
  color: #828282;
  font-size: 20px;
}

/* Role badge */
.hf-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.hf-role-badge--owner     { background: var(--accent-soft); color: var(--accent-color); }
.hf-role-badge--caregiver { background: #f0fdf4; color: #16a34a; }
.hf-role-badge--viewer    { background: #f1f5f9; color: #475569; }

/* ================================================================
   FORMS
================================================================ */
.hf-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 540px;
}

.hf-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hf-label {
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.hf-input,
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #000;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.hf-input:focus,
.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(156,108,125,0.12);
}

.hf-input::placeholder,
.form-control::placeholder { color: #828282; }

.hf-input.is-invalid,
.form-control.is-invalid { border-color: #dc3545; }

.hf-field-error,
.invalid-feedback {
  font-size: 13px;
  color: #c0392b;
}

textarea.hf-input,
textarea.form-control { resize: vertical; }

select.hf-input,
select.form-control { cursor: pointer; }

/* Form check (checkbox) */
.form-check-input {
  width: 16px;
  height: 16px;
  border: 1.5px solid #E0E0E0;
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--accent-color);
}

.form-check-label {
  font-size: 15px;
  color: #333;
  cursor: pointer;
}

/* ================================================================
   BUTTONS
================================================================ */
.btn,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s, background 0.15s;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn:hover, button[type="submit"]:hover { opacity: 0.88; }

.btn-primary,
button[type="submit"].btn-primary {
  background: var(--accent-color);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-hover); color: #fff; opacity: 1; }

.btn-secondary { background: #f1f5f9; color: #333; border: 1px solid #E0E0E0; }
.btn-secondary:hover { background: #e8edf2; color: #333; opacity: 1; }

.btn-success { background: #16a34a; color: #fff; }
.btn-warning { background: #ffc107; color: #000; }
.btn-danger  { background: #dc3545; color: #fff; }
.btn-info    { background: #0dcaf0; color: #000; }
.btn-link    { background: transparent; color: var(--accent-color); box-shadow: none; padding: 0; }
.btn-link:hover { text-decoration: underline; opacity: 1; }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 18px; }

/* Soft action button (matching Figma "Add a first" / "Log in" style) */
.btn-soft {
  background: var(--accent-soft);
  color: var(--accent-color);
  border: none;
}

.btn-soft:hover { background: #EFDCE2; color: var(--accent-color); opacity: 1; }

/* Outline variants */
.btn-outline-primary { background: transparent; border: 1px solid var(--accent-color); color: var(--accent-color); }
.btn-outline-primary:hover { background: var(--accent-soft); color: var(--accent-color); opacity: 1; }
.btn-outline-secondary { background: transparent; border: 1px solid #E0E0E0; color: #666; }

/* ================================================================
   BADGES
================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.bg-primary   { background: var(--accent-color) !important; color: #fff !important; }
.bg-secondary { background: #6c757d !important; color: #fff !important; }
.bg-success   { background: #16a34a !important; color: #fff !important; }
.bg-warning   { background: #ffc107 !important; color: #000 !important; }
.bg-danger    { background: #dc3545 !important; color: #fff !important; }
.bg-info      { background: #0dcaf0 !important; color: #000 !important; }

/* ================================================================
   DIVIDERS
================================================================ */
hr {
  border: none;
  border-top: 1px solid #E6E6E6;
  margin: 24px 0;
}

/* ================================================================
   TABLES
================================================================ */
.table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.table th {
  font-weight: 600;
  color: #828282;
  border-bottom: 1px solid #E6E6E6;
  padding: 8px 12px;
  text-align: left;
}

.table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}

/* ================================================================
   NOTIFICATIONS / INBOX
================================================================ */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.notif-item--unread { background: #fefcfa; }

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-color);
  flex-shrink: 0;
  margin-top: 6px;
}

.notif-message {
  flex: 1;
  font-size: 15px;
  color: #000;
  line-height: 1.5;
}

.notif-meta {
  font-size: 12px;
  color: #828282;
  margin-top: 4px;
}

/* ================================================================
   TIMELINE (standalone — styles live in timeline.html)
   Some shared utilities referenced from timeline.js modals
================================================================ */

/* Modal Backdrop */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
}

.modal-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
}

.modal-content-box {
  background: white;
  border-radius: 12px;
  padding: 28px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  font-family: 'Inter', sans-serif;
}

.modal-close-btn {
  position: absolute;
  top: 16px; right: 16px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #828282;
  line-height: 1;
}

.modal-close-btn:hover { color: #000; }

.modal-heading {
  margin: 0 0 20px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #000;
}

.form-group-styled { margin-bottom: 14px; }
.form-group-styled label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 13px; color: #333; }
.form-group-styled input[type="text"],
.form-group-styled input[type="date"],
.form-group-styled textarea,
.form-group-styled input[type="file"] {
  width: 100%; padding: 8px 12px;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px; outline: none;
}
.form-group-styled input:focus,
.form-group-styled textarea:focus { border-color: var(--accent-color); }
.form-group-styled textarea { resize: vertical; }

.button-container {
  display: flex; gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Modal tabs */
.modal-tabs {
  display: flex;
  border-bottom: 2px solid #E0E0E0;
  margin-bottom: 20px;
}

.modal-tab {
  flex: 1; padding: 10px 14px;
  background: transparent; border: none;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  color: #666; font-weight: 500; cursor: pointer;
  font-size: 14px; font-family: 'Inter', sans-serif;
  display: flex; align-items: center; justify-content: center;
  gap: 4px; transition: color 0.15s;
}

.modal-tab:hover { color: #333; background: #f8f8f8; }
.modal-tab.active { color: var(--accent-color); border-bottom-color: var(--accent-color); font-weight: 600; }
.modal-tab-content { display: none; }
.modal-tab-content.active { display: block; }

/* Image management */
.image-container { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }

.image-wrapper {
  position: relative; width: 100px; height: 100px;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.image-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.remove-image {
  position: absolute; top: 4px; right: 4px;
  background: rgba(220,53,69,0.85); border: none; border-radius: 50%;
  color: #fff; font-size: 13px; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}

.primary-badge {
  position: absolute; bottom: 4px; left: 4px;
  background: rgba(156,108,125,0.85); color: white;
  font-size: 10px; padding: 2px 5px; border-radius: 3px;
  font-family: 'Inter', sans-serif;
}

.set-primary {
  position: absolute; bottom: 4px; left: 4px;
  background: rgba(0,0,0,0.55); color: white;
  font-size: 10px; padding: 2px 5px; border-radius: 3px;
  border: none; cursor: pointer; font-family: 'Inter', sans-serif;
}

/* Delete confirmation modal */
.delete-modal-backdrop {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 1200;
}

.delete-modal-container { display: flex; align-items: center; justify-content: center; height: 100%; }

.delete-modal-content {
  background: white; border-radius: 12px; padding: 24px;
  max-width: 400px; width: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  position: relative; font-family: 'Inter', sans-serif;
}

.delete-modal-close {
  position: absolute; top: 12px; right: 12px;
  background: transparent; border: none;
  font-size: 1.3rem; cursor: pointer; color: #828282;
}

.delete-modal-close:hover { color: #000; }
.delete-modal-heading { margin-top: 0; font-size: 1.15rem; font-weight: 600; color: #000; margin-bottom: 10px; }
.delete-modal-text { margin: 0; font-size: 0.9rem; color: #444; }
.delete-button-container { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* Zoom controls (timeline only, fixed) */
.zoom-controls {
  position: fixed; bottom: 40px; right: 40px;
  display: flex; gap: 16px; z-index: 1000;
}

.zoom-btn {
  width: 48px; height: 48px;
  background: #fff; border: 2px solid #1E1E1E;
  border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #1E1E1E; transition: background 0.15s, color 0.15s;
}

.zoom-btn:hover { background: #f5f5f5; }
.zoom-btn.active { background: #1E1E1E; color: #fff; }

/* Product recommendations */
.product-card {
  background: #fff; border: 1px solid #E0E0E0;
  border-radius: 8px; padding: 14px; margin-bottom: 12px;
  transition: box-shadow 0.15s;
}

.product-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.product-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.product-icon { font-size: 1.2rem; }
.product-card-title { margin: 0; font-size: 0.95rem; font-weight: 600; color: #000; }
.product-card-description { color: #666; font-size: 0.85rem; line-height: 1.5; margin-bottom: 10px; }
.no-products-message { padding: 28px 16px; text-align: center; color: #888; font-size: 0.9rem; }

.affiliate-disclosure {
  padding: 10px 14px; background: #fef9f4;
  border-radius: 8px; border-left: 3px solid var(--accent-color); margin-top: 12px;
}

.affiliate-disclosure small { color: #666; font-size: 12px; }

/* Selection container */
.selection-container {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: white; border: 1px solid #E0E0E0;
  padding: 20px; box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 1300; border-radius: 10px; font-family: 'Inter', sans-serif;
}

.selection-option { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.selection-image { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }

.set-as-primary {
  padding: 5px 12px; font-size: 13px;
  background: var(--accent-color); color: white;
  border: none; border-radius: 6px; cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.set-as-primary:disabled { background: #ccc; cursor: not-allowed; }

/* Timeline bubbles (standalone timeline page — kept for any fallback) */
.timeline-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 20px auto 10px;
}

.baby-dropdown { position: relative; display: inline-block; }

.baby-dropdown-btn {
  background: transparent; border: none;
  padding: 4px 8px; cursor: pointer;
  color: #000; border-radius: 4px;
  display: flex; align-items: center;
}

.baby-dropdown-btn:hover { background: rgba(0,0,0,0.06); }

.baby-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: white; border: 1px solid #E0E0E0;
  border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  min-width: 150px; z-index: 1000; margin-top: 4px;
}

.baby-dropdown-menu.show { display: block; }

.baby-dropdown-item {
  display: block; padding: 10px 16px;
  color: #000; text-decoration: none;
  font-size: 15px; font-weight: 500;
}

.baby-dropdown-item:hover { background: var(--accent-soft); color: var(--accent-color); }

/* ================================================================
   PAGE CONTENT CONTAINER
================================================================ */
.hf-content {
  max-width: 640px;
  margin: 0 auto;
}

.hf-content--wide {
  max-width: 860px;
  margin: 0 auto;
}

/* ---- Inline editable name (account page header) ---- */
.inline-name-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-name-input {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #828282;
  background: transparent;
  border: none;
  border-bottom: 1px dashed transparent;
  outline: none;
  padding: 2px 0;
  min-width: 80px;
  max-width: 280px;
  transition: border-color 0.15s, color 0.15s;
}

.inline-name-input:hover { border-bottom-color: #ccc; }
.inline-name-input:focus { border-bottom-color: var(--accent-color); color: #333; }

.inline-name-save {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-color);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transition: opacity 0.15s;
}

.inline-name-form:focus-within .inline-name-save { opacity: 1; }

/* Google OAuth button */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  margin-bottom: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.google-btn:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(156,108,125,0.10);
  color: #000;
}

/* ================================================================
   AVATAR
================================================================ */
.hf-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: #f4eef1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border: 2px solid #f0d8e0;
}

.hf-avatar img { width: 100%; height: 100%; object-fit: cover; }

.hf-avatar__initials {
  font-size: 28px;
  font-weight: 600;
  color: var(--accent-color);
  line-height: 1;
  user-select: none;
}

.hf-avatar--sm { width: 44px; height: 44px; }
.hf-avatar--sm .hf-avatar__initials { font-size: 17px; }

.hf-avatar__edit {
  position: absolute; bottom: 0; right: 0;
  background: var(--accent-color); color: #fff;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  transition: background 0.15s;
}

.hf-avatar__edit:hover { background: #7a5363; }

/* ================================================================
   ON THIS DAY
================================================================ */
.hf-on-this-day {
  background: #fdf5f7;
  border: 1px solid #f0d8e0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.hf-on-this-day__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 14px;
}

.hf-on-this-day__item {
  padding: 10px 0;
  border-bottom: 1px solid #f0d8e0;
}

.hf-on-this-day__item:last-child { border-bottom: none; padding-bottom: 0; }

.hf-on-this-day__years {
  font-size: 11px;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 2px;
}

.hf-on-this-day__title {
  font-size: 15px;
  font-weight: 600;
  color: #000;
}

.hf-on-this-day__meta {
  font-size: 13px;
  color: #828282;
  margin-top: 2px;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 768px) {
  .hf-nav { padding: 0 20px; height: 80px; }
  .hf-nav__link { font-size: 16px; }
  .hf-nav__links { gap: 20px; }
  .hf-main { padding: 24px 20px; }
  .hf-footer { padding: 32px 20px 0; height: auto; min-height: 160px; }
  .hf-footer__social { position: static; margin-top: 24px; }
  .hf-footer__legal { position: static; margin-top: 16px; }
}

/* ================================================================
   TOAST NOTIFICATIONS
================================================================ */
.hf-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.hf-toast.hf-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.hf-toast.hf-toast--error {
  background: #c0392b;
}
.hf-toast.hf-toast--success {
  background: #27ae60;
}
