/* ============================================
   LUMIÈRE — App Style
   Noir Editorial · Mobile-First
   ============================================ */

:root {
  --bg:         #0A0A0A;
  --bg-2:       #111111;
  --bg-3:       #181818;
  --surface:    #1E1E1E;
  --surface-2:  #252525;
  --border:     rgba(255,255,255,0.07);
  --border-2:   rgba(255,255,255,0.12);
  --gold:       #C9A84C;
  --gold-dim:   #7A6230;
  --gold-glow:  rgba(201,168,76,0.15);
  --rose:       #C47B7B;
  --danger:     #E05555;
  --text:       #F0EBE3;
  --text-dim:   #9A9189;
  --text-mute:  #5A5450;
  --white:      #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', sans-serif;

  --r-sm:  6px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  32px;

  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);

  --topbar-h:   64px;
  --bottomnav-h: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

/* ── App Shell ── */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px;
  background: var(--gold); color: #0A0A0A;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  border-radius: var(--r-sm);
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #D4B05A; }
.btn-primary:active { transform: scale(0.97); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  background: transparent; color: var(--text);
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border-2); border-radius: var(--r-sm);
  transition: background 0.2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); }

.btn-danger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px;
  background: var(--danger); color: #fff;
  font-size: 13px; font-weight: 600;
  border-radius: var(--r-sm);
  transition: background 0.2s;
}
.btn-danger:hover { background: #c94444; }

.btn-sm {
  padding: 7px 14px;
  background: var(--gold-glow); color: var(--gold);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  border: 1px solid var(--gold-dim); border-radius: 100px;
  transition: background 0.2s;
}
.btn-sm:hover { background: rgba(201,168,76,0.2); }

.link-btn {
  font-size: 12px; color: var(--gold); font-weight: 500;
  transition: opacity 0.2s;
}
.link-btn:hover { opacity: 0.7; }

.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,0.06); }

/* ── Section title ── */
.section-title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 400;
  color: var(--text);
}

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  height: var(--topbar-h);
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 50;
}
.topbar__left { display: flex; align-items: center; gap: 12px; }
.topbar__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  overflow: hidden; border: 2px solid var(--gold);
  cursor: pointer; flex-shrink: 0;
  transition: border-color 0.2s;
}
.topbar__avatar:hover { border-color: #D4B05A; }
.topbar__greeting { font-size: 10px; color: var(--text-mute); letter-spacing: 0.06em; }
.topbar__logo {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 500; letter-spacing: 0.2em; color: var(--gold);
  line-height: 1;
}
.topbar__right { display: flex; align-items: center; gap: 2px; }

.notif-btn { position: relative; }
.notif-dot {
  position: absolute; top: 8px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); border: 1.5px solid var(--bg);
}

/* ── Search Bar ── */
.search-bar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  flex-shrink: 0;
  display: none;
}
.search-bar.visible { display: block; }
.search-bar__inner {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border-radius: 100px;
  padding: 9px 16px;
  color: var(--text-mute);
}
.search-bar__inner input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 14px; color: var(--text);
}
.search-bar__inner input::placeholder { color: var(--text-mute); }
.search-bar__inner button { color: var(--text-mute); display: flex; }

/* ── Delete Banner ── */
.delete-banner {
  display: none; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: rgba(224,85,85,0.12);
  border-bottom: 1px solid rgba(224,85,85,0.25);
  font-size: 13px; color: var(--danger);
  flex-shrink: 0;
}
.delete-banner.visible { display: flex; }
.delete-banner svg { flex-shrink: 0; }
.delete-banner span { flex: 1; }
.delete-banner__btn {
  padding: 6px 14px; background: var(--danger); color: #fff;
  font-size: 12px; font-weight: 600; border-radius: var(--r-sm);
}
.delete-banner__cancel {
  font-size: 12px; color: var(--text-mute);
  padding: 6px 8px;
}

/* ============================================
   MAIN SCROLL AREA
   ============================================ */
.app-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 16px);
}

/* ============================================
   STORIES
   ============================================ */
.stories-section {
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--border);
}
.stories-track {
  display: flex; gap: 16px;
  padding: 0 16px;
  overflow-x: auto; scrollbar-width: none;
}
.stories-track::-webkit-scrollbar { display: none; }

.story {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; flex-shrink: 0;
}
.story span { font-size: 11px; color: var(--text-dim); max-width: 60px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.story__ring {
  width: 62px; height: 62px; border-radius: 50%; padding: 2.5px;
  background: linear-gradient(135deg, var(--gold), var(--rose), #7B68EE);
  transition: transform 0.25s var(--ease);
}
.story__ring--add { background: var(--surface); border: 2px dashed var(--border-2); }
.story[data-viewed="true"] .story__ring { background: var(--surface-2); }
.story:hover .story__ring { transform: scale(1.07); }

.story__img-wrap {
  width: 100%; height: 100%; border-radius: 50%;
  overflow: hidden; background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg); color: var(--text-mute);
}

/* ============================================
   TABS
   ============================================ */
.tabs-row {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  overflow-x: auto; scrollbar-width: none;
  flex-shrink: 0;
}
.tabs-row::-webkit-scrollbar { display: none; }

.tab {
  padding: 14px 18px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--text-mute); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab:hover:not(.active) { color: var(--text-dim); }

.tab-panel { display: none; padding: 16px; }
.tab-panel.active { display: block; }

/* ── Chips ── */
.chips-row {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  padding-bottom: 4px; margin-bottom: 16px;
}
.chips-row::-webkit-scrollbar { display: none; }

.chip {
  padding: 6px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--text-mute); border: 1px solid transparent;
  white-space: nowrap; flex-shrink: 0;
  transition: all 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.active { color: var(--gold); border-color: var(--gold-dim); background: var(--gold-glow); }

/* ============================================
   MEDIA GRID
   ============================================ */
.media-grid {
  columns: 2; column-gap: 8px;
}
.media-item {
  break-inside: avoid; margin-bottom: 8px;
  border-radius: var(--r-md); overflow: hidden;
  position: relative; cursor: pointer;
  background: var(--bg-3);
  transition: transform 0.2s;
}
.media-item:active { transform: scale(0.97); }

.media-item__thumb {
  width: 100%; display: block;
  aspect-ratio: auto;
}
.media-item__thumb img,
.media-item__thumb video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Video badge */
.media-item__video-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(10,10,10,0.75); backdrop-filter: blur(6px);
  border-radius: 100px; padding: 3px 8px;
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; color: #fff;
}
.media-item__video-badge svg { flex-shrink: 0; }

/* Duration badge */
.media-item__duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(10,10,10,0.75); backdrop-filter: blur(6px);
  border-radius: 4px; padding: 2px 6px;
  font-size: 10px; font-weight: 600; color: #fff;
}

/* Hover overlay */
.media-item__overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.45);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 10px;
  opacity: 0; transition: opacity 0.2s;
}
.media-item:hover .media-item__overlay { opacity: 1; }

.media-item__actions { display: flex; gap: 6px; }
.media-action-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(10,10,10,0.7); backdrop-filter: blur(8px);
  color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.15s;
}
.media-action-btn:hover { background: var(--gold); transform: scale(1.1); }
.media-action-btn.liked { background: var(--rose); }
.media-action-btn.saved { background: var(--gold); }

/* Delete mode */
.media-item.delete-mode { cursor: pointer; }
.media-item.delete-mode::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.media-item.delete-mode.selected::after {
  border-color: var(--danger);
  background: rgba(224,85,85,0.2);
}
.media-item__select-check {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(10,10,10,0.6); border: 2px solid rgba(255,255,255,0.5);
  display: none; align-items: center; justify-content: center;
  color: #fff; font-size: 12px;
}
.media-item.delete-mode .media-item__select-check { display: flex; }
.media-item.delete-mode.selected .media-item__select-check {
  background: var(--danger); border-color: var(--danger);
}

/* Empty state */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 20px; text-align: center; gap: 8px;
}
.empty-state__icon { font-size: 48px; margin-bottom: 8px; }
.empty-state p { font-size: 16px; font-weight: 500; color: var(--text-dim); }
.empty-state span { font-size: 13px; color: var(--text-mute); }

/* ============================================
   ALBUMS TAB
   ============================================ */
.albums-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.albums-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.album-card {
  border-radius: var(--r-md); overflow: hidden;
  background: var(--bg-3); cursor: pointer;
  transition: transform 0.2s;
}
.album-card:active { transform: scale(0.97); }
.album-card__thumb { height: 120px; overflow: hidden; }
.album-card__thumb img { transition: transform 0.4s var(--ease); }
.album-card:hover .album-card__thumb img { transform: scale(1.06); }
.album-card__info { padding: 10px 12px; }
.album-card__info h3 { font-family: var(--font-display); font-size: 16px; font-weight: 400; margin-bottom: 2px; }
.album-card__info span { font-size: 11px; color: var(--text-mute); }

/* ============================================
   VIDEOS TAB
   ============================================ */
.videos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.video-card {
  border-radius: var(--r-md); overflow: hidden;
  background: var(--bg-3); cursor: pointer; position: relative;
  aspect-ratio: 9/16;
  transition: transform 0.2s;
}
.video-card:active { transform: scale(0.97); }
.video-card video, .video-card img { width: 100%; height: 100%; object-fit: cover; }
.video-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.7) 0%, transparent 50%);
  display: flex; align-items: center; justify-content: center;
}
.video-card__play {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.video-card__info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 10px;
}
.video-card__title { font-size: 12px; font-weight: 500; color: #fff; }
.video-card__dur { font-size: 10px; color: rgba(255,255,255,0.6); }

/* ============================================
   BOTTOM NAV
   ============================================ */
.bottom-nav {
  display: flex; align-items: center;
  height: calc(var(--bottomnav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 50;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 0;
  color: var(--text-mute);
  transition: color 0.2s;
}
.nav-item span { font-size: 10px; font-weight: 500; letter-spacing: 0.04em; }
.nav-item.active { color: var(--gold); }
.nav-item:hover:not(.active) { color: var(--text-dim); }

.nav-fab-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
}
.nav-fab {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gold); color: #0A0A0A;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.nav-fab:hover { background: #D4B05A; transform: scale(1.08); box-shadow: 0 6px 28px rgba(201,168,76,0.5); }
.nav-fab:active { transform: scale(0.95); }
.nav-fab.open { background: var(--surface-2); color: var(--text); box-shadow: none; transform: rotate(45deg); }

/* ============================================
   UPLOAD MODAL (bottom sheet)
   ============================================ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-backdrop.visible { opacity: 1; pointer-events: all; }

.upload-modal {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%) translateY(100%);
  width: 100%; max-width: 480px;
  background: var(--bg-2);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  border-top: 1px solid var(--border-2);
  z-index: 201;
  padding: 0 0 calc(24px + var(--safe-bottom));
  max-height: 92dvh;
  overflow-y: auto;
  transition: transform 0.4s var(--ease);
}
.upload-modal.visible { transform: translateX(-50%) translateY(0); }

.upload-modal__handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border-2); margin: 12px auto 0;
}
.upload-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px;
}
.upload-modal__header h2 {
  font-family: var(--font-display); font-size: 22px; font-weight: 400;
}
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface); color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }

/* Drop Zone */
.drop-zone {
  margin: 0 20px;
  border: 2px dashed var(--border-2);
  border-radius: var(--r-lg);
  padding: 36px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.drop-zone.drag-over {
  border-color: var(--gold); background: var(--gold-glow);
}
.drop-zone__icon { color: var(--text-mute); margin-bottom: 4px; }
.drop-zone__title { font-size: 15px; font-weight: 500; color: var(--text); }
.drop-zone__sub { font-size: 13px; color: var(--text-mute); }
.drop-zone__hint { font-size: 11px; color: var(--text-mute); margin-top: 4px; }

/* Upload Queue */
.upload-queue { padding: 0 20px; margin-top: 16px; }
.upload-queue__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.upload-queue__header span { font-size: 13px; color: var(--text-dim); }
.upload-queue__list { display: flex; flex-direction: column; gap: 8px; max-height: 200px; overflow-y: auto; }

.queue-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-radius: var(--r-md); padding: 8px 12px;
}
.queue-item__thumb {
  width: 48px; height: 48px; border-radius: var(--r-sm);
  overflow: hidden; flex-shrink: 0; background: var(--bg-3);
  display: flex; align-items: center; justify-content: center; color: var(--text-mute);
}
.queue-item__thumb img, .queue-item__thumb video { width: 100%; height: 100%; object-fit: cover; }
.queue-item__info { flex: 1; min-width: 0; }
.queue-item__name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-item__size { font-size: 11px; color: var(--text-mute); }
.queue-item__remove {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-2); color: var(--text-mute);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 14px; transition: background 0.2s, color 0.2s;
}
.queue-item__remove:hover { background: var(--danger); color: #fff; }

/* Upload Options */
.upload-options { padding: 16px 20px 0; display: flex; flex-direction: column; gap: 12px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); }
.form-row select,
.form-row input[type="text"] {
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--r-sm); padding: 10px 14px;
  font-size: 14px; color: var(--text); outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-row select:focus,
.form-row input[type="text"]:focus { border-color: var(--gold); }

.upload-modal__footer {
  display: flex; gap: 10px; padding: 16px 20px 0;
}
.upload-modal__footer .btn-primary,
.upload-modal__footer .btn-ghost { flex: 1; justify-content: center; }

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(5,5,5,0.97); backdrop-filter: blur(16px);
}
.lightbox__ui {
  position: relative; z-index: 1;
  height: 100%; display: flex; flex-direction: column;
}
.lightbox__topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(10,10,10,0.6);
}
.lightbox__close {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox__close:hover { background: rgba(255,255,255,0.15); }
.lightbox__counter { font-size: 13px; color: var(--text-dim); }
.lightbox__topbar-actions { display: flex; gap: 4px; }

.lightbox__stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.lightbox__media-wrap {
  max-width: 100%; max-height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__img {
  max-width: 100vw; max-height: calc(100dvh - 140px);
  width: auto; height: auto; object-fit: contain;
  border-radius: var(--r-sm);
  transform: scale(0.95);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.lightbox__video {
  max-width: 100vw; max-height: calc(100dvh - 140px);
  width: auto; height: auto;
  border-radius: var(--r-sm);
  display: none;
}
.lightbox.open .lightbox__img { transform: scale(1); }

.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.lightbox__nav:hover { background: var(--gold); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

.lightbox__caption {
  padding: 12px 20px;
  font-size: 13px; color: var(--text-dim); text-align: center;
  min-height: 40px;
}

/* ============================================
   PROFILE SHEET
   ============================================ */
.profile-sheet {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%) translateY(100%);
  width: 100%; max-width: 480px;
  background: var(--bg-2);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  border-top: 1px solid var(--border-2);
  z-index: 201;
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}
.profile-sheet.visible { transform: translateX(-50%) translateY(0); }
.profile-sheet__cover { height: 160px; overflow: hidden; }
.profile-sheet__body { padding: 0 20px calc(24px + var(--safe-bottom)); }
.profile-sheet__avatar-wrap {
  position: relative; margin-top: -44px; margin-bottom: 12px;
  width: fit-content;
}
.profile-sheet__avatar {
  width: 88px; height: 88px; border-radius: 50%;
  border: 3px solid var(--bg-2); object-fit: cover;
}
.profile-sheet__badge {
  position: absolute; bottom: 2px; right: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: #0A0A0A; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-2);
}
.profile-sheet__name { font-family: var(--font-display); font-size: 24px; font-weight: 400; }
.profile-sheet__handle { font-size: 13px; color: var(--gold); margin-bottom: 8px; }
.profile-sheet__bio { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; line-height: 1.6; }
.profile-sheet__stats { display: flex; gap: 28px; margin-bottom: 4px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__num { font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.stat__label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); }

/* ============================================
   CONFIRM DIALOG
   ============================================ */
.confirm-dialog {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: calc(100% - 48px); max-width: 340px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--r-lg); padding: 28px 24px;
  z-index: 201; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.confirm-dialog.visible { opacity: 1; pointer-events: all; transform: translate(-50%, -50%) scale(1); }
.confirm-dialog__icon { font-size: 36px; margin-bottom: 12px; }
.confirm-dialog h3 { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin-bottom: 8px; }
.confirm-dialog p { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }
.confirm-dialog__actions { display: flex; gap: 10px; justify-content: center; }
.confirm-dialog__actions .btn-ghost,
.confirm-dialog__actions .btn-danger { flex: 1; justify-content: center; }

.dialog-input {
  width: 100%; background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--r-sm); padding: 10px 14px;
  font-size: 14px; color: var(--text); outline: none;
  transition: border-color 0.2s;
}
.dialog-input:focus { border-color: var(--gold); }

/* ============================================
   TOAST
   ============================================ */
.toast-stack {
  position: fixed; bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 12px);
  left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  z-index: 400; pointer-events: none;
  width: calc(100% - 32px); max-width: 440px;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: 100px;
  font-size: 13px; font-weight: 500; color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  animation: toastIn 0.35s var(--ease) both;
  pointer-events: all;
}
.toast.success { border-color: rgba(201,168,76,0.3); }
.toast.error   { border-color: rgba(224,85,85,0.3); }
.toast.removing { animation: toastOut 0.3s var(--ease-in) both; }
@keyframes toastIn  { from { opacity:0; transform: translateY(16px) scale(0.95); } to { opacity:1; transform: translateY(0) scale(1); } }
@keyframes toastOut { from { opacity:1; transform: translateY(0) scale(1); } to { opacity:0; transform: translateY(8px) scale(0.95); } }

/* ============================================
   RESPONSIVE — wider screens
   ============================================ */
@media (min-width: 480px) {
  .app-shell { box-shadow: 0 0 60px rgba(0,0,0,0.8); }
  body { background: #050505; }
}
@media (min-width: 768px) {
  .media-grid { columns: 3; }
  .albums-grid { grid-template-columns: repeat(3, 1fr); }
  .videos-grid { grid-template-columns: repeat(3, 1fr); }
}