/* OttoCare PROFILE module — scoped to .oc-profile. Look moved from rewards_review_3.html (.profile-shell, .data-row, .profile-modal-*). */
.oc-profile, .oc-profile * { box-sizing: border-box; }
.oc-profile {
  position: absolute;          /* covers .oc-phone; profile.js switches to fixed when there is no phone */
  inset: 0;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  background: #0d1117;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
}
.oc-profile[hidden], .oc-profile [hidden] { display: none !important; }
.oc-profile-top { position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 44px 22px 16px; background: rgba(0, 0, 0, 0.92); }
.oc-profile-back {
  position: absolute;
  left: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.oc-profile-title { font-family: 'DM Serif Display', serif; font-size: 18px; }
.oc-profile-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 12px 110px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.55) transparent;
}
.oc-profile-content::-webkit-scrollbar { width: 4px; }
.oc-profile-content::-webkit-scrollbar-thumb { background: rgba(201, 168, 76, 0.55); border-radius: 4px; }

.oc-profile-section {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(29, 158, 117, 0.08) 0%, rgba(239, 159, 39, 0.04) 50%, rgba(29, 158, 117, 0.06) 100%);
}
.oc-profile-head { padding: 16px 18px; background: rgba(255, 255, 255, 0.04); color: #c9a84c; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.oc-profile-rows { padding: 0 10px; }
.oc-profile-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 12px 8px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.oc-profile-row:nth-child(odd) { background: rgba(255, 255, 255, 0.02); }
.oc-profile-row:hover { background: rgba(255, 255, 255, 0.08); }
.oc-profile-row:last-child { border-bottom: 0; }
.oc-profile-label { flex: 0 0 120px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
.oc-profile-value { flex: 1; font-size: 13px; text-align: right; word-break: break-word; color: rgba(255, 255, 255, 0.85); }
.oc-profile-actions { display: flex; justify-content: flex-end; padding: 12px 18px 16px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.oc-profile-edit {
  padding: 8px 14px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 6px;
  background: linear-gradient(145deg, rgba(201, 168, 76, 0.12), rgba(239, 159, 39, 0.08));
  color: #c9a84c;
  font: 600 12px 'DM Sans', sans-serif;
  cursor: pointer;
}

/* edit sheet: slides up from the bottom, above the bottom bar */
.oc-profile-sheet { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; background: rgba(0, 0, 0, 0.6); }
.oc-profile-sheet-box {
  width: 100%;
  max-height: 88%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #121821;
  animation: oc-profile-up 0.25s ease;
}
@keyframes oc-profile-up { from { transform: translateY(30px); opacity: 0; } }
.oc-profile-sheet-head { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 16px; font-weight: 600; }
.oc-profile-sheet-x { padding: 6px; border: 0; background: none; color: rgba(255, 255, 255, 0.5); font-size: 18px; cursor: pointer; }
.oc-profile-form {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.55) transparent;
}
.oc-profile-form::-webkit-scrollbar { width: 4px; }
.oc-profile-form::-webkit-scrollbar-thumb { background: rgba(201, 168, 76, 0.55); border-radius: 4px; }
.oc-profile-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.oc-profile-group span { font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.oc-profile-input { padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 6px; background: rgba(255, 255, 255, 0.04); color: #fff; font: 14px 'DM Sans', sans-serif; }
.oc-profile-input:focus { outline: none; border-color: #c9a84c; }
.oc-profile-sheet-status { margin: 0 18px 10px; padding: 10px 12px; border: 1px solid rgba(255, 0, 0, 0.3); border-radius: 6px; background: rgba(255, 0, 0, 0.1); color: #ff8b8b; font-size: 13px; }
.oc-profile-sheet-foot { flex-shrink: 0; display: flex; gap: 8px; padding: 14px 18px 96px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.oc-profile-btn { flex: 1; padding: 11px 16px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; background: transparent; color: rgba(255, 255, 255, 0.75); font: 600 13px 'DM Sans', sans-serif; cursor: pointer; }
.oc-profile-btn.primary { border-color: #c9a84c; background: linear-gradient(145deg, #c9a84c 0%, #d4b85a 100%); color: #0a0800; font-weight: 700; }
.oc-profile-btn:disabled { opacity: 0.6; cursor: default; }

.oc-profile-toast {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 3;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border: 1px solid rgba(29, 158, 117, 0.45);
  border-radius: 8px;
  background: rgba(13, 40, 32, 0.95);
  color: #fff;
  font-size: 13px;
  text-align: center;
  transform: translateX(-50%);
}
