/* ═══════════════════════════════════════════════════════════════════
   STUDYRIA ME V3 — REFERENCE MATCH CSS
   Safe Layer — does not override any existing IDs or break existing UI
   Based on reference screenshot (Prasanta Kumar Das profile layout)
   ═══════════════════════════════════════════════════════════════════ */

/* ─── OVERVIEW LAYOUT: 2-col on desktop, 1-col on mobile ─────────── */
.v3-overview-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px 20px 40px;
  max-width: 1280px;
  margin: 0 auto;
}
@media(max-width: 900px) {
  .v3-overview-wrap { grid-template-columns: 1fr; }
}

/* ─── LEFT: PROFILE CARD ──────────────────────────────────────────── */
.v3-profile-card {
  background: var(--glass, rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 24px 20px;
  backdrop-filter: blur(20px);
  position: sticky;
  top: 80px;
}
body.light .v3-profile-card {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.07);
}

/* Avatar section */
.v3-pc-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
}
.v3-pc-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3d8ef8, #00c8e8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  border: 3px solid rgba(61,142,248,0.4);
  box-shadow: 0 0 0 4px rgba(61,142,248,0.12), 0 8px 28px rgba(0,0,0,0.3);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}
.v3-pc-avatar:hover { transform: scale(1.06); }
.v3-pc-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}

/* Camera overlay on hover */
.v3-pc-avatar-overlay {
  position: absolute;
  inset: 0; border-radius: 50%;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
}
.v3-pc-avatar:hover .v3-pc-avatar-overlay { opacity: 1; }
.v3-pc-avatar-overlay svg { color: #fff; }

/* Online dot */
.v3-pc-online {
  position: absolute; bottom: 6px; right: calc(50% - 44px + 4px);
  width: 16px; height: 16px; border-radius: 50%;
  background: #10d98e;
  border: 3px solid #0d1a3a;
  z-index: 2;
}
body.light .v3-pc-online { border-color: #fff; }

/* Name + badges */
.v3-pc-name {
  font-family: var(--font-display, 'Clash Display', sans-serif);
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
  margin: 10px 0 2px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.v3-pc-verified-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: #3b82f6;
  flex-shrink: 0;
}
.v3-pc-verified-tick svg { color: #fff; }

.v3-pc-badges {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  flex-wrap: wrap; margin-bottom: 10px;
}
.v3-pc-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em;
}
.v3-pc-badge.premium {
  background: linear-gradient(135deg, rgba(245,158,11,0.25), rgba(249,115,22,0.15));
  border: 1px solid rgba(245,158,11,0.4);
  color: #fbbf24;
}
.v3-pc-badge.verified {
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: #60a5fa;
}

/* Meta info */
.v3-pc-meta {
  text-align: center;
  font-size: 0.76rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 12px;
}
.v3-pc-meta-row {
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.v3-pc-meta-row svg { opacity: 0.6; }

/* Bio */
.v3-pc-bio {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text2);
  font-style: italic;
  margin-bottom: 14px;
  padding: 8px 12px;
  background: rgba(61,142,248,0.06);
  border-radius: 10px;
  border-left: 3px solid rgba(61,142,248,0.3);
}

/* Streak + Calendar row */
.v3-pc-streak-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.v3-pc-streak-label {
  font-size: 0.72rem; color: var(--text2); font-weight: 600;
}
.v3-pc-streak-num {
  font-family: var(--font-display, sans-serif);
  font-size: 1.6rem; font-weight: 800;
  background: linear-gradient(135deg, #f97316, #ef4444);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.v3-pc-streak-fire { font-size: 1.1rem; margin-right: 2px; }

/* 7-day calendar dots */
.v3-pc-cal {
  display: flex; gap: 4px; margin-bottom: 14px; justify-content: center;
}
.v3-pc-cal-day {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.v3-pc-cal-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700;
}
.v3-pc-cal-dot.active {
  background: linear-gradient(135deg, #3d8ef8, #00c8e8);
  color: #fff;
}
.v3-pc-cal-dot.inactive {
  background: rgba(255,255,255,0.06);
  color: var(--text2);
}
body.light .v3-pc-cal-dot.inactive { background: rgba(0,0,0,0.07); }
.v3-pc-cal-lbl {
  font-size: 0.56rem; color: var(--text2); text-transform: uppercase;
}

/* Goal row */
.v3-pc-goal {
  margin-bottom: 14px;
}
.v3-pc-goal-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; color: var(--text2); margin-bottom: 6px;
}
.v3-pc-goal-num { font-weight: 700; color: var(--text); }
.v3-pc-goal-track {
  height: 6px; border-radius: 6px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}
body.light .v3-pc-goal-track { background: rgba(0,0,0,0.08); }
.v3-pc-goal-fill {
  height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, #3d8ef8, #8b5cf6);
  transition: width 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* Completion bar */
.v3-pc-completion {
  margin-bottom: 14px;
}
.v3-pc-completion-head {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; color: var(--text2); margin-bottom: 5px;
}
.v3-pc-completion-pct {
  font-weight: 700; color: #3d8ef8;
}
.v3-pc-completion-track {
  height: 5px; border-radius: 5px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
body.light .v3-pc-completion-track { background: rgba(0,0,0,0.07); }
.v3-pc-completion-fill {
  height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, #10d98e, #3d8ef8);
  transition: width 0.8s ease;
}

/* Edit Profile button */
.v3-pc-edit-btn {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1.5px solid rgba(61,142,248,0.35);
  background: rgba(61,142,248,0.08);
  color: #3d8ef8;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all 0.22s;
  margin-top: 4px;
}
.v3-pc-edit-btn:hover {
  background: rgba(61,142,248,0.15);
  border-color: rgba(61,142,248,0.6);
  transform: translateY(-1px);
}

/* ─── RIGHT: MAIN CONTENT ─────────────────────────────────────────── */
.v3-main-col { min-width: 0; }

/* Stats row (Downloads / Wishlist / Purchases / Certificates) */
.v3-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
@media(max-width:640px) {
  .v3-stats-row { grid-template-columns: repeat(2, 1fr); }
}
.v3-stat-card {
  background: var(--glass, rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 16px 14px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s;
  backdrop-filter: blur(16px);
}
body.light .v3-stat-card {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.07);
}
.v3-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.v3-stat-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.v3-si-blue   { background: rgba(61,142,248,0.15); }
.v3-si-red    { background: rgba(239,68,68,0.15); }
.v3-si-green  { background: rgba(16,217,142,0.15); }
.v3-si-purple { background: rgba(139,92,246,0.15); }
.v3-stat-info {}
.v3-stat-num {
  font-family: var(--font-display, sans-serif);
  font-size: 1.5rem; font-weight: 800; line-height: 1;
}
.v3-stat-lbl {
  font-size: 0.68rem; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ─── SECTION HEADERS ─────────────────────────────────────────────── */
.v3-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.v3-section-title {
  font-family: var(--font-display, sans-serif);
  font-size: 1rem; font-weight: 800;
}
.v3-section-link {
  font-size: 0.78rem; color: var(--accent, #3d8ef8); font-weight: 600;
  cursor: pointer; text-decoration: none;
  display: flex; align-items: center; gap: 4px;
}
.v3-section-link:hover { text-decoration: underline; }

/* ─── CONTINUE LEARNING CAROUSEL ─────────────────────────────────── */
.v3-cl-section { margin-bottom: 24px; }
.v3-cl-track {
  display: flex; gap: 12px;
  overflow-x: auto; padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.v3-cl-track::-webkit-scrollbar { display: none; }
.v3-cl-card {
  min-width: 150px; max-width: 150px;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--glass, rgba(255,255,255,0.04));
  scroll-snap-align: start;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.22s;
}
body.light .v3-cl-card {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.07);
}
.v3-cl-card:hover { transform: translateY(-3px); }
.v3-cl-cover {
  width: 100%; height: 100px; object-fit: cover;
  background: linear-gradient(135deg, #1e3a5f, #0d1a3a);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.v3-cl-cover img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.v3-cl-cover-fallback {
  font-weight: 900; font-size: 0.65rem; text-align: center;
  padding: 6px; color: #fff; line-height: 1.3; position: relative; z-index: 1;
}
.v3-cl-badge {
  position: absolute; top: 6px; left: 6px;
  padding: 2px 7px; border-radius: 6px;
  font-size: 0.58rem; font-weight: 800;
  z-index: 2;
}
.v3-cl-badge.premium {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
}
.v3-cl-badge.free {
  background: #10d98e; color: #000;
}
.v3-cl-progress-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,0.15);
  z-index: 2;
}
.v3-cl-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3d8ef8, #00c8e8);
}
.v3-cl-info { padding: 10px; }
.v3-cl-title {
  font-size: 0.75rem; font-weight: 700; line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.v3-cl-prog-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.65rem; color: var(--text2); margin-bottom: 6px;
}
.v3-cl-continue-btn {
  width: 100%; padding: 5px;
  border-radius: 8px; border: none;
  background: linear-gradient(135deg, #3d8ef8, #00c8e8);
  color: #fff; font-size: 0.7rem; font-weight: 700;
  cursor: pointer; transition: opacity 0.2s;
}
.v3-cl-continue-btn:hover { opacity: 0.88; }

/* ─── RECENT DOWNLOADS LIST ───────────────────────────────────────── */
.v3-dl-section { margin-bottom: 24px; }
.v3-dl-list { display: flex; flex-direction: column; gap: 8px; }
.v3-dl-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--glass, rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
body.light .v3-dl-item {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.06);
}
.v3-dl-item:hover {
  background: rgba(61,142,248,0.06);
  transform: translateX(2px);
}
.v3-dl-icon {
  width: 38px; height: 44px; border-radius: 8px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 900; color: #fff; flex-shrink: 0;
  letter-spacing: 0.02em;
}
.v3-dl-info { flex: 1; min-width: 0; }
.v3-dl-title {
  font-size: 0.83rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.v3-dl-meta { font-size: 0.68rem; color: var(--text2); }
.v3-dl-meta span { margin-right: 8px; }
.v3-dl-badge {
  padding: 3px 8px; border-radius: 6px;
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2);
  font-size: 0.6rem; font-weight: 700; color: #f87171; flex-shrink: 0;
}
.v3-dl-actions {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.v3-dl-btn {
  width: 30px; height: 30px; border-radius: 8px; border: none;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text2);
  transition: background 0.2s;
}
body.light .v3-dl-btn { background: rgba(0,0,0,0.05); }
.v3-dl-btn:hover { background: rgba(61,142,248,0.15); color: #3d8ef8; }

/* ─── ACHIEVEMENTS GRID ───────────────────────────────────────────── */
.v3-ach-section { margin-bottom: 24px; }
.v3-ach-grid {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.v3-ach-badge {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: 72px;
}
.v3-ach-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  border: 2px solid rgba(255,255,255,0.08);
  transition: transform 0.22s;
}
.v3-ach-badge:hover .v3-ach-icon { transform: scale(1.1); }
.v3-ach-badge.locked .v3-ach-icon { opacity: 0.35; filter: grayscale(0.8); }
.v3-ach-lbl {
  font-size: 0.62rem; font-weight: 600; text-align: center;
  color: var(--text2); line-height: 1.2;
}
.v3-ach-badge.locked .v3-ach-lbl { opacity: 0.5; }

/* ─── SETTINGS GRID ───────────────────────────────────────────────── */
.v3-settings-section { margin-bottom: 24px; }
.v3-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media(max-width:600px) {
  .v3-settings-grid { grid-template-columns: repeat(1, 1fr); }
}
.v3-settings-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--glass, rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
body.light .v3-settings-item {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.06);
}
.v3-settings-item:hover {
  background: rgba(61,142,248,0.07);
  transform: translateY(-1px);
}
.v3-si-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.v3-si-info { flex: 1; min-width: 0; }
.v3-si-label { font-size: 0.82rem; font-weight: 700; }
.v3-si-desc  { font-size: 0.68rem; color: var(--text2); margin-top: 1px; }
.v3-si-arrow { color: var(--text2); opacity: 0.4; flex-shrink: 0; }

/* ─── GO PREMIUM CARD ─────────────────────────────────────────────── */
.v3-go-premium {
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(139,92,246,0.2) 0%, rgba(61,142,248,0.15) 100%);
  border: 1px solid rgba(139,92,246,0.3);
  margin-top: 14px;
}
.v3-gp-crown { font-size: 1.4rem; margin-bottom: 8px; }
.v3-gp-title { font-weight: 800; font-size: 0.9rem; margin-bottom: 4px; }
.v3-gp-sub { font-size: 0.74rem; color: var(--text2); margin-bottom: 12px; line-height: 1.4; }
.v3-gp-btn {
  width: 100%; padding: 10px;
  border-radius: 10px; border: none;
  background: linear-gradient(135deg, #8b5cf6, #3d8ef8);
  color: #fff; font-weight: 800; font-size: 0.82rem;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(139,92,246,0.3);
}
.v3-gp-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139,92,246,0.4);
}

/* ─── EDIT PROFILE FULL PAGE ──────────────────────────────────────── */
.v3-edit-wrap {
  max-width: 720px; margin: 0 auto;
  padding: 20px 20px 40px;
  animation: dashFadeUp 0.35s ease both;
}
.v3-edit-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
}
.v3-edit-back {
  width: 36px; height: 36px; border-radius: 10px; border: none;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text);
  transition: background 0.2s;
}
body.light .v3-edit-back { background: rgba(0,0,0,0.06); }
.v3-edit-back:hover { background: rgba(61,142,248,0.15); color: #3d8ef8; }
.v3-edit-title {
  font-family: var(--font-display, sans-serif);
  font-size: 1.3rem; font-weight: 800;
}

/* Photo picker in edit */
.v3-edit-photo-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px; border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 22px;
}
body.light .v3-edit-photo-row {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.07);
}
.v3-edit-photo {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #3d8ef8, #00c8e8);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: #fff;
  border: 3px solid rgba(61,142,248,0.3);
  overflow: hidden; flex-shrink: 0;
}
.v3-edit-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.v3-edit-photo-info { flex: 1; }
.v3-edit-photo-title { font-weight: 700; font-size: 0.88rem; margin-bottom: 3px; }
.v3-edit-photo-hint { font-size: 0.72rem; color: var(--text2); margin-bottom: 8px; }
.v3-edit-photo-btn {
  padding: 7px 16px; border-radius: 9px; border: none;
  background: linear-gradient(135deg, #3d8ef8, #00c8e8);
  color: #fff; font-weight: 700; font-size: 0.78rem;
  cursor: pointer; transition: transform 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.v3-edit-photo-btn:hover { transform: scale(1.04); }

/* Edit form grid */
.v3-edit-card {
  background: var(--glass, rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px; padding: 22px;
  margin-bottom: 14px;
  backdrop-filter: blur(16px);
}
body.light .v3-edit-card {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.07);
}
.v3-edit-card-title {
  font-size: 0.78rem; font-weight: 800; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.v3-edit-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media(max-width:600px) { .v3-edit-grid { grid-template-columns: 1fr; } }
.v3-edit-field { display: flex; flex-direction: column; gap: 5px; }
.v3-edit-field.full { grid-column: 1 / -1; }
.v3-edit-label {
  font-size: 0.75rem; font-weight: 600; color: var(--text2);
  display: flex; align-items: center; gap: 4px;
}
.v3-edit-label .req { color: #ef4444; }
.v3-edit-input {
  padding: 11px 13px; border-radius: 11px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.08);
  color: var(--text); font-size: 0.85rem;
  font-family: inherit; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
body.light .v3-edit-input {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,0,0,0.1);
  color: #1a1a2e;
}
.v3-edit-input:focus {
  border-color: rgba(61,142,248,0.5);
  box-shadow: 0 0 0 3px rgba(61,142,248,0.09);
}
.v3-edit-input:read-only { opacity: 0.55; cursor: not-allowed; }
.v3-edit-select {
  padding: 11px 13px; border-radius: 11px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.08);
  color: var(--text); font-size: 0.85rem;
  outline: none; cursor: pointer; width: 100%;
  transition: border-color 0.2s;
}
body.light .v3-edit-select {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,0,0,0.1);
  color: #1a1a2e;
}
.v3-edit-select:focus { border-color: rgba(61,142,248,0.5); }
.v3-edit-textarea {
  padding: 11px 13px; border-radius: 11px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.08);
  color: var(--text); font-size: 0.85rem;
  font-family: inherit; outline: none; resize: vertical; min-height: 75px;
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
body.light .v3-edit-textarea {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,0,0,0.1);
  color: #1a1a2e;
}
.v3-edit-textarea:focus {
  border-color: rgba(61,142,248,0.5);
  box-shadow: 0 0 0 3px rgba(61,142,248,0.09);
}

/* Save bar */
.v3-edit-save-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 18px; flex-wrap: wrap;
}
.v3-edit-save-hint { font-size: 0.72rem; color: var(--text2); }
.v3-edit-save-btn {
  padding: 11px 28px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, #3d8ef8, #00c8e8);
  color: #fff; font-weight: 800; font-size: 0.85rem;
  cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(61,142,248,0.25);
}
.v3-edit-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(61,142,248,0.35);
}
.v3-edit-save-btn:active { transform: scale(0.97); }
.v3-edit-save-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Completion banner */
.v3-completion-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 13px;
  background: rgba(61,142,248,0.08);
  border: 1px solid rgba(61,142,248,0.2);
  margin-bottom: 18px;
  animation: dashFadeUp 0.3s ease;
}
.v3-cb-emoji { font-size: 1.3rem; flex-shrink: 0; }
.v3-cb-body { flex: 1; }
.v3-cb-title { font-size: 0.84rem; font-weight: 700; }
.v3-cb-sub   { font-size: 0.7rem; color: var(--text2); margin-top: 1px; }
.v3-cb-pct   { font-size: 1.2rem; font-weight: 900; color: #3d8ef8; flex-shrink: 0; }

/* ─── REFERRAL CARD ──────────────────────────────────────────────── */
.v3-referral-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(16,217,142,0.08), rgba(61,142,248,0.05));
  border: 1px solid rgba(16,217,142,0.2);
  margin-top: 14px;
}
.v3-ref-code-wrap { flex: 1; min-width: 0; }
.v3-ref-label { font-size: 0.68rem; color: var(--text2); margin-bottom: 3px; }
.v3-ref-code {
  font-family: var(--font-display, sans-serif);
  font-size: 1rem; font-weight: 800; letter-spacing: 0.06em;
  color: #10d98e;
}
.v3-ref-copy-btn {
  padding: 7px 14px; border-radius: 9px; border: none;
  background: rgba(16,217,142,0.15);
  color: #10d98e; font-weight: 700; font-size: 0.76rem;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.2s;
}
.v3-ref-copy-btn:hover { background: rgba(16,217,142,0.25); }

/* ─── PROFILE PHOTO INPUT HIDDEN ─────────────────────────────────── */
#v3PhotoInput { display: none; }

/* ─── RESPONSIVE TWEAKS ───────────────────────────────────────────── */
@media(max-width:900px) {
  .v3-profile-card { position: static; }
}
@media(max-width:480px) {
  .v3-overview-wrap { padding: 12px 12px 32px; gap: 14px; }
  .v3-stats-row { gap: 8px; }
  .v3-stat-card { padding: 12px 10px; }
  .v3-stat-num { font-size: 1.2rem; }
  .v3-settings-grid { grid-template-columns: 1fr; }
  .v3-edit-grid { grid-template-columns: 1fr; }
}

/* ─── MOBILE: Me page header (when hero is replaced by V3) ─────────── */
@media(max-width:900px) {
  .v3-main-col .v3-stats-row { grid-template-columns: repeat(2, 1fr); }
}
