/* =====================================================
   REELO v6.0 — Design Arena copy (dark Instagram style)
   Reference: 7qby2q-k05yt4fz0-arcadawebapps9.vercel.app
   ===================================================== */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #0f0f0f;
  --muted: #737373;
  --border: #efefef;
  --pink: #fe2c55;
  --pink2: #ff375f;
  --orange: #ff6b35;
  --gold: #f5a623;
  --blue: #0095f6;
  --green: #22c55e;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body, #wp-reels-root, .wp-reels-app-container {
  height: 100%;
  background: #ffffff !important;
  color: #0f0f0f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#wp-reels-root, .wp-reels-app-container {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

#screen-area {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  background: #ffffff;
}

/* ========== BOTTOM NAV ========== */
.reels-bottom-nav {
  flex-shrink: 0;
  height: calc(54px + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: flex !important;
  align-items: center;
  justify-content: space-around;
  background: #ffffff !important;
  border-top: 1px solid #dbdbdb !important;
  z-index: 100;
}

.reels-nav-item {
  flex: 1;
  background: none;
  border: none;
  color: #8e8e8e;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 500;
  padding: 6px 0;
  cursor: pointer;
}
.reels-nav-item .nav-icon { font-size: 24px; line-height: 1; }
.reels-nav-item.active { color: #0f0f0f; }
.reels-nav-item.create-btn { flex: 0 0 56px; }
.reels-nav-item.create-btn .nav-icon {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, #ff6b35, #fe2c55, #c026d3);
  color: #0f0f0f; display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 300;
  box-shadow: 0 4px 16px rgba(254,44,85,0.4);
  transform: translateY(-4px);
}
.reels-nav-item .nav-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg,#fe2c55,#a855f7);
  color: #0f0f0f; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ========== HOME (dark IG feed) ========== */
.ig-home {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow: hidden;
}

.ig-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 14px 6px;
  background: #ffffff;
  flex-shrink: 0;
}

.ig-logo {
  font-size: 26px;
  font-weight: 900;
  font-style: normal;
  letter-spacing: 0.08em;
  text-align: center;
  flex: 1;
  text-transform: none;
  background: linear-gradient(92deg, #0f172a 0%, #c2410c 35%, #ea580c 55%, #0f172a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  filter: drop-shadow(0 1px 0 rgba(15,23,42,.12));
}

.ig-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.ig-icon-btn {
  position: relative;
  background: none;
  border: none;
  color: #0f0f0f;
  font-size: 22px;
  cursor: pointer;
  padding: 2px;
}
.ig-icon-btn .badge {
  position: absolute;
  top: -4px; right: -6px;
  background: #fe2c55;
  color: #0f0f0f;
  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;
}

.ig-chip {
  display: none; /* coins moved / optional */
}

.ig-text-btn {
  background: var(--blue);
  color: #0f0f0f;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 13px;
}

.ig-tabs {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 4px 0 8px;
  background: #ffffff;
  border-bottom: none;
  flex-shrink: 0;
}
.ig-tab {
  background: none;
  border: none;
  color: #8e8e8e;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.ig-tab.active {
  color: #0f0f0f;
  border-bottom-color: #fe2c55;
}
.ig-tab.live { color: #fe2c55; }

/* Stories */
.ig-stories {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 10px 14px 12px;
  background: #ffffff;
  flex-shrink: 0;
  scrollbar-width: none;
  border-bottom: 1px solid #efefef;
}
.ig-stories::-webkit-scrollbar { display: none; }

.ig-story { flex-shrink: 0; width: 72px; text-align: center; cursor: pointer; }

.ig-story-ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  margin: 0 auto 5px;
  position: relative;
}
.ig-story-ring.you { background: #555; }

.ig-story-av {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #000;
  background: #222;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #0f0f0f; font-size: 20px;
}

.ig-story-plus {
  position: absolute; right: -2px; bottom: 0;
  width: 20px; height: 20px;
  background: #0095f6; color: #0f0f0f;
  border-radius: 50%; border: 2px solid #000;
  font-size: 14px; line-height: 15px; font-weight: 700;
}

.ig-story-live {
  position: absolute; bottom: -2px; left: 50%;
  transform: translateX(-50%);
  background: #fe2c55; color: #0f0f0f;
  font-size: 9px; font-weight: 800;
  padding: 1px 6px; border-radius: 4px;
  border: 2px solid #000;
  letter-spacing: 0.3px;
}

.ig-story-name {
  font-size: 11px; color: #0f0f0f;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Play Bonus strip permanently removed from home */
.ig-bonus, #bonus-banner { display: none !important; height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }

/* Feed */
.ig-feed-wrap {
  flex: 1; min-height: 0; overflow: hidden; background: #ffffff;
}
.ig-feed {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
}

.ig-post {
  background: #ffffff;
  margin-bottom: 12px;
  border-bottom: 1px solid #efefef;
  padding-bottom: 8px;
}

.ig-post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
}

.ig-post-user {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; min-width: 0;
}

.ig-post-av {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; background: #333;
  border: 2px solid #fe2c55;
}

.ig-post-name {
  font-size: 13px; font-weight: 700; color: #0f0f0f;
}
.ig-post-name .verified { color: #0095f6; }
.ig-post-sound {
  font-size: 11px; color: #a8a8a8;
}

.ig-follow {
  background: linear-gradient(90deg, #ff6b35, #fe2c55);
  color: #0f0f0f; border: none;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
}
.ig-follow.following {
  background: transparent;
  border: 1px solid #dbdbdb;
  color: #0f0f0f;
}

.ig-post-media {
  position: relative;
  width: 100%;
  background: #fafafa;
  aspect-ratio: 4/5;
  max-height: 70vh;
  overflow: hidden;
}

.ig-post-media .reel-video,
.ig-post-media img.reel-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #ffffff;
}

.reel-video-missing {
  width: 100%; height: 100%;
  min-height: 280px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #fafafa; color: #aaa;
  text-align: center; padding: 20px; gap: 6px;
  font-size: 14px;
}

.ig-post-media .reel-actions {
  display: none; /* home feed uses bottom actions like IG */
}

.ig-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 4px;
}
.ig-actions-left {
  display: flex; gap: 16px; align-items: center;
}
.ig-act {
  background: none; border: none; color: #0f0f0f;
  font-size: 24px; cursor: pointer; padding: 0;
}
.ig-act.liked { color: #fe2c55; }

.ig-likes {
  padding: 0 12px;
  font-size: 13px; font-weight: 700; color: #0f0f0f;
}
.ig-post-caption {
  padding: 4px 12px 2px;
  font-size: 13px; color: #0f0f0f; line-height: 1.35;
}
.ig-cap-user { font-weight: 700; margin-right: 4px; }
.ig-comments-link {
  padding: 2px 12px;
  font-size: 13px; color: #a8a8a8; cursor: pointer;
}
.ig-time {
  padding: 2px 12px 8px;
  font-size: 11px; color: #737373; text-transform: uppercase;
}

/* ========== REELS FULL SCREEN ========== */
.reels-fs {
  height: 100%;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.reels-fs-feed {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

.reels-fs-item {
  height: 100%;
  scroll-snap-align: start;
  position: relative;
  background: #ffffff;
}

.reels-fs-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  background: #ffffff;
}

.reels-fs-top {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; align-items: center; gap: 8px;
  z-index: 10;
}
.play-bonus-pill {
  background: linear-gradient(90deg, #f5a623, #f59e0b);
  color: #111; font-weight: 800; font-size: 12px;
  padding: 5px 10px; border-radius: 16px;
}
.play-bonus-tag {
  background: rgba(0,0,0,0.45);
  color: #0f0f0f; font-size: 11px; font-weight: 700;
  padding: 5px 10px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.15);
}

.reels-fs-side {
  position: absolute; right: 10px; bottom: 100px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  z-index: 10;
}
.fs-btn {
  background: none; border: none; color: #0f0f0f;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer;
}
.fs-btn .ico { font-size: 28px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6)); }
.fs-btn .cnt { font-size: 12px; font-weight: 600; text-shadow: 0 1px 2px #000; }
.fs-av {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid #fff; overflow: hidden; background: #333;
}
.fs-av img { width: 100%; height: 100%; object-fit: cover; }

.reels-fs-bottom {
  position: absolute; left: 12px; right: 70px; bottom: 24px;
  z-index: 10; color: #0f0f0f;
}
.fs-user { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.fs-cap { font-size: 13px; line-height: 1.35; margin-bottom: 6px; }
.fs-sound { font-size: 12px; opacity: 0.9; }
.fs-product {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px; padding: 6px 12px; font-size: 12px;
  margin-top: 8px; cursor: pointer;
}

/* ========== EXPLORE ========== */
.explore-screen {
  height: 100%; overflow-y: auto; background: #ffffff; color: #0f0f0f;
  padding-bottom: 20px;
}
.explore-search-wrap {
  padding: 12px 14px 8px;
}
.explore-search {
  width: 100%;
  background: #f5f5f5;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  color: #0f0f0f;
  font-size: 14px;
}
.explore-search::placeholder { color: #737373; }

.explore-cats {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 8px 14px 12px; scrollbar-width: none;
}
.explore-cats::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0;
  background: #f5f5f5; color: #0f0f0f;
  border: none; border-radius: 20px;
  padding: 8px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.cat-chip.active { background: #fff; color: #000; }

.live-now-banner {
  margin: 0 14px 14px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(90deg, #7c3aed, #db2777);
  display: flex; align-items: center; gap: 12px;
}
.live-now-banner img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff;
}
.live-now-banner .info { flex: 1; }
.live-now-banner .info b { display: block; font-size: 13px; }
.live-now-banner .info span { font-size: 11px; opacity: 0.9; }
.live-now-banner .join {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: #0f0f0f; border-radius: 20px;
  padding: 8px 16px; font-weight: 700; font-size: 13px;
}

.trending-title {
  padding: 0 14px 10px;
  font-size: 15px; font-weight: 700;
}

.trending-sounds {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 0 14px 16px; scrollbar-width: none;
}
.sound-card {
  flex-shrink: 0; width: 120px;
  background: #f5f5f5; border-radius: 12px;
  padding: 12px; 
}
.sound-card .note { font-size: 28px; margin-bottom: 8px; }
.sound-card .name { font-size: 12px; font-weight: 700; }
.sound-card .meta { font-size: 11px; color: #22c55e; margin-top: 4px; }

.explore-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 2px !important;
  padding: 0 2px 80px !important;
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}
.explore-cell, .explore-item {
  position: relative !important;
  aspect-ratio: 9/16 !important;
  background: #f0f0f0 !important;
  overflow: hidden !important;
  cursor: pointer !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.explore-cell img, .explore-cell video,
.explore-item img, .explore-item video,
.explore-thumb img, .explore-thumb video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.explore-thumb { width: 100%; height: 100%; }
.explore-meta { display: none; }
.explore-ph {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-size: 28px; background: #eee;
}
.explore-cell .views {
  position: absolute; bottom: 6px; left: 6px;
  font-size: 11px; font-weight: 700; color: #0f0f0f;
  text-shadow: 0 1px 2px #000;
}
.explore-cell .live-badge {
  position: absolute; top: 6px; left: 6px;
  background: #fe2c55; color: #0f0f0f;
  font-size: 10px; font-weight: 800;
  padding: 2px 6px; border-radius: 4px;
}

/* ========== PROFILE ========== */
.profile-screen {
  height: 100%; overflow-y: auto; background: #ffffff; color: #0f0f0f;
}
.profile-top {
  padding: 16px 16px 8px;
  display: flex; gap: 16px; align-items: center;
}
.profile-av-lg {
  width: 86px; height: 86px; border-radius: 50%;
  object-fit: cover; background: #333;
  border: 3px solid #fe2c55;
}
.profile-stats {
  flex: 1; display: flex; justify-content: space-around; text-align: center;
}
.profile-stats strong { display: block; font-size: 18px; font-weight: 700; }
.profile-stats span { font-size: 12px; color: #a8a8a8; }

.profile-meta-block { padding: 0 16px 12px; }
.profile-name-row {
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.star-badge {
  background: linear-gradient(90deg,#f5a623,#f59e0b);
  color: #111; font-size: 10px; font-weight: 800;
  padding: 2px 8px; border-radius: 10px;
}
.profile-bio { font-size: 13px; color: #dbdbdb; margin-top: 6px; line-height: 1.4; }
.profile-link { color: #e0f2fe; font-size: 13px; margin-top: 4px; }

.earn-card {
  margin: 8px 16px 12px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4c1d95, #9d174d, #fe2c55);
  position: relative;
}
.earn-card .label { font-size: 11px; opacity: 0.9; letter-spacing: 0.5px; }
.earn-card .amount { font-size: 28px; font-weight: 800; margin: 4px 0; }
.earn-card .sub { font-size: 11px; opacity: 0.85; }
.earn-card .coin-circle {
  position: absolute; right: 16px; top: 16px;
  width: 48px; height: 48px; border-radius: 50%;
  background: #f5a623; color: #111;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.earn-card .cta {
  margin-top: 12px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #0f0f0f; width: 100%;
  padding: 10px; border-radius: 12px;
  font-weight: 700; font-size: 13px;
  cursor: pointer;
}

.profile-tools {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; padding: 0 16px 14px;
}
.tool-card {
  background: #f5f5f5; border-radius: 14px;
  padding: 14px 10px; text-align: center; cursor: pointer;
}
.tool-card .ico { font-size: 22px; margin-bottom: 6px; }
.tool-card .t { font-size: 12px; font-weight: 700; }
.tool-card .s { font-size: 11px; color: #a8a8a8; margin-top: 2px; }

.profile-highlights {
  display: flex; gap: 14px; overflow-x: auto;
  padding: 4px 16px 14px; scrollbar-width: none;
}
.hl-item { flex-shrink: 0; width: 64px; text-align: center; }
.hl-ring {
  width: 58px; height: 58px; border-radius: 50%;
  border: 1.5px solid #363636;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 4px; overflow: hidden; background: #fafafa;
  font-size: 22px; color: #a8a8a8;
}
.hl-ring img { width: 100%; height: 100%; object-fit: cover; }
.hl-name { font-size: 11px; color: #dbdbdb; }

.profile-actions {
  display: flex; gap: 8px; padding: 0 16px 12px;
}
.btn-dark {
  flex: 1; background: #f5f5f5; color: #0f0f0f;
  border: none; border-radius: 10px;
  padding: 10px; font-weight: 700; font-size: 13px; cursor: pointer;
}

.profile-tabs {
  display: flex; border-top: 1px solid #efefef;
}
.ptab {
  flex: 1; text-align: center; padding: 12px;
  background: none; border: none; border-bottom: 2px solid transparent;
  color: #8e8e8e; font-size: 18px; cursor: pointer;
}
.ptab.active { color: #0f0f0f; border-bottom-color: #0f0f0f; }

.profile-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
}
.pgrid-cell {
  aspect-ratio: 1; background: #f5f5f5; position: relative; overflow: hidden;
}
.pgrid-cell img, .pgrid-cell video {
  width: 100%; height: 100%; object-fit: cover;
}
.pgrid-cell .v { position: absolute; bottom: 4px; left: 4px; font-size: 11px; font-weight: 700; color: #0f0f0f; }

.gifts-section { padding: 16px; }
.gifts-section h3 { font-size: 14px; margin-bottom: 12px; }
.gifts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.gift-tile {
  background: #f5f5f5; border-radius: 12px;
  padding: 14px 8px; text-align: center;
}
.gift-tile .e { font-size: 28px; }
.gift-tile .n { font-size: 12px; margin-top: 4px; }
.gift-tile .c { font-size: 11px; color: #a8a8a8; }

.fan-sub-box {
  margin-top: 14px;
  background: #f5f5f5; border-radius: 14px;
  padding: 14px; display: flex; align-items: center; justify-content: space-between;
}
.fan-sub-box .l { font-size: 13px; font-weight: 700; }
.fan-sub-box .s { font-size: 11px; color: #a8a8a8; margin-top: 2px; }
.fan-sub-box button {
  background: #efefef; color: #0f0f0f; border: none;
  border-radius: 10px; padding: 8px 12px; font-size: 12px; font-weight: 700;
}

/* ========== AUTH / WALLET / UPLOAD / MODALS ========== */
.auth-screen, .wallet-screen, .upload-screen, .list-screen, .chat-screen {
  height: 100%; overflow-y: auto; background: #ffffff; color: #0f0f0f;
  padding: 20px 16px;
}
.auth-logo {
  font-size: 38px; font-weight: 900; font-style: normal;
  text-align: center; margin: 40px 0 8px;
  letter-spacing: 0.1em;
  background: linear-gradient(92deg, #0f172a 0%, #c2410c 40%, #ea580c 60%, #0f172a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(15,23,42,.15));
}
.auth-sub { text-align: center; color: #a8a8a8; margin-bottom: 28px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; color: #a8a8a8; margin-bottom: 6px; }
.form-input {
  width: 100%; background: #f5f5f5; border: 1px solid #dbdbdb;
  border-radius: 12px; padding: 14px; color: #0f0f0f; font-size: 15px;
}
.btn-primary {
  width: 100%; background: linear-gradient(90deg, #ff6b35, #fe2c55);
  color: #0f0f0f; border: none; border-radius: 12px;
  padding: 14px; font-weight: 700; font-size: 15px; cursor: pointer;
  margin-top: 8px;
}
.btn-outline {
  width: 100%; background: transparent; border: 1px solid #dbdbdb;
  color: #0f0f0f; border-radius: 12px; padding: 14px; font-weight: 700;
  margin-top: 10px; cursor: pointer;
}

.wallet-hero {
  background: linear-gradient(135deg, #4c1d95, #fe2c55);
  border-radius: 16px; padding: 24px; text-align: center; margin-bottom: 20px;
}
.wallet-hero .bal { font-size: 32px; font-weight: 800; }
.wallet-section h3 { font-size: 14px; margin: 16px 0 10px; color: #a8a8a8; }
.tx-item {
  display: flex; justify-content: space-between; padding: 12px 0;
  border-bottom: 1px solid #efefef;
}
.tx-title { font-size: 13px; }
.tx-date { font-size: 11px; color: #737373; }
.tx-amount { font-weight: 700; }
.tx-amount.positive { color: #22c55e; }

.list-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid #efefef;
  position: relative; top: auto; background: #ffffff; z-index: 5;
}
.profile-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid #efefef;
  position: sticky; top: 0; background: #ffffff; z-index: 5;
}
.back-btn {
  background: none; border: none; color: #0f0f0f; font-size: 24px; cursor: pointer;
}
.list-header h2, .profile-header .profile-handle { font-size: 16px; font-weight: 700; }

.comments-sheet, .reels-gift-modal {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #f5f5f5; border-radius: 16px 16px 0 0;
  max-height: 70%; z-index: 200; padding: 16px;
  color: #0f0f0f;
}
.gift-item {
  background: #efefef; border-radius: 12px; padding: 12px;
  text-align: center; cursor: pointer;
}
.gift-item.selected { border: 2px solid #fe2c55; }

.reels-loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 200px; color: #a8a8a8; gap: 12px;
}
.reels-spinner {
  width: 32px; height: 32px;
  border: 3px solid #333; border-top-color: #fe2c55;
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.reels-empty { text-align: center; padding: 40px 20px; color: #a8a8a8; }

/* Desktop */
@media (min-width: 768px) {
  body { background: #111 !important; }
  #wp-reels-root {
    max-width: 420px;
    box-shadow: 0 0 0 1px #222;
  }
}


/* === LIGHT THEME FIXES (Design Arena structure, white bg) === */
html, body, #wp-reels-root, .wp-reels-app-container, #screen-area {
  background: #ffffff !important;
  color: #0f0f0f !important;
}

.ig-home, .ig-header, .ig-tabs, .ig-stories, .ig-feed-wrap, .ig-feed, .ig-post {
  background: #ffffff !important;
  color: #0f0f0f !important;
}

/* logo uses gradient text — do not force solid color */

.ig-tab { color: #8e8e8e !important; }
.ig-tab.active { color: #0f0f0f !important; border-bottom-color: #fe2c55 !important; }

.ig-story-name, .ig-post-name, .ig-likes, .ig-post-caption, .ig-cap-user {
  color: #0f0f0f !important;
}
.ig-post-sound, .ig-comments-link, .ig-time { color: #737373 !important; }

.ig-icon-btn { color: #0f0f0f !important; }
.ig-act { color: #0f0f0f !important; }
.ig-act.liked { color: #fe2c55 !important; }

.ig-follow {
  background: linear-gradient(90deg, #ff6b35, #fe2c55) !important;
  color: #ffffff !important;
}
.ig-follow.following {
  background: #efefef !important;
  color: #0f0f0f !important;
  border: 1px solid #dbdbdb !important;
}

.ig-post-media { background: #000000 !important; } /* video area stays dark for contrast */
.ig-post-media .reel-video { background: #000000 !important; }

.ig-story-ring { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important; }
.ig-story-ring.you { background: #dbdbdb !important; }
.ig-story-av { border-color: #ffffff !important; background: #efefef !important; color: #0f0f0f !important; }
.ig-story-plus { background: #0095f6 !important; color: #fff !important; border-color: #fff !important; }
.ig-story-live { background: #fe2c55 !important; color: #fff !important; border-color: #fff !important; }

.ig-bonus {
  background: linear-gradient(90deg, #059669, #10b981) !important;
  color: #ffffff !important;
}

.reels-bottom-nav {
  background: #ffffff !important;
  border-top: 1px solid #dbdbdb !important;
}
.reels-nav-item { color: #8e8e8e !important; }
.reels-nav-item.active { color: #0f0f0f !important; }
.reels-nav-item.create-btn .nav-icon {
  background: linear-gradient(135deg, #ff6b35, #fe2c55, #c026d3) !important;
  color: #ffffff !important;
}

/* Full-screen reels — media dark, chrome readable */
.reels-fs { background: #000000 !important; }
.reels-fs-feed, .reels-fs-item { background: #000000 !important; }
.reels-fs-bottom, .fs-user, .fs-cap, .fs-sound, .fs-btn { color: #ffffff !important; }
.play-bonus-pill { background: linear-gradient(90deg, #f5a623, #f59e0b) !important; color: #111 !important; }
.play-bonus-tag { color: #fff !important; }

/* Explore light */
.explore-screen { background: #ffffff !important; color: #0f0f0f !important; }
.explore-search {
  background: #f5f5f5 !important;
  color: #0f0f0f !important;
  border: 1px solid #efefef !important;
}
.explore-search::placeholder { color: #8e8e8e !important; }
.cat-chip { background: #f5f5f5 !important; color: #0f0f0f !important; }
.cat-chip.active { background: #0f0f0f !important; color: #ffffff !important; }
.trending-title { color: #0f0f0f !important; }
.sound-card { background: #f5f5f5 !important; color: #0f0f0f !important; }
.explore-cell { background: #f0f0f0 !important; }
.live-now-banner { color: #ffffff !important; }
.live-now-banner .join { color: #ffffff !important; }

/* Profile light */
.profile-screen, .auth-screen, .wallet-screen, .upload-screen, .list-screen, .chat-screen {
  background: #ffffff !important;
  color: #0f0f0f !important;
}
.profile-name-row, .profile-bio, .profile-meta-block { color: #0f0f0f !important; }
.profile-stats strong { color: #0f0f0f !important; }
.profile-stats span, .profile-bio { color: #737373 !important; }
.tool-card { background: #f5f5f5 !important; color: #0f0f0f !important; }
.tool-card .s { color: #737373 !important; }
.btn-dark {
  background: #f5f5f5 !important;
  color: #0f0f0f !important;
}
.ptab { color: #8e8e8e !important; }
.ptab.active { color: #0f0f0f !important; border-bottom-color: #0f0f0f !important; }
.pgrid-cell { background: #f0f0f0 !important; }
.gift-tile { background: #f5f5f5 !important; color: #0f0f0f !important; }
.fan-sub-box { background: #f5f5f5 !important; color: #0f0f0f !important; }
.fan-sub-box button { background: #efefef !important; color: #0f0f0f !important; }
.hl-ring { border-color: #dbdbdb !important; background: #f5f5f5 !important; color: #737373 !important; }
.hl-name { color: #0f0f0f !important; }

.earn-card { color: #ffffff !important; }
.earn-card .cta { color: #ffffff !important; }
.earn-card .coin-circle { color: #111 !important; }

/* auth logo gradient */
.auth-sub { color: #737373 !important; }
.form-input {
  background: #f5f5f5 !important;
  border: 1px solid #dbdbdb !important;
  color: #0f0f0f !important;
}
.btn-primary { color: #ffffff !important; }
.btn-outline {
  background: #ffffff !important;
  border: 1px solid #dbdbdb !important;
  color: #0f0f0f !important;
}

.list-header, .profile-header {
  background: #ffffff !important;
  border-bottom: 1px solid #efefef !important;
  color: #0f0f0f !important;
}
.back-btn { color: #0f0f0f !important; }

.comments-sheet, .reels-gift-modal {
  background: #ffffff !important;
  color: #0f0f0f !important;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
}
.gift-item { background: #f5f5f5 !important; color: #0f0f0f !important; }

.wallet-hero { color: #ffffff !important; }
.tx-item { border-bottom: 1px solid #efefef !important; }
.tx-title { color: #0f0f0f !important; }

.reels-loading, .reels-empty { color: #737373 !important; }
.reels-spinner { border-color: #e5e5e5; border-top-color: #fe2c55; }

.ig-text-btn { background: #0095f6 !important; color: #ffffff !important; }
.ig-icon-btn .badge { background: #fe2c55 !important; color: #ffffff !important; }

/* Prevent pure black full-page */
body.wp-reels-theme, body.reels-light {
  background: #ffffff !important;
  color: #0f0f0f !important;
}

@media (min-width: 768px) {
  body { background: #f0f0f0 !important; }
  #wp-reels-root {
    background: #ffffff !important;
    box-shadow: 0 0 0 1px #e5e5e5, 0 8px 40px rgba(0,0,0,0.06) !important;
  }
}

/* ========== MODALS (must be hidden by default) ========== */
.reels-modal-overlay {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,0.45) !important;
  z-index: 9999 !important;
  align-items: flex-end !important;
  justify-content: center !important;
}
.reels-modal-overlay.open {
  display: flex !important;
}
.reels-gift-modal,
.comments-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 70vh;
  overflow-y: auto;
  background: #ffffff !important;
  color: #0f0f0f !important;
  border-radius: 16px 16px 0 0;
  padding: 16px;
  margin: 0 auto;
}
.gift-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 12px 0;
}
.gift-item {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
}
.gift-item.selected { border-color: #fe2c55; }
.gift-item .emoji { font-size: 28px; display: block; }
.gift-item .name { font-size: 12px; font-weight: 600; }
.gift-item .price { font-size: 11px; color: #737373; }
.gift-send-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #e5e5e5;
  color: #8e8e8e;
  font-weight: 700;
  font-size: 15px;
}
.gift-send-btn.enabled {
  background: linear-gradient(90deg, #ff6b35, #fe2c55);
  color: #fff;
  cursor: pointer;
}
.comments-handle {
  width: 40px; height: 4px; background: #dbdbdb;
  border-radius: 2px; margin: 0 auto 12px;
}
.comments-title { font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.comments-list { max-height: 40vh; overflow-y: auto; margin-bottom: 12px; }
.comments-input-row { display: flex; gap: 8px; }
.comment-input {
  flex: 1; background: #f5f5f5; border: 1px solid #dbdbdb;
  border-radius: 20px; padding: 10px 14px; color: #0f0f0f;
}
.comment-send {
  background: #0095f6; color: #fff; border: none;
  border-radius: 20px; padding: 10px 16px; font-weight: 700;
}

/* App shell layout */
#wp-reels-root,
.wp-reels-app-container {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: 480px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  overflow: hidden !important;
  position: relative !important;
}
#screen-area {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  background: #ffffff !important;
}
.reels-bottom-nav {
  flex: 0 0 auto !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* === v6.2 Home sticky + scroll stories === */
.ig-home {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
  background: #ffffff !important;
}
.ig-sticky-top {
  flex-shrink: 0 !important;
  background: #ffffff !important;
  z-index: 30;
  border-bottom: 1px solid #f0f0f0;
}
.ig-scroll-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  background: #ffffff !important;
}
.ig-feed-wrap { display: none !important; } /* old wrapper unused */
.ig-feed {
  height: auto !important;
  overflow: visible !important;
  background: #ffffff !important;
}
.ig-stories, .ig-tabs {
  flex-shrink: 0;
  background: #ffffff !important;
}

/* Reels mute hint */
.fs-mute-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.55);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  z-index: 12;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.3s;
}

/* Profile letter avatar */
.profile-av-letter {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(135deg, #ff6b35, #fe2c55) !important;
  border: none !important;
}

/* Double-tap heart */
.double-tap-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.4);
  font-size: 80px;
  z-index: 50;
  pointer-events: none;
  animation: heartPop 0.85s ease-out forwards;
}
@keyframes heartPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -60%) scale(1); }
}

.da-profile { background: #ffffff !important; }
.profile-screen { background: #ffffff !important; color: #0f0f0f !important; }


/* Bottom mute icon on reels (not center overlay) */
.fs-mute-hint { display: none !important; }
.fs-mute-btn {
  position: absolute !important;
  left: 12px !important;
  bottom: 88px !important;
  z-index: 15 !important;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.45) !important;
  color: #fff !important;
  font-size: 16px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.reels-fs-bottom { padding-bottom: 8px; }


/* v6.3 gap + reels bottom user row + hide mute permanently */
.ig-post { margin-bottom: 8px !important; padding-bottom: 4px !important; }
.ig-feed { gap: 0 !important; }
.ig-post-media { margin-bottom: 4px !important; }
.ig-actions-row, .ig-likes, .ig-post-caption, .ig-comments-link, .ig-time { margin-top: 2px !important; margin-bottom: 2px !important; padding-left: 12px; padding-right: 12px; }
.fs-mute-btn { display: none !important; }
.fs-user-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.fs-user-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; flex-shrink: 0; }
.bookmark-btn.saved { filter: none; }
.explore-tabs { display: flex; gap: 8px; padding: 8px 12px; overflow-x: auto; }


/* Install bar (stays until app installed) */
.install-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(90deg, #1e1b4b, #4c1d95);
  color: #fff !important;
}
.install-bar-txt {
  flex: 1;
  font-size: 12px;
  line-height: 1.3;
  color: #fff !important;
}
.install-bar-btn {
  border: none;
  background: #fff;
  color: #4c1d95;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
}
.install-bar-x {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.play-bonus-profile-note {
  margin: 0 16px 12px;
  padding: 10px 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  font-size: 12px;
  color: #065f46;
  line-height: 1.4;
}
/* hide old bonus strip if any leftover */
.ig-bonus { display: none !important; }


/* Install FAB above profile icon (bottom-right) */
.install-fab {
  position: absolute !important;
  right: 10px !important;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 80 !important;
  border: none;
  border-radius: 22px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  background: linear-gradient(135deg, #ff6b35, #fe2c55) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(254,44,85,0.4);
  cursor: pointer;
}
.coin-watch-hud {
  position: absolute;
  top: 70px;
  right: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.45);
  color: #fff !important;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
.coin-spin {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fbbf24;
  border-radius: 50%;
  animation: coinspin 0.8s linear infinite;
}
@keyframes coinspin { to { transform: rotate(360deg); } }
.coin-val { color: #fbbf24 !important; }
.install-bar { display: none !important; }

.coin-watch-hud-fixed {
  position: fixed !important;
  top: 90px !important;
  right: 12px !important;
  left: auto !important;
  z-index: 90 !important;
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.55) !important;
  color: #fff !important;
  padding: 8px 12px !important;
  border-radius: 24px !important;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.coin-watch-hud-fixed .coin-meta { display: flex; flex-direction: column; line-height: 1.2; }
.coin-watch-hud-fixed .coin-val { color: #fbbf24 !important; font-size: 14px; font-weight: 800; }
.coin-watch-hud-fixed .coin-sub { color: rgba(255,255,255,0.85) !important; font-size: 10px; font-weight: 500; }

.photos-screen { height: 100%; display: flex; flex-direction: column; background: #fff; }
.photos-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.photo-card { border-bottom: 1px solid #efefef; padding-bottom: 12px; margin-bottom: 8px; }
.photo-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.photo-head .ig-follow { margin-left: auto; }
.photo-img { width: 100%; max-height: 70vh; object-fit: cover; background: #f0f0f0; display: block; }
.photo-actions { display: flex; gap: 12px; padding: 8px 12px; }


/* nav 6 items — fit mobile without overflow */
.reels-bottom-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  gap: 0 !important;
  padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px)) !important;
}
.reels-bottom-nav .reels-nav-item {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  padding: 6px 0 !important;
  margin: 0 !important;
}
.reels-bottom-nav .reels-nav-item .nav-icon {
  font-size: 18px;
  font-size: 20px !important;
}
.reels-bottom-nav .reels-nav-item.create-btn {
  flex: 0 0 48px !important;
}
.reels-bottom-nav .reels-nav-item.create-btn .nav-icon {
  font-size: 22px !important;
}


/* Upload mobile-safe */
.upload-screen {
  height: 100%;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
}
.upload-body {
  padding: 12px 16px 100px !important;
  max-width: 100%;
  box-sizing: border-box;
}
.upload-body .form-input,
.upload-body textarea.form-input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  font-size: 16px !important; /* prevent iOS zoom */
}
.upload-zone {
  max-width: 100%;
  box-sizing: border-box;
}
.btn-primary.btn-block {
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
}

/* Instagram-style Stories full screen */
.story-fs {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 100;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.story-progress {
  display: flex;
  gap: 4px;
  padding: 8px 8px 0;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
}
.story-seg {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  overflow: hidden;
}
.story-seg.done .story-seg-fill,
.story-seg.active .story-seg-fill {
  width: 100%;
  height: 100%;
  background: #fff;
}
.story-seg.active .story-seg-fill {
  animation: storyfill 5s linear forwards;
}
@keyframes storyfill { from { width: 0; } to { width: 100%; } }
.story-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 12px 8px;
  position: absolute;
  top: 12px; left: 0; right: 0;
  z-index: 5;
}
.story-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}
.story-meta { flex: 1; }
.story-name { font-weight: 700; font-size: 14px; }
.story-time { font-size: 11px; opacity: 0.8; }
.story-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}
.story-media-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.story-media {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.story-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 12px calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  z-index: 5;
}
.story-act {
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
}
.story-caption {
  flex: 1;
  font-size: 13px;
  opacity: 0.95;
}

/* Hide leftover play bonus badges on reels */
.play-bonus-pill, .play-bonus-tag { display: none !important; }


/* Upload: never overflow mobile viewport */
.upload-screen, .upload-body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}
#preview-video, #preview-image, .preview-video {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 36vh !important;
  height: auto !important;
  object-fit: contain !important;
  background: #111 !important;
  border-radius: 12px !important;
  margin: 8px 0 12px !important;
}
.upload-zone {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 20px 12px !important;
}
.wp-reels-app-container, #wp-reels-root, .reels-app-viewport {
  overflow-x: hidden !important;
}
.ig-home, .ig-scroll-body, .ig-feed, .explore-screen {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

/* Withdraw modal fields */
.withdraw-modal .form-group { margin-bottom: 10px; }
.withdraw-modal .form-group label { display:block; font-size:12px; margin-bottom:4px; color:#444; }
.wd-methods { display:flex; gap:16px; margin-bottom:12px; flex-wrap:wrap; }
.wd-method { font-size:14px; font-weight:600; }

.infeed-ad-banner{position:relative;width:100%;background:#f0f0f0;min-height:160px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.infeed-ad-banner img{width:100%;max-height:45vh;object-fit:contain;display:block}
.infeed-ad-banner.small img{max-height:120px}
.infeed-ad-cta{display:block;margin:10px auto 12px;background:#0095f6;color:#fff!important;border:none;border-radius:8px;padding:10px 20px;font-weight:700;font-size:14px;cursor:pointer;z-index:5;position:relative}


/* ===== ALWAYS mobile phone column (desktop/tablet/laptop) ===== */
html, body {
  background: #e8e8e8 !important;
}
body.wp-reels-theme,
body.reels-light {
  background: #e8e8e8 !important;
}
#wp-reels-root,
.wp-reels-app-container {
  width: 100% !important;
  max-width: 380px !important;
  margin: 14px auto !important;
  min-height: calc(100vh - 28px) !important;
  min-height: calc(100dvh - 28px) !important;
  max-height: calc(100dvh - 28px) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.12) !important;
  position: relative !important;
  overflow-x: hidden !important;
  border-radius: 12px !important;
}
@media (max-width: 430px) {
  #wp-reels-root,
  .wp-reels-app-container {
    margin: 0 auto !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: none !important;
    border-radius: 0 !important;
  }
}
@media (min-width: 500px) {
  #wp-reels-root,
  .wp-reels-app-container {
    max-width: 380px !important;
  }
}
/* never stretch feed full desktop width */
.ig-home, .ig-scroll-body, .ig-feed, .explore-screen, .upload-screen, .list-screen {
  max-width: 100% !important;
}

.pgrid-cell{position:relative}
.pgrid-edit{position:absolute;top:6px;right:6px;background:rgba(0,0,0,.55);color:#fff;border-radius:6px;padding:2px 5px;font-size:12px;z-index:2;cursor:pointer}
.photo-ad{border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;margin-bottom:12px}

.more-wrap{position:relative;display:inline-flex;align-items:center}
.more-btn{border:0;background:transparent;cursor:pointer}
.more-menu-pop{z-index:10050!important}
.art-content a{color:#2563eb!important;text-decoration:underline}
.ig-post-head{display:flex;align-items:center;gap:8px}

/* Professional engage row — like / comment / share + time */
.engage-block {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}
.engage-time {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.engage-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.engage-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: #f8fafc;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: background .15s, transform .1s;
  line-height: 1;
}
.engage-btn:active { transform: scale(0.96); }
.engage-btn:hover { background: #f1f5f9; }
.engage-btn.is-liked {
  background: #fff1f2;
  color: #e11d48;
}
.engage-ico { font-size: 16px; line-height: 1; }
.engage-cnt, .engage-lbl { font-size: 12px; color: #64748b; font-weight: 600; }
.engage-btn.is-liked .engage-cnt { color: #e11d48; }
.ig-time {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 6px !important;
}
.ig-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px !important;
}
.ig-actions-left {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ig-actions-row .ig-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  border-radius: 999px;
  background: #f8fafc;
  border: 0;
  font-size: 18px;
  cursor: pointer;
}
.ig-actions-row .ig-act:active { transform: scale(0.95); }
.photo-actions.engage-row { padding: 0; }
.art-card .engage-block { margin-left: 0; }

/* Instagram-style engage row */
.ig-engage { padding: 6px 4px 4px; }
.ig-engage-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0;
}
.ig-ico-btn {
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0f0f0f;
}
.ig-ico-btn:active { opacity: 0.65; transform: scale(0.92); }
.ig-ico { font-size: 24px; line-height: 1; }
.ig-ico-n { font-size: 13px; font-weight: 600; color: #0f0f0f; }
.ig-engage-likes {
  font-size: 14px;
  font-weight: 700;
  color: #0f0f0f;
  margin-top: 4px;
}
.ig-engage-time {
  font-size: 11px;
  color: #8e8e8e;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 4px;
}
.ig-actions-row .ig-act {
  background: transparent !important;
  width: auto !important;
  height: auto !important;
  font-size: 24px !important;
  padding: 4px !important;
}
.ig-post, .photo-card, .art-card, .feed-article-card {
  box-shadow: none !important;
  border-radius: 0 !important;
}
.photo-card {
  border: 0 !important;
  border-bottom: 1px solid #efefef !important;
  margin: 0 !important;
  padding-bottom: 8px !important;
}
.list-body .art-card {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.ig-home .ig-feed, .photos-scroll, .list-body {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.ig-post-caption, .ig-likes, .ig-comments-link, .ig-time, .ig-actions-row, .ig-engage {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.pgrid-cell { position: relative; }
.pgrid-more {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 16px;
  line-height: 28px;
  padding: 0;
  cursor: pointer;
}
.pgrid-edit { display: none !important; }


/* PROFILE MOBILE FIX v6.10.23 */
.profile-screen,
.profile-screen.da-profile {
  height: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  padding-bottom: 12px !important;
}
.profile-screen * {
  max-width: 100%;
  box-sizing: border-box;
}
.profile-top {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 16px 8px !important;
  width: 100% !important;
}
.profile-av-lg,
.profile-av-letter {
  width: 78px !important;
  height: 78px !important;
  min-width: 78px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}
.profile-stats {
  flex: 1 1 auto !important;
  display: flex !important;
  justify-content: space-around !important;
  text-align: center !important;
  min-width: 0 !important;
}
.profile-meta-block {
  padding: 0 16px 10px !important;
  width: 100% !important;
}
.profile-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 0 16px 12px !important;
  width: 100% !important;
}
.profile-actions .btn-dark,
.profile-actions .btn-primary {
  flex: 1 1 auto !important;
  min-width: 90px !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 5 !important;
}
.profile-tools {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 0 16px 14px !important;
  width: 100% !important;
}
.tool-card {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 5 !important;
  min-width: 0 !important;
}
.earn-card {
  margin: 8px 16px 12px !important;
  width: auto !important;
  max-width: calc(100% - 32px) !important;
  pointer-events: auto !important;
  z-index: 5 !important;
  position: relative !important;
}
.earn-card .cta,
.earn-card button,
#btn-earn-dash,
#btn-toggle-mode {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 6 !important;
}
.profile-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 2px !important;
  width: 100% !important;
  padding-bottom: 24px !important;
}
#account-mode-bar {
  margin: 0 16px 12px !important;
  max-width: calc(100% - 32px) !important;
  pointer-events: auto !important;
  z-index: 5 !important;
  position: relative !important;
}
#screen-area {
  overflow-x: hidden !important;
}

/* LIST HEADER — sticky on scroll (Earn dashboard + Top stays visible) */
.list-screen {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}
.list-screen .list-body,
.list-screen #earn-body,
.list-screen .wallet-body {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain;
}
.list-header {
  height: auto !important;
  min-height: 48px !important;
  max-height: 56px !important;
  height: 52px !important;
  max-width: 100% !important;
  overflow: visible !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border-bottom: 1px solid #efefef !important;
  flex-shrink: 0 !important;
}
.profile-header {
  height: auto !important;
  min-height: 48px !important;
  max-height: 56px !important;
  height: 52px !important;
  max-width: 100% !important;
  overflow: hidden !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 25 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
}
.list-header .back-btn, .profile-header .back-btn {
  pointer-events: auto !important;
  z-index: 6 !important;
}


/* Account mode bar — left title, right switch */
.account-mode-bar, #account-mode-bar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 16px 14px !important;
  padding: 12px 14px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  max-width: calc(100% - 32px) !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
  z-index: 8 !important;
  position: relative !important;
}
.account-mode-bar .mode-left, #account-mode-bar .mode-left {
  flex: 1 !important;
  min-width: 0 !important;
  text-align: left !important;
}
.account-mode-bar .mode-title, #account-mode-bar .mode-title {
  font-weight: 800 !important;
  font-size: 15px !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
}
.account-mode-bar .mode-sub, #account-mode-bar .mode-sub {
  font-size: 11px !important;
  color: #64748b !important;
  margin-top: 2px !important;
}
.mode-switch-btn {
  flex-shrink: 0 !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #7c3aed, #db2777) !important;
  color: #fff !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 12px rgba(124,58,237,.25) !important;
}
.profile-actions button,
.tool-card,
.earn-card,
.earn-card .cta,
[data-act] {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 6 !important;
}

.pgrid-badge{position:absolute;left:6px;top:6px;background:rgba(0,0,0,.65);color:#fff;font-size:10px;font-weight:700;padding:2px 6px;border-radius:6px;z-index:2}
.pgrid-cap{position:absolute;left:0;right:0;bottom:0;padding:6px;font-size:11px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.7));z-index:2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pgrid-more{position:absolute;right:4px;top:4px;z-index:3;border:0;background:rgba(0,0,0,.55);color:#fff;border-radius:999px;width:28px;height:28px;font-size:16px;line-height:1;cursor:pointer}
.profile-tabs{display:flex;gap:6px;padding:8px 12px;border-bottom:1px solid #eee}
.profile-tabs .ptab{flex:1;border:0;background:#f1f5f9;border-radius:10px;padding:8px 6px;font-size:12px;font-weight:700;color:#64748b;cursor:pointer}
.profile-tabs .ptab.active{background:#0f172a;color:#fff}


/* === Earn/Wallet sticky header — LOCKED structure === */
.list-screen {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  position: relative !important;
}
.list-screen > .list-header {
  position: relative !important; /* flex sibling — does not scroll with body */
  top: auto !important;
  flex: 0 0 52px !important;
  flex-shrink: 0 !important;
  z-index: 50 !important;
  background: #ffffff !important;
  border-bottom: 1px solid #efefef !important;
}
.list-screen > .list-body,
.list-screen > #earn-body,
.list-screen > .wallet-body {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain;
  min-height: 0 !important;
}
/* Professional/Creator banner stays at top of app */
.mode-banner, .account-mode-banner, .prof-banner {
  flex-shrink: 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 60 !important;
}


/* Important confirmation dialog — readable, dark text, no layout redesign */
.reelo-confirm-overlay{
  position:fixed;inset:0;z-index:100000;background:rgba(15,23,42,.55);
  display:flex;align-items:center;justify-content:center;padding:20px;
  box-sizing:border-box;
}
.reelo-confirm-box{
  background:#fff;border-radius:16px;max-width:340px;width:100%;
  padding:22px 20px 16px;box-shadow:0 20px 50px rgba(0,0,0,.25);
  border:1px solid #e2e8f0;
}
.reelo-confirm-title{
  font-size:17px;font-weight:800;color:#0f172a;margin:0 0 12px;line-height:1.35;
  letter-spacing:-0.01em;
}
.reelo-confirm-body{
  font-size:15px;font-weight:600;color:#1e293b;line-height:1.55;margin:0 0 18px;
  white-space:pre-wrap;
}
.reelo-confirm-body .warn-line{
  display:block;margin-top:10px;padding:10px 12px;background:#fef2f2;border-radius:10px;
  color:#991b1b;font-size:14px;font-weight:700;line-height:1.45;
  border:1px solid #fecaca;
}
.reelo-confirm-actions{
  display:flex;gap:10px;justify-content:flex-end;
}
.reelo-confirm-actions button{
  min-width:96px;padding:12px 16px;border-radius:12px;border:0;
  font-size:15px;font-weight:700;cursor:pointer;
}
.reelo-confirm-cancel{
  background:#f1f5f9;color:#0f172a;
}
.reelo-confirm-ok{
  background:#0f172a;color:#fff;
}
.reelo-confirm-ok.danger{
  background:#dc2626;color:#fff;
}

/* Profile menu update badge */
.prof-menu-wrap { position: relative; display: inline-flex; }
.prof-menu-badge {
  position: absolute; top: -2px; right: -2px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #ef4444; border: 2px solid #fff;
  display: none;
}
.prof-menu-badge.show { display: block; }
.menu-row-badge {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444; margin-left: 8px; vertical-align: middle;
}

/* Gifts locked off until Admin enables */
body.gifts-off .gift-btn,
html.gifts-off .gift-btn { display: none !important; }
