/* ══════════════════════════════════════════════════════════════
   SOYTUFAN UX/UI ENHANCEMENT v4.0
   Premium creator platform experience
   ══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --stf-primary: #FF1766;
  --stf-primary-dark: #E0145A;
  --stf-primary-light: #FF4D8A;
  --stf-primary-bg: rgba(255, 23, 102, 0.06);
  --stf-primary-bg-hover: rgba(255, 23, 102, 0.1);
  --stf-gradient: linear-gradient(135deg, #FF1766 0%, #FF6B8A 100%);
  --stf-gradient-hero: linear-gradient(135deg, #FF1766 0%, #FF924A 100%);
  --stf-surface: #FFFFFF;
  --stf-surface-2: #F8FAFC;
  --stf-surface-3: #F1F5F9;
  --stf-border: #E2E8F0;
  --stf-border-light: #F1F5F9;
  --stf-text: #1E293B;
  --stf-text-secondary: #475569;
  --stf-text-muted: #64748B;
  --stf-success: #10B981;
  --stf-warning: #F59E0B;
  --stf-danger: #EF4444;
  --stf-radius-sm: 8px;
  --stf-radius: 12px;
  --stf-radius-lg: 16px;
  --stf-radius-xl: 20px;
  --stf-shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --stf-shadow: 0 4px 12px rgba(0,0,0,0.06);
  --stf-shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --stf-shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --stf-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════
   PROFILE PAGE — Premium Redesign
   ══════════════════════════════════════ */

/* Cover image overlay gradient */
.profile-cover-bg {
  position: relative;
  overflow: hidden;
}
.profile-cover-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(0,0,0,0.3));
  pointer-events: none;
}
.profile-cover-bg img {
  transition: transform 0.5s ease;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Avatar enhancement */
.avatar-holder {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}
.avatar-holder img {
  border: 4px solid var(--stf-surface) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
  transition: transform 0.3s ease;
  object-fit: cover;
}
.avatar-holder img:hover {
  transform: scale(1.05);
}

/* Profile action pills — modern floating buttons */
.p-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--stf-surface);
  box-shadow: var(--stf-shadow);
  transition: var(--stf-transition);
  color: var(--stf-text);
  border: 1px solid var(--stf-border-light);
}
.p-pill:hover {
  background: var(--stf-primary-bg);
  color: var(--stf-primary);
  transform: translateY(-2px);
  box-shadow: var(--stf-shadow-lg);
}
.p-pill-text {
  width: auto;
  padding: 0 16px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.85rem;
  gap: 4px;
}

/* Profile stats row */
.profile-description-holder {
  line-height: 1.6;
  font-size: 0.92rem;
  color: var(--stf-text-secondary);
}

/* Profile info chips */
.profile-description-holder + div .d-flex.align-items-center {
  background: var(--stf-surface-2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  gap: 4px;
}

/* Subscription section on profile */
.subscription-holder {
  background: linear-gradient(135deg, var(--stf-primary-bg) 0%, rgba(255,107,138,0.04) 100%);
  border-radius: var(--stf-radius-lg);
  border: 1px solid rgba(255,23,102,0.1);
  padding: 20px !important;
}
.subscription-holder h6 {
  color: var(--stf-primary);
  letter-spacing: 0.5px;
  font-size: 0.72rem;
}
.subscription-holder .btn {
  background: var(--stf-gradient) !important;
  border: none !important;
  border-radius: var(--stf-radius) !important;
  padding: 14px 24px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  box-shadow: 0 4px 15px rgba(255,23,102,0.3) !important;
  transition: var(--stf-transition) !important;
}
.subscription-holder .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255,23,102,0.4) !important;
}

/* Verified badges */
.badge-verified-id {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
}
.badge-ai {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: white;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ══════════════════════════════════════
   FEED PAGE — Enhanced Post Experience
   ══════════════════════════════════════ */

/* Post cards - cleaner look */
.post-box {
  background: var(--stf-surface) !important;
  border-radius: var(--stf-radius-lg) !important;
  border: 1px solid var(--stf-border-light) !important;
  margin-bottom: 16px !important;
  transition: var(--stf-transition);
  overflow: hidden;
}
.post-box:hover {
  box-shadow: var(--stf-shadow);
}

/* Post header - user info */
.post-box .post-header {
  padding: 14px 16px 8px;
}
.post-box .post-header .avatar,
.post-box .avatar {
  border-radius: 50% !important;
  border: 2px solid var(--stf-border-light) !important;
}

/* Post content */
.post-box .post-content {
  padding: 0 16px 8px;
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Post media */
.post-box .post-media img,
.post-box .post-media video {
  border-radius: 0 !important;
}

/* Post actions bar */
.post-box .post-actions,
.post-box .post-count-details {
  padding: 8px 16px;
  border-top: 1px solid var(--stf-border-light);
}
.post-box .post-actions .btn,
.post-box .post-actions span {
  transition: var(--stf-transition);
}
.post-box .post-actions .btn:hover,
.post-box .post-actions span:hover {
  color: var(--stf-primary) !important;
}

/* Post comments area */
.post-box .post-comment-area,
.post-box .post-comments {
  background: var(--stf-surface-2) !important;
  border-top: 1px solid var(--stf-border-light) !important;
  padding: 12px 16px !important;
}
.post-box .post-comments .form-control {
  background: var(--stf-surface) !important;
  border-radius: 24px !important;
  padding: 10px 18px !important;
  border: 1px solid var(--stf-border) !important;
}

/* Feed wrapper no shadow */
.feed-box {
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

/* Suggestions cards - polished */
.suggestion-card,
.swiper-slide .card {
  border-radius: var(--stf-radius-lg) !important;
  overflow: hidden;
  transition: var(--stf-transition);
  border: 1px solid var(--stf-border-light) !important;
}
.suggestion-card:hover,
.swiper-slide .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--stf-shadow-lg);
}
.suggestion-header-bg {
  height: 100px !important;
  background-size: cover !important;
  position: relative;
}
.suggestion-header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.2));
}

/* Creator cards on suggestion */
.creator-body {
  margin-top: -45px;
  position: relative;
  z-index: 2;
}
.creator-body .avatar {
  border: 3px solid var(--stf-surface) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12) !important;
}

/* Feed sidebar widgets */
.feed-widgets,
.search-widgets {
  position: sticky;
  top: 1rem;
}

/* Suggestion box title */
.suggestions-header {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--stf-text);
  padding: 12px 0;
}

/* ══════════════════════════════════════
   MESSENGER — Modern Chat Experience
   ══════════════════════════════════════ */

/* Contacts sidebar */
.conversations-wrapper {
  background: var(--stf-surface-2) !important;
  border-right: 1px solid var(--stf-border-light) !important;
}

/* Contact items */
.contact-box,
.conversations-list .media {
  padding: 12px 14px !important;
  border-radius: var(--stf-radius) !important;
  margin: 2px 6px;
  transition: var(--stf-transition);
  cursor: pointer;
  border: none !important;
}
.contact-box:hover,
.conversations-list .media:hover,
.contact-box.selected,
.conversations-list .media.selected {
  background: var(--stf-primary-bg) !important;
}
.contact-box.selected,
.conversations-list .media.selected {
  border-left: 3px solid var(--stf-primary) !important;
}

/* Contact avatar */
.contact-avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--stf-border-light);
}

/* Chat area */
.conversation-content {
  background: var(--stf-surface) !important;
  padding: 20px !important;
}

/* Message bubbles - modern style */
.message-bubble,
.conversation-content .media .media-body > div {
  padding: 12px 16px !important;
  border-radius: 18px !important;
  max-width: 75% !important;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  word-wrap: break-word;
}

/* Sent messages */
.message-bubble.sent,
.conversation-content .media.sent .media-body > div,
.conversation-content .sent-message {
  background: var(--stf-gradient) !important;
  color: white !important;
  border-radius: 18px 18px 4px 18px !important;
  margin-left: auto;
}
.message-bubble.sent a,
.conversation-content .sent-message a {
  color: rgba(255,255,255,0.9) !important;
  text-decoration: underline;
}

/* Received messages */
.message-bubble.received,
.conversation-content .media:not(.sent) .media-body > div,
.conversation-content .received-message {
  background: var(--stf-surface-2) !important;
  color: var(--stf-text) !important;
  border-radius: 18px 18px 18px 4px !important;
}

/* Message input area */
.conversation-writeup {
  background: var(--stf-surface) !important;
  border-top: 1px solid var(--stf-border-light) !important;
  padding: 12px 16px !important;
}
.messageBoxInput {
  border-radius: 24px !important;
  border: 1.5px solid var(--stf-border) !important;
  padding: 10px 18px !important;
  font-size: 0.9rem !important;
  resize: none;
  max-height: 120px;
  background: var(--stf-surface-2) !important;
  transition: var(--stf-transition);
}
.messageBoxInput:focus {
  border-color: var(--stf-primary) !important;
  background: var(--stf-surface) !important;
  box-shadow: 0 0 0 3px var(--stf-primary-bg) !important;
}

/* Messenger buttons */
.messenger-button {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: var(--stf-transition);
  background: var(--stf-surface-2) !important;
  border: 1px solid var(--stf-border-light) !important;
  color: var(--stf-text-secondary) !important;
}
.messenger-button:hover {
  background: var(--stf-primary-bg) !important;
  color: var(--stf-primary) !important;
}
.messenger-button.send-message {
  background: var(--stf-gradient) !important;
  color: white !important;
  border: none !important;
}
.messenger-button.send-message:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255,23,102,0.3);
}

/* Conversation header */
.conversation-header .details-holder,
.new-conversation-header .details-holder {
  padding: 16px !important;
  border-bottom: 1px solid var(--stf-border-light);
  background: var(--stf-surface);
}

/* ══════════════════════════════════════
   SEARCH/EXPLORE — Better Discovery
   ══════════════════════════════════════ */

/* Search box */
.search-box-wrapper input,
.feed-mobile-search input {
  border-radius: 24px !important;
  padding: 12px 20px 12px 44px !important;
  border: 1.5px solid var(--stf-border) !important;
  background: var(--stf-surface-2) !important;
  font-size: 0.9rem;
  transition: var(--stf-transition);
}
.search-box-wrapper input:focus,
.feed-mobile-search input:focus {
  border-color: var(--stf-primary) !important;
  background: var(--stf-surface) !important;
  box-shadow: 0 0 0 4px var(--stf-primary-bg) !important;
}

/* Search back button */
.search-back-button {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: var(--stf-surface) !important;
  border: 1px solid var(--stf-border-light) !important;
  transition: var(--stf-transition);
}
.search-back-button:hover {
  background: var(--stf-primary-bg) !important;
  color: var(--stf-primary) !important;
}

/* User search cards */
.user-search-box-item {
  border-radius: var(--stf-radius) !important;
  padding: 14px !important;
  border: 1px solid var(--stf-border-light) !important;
  background: var(--stf-surface) !important;
  transition: var(--stf-transition);
  margin-bottom: 8px;
}
.user-search-box-item:hover {
  background: var(--stf-primary-bg) !important;
  border-color: rgba(255,23,102,0.15) !important;
  transform: translateX(4px);
}
.user-search-box-item .avatar {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50%;
  border: 2px solid var(--stf-border-light);
  object-fit: cover;
}

/* Search filters */
.mobile-search-filter .card {
  border-radius: var(--stf-radius) !important;
  border: 1px solid var(--stf-border-light) !important;
  background: var(--stf-surface-2) !important;
  margin: 8px 12px !important;
}
.mobile-search-filter select,
.mobile-search-filter input {
  border-radius: var(--stf-radius-sm) !important;
}

/* ══════════════════════════════════════
   SETTINGS — Clean Panel
   ══════════════════════════════════════ */

/* Settings menu */
.settings-menu-wrapper {
  position: sticky;
  top: 1rem;
}
.settings-menu .list-group-item,
.settings-menu-wrapper .list-group-item {
  border: none !important;
  border-radius: var(--stf-radius-sm) !important;
  padding: 11px 16px !important;
  margin-bottom: 2px;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--stf-text-secondary);
  transition: var(--stf-transition);
}
.settings-menu .list-group-item:hover,
.settings-menu-wrapper .list-group-item:hover {
  background: var(--stf-primary-bg) !important;
  color: var(--stf-primary) !important;
}
.settings-menu .list-group-item.active,
.settings-menu-wrapper .list-group-item.active {
  background: var(--stf-primary-bg) !important;
  color: var(--stf-primary) !important;
  font-weight: 700 !important;
  border-left: 3px solid var(--stf-primary) !important;
}

/* Settings content area */
.settings-content h5 {
  font-weight: 800 !important;
  font-size: 1.1rem;
}
.settings-content h6 {
  font-size: 0.82rem;
  color: var(--stf-text-muted);
}

/* Settings form sections */
.settings-content .form-group {
  margin-bottom: 20px;
}
.settings-content .form-group label {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--stf-text);
  margin-bottom: 6px;
}

/* ══════════════════════════════════════
   NOTIFICATIONS — Better Items
   ══════════════════════════════════════ */

.notification-item,
.notifications-wrapper .media {
  padding: 14px 16px !important;
  border-radius: var(--stf-radius) !important;
  transition: var(--stf-transition);
  border-bottom: 1px solid var(--stf-border-light) !important;
}
.notification-item:hover,
.notifications-wrapper .media:hover {
  background: var(--stf-primary-bg) !important;
}
.notification-item .avatar,
.notifications-wrapper .media img {
  border-radius: 50%;
  width: 44px !important;
  height: 44px !important;
  object-fit: cover;
}

/* Unread notification indicator */
.menu-notification-badge,
.notifications-menu-count {
  background: var(--stf-primary) !important;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -4px;
  right: -4px;
  padding: 0 5px;
  border: 2px solid var(--stf-surface);
}

/* ══════════════════════════════════════
   BOOKMARKS — Enhanced
   ══════════════════════════════════════ */

.bookmarks-nav .nav-link {
  position: relative;
}
.bookmarks-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--stf-primary);
  border-radius: 2px;
}

/* ══════════════════════════════════════
   CHECKOUT/PAYMENT — Trust & Clarity
   ══════════════════════════════════════ */

.checkout-dialog .modal-content,
#checkout-center .modal-content {
  border-radius: var(--stf-radius-xl) !important;
  overflow: hidden;
}

/* Payment method selector */
.checkout-payment-provider {
  border-radius: var(--stf-radius) !important;
  border: 2px solid var(--stf-border) !important;
  padding: 16px !important;
  transition: var(--stf-transition);
  cursor: pointer;
}
.checkout-payment-provider:hover {
  border-color: var(--stf-primary-light) !important;
  background: var(--stf-primary-bg) !important;
}
.checkout-payment-provider.selected {
  border-color: var(--stf-primary) !important;
  background: var(--stf-primary-bg) !important;
  box-shadow: 0 0 0 3px rgba(255,23,102,0.08) !important;
}

/* Checkout amount display */
.checkout-dialog .amount-display,
#checkout-center .amount-display {
  font-size: 2rem;
  font-weight: 800;
  color: var(--stf-text);
}

/* ══════════════════════════════════════
   STREAMS — Live Badge & Cards
   ══════════════════════════════════════ */

.stream-card {
  border-radius: var(--stf-radius-lg) !important;
  overflow: hidden;
  position: relative;
}
.stream-card .live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #EF4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse-red 2s infinite;
}

/* ══════════════════════════════════════
   MOBILE BOTTOM NAVBAR — Better Touch
   ══════════════════════════════════════ */

.fixed-bottom .mobile-navbar,
.fixed-bottom nav {
  background: var(--stf-surface) !important;
  border-top: 1px solid var(--stf-border-light) !important;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06) !important;
  padding: 6px 0 !important;
  padding-bottom: max(6px, env(safe-area-inset-bottom)) !important;
}
.fixed-bottom .nav-link,
.fixed-bottom a {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--stf-text-secondary) !important;
  transition: color 0.2s;
  padding: 6px 8px !important;
}
.fixed-bottom .nav-link.active,
.fixed-bottom a.active {
  color: var(--stf-primary) !important;
}

/* ══════════════════════════════════════
   SIDEBAR — Polished Nav
   ══════════════════════════════════════ */

.side-menu .nav-link {
  border-radius: var(--stf-radius-sm) !important;
  margin-bottom: 2px !important;
  padding: 10px 14px !important;
  transition: var(--stf-transition);
  color: rgba(255,255,255,0.8) !important;
  font-weight: 500;
}
.side-menu .nav-link:hover {
  background: rgba(255,255,255,0.15) !important;
  color: white !important;
}
.side-menu .nav-link.active {
  background: rgba(255,255,255,0.2) !important;
  color: white !important;
  font-weight: 700;
}

/* ══════════════════════════════════════
   TOOLTIPS — Polished
   ══════════════════════════════════════ */

.tooltip-inner {
  background: var(--stf-text) !important;
  border-radius: var(--stf-radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
}

/* ══════════════════════════════════════
   LOADING STATES — Skeleton Pulse
   ══════════════════════════════════════ */

@keyframes skeleton-pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}
.skeleton-loading,
.preloading-box {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  background: linear-gradient(90deg, var(--stf-surface-3) 25%, var(--stf-surface-2) 50%, var(--stf-surface-3) 75%);
  background-size: 200% 100%;
  border-radius: var(--stf-radius-sm);
}

/* ══════════════════════════════════════
   EMPTY STATES — Friendlier
   ══════════════════════════════════════ */

.no-results-wrapper,
.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.no-results-wrapper h5,
.empty-state h5 {
  font-weight: 700;
  color: var(--stf-text);
  margin-bottom: 8px;
}
.no-results-wrapper p,
.empty-state p {
  color: var(--stf-text-muted);
  font-size: 0.9rem;
  max-width: 320px;
  margin: 0 auto;
}

/* ══════════════════════════════════════
   LISTS & BOOKMARKS PAGES
   ══════════════════════════════════════ */

.list-group-item {
  border: none !important;
  border-bottom: 1px solid var(--stf-border-light) !important;
  padding: 14px 16px !important;
  transition: var(--stf-transition);
}
.list-group-item:hover {
  background: var(--stf-primary-bg) !important;
}

/* ══════════════════════════════════════
   SCROLL ENHANCEMENTS
   ══════════════════════════════════════ */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Pull-to-refresh area */
.ptr-element {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════
   MICRO-INTERACTIONS & ANIMATIONS
   ══════════════════════════════════════ */

/* Like animation */
@keyframes heart-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.post-box .reaction-active {
  animation: heart-pop 0.4s ease;
}

/* Fade in for new content */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.post-box {
  animation: fade-up 0.35s ease-out;
}
.user-search-box-item {
  animation: fade-up 0.3s ease-out;
}

/* ══════════════════════════════════════
   DARK MODE OVERRIDES
   ══════════════════════════════════════ */

body.dark-mode .post-box,
.content-wrapper[style*="background-color:#222"] .post-box {
  background: #2D2D2D !important;
  border-color: #3D3D3D !important;
}
body.dark-mode .conversation-content,
.content-wrapper[style*="background-color:#222"] .conversation-content {
  background: #1A1A1A !important;
}
body.dark-mode .form-control,
.content-wrapper[style*="background-color:#222"] .form-control {
  background: #2D2D2D !important;
  border-color: #3D3D3D !important;
  color: #E2E8F0 !important;
}
body.dark-mode .user-search-box-item,
.content-wrapper[style*="background-color:#222"] .user-search-box-item {
  background: #2D2D2D !important;
  border-color: #3D3D3D !important;
}

/* ══════════════════════════════════════
   RESPONSIVE REFINEMENTS
   ══════════════════════════════════════ */

@media (max-width: 599px) {
  /* Profile mobile */
  .avatar-holder {
    margin-top: -45px;
  }
  .p-pill {
    width: 44px;
    height: 44px;
  }
  .subscription-holder {
    margin: 0 12px !important;
    padding: 16px !important;
  }
  
  /* Messenger mobile - full screen chat */
  .conversations-wrapper {
    border-right: none !important;
  }
  .conversation-writeup {
    padding: 8px 12px !important;
  }
  .messenger-button {
    width: 44px !important;
    height: 44px !important;
  }
  
  /* Posts edge-to-edge on mobile */
  .post-box {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
  }
  
  /* Better touch for post actions */
  .post-box .post-actions .btn,
  .post-box .post-actions span,
  .post-box .post-actions a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center;
  }
  
  /* Settings mobile */
  .settings-menu .list-group {
    flex-direction: row !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding: 4px !important;
    background: var(--stf-surface-2) !important;
    border-radius: var(--stf-radius) !important;
    gap: 4px;
  }
  .settings-menu .list-group-item {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    border-radius: var(--stf-radius-sm) !important;
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
    border-left: none !important;
  }
  .settings-menu .list-group-item.active {
    background: var(--stf-primary) !important;
    color: white !important;
    border-left: none !important;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .post-box {
    border-radius: var(--stf-radius) !important;
    margin-bottom: 12px !important;
  }
  .messenger .col-3 {
    min-width: 240px;
  }
}

@media (min-width: 900px) {
  /* Hover effects on desktop only */
  .post-box:hover {
    transform: translateY(-1px);
    box-shadow: var(--stf-shadow);
  }
  .suggestion-card:hover {
    transform: translateY(-4px);
  }
  .user-search-box-item:hover {
    transform: translateX(4px);
  }
}

/* ══════════════════════════════════════
   ACCESSIBILITY
   ══════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--stf-primary) !important;
  outline-offset: 2px !important;
}

/* Skip to content for screen readers */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--stf-primary);
  color: white;
  padding: 12px 24px;
  z-index: 10000;
  font-weight: 700;
}
.skip-to-content:focus {
  top: 0;
}

/* ══════════════════════════════════════
   BUTTON TEXT CONTRAST FIXES
   Fix pink-on-pink text visibility
   ══════════════════════════════════════ */

/* Subscription buttons - force white text on gradient */
.subscription-holder .btn,
.subscription-holder .btn span,
.subscription-holder a.btn,
.subscription-wrapper .btn,
.subscription-wrapper a.btn,
.profile-action-btn,
button[class*="subscribe"],
a[class*="subscribe"],
.btn-subscribe,
.btn.btn-lg.btn-primary.btn-block,
.btn-primary.btn-block,
.btn-round.btn-lg.btn-primary {
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15) !important;
}

/* Subscription price text must be white */
.subscription-holder .btn .subscription-price,
.subscription-holder .btn span,
.subscription-holder .btn div,
.subscription-holder .btn-block span,
.subscription-holder .btn-block div,
.btn-primary.btn-block span,
.btn-primary.btn-block div,
.btn-round span,
.btn-round div {
  color: #FFFFFF !important;
}

/* Bundle subscription buttons */
.subscription-holder .bundles-wrapper .btn,
.subscription-holder .bundles-wrapper .btn span,
.subscription-holder .bundles-wrapper a,
.bundles-wrapper .btn,
.bundles-wrapper a.btn {
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15) !important;
}

/* Go Live / Stream button */
.btn-live,
a[class*="live"],
button[class*="live"],
.btn-round.btn-lg,
.go-live-btn,
[onclick*="live"],
.blob + span,
.btn-primary.btn-round {
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

/* General: ALL gradient/primary buttons must have white text */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.bg-gradient-primary,
.bg-gradient-primary:hover,
[style*="background:linear-gradient"],
[style*="background: linear-gradient"],
[style*="background-color:#FF1766"],
[style*="background-color: #FF1766"],
[style*="background:#FF1766"],
[style*="background: #FF1766"],
[style*="background-color:rgb(255,23,102)"],
[style*="background: rgb(255,23,102)"] {
  color: #FFFFFF !important;
}

/* Fix any nested elements inside primary buttons */
.btn-primary *,
.bg-gradient-primary *,
.btn-primary span,
.btn-primary div,
.btn-primary a,
.btn-primary i,
.bg-gradient-primary span,
.bg-gradient-primary div {
  color: #FFFFFF !important;
}

/* Subscribe button specific - the main CTA on profiles */
.subscribe-btn-wrapper .btn,
.subscribe-btn-wrapper .btn *,
.checkout-subscribe-btn,
.checkout-subscribe-btn * {
  color: #FFFFFF !important;
}

/* Profile subscription section buttons */
.subscription-holder .btn-block {
  background: var(--stf-gradient) !important;
  color: #FFFFFF !important;
  border: none !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
}
.subscription-holder .btn-block:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}
.subscription-holder .btn-block span,
.subscription-holder .btn-block div,
.subscription-holder .btn-block * {
  color: #FFFFFF !important;
}

/* Bundles/packages pricing text */
.subscription-holder .d-flex.justify-content-between span,
.subscription-holder .price-label,
.subscription-holder .subscription-price-label {
  font-weight: 700;
}

/* Stream/Live buttons */
.stream-btn,
.btn-stream,
.live-stream-btn,
.btn[style*="background"][style*="gradient"] {
  color: #FFFFFF !important;
}
.stream-btn *,
.btn-stream *,
.live-stream-btn * {
  color: #FFFFFF !important;
}


/* ══════════════════════════════════════
   ULTRA-SPECIFIC BUTTON TEXT FIXES
   Ensures white text on ALL pink/gradient buttons
   ══════════════════════════════════════ */

/* Subscribe buttons on profile - exact match from template */
.subscription-holder .btn.btn-round.btn-lg.btn-primary.btn-block,
.subscription-holder .btn.btn-round.btn-lg.btn-primary.btn-block span,
.subscription-holder .btn.btn-round.btn-lg.btn-primary.btn-block div,
.subscription-holder .btn.btn-round.btn-lg.btn-primary.btn-block * {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}

/* Bundle buttons (3, 6, 12 months) */
.bundles .btn.btn-round.btn-lg.btn-primary.btn-block,
.bundles .btn.btn-round.btn-lg.btn-primary.btn-block span,
.bundles .btn.btn-round.btn-lg.btn-primary.btn-block *,
.profile-bundles .btn,
.profile-bundles .btn span,
.profile-bundles .btn * {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}

/* ANY btn-primary with btn-block */
.btn.btn-primary.btn-block,
.btn.btn-primary.btn-block span,
.btn.btn-primary.btn-block *,
button.btn-primary.btn-block,
button.btn-primary.btn-block span,
button.btn-primary.btn-block * {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

/* Go Live / Stream button */
.btn.btn-round.btn-lg,
.btn.btn-round.btn-lg span,
.btn.btn-round.btn-lg *,
a.btn.btn-round.btn-lg,
a.btn.btn-round.btn-lg span {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

/* Fix for gradient background buttons only (not all elements) */
.bg-gradient-primary,
.bg-gradient-primary * {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

/* Fix text-gradient class that might steal colors */
.btn .text-gradient,
.btn-primary .text-gradient,
.btn-block .text-gradient {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

/* Ensure all btn-primary variants have white text */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:visited {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
