/* ============================================
   ACTGRAM V2 - DESIGN SYSTEM
   Premium Light Theme | DM Sans | Tabler Icons
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400;1,9..40,500&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */
:root {
  /* ACTGRAM Brand — Vibrant Cyan + Deep Navy + Accent Yellow */
  --brand-cyan: #00AEEF;
  --brand-cyan-light: #E8F7FD;
  --brand-cyan-mid: #33BFEF;
  --brand-cyan-dark: #0095CC;
  --brand-navy: #002347;
  --brand-navy-mid: #003566;
  --brand-navy-dark: #001A33;
  --brand-yellow: #FFC107;
  --brand-yellow-light: rgba(255, 193, 7, 0.12);

  /* Primary Colors — Brand Cyan */
  --royal-blue: #00AEEF;
  --royal-blue-light: rgba(0, 174, 239, 0.08);
  --royal-blue-mid: #33BFEF;
  --royal-blue-dark: #002347;
  --royal-blue-hover: #0095CC;

  /* Secondary Colors — Brand Navy */
  --soft-violet: #002347;
  --soft-violet-light: rgba(0, 35, 71, 0.08);
  --soft-violet-mid: #003566;
  --soft-violet-dark: #001A33;

  /* Status Colors - High-Trust Safe Casting Emerald Teal & Coral Red */
  --emerald: #10B981;
  --emerald-light: rgba(16, 185, 129, 0.08);
  --emerald-mid: #34D399;
  --amber: #F59E0B;
  --amber-light: rgba(245, 158, 11, 0.08);
  --amber-mid: #FBBF24;
  --soft-red: #EF4444;
  --soft-red-light: rgba(239, 68, 68, 0.08);
  --soft-red-mid: #F87171;

  /* Neutrals - Clean Silky White & Soft Pearl Gray */
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-2: #F1F5F9;
  --border: rgba(0, 174, 239, 0.10);
  --border-light: rgba(0, 174, 239, 0.05);

  /* Text - Obsidian Charcoal & Elegant Mist */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-disabled: #94A3B8;

  /* Gradients — Brand Cyan & Navy */
  --gradient-primary: #00AEEF;
  --gradient-premium: #00AEEF;
  --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --gradient-amber: linear-gradient(135deg, #FFC107 0%, #F59E0B 100%);
  --gradient-hero: linear-gradient(165deg, #F0FAFF 0%, #E8F7FD 45%, #F8FCFF 100%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);

  /* Shadows - Delicate Ambient Glows */
  --shadow-xs: 0 1px 2px rgba(0, 35, 71, 0.04);
  --shadow-sm: 0 4px 12px rgba(0, 174, 239, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 174, 239, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 35, 71, 0.08);
  --shadow-xl: 0 24px 60px rgba(0, 35, 71, 0.10);
  --shadow-blue: 0 8px 20px rgba(0, 174, 239, 0.20);
  --shadow-violet: 0 8px 20px rgba(0, 35, 71, 0.15);

  /* Typography Scale - outfit for heads, Jakarta for text */
  --font-family: 'Plus Jakarta Sans', 'Outfit', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --text-4xl: 34px;
  --text-5xl: 42px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Z-Index */
  --z-base: 1;
  --z-elevated: 10;
  --z-overlay: 100;
  --z-modal: 200;
  --z-toast: 300;
  --z-max: 9999;

  /* App Shell */
  --nav-height: 64px;
  --tab-bar-height: 72px;
  --header-height: 56px;
  --app-max-width: 100%;
}

/* ============================================
   CSS RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--off-white);
  line-height: 1.5;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App Container */
#app {
  max-width: var(--app-max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
  line-height: 1.6;
  color: var(--text-secondary);
}

a {
  color: var(--royal-blue);
  text-decoration: none;
  cursor: pointer;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Text */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-blue { color: var(--royal-blue); }
.text-violet { color: var(--soft-violet); }
.text-emerald { color: var(--emerald); }
.text-amber { color: var(--amber); }
.text-red { color: var(--soft-red); }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-md { font-size: var(--text-md); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Layout */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.flex-wrap { flex-wrap: wrap; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Spacing */
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }

.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* Backgrounds */
.bg-white { background: var(--white); }
.bg-surface { background: var(--surface); }
.bg-off-white { background: var(--off-white); }
.bg-blue { background: var(--royal-blue); }
.bg-gradient { background: var(--gradient-primary); }

/* Borders */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.border { border: 1px solid var(--border); }
.border-blue { border: 1px solid var(--royal-blue-light); }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Display */
.hidden { display: none !important; }
.block { display: block; }
.inline-flex { display: inline-flex; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Other */
.cursor-pointer { cursor: pointer; }
.pointer-events-none { pointer-events: none; }
.select-none { user-select: none; }
.transition { transition: all var(--transition-base); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================
   BADGE COMPONENT
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-blue { background: var(--royal-blue-light); color: var(--royal-blue); }
.badge-violet { background: var(--soft-violet-light); color: var(--soft-violet); }
.badge-emerald { background: var(--emerald-light); color: var(--emerald); }
.badge-amber { background: var(--amber-light); color: var(--amber); }
.badge-red { background: var(--soft-red-light); color: var(--soft-red); }
.badge-gray { background: var(--surface); color: var(--text-secondary); }

/* ============================================
   AVATAR COMPONENT
   ============================================ */
.avatar {
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-xs { width: 28px; height: 28px; }
.avatar-sm { width: 36px; height: 36px; }
.avatar-md { width: 44px; height: 44px; }
.avatar-lg { width: 56px; height: 56px; }
.avatar-xl { width: 72px; height: 72px; }
.avatar-2xl { width: 96px; height: 96px; }
.avatar-3xl { width: 120px; height: 120px; }

.avatar-ring { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--royal-blue); }
.avatar-ring-gradient { box-shadow: 0 0 0 2px var(--white); outline: 2px solid; outline-offset: 2px; outline-color: var(--royal-blue); }

/* Story ring */
.story-ring {
  padding: 2px;
  background: #00AEEF;
  border-radius: var(--radius-full);
}

.story-ring-inner {
  padding: 2px;
  background: var(--white);
  border-radius: var(--radius-full);
  overflow: hidden;
}

/* ============================================
   CHIP / TAG COMPONENT
   ============================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  white-space: nowrap;
}

.chip:hover { border-color: var(--royal-blue); color: var(--royal-blue); }
.chip.active { background: var(--royal-blue-light); border-color: var(--royal-blue); color: var(--royal-blue); }

/* ============================================
   DIVIDER
   ============================================ */
.divider {
  height: 1px;
  background: var(--border-light);
  width: 100%;
}

.divider-thick {
  height: 8px;
  background: var(--surface);
  width: 100%;
}

/* ============================================
   SCROLLBAR STYLES
   ============================================ */
::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

/* ============================================
   SCREEN TRANSITIONS
   ============================================ */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transition: transform var(--transition-base), opacity var(--transition-base);
  will-change: transform;
}

.screen.entering {
  animation: slideInRight 250ms ease forwards;
}

.screen.exiting {
  animation: slideOutLeft 250ms ease forwards;
}

.screen.entering-back {
  animation: slideInLeft 250ms ease forwards;
}

.screen.exiting-back {
  animation: slideOutRight 250ms ease forwards;
}

.screen.fade-entering {
  animation: fadeIn 300ms ease forwards;
}

/* Signup + choose-username: fixed viewport */
#signup.active-screen,
#choose-username.active-screen {
  overflow: hidden !important;
  overflow-y: hidden !important;
}
#signup.active-screen .auth-page,
#choose-username.active-screen .un-page {
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

/* ── MOBILE FIX: the signup form must scroll the WHOLE screen so the fields
   below the fold (Set Password, Terms, Create Account button) are reachable.
   The desktop split keeps a fixed page + inner-scrolling .su-form-side, but on
   mobile the .su-form-side wrapper (added for the split) isn't set to scroll,
   so the base overflow:hidden above clipped the tall form. Below 768px we let
   the screen scroll naturally and drop the viewport-height caps. Scoped to
   mobile only — desktop is unchanged. ── */
@media (max-width: 767px) {
  #signup.active-screen {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    display: block !important;
  }
  #signup.active-screen .auth-page {
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    overflow: visible !important;
  }
  /* The split wrapper + form side flow naturally (no inner scroll trap). */
  #signup .auth-page.su-split { height: auto !important; overflow: visible !important; }
  #signup .su-form-side {
    height: auto !important;
    overflow: visible !important;
    display: block !important;
  }
  #signup .su-form-side .auth-main {
    overflow: visible !important;
    min-height: 0 !important;
    height: auto !important;
  }
  /* Submit footer flows after the form (not pinned/clipped). */
  #signup .su-form-side .auth-footer {
    position: static !important;
  }
}

/* Role selection + profile-setup steps 1-4 (incl. verification): scrollable content */
#role-selection.active-screen,
#profile-setup-1.active-screen,
#profile-setup-2.active-screen,
#profile-setup-3.active-screen,
#profile-work-portfolio.active-screen {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
#role-selection.active-screen .rs-page,
#profile-setup-1.active-screen .ob-page,
#profile-setup-2.active-screen .ob-page,
#profile-setup-3.active-screen .ob-page,
#profile-work-portfolio.active-screen .ob-page {
  width: 100%;
  min-height: 100%;
}

#welcome.active-screen {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
#welcome.active-screen .wc-page {
  min-height: 100vh !important;
  min-height: 100dvh !important;
  width: 100% !important;
}

#splash:not(.active-screen) {
  display: none !important;
}

#splash.active-screen {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  position: relative !important;
}

#splash.active-screen .splash-logo-container {
  min-height: auto !important;
  width: auto !important;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slideOutLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-30%); opacity: 0.5; }
}

@keyframes slideInLeft {
  from { transform: translateX(-30%); opacity: 0.5; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes slideDown {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.15); }
  50% { transform: scale(1); }
  75% { transform: scale(1.1); }
}

@keyframes confetti {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ============================================
   LOADING SKELETON
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--border-light) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* Image placeholder shimmer while a feed image decodes. Removed by the img's
   onload; finite iteration count is a safety net so it can never animate
   forever. Matches the existing skeleton palette — no layout shift (the
   wrapper already fills its fixed-aspect media container). */
.ag-media-loading {
  background: linear-gradient(90deg, #F1F5F9 25%, #E5EBF1 50%, #F1F5F9 75%) !important;
  background-size: 200% 100% !important;
  animation: shimmer 1.5s 20;
}

/* ============================================
   INPUT STYLES
   ============================================ */
.input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  transition: all var(--transition-fast);
  appearance: none;
}

.input:focus {
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.10);
}

.input::placeholder { color: var(--text-muted); }

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.input-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.input-icon-left {
  position: relative;
}

.input-icon-left .input {
  padding-left: 44px;
}

.input-icon-left .icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

textarea.input {
  resize: none;
  min-height: 100px;
}

/* Select */
select.input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--royal-blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover { background: var(--royal-blue-hover); }

.btn-gradient {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-gradient:hover { opacity: 0.92; }

.btn-violet {
  background: var(--soft-violet);
  color: var(--white);
  box-shadow: var(--shadow-violet);
}

.btn-outline {
  background: var(--white);
  color: var(--royal-blue);
  border: 1.5px solid var(--royal-blue);
}

.btn-outline:hover { background: var(--royal-blue-light); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover { background: var(--surface); }

.btn-danger {
  background: var(--soft-red);
  color: var(--white);
}

.btn-success {
  background: var(--emerald);
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

.btn-xl {
  padding: 18px 36px;
  font-size: var(--text-xl);
  border-radius: var(--radius-lg);
}

.btn-full { width: 100%; }

.btn-icon {
  padding: 10px;
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-icon:hover { background: var(--border); }
.btn-icon:active { transform: scale(0.93); }

/* Ripple effect */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s, opacity 0.4s;
  opacity: 0;
}

.btn:active::after {
  width: 200px;
  height: 200px;
  opacity: 0;
}

/* ============================================
   CARD STYLES
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:active { transform: scale(0.98); }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body { padding: var(--space-5); }
.card-footer {
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ============================================
   APP BAR / HEADER
   ============================================ */
.app-bar {
  position: sticky;
  top: 0;
  z-index: var(--z-elevated);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  gap: var(--space-3);
}

.app-bar-title {
  flex: 1;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.app-bar-logo {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   BOTTOM TAB BAR
   ============================================ */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max-width);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-light);
  height: var(--tab-bar-height);
  display: flex;
  align-items: center;
  z-index: var(--z-overlay);
  padding: 0 var(--space-2);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  color: var(--text-muted);
  position: relative;
}

.tab-item:active { transform: scale(0.92); }

.tab-item.active { color: var(--royal-blue); }

.tab-item svg { width: 24px; height: 24px; }

.tab-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tab-indicator {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--royal-blue);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.tab-item.active .tab-indicator { opacity: 1; }

/* FAB Tab */
.tab-fab {
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-blue);
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition-spring);
  margin-bottom: 8px;
}

.tab-fab:active { transform: scale(0.93); }

/* ============================================
   BOTTOM SHEET
   ============================================ */
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.40);
  z-index: 3100;
  display: flex;
  align-items: flex-end;
  animation: fadeIn 200ms ease;
}

.bottom-sheet {
  width: 100%;
  max-width: var(--app-max-width);
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  /* Resting position is fixed at translateY(0) so the sheet is ALWAYS on-screen
     regardless of whether the entrance animation runs. Without this base
     transform + fill-mode, a skipped/interrupted animation (reduced-motion,
     backgrounded tab, dropped frame) could leave the sheet stuck at the
     slideUp `from` keyframe (translateY(100%)) — pushing it below the viewport
     and making the close button physically unclickable. */
  transform: translateY(0);
  animation: slideUp 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  padding-bottom: env(safe-area-inset-bottom, 20px);
  max-height: 92vh;
  overflow-y: auto;
}

/* Respect reduced-motion: skip the slide entrance entirely and render the
   sheet in its final on-screen position. Prevents the interrupted-animation
   off-screen state for users who disable motion. */
@media (prefers-reduced-motion: reduce) {
  .bottom-sheet {
    animation: none;
    transform: translateY(0);
  }
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  margin: 12px auto 0;
}

.bottom-sheet-header {
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

.bottom-sheet-title {
  font-size: var(--text-lg);
  font-weight: 700;
}

/* ============================================
   MODAL OVERLAY
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  animation: fadeIn 200ms ease;
}

.modal {
  width: 100%;
  max-width: 360px;
  background: var(--white);
  border-radius: var(--radius-2xl);
  animation: popIn 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.modal-header {
  padding: var(--space-6) var(--space-6) var(--space-4);
  text-align: center;
}

.modal-body {
  padding: var(--space-4) var(--space-6);
}

.modal-footer {
  padding: var(--space-4) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-container {
  position: fixed;
  top: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 380px;
}

.toast {
  background: var(--text-primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-xl);
  animation: slideDown 300ms ease;
  pointer-events: all;
  touch-action: pan-y;
  will-change: transform, opacity;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.toast-success { background: var(--emerald); }
.toast-error { background: var(--soft-red); }
.toast-warning { background: var(--amber); color: var(--text-primary); }
.toast-info { background: var(--royal-blue); }

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--surface);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  transition: width var(--transition-slow);
}

/* Step indicator */
.step-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border);
  transition: all var(--transition-base);
}

.step-dot.active {
  width: 24px;
  background: var(--royal-blue);
}

/* ============================================
   VERIFICATION BADGE
   ============================================ */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--royal-blue);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.verified-badge svg {
  width: 10px;
  height: 10px;
  color: white;
}

/* ============================================
   STAT ITEM
   ============================================ */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-value {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   HEAT SCORE WIDGET
   ============================================ */
.heat-score {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--amber-light);
  border-radius: var(--radius-full);
}

.heat-score-value {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--amber);
}

/* ============================================
   MATCH SCORE RING
   ============================================ */
.match-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(var(--emerald) var(--pct, 0%), var(--emerald-light) 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.match-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--white);
  border-radius: 50%;
}

.match-ring-value {
  position: relative;
  z-index: 1;
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--emerald);
}

/* ============================================
   SWIPE CARD
   ============================================ */
.swipe-card-stack {
  position: relative;
  width: 100%;
  height: 480px;
  user-select: none;
}

.swipe-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-lg);
}

.swipe-card:active { cursor: grabbing; }

.swipe-card.is-dragging {
  transition: none !important;
  cursor: grabbing;
}

.swipe-card.is-dragging:hover {
  transform: none !important;
}

.swipe-card:nth-child(2) {
  transform: scale(0.95) translateY(12px);
  z-index: 0;
}

.swipe-card:nth-child(3) {
  transform: scale(0.90) translateY(24px);
  z-index: -1;
}

.swipe-card:first-child { z-index: 10; }

/* Like/Nope labels */
.swipe-label {
  position: absolute;
  top: 40px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  border: 4px solid;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity 0.1s;
  transform: rotate(-10deg);
}

.swipe-label-like {
  left: 20px;
  color: var(--emerald);
  border-color: var(--emerald);
  transform: rotate(-10deg);
}

.swipe-label-nope {
  right: 20px;
  color: var(--soft-red);
  border-color: var(--soft-red);
  transform: rotate(10deg);
}

/* ============================================
   STORY PROGRESS
   ============================================ */
.story-progress {
  display: flex;
  gap: 3px;
  padding: 12px 16px;
}

.story-progress-bar {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.story-progress-fill {
  height: 100%;
  background: var(--white);
  width: 0%;
  transition: width linear;
}

.story-progress-fill.complete { width: 100%; }
.story-progress-fill.active { animation: storyProgress 5s linear forwards; }

@keyframes storyProgress {
  from { width: 0%; }
  to { width: 100%; }
}

/* ============================================
   CHART STYLES
   ============================================ */
.chart-container {
  position: relative;
  width: 100%;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
}

.bar-chart-bar {
  flex: 1;
  background: var(--royal-blue-light);
  border-radius: 4px 4px 0 0;
  transition: height 0.6s ease;
  position: relative;
  cursor: pointer;
}

.bar-chart-bar.active { background: var(--royal-blue); }
.bar-chart-bar:hover { background: var(--royal-blue); }

/* ============================================
   NOTIFICATION DOT
   ============================================ */
.notif-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--soft-red);
  border-radius: 50%;
  border: 2px solid var(--white);
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--soft-red);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  padding: 0 4px;
}

/* ============================================
   PAGE CONTENT
   ============================================ */
.page-content {
  padding: 0;
  padding-bottom: calc(var(--tab-bar-height) + 20px);
}

.section {
  padding: var(--space-5) var(--space-4);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.section-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--royal-blue);
  cursor: pointer;
}

/* ============================================
   HORIZONTAL SCROLL
   ============================================ */
.scroll-x {
  display: flex;
  overflow-x: auto;
  gap: var(--space-3);
  padding: 0 var(--space-4);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.scroll-x > * { scroll-snap-align: start; }

/* ============================================
   COUNTDOWN TIMER
   ============================================ */
.countdown {
  display: flex;
  align-items: center;
  gap: 4px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-value {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--soft-red);
  line-height: 1;
  min-width: 32px;
  text-align: center;
}

.countdown-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown-sep {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--soft-red);
  margin-bottom: 14px;
}

/* ============================================
   VOICE WAVE
   ============================================ */
.voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 40px;
}

.voice-bar {
  width: 3px;
  border-radius: var(--radius-full);
  background: var(--royal-blue);
  animation: voiceWave 0.8s ease infinite;
}

.voice-bar:nth-child(2) { animation-delay: 0.1s; }
.voice-bar:nth-child(3) { animation-delay: 0.2s; }
.voice-bar:nth-child(4) { animation-delay: 0.3s; }
.voice-bar:nth-child(5) { animation-delay: 0.4s; }
.voice-bar:nth-child(6) { animation-delay: 0.3s; }
.voice-bar:nth-child(7) { animation-delay: 0.2s; }
.voice-bar:nth-child(8) { animation-delay: 0.1s; }

@keyframes voiceWave {
  0%, 100% { height: 8px; }
  50% { height: 32px; }
}

/* ============================================
   LIST ITEM
   ============================================ */
.list-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.list-item:active { background: var(--surface); }
.list-item:last-child { border-bottom: none; }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
  text-align: center;
  gap: var(--space-4);
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  background: var(--surface);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.empty-state-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.empty-state-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 240px;
  line-height: 1.6;
}

/* ============================================
   SAFETY ELEMENTS
   ============================================ */
.safety-banner {
  background: linear-gradient(135deg, var(--soft-red-light), var(--amber-light));
  border: 1px solid var(--soft-red-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.emergency-btn {
  background: var(--soft-red);
  color: var(--white);
  border-radius: var(--radius-full);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  animation: emergencyPulse 2s infinite;
}

@keyframes emergencyPulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* ============================================
   TOGGLE SWITCH
   ============================================ */
.toggle {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.toggle input:checked + .toggle-slider { background: var(--royal-blue); }
.toggle input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ============================================
   RATING STARS
   ============================================ */
.stars {
  display: flex;
  gap: 2px;
  color: var(--amber);
}

.stars svg { width: 16px; height: 16px; }

/* ============================================
   MEDIA CARD
   ============================================ */
.media-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: var(--surface);
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
}

/* ============================================
   CHAT BUBBLE
   ============================================ */
.chat-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: var(--text-base);
  line-height: 1.5;
  position: relative;
}

.chat-bubble-sent {
  background: var(--royal-blue);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-bubble-received {
  background: var(--surface);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-time {
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

.chat-time-sent { color: rgba(255,255,255,0.7); }

/* ============================================
   LEADERBOARD
   ============================================ */
.leaderboard-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-light);
}

.rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 800;
  flex-shrink: 0;
}

.rank-1 { background: #FFD700; color: #7A5A00; }
.rank-2 { background: #C0C0C0; color: #505050; }
.rank-3 { background: #CD7F32; color: #5A3000; }
.rank-other { background: var(--surface); color: var(--text-secondary); }

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton-text {
  height: 14px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--border-light) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-full);
}

.skeleton-avatar {
  border-radius: 50%;
  background: linear-gradient(90deg, var(--surface) 25%, var(--border-light) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-card {
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, var(--surface) 25%, var(--border-light) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ============================================
   CONFETTI
   ============================================ */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confetti 3s ease forwards;
  z-index: var(--z-max);
  pointer-events: none;
}

/* ============================================
   RESPONSIVE BREAKPOINTS — MOBILE ONLY ADJUSTMENTS
   ============================================ */
@media (max-width: 767px) {
  #app {
    max-width: 100%;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    box-shadow: none;
  }

  .screen.active-screen {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================
   ACTGRAM V2 - PREMIUM SILK-LIGHT OVERRIDES
   ============================================ */

/* Typography Scaling and Font Weights */
h1, h2, h3, h4, h5, h6, 
[style*="font-weight:800"], 
[style*="font-weight:700"],
[style*="font-weight: 900"],
.font-bold,
.font-extrabold {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
  letter-spacing: -0.025em !important;
  color: var(--text-primary) !important;
}

body, p, span, div, input, textarea, button, select {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  letter-spacing: -0.01em;
}

/* ============================================
   GLOBAL DARK-TO-LIGHT STYLE CONVERSIONS
   ============================================ */

/* 1. Ensure clean silky white elements for surfaces */
[style*="background:#0C1A15"],
[style*="background: #0C1A15"],
[style*="background:#0c1a15"],
.bg-white {
  background: var(--white) !important;
}

/* 2. Global Page Backgrounds to Pearl Grey */
[style*="background:#040D0A"],
[style*="background: #040D0A"],
[style*="background:#040d0a"],
.bg-off-white,
.bg-surface {
  background: var(--off-white) !important;
}

/* 3. Global Text Primary to Deep Navy Slate */
[style*="color:#FAF8F5"],
[style*="color: #FAF8F5"],
[style*="color:#faf8f5"],
.text-primary {
  color: var(--text-primary) !important;
}

/* 4. Global Text Secondary to Slate Grey */
[style*="color:#CBD5E1"],
[style*="color: #CBD5E1"],
[style*="color:#cbd5e1"],
.text-secondary {
  color: var(--text-secondary) !important;
}

[style*="color:#8E9A96"],
[style*="color: #8E9A96"],
.text-muted {
  color: var(--text-muted) !important;
}

/* ============================================
   GLASSMORPHISM & LAYERS OVERRIDES
   ============================================ */

/* Glassmorphic Sticky Headers */
[style*="position:sticky;top:0"], 
[style*="position: sticky; top: 0"],
[style*="position:sticky; top:0"],
[id*="sticky-header"],
.bottom-sheet-header {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1.5px solid var(--border) !important;
  color: var(--text-primary) !important;
}

/* Premium Navigation & Tab Bar */
#tab-bar {
  background: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-top: 1.5px solid var(--border) !important;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.04) !important;
}

.tab-item {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.tab-item.active {
  color: var(--royal-blue) !important;
}

.tab-item.active i {
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.15));
}

.tab-fab {
  background: var(--gradient-primary) !important;
  box-shadow: var(--shadow-blue) !important;
  color: white !important;
  transition: var(--transition-spring) !important;
}

.tab-fab:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2) !important;
}

/* Modals & Bottom Sheets */
.bottom-sheet-overlay,
.modal-overlay {
  background: rgba(15, 23, 42, 0.4) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.bottom-sheet, .modal {
  background: var(--white) !important;
  color: var(--text-primary) !important;
  border: 1.5px solid var(--border) !important;
  box-shadow: var(--shadow-xl) !important;
}

.bottom-sheet-handle {
  background: rgba(15, 23, 42, 0.1) !important;
}

/* Premium Buttons & Call to Actions */
button[style*="background:linear-gradient"],
button[style*="background: linear-gradient"],
.btn-primary,
[style*="background:#E5A85C"],
[style*="background: #E5A85C"],
[style*="background:#1E40AF"],
[style*="background: #1E40AF"] {
  background: var(--gradient-primary) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: var(--shadow-blue) !important;
  border: none !important;
}

button[style*="background:linear-gradient"]:hover,
button[style*="background: linear-gradient"]:hover,
[style*="background:#E5A85C"]:hover,
[style*="background: #E5A85C"]:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15) !important;
}

button:active, 
.btn:active,
[onclick]:active {
  transform: scale(0.96) !important;
}

/* Dynamic Card Hover Elevations */
[style*="box-shadow:0 2px 8px rgba(0,0,0,0.05)"],
[style*="box-shadow: 0 2px 8px rgba(0,0,0,0.05)"],
[style*="box-shadow:0 4px 16px rgba(0,0,0,0.08)"],
.swipe-card,
.list-item,
[onclick*="Router.go"] {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

[style*="box-shadow:0 2px 8px rgba(0,0,0,0.05)"]:hover,
[style*="box-shadow: 0 2px 8px rgba(0,0,0,0.05)"]:hover,
[style*="box-shadow:0 4px 16px rgba(0,0,0,0.08)"]:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-lg) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

/* Trust Elements & Verification Shields */
[style*="background:#1E40AF"][style*="border-radius:50%"],
[style*="background: #1E40AF"][style*="border-radius:50%"] {
  background: var(--royal-blue) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1) !important;
}

/* Inputs, Textareas and Dropdowns */
input, textarea, select {
  background: var(--white) !important;
  color: var(--text-primary) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 12px !important;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--royal-blue) !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
}

/* General Layout Cleanups */
.screen {
  background: var(--off-white) !important;
}

/* Interactive Pill Toggles */
.toggle-slider {
  box-shadow: inset 0 2px 4px rgba(15,23,42,0.1) !important;
}

/* Verification list borders */
[style*="border:1.5px solid #E2E8F0"],
[style*="border:1px solid #F1F5F9"],
[style*="border-bottom:1px solid #F1F5F9"],
[style*="border: 1px solid var(--border)"],
.divider {
  border-color: var(--border) !important;
}

/* ============================================================
   ACTGRAM PREMIUM JEWEL TONE LIGHT THEME ENGINE — v3
   ============================================================ */

/* 1. Rich Screen Gradients — Premium Lavender-Violet-Fuchsia */
.screen,
[style*="background:#F8FAFC"],
[style*="background: #F8FAFC"],
[style*="background: #f8fafc"],
[style*="background:#f8fafc"] {
  background: linear-gradient(160deg, #F0FAFF 0%, #E8F7FD 50%, #F8FCFF 100%) !important;
}

/* 2. Glassmorphic App Bar Overrides */
div[style*="position:sticky"],
div[style*="position: sticky"] {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border-bottom: 1px solid rgba(0, 174, 239, 0.10) !important;
  box-shadow: 0 4px 20px rgba(0, 174, 239, 0.04) !important;
}

/* 3. Safe Card Uplifts — Only actual content cards, not buttons/inputs/nav */
/* Target only larger content divs with box-shadow that are NOT buttons/controls */
div[style*="box-shadow"][style*="border-radius:20px"],
div[style*="box-shadow"][style*="border-radius: 20px"],
div[style*="box-shadow"][style*="border-radius:18px"],
div[style*="box-shadow"][style*="border-radius: 18px"],
div[style*="box-shadow"][style*="border-radius:24px"],
div[style*="box-shadow"][style*="border-radius: 24px"] {
  box-shadow: 0 8px 28px rgba(0, 174, 239, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(0, 174, 239, 0.07) !important;
  transition: transform 240ms ease, box-shadow 240ms ease !important;
}

/* 4. Primary Color Overrides (#1E40AF -> Electric Indigo #00AEEF) */
[style*="background:#1E40AF"],
[style*="background: #1E40AF"],
[style*="background:linear-gradient(135deg,#1E40AF"],
[style*="background: linear-gradient(135deg, #1E40AF"],
[style*="background:linear-gradient(135deg,#1e40af"],
[style*="background: linear-gradient(135deg, #1e40af"] {
  background: #00AEEF !important;
  box-shadow: 0 8px 24px rgba(0, 174, 239, 0.25) !important;
  border: none !important;
}

[style*="color:#1E40AF"],
[style*="color: #1E40AF"],
[style*="color:#1e40af"],
[style*="color: #1e40af"] {
  color: #00AEEF !important;
}

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

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

/* Soft light blue background overrides */
[style*="background:#EFF6FF"],
[style*="background: #EFF6FF"],
[style*="background:#eff6ff"],
[style*="background: #eff6ff"],
.badge-blue {
  background: rgba(0, 174, 239, 0.07) !important;
  color: #00AEEF !important;
  border: 1px solid rgba(0, 174, 239, 0.15) !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
}

[style*="background:#F0FAFF"],
[style*="background: #F0FAFF"],
.badge-violet {
  background: rgba(139, 92, 246, 0.07) !important;
  color: var(--soft-violet) !important;
  border: 1px solid rgba(139, 92, 246, 0.15) !important;
  font-weight: 700 !important;
}

/* 5. CRITICAL: DARK COLOR ELIMINATION */
/* #0F172A and #1E293B as standalone BACKGROUNDS → Premium Vivid Indigo-Violet */
[style*="background:#0F172A"],
[style*="background: #0F172A"],
[style*="background:#0f172a"],
[style*="background: #0f172a"],
[style*="background:#1E293B"],
[style*="background: #1E293B"],
[style*="background:#1e293b"],
[style*="background: #1e293b"] {
  background: #00AEEF !important;
  border: none !important;
  box-shadow: 0 8px 28px rgba(0, 174, 239, 0.30) !important;
}

/* Dark gradient buttons starting with #0F172A */
[style*="background:linear-gradient(135deg,#0F172A"],
[style*="background:linear-gradient(135deg, #0F172A"],
[style*="background: linear-gradient(135deg, #0F172A"],
[style*="background:linear-gradient(135deg,#0f172a"],
[style*="background: linear-gradient(135deg, #0f172a"] {
  background: #00AEEF !important;
  box-shadow: 0 8px 28px rgba(0, 174, 239, 0.28) !important;
  border: none !important;
}

/* Welcome screen specific dark CTA: #0F172A → #1E293B */
[style*="background:linear-gradient(135deg,#0F172A,#1E293B)"],
[style*="background: linear-gradient(135deg, #0F172A, #1E293B)"],
[style*="background:linear-gradient(135deg,#0f172a,#1e293b)"] {
  background: #00AEEF !important;
  box-shadow: 0 10px 32px rgba(0, 174, 239, 0.32) !important;
  border: none !important;
}

/* Profile setup buttons that end in #0F172A */
[style*=",#0F172A)"],
[style*=", #0F172A)"],
[style*=",#0f172a)"],
[style*=", #0f172a)"],
[style*=",#1E293B)"],
[style*=", #1E293B)"],
[style*=",#1e293b)"],
[style*=", #1e293b)"] {
  background: #00AEEF !important;
  box-shadow: 0 8px 28px rgba(0, 174, 239, 0.28) !important;
  border: none !important;
}

/* 6. Secondary Color Overrides (#002347 -> Premium Violet) */
[style*="background:#002347"],
[style*="background: #002347"],
[style*="background:#7c3aed"],
[style*="background: #7c3aed"] {
  background: linear-gradient(135deg, #003566 0%, #002347 100%) !important;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.22) !important;
}
[style*="color:#002347"],
[style*="color: #002347"],
[style*="color:#7c3aed"],
[style*="color: #7c3aed"] {
  color: var(--soft-violet) !important;
}

/* 7. Status Colors (Green, Amber, Red) */
[style*="background:#059669"],
[style*="background: #059669"] {
  background: var(--gradient-success) !important;
}
[style*="color:#059669"],
[style*="color: #059669"] {
  color: var(--emerald) !important;
}
[style*="background:#ECFDF5"],
[style*="background: #ECFDF5"] {
  background: var(--emerald-light) !important;
}

[style*="background:#D97706"],
[style*="background: #D97706"] {
  background: var(--gradient-amber) !important;
}
[style*="color:#D97706"],
[style*="color: #D97706"] {
  color: var(--amber) !important;
}
[style*="background:#FEF3C7"],
[style*="background: #FEF3C7"] {
  background: var(--amber-light) !important;
}

[style*="background:#DC2626"],
[style*="background: #DC2626"] {
  background: var(--soft-red) !important;
}
[style*="color:#DC2626"],
[style*="color: #DC2626"] {
  color: var(--soft-red) !important;
}
[style*="background:#FEF2F2"],
[style*="background: #FEF2F2"] {
  background: var(--soft-red-light) !important;
}

/* 8. Premium Button Styling */
.btn-primary {
  background: #00AEEF !important;
  color: var(--white) !important;
  border: none !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  box-shadow: 0 8px 24px rgba(0, 174, 239, 0.28) !important;
  transition: all var(--transition-base) !important;
}

.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 32px rgba(0, 174, 239, 0.40) !important;
  filter: brightness(1.05) !important;
}

.btn-primary:active {
  transform: translateY(0) !important;
}

.btn-outline {
  border: 1.5px solid #00AEEF !important;
  color: #00AEEF !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  transition: all var(--transition-base) !important;
}

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

/* 9. Card Micro-interactions */
.card-hover,
.swipe-card-draggable,
.list-item {
  box-shadow: 0 8px 24px rgba(0, 174, 239, 0.06), 0 2px 8px rgba(0, 0, 0, 0.02) !important;
  border: 1px solid rgba(0, 174, 239, 0.08) !important;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base) !important;
}

.card-hover:hover,
.list-item:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 36px rgba(0, 174, 239, 0.12), 0 4px 12px rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 174, 239, 0.20) !important;
}

/* Input Focus Glows */
input:focus, textarea:focus, select:focus {
  border-color: #00AEEF !important;
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.12) !important;
}

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

/* Ensure text gradients stay as clip-masked gradients */
[style*="-webkit-background-clip:text"],
[style*="-webkit-background-clip: text"] {
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* Video Reels Play Buttons */
div[style*="width:56px"][style*="height:56px"],
div[style*="width: 56px"][style*="height: 56px"] {
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.92) !important;
  width: 56px !important;
  height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

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

/* App Header Logo Icon (36x36) */
div[style*="width:36px"][style*="height:36px"],
div[style*="width: 36px"][style*="height: 36px"] {
  background: #00AEEF !important;
  border-radius: 10px !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.25) !important;
}

div[style*="width:36px"] i,
div[style*="width: 36px"] i {
  color: white !important;
  font-size: 18px !important;
}

/* 10. 96px Splash logo icon — premium indigo-violet-fuchsia */
div[style*="width:96px"][style*="height:96px"],
div[style*="width: 96px"][style*="height: 96px"] {
  background: #00AEEF !important;
  box-shadow: 0 20px 60px rgba(0, 174, 239, 0.40), 0 6px 20px rgba(124, 58, 237, 0.30), 0 0 0 8px rgba(0, 174, 239, 0.10) !important;
  border: none !important;
}

/* 11. 68px Logo icons (role selection, onboarding) — upgrade dark to premium */
div[style*="width:68px"][style*="height:68px"],
div[style*="width: 68px"][style*="height: 68px"] {
  background: #00AEEF !important;
  box-shadow: 0 12px 36px rgba(0, 174, 239, 0.30) !important;
  border: none !important;
}

/* 12. Screen background overrides for gradient screens */
[style*="background:linear-gradient(170deg,#F0F4FF"],
[style*="background: linear-gradient(170deg, #F0F4FF"],
[style*="background:linear-gradient(170deg,#F8FAFC"],
[style*="background: linear-gradient(170deg, #F8FAFC"],
[style*="background:linear-gradient(165deg,#F8FAFC"],
[style*="background: linear-gradient(165deg, #F8FAFC"],
[style*="background:linear-gradient(160deg,#F8FAFC"],
[style*="background: linear-gradient(160deg, #F8FAFC"] {
  background: linear-gradient(160deg, #F0FAFF 0%, #E8F7FD 50%, #F8FCFF 100%) !important;
}

/* 13. Gradient text — ActGram logo text upgrades */
[style*="background:linear-gradient(135deg,#1E40AF,#002347)"],
[style*="background: linear-gradient(135deg, #1E40AF, #002347)"],
[style*="background:linear-gradient(135deg,#0095CC,#3B82F6)"],
[style*="background: linear-gradient(135deg, #0095CC, #3B82F6)"],
[style*="background:linear-gradient(135deg,#0095CC"] {
  background: #00AEEF !important;
}

/* 14. Premium link and accent colors */
[style*="color:#0095CC"],
[style*="color: #0095CC"] {
  color: #00AEEF !important;
}

/* 15. Spinner color upgrade */
[style*="border-top-color:#0095CC"],
[style*="border-top-color: #0095CC"],
[style*="border-top-color:#1E40AF"],
[style*="border-top-color: #1E40AF"] {
  border-top-color: #00AEEF !important;
}

/* 16. OTP Box styling */
.otp-box.filled {
  border-color: #00AEEF !important;
  background: rgba(0, 174, 239, 0.06) !important;
}

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

/* 17. Verification list borders */
[style*="border:1.5px solid #E2E8F0"],
[style*="border:1px solid #F1F5F9"],
[style*="border-bottom:1px solid #F1F5F9"],
[style*="border: 1px solid var(--border)"],
.divider {
  border-color: rgba(0, 174, 239, 0.10) !important;
}

/* ===========================    RESPONSIVE DESKTOP LAYOUT OVERRIDES
    ============================================ */
@media (min-width: 768px) {
  :root {
    --app-max-width: 100%;
  }

  body {
    background: #E8F7FD;
    min-height: 100vh;
    overflow-x: hidden;
  }

  #app {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
    position: relative !important;
  }

  /* All screens: fixed position, full-viewport */
  .screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    min-height: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #E8F7FD !important;
    display: none;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    transition: left var(--transition-base), width var(--transition-base);
  }

  /* Dynamically shift screens when the desktop sidebar is active/visible */
  #desktop-header:not([style*="display: none"]) ~ .screen {
    left: 250px !important;
    width: calc(100% - 250px) !important;
  }

  /* Position bottom sheet to center in content area on desktop */
  #desktop-header:not([style*="display: none"]) ~ #active-bottom-sheet {
    left: 250px !important;
    width: calc(100% - 250px) !important;
  }
  #desktop-header:not([style*="display: none"]) ~ #active-bottom-sheet .bottom-sheet {
    max-width: 600px !important;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0 !important;
  }
  
  /* Position modals to center in content area on desktop */
  #desktop-header:not([style*="display: none"]) ~ #active-modal {
    left: 250px !important;
    width: calc(100% - 250px) !important;
  }

  /* NO card wrapper on first-child — skip full-page auth/welcome screens
     (also skip #reels-feed: its first child is the scroll-snap viewport
     `.reels-feed-container`, not a decorative card — forcing
     `overflow: visible` on it broke desktop wheel/scroll navigation) */
  .screen:not(#story-viewer):not(#story-upload):not(#go-live):not(#live-viewer):not(#welcome):not(#splash):not(#login):not(#forgot-password):not(#signup):not(#otp-verify):not(#choose-username):not(#reels-feed) > div:first-of-type {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  #welcome.active-screen .wc-page {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    width: 100% !important;
  }

  /* Full-bleed screens: cover full viewport */
  #splash, #welcome, #story-viewer, #story-upload, #go-live, #live-viewer, #emergency-freeze, #consent-agreement {
    top: 0 !important;
    min-height: 100vh !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 3000 !important;
  }

  #story-viewer.active-screen,
  #story-upload.active-screen,
  #go-live.active-screen,
  #live-viewer.active-screen {
    background: #000 !important;
    overflow: hidden !important;
    z-index: 3000 !important;
  }

  #story-viewer .story-viewer-root,
  #story-upload .story-upload-root,
  #story-viewer .ig-story-root,
  #story-upload .ig-story-root,
  #go-live .ag-live-screen,
  #live-viewer .ag-live-screen {
    position: relative !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    background: #000 !important;
    overflow: hidden !important;
  }

  #story-viewer .story-media-layer,
  #story-viewer .story-media-layer img,
  #story-viewer .story-media-layer video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Auth/onboarding screens: centered narrow card layout */
  #login, #forgot-password, #otp-verify, #signup {
    display: none;
    background: linear-gradient(135deg, #E8F7FD 0%, #F0FAFF 50%, #F8FCFF 100%) !important;
    padding: 20px !important;
    left: 0 !important;
    width: 100% !important;
  }

  #login.active-screen, #forgot-password.active-screen, #otp-verify.active-screen {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  #otp-verify > div {
    width: 100%;
    max-width: 480px;
    min-height: auto !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 60px rgba(0, 174, 239, 0.12) !important;
    overflow: hidden;
    background: white !important;
  }

  /* Login uses the shared full-bleed su-split shell (brand panel + form),
     matching Welcome & Signup — NOT the legacy narrow 480px centered card.
     Overrides the #login rule above so the split can fill the viewport. */
  #login.active-screen, #forgot-password.active-screen {
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    padding: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    background: transparent !important;
  }
  #login .auth-page.su-split,
  #forgot-password .auth-page.su-split {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 28px !important;
    gap: 0 !important;
    background: #E8F7FD !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  /* Neutralise the legacy narrow-card styling on the login form wrapper. */
  #login .su-split .ln-page,
  #forgot-password .su-split .ln-page {
    max-width: none !important;
    width: 100% !important;
    min-height: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow-y: auto !important;
  }
  #login .auth-page.su-split .su-form-side,
  #forgot-password .auth-page.su-split .su-form-side {
    flex: 1 !important;
    min-width: 0 !important;
    height: 100% !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(0,174,239,0.14) !important;
    border-left: none !important;
    border-radius: 0 28px 28px 0 !important;
    box-shadow: 0 30px 70px rgba(0,174,239,0.10) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }
  /* Centre the login form content as one balanced column, like Welcome. */
  #login .su-split .su-form-side .ln-page > div,
  #forgot-password .su-split .su-form-side .ln-page > div {
    width: 100% !important;
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  /* The .ln-page is a flex column; centre the whole form block vertically so it
     sits as one balanced group (matches Welcome) instead of top-heavy with the
     Sign-up link stranded at the bottom. */
  #login .su-split .ln-page,
  #forgot-password .su-split .ln-page {
    justify-content: center !important;
  }
  /* Main content block: don't let the button's margin-bottom:auto stretch the
     column — keep it a tight, centred stack. The back button stays pinned top. */
  #login .su-split .ln-page > div:nth-of-type(2),
  #forgot-password .su-split .ln-page > div:nth-of-type(2) {
    flex: 0 0 auto !important;
    padding-top: 8px !important;
  }
  #login .su-split .ln-page > div:nth-of-type(2) > div[style*="margin-bottom:auto"] {
    margin-bottom: 24px !important;
  }
  /* Pull the "Don't have an account? Sign up" line up under the form. */
  #login .su-split .ln-page > div:nth-of-type(2) > div:last-child {
    padding-top: 20px !important;
  }

  #signup.active-screen {
    display: flex !important;
    align-items: stretch;
    justify-content: center;
    padding: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }

  #choose-username.active-screen {
    display: flex !important;
    align-items: stretch;
    justify-content: center;
    padding: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }

  #signup .auth-page,
  #choose-username .un-page {
    width: 100%;
    max-width: 560px;
    height: 100%;
    max-height: 100dvh;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }

  /* setup-success + verification-pending: centered, phone-width, fixed viewport */
  #setup-success, #verification-pending {
    display: none;
    background: linear-gradient(135deg, #E8F7FD 0%, #F0FAFF 50%, #F8FCFF 100%) !important;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 !important;
    left: 0 !important;
    width: 100% !important;
    overflow: hidden;
  }

  #profile-work-portfolio {
    display: none;
    background: linear-gradient(135deg, #E8F7FD 0%, #F0FAFF 50%, #F8FCFF 100%) !important;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 !important;
    left: 0 !important;
    width: 100% !important;
  }

/* Role selection + profile-setup steps 1-3: wide, scrollable layout (not phone-width capped) */
#role-selection, #profile-setup-1, #profile-setup-2, #profile-setup-3 {
  display: none;
  padding: 0 !important;
  left: 0 !important;
  width: 100% !important;
}
#role-selection.active-screen,
#profile-setup-1.active-screen,
#profile-setup-2.active-screen,
#profile-setup-3.active-screen,
#profile-work-portfolio.active-screen {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  height: 100vh !important;
  height: 100dvh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
#role-selection.active-screen .rs-page,
#profile-setup-1.active-screen .ob-page,
#profile-setup-2.active-screen .ob-page,
#profile-setup-3.active-screen .ob-page {
  width: 100%;
  min-height: 100%;
}
#profile-work-portfolio.active-screen .ob-page {
  width: 100%;
  max-width: 560px;
  min-height: 100%;
  margin: 0 auto;
}

#setup-success.active-screen,
#verification-pending.active-screen {
  display: flex !important;
  flex-direction: column;
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
  padding: 0 !important;
}

#setup-success.active-screen .ob-center-page,
#verification-pending.active-screen .ob-center-page {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

  #setup-success.active-screen, #verification-pending.active-screen {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px !important;
  }

  #profile-setup-1.active-screen, #profile-setup-2.active-screen, #profile-setup-3.active-screen, #profile-work-portfolio.active-screen {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: stretch;
    padding: 0 !important;
  }

  /* Main app screens: max-width content container */
  #home-feed, #search, #notifications, #discover-roles, #discover-talent,
  #casting-board, #actor-profile, #director-profile, #chat-list, #individual-chat,
  #settings, #edit-profile, #subscription, #career-dashboard, #notification-center, #talent-leaderboard,
  #saved-posts, #safety-center, #shoot-calendar, #collaboration-hub, #admin-panel {
    background: #E8F7FD !important;
  }

  .screen.active-screen {
    display: block;
  }

  #splash.active-screen {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
  }

  #welcome.active-screen {
    display: block;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow-y: auto !important;
  }

  #welcome.active-screen .wc-page {
    min-height: 100vh !important;
    min-height: 100dvh !important;
  }

  /* Hide bottom tab bar on desktop — use desktop nav instead */
  #tab-bar {
    display: none !important;
  }

  /* Desktop header: styled as left vertical sidebar */
  #desktop-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  /* Desktop page container - centers content with max-width */
  .desktop-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
  }
}

/* ============================================
   DESKTOP SIDEBAR STYLES
   ============================================ */
#desktop-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 250px;
  background: #ffffff;
  border-right: 1px solid rgba(0, 174, 239, 0.10);
  z-index: 1000;
  padding: 32px 20px 24px;
  box-shadow: 4px 0 24px rgba(0, 174, 239, 0.03);
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-sizing: border-box;
}

.desktop-logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  padding-left: 12px;
}

.desktop-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.20);
}

.desktop-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  flex: 1;
}

.desktop-nav-item {
  color: #475569;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

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

.desktop-nav-item.active {
  color: #00AEEF;
  background: rgba(0, 174, 239, 0.08);
  font-weight: 750;
}

.desktop-nav-item i,
.desktop-nav-item > svg {
  font-size: 20px;
  width: 20px;
  height: 20px;
  color: #64748B;
  stroke: #64748B;
  transition: color var(--transition-fast), stroke var(--transition-fast);
  flex-shrink: 0;
}

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

.desktop-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(0, 174, 239, 0.08);
  padding-top: 16px;
  margin-top: auto;
}

.desktop-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid rgba(0, 174, 239, 0.15);
  transition: all var(--transition-fast);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.desktop-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-user-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E40AF, #3B82F6);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

/* ============================================
   ACTGRAM V2 - DESKTOP RESPONSIVE ADDITIONS
   ============================================ */

/* --- Mobile-First Layout Rules (Default) --- */
.wc-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.wc-left-col {
  display: flex;
  flex-direction: column;
  padding: 0;
  width: 100%;
}
.wc-right-col {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}

/* Welcome now uses the shared auth brand panel; the old floating photo-collage
   hero is hidden on every screen size (desktop = brand panel, mobile = single
   content column). Scoped to #welcome. */
#welcome .wc-right-col { display: none !important; }
#welcome .wc-dot-grid { display: none !important; }
/* Base (mobile-first): the brand panel is hidden by default and only shown on
   desktop (the @media 768px rule below). Keeps mobile a clean single column. */
#welcome .su-brand-panel { display: none !important; }
/* The mobile logo is hidden by default (desktop shows the logo in the brand
   panel); it's revealed only on mobile in the @media(max-width:767px) block. */
#welcome .wc-mobile-logo { display: none; }

.wc-hero-stage {
  position: relative;
  width: 100%;
  height: clamp(280px, 72vw, 330px);
  flex-shrink: 0;
  overflow: visible;
}

.wc-card {
  overflow: hidden;
}

.wc-card > img {
  position: absolute;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.wc-logo-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  display: block;
}

@media (max-width: 767px) {
  #welcome.active-screen .wc-page {
    padding-top: max(12px, env(safe-area-inset-top));
  }

  .wc-container {
    padding: 0 max(16px, env(safe-area-inset-left)) 28px max(16px, env(safe-area-inset-right));
    gap: 8px;
    box-sizing: border-box;
  }

  .wc-left-col {
    text-align: center;
    padding-inline: 4px;
  }

  .wc-left-col h1,
  .wc-left-col p,
  .wc-left-col .wc-trust-pill {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .wc-brand-title {
    font-size: clamp(34px, 10vw, 42px) !important;
  }

  .wc-headline {
    font-size: clamp(22px, 6.5vw, 28px) !important;
  }

  .wc-subtitle {
    max-width: 100% !important;
    font-size: clamp(12.5px, 3.6vw, 13.5px) !important;
  }

  .wc-stats,
  .wc-actions {
    max-width: 100% !important;
    margin-inline: auto;
  }

  /* Mobile stats card: the three items were cramped side-by-side (icon+text in
     a tight row × 3 with dividers). Stack each item vertically (icon on top,
     value + label centred below) so every stat gets room to breathe and reads
     clean on narrow phones. Scoped to #welcome only. */
  #welcome .wc-stats {
    padding: 16px 10px !important;
    gap: 6px !important;
  }
  #welcome .wc-stats .wc-stat-item {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    gap: 8px !important;
    padding: 0 !important;
    min-width: 0 !important;
  }
  /* Icon chip sits on top, centred. */
  #welcome .wc-stats .wc-stat-item > div:first-child {
    margin: 0 auto !important;
  }
  /* Value + label centred under the icon. */
  #welcome .wc-stats .wc-stat-item > div:last-child {
    text-align: center !important;
  }
  #welcome .wc-stat-value { font-size: 14.5px !important; }
  #welcome .wc-stat-label { font-size: 10.5px !important; white-space: nowrap; }
  /* Drop the vertical dividers — the stacked columns read clearly without them. */
  #welcome .wc-stats .wc-stats-divider { display: none !important; }

  .wc-dot-grid {
    display: none;
  }

  .wc-hero-stage {
    height: clamp(250px, 66vw, 310px);
  }

  #welcome .wc-card--1 {
    width: 94px !important;
    height: 116px !important;
    top: 6px !important;
    left: 4px !important;
  }

  #welcome .wc-card--2 {
    width: 82px !important;
    height: 96px !important;
    bottom: 8px !important;
    left: 8px !important;
  }

  #welcome .wc-card--3 {
    width: 98px !important;
    height: 120px !important;
    top: 10px !important;
    right: 4px !important;
  }

  #welcome .wc-card--4 {
    width: 78px !important;
    height: 92px !important;
    bottom: 8px !important;
    right: 8px !important;
  }

  #welcome .wc-orbit--masks {
    top: 100px !important;
    right: auto !important;
    left: calc(50% - 58px) !important;
    transform: none !important;
  }

  #welcome .wc-orbit--users {
    bottom: 78px !important;
    right: auto !important;
    left: calc(50% + 22px) !important;
    transform: none !important;
  }

  .wc-trust-footer {
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 10px 16px !important;
  }

  /* ── Premium mobile polish for the welcome screen — refined depth, tighter
     rhythm, softer shadows. Brand colours only, no content change. ── */
  /* Consistent, generous side padding + calmer vertical rhythm. */
  #welcome .wc-page { padding-bottom: 40px !important; }
  #welcome .wc-container { padding-left: 20px !important; padding-right: 20px !important; }

  /* Brand logo above the wordmark (restores the logo that lived in the now-
     hidden photo-collage hero). Centred premium chip matching login/signup. */
  #welcome .wc-mobile-logo {
    display: block !important;
    width: 60px; height: 60px;
    margin: 4px auto 16px !important;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,174,239,0.24);
    background: #fff;
  }
  #welcome .wc-mobile-logo img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
    transform: scale(1.12);
  }

  /* Headline: a touch tighter leading for a premium, confident feel. */
  #welcome .wc-headline { line-height: 1.24 !important; margin-bottom: 12px !important; }
  #welcome .wc-subtitle { line-height: 1.6 !important; margin-bottom: 26px !important; color: #64748B !important; }
  #welcome .wc-trust-pill { margin-bottom: 22px !important; box-shadow: 0 2px 10px rgba(0,174,239,0.05) !important; }

  /* Stats card: crisper, softer-elevated, rounded consistently. */
  #welcome .wc-stats {
    border-radius: 20px !important;
    border: 1px solid rgba(0,174,239,0.08) !important;
    box-shadow: 0 10px 30px rgba(0,174,239,0.07) !important;
    padding: 18px 12px !important;
    margin-bottom: 22px !important;
  }
  /* Stat icon chips: unify to brand-cyan tint for a cohesive premium look
     (instead of mixed indigo/pink/green backgrounds). */
  #welcome .wc-stats .wc-stat-item > div:first-child {
    width: 40px !important; height: 40px !important;
    border-radius: 13px !important;
    background: #E8F7FD !important;
    box-shadow: 0 6px 16px rgba(0,174,239,0.10) !important;
  }
  #welcome .wc-stats .wc-stat-item > div:first-child i { color: #00AEEF !important; }

  /* Primary button: taller, rounder, smoother premium shadow + press. */
  #welcome .wc-btn-primary {
    padding: 17px 22px !important;
    border-radius: 16px !important;
    box-shadow: 0 14px 34px rgba(0,174,239,0.30) !important;
  }
  #welcome .wc-btn-primary:active { transform: scale(0.98) !important; }
  /* Secondary button: cleaner outline, consistent radius/height. */
  #welcome .wc-btn-outline {
    padding: 16px 22px !important;
    border-radius: 16px !important;
    border: 1.5px solid rgba(0,174,239,0.16) !important;
    box-shadow: 0 4px 14px rgba(15,23,42,0.03) !important;
  }
  #welcome .wc-btn-outline:active { transform: scale(0.98) !important; }

  /* Trust-badges row: a little more air, refined muted styling. */
  #welcome .wc-trust-footer { margin-top: 22px !important; gap: 12px 18px !important; }

  /* Data-safety card: soften to match the premium card language. */
  #welcome .wc-actions > div[style*="#EFF6FF"] {
    border-radius: 16px !important;
    border: 1px solid rgba(59,130,246,0.14) !important;
    box-shadow: 0 6px 20px rgba(59,130,246,0.06) !important;
    margin-top: 22px !important;
  }
}

@media (max-width: 380px) {
  .wc-stats {
    padding: 14px 8px !important;
  }

  .wc-stat-value {
    font-size: 14px !important;
  }

  .wc-stat-label {
    font-size: 9.5px !important;
  }
}

.feed-layout-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.feed-main-col {
  width: 100%;
}
.feed-side-col {
  display: none;
  width: 100%;
}

.feed-card-widget {
  background: white;
  border-radius: 18px;
  border: 1px solid rgba(0, 174, 239, 0.08);
  box-shadow: 0 4px 20px rgba(0, 174, 239, 0.02);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}
.widget-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1.5px solid rgba(0, 174, 239, 0.05);
  padding-bottom: 10px;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}
.widget-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.widget-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1.5px solid rgba(0, 174, 239, 0.05);
  padding-bottom: 10px;
  margin-bottom: 4px;
}
.widget-title-row .widget-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
  flex: 1;
}
.feed-widget-see-all {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-cyan, #00AEEF);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s, color 0.15s;
}
.feed-widget-see-all:hover {
  background: rgba(0, 174, 239, 0.08);
  color: var(--brand-cyan-dark, #0095CC);
}
.feed-widget-see-all:focus-visible {
  outline: 2px solid var(--brand-cyan, #00AEEF);
  outline-offset: 2px;
}

/* --- Desktop Overrides (min-width: 768px) --- */
@media (min-width: 768px) {
  /* Welcome Screen Layout Split */
  .wc-container {
    flex-direction: row-reverse !important;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
    align-items: center;
    padding: 60px 48px !important;
    box-sizing: border-box;
  }
  .wc-left-col {
    flex: 1.1;
    padding: 0;
    text-align: left !important;
  }
  .wc-left-col h1 {
    text-align: left !important;
  }
  .wc-left-col p {
    text-align: left !important;
    margin-left: 0 !important;
  }
  .wc-right-col {
    flex: 0.9;
    margin: 0;
  }

  /* ── Welcome reuses the shared auth split shell (brand panel + content) so
     it matches Login & Signup. These rules override the old .wc-container
     photo-collage split above. Scoped to #welcome .su-split only. ── */
  #welcome.active-screen { justify-content: stretch !important; align-items: stretch !important; }
  /* Full-bleed, full-height split — matches the signup screen exactly (100vh,
     28px padding creating the light-blue frame, two panels filling inside). */
  #welcome .auth-page.su-split {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    height: 100vh !important;
    height: 100dvh !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 28px !important;
    gap: 0 !important;
    background: #E8F7FD !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  #welcome .auth-page.su-split .su-form-side {
    flex: 1 !important;
    min-width: 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start;   /* content starts at the top, flows down (like signup) */
    align-items: stretch;
    overflow-y: auto;
  }
  #welcome .auth-page.su-split .su-form-side .wc-page {
    display: flex !important;
    flex-direction: column;
    justify-content: center;       /* premium: content sits as one balanced block */
    align-items: center;           /* centre the content column horizontally */
    padding: 56px 40px !important;
    background: transparent !important;
    min-height: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* The content stack is capped to a comfortable reading width and CENTRED, so
     on ultra-wide screens it doesn't stretch edge-to-edge (stats spreading far
     apart, over-long buttons). Tightened to 480px for a more premium, focused
     column. */
  #welcome .su-split .wc-container {
    display: block !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  #welcome .su-split .wc-left-col {
    flex: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: left !important;
  }
  /* Stats + actions fill the 560px content column (their inline max-width:480px
     would otherwise leave them narrower than the rest). */
  #welcome .su-split .wc-stats,
  #welcome .su-split .wc-actions { max-width: 100% !important; }

  /* Brand-panel internals for welcome (mirrors the signup split styling so the
     feature list renders as spaced rows with cyan icon chips). */
  #welcome .auth-page.su-split .su-brand-panel {
    display: block !important;
    flex: 0 0 42%;
    max-width: 520px;
    position: relative;
    border-radius: 28px 0 0 28px;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
    background:
      radial-gradient(120% 90% at 20% 0%, rgba(0,174,239,0.10), transparent 60%),
      radial-gradient(120% 90% at 100% 100%, rgba(0,149,204,0.10), transparent 55%),
      linear-gradient(165deg, #F0FAFF 0%, #E8F7FD 55%, #F0FAFF 100%);
    border: 1px solid rgba(0,174,239,0.14);
    border-right: none;
    box-shadow: 0 30px 70px rgba(0,174,239,0.14);
  }
  #welcome .auth-page.su-split .su-form-side {
    background: #FFFFFF;
    border: 1px solid rgba(0,174,239,0.14);
    border-radius: 0 28px 28px 0;
    box-shadow: 0 30px 70px rgba(0,174,239,0.10);
    overflow: hidden;
  }
  #welcome .su-brand-inner {
    position: relative; z-index: 2;
    height: 100%; box-sizing: border-box;
    padding: 40px 38px;
    display: flex; flex-direction: column; justify-content: center;
  }
  #welcome .su-brand-logo {
    width: 58px; height: 58px; border-radius: 18px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 34px rgba(0,174,239,0.28); margin-bottom: 26px;
  }
  #welcome .su-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
  #welcome .su-brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 34px; font-weight: 800; color: #0F172A;
    letter-spacing: -0.9px; margin: 0 0 12px; line-height: 1.1;
  }
  #welcome .su-brand-title-accent { color: #00AEEF; }
  #welcome .su-brand-tag {
    font-size: 14.5px; color: #475569; line-height: 1.6;
    font-weight: 500; margin: 0 0 26px; max-width: 340px;
  }
  #welcome .su-brand-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
  #welcome .su-brand-feats li { display: flex; gap: 14px; align-items: flex-start; }
  #welcome .su-feat-ic {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 13px;
    background: rgba(255,255,255,0.9); border: 1px solid rgba(0,174,239,0.14);
    display: inline-flex; align-items: center; justify-content: center;
    color: #00AEEF; font-size: 20px; box-shadow: 0 6px 18px rgba(0,174,239,0.08);
  }
  #welcome .su-brand-feats strong {
    display: block; font-size: 14px; font-weight: 800; color: #1E293B;
    font-family: 'Outfit', sans-serif; margin-bottom: 3px;
  }
  #welcome .su-brand-feats em {
    display: block; font-style: normal; font-size: 12.5px;
    color: #64748B; line-height: 1.5; font-weight: 500; max-width: 280px;
  }

  /* ── Premium refinement (desktop): tighter rhythm, softer depth, cleaner
     hover — brand colours only, no new elements or content. ── */
  /* Brand-panel breathing room + slightly larger, calmer feature spacing. */
  #welcome .su-brand-inner { padding: 48px 44px !important; }
  #welcome .su-brand-feats { gap: 20px !important; }
  #welcome .su-feat-ic {
    width: 44px !important; height: 44px !important;
    background: #FFFFFF !important;
    box-shadow: 0 8px 20px rgba(0,174,239,0.10) !important;
    transition: transform .2s ease, box-shadow .2s ease;
  }
  #welcome .su-brand-feats li:hover .su-feat-ic {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,174,239,0.16) !important;
  }
  #welcome .su-brand-logo { box-shadow: 0 16px 38px rgba(0,174,239,0.24) !important; }

  /* Form-side content rhythm — consistent vertical spacing between blocks. */
  #welcome .su-split .wc-brand-title { margin-bottom: 14px !important; }
  #welcome .su-split .wc-trust-pill { margin-bottom: 24px !important; }
  #welcome .su-split .wc-headline { margin-bottom: 12px !important; }
  #welcome .su-split .wc-subtitle { margin-bottom: 26px !important; max-width: 420px !important; }

  /* Refined stats card — softer border, gentle depth, tighter internal feel. */
  #welcome .su-split .wc-stats {
    padding: 18px 16px !important;
    border: 1px solid rgba(0,174,239,0.10) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(0,174,239,0.06) !important;
    margin-bottom: 26px !important;
  }

  /* Primary button — a touch taller with a smoother premium shadow + lift. */
  #welcome .su-split .wc-btn-primary {
    padding: 18px 24px !important;
    border-radius: 16px !important;
    box-shadow: 0 14px 34px rgba(0,174,239,0.30) !important;
    transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s ease, background .22s ease !important;
  }
  #welcome .su-split .wc-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 20px 46px rgba(0,174,239,0.40) !important;
  }
  /* Secondary button — cleaner outline that lifts consistently on hover. */
  #welcome .su-split .wc-btn-outline {
    padding: 16px 24px !important;
    border-radius: 16px !important;
    border: 1.5px solid rgba(0,174,239,0.18) !important;
    box-shadow: 0 4px 14px rgba(15,23,42,0.03) !important;
    transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s ease, border-color .22s ease !important;
  }
  #welcome .su-split .wc-btn-outline:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(0,174,239,0.4) !important;
    box-shadow: 0 10px 26px rgba(0,174,239,0.10) !important;
  }

  /* Data-safety footer card — align its softness with the stats card. */
  #welcome .su-split .wc-actions > div[style*="#EFF6FF"] {
    border-radius: 16px !important;
    box-shadow: 0 6px 20px rgba(59,130,246,0.06) !important;
  }

  /* Home Feed Screen Layout Split */
  .feed-layout-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 32px !important;
    max-width: 932px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    align-items: flex-start;
  }
  .feed-main-col {
    width: 100%;
    max-width: 580px;
  }
  .feed-side-col {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 320px;
    position: sticky;
    top: 16px;
  }

  /* Casting Board grid — 2 cols on tablet, 3 cols on wide desktop (mockup) */
  #cb-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
    padding: 16px 20px 0 !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
  }
  #cb-list > div {
    margin-bottom: 0 !important;
  }

  /* Hide mobile app-bars on desktop (desktop header replaces them) */
  /* Only hide home-feed and main screen bars since they duplicate the desktop header */
  #home-feed [style*="position:sticky"][style*="top:0"] {
    display: none !important;
  }

  /* Home-feed content area: proper spacing with desktop header */
  #home-feed > div {
    padding-top: 24px !important;
  }

  /* Stories row: max width on desktop */
  #home-feed > div > div[style*="background:white"][style*="padding:18px"] {
    max-width: 932px;
    margin: 0 auto 12px;
    border-radius: 16px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  /* Desktop content max-width for all app screens */
  #discover-roles > div,
  #discover-talent > div,
  #casting-board > div:not(.cb-page),
  #notifications > div,
  #search > div,
  #saved-posts > div,
  #career-dashboard > div,
  #career-dashboard > .career-dashboard-page,
  #talent-leaderboard > div,
  #notification-center > div,
  #settings > div,
  #safety-center > div,
  #shoot-calendar > div,
  #collaboration-hub > div,
  #actor-profile > div,
  #director-profile > div,
  #modeling-agency-profile > div,
  #chat-list > div {
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
    background: white !important;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 174, 239, 0.04);
    overflow: hidden;
    margin-top: 16px !important;
    margin-bottom: 32px !important;
  }

  /* Transparency Score: centered card column on desktop (was full-width) */
  #transparency-score > div {
    max-width: 720px;
    margin: 16px auto 32px !important;
    min-height: 0 !important;
    background: white !important;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 174, 239, 0.04);
  }

  /* Admin panel: wider */
  #admin-panel > div {
    max-width: 1100px;
    margin: 16px auto 32px !important;
    background: white !important;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 174, 239, 0.04);
  }

  /* Detail screens: centered card */
  #casting-call-detail > div,
  #talent-reel-detail > div,
  #comments > div {
    max-width: 720px;
    margin: 16px auto 32px !important;
    background: white !important;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 174, 239, 0.04);
  }

  /* Comments: centered card fills the viewport height so the sticky input
     sits at the bottom of the column (not floating across the viewport). */
  #comments > div {
    min-height: calc(100vh - 48px) !important;
    min-height: calc(100dvh - 48px) !important;
  }

  #individual-chat > div {
    max-width: 720px;
    height: calc(100vh - 32px) !important;
    height: calc(100dvh - 32px) !important; /* dynamic viewport: composer stays visible with browser chrome */
    margin: 16px auto !important;
    background: white !important;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 174, 239, 0.04);
    display: flex !important;
    flex-direction: column !important;
  }

  /* Desktop discover: 3 column casting grid */
  .discover-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Remove mobile tab-bar bottom padding on desktop */
  [style*="padding-bottom:90px"],
  [style*="padding-bottom: 90px"] {
    padding-bottom: 24px !important;
  }

  /* Global padding-bottom override for screens that add tab-bar clearance */
  .screen > div[style*="min-height:100vh"] {
    padding-bottom: 32px !important;
  }

  /* Scrollbar visible on desktop for longer screens */
  .screen::-webkit-scrollbar {
    width: 6px;
  }
  .screen::-webkit-scrollbar-track {
    background: transparent;
  }
  .screen::-webkit-scrollbar-thumb {
    background: rgba(0, 174, 239, 0.15);
    border-radius: 3px;
  }
  .screen::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 174, 239, 0.3);
  }
}

/* Large desktop (1200px+) */
@media (min-width: 1200px) {
  #home-feed > div > div[style*="background:white"][style*="padding:18px"] {
    max-width: 932px;
  }
}

/* ============================================
   CASTING BOARD
   ============================================ */
.cb-page {
  min-height: 100%;
  background: #E8F7FD;
  padding-bottom: 32px;
  font-family: 'DM Sans', sans-serif;
  box-sizing: border-box;
}

.cb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 174, 239, 0.12);
  position: sticky;
  top: 0;
  z-index: 30;
}

.cb-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cb-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #002347 !important;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.3px;
}

.cb-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
}

.cb-filter-note {
  margin: 0;
  padding: 10px 20px 0;
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
}

.cb-filter-clear {
  background: none;
  border: none;
  color: #00AEEF;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.cb-header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cb-icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: #F1F5F9;
  color: #002347;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.cb-icon-btn:hover {
  background: #E8F7FD;
}

.cb-icon-btn-soft {
  background: #E8F7FD;
  color: #00AEEF;
}

/* Labeled header actions — each pill shows an icon + name so Brand / Smart /
   Filters are clearly distinct instead of three look-alike icon buttons. */
.cb-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(0, 174, 239, 0.2);
  border-radius: 12px;
  background: #E8F7FD;
  color: #0072B5;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.cb-action-btn:hover {
  background: #D6F0FB;
  border-color: rgba(0, 174, 239, 0.4);
}

.cb-action-btn svg,
.cb-action-btn i {
  width: 17px;
  height: 17px;
  font-size: 17px;
  flex-shrink: 0;
}

.cb-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 20px 0;
}

.cb-stat {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #fff;
  border: 1px solid #EEF2F6;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 4px 18px rgba(0, 35, 71, 0.04);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.cb-stat-link { cursor: pointer; }
.cb-stat-link:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 174, 239, 0.1); }

.cb-stat-ic {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cb-stat-ic-cyan  { background: #E8F7FD; color: #00AEEF; }
.cb-stat-ic-warn  { background: #FEF2F2; color: #DC2626; }
.cb-stat-ic-amber { background: #FEF3C7; color: #D97706; }
.cb-stat-ic-good  { background: #ECFDF5; color: #059669; }

.cb-stat-body { min-width: 0; }

.cb-stat-num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #002347;
  line-height: 1.05;
  font-family: 'Outfit', sans-serif;
}

.cb-stat-num-warn { color: #DC2626; }
.cb-stat-num-navy { color: #002347; }
.cb-stat-num-cyan { color: #00AEEF; }

.cb-stat-label {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
}

.cb-stat-hint {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 500;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cb-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 20px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.cb-tabs::-webkit-scrollbar { display: none; }

.cb-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid rgba(0, 174, 239, 0.18);
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cb-tab-active {
  background: #00AEEF;
  border-color: #00AEEF;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 174, 239, 0.25);
}

.cb-tab-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #FFC107;
  color: #002347;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cb-tab-active .cb-tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Toolbar: tabs on the left, Sort/Filter on the right (matches mockup) */
.cb-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 0;
}
.cb-toolbar .cb-tabs {
  flex: 1;
  padding: 0;
}
.cb-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cb-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #E2E8F0;
  background: #fff;
  color: #475569;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.cb-tool-btn svg { width: 16px; height: 16px; }
.cb-tool-btn:hover { border-color: #00AEEF; color: #00AEEF; }

.cb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 16px 20px 0;
}

.cb-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  min-height: 148px;
  background: #fff;
  border: 1px solid rgba(0, 174, 239, 0.12);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 35, 71, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 174, 239, 0.12);
}

.cb-card-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.cb-card-poster {
  position: relative;
  margin: 12px 0 12px 12px;
  width: 84px;
  height: 124px;
  border-radius: 14px;
  overflow: hidden;
  background: #F1F5F9;
  flex-shrink: 0;
}

.cb-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cb-poster-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 35, 71, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cb-poster-overlay span {
  background: #64748B;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.4px;
}

.cb-poster-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.cb-poster-badge-urgent {
  background: #FEE2E2;
  color: #DC2626;
}

/* "No Compromise" — small, subtle trust chip. Compact single-line pill in the
   bottom-left corner so the poster image stays fully visible. */
.cb-poster-badge-nc {
  top: auto;
  bottom: 5px;
  left: 5px;
  right: 5px;
  justify-content: center;
  gap: 2px;
  padding: 3px 4px;
  font-size: 6.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1px;
  white-space: nowrap;
  color: #fff;
  background: rgba(0, 35, 71, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 35, 71, 0.3);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.cb-poster-badge-nc svg {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  color: #FFC107;
}

.cb-card-body {
  display: flex;
  flex-direction: column;
  padding: 14px 16px 14px 10px;
  min-width: 0;
  position: relative;
  gap: 6px;
}

.cb-match-pill {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1.5px solid;
  background: #fff;
  line-height: 1;
  z-index: 1;
}

.cb-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cb-card-title {
  margin: 0;
  padding-right: 76px;
  font-size: 14px;
  font-weight: 800;
  color: #002347 !important;
  line-height: 1.35;
  font-family: 'Outfit', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cb-match-ring {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.cb-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
}

.cb-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.cb-card-meta svg {
  flex-shrink: 0;
}

.cb-meta-urgent {
  color: #DC2626 !important;
  font-weight: 700 !important;
}

.cb-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.cb-skill {
  background: #E8F7FD;
  color: #002347;
  border: 1px solid rgba(0, 174, 239, 0.15);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.cb-card-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cb-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.cb-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.cb-badge-green { background: #ECFDF5; color: #059669; }
.cb-badge-blue { background: #E8F7FD; color: #00AEEF; }
.cb-badge-muted { background: #F8FAFC; color: #64748B; }

.cb-apply-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  border-radius: 11px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: #00AEEF;
  box-shadow: 0 6px 16px rgba(0, 174, 239, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
}
.cb-apply-btn svg { width: 15px; height: 15px; }
.cb-apply-btn:hover { transform: translateY(-1px); background: #0095CC; }

/* Verified & Trusted footer banner (matches mockup) */
.cb-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 20px 0;
  background: #fff;
  border: 1px solid #EEF2F6;
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: 0 4px 18px rgba(0, 35, 71, 0.04);
}
.cb-trust-ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  flex-shrink: 0;
  background: #E8F7FD;
  color: #00AEEF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cb-trust-text { flex: 1; min-width: 0; }
.cb-trust-text b { display: block; font-size: 14.5px; font-weight: 800; color: #0F172A; font-family: 'Outfit', sans-serif; }
.cb-trust-text span { display: block; font-size: 12.5px; color: #64748B; margin-top: 2px; }
.cb-trust-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #E2E8F0;
  background: #fff;
  color: #00AEEF;
  border-radius: 12px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.cb-trust-btn:hover { border-color: #00AEEF; background: #E8F7FD; }
@media (max-width: 600px) {
  .cb-trust { flex-direction: column; align-items: flex-start; text-align: left; }
  .cb-trust-btn { align-self: stretch; justify-content: center; }
}

.cb-status {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
}

.cb-status-applied { color: #059669; }
.cb-status-closed { color: #64748B; }

.cb-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  gap: 12px;
}

.cb-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E8F7FD;
  color: #00AEEF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cb-empty-title {
  font-size: 16px;
  font-weight: 800;
  color: #002347;
}

.cb-empty-text {
  font-size: 13px;
  color: #64748B;
  text-align: center;
}

@media (min-width: 768px) {
  .cb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 1280px;
    margin: 0 auto;
  }

  .cb-stats,
  .cb-toolbar,
  .cb-trust {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }

  #casting-board > .cb-page {
    max-width: none !important;
    background: #F5FAFE !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
  }
}

/* 3-column card grid on wide desktop, matching the target mockup */
@media (min-width: 1080px) {
  .cb-grid,
  #cb-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 420px) {
  .cb-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cb-stat-label {
    font-size: 9px;
  }
}

/* ============================================
   MATCH INSIGHTS — premium + visibility fixes
   (global h2/h3 !important overrides break hero text)
   ============================================ */
.mi-page {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: linear-gradient(180deg, #E8F7FD 0%, #F8FCFF 40%, #E8F7FD 100%);
  padding-bottom: 36px;
  font-family: 'DM Sans', sans-serif;
  box-sizing: border-box;
}

.mi-page *,
.mi-page *::before,
.mi-page *::after {
  box-sizing: border-box;
}

.mi-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 174, 239, 0.12);
  position: sticky;
  top: 0;
  z-index: 30;
}

.mi-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mi-back {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: #F1F5F9;
  color: #002347 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mi-title {
  font-size: 18px;
  font-weight: 800;
  color: #002347 !important;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.3px;
}

.mi-header-sub {
  font-size: 11px;
  font-weight: 600;
  color: #64748B !important;
}

/* ── Hero ── */
.mi-hero {
  position: relative;
  margin: 16px 16px 0;
  padding: 2px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.6) 0%, rgba(0, 149, 204, 0.4) 50%, rgba(0, 35, 71, 0.7) 100%);
  box-shadow: 0 20px 48px rgba(0, 35, 71, 0.2);
  overflow: hidden;
}

.mi-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

.mi-hero-orb-a {
  width: 180px;
  height: 180px;
  top: -40px;
  right: -30px;
  background: rgba(0, 174, 239, 0.35);
}

.mi-hero-orb-b {
  width: 140px;
  height: 140px;
  bottom: -30px;
  left: -20px;
  background: rgba(255, 193, 7, 0.25);
}

.mi-hero-inner {
  position: relative;
  z-index: 1;
  padding: 26px 26px 24px;
  border-radius: 26px;
  background: linear-gradient(160deg, #002347 0%, #003d6b 45%, #005f8a 100%);
  display: flex;
  align-items: center;
  gap: 26px;
  text-align: left;
}

.mi-hero-ring {
  position: relative;
  width: 108px;
  height: 108px;
  flex-shrink: 0;
  margin: 0;
}

/* content column beside the ring */
.mi-hero-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mi-ring-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1.1;
  pointer-events: none;
}

.mi-ring-pct {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
}

.mi-ring-txt {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.65) !important;
}

.mi-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 174, 239, 0.16);
  border: 1px solid rgba(0, 174, 239, 0.5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #4FD1FF !important;
}

.mi-hero-badge svg {
  color: #4FD1FF;
  flex-shrink: 0;
}

.mi-hero-role {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.3px;
}

.mi-hero-company {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82) !important;
}

.mi-hero-company svg {
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.mi-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.mi-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #002347 !important;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mi-tag svg {
  color: #00AEEF;
  flex-shrink: 0;
}

/* ── Cards ── */
.mi-card {
  margin: 14px 16px 0;
  background: #fff;
  border: 1px solid rgba(0, 174, 239, 0.14);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 8px 28px rgba(0, 35, 71, 0.06);
}

.mi-card-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 800;
  color: #002347 !important;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.2px;
}

/* ── VS grid ── */
.mi-vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.mi-vs-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 0;
  padding: 12px 8px;
  border-radius: 16px;
  background: #F8FCFF;
  border: 1px solid rgba(0, 174, 239, 0.1);
}

.mi-vs-person img,
.mi-vs-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 174, 239, 0.2);
}

/* initials fallback shown when the talent has no photo / image fails */
.mi-vs-avatar-fb {
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00AEEF, #0072B5);
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}

.mi-vs-name {
  font-size: 11px;
  font-weight: 800;
  color: #002347 !important;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mi-vs-sub {
  font-size: 10px;
  font-weight: 600;
  color: #64748B !important;
}

.mi-vs-role-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #00AEEF;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 174, 239, 0.3);
}

.mi-vs-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.mi-vs-score {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00AEEF, #0072B5);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 174, 239, 0.4);
  font-family: 'Outfit', sans-serif;
}

.mi-vs-match {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B !important;
}

/* ── Score bars ── */
.mi-bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mi-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mi-bar-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569 !important;
}

.mi-bar-pct {
  font-size: 14px;
  font-weight: 800;
  color: #002347 !important;
  font-family: 'Outfit', sans-serif;
}

.mi-bar-track {
  height: 12px;
  background: #E8F7FD;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 35, 71, 0.06);
}

.mi-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mi-bar-fill-0 {
  background: linear-gradient(90deg, #00AEEF, #33C3F5);
}

.mi-bar-fill-1 {
  background: linear-gradient(90deg, #0095CC, #00AEEF);
}

.mi-bar-fill-2 {
  background: linear-gradient(90deg, #007BA8, #0095CC);
}

/* ── AI insight ── */
.mi-ai {
  background: linear-gradient(135deg, #E8F7FD 0%, #fff 60%);
  border-left: 4px solid #00AEEF;
}

.mi-ai-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.mi-ai-title {
  font-size: 14px;
  font-weight: 800;
  color: #002347 !important;
  font-family: 'Outfit', sans-serif;
}

.mi-ai-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #334155 !important;
}

/* ── Bullets ── */
.mi-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mi-bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mi-bullet-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8F7FD, #fff);
  border: 1px solid rgba(0, 174, 239, 0.2);
  color: #00AEEF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.mi-bullet-text {
  font-size: 13px;
  line-height: 1.6;
  color: #334155 !important;
  flex: 1;
}

/* ── Actions ── */
.mi-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 0;
  max-width: 720px;
  margin: 0 auto;
}

.mi-btn-primary,
.mi-btn-secondary {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mi-btn-primary {
  color: #fff !important;
  background: #00AEEF;
  box-shadow: 0 8px 24px rgba(0, 174, 239, 0.32);
}

.mi-btn-primary:active {
  transform: scale(0.98);
}

.mi-btn-secondary {
  color: #002347 !important;
  background: #fff;
  border: 1.5px solid rgba(0, 174, 239, 0.28);
}

.mi-empty {
  padding: 40px 24px;
  text-align: center;
  color: #64748B !important;
}

/* ─────────────────────────────────────────────
   MOBILE RESPONSIVE — Match Insights (≤520px)
   ───────────────────────────────────────────── */
@media (max-width: 520px) {
  .mi-hero { margin: 14px 12px 0; border-radius: 24px; }
  .mi-hero-inner { padding: 20px 18px; gap: 16px; border-radius: 22px; }
  .mi-hero-ring { width: 92px; height: 92px; }
  .mi-hero-role { font-size: 17px; }
  .mi-hero-company { font-size: 12.5px; margin-bottom: 12px; }
  .mi-ring-pct { font-size: 19px; }
  .mi-tag { font-size: 10px; padding: 5px 10px; }
  .mi-hero-tags { gap: 6px; }

  .mi-card { margin: 12px 12px 0; padding: 16px; border-radius: 18px; }
  .mi-card-title { font-size: 14px; margin-bottom: 14px; }

  .mi-vs-grid { gap: 6px; }
  .mi-vs-person { padding: 12px 4px; border-radius: 13px; }
  .mi-vs-person img,
  .mi-vs-avatar,
  .mi-vs-role-icon { width: 46px; height: 46px; }
  .mi-vs-avatar-fb { font-size: 16px; }
  .mi-vs-role-icon { border-radius: 13px; }
  .mi-vs-name { font-size: 10.5px; }
  .mi-vs-sub { font-size: 9px; }
  .mi-vs-score { width: 48px; height: 48px; font-size: 12px; }

  .mi-bar-label { font-size: 12px; }
  .mi-bar-pct { font-size: 13px; }

  .mi-actions { padding: 14px 12px 0; }
  .mi-btn-primary,
  .mi-btn-secondary { padding: 15px 18px; font-size: 14px; border-radius: 14px; }
}

/* Very narrow phones (≤400px): stack ring above text so the title never clips */
@media (max-width: 400px) {
  .mi-hero-inner { flex-direction: column; text-align: center; gap: 14px; }
  .mi-hero-body { align-items: center; }
  .mi-hero-tags { justify-content: center; }
}

/* Protect all match insights text from global heading overrides */
#smart-match-insights .mi-hero-role,
#smart-match-insights .mi-hero-company,
#smart-match-insights .mi-hero-badge,
#smart-match-insights .mi-ring-pct,
#smart-match-insights .mi-ring-txt,
#smart-match-insights .mi-tag,
#smart-match-insights .mi-card-title,
#smart-match-insights .mi-bar-label,
#smart-match-insights .mi-bar-pct,
#smart-match-insights .mi-ai-title,
#smart-match-insights .mi-ai-text,
#smart-match-insights .mi-bullet-text,
#smart-match-insights .mi-vs-name,
#smart-match-insights .mi-vs-sub,
#smart-match-insights .mi-vs-score,
#smart-match-insights .mi-vs-match,
#smart-match-insights .mi-title,
#smart-match-insights .mi-header-sub {
  font-family: 'Outfit', 'DM Sans', sans-serif;
}

@media (min-width: 768px) {
  .mi-page {
    max-width: 680px;
    margin: 12px auto 32px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 35, 71, 0.1);
    background: #fff;
  }

  .mi-hero {
    margin: 20px 20px 0;
  }

  .mi-card {
    margin-left: 20px;
    margin-right: 20px;
  }

  .mi-actions {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
  }

  #smart-match-insights > .mi-page {
    max-width: 680px !important;
    margin: 16px auto 32px !important;
    background: linear-gradient(180deg, #E8F7FD 0%, #fff 30%) !important;
  }
}

/* ============================================================================
   CASTING TEXT POSTS (Threads-style)
   Composer, shared formatting classes, feed card, reels text card.
   Cyan brand. Fully responsive — long text never breaks any layout.
   ============================================================================ */

/* ── Shared markdown-lite formatted body (feed preview, detail, reels) ── */
.cast-fmt { color: #262626; font-size: 14px; line-height: 1.65; word-break: break-word; overflow-wrap: anywhere; }
.cast-fmt-h { font-family: 'Outfit', sans-serif; color: #002347; font-weight: 800; margin: 14px 0 6px; line-height: 1.3; }
.cast-fmt h3.cast-fmt-h { font-size: 16px; }
.cast-fmt h4.cast-fmt-h { font-size: 14.5px; }
.cast-fmt h5.cast-fmt-h, .cast-fmt h6.cast-fmt-h { font-size: 13.5px; }
.cast-fmt p { margin: 0 0 10px; }
.cast-fmt strong { color: #0F172A; font-weight: 800; }
.cast-fmt em { font-style: italic; }
.cast-fmt-ul, .cast-fmt-ol { margin: 4px 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; }
.cast-fmt-ul li { list-style: none; position: relative; padding-left: 16px; }
.cast-fmt-ul li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #00AEEF; }
.cast-fmt-ol { list-style: decimal; }
.cast-fmt-ol li { padding-left: 2px; }
.cast-fmt-ol li::marker { color: #00AEEF; font-weight: 800; }

/* ── Composer ── */
.cpost-toolbar {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 10px 12px; border-bottom: 1px solid #EEF4F8; background: #F8FCFF;
}
.cpost-tool {
  border: 1px solid rgba(0,174,239,0.22); background: #fff; color: #0072B5;
  border-radius: 9px; min-width: 34px; height: 32px; padding: 0 8px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 13px; font-weight: 700; font-family: 'DM Sans', sans-serif; transition: all .15s;
}
.cpost-tool:hover { background: #E8F7FD; }
.cpost-tool:active { transform: scale(0.95); }
.cpost-tool i { font-size: 16px; }
.cpost-tool-preview { margin-left: auto; }
.cpost-textarea {
  width: 100%; min-height: 320px; max-height: 60vh; box-sizing: border-box;
  border: none; outline: none; resize: vertical; padding: 16px;
  font-family: 'DM Sans', 'SFMono-Regular', monospace; font-size: 14px; line-height: 1.6;
  color: #1E293B; background: #fff;
}
.cpost-preview {
  padding: 16px; min-height: 320px; max-height: 60vh; overflow-y: auto; background: #fff;
}
.cpost-preview.cast-fmt, .cpost-preview { color: #262626; font-size: 14px; line-height: 1.65; }
.cpost-footer {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-top: 1px solid #EEF4F8; background: #F8FCFF;
}
.cpost-count { font-size: 12.5px; font-weight: 800; color: #64748B; font-family: 'Outfit', sans-serif; white-space: nowrap; }
.cpost-count-bar { flex: 1; height: 6px; background: #E2E8F0; border-radius: 99px; overflow: hidden; }
.cpost-count-fill { height: 100%; width: 0; background: #00AEEF; border-radius: 99px; transition: width .25s ease, background .25s ease; }
.cpost-publish {
  width: 100%; border: none; border-radius: 14px; padding: 16px; margin-top: 4px;
  font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 800; cursor: pointer;
  background: #CBD5E1; color: #fff; transition: all .2s;
}
.cpost-publish.is-ready { background: #00AEEF; box-shadow: 0 8px 22px rgba(0,174,239,0.32); }
.cpost-publish:disabled { cursor: not-allowed; }

/* ── Feed casting card ── */
.cast-card {
  background: #fff; border-radius: 18px; margin-bottom: 16px;
  border: 1px solid rgba(0,174,239,0.16); box-shadow: 0 6px 22px rgba(0,35,71,0.05);
  overflow: hidden;
}
.cast-card-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; }
.cast-card-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 800; letter-spacing: .3px;
  background: #E8F7FD; color: #0072B5; border: 1px solid rgba(0,174,239,0.28);
}
.cast-card-badge.urgent { background: #FEE2E2; color: #DC2626; border-color: #FCA5A5; }
.cast-card-title {
  font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 800; color: #002347;
  line-height: 1.3; margin: 0 16px 8px; word-break: break-word;
}
.cast-card-facts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.cast-card-chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700;
  color: #334155; background: #F1F5F9; padding: 5px 10px; border-radius: 99px;
}
.cast-card-chip i { font-size: 13px; color: #0072B5; }
.cast-card-preview {
  position: relative; margin: 0 16px; max-height: 168px; overflow: hidden;
}
.cast-card-preview::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff); pointer-events: none;
}
.cast-card-readmore {
  display: inline-flex; align-items: center; gap: 4px; margin: 6px 16px 0;
  background: none; border: none; color: #00AEEF; font-weight: 800; font-size: 13px;
  cursor: pointer; padding: 4px 0; font-family: 'DM Sans', sans-serif;
}
.cast-card-actions { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid #F1F5F9; margin-top: 12px; }
.cast-audition-btn {
  flex: 1; border: none; border-radius: 12px; padding: 12px; cursor: pointer;
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 800;
  background: #00AEEF; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .15s;
}
.cast-audition-btn:active { transform: scale(0.98); }
.cast-audition-btn.applied { background: #ECFDF5; color: #059669; cursor: default; }
.cast-audition-btn.closed { background: #F1F5F9; color: #94A3B8; cursor: not-allowed; }
.cast-detail-btn {
  border: 1.5px solid rgba(0,174,239,0.3); background: #fff; color: #0072B5;
  border-radius: 12px; padding: 12px 16px; font-weight: 800; font-size: 13px; cursor: pointer;
  font-family: 'Outfit', sans-serif; white-space: nowrap;
}
.cast-applicants-badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800;
  color: #0072B5; background: #E8F7FD; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(0,174,239,0.25);
}

/* ── Reels text casting card (fills the 9:16 phone frame) ── */
.reel-cast-slide {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: 22px 20px; box-sizing: border-box; overflow: hidden;
  background: linear-gradient(160deg, #002347 0%, #013a63 55%, #00557d 100%);
  color: #fff;
}
.reel-cast-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .4px;
  background: rgba(0,174,239,0.2); border: 1px solid rgba(79,209,255,0.5); color: #4FD1FF; margin-bottom: 14px;
}
.reel-cast-title { font-family: 'Outfit', sans-serif; font-size: 21px; font-weight: 800; line-height: 1.25; margin: 0 0 8px; }
.reel-cast-company { font-size: 13px; color: rgba(255,255,255,0.8); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.reel-cast-body {
  flex: 1; min-height: 0; overflow-y: auto; font-size: 13.5px; line-height: 1.6;
  color: rgba(255,255,255,0.92); -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent); mask-image: linear-gradient(180deg, #000 88%, transparent);
}
.reel-cast-body .cast-fmt-h { color: #fff; }
.reel-cast-body strong { color: #fff; }
.reel-cast-body .cast-fmt-ul li::before { background: #4FD1FF; }
.reel-cast-actions { display: flex; gap: 10px; margin-top: 14px; }
.reel-cast-readmore {
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28); color: #fff;
  border-radius: 12px; padding: 12px 16px; font-weight: 800; font-size: 13px; cursor: pointer;
  font-family: 'Outfit', sans-serif;
}
.reel-cast-audition {
  flex: 1; background: #00AEEF; border: none; color: #fff; border-radius: 12px; padding: 12px;
  font-weight: 800; font-size: 14px; cursor: pointer; font-family: 'Outfit', sans-serif;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.reel-cast-audition.applied { background: rgba(16,185,129,0.9); }

/* ── Profile grid text-casting cell ── */
.cast-grid-cell {
  aspect-ratio: 1; border-radius: 12px; overflow: hidden; cursor: pointer; position: relative;
  background: linear-gradient(160deg, #002347, #00557d); color: #fff; padding: 14px;
  display: flex; flex-direction: column; box-sizing: border-box;
}
.cast-grid-cell .cgc-badge { font-size: 9px; font-weight: 800; letter-spacing: .4px; color: #4FD1FF; margin-bottom: 6px; }
.cast-grid-cell .cgc-title { font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 800; line-height: 1.25; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cast-grid-cell .cgc-preview { font-size: 10.5px; line-height: 1.5; color: rgba(255,255,255,0.75); flex: 1; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.cast-grid-cell .cgc-foot { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.85); margin-top: 6px; }

/* ── Responsive ── */
@media (max-width: 520px) {
  .cast-card-title { font-size: 16px; }
  .cast-card-preview { max-height: 150px; }
  .cast-card-actions { flex-wrap: wrap; }
  .cast-detail-btn { flex: 1; text-align: center; }
  .reel-cast-title { font-size: 19px; }
  .cpost-textarea, .cpost-preview { min-height: 260px; }
}

/* ============================================================================
   MUSIC FEATURE — picker, add-music slot, feed pill, reel/story attribution
   Cyan brand. Fully responsive.
   ============================================================================ */

/* ── "Add Music" slot in composers ── */
.ag-music-slot {
  width: 100%; display: flex; align-items: center; gap: 12px;
  border-radius: 14px; padding: 12px 14px; box-sizing: border-box;
  font-family: 'DM Sans', sans-serif; cursor: pointer; text-align: left;
  border: 1.5px dashed rgba(0, 174, 239, 0.4); background: #F8FCFF; color: #0F172A;
  transition: all 0.15s;
}
.ag-music-slot.add:hover { background: #E8F7FD; border-color: #00AEEF; }
.ag-music-slot.selected { border-style: solid; border-color: rgba(0, 174, 239, 0.35); background: #fff; }
.ag-music-slot-ic {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #00AEEF, #0072B5); color: #fff; font-size: 18px;
}
.ag-music-slot-add-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ag-music-slot-add-text strong { font-size: 14px; font-weight: 800; color: #002347; }
.ag-music-slot-add-text small { font-size: 11.5px; color: #64748B; }
.ag-music-slot-cover { width: 40px; height: 40px; border-radius: 9px; overflow: hidden; flex-shrink: 0; background: #E8F7FD; display: flex; align-items: center; justify-content: center; }
.ag-music-slot-cover img { width: 100%; height: 100%; object-fit: cover; }
.ag-music-slot-meta { flex: 1; min-width: 0; }
.ag-music-slot-title { font-size: 13.5px; font-weight: 800; color: #002347; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-music-slot-artist { font-size: 11.5px; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-music-slot-change { background: #E8F7FD; color: #0072B5; border: none; border-radius: 9px; padding: 7px 12px; font-size: 12px; font-weight: 800; cursor: pointer; flex-shrink: 0; }
.ag-music-slot-remove { background: none; border: none; color: #94A3B8; cursor: pointer; font-size: 18px; flex-shrink: 0; padding: 4px; }

/* ── Music Picker (bottom sheet) ── */
.mp-wrap { display: flex; flex-direction: column; max-height: 78vh; font-family: 'DM Sans', sans-serif; }
.mp-header { display: flex; align-items: center; gap: 10px; padding: 4px 4px 12px; }
.mp-title { flex: 1; font-size: 18px; font-weight: 800; color: #002347; font-family: 'Outfit', sans-serif; text-align: center; }
.mp-back, .mp-close { width: 34px; height: 34px; border: none; background: #F1F5F9; border-radius: 10px; cursor: pointer; color: #475569; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.mp-current { display: flex; align-items: center; gap: 8px; background: #E8F7FD; border: 1px solid rgba(0,174,239,0.25); border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; font-size: 12.5px; color: #002347; }
.mp-current i { color: #00AEEF; }
.mp-current span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.mp-current-remove { background: #fff; border: 1px solid rgba(0,174,239,0.3); color: #0072B5; border-radius: 8px; padding: 5px 10px; font-size: 11.5px; font-weight: 800; cursor: pointer; }
.mp-search { display: flex; align-items: center; gap: 8px; background: #F1F5F9; border-radius: 12px; padding: 0 14px; margin-bottom: 12px; }
.mp-search i { color: #94A3B8; font-size: 18px; }
.mp-search input { flex: 1; border: none; background: transparent; outline: none; padding: 13px 0; font-size: 15px; font-family: inherit; color: #0F172A; }
/* Filter chips (Trending / Popular / Recent + genres) — horizontal scroll,
   same visual language as the app's other pill filters. */
/* flex-shrink:0 is REQUIRED: .mp-wrap is a column flex container, so this row
   would otherwise be squeezed by the results list below it and the genre chips
   render vertically clipped (cut off mid-height). overflow-y:visible keeps the
   chips' focus ring and shadow from being cropped by the x-scroller. */
.mp-filters { display: flex; flex-shrink: 0; gap: 8px; overflow-x: auto; overflow-y: visible; padding: 2px 2px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mp-filters::-webkit-scrollbar { display: none; }
.mp-filter-chip { flex-shrink: 0; border: 1.5px solid #E2E8F0; background: #fff; color: #475569; border-radius: 99px; padding: 7px 14px; font-size: 12.5px; font-weight: 800; cursor: pointer; white-space: nowrap; font-family: 'Outfit', sans-serif; transition: all 0.15s; }
.mp-filter-chip:hover { border-color: rgba(0,174,239,0.4); color: #0072B5; }
.mp-filter-chip.active { background: #00AEEF; border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(0,174,239,0.22); }
.mp-filter-sep { flex-shrink: 0; width: 1px; align-self: stretch; margin: 4px 2px; background: #E2E8F0; }

.mp-results { overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; min-height: 120px; }
.mp-loading, .mp-empty { text-align: center; color: #64748B; padding: 30px 16px; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mp-empty i { font-size: 30px; color: #CBD5E1; }
.mp-empty small { color: #94A3B8; font-size: 11.5px; }
.mp-spin { animation: mp-spin 0.8s linear infinite; }
@keyframes mp-spin { to { transform: rotate(360deg); } }
.mp-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid #F1F5F9; }
.mp-cover { position: relative; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; border: none; padding: 0; cursor: pointer; flex-shrink: 0; background: #E8F7FD; }
.mp-cover img { width: 100%; height: 100%; object-fit: cover; }
.mp-cover-fallback { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #00AEEF, #0072B5); color: #fff; font-size: 20px; }
.mp-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,35,71,0.35); color: #fff; font-size: 18px; opacity: 0; transition: opacity 0.15s; }
.mp-cover:hover .mp-play, .mp-play { opacity: 1; }
.mp-meta { flex: 1; min-width: 0; cursor: pointer; }
.mp-song-title { font-size: 14px; font-weight: 800; color: #002347; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-song-artist { font-size: 12px; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-use { background: #00AEEF; color: #fff; border: none; border-radius: 10px; padding: 8px 16px; font-size: 13px; font-weight: 800; cursor: pointer; flex-shrink: 0; font-family: 'Outfit', sans-serif; }

/* ── Trim view ── */
.mp-trim { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.mp-trim-head { display: flex; align-items: center; gap: 12px; }
.mp-trim-cover { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: #E8F7FD; display: flex; align-items: center; justify-content: center; }
.mp-trim-cover img { width: 100%; height: 100%; object-fit: cover; }
.mp-trim-meta { flex: 1; min-width: 0; }
.mp-trim-preview { width: 46px; height: 46px; border-radius: 50%; border: none; background: #00AEEF; color: #fff; font-size: 20px; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.mp-len-row { display: flex; gap: 8px; }
.mp-len { flex: 1; border: 1.5px solid #E2E8F0; background: #fff; color: #475569; border-radius: 10px; padding: 9px; font-size: 13px; font-weight: 800; cursor: pointer; font-family: 'Outfit', sans-serif; }
.mp-len.active { border-color: #00AEEF; background: #E8F7FD; color: #0072B5; }
.mp-len:disabled { opacity: 0.4; cursor: not-allowed; }
.mp-wf { position: relative; height: 68px; background: #F1F5F9; border-radius: 12px; overflow: hidden; touch-action: none; -webkit-user-select: none; user-select: none; }
.mp-wf-bars { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; padding: 0 4px; }
.mp-wf-bar { flex: 1; background: #CBD5E1; border-radius: 2px; min-width: 2px; }
.mp-wf-window { position: absolute; top: 0; bottom: 0; background: rgba(0,174,239,0.22); border: 2px solid #00AEEF; border-radius: 10px; cursor: grab; box-shadow: 0 0 0 100vmax rgba(255,255,255,0.35); }
.mp-trim-hint { font-size: 11.5px; color: #94A3B8; text-align: center; }
.mp-trim-actions { display: flex; gap: 10px; }
.mp-trim-cancel { flex: 1; border: 1.5px solid #E2E8F0; background: #fff; color: #475569; border-radius: 12px; padding: 13px; font-size: 14px; font-weight: 800; cursor: pointer; }
.mp-trim-done { flex: 2; border: none; background: #00AEEF; color: #fff; border-radius: 12px; padding: 13px; font-size: 14px; font-weight: 800; cursor: pointer; font-family: 'Outfit', sans-serif; }

/* ── Feed image-post music pill ── */
.feed-music-pill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 0 16px 4px; padding: 7px 12px 7px 8px; border-radius: 99px; background: #F1F5F9; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.feed-music-pill.playing { background: #E8F7FD; }
.feed-music-pill-ic { width: 26px; height: 26px; border-radius: 50%; background: #00AEEF; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.feed-music-pill-marquee { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.feed-music-pill-marquee span { font-size: 12.5px; font-weight: 700; color: #334155; }
.feed-music-pill.playing .feed-music-pill-marquee span { display: inline-block; animation: mp-marquee 9s linear infinite; }
@keyframes mp-marquee { 0%,10% { transform: translateX(0); } 90%,100% { transform: translateX(calc(-100% + 160px)); } }
.feed-music-pill-note { color: #94A3B8; font-size: 15px; flex-shrink: 0; }

/* (Removed) The in-video reel music-title text overlay (.reel-music-pill) — the
   song title/artist now lives ONLY in the rotating .reel-music-disc + its info
   sheet, shared by the Home Feed and Reels page. */

/* ── Rotating music disc (shared: Home Feed + Reels page) ──
   The SINGLE music-metadata component. Circular, shows the song artwork (or a
   default note), spins while the reel plays, and opens the music-info sheet on
   tap. Replaces the old in-video music-title text overlay on BOTH screens. The
   Reels-page screen also declares matching sizes inline; this global copy makes
   the Home-Feed reel disc render identically without the screen's inline CSS. */
.reel-music-disc {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  animation: reelDiscSpin 4s linear infinite;
  animation-play-state: paused; /* JS runs it while the reel is playing */
}
.reel-music-disc-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.reel-music-disc-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#00AEEF,#7C3AED); color: #fff; font-size: 14px; border-radius: 50%; }
.reel-music-disc::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 7px; height: 7px; transform: translate(-50%,-50%);
  border-radius: 50%; background: rgba(0,0,0,0.55);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.25); pointer-events: none;
}
@keyframes reelDiscSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .reel-music-disc { animation: none !important; } }
/* Home-Feed reel: float the disc in the bottom-RIGHT corner. The creator
   name/avatar overlay (.feed-reel-overlay-bottom) sits at bottom-LEFT and spans
   the full width, so a bottom-left disc covered the name. Bottom-right keeps the
   disc clear of the name (which is left-aligned) — small, unobtrusive, no video
   text overlay. Sits above the name overlay and stays clickable. */
.feed-reel-music-disc {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 6;
  width: 34px;
  height: 34px;
  pointer-events: auto;
}

/* ── Reel music-info bottom sheet (tapping the rotating disc) ── */
.reel-music-sheet { padding: 6px 20px 20px; font-family: 'DM Sans', sans-serif; }
.reel-music-sheet-head { display: flex; align-items: center; gap: 14px; }
.reel-music-sheet-cover { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: #E8F7FD; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,35,71,0.14); }
.reel-music-sheet-cover img { width: 100%; height: 100%; object-fit: cover; }
.reel-music-sheet-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#00AEEF,#7C3AED); color: #fff; font-size: 26px; }
.reel-music-sheet-meta { flex: 1; min-width: 0; }
.reel-music-sheet-title { font-size: 16px; font-weight: 800; color: #002347; font-family: 'Outfit', sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel-music-sheet-artist { font-size: 13.5px; color: #475569; font-weight: 600; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel-music-sheet-sub { font-size: 12px; color: #94A3B8; font-weight: 600; margin-top: 6px; display: flex; align-items: center; gap: 5px; }
.reel-music-sheet-sub i { font-size: 13px; }

/* ── Story viewer music chip ── */
.ig-story-view-music { position: absolute; left: 16px; bottom: 78px; z-index: 20; display: inline-flex; align-items: center; gap: 6px; max-width: 70%; padding: 7px 14px; border-radius: 99px; background: rgba(0,0,0,0.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 12px; font-weight: 700; }
.ig-story-view-music i { color: #4FD1FF; }
.ig-story-view-music span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ── Story editor music chip ──
   Positioned above the caption bar (like the story viewer's music chip) so the
   selected track is clearly visible. Previously it was a static-flow element at
   the top-left of the absolutely-positioned edit step, hidden behind the app
   bar — so a picked song showed nothing. Now it's an anchored, tappable pill. */
.ig-story-music-chip {
  position: absolute;
  left: 50%;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 29;
  display: none; /* JS flips to flex when a song is selected */
  align-items: center;
  gap: 6px;
  max-width: 82%;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(0,174,239,0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  cursor: pointer;
}
.ig-story-music-chip span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 200px; }
.ig-story-music-chip button { background: none; border: none; color: #fff; cursor: pointer; padding: 0 0 0 4px; font-size: 14px; display: flex; align-items: center; }
.ig-story-edit-tool[data-tool="music"] i { color: inherit; }
/* Active (music tool selected) highlight to match the other edit tools. */
.ig-story-edit-tool[data-tool="music"].has-music { background: #00AEEF; }

@media (max-width: 520px) {
  .mp-wrap { max-height: 82vh; }
  .feed-music-pill { margin-left: 12px; margin-right: 12px; }
}

/* Desktop: keep the Music Picker bottom sheet phone-width and centered.
   The generic desktop cap (#desktop-header ~ #active-bottom-sheet .bottom-sheet)
   only applies while the desktop header is visible — but the story editor is a
   no-desktop-header screen, so opening the picker there left the sheet stretched
   edge-to-edge. Cap it directly on any bottom sheet that hosts the picker, so it
   stays contained regardless of which screen opened it. Mobile is unaffected. */
@media (min-width: 768px) {
  #active-bottom-sheet.mp-sheet .bottom-sheet,
  #active-bottom-sheet .bottom-sheet:has(.mp-wrap) {
    max-width: 480px !important;
    margin: 0 auto !important;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0 !important;
  }
}

/* ============================================================================
   RESPONSIVE FIXES — tablet band (768–1023px) + fixed-bar alignment + short
   viewports. CSS-only; no markup, logic or visual-design changes. The desktop
   sidebar (250px) leaves only ~518–773px of content in this band, so desktop
   two-column layouts that need 900px+ collapse to the existing single-column
   presentation until they genuinely fit (≥1024px).
   ============================================================================ */

/* Home feed: the sidebar widgets column only fits at ≥1024px. In 768–1023 it
   crushed the feed — hide it there (it already doesn't exist on mobile). */
@media (min-width: 768px) and (max-width: 1023px) {
  .feed-side-col { display: none !important; }
  .feed-main-col { max-width: 640px !important; margin: 0 auto; }

  /* Settings hub / settings layout: 280px sidebar + minmax(300px+) content
     cannot fit — stack to one column in this band. */
  .set-hub,
  .settings-layout-wrapper { grid-template-columns: 1fr !important; }
  .set-hub-main,
  .settings-main-content { grid-template-columns: 1fr !important; }
}

/* Fixed bottom bars: these center on the full viewport (left:50%), but at
   ≥768px every screen is shifted right by the 250px sidebar — so the bars sat
   offset over the sidebar instead of under their content. Re-center them on
   the content area. Scoped per screen; mobile (<768) untouched. */
@media (min-width: 768px) {
  #casting-call-detail [style*="position:fixed"][style*="translateX(-50%)"],
  #comments [style*="position:fixed"][style*="translateX(-50%)"] {
    left: calc(50% + 125px) !important;
  }
  #reviews [style*="position:fixed"][style*="left:20px"] {
    left: 270px !important; /* 250px sidebar + original 20px inset */
  }
  #talent-leaderboard .lb-me-card-wrap {
    left: 250px !important;
  }
}

/* Short-viewport (landscape phones / small tablets): dynamic-viewport heights
   so bottom composers and progress bars aren't clipped by browser chrome. */
@media (orientation: landscape) and (max-height: 500px) {
  .ig-story-root { height: 100dvh !important; min-height: 0 !important; }
}

/* ============================================
   MEDIA DOWNLOAD FRICTION (Instagram-style) — SCOPED
   Applies ONLY to user-content media (feed posts, reels, stories, chat
   attachments, full-image viewer). This is deliberately NOT global: no
   document-level context-menu block. Pairs with public/js/media-guard.js
   which handles contextmenu + dragstart for the same scoped targets.
   ============================================ */
.feed-post-media-container img,
.feed-post-media-container video,
.feed-reel-media img,
.feed-reel-media video,
.reel-phone img,
.reel-phone video,
.reel-video,
.reel-phone-bg,
.ig-story-media img,
.ig-story-media video,
.story-media img,
.story-media video,
#chat-messages-container img,
#chat-messages-container video,
#full-image-modal img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
}

