/* ============================================================
   firebase-panels.css  —  Styles Auth, Feed, Profil
   Utilise les CSS vars existantes de KOULAM :
     --black, --white, --gray-1 à --gray-5
   ============================================================ */

/* ─── Shared Components ───────────────────────────────────── */
.chab-panel { padding-bottom: 80px; }

.chab-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-4, #d1d5db);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--white, #fff);
  color: var(--black, #000);
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s;
}
.chab-input:focus { border-color: var(--black, #000); }
.chab-input-sm { padding: 8px 10px; font-size: 13px; }

.chab-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 20px;
  border: none; border-radius: 10px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all .2s;
  width: 100%;
}
.chab-btn-sm { padding: 8px 14px; font-size: 13px; width: auto; }
.chab-btn-primary { background: var(--black, #000); color: var(--white, #fff); }
.chab-btn-primary:hover { opacity: .85; }
.chab-btn-outline {
  background: transparent;
  border: 1.5px solid var(--gray-4, #d1d5db);
  color: var(--black, #000);
}
.chab-btn-outline:hover { border-color: var(--black, #000); }
.chab-btn-danger {
  background: transparent;
  border: 1.5px solid #ef4444;
  color: #ef4444;
}
.chab-btn-danger:hover { background: #fef2f2; }
.chab-btn-social {
  background: var(--white, #fff);
  border: 1.5px solid var(--gray-4, #d1d5db);
  color: var(--black, #000);
}
.chab-btn-social:hover { background: var(--gray-5, #f3f4f6); }
.chab-btn-apple { color: #000; }

.panel-top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  position: sticky; top: 0; z-index: 10;
  background: var(--white, #fff);
  border-bottom: 1px solid var(--gray-5, #f0f0f0);
}
.panel-top-bar .panel-back {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer; color: var(--black, #000);
}
.panel-title {
  font-size: 15px; font-weight: 700; color: var(--black, #000);
  letter-spacing: -.2px;
}
.panel-profile-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer;
  border-radius: 50%; overflow: hidden;
  border: 2px solid var(--gray-4, #e5e7eb);
  flex-shrink: 0; box-sizing: border-box;
}
.panel-profile-btn .nav-avatar {
  width: 100%; height: 100%;
  border: none; border-radius: 0;
}
.nav-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; border: none;
}
.login-btn .nav-avatar {
  width: 52px; height: 52px;
}


/* ─── AUTH PANEL ───────────────────────────────────────────── */
.auth-container {
  max-width: 380px; margin: 0 auto;
  padding: 24px 20px;
}
#panel-auth { background: #fff !important; min-height: 100vh; min-height: 100dvh; }
#panel-auth.auth-fullscreen { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 500; overflow-y: auto; display: flex !important; flex-direction: column; }
.auth-crown-logo { mix-blend-mode: multiply; }
.auth-logo {
  text-align: center; margin-bottom: 28px;
}
.auth-crown-logo { width: 56px; height: 56px; object-fit: contain; display: block; margin: 0 auto 2px; }
.auth-logo-icon {
  font-size: 40px; margin-bottom: 0px;
}
.auth-crown-logo { width: 64px; height: 64px; object-fit: contain; }
.auth-logo-text {
  font-size: 22px; font-weight: 800; color: var(--black, #000);
  letter-spacing: -.5px;
}
.auth-logo-sub {
  font-size: 13px; color: var(--gray-3, #9ca3af);
  margin-top: 2px;
}

#auth-form-area { display: flex; flex-direction: column; gap: 10px; }
#auth-form-area .chab-input { margin-bottom: 2px; }

.auth-roles {
  display: flex; gap: 10px; margin: 4px 0 8px;
}
.auth-role-label {
  flex: 1; display: flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  border: 1.5px solid var(--gray-4, #d1d5db);
  border-radius: 10px;
  font-size: 13px; cursor: pointer;
  transition: border-color .2s;
}
.auth-role-label:has(input:checked) {
  border-color: var(--black, #000);
  background: var(--gray-5, #fafafa);
}
.auth-role-label input { display: none; }

.auth-separator {
  display: flex; align-items: center; gap: 12px;
  margin: 8px 0;
  color: var(--gray-3, #9ca3af); font-size: 12px;
}
.auth-separator::before,
.auth-separator::after {
  content: ""; flex: 1; height: 1px;
  background: var(--gray-4, #e5e7eb);
}

.auth-toggle {
  text-align: center; font-size: 13px;
  color: var(--gray-3, #6b7280);
  margin-top: 8px;
}
.auth-toggle span {
  color: var(--black, #000); font-weight: 600;
  cursor: pointer; text-decoration: underline;
}

.auth-forgot {
  text-align: center; font-size: 12px;
  color: var(--gray-3, #6b7280);
  cursor: pointer; margin: -2px 0 4px;
}
.auth-forgot:hover { color: var(--black, #000); }

.auth-error {
  background: #fef2f2; border: 1px solid #fecaca;
  color: #dc2626; border-radius: 8px;
  padding: 10px 14px; font-size: 13px;
  text-align: center; margin-top: 8px;
}


/* ─── PROFILE PANEL ───────────────────────────────────────── */
.profile-container { padding: 24px 20px; max-width: 420px; margin: 0 auto; }

.profile-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px;
}
.profile-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  object-fit: cover; cursor: pointer;
  border: 3px solid var(--gray-4, #e5e7eb);
}
.profile-avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-5, #f3f4f6);
  font-size: 42px; font-weight: 700; color: var(--gray-3, #6b7280);
}
.profile-info { flex: 1; }
.profile-name {
  font-size: 18px; font-weight: 700; color: var(--black, #000);
}
.profile-email {
  font-size: 13px; color: var(--gray-3, #6b7280);
  margin-top: 2px;
}
.profile-role-badge {
  display: inline-block; margin-top: 6px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  background: var(--gray-5, #f3f4f6);
  color: var(--gray-2, #4b5563);
}

.profile-section {
  margin-bottom: 16px;
}
.profile-section-title {
  font-size: 12px; font-weight: 600;
  color: var(--gray-3, #9ca3af);
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 8px;
}


/* ─── FEED HERO (menu principal) ──────────────────────────── */
.feed-hero {
  margin: 20px 16px 24px;
  cursor: pointer;
}
.feed-hero-bg {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 4px 20px rgba(26, 26, 46, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.feed-hero:active .feed-hero-bg {
  transform: scale(0.98);
  box-shadow: 0 2px 10px rgba(26, 26, 46, 0.2);
}
.feed-hero-content {
  display: flex;
  align-items: center;
  gap: 16px;
}
.feed-hero-icon {
  font-size: 36px;
  flex-shrink: 0;
}
.feed-hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feed-hero-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}
.feed-hero-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
}
.feed-hero-arrow {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  flex-shrink: 0;
}

/* ─── FEED PANEL ──────────────────────────────────────────── */

/* Bouton + flottant */
.feed-fab {
  position: fixed; bottom: 90px; right: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff; font-size: 32px; font-weight: 300;
  border: none; box-shadow: 0 4px 16px rgba(225,48,108,0.4);
  cursor: pointer; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  line-height: 1;
}
.feed-fab:active { transform: scale(0.92); box-shadow: 0 2px 8px rgba(225,48,108,0.3); }

/* Overlay sombre */
.feed-compose-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
}

/* Panneau de composition */
.feed-compose-panel {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 201;
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  animation: feedPanelSlideUp 0.3s ease-out;
}
@keyframes feedPanelSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.feed-compose-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.feed-compose-close {
  background: none; border: none;
  font-size: 20px; color: #666;
  cursor: pointer; padding: 4px 8px;
}
.feed-compose-panel-title {
  font-family: var(--font, 'EB Garamond', serif);
  font-size: 16px; font-weight: 700; color: #1a1a2e;
}
.feed-compose-publish {
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
  color: #fff; border: none; border-radius: 20px;
  padding: 8px 20px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.feed-compose-publish:disabled {
  opacity: 0.5; cursor: not-allowed;
}

/* Preview média dans le panneau */
.feed-compose-preview {
  padding: 12px 16px; text-align: center;
  max-height: 45vh; overflow: hidden;
}
.feed-compose-preview img,
.feed-compose-preview video {
  max-width: 100%; max-height: 40vh;
  border-radius: 12px; object-fit: contain;
}

/* Zone légende */
.feed-compose-caption-wrap {
  padding: 0 16px 16px; position: relative;
}
.feed-compose-caption {
  width: 100%; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 12px 14px;
  font-size: 15px; font-family: inherit;
  resize: none; outline: none; line-height: 1.5;
  box-sizing: border-box;
}
.feed-compose-caption:focus {
  border-color: #c9a84c;
}

/* Suggestions @mention */
.feed-mention-suggestions {
  position: absolute; left: 16px; right: 16px;
  bottom: 100%; margin-bottom: 4px;
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; max-height: 180px;
  overflow-y: auto; box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
  z-index: 210;
}
.feed-mention-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer;
  transition: background 0.15s;
}
.feed-mention-item:hover,
.feed-mention-item:active {
  background: #f9f5eb;
}
.feed-mention-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; background: #e5e7eb;
}
.feed-mention-avatar-ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: #666;
}
.feed-mention-name {
  font-size: 14px; font-weight: 600; color: #1a1a2e;
}

/* @mention tag dans les posts */
.feed-mention-tag {
  color: #c9a84c; font-weight: 600;
}

/* Post list */
.feed-list { padding: 0 0 16px; }
.feed-loading, .feed-empty {
  text-align: center; padding: 40px 20px;
  color: var(--gray-3, #9ca3af); font-size: 14px;
}
.feed-load-more { text-align: center; padding: 16px; }

/* Post card */
.feed-post {
  padding: 16px;
  border-bottom: 1px solid var(--gray-5, #f0f0f0);
}
.feed-post-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.feed-post-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover;
}
.feed-post-avatar-ph {
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-5, #f3f4f6);
  font-size: 15px; font-weight: 700; color: var(--gray-3, #6b7280);
}
.feed-post-meta { flex: 1; }
.feed-post-author {
  font-size: 14px; font-weight: 600; color: var(--black, #000);
}
.feed-post-time {
  font-size: 11px; color: var(--gray-3, #9ca3af);
  margin-top: 1px;
}
.feed-post-menu {
  cursor: pointer; font-size: 16px; padding: 4px;
  opacity: .5; transition: opacity .2s;
}
.feed-post-menu:hover { opacity: 1; }

.feed-follow-btn {
  background: transparent;
  border: 1.5px solid var(--gray-4, #d1d5db);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px; font-weight: 600;
  color: var(--black, #000);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.feed-follow-btn:hover { border-color: #1a73e8; color: #1a73e8; }
.feed-follow-btn.feed-following {
  background: #1a73e8; border-color: #1a73e8;
  color: #fff;
}
.feed-follow-btn.feed-following:hover {
  background: #c0392b; border-color: #c0392b;
}

.feed-badge-pro {
  display: inline-block;
  padding: 1px 6px; border-radius: 4px;
  font-size: 10px; font-weight: 700;
  background: var(--black, #000); color: var(--white, #fff);
  vertical-align: middle; margin-left: 4px;
}

.feed-post-text {
  font-size: 14px; line-height: 1.55;
  color: var(--black, #000);
  margin-bottom: 10px;
  white-space: pre-wrap; word-break: break-word;
}
.feed-post-text a { color: #2563eb; text-decoration: underline; }

.feed-post-media {
  width: 100%; max-height: 400px;
  object-fit: cover; border-radius: 10px;
  margin-bottom: 10px; cursor: pointer;
  background: var(--gray-5, #f3f4f6);
}
video.feed-post-media { cursor: default; }

/* Actions */
.feed-post-actions {
  display: flex; gap: 16px;
}
.feed-action-btn {
  background: none; border: none;
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  color: var(--gray-2, #6b7280);
  font-family: inherit; padding: 4px 0;
}
.feed-action-btn:hover { color: var(--black, #000); }
.feed-action-btn.feed-liked { color: #ef4444; }

/* Comments */
.feed-comments {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--gray-5, #f0f0f0);
}
.feed-comment {
  display: flex; gap: 8px;
  margin-bottom: 10px;
}
.feed-comment-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.feed-comment-avatar-ph {
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-5, #f3f4f6);
  font-size: 11px; font-weight: 700; color: var(--gray-3, #6b7280);
}
.feed-comment-body { flex: 1; }
.feed-comment-author {
  font-size: 13px; font-weight: 600; color: var(--black, #000);
}
.feed-comment-text {
  font-size: 13px; color: var(--black, #000);
}
.feed-comment-time {
  font-size: 11px; color: var(--gray-3, #9ca3af);
  margin-top: 2px;
}
.feed-no-comments, .feed-loading-sm {
  font-size: 13px; color: var(--gray-3, #9ca3af);
  padding: 6px 0;
}
.feed-comment-compose {
  display: flex; gap: 6px; margin-top: 8px;
}

/* Image zoom overlay */
.feed-zoom-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.9);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out; padding: 20px;
}
.feed-zoom-overlay img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 4px;
}

/* ─── VIDÉOS YOUTUBE ──────────────────────────────────────── */

/* Lecteur vidéo */
/* ─── Reels-style fullscreen player ─── */
.yt-reels-wrap {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #000;
  z-index: 9999;
}
.yt-reels-close {
  position: fixed; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,0.5); color: #fff;
  font-size: 20px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10001;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.yt-reels-feed {
  width: 100%; height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}
.yt-reel-slide {
  width: 100%; height: 100vh; height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #000;
}
.yt-reel-iframe-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
.yt-reel-iframe-wrap iframe {
  width: 100%; height: 100%; border: none;
}
.yt-reel-thumb-wrap {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  cursor: pointer;
}
.yt-reel-thumb-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.yt-reel-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  background: rgba(255,0,0,0.85); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.yt-reel-play-btn svg { width: 28px; height: 28px; }
.yt-reel-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 16px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.yt-reel-title {
  font-size: 15px; font-weight: 700; color: #fff;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.yt-reel-channel {
  font-size: 12px; color: rgba(255,255,255,0.6);
  margin-top: 4px;
}
.yt-reel-hint {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 11px; font-weight: 600;
  z-index: 10000;
  animation: yt-hint-bounce 1.5s ease-in-out 3s 3;
  pointer-events: none;
}
@keyframes yt-hint-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* Grille de vignettes */
.yt-grid {
  padding: 12px;
}
.yt-grid-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.yt-card {
  background: var(--white, #fff);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}
.yt-card:active {
  transform: scale(0.97);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.yt-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e5e7eb;
}
.yt-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.yt-play-icon {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.2);
  transition: background 0.2s;
}
.yt-play-icon svg {
  width: 36px; height: 36px;
  opacity: 0.9;
}
.yt-card:active .yt-play-icon {
  background: rgba(0,0,0,0.4);
}
.yt-card-info {
  padding: 8px 10px 10px;
}
.yt-card-title {
  font-size: 13px; font-weight: 700;
  color: var(--black, #1a1a2e);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font, 'EB Garamond', serif);
}
.yt-card-channel {
  font-size: 11px;
  color: var(--gray-3, #9ca3af);
  margin-top: 3px;
}
.yt-card-delete {
  position: absolute; top: 6px; right: 6px;
  font-size: 14px; cursor: pointer;
  background: rgba(255,255,255,0.9); border-radius: 50%;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.yt-card-info { position: relative; }

/* Filtres chaînes */
.yt-channel-filters {
  display: flex; gap: 8px; padding: 0 0 12px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.yt-channel-filters::-webkit-scrollbar { display: none; }
.yt-channel-filter {
  flex-shrink: 0;
  padding: 6px 16px; border-radius: 20px;
  border: 1px solid var(--gray-4, #e5e7eb);
  background: var(--white, #fff);
  font-size: 13px; font-weight: 600;
  color: var(--gray-2, #4b5563);
  cursor: pointer; font-family: inherit;
  transition: all 0.15s;
}
.yt-channel-filter.active {
  background: #1a1a2e; color: #fff;
  border-color: #1a1a2e;
}

/* Barre admin */
.yt-admin-bar {
  display: flex; gap: 8px; padding: 0 0 12px;
}
.yt-admin-btn {
  flex: 1; padding: 10px 12px;
  border-radius: 12px; border: 2px dashed var(--gray-4, #d1d5db);
  background: none; font-size: 13px; font-weight: 700;
  color: var(--gray-2, #4b5563); cursor: pointer;
  font-family: inherit; transition: all 0.15s;
}
.yt-admin-btn:active {
  background: var(--gray-5, #f3f4f6);
}
.yt-admin-btn-channel {
  border-color: #c9a84c; color: #c9a84c;
}

/* Modal admin */
.yt-admin-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.yt-admin-modal {
  background: #fff; border-radius: 20px;
  padding: 24px; width: 100%; max-width: 400px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.yt-admin-modal-title {
  font-family: var(--font, 'EB Garamond', serif);
  font-size: 18px; font-weight: 700;
  color: #1a1a2e; margin-bottom: 16px;
}
.yt-admin-input {
  width: 100%; padding: 10px 14px;
  border: 1px solid #e5e7eb; border-radius: 10px;
  font-size: 14px; font-family: inherit;
  margin-bottom: 10px; box-sizing: border-box;
  outline: none;
}
.yt-admin-input:focus { border-color: #c9a84c; }
select.yt-admin-input { appearance: auto; }
.yt-admin-modal-actions {
  display: flex; gap: 10px; margin-top: 6px;
}
.yt-admin-cancel {
  flex: 1; padding: 10px;
  border-radius: 10px; border: 1px solid #e5e7eb;
  background: #fff; font-size: 14px; font-weight: 600;
  color: #666; cursor: pointer; font-family: inherit;
}
.yt-admin-save {
  flex: 1; padding: 10px;
  border-radius: 10px; border: none;
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
  font-size: 14px; font-weight: 600;
  color: #fff; cursor: pointer; font-family: inherit;
}

/* Profils de chaines */
.yt-profiles-section {
  padding: 0 0 16px;
}
.yt-profiles-title {
  font-family: var(--font, 'EB Garamond', serif);
  font-size: 16px; font-weight: 700;
  color: var(--black, #1a1a2e);
  margin-bottom: 10px;
}
.yt-profiles-scroll {
  display: flex; gap: 12px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 4px;
}
.yt-profiles-scroll::-webkit-scrollbar { display: none; }
.yt-profile-card {
  flex-shrink: 0;
  width: 160px;
  background: var(--white, #fff);
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  border: 2px solid transparent;
}
.yt-profile-card:active {
  transform: scale(0.97);
}
.yt-profile-card.active {
  border-color: #ff0033;
  box-shadow: 0 2px 12px rgba(255,0,51,0.15);
}
.yt-profile-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
  display: block;
  border: 2px solid #f3f4f6;
}
.yt-profile-name {
  font-family: var(--font, 'EB Garamond', serif);
  font-size: 14px; font-weight: 700;
  color: var(--black, #1a1a2e);
  line-height: 1.2;
}
.yt-profile-handle {
  font-size: 11px;
  color: var(--gray-3, #9ca3af);
  margin-top: 2px;
}
/* Page profil in-app */
.ytp-header {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}
.ytp-banner {
  height: 80px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #c9a84c 100%);
}
.ytp-info {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 16px 16px;
  margin-top: -32px;
}
.ytp-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.ytp-meta {
  padding-top: 36px;
  min-width: 0;
}
.ytp-name {
  font-family: var(--font, 'EB Garamond', serif);
  font-size: 18px; font-weight: 900;
  color: var(--black, #1a1a2e);
  line-height: 1.2;
}
.ytp-handle {
  font-size: 12px;
  color: var(--gray-3, #9ca3af);
  margin-top: 2px;
}
.ytp-desc {
  font-size: 13px;
  color: var(--gray-2, #4b5563);
  margin-top: 6px;
  line-height: 1.4;
}
.ytp-video-count {
  font-size: 13px; font-weight: 600;
  color: var(--gray-2, #4b5563);
  margin-bottom: 12px;
  padding-left: 2px;
}

/* ─── NOTIFICATIONS ───────────────────────────────────────── */
.notifs-container { padding: 0; }

.notif-badge {
  position: absolute; top: -6px; right: -8px;
  background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
}

.notif-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-5, #f0f0f0);
}
.notif-unread {
  background: #eff6ff;
}
.notif-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.notif-avatar-ph {
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-5, #f3f4f6);
  font-size: 16px; font-weight: 700; color: var(--gray-3, #6b7280);
}
.notif-body { flex: 1; }
.notif-msg {
  font-size: 14px; color: var(--black, #000); line-height: 1.4;
}
.notif-msg b { font-weight: 600; }
.notif-time {
  font-size: 11px; color: var(--gray-3, #9ca3af); margin-top: 2px;
}

/* ─── FOLLOWING LIST ──────────────────────────────────────── */
.following-container { padding: 0; }

.following-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-5, #f0f0f0);
}
.following-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1.5px solid var(--gray-4, #e5e7eb);
}
.following-avatar-ph {
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-5, #f3f4f6);
  font-size: 18px; font-weight: 700; color: var(--gray-3, #6b7280);
}
.following-info { flex: 1; }
.following-name {
  font-size: 14px; font-weight: 600; color: var(--black, #000);
}
.following-email {
  font-size: 12px; color: var(--gray-3, #9ca3af); margin-top: 1px;
}

.chab-btn-insta { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important; border: none !important; color: #fff !important; }
#auth-770-footer { text-align: center; margin-top: 32px; padding-bottom: 16px; }
.auth-770-img { height: 40px; width: auto; opacity: 0.85; }
.auth-770-text { font-size: 28px; font-weight: 900; color: var(--black, #000); letter-spacing: -1px; }
.auth-770-lab { font-size: 14px; font-weight: 600; color: var(--gray-3, #9ca3af); margin-left: 3px; text-transform: lowercase; }

/* ─── Badge Casher (vérifié style Meta) ───────────────────── */
.casher-badge {
  display: inline-block;
  width: 18px; height: 18px;
  vertical-align: middle;
  margin-left: 4px;
  background: none;
  position: relative;
}
.casher-badge svg { width: 100%; height: 100%; display: block; }
.casher-badge-sm {
  width: 16px; height: 16px;
  margin-left: 3px;
}

/* ─── Lien discret suppression compte ─────────────────────── */
.profile-delete-link {
  font-size: 12px; color: var(--gray-3, #9ca3af);
  cursor: pointer; text-decoration: underline;
  transition: color .2s;
}
.profile-delete-link:hover { color: #ef4444; }

/* ─── Story ring Instagram (avatar) ───────────────────────── */
.profile-avatar-story-ring {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-avatar-story-ring .profile-avatar {
  width: 110px; height: 110px;
  border: 3px solid #fff;
  border-radius: 50%;
}
.feed-post-avatar-story-ring {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.feed-post-avatar-story-ring .feed-post-avatar {
  width: 34px; height: 34px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.panel-profile-btn.has-story {
  border: none;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.panel-profile-btn.has-story .nav-avatar {
  width: 34px; height: 34px;
  border: 2px solid #fff;
  border-radius: 50%;
}

/* ─── PROFIL STYLE INSTAGRAM ─────────────────────────────── */
.ig-profile-header {
  display: flex; align-items: center; gap: 20px;
  padding: 16px 0 12px;
}
.ig-profile-avatar-wrap { flex-shrink: 0; }
.ig-profile-stats {
  flex: 1;
  display: flex; justify-content: space-around; text-align: center;
}
.ig-stat { display: flex; flex-direction: column; gap: 2px; }
.ig-stat-num { font-size: 17px; font-weight: 800; color: var(--black, #000); }
.ig-stat-label { font-size: 12px; color: var(--gray-3, #6b7280); }
.ig-profile-name-row {
  font-size: 16px; font-weight: 700; color: var(--black, #000);
  margin-top: 8px;
}
.ig-profile-email {
  font-size: 13px; color: var(--gray-3, #6b7280);
  margin-top: 2px;
}
.ig-profile-actions {
  display: flex; gap: 8px; margin-top: 14px;
}
.ig-edit-btn {
  flex: 1; padding: 8px 16px;
  background: var(--gray-5, #f3f4f6);
  border: none; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--black, #000);
  cursor: pointer; font-family: inherit;
}
.ig-edit-btn:active { background: #e5e7eb; }
.ig-profile-grid-title {
  font-size: 13px; font-weight: 600;
  color: var(--gray-3, #6b7280);
  text-transform: uppercase; letter-spacing: .5px;
  margin: 20px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-5, #f0f0f0);
}
.ig-profile-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
}
.ig-grid-item {
  position: relative; aspect-ratio: 1;
  overflow: hidden; cursor: pointer;
  background: var(--gray-5, #f3f4f6);
  border-radius: 2px;
}
.ig-grid-item img, .ig-grid-item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ig-grid-play {
  position: absolute; top: 6px; right: 6px;
  font-size: 12px; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* ─── FEED MEDIA 9:16 ────────────────────────────────────── */
.feed-media-wrap {
  position: relative;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.feed-media-916 {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 520px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  margin-bottom: 0;
}
.feed-media-fullscreen {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff; font-size: 16px;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.feed-media-fullscreen:active { background: rgba(0,0,0,0.8); }

/* ─── JEWBUZZ ────────────────────────────────────────────── */
.jewbuzz-container {
  padding: 0 16px 32px;
}
.jewbuzz-hero {
  text-align: center; padding: 32px 16px 24px;
}
.jewbuzz-logo {
  font-size: 36px; font-weight: 900;
  background: linear-gradient(135deg, #ff6a00, #ee0979);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: -1px;
}
.jewbuzz-desc {
  font-size: 14px; color: var(--gray-3, #6b7280);
  margin-top: 4px;
}
.jewbuzz-links {
  display: flex; flex-direction: column; gap: 10px;
}
.jewbuzz-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff; font-weight: 600; font-size: 15px;
  transition: transform .15s, box-shadow .15s;
}
.jewbuzz-link:active { transform: scale(0.97); }
.jewbuzz-link svg { flex-shrink: 0; }
.jewbuzz-handle {
  margin-left: auto;
  font-size: 12px; font-weight: 400;
  opacity: 0.7;
}
.jewbuzz-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.jewbuzz-tiktok { background: #000; }
.jewbuzz-youtube { background: #FF0000; }
.jewbuzz-facebook { background: #1877F2; }
.jewbuzz-x { background: #000; }
.jewbuzz-linkedin { background: #0A66C2; }
.jewbuzz-footer {
  text-align: center; margin-top: 24px;
}
.jewbuzz-website-btn {
  display: inline-block; padding: 12px 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ff6a00, #ee0979);
  color: #fff; font-weight: 700; font-size: 14px;
  text-decoration: none;
}