/* ============================================
   ACTGRAM OFFICIAL BRAND THEME
   Cyan #00AEEF | Navy #002347 | Yellow #FFC107
   Color-only layer — no layout changes
   ============================================ */

:root {
  --brand-cyan: #00AEEF;
  --brand-cyan-light: #E8F7FD;
  --brand-cyan-dark: #0095CC;
  --brand-navy: #002347;
  --brand-navy-mid: #003566;
  --brand-yellow: #FFC107;
}

/* Screen & page backgrounds */
.screen,
[style*="background:#F8FAFC"],
[style*="background: #F8FAFC"],
[style*="background:linear-gradient(160deg,#F8FAFC"],
[style*="background: linear-gradient(160deg, #F8FAFC"],
[style*="background:linear-gradient(165deg,#F8FAFC"],
[style*="background: linear-gradient(165deg, #F8FAFC"],
[style*="background:linear-gradient(160deg,#EEF2FF"],
[style*="background: linear-gradient(160deg, #EEF2FF"] {
  background: linear-gradient(165deg, #F0FAFF 0%, #E8F7FD 45%, #F8FCFF 100%) !important;
}

#splash {
  background: linear-gradient(165deg, #F8FCFF 0%, #E8F7FD 45%, #D6F0FC 100%) !important;
}

/* Primary blues → Brand Cyan */
[style*="background:#1E40AF"],
[style*="background: #1E40AF"],
[style*="background:#3B82F6"],
[style*="background: #3B82F6"],
[style*="background:#4F46E5"],
[style*="background: #4F46E5"],
[style*="background:#5B50F0"],
[style*="background: #5B50F0"],
[style*="background:#6366F1"],
[style*="background: #6366F1"],
[style*="background:linear-gradient(135deg,#1E40AF"],
[style*="background: linear-gradient(135deg, #1E40AF"],
[style*="background:linear-gradient(135deg,#4F46E5"],
[style*="background: linear-gradient(135deg, #4F46E5"],
[style*="background:linear-gradient(135deg,#5B50F0"],
[style*="background: linear-gradient(135deg, #5B50F0"],
[style*="background:linear-gradient(135deg,#3B82F6"],
[style*="background: linear-gradient(135deg, #3B82F6"],
.btn-primary {
  background: #00AEEF !important;
  box-shadow: 0 8px 24px rgba(0, 174, 239, 0.28) !important;
  border: none !important;
}

[style*="color:#1E40AF"],
[style*="color: #1E40AF"],
[style*="color:#3B82F6"],
[style*="color: #3B82F6"],
[style*="color:#4F46E5"],
[style*="color: #4F46E5"],
[style*="color:#5B50F0"],
[style*="color: #5B50F0"],
[style*="color:#6366F1"],
[style*="color: #6366F1"] {
  color: #00AEEF !important;
}

[style*="border-color:#1E40AF"],
[style*="border-color: #1E40AF"],
[style*="border: 1.5px solid #1E40AF"],
[style*="border:1.5px solid #1E40AF"],
[style*="border: 2px solid #1E40AF"],
[style*="border:2px solid #1E40AF"] {
  border-color: #00AEEF !important;
}

/* Violet/purple → Brand Navy */
[style*="background:#7C3AED"],
[style*="background: #7C3AED"],
[style*="background:#8B5CF6"],
[style*="background: #8B5CF6"],
[style*="background:linear-gradient(135deg,#7C3AED"],
[style*="background: linear-gradient(135deg, #7C3AED"],
[style*="background:linear-gradient(135deg,#1E40AF,#7C3AED)"],
[style*="background: linear-gradient(135deg, #1E40AF, #7C3AED)"] {
  background: linear-gradient(135deg, #002347 0%, #003566 100%) !important;
  box-shadow: 0 8px 24px rgba(0, 35, 71, 0.22) !important;
}

[style*="color:#7C3AED"],
[style*="color: #7C3AED"],
[style*="color:#8B5CF6"],
[style*="color: #8B5CF6"] {
  color: #002347 !important;
}

/* Soft tint backgrounds */
[style*="background:#EFF6FF"],
[style*="background: #EFF6FF"],
.badge-blue {
  background: rgba(0, 174, 239, 0.08) !important;
  color: #0095CC !important;
  border: 1px solid rgba(0, 174, 239, 0.18) !important;
}

[style*="background:#F5F3FF"],
[style*="background: #F5F3FF"],
.badge-violet {
  background: rgba(0, 35, 71, 0.06) !important;
  color: #002347 !important;
  border: 1px solid rgba(0, 35, 71, 0.12) !important;
}

[style*="background:#E0E7FF"],
[style*="background: #E0E7FF"],
[style*="background:#DBEAFE"],
[style*="background: #DBEAFE"] {
  background: rgba(0, 174, 239, 0.10) !important;
}

/* Dark slate CTAs → Navy */
[style*="background:#0F172A"],
[style*="background: #0F172A"],
[style*="background:linear-gradient(135deg,#0F172A"],
[style*="background: linear-gradient(135deg, #0F172A"],
[style*="background:linear-gradient(135deg,#0F172A,#1E293B)"],
[style*="background: linear-gradient(135deg, #0F172A, #1E293B)"] {
  background: linear-gradient(135deg, #002347 0%, #003566 100%) !important;
  box-shadow: 0 8px 28px rgba(0, 35, 71, 0.28) !important;
}

.tab-fab {
  background: #00AEEF !important;
  box-shadow: 0 8px 24px rgba(0, 174, 239, 0.30) !important;
}

/* Logo gradient text (welcome/auth accents only — splash uses hard ACT/GRAM split) */
[style*="background:linear-gradient(135deg,#4F46E5,#3B82F6)"],
[style*="background: linear-gradient(135deg, #4F46E5, #3B82F6)"],
[style*="background:linear-gradient(135deg,#5B50F0"],
[style*="background: linear-gradient(135deg, #5B50F0"] {
  background: linear-gradient(135deg, #00AEEF 0%, #002347 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.splash-logo-text {
  font-weight: 900 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  color: inherit !important;
}

.tab-item.active,
.tab-item.active i,
.tab-item.active .tab-label {
  color: #00AEEF !important;
}

.tab-indicator {
  background: #00AEEF !important;
  box-shadow: 0 0 10px rgba(0, 174, 239, 0.45) !important;
}

.splash-loader {
  border-top-color: #00AEEF !important;
}

.desktop-nav-item:hover,
.desktop-nav-item.active {
  color: #00AEEF !important;
  background: rgba(0, 174, 239, 0.07) !important;
}

.desktop-nav-item:hover i,
.desktop-nav-item.active i,
.desktop-nav-item:hover > svg,
.desktop-nav-item.active > svg {
  color: #00AEEF !important;
  stroke: #00AEEF !important;
}

.desktop-nav-item:hover .desktop-user-avatar,
.desktop-nav-item.active .desktop-user-avatar {
  border-color: #00AEEF !important;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.12) !important;
}

.desktop-sidebar-footer {
  border-top-color: rgba(0, 174, 239, 0.08) !important;
}

.desktop-logo-icon {
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.22) !important;
}

div[style*="width:36px"][style*="height:36px"],
div[style*="width: 36px"][style*="height: 36px"],
div[style*="width:68px"][style*="height:68px"],
div[style*="width: 68px"][style*="height: 68px"],
.premium-icon-box,
.director-icon-box {
  background: #00AEEF !important;
  box-shadow: 0 8px 20px rgba(0, 174, 239, 0.22) !important;
}

div[style*="width:36px"] i,
div[style*="width: 36px"] i,
div[style*="width:68px"] i,
div[style*="width: 68px"] i,
.premium-icon-box i,
.director-icon-box i {
  color: #ffffff !important;
}

div[style*="width:56px"] i,
div[style*="width: 56px"] i {
  color: #00AEEF !important;
}

input:focus,
textarea:focus,
select:focus,
.otp-box.filled,
.otp-box:focus {
  border-color: #00AEEF !important;
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.12) !important;
}

.otp-box.filled {
  background: rgba(0, 174, 239, 0.06) !important;
}

div[style*="position:sticky"],
div[style*="position: sticky"] {
  border-bottom-color: rgba(0, 174, 239, 0.10) !important;
  box-shadow: 0 4px 20px rgba(0, 174, 239, 0.04) !important;
}

.avatar-placeholder {
  background: linear-gradient(135deg, #E8F7FD, #D6F0FC) !important;
  color: #002347 !important;
}

[style*="background:linear-gradient(135deg,#5B21B6"],
[style*="background: linear-gradient(135deg, #5B21B6"],
[style*="background:linear-gradient(135deg,#5B21B6,#7C3AED"] {
  background: #00AEEF !important;
}

[style*="border-top-color:#4F46E5"],
[style*="border-top-color: #4F46E5"],
[style*="border-top-color:#1E40AF"],
[style*="border-top-color: #1E40AF"] {
  border-top-color: #00AEEF !important;
}

.btn-outline {
  border-color: #00AEEF !important;
  color: #00AEEF !important;
}

.btn-outline:hover {
  background: rgba(0, 174, 239, 0.06) !important;
}

[style*="color:#EC4899"],
[style*="color: #EC4899"] {
  color: #002347 !important;
}

[style*="background:linear-gradient(135deg,#3B82F6,#7C3AED)"],
[style*="background: linear-gradient(135deg, #3B82F6, #7C3AED)"] {
  background: #00AEEF !important;
}

/* ============================================================
   PURPLE / INDIGO ELIMINATION — final brand pass
   Catches inline gradients & tints missed above
   ============================================================ */

/* Story rings & purple gradients */
[style*="background:linear-gradient(135deg, #A855F7"],
[style*="background:linear-gradient(135deg,#A855F7"],
[style*="background: linear-gradient(135deg, #A855F7"],
[style*="#A855F7"],
[style*="#a855f7"],
[style*="background:linear-gradient(135deg, #9333EA"],
[style*="background:linear-gradient(135deg,#9333EA"],
[style*="background:linear-gradient(135deg,#4F46E5,#6366F1)"],
[style*="background: linear-gradient(135deg, #4F46E5, #6366F1)"],
[style*="background:linear-gradient(135deg,#6366F1,#4F46E5)"],
[style*="background: linear-gradient(135deg, #6366F1, #4F46E5)"],
[style*="background:linear-gradient(135deg,#6366F1"],
[style*="background: linear-gradient(135deg, #6366F1"],
[style*="background:linear-gradient(135deg,#7C3AED 0%,#6366F1"],
[style*="background:linear-gradient(135deg,#7C3AED,#6D28D9)"],
[style*="background: linear-gradient(135deg, #7C3AED, #6D28D9)"],
[style*="background:linear-gradient(135deg,#4F46E5,#7C3AED)"],
[style*="background: linear-gradient(135deg, #4F46E5, #7C3AED)"],
[style*="background:linear-gradient(135deg,#4F46E5,#6366F1)"],
[style*="background:linear-gradient(135deg,#C026D3"],
[style*="background:linear-gradient(135deg, #C026D3"],
[style*="background:linear-gradient(135deg,#EC4899"],
[style*="background:linear-gradient(135deg, #EC4899"],
[style*="background:linear-gradient(135deg,#5B50F0"],
[style*="background:linear-gradient(135deg, #5B50F0"],
[style*="background:linear-gradient(135deg,#8B5CF6"],
[style*="background:linear-gradient(135deg, #8B5CF6"],
[style*="background:linear-gradient(135deg,#5B21B6"],
[style*="background:linear-gradient(135deg,#D946EF"],
[style*="background:linear-gradient(90deg,#EC4899,#7C3AED)"],
[style*="background: linear-gradient(90deg, #EC4899, #7C3AED)"] {
  background: #00AEEF !important;
}

/* Purple/violet solid backgrounds */
[style*="background:#A855F7"],
[style*="background: #A855F7"],
[style*="background:#9333EA"],
[style*="background: #9333EA"],
[style*="background:#6D28D9"],
[style*="background: #6D28D9"],
[style*="background:#C026D3"],
[style*="background: #C026D3"],
[style*="background:#D946EF"],
[style*="background: #D946EF"],
[style*="background:#DDD6FE"],
[style*="background: #DDD6FE"],
[style*="background:#EDE9FE"],
[style*="background: #EDE9FE"],
[style*="background:#FDF4FF"],
[style*="background: #FDF4FF"] {
  background: rgba(0, 174, 239, 0.12) !important;
}

/* Purple text → navy or cyan */
[style*="color:#A855F7"],
[style*="color: #A855F7"],
[style*="color:#9333EA"],
[style*="color:#6D28D9"],
[style*="color:#C026D3"],
[style*="color:#D946EF"],
[style*="color:#a855f7"] {
  color: #002347 !important;
}

/* Purple/violet tints in borders & shadows */
[style*="border: 1px solid #DDD6FE"],
[style*="border:1px solid #DDD6FE"],
[style*="border: 1.5px solid #7C3AED"],
[style*="border:1.5px solid #7C3AED"],
[style*="border-color:#7C3AED"],
[style*="border-color: #7C3AED"],
[style*="border-color:#A855F7"],
[style*="caret-color:#7C3AED"],
[style*="caret-color: #7C3AED"] {
  border-color: #00AEEF !important;
  caret-color: #00AEEF !important;
}

/* Box-shadows with purple rgba */
[style*="rgba(79,70,229"],
[style*="rgba(99,102,241"],
[style*="rgba(91, 80, 240"],
[style*="rgba(124,58,237"],
[style*="rgba(124, 58, 237"] {
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.18) !important;
}

/* Leaderboard & sidebar purple cards */
[style*="background:linear-gradient(135deg,#5B21B6,#7C3AED 50%,#D946EF"],
[style*="background: linear-gradient(135deg, #5B21B6, #7C3AED 50%, #D946EF"] {
  background: #00AEEF !important;
}

/* Challenge badge purple */
[style*="background:#EDE9FE"],
[style*="background: #EDE9FE"] {
  background: rgba(0, 174, 239, 0.10) !important;
  color: #0095CC !important;
  border-color: rgba(0, 174, 239, 0.20) !important;
}

/* Hover states with lavender bg */
[style*="background='#EEF2FF'"],
[style*="background:#EEF2FF"],
[style*="onmouseover=\"this.style.background='#EEF2FF'\""] {
  /* handled on hover via source; static EEF2FF → pale cyan */
}

[style*="background:#EEF2FF"],
[style*="background: #EEF2FF"] {
  background: #E8F7FD !important;
}

/* Feed layout — View Full Leaderboard link */
[style*="color:#4F46E5"],
[style*="color: #4F46E5"],
a[style*="color:#6366F1"],
button[style*="color:#6366F1"] {
  color: #00AEEF !important;
}

/* Logo header icon box — remove purple shadow */
div[style*="box-shadow: 0 4px 12px rgba(79,70,229"] {
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.22) !important;
}

/* Accent-color on checkboxes */
input[style*="accent-color:#7C3AED"],
input[type="checkbox"] {
  accent-color: #00AEEF !important;
}

.ig-story-creator-text-bg {
  background: linear-gradient(135deg, #00AEEF, #002347) !important;
}

/* ===== Home feed reel player ===== */
.feed-reel-player {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #0F172A;
  font-family: 'Outfit', sans-serif;
}

.feed-reel-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px);
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}

.feed-reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  background: transparent;
}

.feed-reel-vignette-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

.feed-reel-vignette-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 88px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

.feed-reel-overlay-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.feed-reel-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 11px;
  border-radius: 30px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.feed-reel-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  flex-shrink: 0;
}

.feed-reel-top-actions .feed-reel-mute-btn {
  position: static;
  bottom: auto;
  right: auto;
}

.feed-reel-expand-btn {
  pointer-events: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  flex-shrink: 0;
}

.feed-reel-overlay-bottom {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.feed-reel-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 174, 239, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.feed-reel-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 40px);
}

/* When the reel carries a music disc (bottom-right), reserve space so a long
   creator name truncates BEFORE reaching the disc — they never overlap. */
.feed-reel-player:has(.feed-reel-music-disc) .feed-reel-name {
  max-width: calc(100% - 92px);
}

.feed-reel-tap-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
}

.feed-reel-tap-indicator.paused-state {
  opacity: 1;
  animation: none;
}

.feed-reel-tap-ring {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.feed-reel-tap-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #fff;
  position: relative;
  z-index: 2;
}

.feed-reel-tap-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

.feed-reel-tap-indicator.show {
  animation: feedReelTapAnim 0.75s ease forwards;
}

/* Leaderboard hero — protect text from global h1/p dark overrides */
#talent-leaderboard .lb-hero .lb-title,
#talent-leaderboard .lb-hero .lb-subtitle,
#talent-leaderboard .lb-hero .lb-kicker,
#talent-leaderboard .lb-hero .lb-stat-label,
#talent-leaderboard .lb-hero .lb-stat-value,
#talent-leaderboard .lb-hero .lb-tab-btn,
#talent-leaderboard .lb-hero .lb-tab-btn.active,
#talent-leaderboard .lb-hero .lb-back-btn,
#talent-leaderboard .lb-hero .lb-trophy,
#talent-leaderboard .lb-me-label,
#talent-leaderboard .lb-me-rank {
  font-family: 'Outfit', 'DM Sans', sans-serif !important;
}

#talent-leaderboard .lb-hero .lb-title,
#talent-leaderboard .lb-hero .lb-stat-value {
  color: #ffffff !important;
}

#talent-leaderboard .lb-hero .lb-subtitle {
  color: rgba(255, 255, 255, 0.82) !important;
}

#talent-leaderboard .lb-hero .lb-tab-btn {
  color: rgba(255, 255, 255, 0.78) !important;
}

#talent-leaderboard .lb-hero .lb-tab-btn.active {
  color: #ffffff !important;
}

.feed-reel-mute-btn {
  position: absolute;
  bottom: 52px;
  right: 12px;
  z-index: 6;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  pointer-events: auto;
  transition: transform 0.2s ease, background 0.2s ease;
}

.feed-reel-mute-btn:hover {
  background: rgba(0, 0, 0, 0.65);
}

.feed-reel-mute-btn.feed-reel-mute-pulse {
  transform: scale(1.08);
}

.feed-reel-mute-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-reel-mute-icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

@keyframes feedReelTapAnim {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  25%  { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  75%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
}

/* Home feed reel — desktop card sizing */
@media (min-width: 768px) {
  .feed-reel-media {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 9 / 16;
    display: block;
    border-radius: 14px;
    box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.1);
  }
}

/* Sidebar actions — hidden on desktop, shown on mobile via mobile-responsive.css */
.feed-reel-sidebar {
  display: none;
}

.feed-reel-sidebar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.feed-reel-sidebar-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.45));
}

.feed-reel-sidebar-btn svg {
  width: 26px;
  height: 26px;
  display: block;
}

.feed-reel-sidebar-count {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  line-height: 1.2;
}

.feed-reel-sidebar-btn.liked {
  color: #ff3040;
}

.feed-reel-sidebar-btn.saved {
  color: #fff;
}

/* Home feed reel — desktop: hide mobile video profile overlay */
@media (min-width: 768px) {
  .feed-reel-profile-overlay {
    display: none;
  }

  .feed-post-card-reel .feed-reel-post-header-desktop {
    display: flex !important;
    padding: 12px 16px 8px;
    margin-bottom: 0 !important;
  }

  .feed-post-card-reel .feed-reel-mobile-actions {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 4px !important;
  }

  .feed-post-card-reel .feed-reel-stats-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 4px 16px 6px;
    font-size: 13px;
    font-weight: 700;
    color: #262626;
  }

  .feed-post-card-reel .feed-reel-action-spacer {
    flex: 1;
  }
}

.feed-post-icons-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

/* Base styling for reel action icons (like/comment/share/save) — always applies; mobile media query refines sizing */
.feed-reel-action-btn {
  border: none;
  background: transparent;
  color: #262626;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.feed-reel-action-btn .reel-svg-icon,
.feed-reel-action-btn i {
  display: block;
  color: inherit;
  stroke: currentColor;
  fill: none;
}
.feed-reel-action-btn.liked,
.feed-reel-action-btn.saved {
  color: #ff3040;
}
.reel-svg-filled {
  fill: currentColor;
}
.feed-reel-stats-dot {
  color: #94A3B8;
  font-weight: 700;
}

/* Caption — Instagram-like contrast on white cards (home, reel cards, detail) */
.feed-post-caption {
  font-size: 14px;
  color: #262626;
  line-height: 1.5;
  font-family: 'DM Sans', sans-serif;
  display: block;
  padding: 6px 0 0;
  margin: 0;
}
.feed-post-card-reel .feed-post-caption {
  padding: 4px 16px 0;
}
.feed-caption-username {
  font-weight: 800;
  color: #262626;
  margin-right: 6px;
  display: inline;
}
.feed-caption-text,
.caption-short,
.caption-full {
  color: #262626;
  font-weight: 400;
  display: inline;
  white-space: pre-wrap;
}
.caption-more-btn {
  color: #737373;
  font-weight: 600;
  cursor: pointer;
  display: inline;
  margin-left: 3px;
}

/* Collab pill — highlighted, on-brand accent so it reads as a distinct
   tag rather than blending into the plain-gray caption metadata */
.feed-collab-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--brand-cyan-light, #E8F7FD);
  border: 1px solid rgba(0, 174, 239, 0.35);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11.5px;
  color: var(--brand-navy, #002347);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  margin-top: 10px;
  box-shadow: 0 1px 4px rgba(0, 174, 239, 0.12);
}
.feed-post-card-reel .feed-collab-pill {
  margin-left: 16px;
  margin-right: 16px;
}
.feed-collab-pill i {
  color: var(--brand-cyan, #00AEEF);
  font-size: 13px;
}
.feed-collab-name {
  color: var(--brand-navy, #002347);
  font-weight: 800;
}

/* Hashtag chips — hidden until the caption is expanded via "more"
   (feed-hashtag-row--collapsed), shown immediately when the caption
   never needed truncation in the first place. */
.feed-hashtag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.feed-hashtag-row--collapsed {
  display: none;
}
.feed-post-card-reel .feed-hashtag-row {
  margin-left: 16px;
  margin-right: 16px;
  margin-bottom: 4px;
}
.feed-hashtag-chip {
  font-size: 11px;
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #DBEAFE;
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
  transition: opacity 0.15s ease;
}
.feed-hashtag-chip:hover {
  opacity: 0.8;
}

/* Thoughts — fixed-size premium text card, used in the home feed and the
   profile Thoughts tab (same component, via window.renderThoughtCard).
   Height is a true fixed value (not min-height) so every card in a feed
   is pixel-identical regardless of text length; the 280-char cap combined
   with this font/line-height budget is what guarantees no overflow. */
.ag-thought-card {
  position: relative;
  width: 100%;
  height: 220px;
  background: linear-gradient(165deg, #FFFFFF 0%, var(--brand-cyan-light, #E8F7FD) 140%);
  border: 1px solid rgba(0, 174, 239, 0.18);
  border-radius: 18px;
  padding: 28px 24px 22px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 35, 71, 0.05);
  overflow: hidden;
}
.ag-thought-card-mark {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 22px;
  color: rgba(0, 174, 239, 0.25);
  line-height: 1;
}
.ag-thought-card-text {
  margin: 0;
  width: 100%;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--brand-navy, #002347);
  text-align: center;
  word-break: break-word;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.ag-thought-tab-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  margin-bottom: 16px;
  border: none;
  border-radius: 14px;
  background: #00AEEF;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 174, 239, 0.25);
}

/* Thoughts tab grid — compact square tiles, Instagram-grid style, matching
   .ag-profile-posts-grid's 3-column layout so Posts/Reels/Thoughts feel consistent. */
.ag-thought-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.ag-thought-grid-tile {
  position: relative;
  aspect-ratio: 1;
  border: none;
  border-radius: 10px;
  background: linear-gradient(165deg, #FFFFFF 0%, var(--brand-cyan-light, #E8F7FD) 140%);
  border: 1px solid rgba(0, 174, 239, 0.18);
  padding: 12px 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  font-family: inherit;
}
.ag-thought-grid-tile-mark {
  font-size: 14px;
  color: rgba(0, 174, 239, 0.35);
  align-self: flex-start;
  margin-bottom: 4px;
}
.ag-thought-grid-tile-text {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--brand-navy, #002347);
  text-align: center;
  word-break: break-word;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ag-thought-grid-tile-stats {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--brand-cyan-dark, #0095CC);
}
.ag-thought-grid-tile-stats i {
  font-size: 10px;
  margin-right: 2px;
}

/* Thought detail modal — full text + real like/comment/share/save actions */
.ag-thought-detail {
  padding: 16px;
  font-family: 'DM Sans', sans-serif;
  max-width: 380px;
}
.ag-thought-detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ag-thought-detail-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
}
.ag-thought-detail-header-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ag-thought-detail-name {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  font-family: 'Outfit', sans-serif;
}
.ag-thought-detail-time {
  font-size: 11px;
  color: #94A3B8;
}
.ag-thought-detail-close {
  background: #F1F5F9;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  flex-shrink: 0;
}
.ag-thought-detail-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
}
.ag-thought-detail-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
}
.ag-thought-detail-action-btn i {
  font-size: 20px;
}
.ag-thought-detail-action-btn--save {
  margin-left: auto;
}

/* Desktop: give the reel action icons explicit size (mobile gets its own sizing from mobile-responsive.css) */
@media (min-width: 768px) {
  .feed-reel-action-btn {
    width: 40px;
    height: 40px;
  }
  .feed-reel-action-btn .reel-svg-icon,
  .feed-reel-action-btn i {
    width: 24px;
    height: 24px;
    font-size: 24px;
    line-height: 1;
  }
}

/* Subscription hero — force readable white text on navy/cyan gradient */
.set-plan-hero,
.set-plan-hero .set-plan-title,
.set-plan-hero .set-plan-price,
.set-plan-hero .set-plan-period,
.set-plan-hero .set-plan-meta,
.set-plan-hero .set-plan-hero-label {
  color: #ffffff !important;
}

.set-plan-badge {
  color: #002347 !important;
}

/* Match Insights — protect hero text from global dark heading overrides */
#smart-match-insights .mi-hero-role,
#smart-match-insights .mi-hero-company,
#smart-match-insights .mi-ring-pct {
  color: #ffffff !important;
}

#smart-match-insights .mi-hero-badge {
  color: #FFC107 !important;
}

#smart-match-insights .mi-ring-txt {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* Reel video-preview card (light frosted-glass) — protect the blue-accented
   format chips and trust tagline from the global dark heading override
   ([style*="font-weight:800/700"] would otherwise force them to near-black
   instead of the intended brand-blue accent). */
.ctr-preview-card #reel-upload-overlay > div:nth-of-type(5) span,
.ctr-preview-card #reel-upload-overlay > div:last-of-type {
  color: #0072B5 !important;
}

/* Publish-success screen — light frosted-blue brand design. Pin the exact
   text/button colours so the global h1/[font-weight:700/800] dark-navy override
   and the desktop white-text rules can't wash them out on the light card. */
.success-card .success-title {
  color: #002347 !important;
}

.success-card .success-subtitle {
  color: #475569 !important;
}

.success-card .success-btn-primary {
  color: #ffffff !important;
}

.success-card .success-btn-outline {
  color: #0095CC !important;
}

.success-card .success-btn-ghost {
  color: #64748B !important;
}

/* Keep the light frosted-blue backdrop on DESKTOP too. On >=768px,
   design-system.css forces every screen's first child div to
   `background: transparent`, which would strip the .success-bg gradient and
   show a flat page behind it. Re-assert the brand light gradient for this one
   screen so it matches the rest of the site on both mobile and desktop. */
@media (min-width: 768px) {
  #publish-success.active-screen,
  #publish-success.screen {
    background: linear-gradient(165deg, #F0FAFF 0%, #E8F7FD 45%, #F8FCFF 100%) !important;
  }
  #publish-success .success-bg {
    background: linear-gradient(165deg, #F0FAFF 0%, #E8F7FD 45%, #F8FCFF 100%) !important;
  }
}
