/* ============================================================
   GRANNY'S USER PROFILE — Styles
   Brand: Gold #FDB439 | Dark #1F2933 | Brown #8B5A2B
   ============================================================ */

.gup-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* ── Notice ───────────────────────────────────────────────── */
.gup-notice {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  margin: 0 0 20px;
  line-height: 1.5;
  font-weight: 600;
}
.gup-notice--success { background:#E8F5E9; color:#1B5E20; border-left:4px solid #2E7D32; }
.gup-notice--error   { background:#FFEBEE; color:#B71C1C; border-left:4px solid #C62828; }
.gup-notice--warn    { background:#FFF8E1; color:#E65100; border-left:4px solid #FDB439; }
.gup-notice a { color:inherit; font-weight:700; }

/* ── Profile header ───────────────────────────────────────── */
.gup-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  background: #fff;
  border: 1px solid #E8E0D8;
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  flex-wrap: wrap;
}
.gup-header__avatar .gavt-avatar,
.gup-header__avatar .gavt-avatar--fallback {
  width: 96px !important;
  height: 96px !important;
  border: 3px solid #FDB439;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.gup-header__info { flex: 1; min-width: 160px; }
.gup-header__name {
  font-size: 26px;
  font-weight: 700;
  color: #1F2933;
  margin: 0 0 4px;
  font-family: Georgia, serif;
}
.gup-header__username { font-size: 14px; color: #7B8794; margin-bottom: 6px; }
.gup-header__meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #7B8794;
  flex-wrap: wrap;
}

/* Stats */
.gup-header__stats {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}
.gup-stat {
  text-align: center;
  padding: 12px 18px;
  background: #F9F9FB;
  border: 1px solid #E8E0D8;
  border-radius: 10px;
  min-width: 70px;
}
.gup-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #1F2933;
  font-family: Georgia, serif;
  line-height: 1;
}
.gup-stat span { font-size: 11px; color: #7B8794; margin-top: 4px; display: block; }

/* ── Tabs ─────────────────────────────────────────────────── */
.gup-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid #E8E0D8;
  flex-wrap: wrap;
}
.gup-tab {
  padding: 10px 20px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: #7B8794;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.gup-tab:hover { color: #1F2933; }
.gup-tab.active { color: #1F2933; border-bottom-color: #FDB439; }

/* ── Card ─────────────────────────────────────────────────── */
.gup-card {
  background: #fff;
  border: 1px solid #E8E0D8;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.gup-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #1F2933;
  margin: 0 0 6px;
  font-family: Georgia, serif;
}
.gup-card__desc { font-size: 14px; color: #7B8794; margin: 0 0 24px; line-height: 1.5; }

/* ── Form grid ────────────────────────────────────────────── */
.gup-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
.gup-field { display: flex; flex-direction: column; gap: 5px; }
.gup-field--full { grid-column: 1 / -1; }

.gup-field label {
  font-size: 13px;
  font-weight: 700;
  color: #3E4C59;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gup-locked {
  font-size: 11px;
  font-weight: 600;
  color: #7B8794;
  background: #F3F4F7;
  padding: 2px 7px;
  border-radius: 50px;
}
.gup-optional { font-weight: 400; color: #7B8794; font-size: 12px; }
.gup-field__help { font-size: 12px; color: #7B8794; }

.gup-field input[type="text"],
.gup-field input[type="email"],
.gup-field input[type="tel"],
.gup-field input[type="password"],
.gup-field textarea,
.gup-field select {
  padding: 10px 13px;
  border: 1px solid #E8E0D8;
  border-radius: 8px;
  font-size: 14px;
  color: #1F2933;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.gup-field input:focus,
.gup-field textarea:focus,
.gup-field select:focus {
  border-color: #FDB439;
  box-shadow: 0 0 0 3px rgba(253,180,57,0.2);
  outline: none;
}
.gup-field--disabled { background: #F9F9FB !important; color: #7B8794 !important; cursor: not-allowed; }
.gup-field textarea { resize: vertical; min-height: 100px; }

/* ── Buttons ──────────────────────────────────────────────── */
.gup-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.gup-btn--primary { background: #FDB439; color: #1F2933; }
.gup-btn--primary:hover { background: #E47B02; color: #fff; }
.gup-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.gup-form-actions { padding-top: 8px; }

/* ── Preferences list ─────────────────────────────────────── */
.gup-pref-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 24px; }

.gup-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #F3F4F7;
  cursor: pointer;
}
.gup-pref-row--select { cursor: default; }
.gup-pref-row:last-child { border-bottom: none; }

.gup-pref-row__info { flex: 1; }
.gup-pref-row__info strong { display: block; font-size: 15px; color: #1F2933; margin-bottom: 3px; }
.gup-pref-row__info span  { font-size: 13px; color: #7B8794; }

/* Toggle switch */
.gup-toggle-wrap { flex-shrink: 0; }
.gup-toggle-input { display: none; }
.gup-toggle {
  display: block;
  width: 48px;
  height: 26px;
  background: #E8E0D8;
  border-radius: 13px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}
.gup-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.gup-toggle-input:checked + .gup-toggle { background: #FDB439; }
.gup-toggle-input:checked + .gup-toggle::after { transform: translateX(22px); }

/* Digest frequency select */
.gup-digest-select {
  padding: 8px 32px 8px 12px;
  border: 1px solid #E8E0D8;
  border-radius: 8px;
  font-size: 14px;
  color: #1F2933;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237B8794' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  min-width: 140px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .gup-header { flex-direction: column; align-items: center; text-align: center; }
  .gup-header__meta { justify-content: center; }
  .gup-header__stats { justify-content: center; }
  .gup-form-grid { grid-template-columns: 1fr; }
  .gup-field--full { grid-column: 1; }
  .gup-tabs { gap: 0; }
  .gup-tab { padding: 10px 14px; font-size: 13px; }
}
