/* =====================================================
   RUNLAA POST CARDS
   single source of truth for front/partials/post-cards.blade.php
===================================================== */

.social-post-card{
  position:relative;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}

.social-post-card.has-cover .social-post-cover-wrap{
  position:relative;
}

.social-post-cover{
  display:block;
  text-decoration:none;
}

.social-post-cover img,
.cover-thumb{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
  border-top-left-radius:18px;
  border-top-right-radius:18px;
  margin-bottom:14px;
  box-shadow:var(--shadow-soft);
}

.social-post-card.has-cover .social-post-cover img{
  border-top-left-radius:18px;
  border-top-right-radius:18px;
  margin-bottom:0;
}

.social-post-badge{
  position:absolute;
  left:12px;
  top:12px;
  z-index:8;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 12px;
  border-radius:999px;
  font-weight:700;
  font-size:.84rem;
  color:#fff;
  background:var(--rl-global-orange-btn);
  box-shadow:var(--shadow-soft);
}

.badge-quality{ background:var(--rl-global-orange-btn); }
.badge-rising{ background:var(--rl-global-orange-btn); }
.badge-hot{ background:linear-gradient(135deg,#dc2626,#f97316); }

.social-post-body{
  padding:18px 18px 16px;
}

.social-post-card.has-cover .social-post-body{
  padding-top:16px;
}

.social-post-top{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:10px;
}

.social-post-avatar{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  flex:0 0 auto;
}

.social-post-avatar.inline,
.social-post-avatar.overlay-avatar{
  width:48px;
  height:48px;
  min-width:48px;
  min-height:48px;
  border-radius:50%;
  overflow:hidden;
}

.social-post-avatar img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.75);
  box-shadow:var(--shadow-soft);
}

.social-post-author-wrap{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.social-post-author-row{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  margin-bottom:2px;
}

.social-post-author{
  min-width:0;
}

.social-author-link{
  color:var(--text);
  text-decoration:none;
  font-weight:700;
}

.social-author-link:hover{
  color:var(--text);
  text-decoration:none;
}

.social-post-time{
  color:var(--text);
  opacity:.76;
  font-size:.84rem;
  line-height:1.35;
}

.social-post-title{
  margin:0 0 8px;
  font-size:1.06rem;
  line-height:1.4;
  font-weight:800;
}

.social-post-title a{
  color:var(--text);
  text-decoration:none;
}

.social-post-title a:hover{
  color:var(--text);
  text-decoration:none;
}

.social-post-excerpt{
  margin:0 0 12px;
  color:var(--text);
  opacity:.88;
  line-height:1.55;
}

.social-post-bottom{
  display:grid;
  gap:12px;
}

.social-post-stats{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  color:var(--text);
  opacity:.82;
  font-size:.92rem;
}

.social-post-stats span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.social-post-actions,
.social-post-actions-fixed{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.social-post-actions-fixed .action-btn,
.social-post-actions-fixed .social-vote-btn,
.social-post-actions-fixed .social-share-btn,
.social-post-actions .action-btn,
.social-post-actions .social-vote-btn,
.social-post-actions .social-share-btn{
  min-height:46px;
}

.action-btn,
.social-vote-btn,
.social-share-btn,
.like-btn-inline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:100%;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--text);
  text-decoration:none;
  font-weight:700;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.action-btn:hover,
.social-vote-btn:hover,
.social-share-btn:hover,
.like-btn-inline:hover{
  color:var(--text);
  text-decoration:none;
  transform:translateY(-1px);
}

.action-btn strong,
.social-vote-btn strong,
.social-share-btn strong,
.like-btn-inline strong{
  font-weight:800;
}

.action-btn-tip{
  background:linear-gradient(135deg, rgba(245,158,11,.12), var(--rl-brand-soft));
}

.action-btn-like.voted,
.action-btn-like.is-done,
.social-vote-btn.voted,
.social-vote-btn.is-done,
.social-share-btn.voted,
.social-share-btn.is-done,
.like-btn-inline.voted,
.like-btn-inline.is-done{
  box-shadow:var(--shadow-soft);
}

.post-admin-tools{
  display:flex;
  align-items:center;
  gap:8px;
}

.post-admin-tools.image-tools{
  position:absolute;
  right:12px !important;
  top:12px !important;
  z-index:10;
}

.post-admin-tools.text-tools{
  margin-left:auto;
}

.post-mini-btn,
.post-report-toggle{
  width:14px;
  height:14px;
  min-width:14px;
  min-height:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:linear-gradient(135deg,#b45309,#d97706);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 10px 24px rgba(180,83,9,.28);
  cursor:pointer;
  text-decoration:none;
}

.post-mini-btn:hover,
.post-report-toggle:hover{
  color:#fff;
  background:var(--rl-global-orange-btn);
  text-decoration:none;
}

.post-mini-btn i,
.post-report-toggle i{
  line-height:1;
  font-size: 10px;
}

.post-report-box{
  position:relative;
}

.post-report-pop{
  position:absolute;
  right:0;
  bottom:calc(100% + 8px);
  width:min(320px, calc(100vw - 24px));
  padding:14px;
  border-radius:18px;
  background:var(--panel);
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  z-index:40;
}

.post-report-title{
  font-weight:800;
  color:var(--text);
  margin-bottom:10px;
}

.post-report-field{
  min-height:88px;
}

.post-report-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
}

html[data-theme="dark-orange"] .social-post-time{
  opacity:.9;
}

@media (max-width: 767.98px){
  .social-post-body{
    padding:14px 14px 14px;
  }

  .social-post-avatar.inline,
  .social-post-avatar.overlay-avatar{
    width:44px;
    height:44px;
    min-width:44px;
    min-height:44px;
  }

  .social-post-actions,
  .social-post-actions-fixed{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .social-post-cover img,
  .cover-thumb{
    border-radius:16px;
  }
}

/* =========================================================
   RUNLAA shared social action buttons
   facebook-like / theme-safe / multi-page
========================================================= */

.action-btn,
.like-btn-inline,
.tip-btn-inline,
.js-like-btn,
.post-mini-btn,
a.action-btn,
button.action-btn,
a.like-btn-inline,
button.like-btn-inline,
a.tip-btn-inline,
button.tip-btn-inline{
  appearance:none;
  min-height:40px;
  padding:8px 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--panel);
  color:var(--text);
  text-decoration:none;
  font-weight:700;
  line-height:1;
  box-shadow:none;
  transition:
    background var(--rl-speed) ease,
    border-color var(--rl-speed) ease,
    color var(--rl-speed) ease,
    transform var(--rl-speed-fast) ease,
    box-shadow var(--rl-speed) ease;
}

.action-btn:hover,
.like-btn-inline:hover,
.tip-btn-inline:hover,
.js-like-btn:hover,
.post-mini-btn:hover,
a.action-btn:hover,
button.action-btn:hover,
a.like-btn-inline:hover,
button.like-btn-inline:hover,
a.tip-btn-inline:hover,
button.tip-btn-inline:hover{
  background:var(--panel2);
  border-color:var(--rl-brand-line);
  color:var(--rl-brand);
  transform:translateY(-1px);
  box-shadow:var(--rl-shadow-xs);
}

.action-btn:active,
.like-btn-inline:active,
.tip-btn-inline:active,
.js-like-btn:active,
.post-mini-btn:active{
  transform:translateY(0);
  box-shadow:none;
}

.action-btn i,
.like-btn-inline i,
.tip-btn-inline i,
.js-like-btn i,
.post-mini-btn i{
  font-size:1rem;
  line-height:1;
}

.like-btn-inline.is-done,
.js-like-btn.is-done{
  background:var(--chip);
  border-color:var(--rl-brand-line);
  color:var(--rl-brand);
}

.action-btn-tip,
.tip-btn-inline{
  background:linear-gradient(180deg,var(--panel),var(--panel2));
}

.action-btn-tip:hover,
.tip-btn-inline:hover{
  color:var(--rl-brand-strong);
}

.post-mini-btn{
  min-width:40px;
  width:40px;
  padding:0;
  border-radius:12px;
}

/* shared row layout */
.post-actions-row,
.post-card-actions,
.social-post-actions-fixed,
.story-actions-row,
.action-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  align-items:center;
}

.post-actions-row > *,
.post-card-actions > *,
.social-post-actions-fixed > *,
.story-actions-row > *,
.action-row > *{
  min-width:0;
}

.post-actions-row form,
.post-card-actions form,
.social-post-actions-fixed form,
.story-actions-row form,
.action-row form{
  margin:0;
}

.post-actions-row form .action-btn,
.post-actions-row form .like-btn-inline,
.post-actions-row form .tip-btn-inline,
.post-card-actions form .action-btn,
.post-card-actions form .like-btn-inline,
.post-card-actions form .tip-btn-inline,
.social-post-actions-fixed form .action-btn,
.social-post-actions-fixed form .like-btn-inline,
.social-post-actions-fixed form .tip-btn-inline,
.story-actions-row form .action-btn,
.story-actions-row form .like-btn-inline,
.story-actions-row form .tip-btn-inline,
.action-row form .action-btn,
.action-row form .like-btn-inline,
.action-row form .tip-btn-inline{
  width:100%;
}

@media (max-width: 767.98px){
  .post-actions-row,
  .post-card-actions,
  .social-post-actions-fixed,
  .story-actions-row,
  .action-row{
    grid-template-columns:1fr;
    gap:8px;
  }

  .action-btn,
  .like-btn-inline,
  .tip-btn-inline,
  .js-like-btn{
    justify-content:flex-start;
    width:100%;
  }
}

/* ===== RUNLAA social action buttons theme-consistent states ===== */

.action-btn:hover,
.like-btn-inline:hover,
.tip-btn-inline:hover,
.js-like-btn:hover,
.post-mini-btn:hover,
a.action-btn:hover,
button.action-btn:hover,
a.like-btn-inline:hover,
button.like-btn-inline:hover,
a.tip-btn-inline:hover,
button.tip-btn-inline:hover{
  background:var(--panel2) !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
  transform:translateY(-1px);
  box-shadow:var(--rl-shadow-xs);
}

.action-btn:active,
.like-btn-inline:active,
.tip-btn-inline:active,
.js-like-btn:active,
.post-mini-btn:active,
a.action-btn:active,
button.action-btn:active,
a.like-btn-inline:active,
button.like-btn-inline:active,
a.tip-btn-inline:active,
button.tip-btn-inline:active{
  background:var(--panel2) !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
  transform:translateY(0);
  box-shadow:none;
}

.like-btn-inline.is-done,
.js-like-btn.is-done{
  background:var(--panel2) !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
}

.action-btn-tip,
.tip-btn-inline{
  background:var(--panel) !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
}

.action-btn-tip:hover,
.tip-btn-inline:hover{
  background:var(--panel2) !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
}

.action-btn i,
.like-btn-inline i,
.tip-btn-inline i,
.js-like-btn i,
.post-mini-btn i{
  color:inherit !important;
}


/* ===== RUNLAA social action buttons theme-consistent states ===== */

.action-btn:hover,
.like-btn-inline:hover,
.tip-btn-inline:hover,
.js-like-btn:hover,
.post-mini-btn:hover,
a.action-btn:hover,
button.action-btn:hover,
a.like-btn-inline:hover,
button.like-btn-inline:hover,
a.tip-btn-inline:hover,
button.tip-btn-inline:hover{
  background:var(--panel2) !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
  transform:translateY(-1px);
  box-shadow:var(--rl-shadow-xs);
}

.action-btn:active,
.like-btn-inline:active,
.tip-btn-inline:active,
.js-like-btn:active,
.post-mini-btn:active,
a.action-btn:active,
button.action-btn:active,
a.like-btn-inline:active,
button.like-btn-inline:active,
a.tip-btn-inline:active,
button.tip-btn-inline:active{
  background:var(--panel2) !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
  transform:translateY(0);
  box-shadow:none;
}

.like-btn-inline.is-done,
.js-like-btn.is-done{
  background:var(--panel2) !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
}

.action-btn-tip,
.tip-btn-inline{
  background:var(--panel) !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
}

.action-btn-tip:hover,
.tip-btn-inline:hover{
  background:var(--panel2) !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
}

.action-btn i,
.like-btn-inline i,
.tip-btn-inline i,
.js-like-btn i,
.post-mini-btn i{
  color:inherit !important;
}


/* ===== RUNLAA active states = orange theme ===== */

/* liked / shared / tipped done state */
.like-btn-inline.is-done,
.js-like-btn.is-done,
.action-btn.is-done,
.action-btn-share.is-done,
.action-btn-tip.is-done,
.tip-btn-inline.is-done,
.share-btn-inline.is-done{
  background:var(--chip) !important;
  border-color:var(--rl-brand-line) !important;
  color:var(--rl-brand) !important;
  box-shadow:var(--rl-shadow-xs);
}

/* pressed / active */
.action-btn:active,
.like-btn-inline:active,
.tip-btn-inline:active,
.share-btn-inline:active,
.js-like-btn:active,
.action-btn-share:active,
.action-btn-tip:active{
  background:var(--chip) !important;
  border-color:var(--rl-brand-line) !important;
  color:var(--rl-brand) !important;
  box-shadow:none !important;
}

/* hover stays theme-safe orange */
.action-btn:hover,
.like-btn-inline:hover,
.tip-btn-inline:hover,
.share-btn-inline:hover,
.js-like-btn:hover,
.action-btn-share:hover,
.action-btn-tip:hover{
  background:var(--panel2) !important;
  border-color:var(--rl-brand-line) !important;
  color:var(--rl-brand) !important;
}

/* icons follow text color */
.action-btn i,
.like-btn-inline i,
.tip-btn-inline i,
.share-btn-inline i,
.js-like-btn i,
.action-btn-share i,
.action-btn-tip i{
  color:inherit !important;
}

/* kill bootstrap-style blue/red focus/active leftovers */
.action-btn:focus,
.like-btn-inline:focus,
.tip-btn-inline:focus,
.share-btn-inline:focus,
.js-like-btn:focus,
.action-btn-share:focus,
.action-btn-tip:focus{
  border-color:var(--rl-brand-line) !important;
  box-shadow:var(--rl-ring) !important;
  color:var(--rl-brand) !important;
}


/* =========================================================
   RUNLAA shared admin tools top-right
   edit / report across pages
========================================================= */

/* ensure parent cards can anchor top-right tools */
.post-card,
.story-page-local .glass-card,
.story-page-local .rl-feed-block,
.story-page-local .story-page-card,
.story-page-local article,
.story-page-local .card{
  position:relative;
}

/* shared wrapper */
.post-admin-tools,
.story-admin-tools{
  position:absolute;
  top:14px !important;
  right:14px !important;
  z-index:60 !important;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
}

/* shared button look */
.post-admin-action,
.story-admin-btn,
.post-admin-report-form button,
.post-admin-report-form .btn{
  appearance:none;
  min-width:40px;
  height:40px;
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  color:var(--text);
  text-decoration:none;
  box-shadow:none;
  transition:
    background var(--rl-speed) ease,
    border-color var(--rl-speed) ease,
    color var(--rl-speed) ease,
    transform var(--rl-speed-fast) ease,
    box-shadow var(--rl-speed) ease;
}

.post-admin-action:hover,
.story-admin-btn:hover,
.post-admin-report-form button:hover,
.post-admin-report-form .btn:hover{
  background:var(--panel2);
  border-color:var(--rl-brand-line);
  color:var(--rl-brand);
  transform:translateY(-1px);
  box-shadow:var(--rl-shadow-xs);
}

.post-admin-action:active,
.story-admin-btn:active,
.post-admin-report-form button:active,
.post-admin-report-form .btn:active{
  transform:translateY(0);
  box-shadow:none;
}

.post-admin-action i,
.story-admin-btn i,
.post-admin-report-form button i,
.post-admin-report-form .btn i{
  font-size:.95rem;
  line-height:1;
  color:inherit;
}

.post-admin-report-form{
  margin:0 !important;
}

/* keep content from colliding with top-right buttons */
.post-card .post-title,
.post-card .post-body,
.story-page-local h1,
.story-page-local .story-content,
.story-page-local .meta-wrap{
  padding-right:110px;
}

@media (max-width: 767.98px){
  .post-admin-tools,
  .story-admin-tools{
    top:10px;
    right:10px;
    gap:6px;
  }

  .post-admin-action,
  .story-admin-btn,
  .post-admin-report-form button,
  .post-admin-report-form .btn{
    min-width:36px;
    height:36px;
    padding:0 10px;
    border-radius:10px;
  }

  .post-card .post-title,
  .post-card .post-body,
  .story-page-local h1,
  .story-page-local .story-content,
  .story-page-local .meta-wrap{
    padding-right:90px;
  }
}

/* =========================================================
   RUNLAA force edit/report to top-right on every post
========================================================= */

/* anchor likely post containers */
.post-card,
.post-card-click,
.post-card-cover,
.post-cover-wrap,
.post-image-wrap,
.post-media-wrap,
.post-thumb-wrap,
.story-page-local .cover-thumb,
.story-page-local article,
.story-page-local .glass-card,
.story-page-local .rl-feed-block{
  position:relative !important;
}

/* hard override old middle positions */
.post-admin-tools,
.post-admin-tools.image-tools,
.post-admin-tools.text-tools,
.story-admin-tools{
  position:absolute !important;
  top:12px !important;
  right:12px !important;
  left:auto !important;
  bottom:auto !important;
  transform:none !important;
  margin:0 !important;
  z-index:120 !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
}

/* make sure forms/buttons inside do not break layout */
.post-admin-tools form,
.post-admin-tools.image-tools form,
.post-admin-tools.text-tools form,
.story-admin-tools form{
  margin:0 !important;
  display:inline-flex !important;
}

.post-admin-tools .post-mini-btn,
.post-admin-tools.image-tools .post-mini-btn,
.post-admin-tools.text-tools .post-mini-btn,
.story-admin-tools .story-admin-btn,
.post-admin-tools .post-admin-action,
.post-admin-tools button,
.post-admin-tools a{
  position:static !important;
}

/* if image overlay exists, tools must sit above it */
.post-card .post-admin-tools,
.post-card .post-admin-tools.image-tools,
.post-card .post-admin-tools.text-tools{
  z-index:130 !important;
}

/* keep title/body from colliding */
.post-card .post-title,
.post-card .post-body,
.post-card .post-excerpt,
.post-card .post-content,
.story-page-local h1,
.story-page-local .story-content{
  padding-right:100px !important;
}

@media (max-width: 767.98px){
  .post-admin-tools,
  .post-admin-tools.image-tools,
  .post-admin-tools.text-tools,
  .story-admin-tools{
    top:10px !important;
    right:10px !important;
    gap:6px !important;
  }

  .post-card .post-title,
  .post-card .post-body,
  .post-card .post-excerpt,
  .post-card .post-content,
  .story-page-local h1,
  .story-page-local .story-content{
    padding-right:84px !important;
  }
}

/* ===== RUNLAA shared edit modal host ===== */
#runlaaEditModalHost{
  --bs-modal-zindex: 50010;
}

#runlaaEditModalHost .modal-dialog{
  max-width: 960px;
}

#runlaaEditModalHost .rl-edit-modal-host__content{
  background: transparent;
  box-shadow: none;
}

#runlaaEditModalHost .modal-body{
  background: transparent;
}

#runlaaEditModalHost .modal-backdrop,
.modal-backdrop.show{
  z-index: 50000 !important;
}

#runlaaEditModalHost{
  z-index: 50010 !important;
}

@media (max-width: 767.98px){
  #runlaaEditModalHost .modal-dialog{
    max-width: calc(100vw - 16px);
    margin: 8px auto;
  }
}

/* ===== RUNLAA shared edit modal host ===== */
#runlaaEditModalHost{
  --bs-modal-zindex: 50010;
  z-index: 50010 !important;
}

#runlaaEditModalHost .modal-dialog{
  max-width: 960px;
}

#runlaaEditModalHost .rl-edit-modal-host__content{
  background: transparent;
  box-shadow: none;
}

#runlaaEditModalHost .modal-body{
  background: transparent;
}

.modal-backdrop.show{
  z-index: 50000 !important;
}

@media (max-width: 767.98px){
  #runlaaEditModalHost .modal-dialog{
    max-width: calc(100vw - 16px);
    margin: 8px auto;
  }
}

/* ===== RUNLAA edit button clickable fix ===== */
.post-admin-tools,
.post-admin-tools.image-tools,
.post-admin-tools.text-tools,
.story-admin-tools{
  pointer-events:auto !important;
}

.post-admin-tools .js-open-edit-modal,
.story-admin-tools .js-open-edit-modal,
.post-admin-tools button,
.story-admin-tools button{
  pointer-events:auto !important;
  cursor:pointer !important;
  position:relative;
  z-index:140 !important;
}

/* =========================================================
   RUNLAA edit popup polish
   aligned with panel / line / text tokens
========================================================= */

#runlaaEditModalHost{
  --bs-modal-zindex: 50010;
  z-index:50010 !important;
}

#runlaaEditModalHost .modal-dialog{
  max-width:920px;
}

#runlaaEditModalHost .modal-content{
  background:transparent !important;
  box-shadow:none !important;
  border:none !important;
}

#runlaaEditModalHost .modal-body{
  padding:0 !important;
  background:transparent !important;
}

#runlaaEditModalHost .edit-post-modal-content{
  background:var(--panel) !important;
  color:var(--text) !important;
  border:1px solid var(--line) !important;
  border-radius:var(--rl-radius-lg) !important;
  box-shadow:var(--shadow-soft) !important;
  overflow:hidden;
}

#runlaaEditModalHost .edit-post-modal-head{
  background:var(--panel) !important;
  border-bottom:1px solid var(--line) !important;
}

#runlaaEditModalHost .edit-post-modal-head .meta{
  color:var(--muted) !important;
}

#runlaaEditModalHost .edit-post-modal-body{
  background:var(--panel) !important;
}

#runlaaEditModalHost .glass-card{
  background:linear-gradient(180deg,var(--panel),var(--panel2)) !important;
  border:1px solid var(--line) !important;
  border-radius:20px !important;
  box-shadow:none !important;
}

#runlaaEditModalHost .form-control,
#runlaaEditModalHost .form-select,
#runlaaEditModalHost textarea{
  background:var(--panel2) !important;
  color:var(--text) !important;
  border:1px solid var(--line) !important;
  border-radius:14px !important;
  box-shadow:none !important;
}

#runlaaEditModalHost .form-control::placeholder,
#runlaaEditModalHost textarea::placeholder{
  color:var(--muted) !important;
  opacity:1 !important;
}

#runlaaEditModalHost .form-control:focus,
#runlaaEditModalHost .form-select:focus,
#runlaaEditModalHost textarea:focus{
  background:var(--panel) !important;
  border-color:var(--rl-brand-line) !important;
  box-shadow:var(--rl-ring) !important;
}

#runlaaEditModalHost .form-select option{
  background:var(--panel) !important;
  color:var(--text) !important;
}

#runlaaEditModalHost .mobile-upload-btn{
  min-height:44px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--panel2);
  color:var(--text);
}

#runlaaEditModalHost .mobile-upload-btn:hover{
  border-color:var(--rl-brand-line);
  background:var(--panel);
  color:var(--rl-brand);
}

#runlaaEditModalHost .empty-state-box{
  min-height:220px;
  border:1.5px dashed var(--rl-brand-line);
  border-radius:18px;
  background:linear-gradient(180deg,var(--panel),var(--panel2));
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
  color:var(--text);
}

#runlaaEditModalHost .cover-thumb{
  width:100%;
  max-height:320px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid var(--line);
  background:var(--panel2);
}

#runlaaEditModalHost .edit-post-modal-footer{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

#runlaaEditModalHost .btn-close{
  opacity:1;
  pointer-events:auto !important;
  position:relative;
  z-index:5;
}

html[data-theme="dark-orange"] #runlaaEditModalHost .btn-close{
  filter:invert(1) brightness(1.15);
}

#runlaaEditModalHost [data-bs-dismiss="modal"],
#runlaaEditModalHost .btn-close{
  cursor:pointer !important;
  pointer-events:auto !important;
}

@media (max-width: 767.98px){
  #runlaaEditModalHost .modal-dialog{
    max-width:calc(100vw - 16px);
    margin:8px auto;
  }

  #runlaaEditModalHost .edit-post-modal-head{
    padding:14px !important;
  }

  #runlaaEditModalHost .edit-post-modal-body{
    padding:12px !important;
  }

  #runlaaEditModalHost .glass-card{
    border-radius:16px !important;
    padding:12px !important;
  }

  #runlaaEditModalHost .edit-post-modal-footer{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  #runlaaEditModalHost .edit-post-modal-footer .btn{
    width:100%;
  }
}

@media (max-width: 575.98px){
  #runlaaEditModalHost .edit-post-modal-footer{
    grid-template-columns:1fr;
  }

  #runlaaEditModalHost .cover-thumb{
    max-height:220px;
  }
}

/* ===== RUNLAA edit popup = same feel as SEO create popup ===== */

#runlaaEditModalHost .modal-dialog{
  max-width:760px !important;
}

#runlaaEditModalHost .modal-content{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}

#runlaaEditModalHost .modal-body{
  padding:0 !important;
  background:transparent !important;
}

/* let inner edit modal keep its own design, same family as story/seo popup */
#runlaaEditModalHost #editPostModal{
  display:block !important;
  position:relative !important;
  background:transparent !important;
}

#runlaaEditModalHost #editPostModal .modal-dialog{
  max-width:100% !important;
  margin:0 !important;
}

#runlaaEditModalHost #editPostModal .modal-content,
#runlaaEditModalHost .edit-post-modal-content{
  background:var(--panel) !important;
  color:var(--text) !important;
  border:1px solid var(--line) !important;
  border-radius:var(--rl-radius-lg) !important;
  box-shadow:var(--shadow-soft) !important;
  overflow:hidden !important;
}

#runlaaEditModalHost #editPostModal .modal-header,
#runlaaEditModalHost .edit-post-modal-head{
  background:var(--panel) !important;
  border-bottom:1px solid var(--line) !important;
  padding:16px 18px !important;
}

#runlaaEditModalHost #editPostModal .modal-body,
#runlaaEditModalHost .edit-post-modal-body{
  background:var(--panel) !important;
  padding:16px !important;
}

#runlaaEditModalHost .glass-card{
  background:linear-gradient(180deg,var(--panel),var(--panel2)) !important;
  border:1px solid var(--line) !important;
  border-radius:18px !important;
  box-shadow:none !important;
}

#runlaaEditModalHost .form-control,
#runlaaEditModalHost .form-select,
#runlaaEditModalHost textarea{
  background:var(--panel2) !important;
  color:var(--text) !important;
  border:1px solid var(--line) !important;
  border-radius:14px !important;
  box-shadow:none !important;
}

#runlaaEditModalHost .form-control:focus,
#runlaaEditModalHost .form-select:focus,
#runlaaEditModalHost textarea:focus{
  background:var(--panel) !important;
  border-color:var(--rl-brand-line) !important;
  box-shadow:var(--rl-ring) !important;
}

#runlaaEditModalHost .form-control::placeholder,
#runlaaEditModalHost textarea::placeholder{
  color:var(--muted) !important;
  opacity:1 !important;
}

#runlaaEditModalHost .form-select option{
  background:var(--panel) !important;
  color:var(--text) !important;
}

#runlaaEditModalHost .empty-state-box{
  min-height:220px !important;
  border:1.5px dashed var(--rl-brand-line) !important;
  border-radius:18px !important;
  background:linear-gradient(180deg,var(--panel),var(--panel2)) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex-direction:column !important;
  text-align:center !important;
}

#runlaaEditModalHost .cover-thumb{
  width:100% !important;
  max-height:300px !important;
  object-fit:cover !important;
  border-radius:16px !important;
  border:1px solid var(--line) !important;
  background:var(--panel2) !important;
}

#runlaaEditModalHost .edit-post-modal-footer{
  margin-top:14px !important;
  padding-top:14px !important;
  border-top:1px solid var(--line) !important;
  display:flex !important;
  justify-content:flex-end !important;
  gap:10px !important;
}

#runlaaEditModalHost .btn-close{
  opacity:1 !important;
  cursor:pointer !important;
}

html[data-theme="dark-orange"] #runlaaEditModalHost .btn-close{
  filter:invert(1) brightness(1.15);
}

@media (max-width: 767.98px){
  #runlaaEditModalHost .modal-dialog{
    max-width:calc(100vw - 16px) !important;
    margin:8px auto !important;
  }

  #runlaaEditModalHost #editPostModal .modal-header,
  #runlaaEditModalHost .edit-post-modal-head{
    padding:14px !important;
  }

  #runlaaEditModalHost #editPostModal .modal-body,
  #runlaaEditModalHost .edit-post-modal-body{
    padding:12px !important;
  }

  #runlaaEditModalHost .glass-card{
    border-radius:16px !important;
    padding:12px !important;
  }

  #runlaaEditModalHost .edit-post-modal-footer{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }

  #runlaaEditModalHost .edit-post-modal-footer .btn{
    width:100% !important;
  }
}

@media (max-width: 575.98px){
  #runlaaEditModalHost .edit-post-modal-footer{
    grid-template-columns:1fr !important;
  }

  #runlaaEditModalHost .cover-thumb{
    max-height:220px !important;
  }
}

/* ===== RUNLAA edit popup same UI as create ===== */
#runlaaEditModalHost .rl-edit-story-modal-dialog{
  max-width:760px !important;
}

#runlaaEditModalHost .rl-story-create-fields{
  display:block;
}

#runlaaEditModalHost .rl-story-create-panel{
  background:var(--panel) !important;
  border:1px solid var(--line) !important;
  border-radius:20px !important;
  box-shadow:none !important;
}

#runlaaEditModalHost .rl-story-create-panel--form{
  background:linear-gradient(180deg,var(--panel),var(--panel2)) !important;
}

#runlaaEditModalHost .rl-upload-dropzone{
  position:relative;
  min-height:240px;
  border:1.5px dashed var(--rl-brand-line);
  border-radius:18px;
  background:linear-gradient(180deg,var(--panel),var(--panel2));
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:18px;
  cursor:pointer;
  transition:
    border-color var(--rl-speed) ease,
    background var(--rl-speed) ease,
    box-shadow var(--rl-speed) ease,
    transform var(--rl-speed-fast) ease;
}

#runlaaEditModalHost .rl-upload-dropzone:hover{
  border-color:var(--rl-brand);
  box-shadow:var(--rl-ring);
  transform:translateY(-1px);
}

#runlaaEditModalHost .rl-upload-dropzone.is-dragover{
  border-color:var(--rl-brand);
  background:var(--panel);
  box-shadow:var(--rl-ring);
}

#runlaaEditModalHost .rl-upload-dropzone.has-file{
  display:block;
  text-align:left;
}

#runlaaEditModalHost .rl-upload-dropzone__empty{
  width:100%;
}

#runlaaEditModalHost .rl-upload-dropzone__icon{
  width:64px;
  height:64px;
  margin:0 auto 12px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--chip);
  border:1px solid var(--line);
  color:var(--rl-brand);
  font-size:1.6rem;
}

#runlaaEditModalHost .rl-upload-dropzone__title{
  font-weight:800;
  color:var(--text);
  line-height:1.2;
}

#runlaaEditModalHost .rl-upload-dropzone__sub{
  margin-top:6px;
  color:var(--muted);
}

#runlaaEditModalHost .rl-upload-dropzone__preview{
  width:100%;
  max-height:360px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid var(--line);
  background:var(--panel);
}

#runlaaEditModalHost .rl-selectbox{
  position:relative;
}

#runlaaEditModalHost .rl-selectbox__trigger{
  width:100%;
  min-height:46px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--panel2);
  color:var(--text);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  text-align:left;
}

#runlaaEditModalHost .rl-selectbox__trigger:hover{
  border-color:var(--rl-brand-line);
}

#runlaaEditModalHost .rl-selectbox__trigger[aria-expanded="true"]{
  background:var(--panel);
  border-color:var(--rl-brand-line);
  box-shadow:var(--rl-ring);
}

#runlaaEditModalHost .rl-selectbox__caret{
  color:var(--muted);
  transition:transform var(--rl-speed-fast) ease;
}

#runlaaEditModalHost .rl-selectbox.is-open .rl-selectbox__caret{
  transform:rotate(180deg);
}

#runlaaEditModalHost .rl-selectbox__menu{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  z-index:40;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow-soft);
  padding:8px;
  opacity:0;
  visibility:hidden;
  transform:translateY(4px);
  transition:
    opacity var(--rl-speed-fast) ease,
    transform var(--rl-speed-fast) ease,
    visibility var(--rl-speed-fast) ease;
}

#runlaaEditModalHost .rl-selectbox.is-open .rl-selectbox__menu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

#runlaaEditModalHost 
#runlaaEditModalHost .rl-selectbox__option{
  min-height:42px;
  padding:10px 12px;
  border:1px solid transparent;
  border-radius:12px;
  background:transparent;
  color:var(--text);
  text-align:left;
}

#runlaaEditModalHost .rl-selectbox__option:hover{
  background:var(--panel2);
  border-color:var(--line);
  color:var(--rl-brand);
}

#runlaaEditModalHost .rl-selectbox__option.is-active{
  background:var(--chip);
  border-color:var(--rl-brand-line);
}

#runlaaEditModalHost .rl-story-content-input{
  min-height:180px !important;
  max-height:320px;
  resize:vertical;
}

@media (max-width: 767.98px){
  #runlaaEditModalHost .rl-edit-story-modal-dialog{
    max-width:calc(100vw - 16px) !important;
    margin:8px auto !important;
  }

  #runlaaEditModalHost .rl-story-create-panel{
    border-radius:16px !important;
    padding:12px !important;
  }

  #runlaaEditModalHost .rl-selectbox__grid{
    grid-template-columns:1fr;
  }

  #runlaaEditModalHost .rl-upload-dropzone{
    min-height:180px;
    padding:14px;
    border-radius:16px;
  }

  #runlaaEditModalHost .rl-story-content-input{
    min-height:140px !important;
  }
}

/* ===== RUNLAA edit modal fix only ===== */
#runlaaEditModalHost .modal-dialog{
  max-width:760px !important;
}

#runlaaEditModalHost .modal-body,
#runlaaEditModalHostBody,
#runlaaEditModalHost .edit-post-modal-body{
  overflow:visible !important;
  max-height:none !important;
}

#runlaaEditModalHost .edit-post-modal-content{
  background:var(--panel) !important;
  color:var(--text) !important;
  border:1px solid var(--line) !important;
  border-radius:var(--rl-radius-lg) !important;
  box-shadow:var(--shadow-soft) !important;
  overflow:hidden !important;
}

#runlaaEditModalHost .edit-post-modal-head{
  background:var(--panel) !important;
  border-bottom:1px solid var(--line) !important;
}

#runlaaEditModalHost .edit-post-modal-body{
  background:var(--panel) !important;
}

#runlaaEditModalHost .rl-story-edit-panel{
  background:linear-gradient(180deg,var(--panel),var(--panel2)) !important;
  border:1px solid var(--line) !important;
  border-radius:18px !important;
  box-shadow:none !important;
}

#runlaaEditModalHost .rl-upload-dropzone{
  min-height:240px !important;
  border:1.5px dashed var(--rl-brand-line) !important;
  border-radius:18px !important;
  background:linear-gradient(180deg,var(--panel),var(--panel2)) !important;
}

#runlaaEditModalHost .rl-upload-dropzone__preview{
  width:100% !important;
  max-height:320px !important;
  object-fit:cover !important;
  border-radius:16px !important;
}

#runlaaEditModalHost .rl-selectbox{
  position:relative !important;
  z-index:20 !important;
}

#runlaaEditModalHost .rl-selectbox__menu{
  position:absolute !important;
  top:calc(100% + 8px) !important;
  left:0 !important;
  right:0 !important;
  z-index:50 !important;
  background:var(--panel) !important;
  border:1px solid var(--line) !important;
  border-radius:16px !important;
  box-shadow:var(--shadow-soft) !important;
  padding:8px !important;
  opacity:0 !important;
  visibility:hidden !important;
  transform:translateY(4px) !important;
  transition:
    opacity var(--rl-speed-fast) ease,
    transform var(--rl-speed-fast) ease,
    visibility var(--rl-speed-fast) ease !important;
}

#runlaaEditModalHost .rl-selectbox.is-open .rl-selectbox__menu{
  opacity:1 !important;
  visibility:visible !important;
  transform:translateY(0) !important;
}

#runlaaEditModalHost .rl-selectbox__option{
  width:100% !important;
  min-height:42px !important;
  display:flex !important;
  align-items:center !important;
  padding:10px 12px !important;
  border:1px solid transparent !important;
  border-radius:12px !important;
  background:transparent !important;
  color:var(--text) !important;
  text-align:left !important;
}

#runlaaEditModalHost .rl-selectbox__option:hover{
  background:var(--panel2) !important;
  border-color:var(--line) !important;
  color:var(--rl-brand) !important;
}

#runlaaEditModalHost .rl-selectbox__option.is-active{
  background:var(--chip) !important;
  border-color:var(--rl-brand-line) !important;
}

@media (max-width: 767.98px){
  #runlaaEditModalHost .modal-dialog{
    max-width:calc(100vw - 16px) !important;
    margin:8px auto !important;
  }

  #runlaaEditModalHost .rl-upload-dropzone{
    min-height:180px !important;
  }

  #runlaaEditModalHost .rl-upload-dropzone__preview{
    max-height:220px !important;
  }
}

/* ===== RUNLAA edit modal scroll like SEO create ===== */
#runlaaEditModalHost .modal-dialog.modal-dialog-scrollable{
  height:calc(100vh - 2rem) !important;
}

#runlaaEditModalHost .edit-post-modal-content{
  max-height:calc(100vh - 2rem) !important;
}

#runlaaEditModalHost .edit-post-modal-body{
  overflow:hidden !important;
}

#runlaaEditModalHost .edit-post-modal-scroll{
  max-height:calc(100vh - 220px) !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding-right:4px;
}

#runlaaEditModalHost .edit-post-modal-scroll::-webkit-scrollbar{
  width:8px;
}

#runlaaEditModalHost .edit-post-modal-scroll::-webkit-scrollbar-track{
  background:transparent;
}

#runlaaEditModalHost .edit-post-modal-scroll::-webkit-scrollbar-thumb{
  background:var(--line);
  border-radius:999px;
}

#runlaaEditModalHost .edit-post-modal-scroll::-webkit-scrollbar-thumb:hover{
  background:var(--rl-brand-line);
}

@media (max-width: 767.98px){
  #runlaaEditModalHost .modal-dialog.modal-dialog-scrollable{
    height:calc(100vh - 1rem) !important;
  }

  #runlaaEditModalHost .edit-post-modal-content{
    max-height:calc(100vh - 1rem) !important;
  }

  #runlaaEditModalHost .edit-post-modal-scroll{
    max-height:calc(100vh - 190px) !important;
  }
}

/* ===== RUNLAA edit popup parity + usable controls ===== */
#runlaaEditModalHost .modal-dialog{
  max-width:1140px !important;
}

#runlaaEditModalHost .modal-content{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}

#runlaaEditModalHost .modal-body{
  padding:0 !important;
  background:transparent !important;
}

#runlaaEditModalHostBody > .edit-post-modal-content{
  background:var(--panel) !important;
  color:var(--text) !important;
  border:1px solid var(--line) !important;
  border-radius:var(--rl-radius-lg) !important;
  box-shadow:var(--shadow-soft) !important;
  overflow:hidden !important;
}

#runlaaEditModalHostBody .edit-post-modal-head{
  background:var(--panel) !important;
  border-bottom:1px solid var(--line) !important;
}

#runlaaEditModalHostBody .edit-post-modal-body{
  background:var(--panel) !important;
  overflow-y:auto !important;
  overflow-x:visible !important;
  max-height:calc(100vh - 140px) !important;
}

#runlaaEditModalHostBody .edit-post-modal-scroll{
  max-height:none !important;
  overflow:visible !important;
}

#runlaaEditModalHostBody .rl-selectbox{
  position:relative !important;
  z-index:50 !important;
}

#runlaaEditModalHostBody .rl-selectbox__menu{
  position:absolute !important;
  top:calc(100% + 8px) !important;
  left:0 !important;
  right:0 !important;
  z-index:80 !important;
  background:var(--panel) !important;
  border:1px solid var(--line) !important;
  border-radius:16px !important;
  box-shadow:var(--shadow-soft) !important;
  padding:8px !important;
  opacity:0 !important;
  visibility:hidden !important;
  transform:translateY(4px) !important;
  transition:
    opacity var(--rl-speed-fast) ease,
    transform var(--rl-speed-fast) ease,
    visibility var(--rl-speed-fast) ease !important;
}

#runlaaEditModalHostBody .rl-selectbox.is-open .rl-selectbox__menu{
  opacity:1 !important;
  visibility:visible !important;
  transform:translateY(0) !important;
}

#runlaaEditModalHostBody .rl-selectbox__option{
  width:100% !important;
  min-height:42px !important;
  display:flex !important;
  align-items:center !important;
  padding:10px 12px !important;
  border:1px solid transparent !important;
  border-radius:12px !important;
  background:transparent !important;
  color:var(--text) !important;
  text-align:left !important;
}

#runlaaEditModalHostBody .rl-selectbox__option:hover{
  background:var(--panel2) !important;
  border-color:var(--line) !important;
  color:var(--rl-brand) !important;
}

#runlaaEditModalHostBody .rl-selectbox__option.is-active{
  background:var(--chip) !important;
  border-color:var(--rl-brand-line) !important;
}

#runlaaEditModalHostBody .rl-upload-dropzone{
  min-height:280px !important;
  border:1.5px dashed var(--rl-brand-line) !important;
  border-radius:18px !important;
  background:linear-gradient(180deg,var(--panel),var(--panel2)) !important;
  cursor:pointer !important;
}

#runlaaEditModalHostBody .rl-upload-dropzone.is-dragover{
  border-color:var(--rl-brand) !important;
  background:var(--panel) !important;
  box-shadow:var(--rl-ring) !important;
}

#runlaaEditModalHostBody .rl-upload-dropzone__preview{
  width:100% !important;
  max-height:360px !important;
  object-fit:cover !important;
  border-radius:16px !important;
}

@media (max-width: 767.98px){
  #runlaaEditModalHost .modal-dialog{
    max-width:calc(100vw - 16px) !important;
    margin:8px auto !important;
  }

  #runlaaEditModalHostBody .edit-post-modal-body{
    max-height:calc(100vh - 110px) !important;
  }

  #runlaaEditModalHostBody .rl-upload-dropzone{
    min-height:220px !important;
  }

  #runlaaEditModalHostBody .rl-upload-dropzone__preview{
    max-height:240px !important;
  }
}

/* ===== RUNLAA edit popup = same wrapper as story-create ===== */
#runlaaEditModalHost{
  --bs-modal-zindex: 50010;
  z-index:50010 !important;
}

#runlaaEditModalHost .modal-dialog{
  max-width:1140px !important;
  width:calc(100% - 1rem) !important;
  margin:.5rem auto !important;
}

#runlaaEditModalHost .modal-content{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}

#runlaaEditModalHost .modal-body{
  padding:0 !important;
  background:transparent !important;
}

#runlaaEditModalHostBody{
  padding:0 !important;
  background:transparent !important;
}

#runlaaEditModalHostBody > #editPostModal{
  display:block !important;
  position:relative !important;
  opacity:1 !important;
  background:transparent !important;
}

#runlaaEditModalHostBody > #editPostModal .modal-dialog{
  max-width:100% !important;
  width:100% !important;
  margin:0 !important;
  height:auto !important;
}

#runlaaEditModalHostBody > #editPostModal .modal-content.edit-post-modal-content{
  background:var(--panel) !important;
  color:var(--text) !important;
  border:1px solid var(--line) !important;
  border-radius:var(--rl-radius-lg) !important;
  box-shadow:var(--shadow-soft) !important;
  overflow:hidden !important;
}

#runlaaEditModalHostBody > #editPostModal .edit-post-modal-head{
  background:var(--panel) !important;
  border-bottom:1px solid var(--line) !important;
}

#runlaaEditModalHostBody > #editPostModal .edit-post-modal-body{
  background:var(--panel) !important;
  overflow-y:auto !important;
  overflow-x:visible !important;
  max-height:calc(100vh - 170px) !important;
}

#runlaaEditModalHostBody > #editPostModal .edit-post-modal-scroll{
  max-height:none !important;
  overflow:visible !important;
}

#runlaaEditModalHostBody > #editPostModal .glass-card{
  background:linear-gradient(180deg,var(--panel),var(--panel2)) !important;
  border:1px solid var(--line) !important;
  border-radius:18px !important;
  box-shadow:none !important;
}

#runlaaEditModalHostBody > #editPostModal .form-control,
#runlaaEditModalHostBody > #editPostModal .form-select,
#runlaaEditModalHostBody > #editPostModal textarea{
  background:var(--panel2) !important;
  color:var(--text) !important;
  border:1px solid var(--line) !important;
  border-radius:14px !important;
  box-shadow:none !important;
}

#runlaaEditModalHostBody > #editPostModal .form-control:focus,
#runlaaEditModalHostBody > #editPostModal .form-select:focus,
#runlaaEditModalHostBody > #editPostModal textarea:focus{
  background:var(--panel) !important;
  border-color:var(--rl-brand-line) !important;
  box-shadow:var(--rl-ring) !important;
}

#runlaaEditModalHostBody > #editPostModal .rl-upload-dropzone{
  min-height:280px !important;
}

#runlaaEditModalHostBody > #editPostModal .rl-upload-dropzone__preview{
  max-height:360px !important;
}

#runlaaEditModalHostBody > #editPostModal .rl-selectbox{
  position:relative !important;
  z-index:60 !important;
}

#runlaaEditModalHostBody > #editPostModal .rl-selectbox__menu{
  position:absolute !important;
  top:calc(100% + 8px) !important;
  left:0 !important;
  right:0 !important;
  z-index:80 !important;
}

@media (max-width: 767.98px){
  #runlaaEditModalHost .modal-dialog{
    max-width:calc(100vw - 16px) !important;
    width:calc(100vw - 16px) !important;
    margin:8px auto !important;
  }

  #runlaaEditModalHostBody > #editPostModal .edit-post-modal-body{
    max-height:calc(100vh - 120px) !important;
  }

  #runlaaEditModalHostBody > #editPostModal .rl-upload-dropzone{
    min-height:220px !important;
  }

  #runlaaEditModalHostBody > #editPostModal .rl-upload-dropzone__preview{
    max-height:240px !important;
  }
}

/* ===== RUNLAA edit popup final size + no inner scroll ===== */

/* ให้ขนาดเท่ากล่องโพสต์ SEO */
#runlaaEditModalHost .modal-dialog{
  max-width:1140px !important;
  width:auto !important;
  margin:1.75rem auto !important;
  height:auto !important;
}

#runlaaEditModalHostBody > #editPostModal .modal-dialog{
  max-width:1140px !important;
  width:auto !important;
  margin:0 auto !important;
  height:auto !important;
}

/* เอา inner scroll ออก */
#runlaaEditModalHost .modal-body,
#runlaaEditModalHostBody,
#runlaaEditModalHostBody > #editPostModal .modal-body,
#runlaaEditModalHostBody > #editPostModal .edit-post-modal-body,
#runlaaEditModalHostBody > #editPostModal .edit-post-modal-scroll{
  overflow:visible !important;
  overflow-y:visible !important;
  overflow-x:visible !important;
  max-height:none !important;
  height:auto !important;
}

/* ให้ outer modal เป็นตัวเลื่อนเหมือนกล่องโพสต์ SEO */
#runlaaEditModalHost{
  overflow-y:auto !important;
}

#runlaaEditModalHost .modal-content,
#runlaaEditModalHostBody > #editPostModal .modal-content.edit-post-modal-content{
  overflow:visible !important;
}

/* mobile ให้สัดส่วนเหมือนเดิมแต่ไม่บีบ */
@media (max-width: 767.98px){
  #runlaaEditModalHost .modal-dialog{
    max-width:calc(100vw - 16px) !important;
    width:calc(100vw - 16px) !important;
    margin:8px auto !important;
  }

  #runlaaEditModalHostBody > #editPostModal .modal-dialog{
    max-width:100% !important;
    width:100% !important;
    margin:0 !important;
  }
}

/* ===== RUNLAA edit popup remove side scroll, auto height ===== */

/* เอา scroll ภายใน popup ออก */
#runlaaEditModalHost .modal-dialog-scrollable,
#runlaaEditModalHostBody > #editPostModal .modal-dialog-scrollable{
  height:auto !important;
}

#runlaaEditModalHost .modal-dialog-scrollable .modal-content,
#runlaaEditModalHostBody > #editPostModal .modal-dialog-scrollable .modal-content{
  max-height:none !important;
  height:auto !important;
  overflow:visible !important;
}

#runlaaEditModalHost .modal-body,
#runlaaEditModalHostBody,
#runlaaEditModalHostBody > #editPostModal .modal-body,
#runlaaEditModalHostBody > #editPostModal .edit-post-modal-body,
#runlaaEditModalHostBody > #editPostModal .edit-post-modal-scroll{
  max-height:none !important;
  height:auto !important;
  overflow:visible !important;
  overflow-x:visible !important;
  overflow-y:visible !important;
  padding-right:0 !important;
}

/* ให้ตัว popup สูงตามเนื้อหา */
#runlaaEditModalHost .modal-dialog,
#runlaaEditModalHostBody > #editPostModal .modal-dialog{
  height:auto !important;
  align-items:flex-start !important;
}

#runlaaEditModalHost .modal-content,
#runlaaEditModalHostBody > #editPostModal .modal-content.edit-post-modal-content{
  height:auto !important;
  min-height:auto !important;
}

/* ถ้ามี scrollbar ของ webkit ให้ซ่อน */
#runlaaEditModalHost .modal-body::-webkit-scrollbar,
#runlaaEditModalHostBody::-webkit-scrollbar,
#runlaaEditModalHostBody > #editPostModal .modal-body::-webkit-scrollbar,
#runlaaEditModalHostBody > #editPostModal .edit-post-modal-body::-webkit-scrollbar,
#runlaaEditModalHostBody > #editPostModal .edit-post-modal-scroll::-webkit-scrollbar{
  width:0 !important;
  height:0 !important;
  display:none !important;
}


/* ===== RUNLAA themed scrollbar (edit popup only) ===== */

.edit-post-modal-body::-webkit-scrollbar,
.edit-post-modal-scroll::-webkit-scrollbar{
  width:8px;
}

.edit-post-modal-body::-webkit-scrollbar-track,
.edit-post-modal-scroll::-webkit-scrollbar-track{
  background:transparent;
}

.edit-post-modal-body::-webkit-scrollbar-thumb,
.edit-post-modal-scroll::-webkit-scrollbar-thumb{
  background:var(--rl-orange-400);
  border-radius:10px;
}

.edit-post-modal-body::-webkit-scrollbar-thumb:hover,
.edit-post-modal-scroll::-webkit-scrollbar-thumb:hover{
  background:var(--rl-orange-500);
}

/* firefox */
.edit-post-modal-body,
.edit-post-modal-scroll{
  scrollbar-width:thin;
  scrollbar-color:var(--rl-orange-400) transparent;
}


/* ===== RUNLAA edit post popup scrollbar (theme orange) ===== */

#editPostModal .modal-body::-webkit-scrollbar,
#editPostModal .edit-post-modal-scroll::-webkit-scrollbar{
  width:8px;
}

#editPostModal .modal-body::-webkit-scrollbar-track,
#editPostModal .edit-post-modal-scroll::-webkit-scrollbar-track{
  background:transparent;
}

#editPostModal .modal-body::-webkit-scrollbar-thumb,
#editPostModal .edit-post-modal-scroll::-webkit-scrollbar-thumb{
  background:var(--rl-orange-400);
  border-radius:10px;
}

#editPostModal .modal-body::-webkit-scrollbar-thumb:hover,
#editPostModal .edit-post-modal-scroll::-webkit-scrollbar-thumb:hover{
  background:var(--rl-orange-500);
}

/* Firefox */
#editPostModal .modal-body,
#editPostModal .edit-post-modal-scroll{
  scrollbar-width:thin;
  scrollbar-color:var(--rl-orange-400) transparent;
}


/* ===== RUNLAA edit popup scrollbar real target ===== */
#runlaaEditModalHostBody .edit-post-modal-body,
#runlaaEditModalHostBody .edit-post-modal-scroll{
  scrollbar-width:thin;
  scrollbar-color:var(--rl-brand-line) transparent;
}

#runlaaEditModalHostBody .edit-post-modal-body::-webkit-scrollbar,
#runlaaEditModalHostBody .edit-post-modal-scroll::-webkit-scrollbar{
  width:10px;
  height:10px;
}

#runlaaEditModalHostBody .edit-post-modal-body::-webkit-scrollbar-track,
#runlaaEditModalHostBody .edit-post-modal-scroll::-webkit-scrollbar-track{
  background:transparent;
  border-radius:999px;
}

#runlaaEditModalHostBody .edit-post-modal-body::-webkit-scrollbar-thumb,
#runlaaEditModalHostBody .edit-post-modal-scroll::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,var(--rl-brand-line),var(--brand2));
  border:2px solid transparent;
  background-clip:padding-box;
  border-radius:999px;
}

#runlaaEditModalHostBody .edit-post-modal-body::-webkit-scrollbar-thumb:hover,
#runlaaEditModalHostBody .edit-post-modal-scroll::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,var(--brand1),var(--brand2));
  border:2px solid transparent;
  background-clip:padding-box;
}

html[data-theme="dark-orange"] #runlaaEditModalHostBody .edit-post-modal-body,
html[data-theme="dark-orange"] #runlaaEditModalHostBody .edit-post-modal-scroll{
  scrollbar-color:var(--brand2) transparent;
}

/* ===== RUNLAA edit popup scrollbar soft theme ===== */

#runlaaEditModalHostBody .edit-post-modal-body,
#runlaaEditModalHostBody .edit-post-modal-scroll{
  scrollbar-width:thin;
  scrollbar-color:rgba(245,158,11,.35) transparent;
}

#runlaaEditModalHostBody .edit-post-modal-body::-webkit-scrollbar,
#runlaaEditModalHostBody .edit-post-modal-scroll::-webkit-scrollbar{
  width:8px;
}

#runlaaEditModalHostBody .edit-post-modal-body::-webkit-scrollbar-track,
#runlaaEditModalHostBody .edit-post-modal-scroll::-webkit-scrollbar-track{
  background:transparent;
}

#runlaaEditModalHostBody .edit-post-modal-body::-webkit-scrollbar-thumb,
#runlaaEditModalHostBody .edit-post-modal-scroll::-webkit-scrollbar-thumb{
  background:rgba(245,158,11,.35);
  border-radius:999px;
}

#runlaaEditModalHostBody .edit-post-modal-body::-webkit-scrollbar-thumb:hover,
#runlaaEditModalHostBody .edit-post-modal-scroll::-webkit-scrollbar-thumb:hover{
  background:rgba(245,158,11,.55);
}

html[data-theme="dark-orange"] #runlaaEditModalHostBody .edit-post-modal-body,
html[data-theme="dark-orange"] #runlaaEditModalHostBody .edit-post-modal-scroll{
  scrollbar-color:rgba(245,158,11,.45) transparent;
}


/* ===== RUNLAA unified scrollbar (match post pages) ===== */

#runlaaEditModalHostBody .edit-post-modal-body,
#runlaaEditModalHostBody .edit-post-modal-scroll{
  scrollbar-width:thin;
  scrollbar-color:rgba(138,98,69,.38) transparent;
  overscroll-behavior:contain;
  scroll-behavior:smooth;
}

#runlaaEditModalHostBody .edit-post-modal-body::-webkit-scrollbar,
#runlaaEditModalHostBody .edit-post-modal-scroll::-webkit-scrollbar{
  width:8px;
}

#runlaaEditModalHostBody .edit-post-modal-body::-webkit-scrollbar-track,
#runlaaEditModalHostBody .edit-post-modal-scroll::-webkit-scrollbar-track{
  background:transparent;
}

#runlaaEditModalHostBody .edit-post-modal-body::-webkit-scrollbar-thumb,
#runlaaEditModalHostBody .edit-post-modal-scroll::-webkit-scrollbar-thumb{
  background:rgba(138,98,69,.38);
  border-radius:999px;
}

#runlaaEditModalHostBody .edit-post-modal-body::-webkit-scrollbar-thumb:hover,
#runlaaEditModalHostBody .edit-post-modal-scroll::-webkit-scrollbar-thumb:hover{
  background:rgba(138,98,69,.55);
}


/* =====================================================
   RUNLAA POST CARD TYPE CLAMPS
===================================================== */

.clamp-1,
.clamp-2,
.clamp-3,
.clamp-5{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.clamp-1{-webkit-line-clamp:1;line-clamp:1;}
.clamp-2{-webkit-line-clamp:2;line-clamp:2;}
.clamp-3{-webkit-line-clamp:3;line-clamp:3;}
.clamp-5{-webkit-line-clamp:5;line-clamp:5;}

.social-post-product-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:.75rem;
  margin-bottom:.55rem;
}

.social-post-product-title{
  flex:1 1 auto;
  min-width:0;
}

.social-post-price-badge{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:.38rem .72rem;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--panel2);
  color:var(--brand1);
  font-weight:800;
  font-size:.92rem;
  white-space:nowrap;
}

.social-post-product-content{
  margin-bottom:.45rem;
}

.social-post-product-detail{
  color:var(--muted);
  margin-bottom:0;
}

.social-post-seo-title,
.social-post-product-title{
  margin-bottom:.35rem;
}

.social-post-seo-desc{
  margin-bottom:0;
}

.social-post-status-text{
  white-space:normal;
}


/* =====================================================
   RUNLAA PRODUCT PRICE BADGE - SAFE FIX
===================================================== */

.social-post-price-row{
  margin:.2rem 0 .55rem;
}

.social-post-price-badge{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:.38rem .72rem;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--panel2);
  color:var(--brand1);
  font-weight:800;
  font-size:.92rem;
  line-height:1;
  white-space:nowrap;
}

.social-post-product-title{
  margin-bottom:.1rem;
}

/* =====================================================
   RUNLAA PRODUCT CARD - PREMIUM OVERLAY
   product only / keep existing theme colors
===================================================== */

.social-post-product-card{
  display:flex;
  flex-direction:column;
  gap:.7rem;
}

.social-post-product-media{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:18px;
  text-decoration:none;
  background:var(--panel2);
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  isolation:isolate;
}

.social-post-product-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}

.social-post-product-media:hover img{
  transform:scale(1.04);
}

.social-post-product-media-fallback{
  min-height:280px;
}

.social-post-product-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  padding:.85rem;
  background:
    linear-gradient(to top,
      rgba(15,23,42,.78) 0%,
      rgba(15,23,42,.48) 34%,
      rgba(15,23,42,.16) 58%,
      rgba(15,23,42,0) 78%);
  z-index:2;
}

.social-post-product-overlay.always-visible{
  position:absolute;
}

.social-post-product-overlay-copy{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:.42rem;
}

.social-post-product-title-overlay{
  margin:0;
  font-size:1rem;
  line-height:1.28;
  font-weight:800;
  color:#fff !important;
  text-shadow:0 2px 10px rgba(0,0,0,.30);
}

.social-post-product-title-overlay a,
.social-post-product-title-overlay a:hover{
  color:#fff !important;
}

.social-post-product-price-overlay{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  min-height:36px;
  padding:.42rem .78rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.14);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  color:#fff;
  font-size:.95rem;
  font-weight:800;
  line-height:1;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}

.social-post-product-body{
  display:flex;
  flex-direction:column;
  gap:.3rem;
}

.social-post-product-content{
  margin:0;
  font-size:.94rem;
  line-height:1.55;
}

.social-post-product-detail{
  margin:0;
  font-size:.88rem;
  line-height:1.58;
  color:var(--muted);
}

@media (max-width: 575.98px){
  .social-post-product-overlay{
    padding:.72rem;
  }

  .social-post-product-title-overlay{
    font-size:.95rem;
  }

  .social-post-product-price-overlay{
    min-height:34px;
    font-size:.9rem;
    padding:.38rem .7rem;
  }
}

/* =====================================================
   RUNLAA PRODUCT POST - SAFE PREMIUM OVERLAY
===================================================== */

.social-post-card[data-href*="/product/"] .social-post-cover-wrap,
.social-post-card.social-post-product-ui .social-post-cover-wrap{
  position:relative;
}

.social-post-cover-product{
  display:block;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:20px;
}

.social-post-cover-product img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}

.social-post-card[data-href*="/product/"] .social-post-cover-wrap:hover .social-post-cover-product img,
.social-post-card.social-post-product-ui .social-post-cover-wrap:hover .social-post-cover-product img{
  transform:scale(1.04);
}

.social-post-product-cover-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  padding:.9rem;
  border-radius:20px;
  background:
    linear-gradient(to top,
      rgba(15,23,42,.82) 0%,
      rgba(15,23,42,.48) 34%,
      rgba(15,23,42,.18) 58%,
      rgba(15,23,42,0) 78%);
  pointer-events:none;
}

.social-post-product-cover-copy{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:.42rem;
}

.social-post-product-cover-title{
  margin:0;
  color:#fff;
  font-size:1rem;
  font-weight:800;
  line-height:1.28;
  text-shadow:0 2px 10px rgba(0,0,0,.30);
}


.social-post-product-card{
  display:flex;
  flex-direction:column;
  gap:.65rem;
}

.social-post-product-body{
  display:flex;
  flex-direction:column;
  gap:.32rem;
}

.social-post-product-content{
  margin:0;
  font-size:.94rem;
  line-height:1.55;
}

.social-post-product-detail{
  margin:0;
  font-size:.88rem;
  line-height:1.58;
  color:var(--muted);
}

@media (max-width: 575.98px){
  .social-post-cover-product{
    border-radius:18px;
  }

  .social-post-product-cover-overlay{
    padding:.75rem;
    border-radius:18px;
  }

  .social-post-product-cover-title{
    font-size:.95rem;
  }

}

/* =====================================================
   RUNLAA PRODUCT OVERLAY - TUNE
===================================================== */

.social-post-product-author-overlay{
  position:absolute;
  top:12px;
  left:12px;
  z-index:4;
}

.social-post-product-author-chip{
  display:flex;
  align-items:center;
  gap:.55rem;
  padding:.45rem .62rem;
  border-radius:16px;
  background:rgba(15,23,42,.44);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  box-shadow:0 10px 24px rgba(0,0,0,.16);
  color:#fff;
  max-width:calc(100% - 24px);
}

.social-post-product-author-chip .social-post-author-avatar{
  width:34px;
  height:34px;
  min-width:34px;
  border-radius:50%;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.28);
}

.social-post-product-author-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  line-height:1.18;
  min-width:0;
}

.social-post-product-author-name{
  font-size:.84rem;
  font-weight:800;
  color:#fff;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.social-post-product-author-time{
  margin-top:.12rem;
  font-size:.72rem;
  font-weight:600;
  color:rgba(255,255,255,.86);
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* make product title + price stronger */

.social-post-product-cover-overlay{
  align-items:flex-end;
  padding:1rem;
  background:
    linear-gradient(to top,
      rgba(15,23,42,.90) 0%,
      rgba(15,23,42,.58) 34%,
      rgba(15,23,42,.20) 58%,
      rgba(15,23,42,0) 78%);
}

.social-post-product-cover-copy{
  gap:.5rem;
}

.social-post-product-cover-title{
  margin:0;
  color:#fff;
  font-size:1.08rem;
  font-weight:900;
  line-height:1.24;
  letter-spacing:-0.01em;
  text-shadow:0 3px 14px rgba(0,0,0,.34);
}


@media (max-width: 575.98px){
  .social-post-product-author-overlay{
    top:10px;
    left:10px;
  }

  .social-post-product-author-chip{
    gap:.45rem;
    padding:.4rem .55rem;
    border-radius:14px;
  }

  .social-post-product-author-chip .social-post-author-avatar{
    width:30px;
    height:30px;
    min-width:30px;
  }

  .social-post-product-author-name{
    font-size:.8rem;
  }

  .social-post-product-author-time{
    font-size:.69rem;
  }

  .social-post-product-cover-overlay{
    padding:.82rem;
  }

  .social-post-product-cover-title{
    font-size:1rem;
  }

}

/* =====================================================
   RUNLAA PRODUCT CARD - FINAL SINGLE TITLE/PRICE
===================================================== */

/* hide duplicate title/price on image for product */
/* keep square image for product */
.social-post-product-ui .social-post-cover-product{
  display:block;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:20px;
}

.social-post-product-ui .social-post-cover-product img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* product body */
.social-post-product-card{
  display:flex;
  flex-direction:column;
  gap:.6rem;
}

.social-post-product-body{
  display:flex;
  flex-direction:column;
  gap:.34rem;
}

.social-post-product-headline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:.75rem;
}

.social-post-product-title-inline{
  flex:1 1 auto;
  min-width:0;
  margin:0;
  font-size:1.02rem;
  font-weight:900;
  line-height:1.28;
}

.social-post-product-title-inline a{
  color:var(--text);
}

.social-post-product-price-inline{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:.45rem .82rem;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--panel2);
  color:var(--brand1);
  font-size:.98rem;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
  box-shadow:var(--shadow-soft);
}

.social-post-product-content{
  margin:0;
  font-size:.93rem;
  line-height:1.52;
}

.social-post-product-detail{
  margin:0;
  font-size:.82rem;
  line-height:1.52;
  color:var(--muted);
}

@media (max-width: 575.98px){
  .social-post-product-title-inline{
    font-size:.96rem;
  }

  .social-post-product-price-inline{
    min-height:34px;
    font-size:.9rem;
    padding:.38rem .7rem;
  }

  .social-post-product-detail{
    font-size:.79rem;
  }
}

/* =====================================================
   RUNLAA PRODUCT CARD - FINAL SINGLE TITLE/PRICE
===================================================== */

/* hide duplicate title/price on image for product */
/* keep square image for product */
.social-post-product-ui .social-post-cover-product{
  display:block;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:20px;
}

.social-post-product-ui .social-post-cover-product img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* product body */
.social-post-product-card{
  display:flex;
  flex-direction:column;
  gap:.6rem;
}

.social-post-product-body{
  display:flex;
  flex-direction:column;
  gap:.34rem;
}

.social-post-product-headline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:.75rem;
}

.social-post-product-title-inline{
  flex:1 1 auto;
  min-width:0;
  margin:0;
  font-size:1.02rem;
  font-weight:900;
  line-height:1.28;
}

.social-post-product-title-inline a{
  color:var(--text);
}

.social-post-product-price-inline{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:.45rem .82rem;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--panel2);
  color:var(--brand1);
  font-size:.98rem;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
  box-shadow:var(--shadow-soft);
}

.social-post-product-content{
  margin:0;
  font-size:.93rem;
  line-height:1.52;
}

.social-post-product-detail{
  margin:0;
  font-size:.82rem;
  line-height:1.52;
  color:var(--muted);
}

@media (max-width: 575.98px){
  .social-post-product-title-inline{
    font-size:.96rem;
  }

  .social-post-product-price-inline{
    min-height:34px;
    font-size:.9rem;
    padding:.38rem .7rem;
  }

  .social-post-product-detail{
    font-size:.79rem;
  }
}

/* =====================================================
   RUNLAA PRODUCT CARD - REAL FIX
===================================================== */

.social-post-product-ui .social-post-cover-product{
  display:block;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:20px;
}

.social-post-product-ui .social-post-cover-product img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.social-post-product-ui .social-post-product-headline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:.75rem;
  margin:.1rem 0 .35rem;
}

.social-post-product-ui .social-post-product-title{
  flex:1 1 auto;
  min-width:0;
  margin:0;
  font-size:1.04rem;
  font-weight:900;
  line-height:1.28;
}

.social-post-product-ui .social-post-product-title a{
  color:var(--text);
}

.social-post-product-ui .social-post-price-row{
  flex:0 0 auto;
  margin:0;
}

.social-post-product-ui .social-post-price-badge{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:.45rem .82rem;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--panel2);
  color:var(--brand1);
  font-size:.98rem;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
  box-shadow:var(--shadow-soft);
}

.social-post-product-ui .social-post-product-content{
  margin:0 0 .32rem;
  font-size:.93rem;
  line-height:1.52;
}

.social-post-product-ui .social-post-product-detail{
  margin:0;
  font-size:.80rem;
  line-height:1.5;
  color:var(--muted);
}

@media (max-width: 575.98px){
  .social-post-product-ui .social-post-product-title{
    font-size:.97rem;
  }

  .social-post-product-ui .social-post-price-badge{
    min-height:34px;
    font-size:.9rem;
    padding:.38rem .7rem;
  }

  .social-post-product-ui .social-post-product-detail{
    font-size:.77rem;
  }
}

/* =====================================================
   RUNLAA PRODUCT CARD - OVERLAY FINAL
===================================================== */

.social-post-product-ui .social-post-cover-wrap{
  position:relative;
}

.social-post-product-ui .social-post-cover-product{
  display:block;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:20px;
}

.social-post-product-ui .social-post-cover-product img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.social-post-product-ui .social-post-product-author-overlay{
  position:absolute;
  top:12px;
  left:12px;
  z-index:4;
  pointer-events:none;
}

.social-post-product-ui .social-post-product-author-chip{
  display:flex;
  align-items:center;
  gap:.55rem;
  max-width:min(260px, calc(100% - 24px));
  padding:.45rem .62rem;
  border-radius:16px;
  background:rgba(15,23,42,.44);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  box-shadow:0 10px 24px rgba(0,0,0,.16);
  color:#fff;
}

.social-post-product-ui .social-post-author-avatar{
  width:34px;
  height:34px;
  min-width:34px;
  border-radius:50%;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.28);
}

.social-post-product-ui .social-post-product-author-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  line-height:1.18;
  min-width:0;
}

.social-post-product-ui .social-post-product-author-name{
  font-size:.84rem;
  font-weight:800;
  color:#fff;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}

.social-post-product-ui .social-post-product-author-time{
  margin-top:.12rem;
  font-size:.72rem;
  font-weight:600;
  color:rgba(255,255,255,.86);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}

.social-post-product-ui .social-post-product-cover-overlay{
  position:absolute;
  inset:0;
  display:flex !important;
  align-items:flex-end;
  padding:1rem;
  border-radius:20px;
  background:
    linear-gradient(to top,
      rgba(15,23,42,.90) 0%,
      rgba(15,23,42,.58) 34%,
      rgba(15,23,42,.20) 58%,
      rgba(15,23,42,0) 78%);
  z-index:3;
  pointer-events:none;
}

.social-post-product-ui .social-post-product-cover-copy{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:.5rem;
}

.social-post-product-ui .social-post-product-cover-title{
  margin:0;
  color:#fff;
  font-size:1.08rem;
  font-weight:900;
  line-height:1.24;
  letter-spacing:-0.01em;
  text-shadow:0 3px 14px rgba(0,0,0,.34);
}

.social-post-product-ui .social-post-product-cover-price{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  min-height:40px;
  padding:.5rem .9rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.24);
  background:rgba(255,255,255,.18);
  color:#fff;
  font-size:1rem;
  font-weight:900;
  line-height:1;
  box-shadow:0 12px 28px rgba(0,0,0,.22);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.social-post-product-ui .social-post-product-content{
  margin:.15rem 0 .28rem;
  font-size:.93rem;
  line-height:1.52;
}

.social-post-product-ui .social-post-product-detail{
  margin:0;
  font-size:.78rem;
  line-height:1.48;
  color:var(--muted);
}

@media (max-width: 575.98px){
  .social-post-product-ui .social-post-product-author-overlay{
    top:10px;
    left:10px;
  }

  .social-post-product-ui .social-post-product-author-chip{
    gap:.45rem;
    padding:.4rem .55rem;
    border-radius:14px;
  }

  .social-post-product-ui .social-post-author-avatar{
    width:30px;
    height:30px;
    min-width:30px;
  }

  .social-post-product-ui .social-post-product-author-name{
    font-size:.8rem;
  }

  .social-post-product-ui .social-post-product-author-time{
    font-size:.69rem;
  }

  .social-post-product-ui .social-post-product-cover-overlay{
    padding:.82rem;
    border-radius:18px;
  }

  .social-post-product-ui .social-post-product-cover-title{
    font-size:1rem;
  }

  .social-post-product-ui .social-post-product-cover-price{
    min-height:36px;
    font-size:.92rem;
    padding:.42rem .78rem;
  }

  .social-post-product-ui .social-post-product-detail{
    font-size:.75rem;
  }
}

/* =====================================================
   RUNLAA PRODUCT CARD - HIDE OLD POSITIONS
===================================================== */

/* hide old top header on product cards */
.social-post-product-ui .social-post-top{
  display:none !important;
}

/* hide old product title + old price row in body */
.social-post-product-ui .social-post-product-title,
.social-post-product-ui .social-post-price-row{
  display:none !important;
}

/* tighten body after hiding old header */
.social-post-product-ui .social-post-body{
  padding-top:.8rem;
}

/* =====================================================
   RUNLAA PRODUCT PRICE BADGE - PREMIUM
===================================================== */


/* subtle hover glow */


/* mobile */

@media (max-width:575.98px){


}


/* =====================================================
   RUNLAA PRODUCT CARD - ORANGE PRICE BADGE + BIG TITLE
===================================================== */

/* price badge */



/* bigger product title */

.social-post-product-cover-title{

  font-size:1.18rem;
  font-weight:900;
  line-height:1.28;

  letter-spacing:-0.01em;

  color:#fff;

  text-shadow:
    0 3px 14px rgba(0,0,0,.45);
}


/* mobile */

@media (max-width:575.98px){

  .social-post-product-cover-title{
    font-size:1.05rem;
  }


}


/* =====================================================
   FORCE ORANGE PRICE BADGE
===================================================== */


/* bigger product title */

.social-post-card.social-post-product-ui .social-post-product-cover-title{

  font-size:1.22rem !important;

  font-weight:900 !important;

  letter-spacing:-0.01em;

}


/* =====================================================
   RUNLAA PRODUCT PRICE BADGE - SINGLE SOURCE OF TRUTH
===================================================== */

.social-post-card.social-post-product-ui .social-post-product-cover-price{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:max-content !important;
  min-height:44px !important;
  padding:.60rem 1.10rem !important;
  border-radius:999px !important;

  background:#ff7a00 !important;
  color:#ffffff !important;
  border:2px solid rgba(255,255,255,.42) !important;

  font-size:1.08rem !important;
  font-weight:900 !important;
  line-height:1 !important;
  letter-spacing:.01em !important;
  white-space:nowrap !important;

  box-shadow:
    0 14px 32px rgba(255,122,0,.45),
    inset 0 1px 0 rgba(255,255,255,.30) !important;

  text-shadow:0 1px 3px rgba(0,0,0,.35) !important;
}

.social-post-card.social-post-product-ui .social-post-product-cover-title{
  font-size:1.18rem !important;
  font-weight:900 !important;
  line-height:1.26 !important;
  letter-spacing:-0.01em !important;
}

@media (max-width:575.98px){
  .social-post-card.social-post-product-ui .social-post-product-cover-price{
    min-height:38px !important;
    font-size:.96rem !important;
    padding:.45rem .90rem !important;
  }

  .social-post-card.social-post-product-ui .social-post-product-cover-title{
    font-size:1.04rem !important;
  }
}

/* =====================================================
   RUNLAA PRODUCT CARD - SWAP PRICE ABOVE TITLE
===================================================== */

.social-post-product-cover-copy{
  display:flex !important;
  flex-direction:column-reverse !important;
  align-items:flex-start;
  gap:.55rem;
}

.social-post-product-cover-price{
  order:1;
}

.social-post-product-cover-title{
  order:2;
}


/* =====================================================
   RUNLAA PRODUCT CARD - FORCE PRICE ABOVE TITLE
===================================================== */

.social-post-card.social-post-product-ui .social-post-product-cover-copy{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  gap:.55rem !important;
}

.social-post-card.social-post-product-ui .social-post-product-cover-price{
  order:1 !important;
  margin:0 !important;
}

.social-post-card.social-post-product-ui .social-post-product-cover-title{
  order:2 !important;
  margin:0 !important;
}


/* =====================================================
   RUNLAA PRODUCT CARD - MARKETPLACE MODE
===================================================== */

.social-post-product-ui .social-post-top{
  display:none !important;
}

.social-post-product-ui .social-post-cover-wrap{
  position:relative;
}

.social-post-product-ui .social-post-cover-product{
  display:block;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:22px;
  background:var(--panel2);
  box-shadow:
    0 16px 38px rgba(15,23,42,.12),
    0 4px 14px rgba(15,23,42,.08);
}

.social-post-product-ui .social-post-cover-product img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .55s ease;
}

.social-post-product-ui:hover .social-post-cover-product img{
  transform:scale(1.06);
}

.social-post-product-ui .social-post-product-market-badge{
  position:absolute;
  top:12px;
  left:12px;
  z-index:5;
}

.social-post-product-ui .social-post-product-badge-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:.35rem .7rem;
  border-radius:999px;
  color:#fff;
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.04em;
  box-shadow:0 10px 24px rgba(0,0,0,.14);
}

.social-post-product-ui .social-post-product-badge-sale{
  background:#ef4444;
}

.social-post-product-ui .social-post-product-badge-new{
  background:#2563eb;
}

.social-post-product-ui .social-post-product-badge-hot{
  background:#f97316;
}

.social-post-product-ui .social-post-product-discount-badge{
  position:absolute;
  top:12px;
  right:12px;
  z-index:5;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:.38rem .75rem;
  border-radius:999px;
  background:#dc2626;
  color:#fff;
  font-size:.82rem;
  font-weight:900;
  line-height:1;
  box-shadow:0 10px 24px rgba(220,38,38,.24);
}

.social-post-product-ui .social-post-product-cover-overlay{
  position:absolute;
  inset:0;
  display:flex !important;
  align-items:flex-end;
  padding:1rem;
  border-radius:22px;
  background:
    linear-gradient(to top,
      rgba(15,23,42,.92) 0%,
      rgba(15,23,42,.58) 34%,
      rgba(15,23,42,.18) 58%,
      rgba(15,23,42,0) 78%);
  z-index:4;
  pointer-events:none;
}

.social-post-product-ui .social-post-product-cover-copy{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  gap:.55rem !important;
  width:100%;
}

.social-post-card.social-post-product-ui .social-post-product-cover-price{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:max-content !important;
  min-height:44px !important;
  padding:.60rem 1.10rem !important;
  border-radius:999px !important;
  background:#ff7a00 !important;
  color:#ffffff !important;
  border:2px solid rgba(255,255,255,.42) !important;
  font-size:1.08rem !important;
  font-weight:900 !important;
  line-height:1 !important;
  white-space:nowrap !important;
  box-shadow:
    0 14px 32px rgba(255,122,0,.45),
    inset 0 1px 0 rgba(255,255,255,.30) !important;
  text-shadow:0 1px 3px rgba(0,0,0,.35) !important;
  order:1 !important;
  margin:0 !important;
}

.social-post-card.social-post-product-ui .social-post-product-cover-title{
  order:2 !important;
  margin:0 !important;
  color:#fff !important;
  font-size:1.16rem !important;
  font-weight:900 !important;
  line-height:1.26 !important;
  letter-spacing:-0.01em !important;
  text-shadow:0 3px 14px rgba(0,0,0,.34) !important;
}

.social-post-product-ui .social-post-product-meta-row{
  margin-top:.15rem;
  margin-bottom:.2rem;
}

.social-post-product-ui .social-post-product-rating{
  display:inline-flex;
  align-items:center;
  gap:.42rem;
  font-size:.86rem;
  line-height:1;
}

.social-post-product-ui .social-post-product-rating-stars{
  color:#f59e0b;
  letter-spacing:.04em;
}

.social-post-product-ui .social-post-product-rating-value{
  color:var(--muted);
  font-weight:700;
}

.social-post-product-ui .social-post-product-content{
  margin:0;
  font-size:.92rem;
  line-height:1.55;
}

.social-post-product-ui .social-post-product-detail{
  display:none !important;
}

@media (max-width:575.98px){
  .social-post-product-ui .social-post-product-cover-overlay{
    padding:.82rem;
    border-radius:18px;
  }

  .social-post-product-ui .social-post-cover-product{
    border-radius:18px;
  }

  .social-post-card.social-post-product-ui .social-post-product-cover-title{
    font-size:1.02rem !important;
  }

  .social-post-card.social-post-product-ui .social-post-product-cover-price{
    min-height:38px !important;
    font-size:.96rem !important;
    padding:.45rem .90rem !important;
  }

  .social-post-product-ui .social-post-product-badge-pill,
  .social-post-product-ui .social-post-product-discount-badge{
    font-size:.74rem;
  }
}


/* RUNLAA POST CARDS THEME TUNE START */
.post-card .btn-like.active,
.post-card .btn-share.active,
.post-card .btn-tip.active,
.post-card .btn-comment.active,
.post-card__action.active{
  background:var(--rl-global-orange-btn) !important;
  color:#111318 !important;
  border-color:transparent !important;
}

[data-theme="dark-orange"] .post-card .btn-like,
[data-theme="dark-orange"] .post-card .btn-share,
[data-theme="dark-orange"] .post-card .btn-tip,
[data-theme="dark-orange"] .post-card .btn-comment,
[data-theme="dark-orange"] .post-card__action{
  background:var(--rl-global-card-dark) !important;
  color:var(--rl-text) !important;
  border-color:rgba(255,255,255,.10) !important;
}

[data-theme="dark-orange"] .post-card .btn-like.active,
[data-theme="dark-orange"] .post-card .btn-share.active,
[data-theme="dark-orange"] .post-card .btn-tip.active,
[data-theme="dark-orange"] .post-card .btn-comment.active,
[data-theme="dark-orange"] .post-card__action.active{
  background:var(--rl-global-orange-btn) !important;
  color:#111318 !important;
  border-color:transparent !important;
}
/* RUNLAA POST CARDS THEME TUNE END */


/* RUNLAA SOCIAL ACTIONS REAL CLASS FIX START */

/* hero light readability */
:root .rl-home-hero__title,
[data-theme="light-orange"] .rl-home-hero__title{
  color:var(--rl-text) !important;
  text-shadow:0 1px 0 rgba(255,255,255,.32);
}

:root .rl-home-hero__lead,
[data-theme="light-orange"] .rl-home-hero__lead{
  color:var(--rl-text-soft) !important;
}

:root .rl-home-hero__kicker,
:root .rl-growth-card__eyebrow,
:root .rl-home-stat__label,
[data-theme="light-orange"] .rl-home-hero__kicker,
[data-theme="light-orange"] .rl-growth-card__eyebrow,
[data-theme="light-orange"] .rl-home-stat__label{
  color:var(--rl-brand-strong) !important;
}

/* social actions - default */
.social-post-actions .action-btn,
.social-share-btn,
.social-vote-btn,
.action-btn-share,
.action-btn-like{
  border-radius:var(--rl-radius-sm) !important;
  border:1px solid var(--rl-line) !important;
  background:var(--rl-global-card) !important;
  color:var(--rl-text) !important;
  box-shadow:var(--rl-card-shadow-soft) !important;
  transition:
    background var(--rl-speed-fast) ease,
    color var(--rl-speed-fast) ease,
    border-color var(--rl-speed-fast) ease,
    box-shadow var(--rl-speed-fast) ease,
    transform var(--rl-speed-fast) ease !important;
}

.social-post-actions .action-btn:hover,
.social-share-btn:hover,
.social-vote-btn:hover,
.action-btn-share:hover,
.action-btn-like:hover{
  transform:translateY(-1px);
  border-color:var(--rl-brand-line) !important;
}

.social-post-actions .action-btn i,
.social-share-btn i,
.social-vote-btn i,
.action-btn-share i,
.action-btn-like i{
  color:inherit !important;
}

/* active / pressed / selected */
.social-post-actions .action-btn.active,
.social-share-btn.active,
.social-vote-btn.active,
.action-btn-share.active,
.action-btn-like.active,
.social-post-actions .action-btn[aria-pressed="true"],
.social-share-btn[aria-pressed="true"],
.social-vote-btn[aria-pressed="true"],
.action-btn-share[aria-pressed="true"],
.action-btn-like[aria-pressed="true"]{
  background:var(--rl-global-orange-btn) !important;
  color:#111318 !important;
  border-color:transparent !important;
  box-shadow:var(--rl-card-shadow-brand) !important;
}

.social-post-actions .action-btn.active i,
.social-share-btn.active i,
.social-vote-btn.active i,
.action-btn-share.active i,
.action-btn-like.active i,
.social-post-actions .action-btn[aria-pressed="true"] i,
.social-share-btn[aria-pressed="true"] i,
.social-vote-btn[aria-pressed="true"] i,
.action-btn-share[aria-pressed="true"] i,
.action-btn-like[aria-pressed="true"] i{
  color:#111318 !important;
}

/* dark theme social actions */
[data-theme="dark-orange"] .social-post-actions .action-btn,
[data-theme="dark-orange"] .social-share-btn,
[data-theme="dark-orange"] .social-vote-btn,
[data-theme="dark-orange"] .action-btn-share,
[data-theme="dark-orange"] .action-btn-like{
  background:var(--rl-global-card-dark) !important;
  color:var(--rl-text) !important;
  border-color:rgba(255,255,255,.10) !important;
  box-shadow:0 18px 44px rgba(0,0,0,.38) !important;
}

[data-theme="dark-orange"] .social-post-actions .action-btn:hover,
[data-theme="dark-orange"] .social-share-btn:hover,
[data-theme="dark-orange"] .social-vote-btn:hover,
[data-theme="dark-orange"] .action-btn-share:hover,
[data-theme="dark-orange"] .action-btn-like:hover{
  border-color:var(--rl-brand-line) !important;
  color:var(--rl-brand-orange-1) !important;
}

[data-theme="dark-orange"] .social-post-actions .action-btn.active,
[data-theme="dark-orange"] .social-share-btn.active,
[data-theme="dark-orange"] .social-vote-btn.active,
[data-theme="dark-orange"] .action-btn-share.active,
[data-theme="dark-orange"] .action-btn-like.active,
[data-theme="dark-orange"] .social-post-actions .action-btn[aria-pressed="true"],
[data-theme="dark-orange"] .social-share-btn[aria-pressed="true"],
[data-theme="dark-orange"] .social-vote-btn[aria-pressed="true"],
[data-theme="dark-orange"] .action-btn-share[aria-pressed="true"],
[data-theme="dark-orange"] .action-btn-like[aria-pressed="true"]{
  background:var(--rl-global-orange-btn) !important;
  color:#111318 !important;
  border-color:transparent !important;
  box-shadow:var(--rl-card-shadow-brand) !important;
}

[data-theme="dark-orange"] .social-post-actions .action-btn.active i,
[data-theme="dark-orange"] .social-share-btn.active i,
[data-theme="dark-orange"] .social-vote-btn.active i,
[data-theme="dark-orange"] .action-btn-share.active i,
[data-theme="dark-orange"] .action-btn-like.active i,
[data-theme="dark-orange"] .social-post-actions .action-btn[aria-pressed="true"] i,
[data-theme="dark-orange"] .social-share-btn[aria-pressed="true"] i,
[data-theme="dark-orange"] .social-vote-btn[aria-pressed="true"] i,
[data-theme="dark-orange"] .action-btn-share[aria-pressed="true"] i,
[data-theme="dark-orange"] .action-btn-like[aria-pressed="true"] i{
  color:#111318 !important;
}

/* links + icons both themes */
a:not(.btn):not(.action-btn):not(.social-share-btn):not(.social-vote-btn):not(.rl-home-btn):not(.rl-aff-cta),
.rl-link,
.icon-link{
  color:var(--rl-brand-strong) !important;
}

a:not(.btn):not(.action-btn):not(.social-share-btn):not(.social-vote-btn):not(.rl-home-btn):not(.rl-aff-cta):hover,
.rl-link:hover,
.icon-link:hover{
  color:var(--rl-brand-grad-1) !important;
}

[data-theme="dark-orange"] a:not(.btn):not(.action-btn):not(.social-share-btn):not(.social-vote-btn):not(.rl-home-btn):not(.rl-aff-cta),
[data-theme="dark-orange"] .rl-link,
[data-theme="dark-orange"] .icon-link{
  color:var(--rl-brand-orange-1) !important;
}

[data-theme="dark-orange"] a:not(.btn):not(.action-btn):not(.social-share-btn):not(.social-vote-btn):not(.rl-home-btn):not(.rl-aff-cta):hover,
[data-theme="dark-orange"] .rl-link:hover,
[data-theme="dark-orange"] .icon-link:hover{
  color:var(--rl-brand-grad-1) !important;
}

/* orange fills should be gradient */
.text-warning,
.text-orange,
.rl-text-orange{
  color:var(--rl-brand-orange-1) !important;
}

.bg-warning,
.text-bg-warning,
.badge.bg-warning,
.badge-quality,
.badge-rising{
  background:var(--rl-global-orange-btn) !important;
  color:#111318 !important;
  border-color:transparent !important;
}

/* RUNLAA SOCIAL ACTIONS REAL CLASS FIX END */


/* RUNLAA Post Level Badge */
.social-post-author-line{
display:inline-flex;
align-items:center;
gap:6px;
flex-wrap:wrap;
}

.post-author-name{
font-weight:600;
}

.rl-level-badge{
display:inline-flex;
align-items:center;
justify-content:center;
padding:2px 10px;
border-radius:999px;
font-size:11px;
font-weight:700;
line-height:1;
white-space:nowrap;
margin-left:6px;
letter-spacing:.2px;
}

.rl-level-1{background:#e5e7eb;color:#374151;}
.rl-level-2{background:#38bdf8;color:#fff;}
.rl-level-3{background:#22c55e;color:#fff;}
.rl-level-4{background:#a855f7;color:#fff;}
.rl-level-5{background:#fb923c;color:#fff;}
.rl-level-6{background:#ef4444;color:#fff;}
.rl-level-7{background:#f59e0b;color:#111;}
.rl-level-8{background:#eab308;color:#111;}
.rl-level-9{
background:linear-gradient(135deg,#fde047,#f59e0b);
color:#111;
box-shadow:0 0 8px rgba(245,158,11,.6);
}
