/* ============================================================
   Digital Profile Card — shared styles
   Palette: JEGA Brand (High Contrast, Behance Style)
   Corner-radius lock: 0 everywhere except circular avatars and the
   glass profile card family (24px) — see "Glassmorphism" block.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

:root {
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --muted: #555555;
  --muted-2: #888888;
  --border: #ececec;
  --accent: #E60012;
  --accent-dark: #B8000E;
  --accent-soft: #FDE6E8;
  --danger: #b3432b;
  --danger-soft: #f7e6e1;
  --ink-strong: #000000;
  --radius-lg: 0px;
  --radius-md: 0px;
  --radius-sm: 0px;
  --shadow: none;
  --shadow-sm: none;
  --shadow-tint: 0 10px 24px -12px rgba(230, 0, 18, 0.35);
  --max-w: 640px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 16px 40px;
  min-height: 100vh;
}

.wrap.wide { max-width: 1100px; }
.wrap.form-wide { max-width: 640px; }

h1, h2, h3 { margin: 0 0 4px; line-height: 1.25; text-wrap: balance; }
p { margin: 0 0 12px; color: var(--muted); line-height: 1.55; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 24px;
  cursor: pointer;
  text-align: center;
  transition: transform .12s ease, opacity .12s ease, background .2s ease, color .2s ease;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-tint); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--muted); border: none; }
.btn-ghost:hover { color: var(--ink); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-block { width: 100%; }
.btn-auto { width: auto; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; min-width: 140px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Cards / surfaces ---------- */
.card {
  background: var(--surface);
  border: none;
  border-radius: 0;
  padding: 24px;
  box-shadow: none;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 48px 0 24px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 16px;
  display: inline-block;
}

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field .hint { font-size: 12px; color: var(--muted-2); margin-top: 4px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; min-height: 90px; }

.avatar-picker {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar-preview {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 22px;
  overflow: hidden;
  flex-shrink: 0;
}

.upload-label {
  display: inline-block;
  padding: 9px 14px;
  border: 1px dashed var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--accent);
}
.upload-label input { display: none; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
}
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.iconbtn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: border-color .2s ease, color .2s ease;
}
.iconbtn:hover { border-color: var(--ink); }
.iconbtn svg { width: 18px; height: 18px; }

/* ---------- Landing hero ---------- */
.hero-layout { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: start; }
.hero { padding: 24px 0 24px; text-align: left; }
.hero h1 { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 24px; }
.hero .lead { font-size: 18px; margin-top: 16px; color: var(--muted); margin-bottom: 32px; font-weight: 400; max-width: 52ch; }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 48px; text-align: left; }
.feature {
  display: flex; gap: 16px; align-items: flex-start;
  background: transparent; border: none;
  padding: 0;
}
.feature .ico {
  width: 40px; height: 40px; border-radius: 0;
  background: transparent; color: var(--accent);
  display: flex; align-items: flex-start; justify-content: flex-start;
  flex-shrink: 0; font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.feature strong { display: block; font-size: 18px; margin-bottom: 6px; font-weight: 700; letter-spacing: -0.01em; }
.feature span { font-size: 15px; color: var(--muted); font-weight: 400; line-height: 1.6; }

/* ---------- Public profile page ---------- */
.profile-layout { display: flex; flex-direction: column; width: 100%; }
.profile-left, .profile-right { width: 100%; min-width: 0; }

.profile-header { text-align: left; padding: 24px 0 16px; }
.profile-avatar {
  width: 120px; height: 120px; border-radius: 50%;
  margin: 0 0 24px 0;
  object-fit: cover;
  border: none;
  box-shadow: none;
  background: var(--border);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 900; color: var(--muted);
  flex-shrink: 0;
}
.profile-name { font-size: 42px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 8px; word-break: break-word; overflow-wrap: break-word; }
.profile-headline { color: var(--accent); font-weight: 700; font-size: 20px; margin-top: 8px; }
.profile-company { color: var(--muted); font-size: 16px; margin-top: 4px; font-weight: 500; }
.profile-bio { text-align: left; margin-top: 24px; font-size: 18px; font-weight: 300; line-height: 1.6; color: var(--ink); max-width: 600px; }

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
}
.contact-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 0;
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}
.contact-item:hover { color: var(--accent); transform: translateX(4px); }
.contact-item .ico {
  width: 26px; height: 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: inherit;
}
.contact-item .ico svg { width: 19px; height: 19px; }
.contact-item span { font-size: 13px; font-weight: 700; color: inherit; text-transform: uppercase; letter-spacing: 0.03em; }
.contact-item:active { transform: translateY(1px); }
.contact-item .copy-mini {
  position: absolute; top: 16px; right: 0;
  font-size: 11px; color: var(--muted-2); font-weight: 500;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 24px;
}
.project-card {
  border-radius: 0;
  overflow: hidden;
  border: none;
  background: transparent;
  cursor: pointer;
}
.project-card .thumb {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--border);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .thumb { transform: scale(1.03); }
.project-card .cap { padding: 16px 0 0 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.project-card .cap span { display: block; font-weight: 500; color: var(--muted); font-size: 14px; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

.empty-state {
  text-align: center;
  padding: 36px 16px;
  color: var(--muted-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  font-size: 13.5px;
}

.sticky-actions {
  position: sticky;
  bottom: 12px;
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85);
  display: none; align-items: center; justify-content: center;
  z-index: 60; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: 10px; }
.lightbox .close { position: absolute; top: 18px; right: 18px; color: #fff; font-size: 26px; cursor: pointer; background: none; border: none; }

/* ---------- Modal / popover ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(20,18,14,.5);
  display: none; align-items: flex-end; justify-content: center;
  z-index: 50;
}
.overlay.open { display: flex; }
.sheet {
  background: var(--surface);
  width: 100%; max-width: var(--max-w);
  border-radius: 22px 22px 0 0;
  padding: 20px 20px 28px;
  max-height: 80vh;
  overflow-y: auto;
}
.sheet-handle { width: 40px; height: 4px; background: var(--border); border-radius: 999px; margin: 0 auto 16px; }
.sheet .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 4px; border-bottom: 1px solid var(--border);
}
.sheet .row:last-child { border-bottom: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: all .25s ease;
  z-index: 80; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Result / share screen ---------- */
.result-box {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}
.result-box .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--accent-dark); letter-spacing: .06em; margin-bottom: 4px;}
.result-box .val { font-size: 13.5px; word-break: break-all; color: var(--ink); }
.copy-row { display: flex; gap: 8px; margin-top: 8px; }
.copy-row input { flex: 1; font-size: 12.5px; }

.warn-box {
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--danger);
  margin-bottom: 14px;
}

/* ---------- Project editor rows ---------- */
.project-row {
  display: flex; gap: 10px; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 10px; margin-bottom: 10px;
}
.project-row .thumb-sm {
  width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--accent-soft);
  flex-shrink: 0;
}
.project-row .fields { flex: 1; min-width: 0; }
.project-row .fields input { margin-bottom: 6px; }
.project-row .remove { color: var(--danger); background: none; border: none; cursor: pointer; font-size: 13px; flex-shrink: 0; }

/* ---------- Admin table ---------- */
.admin-toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-toolbar input[type="text"] { flex: 1; min-width: 180px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-top: 2px solid var(--ink);
  border-radius: var(--radius-md); padding: 14px; text-align: center;
}
.stat-card .num { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.stat-card .lbl { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-row {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px; display: flex; gap: 12px; align-items: center;
  transition: border-color .15s ease;
}
.admin-row:hover { border-color: var(--ink); }
.admin-row .av {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--accent-soft);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent);
}
.admin-row .info { flex: 1; min-width: 0; }
.admin-row .info .nm { font-weight: 700; font-size: 14.5px; }
.admin-row .info .sub { font-size: 12.5px; color: var(--muted-2); }
.badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; padding: 3px 8px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .03em;
}
.badge.on { background: var(--accent-soft); color: var(--accent-dark); }
.badge.off { background: var(--danger-soft); color: var(--danger); }
.admin-row .actions { display: flex; gap: 6px; flex-shrink: 0; }
.admin-row .actions button {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  transition: border-color .15s ease, color .15s ease;
}
.admin-row .actions button svg { width: 16px; height: 16px; }
.admin-row .actions button:hover { border-color: var(--ink); }
.admin-row .actions button[data-act="delete"]:hover { border-color: var(--danger); color: var(--danger); }

.gate {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
}
.gate .card { width: 100%; max-width: 360px; }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.footer-note { text-align: center; font-size: 12px; color: var(--muted-2); margin-top: 28px; }

/* ---------- Brand logo ---------- */
.brand img { height: 26px; width: auto; display: block; }
.brand { min-height: 26px; }

/* ---------- Field rows (2 cột trên desktop) ---------- */
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }

/* ---------- Category tabs (Dự án) ---------- */
.cat-tabs {
  display: flex; gap: 24px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px;
  padding-right: 28px; scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs.scrollable {
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 36px), transparent 100%);
  mask-image: linear-gradient(to right, black calc(100% - 36px), transparent 100%);
}
.cat-chip {
  flex-shrink: 0; padding: 0; border: none;
  background: transparent; font-size: 16px; font-weight: 700; color: var(--muted);
  cursor: pointer; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.05em;
  transition: color 0.2s ease;
}
.cat-chip:hover { color: var(--ink); }
.cat-chip.active { color: var(--accent); border-bottom: 2px solid var(--accent); }

/* ---------- Project card media badges ---------- */
.project-card { position: relative; }
.project-card .badges { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.project-card .mbadge {
  background: rgba(20,18,14,.65); color: #fff; font-size: 11px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.project-card .mbadge svg { width: 13px; height: 13px; flex-shrink: 0; }
.project-card .mbadge.vr {
  background: var(--accent); font-size: 13px; font-weight: 800;
  padding: 8px 14px; box-shadow: 0 2px 12px rgba(230,0,18,.45);
}
@media (min-width: 860px) {
  .project-card .mbadge.vr { font-size: 15px; padding: 9px 16px; }
}

/* ---------- Project detail overlay (carousel + video + vr) ---------- */
.detail-sheet .carousel { position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--accent-soft); }
.detail-sheet .carousel img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.detail-sheet .carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.9); font-size: 16px; cursor: pointer;
}
.detail-sheet .carousel-nav.prev { left: 8px; }
.detail-sheet .carousel-nav.next { right: 8px; }
.detail-sheet .carousel-dots { display: flex; gap: 5px; justify-content: center; margin-top: 8px; }
.detail-sheet .carousel-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.detail-sheet .carousel-dots span.active { background: var(--accent); }
.detail-sheet .video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; margin-top: 12px; }
.detail-sheet .video-embed iframe { width: 100%; height: 100%; border: 0; }
.detail-sheet .vr-btn { margin-top: 12px; }
.detail-sheet h3 { font-size: 18px; margin-top: 14px; }

/* ---------- Multi-image uploader (editor) ---------- */
.thumbs-strip { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.thumbs-strip .th { position: relative; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--accent-soft); }
.thumbs-strip .th img { width: 100%; height: 100%; object-fit: cover; }
.thumbs-strip .th button {
  position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; border: none; font-size: 9px; line-height: 1; cursor: pointer;
}
.project-editor-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; margin-bottom: 12px; }
.project-editor-card .top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.project-editor-card .top-row .remove { color: var(--danger); background: none; border: none; cursor: pointer; font-size: 13px; }
.media-type-row { display: flex; gap: 8px; margin-top: 8px; }
.media-type-row .btn { flex: 1; }

/* ============================================================
   Desktop / tablet layouts
   ============================================================ */
@media (min-width: 640px) {
  .wrap { padding-top: 40px; }
  .card { padding: 28px; }
  .field-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  /* Landing hero — asymmetric split, not centered */
  .hero-layout { grid-template-columns: 1.3fr 1fr; gap: 72px; }
  .hero { padding: 56px 0 24px; }
  .hero h1 { font-size: 60px; line-height: 1.08; }
  .hero .lead { font-size: 19px; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }

  /* Trang hồ sơ công khai: Top-Down */
  .profile-layout { display: flex; flex-direction: column; }
  .profile-header { padding: 48px 0 24px; }
  .profile-name { font-size: 72px; }
  .profile-headline { font-size: 24px; }
  .profile-avatar { width: 160px; height: 160px; margin-bottom: 40px; }
  .contact-grid { flex-direction: row; flex-wrap: wrap; gap: 32px; border-top: 1px solid var(--border); padding-top: 24px; }
  .contact-item { border-bottom: none; padding: 0; gap: 10px; }
  .contact-item .ico { font-size: 22px; width: 30px; }
  .contact-item span { font-size: 15px; letter-spacing: 0.05em; }
  .btn-row { flex-direction: row; }
  .projects-grid { flex-direction: column; gap: 64px; }
  .project-card .cap { font-size: 32px; }

  /* Admin: danh sách rộng rãi hơn */
  .admin-row { padding: 16px 20px; }
}

@media (min-width: 1100px) {
  .projects-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   Glassmorphism Profile Page Redesign
   ============================================================ */
.profile-page-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(230,0,18,0.55) 0%, rgba(120,0,10,0.35) 32%, rgba(12,4,5,0.98) 68%),
    linear-gradient(to bottom, #150406, #0a0202);
  z-index: -2;
}
.profile-page-bg::after {
  content: '';
  position: absolute; inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.profile-page {
  background: transparent;
  color: #fff;
}

body.profile-page .topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 16px 20px;
  background: transparent;
}
body.profile-page .topbar .brand { color: #fff; }
body.profile-page .topbar .iconbtn { background: rgba(255,255,255,0.2); border: none; color: #fff; }

.profile-layout {
  display: block;
}

.profile-hero {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center top;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  /* Trong suốt 100% ngay khu vực ảnh đại diện (0-35%), sau đó chuyển
     dần sang tối để hoà vào nền phía dưới thẻ kính */
  background: linear-gradient(to bottom, rgba(10,3,4,0) 0%, rgba(10,3,4,0) 32%, rgba(12,4,5,0.55) 70%, rgba(12,4,5,0.95) 100%);
}

/* Ảnh đại diện: trên màn hình rộng, dùng "contain" để thấy trọn ảnh
   thay vì bị kéo giãn/cắt ngang như "cover" */
@media (min-width: 860px) {
  .profile-hero { background-size: contain; background-repeat: no-repeat; }
}

.glass-card-wrap {
  display: flex;
  justify-content: center;
  padding: 0 16px;
  margin-top: calc(60vh - 100px);
}

.glass-card {
  width: 100%;
  max-width: var(--max-w);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  box-shadow:
    0 20px 60px -12px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  color: #fff;
}

.glass-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  margin: 0 auto 24px;
}


body.profile-page .profile-name {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

body.profile-page .profile-meta {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  margin-bottom: 24px;
}

body.profile-page .profile-bio {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin: 0 auto 32px;
  max-width: 480px;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.action-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 0;
}

.action-btn .ico {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.action-btn .ico svg { width: 20px; height: 20px; }

.action-btn:hover .ico {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.5);
}

.contact-btn {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 16px;
  transition: background .2s ease, border-color .2s ease, transform .12s ease;
}
.contact-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Adjustments for content below hero in dark theme */
body.profile-page .profile-content {
  position: relative;
  max-width: var(--max-w);
  margin: 48px auto 0;
  padding: 0 16px 64px;
  z-index: 10;
}

body.profile-page .section-title {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.2);
}

body.profile-page .contact-item {
  border-bottom-color: rgba(255,255,255,0.15);
  color: #fff;
}
body.profile-page .contact-item span { color: inherit; }
body.profile-page .contact-item:hover { color: #ff9d8f; }
body.profile-page .contact-item .copy-mini { color: rgba(255,255,255,0.6); }

body.profile-page .project-card .cap { color: #fff; }
body.profile-page .project-card .cap span { color: rgba(255,255,255,0.7); }
body.profile-page .empty-state { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); }
body.profile-page .cat-chip { color: rgba(255,255,255,0.5); }
body.profile-page .cat-chip.active { color: #fff; border-bottom-color: #fff; }
body.profile-page .cat-chip:hover { color: #fff; }
