/* 🚀 REVESERY FIXED GRID LAYOUT SYSTEM - OPTIMIZED */
    
    /* CSS CUSTOM PROPERTIES - Design System */
    :root {
      /* Colors */
      --primary-red: #EF4444;
      --primary-red-hover: #DC2626;
      --primary-red-deep: #B91C1C;
      --success-green: #22C55E;
      --warning-yellow: #EAB308;
      --info-blue: #3B82F6;
      --purple-accent: #A855F7;
      --orange-accent: #F97316;
      
      /* Grays */
      --gray-50: #F9FAFB;
      --gray-100: #F3F4F6;
      --gray-200: #E5E7EB;
      --gray-300: #D1D5DB;
      --gray-400: #9CA3AF;
      --gray-500: #6B7280;
      --gray-600: #4B5563;
      --gray-700: #374151;
      --gray-800: #1F2937;
      --gray-900: #111827;
      
      /* Layout Fixed Dimensions */
      --sidebar-width: 280px;
      --header-height: 80px;
      
      /* Z-Index Stack */
      --z-sidebar: 1000;
      --z-header: 1100;
      --z-modal: 1200;
      --z-tooltip: 1300;
      --z-floating: 1400;
      
      /* Typography */
      --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
      
      /* Spacing Scale */
      --space-xs: 0.25rem;
      --space-sm: 0.5rem;
      --space-md: 1rem;
      --space-lg: 1.5rem;
      --space-xl: 2rem;
      --space-2xl: 3rem;
      
      /* Border Radius */
      --radius-sm: 0.5rem;
      --radius-md: 0.75rem;
      --radius-lg: 1rem;
      --radius-xl: 1.5rem;
      --radius-2xl: 2rem;
      
      /* Shadows */
      --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
      --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
      --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
      --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    }
    
    /* BASE RESET */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    body {
      font-family: var(--font-primary);
      background: #F7F7FA;
      color: var(--gray-900);
      line-height: 1.6;
      overflow-x: hidden;
      min-height: 100vh;
    }
    
    /* 🎯 FIXED GRID LAYOUT SYSTEM - ALWAYS VISIBLE */
    .revesery-layout-container {
      display: grid;
      grid-template-columns: var(--sidebar-width) 1fr;
      grid-template-rows: var(--header-height) 1fr auto;
      grid-template-areas:
        "sidebar header"
        "sidebar main"
        "sidebar footer";
      min-height: 100vh;
      width: 100vw;
      position: relative;
      opacity: 1;
      visibility: visible;
    }
    
    /* Progressive Enhancement - Only animate if JavaScript loads */
    .js-loaded .revesery-layout-container {
      transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Grid Areas - Perfect Alignment - ALWAYS VISIBLE */
    .layout-sidebar {
      grid-area: sidebar;
      z-index: var(--z-sidebar);
      position: sticky;
      top: 0;
      height: 100vh;
      overflow-y: auto;
      opacity: 1;
      visibility: visible;
    }
    
    .layout-header {
      grid-area: header;
      z-index: var(--z-header);
      position: sticky;
      top: 0;
      opacity: 1;
      visibility: visible;
    }
    
    .layout-main {
      grid-area: main;
      z-index: 1;
      overflow-y: auto;
      min-height: 0;
      background: #F7F7FA;
      -webkit-overflow-scrolling: touch;
      overflow-scrolling: touch;
      opacity: 1;
      visibility: visible;
    }
    
    /* REMOVE MAIN SCROLLBAR */
    .layout-main::-webkit-scrollbar {
      display: none;
    }
    
    .layout-main {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
    
    .layout-footer {
      grid-area: footer;
      z-index: 100;
      margin-left: 0;
      opacity: 1;
      visibility: visible;
    }
    
    /* 📱 MOBILE RESPONSIVE GRID - FIT TO SCREEN */
    @media (max-width: 768px) {
      /* Force mobile viewport to use full screen dimensions */
      html {
        width: 100%;
        height: 100%;
        overflow-x: hidden;
      }
      
      body {
        width: 100vw;
        min-height: 100vh;
        min-height: -webkit-fill-available; /* iOS Safari fix */
        overflow-x: hidden;
        position: relative;
      }
      
      .revesery-layout-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: var(--header-height) 1fr auto;
        grid-template-areas:
          "header"
          "main"
          "footer";
        width: 100vw;
        min-height: 100vh;
        min-height: -webkit-fill-available; /* iOS Safari fix */
        max-width: 100vw;
        overflow-x: hidden;
        position: relative;
      }
      
      .layout-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: min(var(--sidebar-width), calc(100vw - 40px));
        height: 100vh;
        height: -webkit-fill-available; /* iOS Safari fix */
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: var(--z-sidebar);
        background: white;
        box-shadow: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }
      
      .layout-sidebar.mobile-open {
        left: 0;
        box-shadow: var(--shadow-xl);
      }
      
      .layout-header {
        width: 100vw;
        max-width: 100vw;
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        overflow: hidden;
        z-index: var(--z-header);
      }
      
      .layout-main {
        width: 100vw;
        max-width: 100vw;
        min-height: calc(100vh - var(--header-height) - 60px);
        min-height: calc(-webkit-fill-available - var(--header-height) - 60px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
      }
      
      .layout-footer {
        width: 100vw;
        max-width: 100vw;
        margin-left: 0;
        position: relative;
        overflow: hidden;
      }
    }

    /* CONSOLIDATED NOTIFICATION SYSTEM - SINGLE IMPLEMENTATION */
    
    /* Notification Button Container */
    .notification-container {
      position: relative;
      display: inline-block;
    }
    
    /* BRIGHT RED NOTIFICATION BADGE - OPTIMIZED */
    .notification-badge {
      position: absolute;
      top: -6px;
      right: -6px;
      background: #EA3D3C;
      color: white;
      border-radius: 50%;
      min-width: 18px;
      height: 18px;
      display: none;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 700;
      font-family: 'Inter', 'Helvetica Neue', sans-serif;
      line-height: 1;
      border: 2px solid white;
      box-shadow: 0 2px 8px rgba(234, 61, 60, 0.4);
      z-index: 1000;
      animation: notificationPulse 2s infinite;
    }
    
    /* Optimized notification animation */
    @keyframes notificationPulse {
      0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(234, 61, 60, 0.4);
      }
      50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(234, 61, 60, 0.6);
      }
      100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(234, 61, 60, 0.4);
      }
    }
    
    .notification-badge.has-notifications {
      display: flex;
    }
    
    .notification-badge.high-count {
      background: #DC143C;
      animation: notificationUrgent 1.5s infinite;
    }
    
    @keyframes notificationUrgent {
      0%, 100% {
        transform: scale(1);
      }
      25% {
        transform: scale(1.15);
      }
      75% {
        transform: scale(1.05);
      }
    }
    
    /* Button state when has notifications */
    .notification-btn.has-new-notifications {
      border-color: #EA3D3C;
      background: rgba(234, 61, 60, 0.05);
    }
    
    /* OPTIMIZED NOTIFICATION MODAL - SINGLE CLEAN IMPLEMENTATION */
    .notification-modal {
      position: fixed;
      top: 90px;
      right: 20px;
      transform: translateY(-10px) scale(0.95);
      width: 400px;
      max-width: calc(100vw - 40px);
      max-height: 70vh;
      background: white;
      border-radius: 16px;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
      border: 1px solid #E5E7EB;
      z-index: 1501;
      opacity: 0;
      visibility: hidden;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
    }
    
    .notification-modal.active {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1);
    }
    
    .notification-modal-content {
      display: flex;
      flex-direction: column;
      height: 100%;
      max-height: 70vh;
    }
    
    .notification-modal-header {
      padding: 20px 24px 16px;
      border-bottom: 1px solid #F3F4F6;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-shrink: 0;
    }
    
    .notification-modal-header h3 {
      font-size: 18px;
      font-weight: 700;
      color: #111827;
      margin: 0;
      font-family: var(--font-primary);
    }
    
    .close-modal-btn {
      background: none;
      border: none;
      color: #9CA3AF;
      cursor: pointer;
      padding: 8px;
      border-radius: 8px;
      transition: all 0.2s ease;
      font-size: 16px;
    }
    
    .close-modal-btn:hover {
      background: rgba(107, 114, 128, 0.1);
      color: #6B7280;
    }
    
    .notification-modal-body {
      flex: 1;
      overflow-y: auto;
      padding: 8px 0;
      scrollbar-width: thin;
      scrollbar-color: #D1D5DB #F9FAFB;
    }
    
    .notification-modal-body::-webkit-scrollbar {
      width: 6px;
    }
    
    .notification-modal-body::-webkit-scrollbar-track {
      background: #F9FAFB;
    }
    
    .notification-modal-body::-webkit-scrollbar-thumb {
      background: #D1D5DB;
      border-radius: 3px;
    }
    
    .notification-modal-body::-webkit-scrollbar-thumb:hover {
      background: #9CA3AF;
    }
    
    .notification-modal-footer {
      padding: 16px 24px;
      border-top: 1px solid #F3F4F6;
      text-align: center;
      flex-shrink: 0;
    }
    
    /* NOTIFICATION ITEM DESIGN */
    .notification-item {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      padding: 16px 24px;
      cursor: pointer;
      transition: all 0.2s ease;
      position: relative;
      border-bottom: 1px solid #F9FAFB;
    }
    
    .notification-item:hover {
      background: #F9FAFB;
    }
    
    .notification-item:last-child {
      border-bottom: none;
    }
    
    .notification-item.unread {
      background: rgba(239, 68, 68, 0.02);
      border-left: 4px solid #EF4444;
    }
    
    .notification-item.unread:hover {
      background: rgba(239, 68, 68, 0.05);
    }
    
    .notification-icon {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 18px;
      position: relative;
    }
    
    .notification-icon.welcome {
      background: linear-gradient(135deg, #FEF3C7, #FDE68A);
      color: #D97706;
    }
    
    .notification-icon.feature {
      background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
      color: #2563EB;
    }
    
    .notification-icon.like {
      background: linear-gradient(135deg, #FEE2E2, #FECACA);
      color: #EF4444;
    }
    
    .notification-icon.comment {
      background: linear-gradient(135deg, #E0F2FE, #BAE6FD);
      color: #0284C7;
    }
    
    .notification-icon.follow {
      background: linear-gradient(135deg, #F0FDF4, #DCFCE7);
      color: #16A34A;
    }
    
    .notification-content {
      flex: 1;
      min-width: 0;
    }
    
    .notification-title {
      font-size: 15px;
      font-weight: 600;
      color: #111827;
      margin-bottom: 4px;
      line-height: 1.4;
      font-family: var(--font-primary);
    }
    
    .notification-message {
      font-size: 14px;
      color: #6B7280;
      line-height: 1.4;
      margin-bottom: 8px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    
    .notification-time {
      font-size: 12px;
      color: #9CA3AF;
      font-weight: 500;
    }
    
    .notification-unread-dot {
      position: absolute;
      top: 20px;
      right: 20px;
      width: 8px;
      height: 8px;
      background: #EF4444;
      border-radius: 50%;
      border: 2px solid white;
      animation: notificationPulse 2s infinite;
    }
    
    /* VIEW ALL NOTIFICATIONS BUTTON */
    .view-all-notifications-btn {
      background: linear-gradient(135deg, #EF4444, #DC2626);
      color: white;
      border: none;
      padding: 12px 24px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      font-family: var(--font-primary);
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0 auto;
      text-decoration: none;
    }
    
    .view-all-notifications-btn:hover {
      background: linear-gradient(135deg, #DC2626, #B91C1C);
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
      color: white;
      text-decoration: none;
    }
    
    .view-all-notifications-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }
    
    .notification-loading {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 40px 24px;
      color: #6B7280;
      font-size: 14px;
    }
    
    .notification-empty {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      padding: 40px 24px;
      color: #9CA3AF;
      text-align: center;
    }
    
    .notification-empty i {
      font-size: 48px;
      opacity: 0.5;
    }
    
    .notification-empty h4 {
      font-size: 18px;
      font-weight: 600;
      color: #6B7280;
      margin: 0;
    }
    
    .notification-empty p {
      font-size: 14px;
      margin: 0;
      line-height: 1.5;
    }
    
    /* MOBILE RESPONSIVE FOR NOTIFICATION MODAL - FIT TO SCREEN */
    @media (max-width: 768px) {
      .notification-modal {
        top: calc(var(--header-height) + 10px);
        right: var(--space-sm);
        left: var(--space-sm);
        width: auto;
        max-width: none;
        max-height: calc(100vh - var(--header-height) - 20px);
        max-height: calc(-webkit-fill-available - var(--header-height) - 20px);
      }
      
      .notification-modal-header {
        padding: 16px 20px 12px;
      }
      
      .notification-modal-header h3 {
        font-size: 16px;
      }
      
      .notification-item {
        padding: 12px 20px;
        gap: 12px;
      }
      
      .notification-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
      }
      
      .notification-title {
        font-size: 14px;
      }
      
      .notification-message {
        font-size: 13px;
      }
      
      .notification-unread-dot {
        top: 16px;
        right: 16px;
        width: 6px;
        height: 6px;
      }
      
      .notification-modal-footer {
        padding: 12px 20px;
      }
      
      .view-all-notifications-btn {
        padding: 10px 20px;
        font-size: 13px;
      }
      
      .notification-badge {
        top: -4px;
        right: -4px;
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        border-width: 1px;
      }
    }
    
    @media (max-width: 480px) {
      .notification-modal {
        top: calc(var(--header-height) + 5px);
        right: 5px;
        left: 5px;
        max-height: calc(100vh - var(--header-height) - 10px);
      }
      
      .notification-item {
        padding: 10px 16px;
        gap: 10px;
      }
      
      .notification-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
      }
    }
    
    /* SAFER PRELOAD STATE - Only affects animations, not visibility */
    .preload *,
    .preload *::before,
    .preload *::after {
      animation-duration: 0s !important;
      animation-delay: 0s !important;
      transition-duration: 0s !important;
      transition-delay: 0s !important;
    }
    
    /* MAIN CONTENT STYLING - MOBILE OPTIMIZED */
    .main-content-wrapper {
      padding: var(--space-xl);
      max-width: 1400px;
      margin: 0 auto;
      width: 100%;
    }
    
    @media (max-width: 768px) {
      .main-content-wrapper {
        padding: var(--space-sm);
        margin: 0;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
      }
    }
    
    @media (max-width: 480px) {
      .main-content-wrapper {
        padding: var(--space-xs) var(--space-sm);
      }
    }
    
    /* ENHANCED CARD SYSTEM - MOBILE OPTIMIZED */
    .card {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      border: 1px solid rgba(255, 255, 255, 0.25);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
      width: 100%;
      box-sizing: border-box;
    }
    
    .card:hover {
      transform: translateY(-1px);
      box-shadow: var(--shadow-md);
    }
    
    .card-padding {
      padding: var(--space-md) var(--space-lg);
    }
    
    @media (max-width: 768px) {
      .card {
        margin: 0;
        width: 100%;
        border-radius: var(--radius-md);
      }
      
      .card-padding {
        padding: var(--space-sm) var(--space-md);
      }
    }
    
    @media (max-width: 480px) {
      .card-padding {
        padding: var(--space-xs) var(--space-sm);
      }
    }
    
    /* SHARES CONTAINER - REDUCED SPACING */
    .shares-container {
      display: flex;
      flex-direction: column;
      gap: var(--space-md);
    }
    
    @media (min-width: 640px) {
      .shares-container { 
        gap: var(--space-lg); 
      }
    }
    
    /* FLOATING ACTION BUTTON */
    .floating-action {
      position: fixed;
      bottom: var(--space-xl);
      right: var(--space-xl);
      z-index: var(--z-floating);
    }
    
    .floating-btn {
      width: 56px;
      height: 56px;
      background: linear-gradient(135deg, var(--primary-red), var(--primary-red-hover));
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.25rem;
      box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      text-decoration: none;
      border: none;
      cursor: pointer;
    }
    
    .floating-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
      color: white;
    }
    
    /* FLOATING ACTION BUTTON - MOBILE SAFE POSITIONING */
    .floating-action {
      position: fixed;
      bottom: var(--space-xl);
      right: var(--space-xl);
      z-index: var(--z-floating);
    }
    
    .floating-btn {
      width: 56px;
      height: 56px;
      background: linear-gradient(135deg, var(--primary-red), var(--primary-red-hover));
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.25rem;
      box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      text-decoration: none;
      border: none;
      cursor: pointer;
    }
    
    .floating-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 25px rgba(239, 68, 68, 0.5);
      color: white;
    }
    
    @media (max-width: 768px) {
      .floating-action {
        bottom: calc(var(--space-lg) + env(safe-area-inset-bottom));
        right: var(--space-lg);
      }
      
      .floating-btn {
        width: 52px;
        height: 52px;
        font-size: 1.1rem;
      }
    }
    
    @media (max-width: 480px) {
      .floating-action {
        bottom: calc(var(--space-md) + env(safe-area-inset-bottom));
        right: var(--space-md);
      }
      
      .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 1rem;
      }
    }
    
    /* NEW SHARE SECTION - ALWAYS VISIBLE */
    .new-share-section {
      background: linear-gradient(135deg, var(--gray-50) 0%, #F1F5F9 100%);
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-xl);
      padding: var(--space-lg);
      margin-bottom: var(--space-lg);
      position: relative;
      overflow: hidden;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      opacity: 1;
      transform: translateY(0);
    }
    
    .new-share-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.05), transparent);
      transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .new-share-section:hover::before {
      left: 100%;
    }
    
    .new-share-section:hover {
      transform: translateY(-1px);
      border-color: var(--primary-red);
      box-shadow: 0 8px 25px rgba(239, 68, 68, 0.1);
    }
    
    /* SIMPLE AVATAR - NO HEAVY ANIMATIONS */
    .simple-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      transition: transform 0.2s ease;
      background: var(--gray-100);
      border: 2px solid white;
    }
    
    .simple-avatar:hover {
      transform: scale(1.02);
    }
    
    .simple-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .simple-avatar .avatar-placeholder {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, var(--primary-red), var(--primary-red-hover));
      color: white;
      font-weight: 600;
      font-size: 1rem;
    }
    
    /* SHARE INPUT AREA */
    .share-input-container {
      display: flex;
      align-items: center;
      gap: var(--space-md);
      width: 100%;
    }
    
    .share-input {
      flex: 1;
      background: transparent;
      border: none;
      outline: none;
      font-size: 1rem;
      color: var(--gray-700);
      placeholder-color: var(--gray-400);
      font-weight: 500;
      font-family: var(--font-primary);
      cursor: pointer;
      padding: var(--space-sm) 0;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .share-input::placeholder {
      color: var(--gray-400);
      font-weight: 400;
    }
    
    .share-input:hover::placeholder {
      color: var(--primary-red);
    }
    
    /* FIXED SEND BUTTON - FORCE BACKGROUND COLOR */
    .send-button {
      background: #EF4444 !important;
      background-color: #EF4444 !important;
      background-image: linear-gradient(135deg, #EF4444, #DC2626) !important;
      color: white !important;
      border: 2px solid #EF4444 !important;
      border-radius: var(--radius-xl);
      padding: var(--space-sm) var(--space-lg);
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex !important;
      align-items: center;
      justify-content: center;
      gap: var(--space-xs);
      font-size: 0.9rem;
      font-weight: 600 !important;
      min-width: 100px;
      height: 44px;
      box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
      position: relative;
      overflow: hidden;
      flex-shrink: 0;
      font-family: var(--font-primary);
      text-decoration: none !important;
      outline: none !important;
    }
    
    .send-button::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .send-button:hover::before {
      left: 100%;
    }
    
    .send-button:hover {
      transform: translateY(-2px) !important;
      box-shadow: 0 8px 20px rgba(239, 68, 68, 0.5) !important;
      background: #DC2626 !important;
      background-color: #DC2626 !important;
      background-image: linear-gradient(135deg, #DC2626, #B91C1C) !important;
      color: white !important;
      border-color: #DC2626 !important;
    }
    
    .send-button:active {
      transform: translateY(0) !important;
      box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
    }
    
    .send-button i {
      font-size: 0.875rem;
      transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      color: white !important;
    }
    
    .send-button:hover i {
      transform: translateX(2px);
      color: white !important;
    }
    
    .send-button span {
      color: white !important;
      font-weight: 600 !important;
    }
    
    .send-button:hover span {
      color: white !important;
    }
    
    .send-button:focus {
      outline: 3px solid rgba(239, 68, 68, 0.3) !important;
      outline-offset: 2px;
    }
    
    /* ENHANCED TAB SYSTEM - ALWAYS VISIBLE */
    .tab-container {
      display: flex;
      gap: var(--space-lg);
      margin-bottom: var(--space-lg);
      overflow-x: auto;
      border-bottom: 1px solid var(--gray-200);
      position: relative;
      padding-bottom: var(--space-sm);
      opacity: 1;
      transform: translateY(0);
    }
    
    .tab {
      position: relative;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      border: none;
      background: transparent;
      padding: var(--space-sm) var(--space-md);
      font-size: 1rem;
      font-weight: 500;
      color: var(--gray-500);
      cursor: pointer;
      white-space: nowrap;
      font-family: var(--font-primary);
      border-radius: var(--radius-md);
      display: flex;
      align-items: center;
      gap: var(--space-xs);
    }
    
    .tab::before {
      content: '';
      position: absolute;
      bottom: -9px;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--primary-red), var(--primary-red-hover));
      border-radius: 2px;
      transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .tab.active {
      font-weight: 600;
      color: var(--gray-900);
      background: rgba(239, 68, 68, 0.05);
    }
    
    .tab.active::before {
      width: 80%;
    }
    
    .tab:hover:not(.active) {
      background: rgba(107, 114, 128, 0.05);
      color: var(--gray-700);
    }
    
    .tab:hover:not(.active)::before {
      width: 60%;
      background: var(--gray-400);
    }
    
    /* TAB ICONS WITH COLORS */
    .tab .fa-clock { color: var(--success-green); }
    .tab .fa-fire { color: var(--primary-red); }
    .tab .fa-users { color: var(--purple-accent); }
    .tab .fa-bookmark { color: var(--warning-yellow); }
    
    /* WORK RATE STATUS INDICATORS */
    .work-rate-status {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      padding: 0.25rem 0.5rem;
      border-radius: 9999px;
      font-size: 0.75rem;
      font-weight: 600;
      border: 1px solid;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      white-space: nowrap;
    }
    
    .work-rate-status:hover {
      transform: scale(1.05);
      box-shadow: var(--shadow-sm);
    }
    
    /* Work Rate Color Schemes */
    .work-rate-excellent {
      color: #065F46;
      background-color: #ECFDF5;
      border-color: #BBF7D0;
    }
    
    .work-rate-good {
      color: #1E40AF;
      background-color: #EFF6FF;
      border-color: #DBEAFE;
    }
    
    .work-rate-moderate {
      color: #D97706;
      background-color: #FFFBEB;
      border-color: #FED7AA;
    }
    
    .work-rate-poor {
      color: #EA580C;
      background-color: #FFF7ED;
      border-color: #FFEDD5;
    }
    
    .work-rate-failing {
      color: #DC2626;
      background-color: #FEF2F2;
      border-color: #FECACA;
    }
    
    .work-rate-unrated {
      color: #6B7280;
      background-color: #F9FAFB;
      border-color: #E5E7EB;
    }
    
    /* Work Rate Icons */
    .work-rate-status .fa-check-circle { color: #22C55E; }
    .work-rate-status .fa-thumbs-up { color: #3B82F6; }
    .work-rate-status .fa-minus-circle { color: #F59E0B; }
    .work-rate-status .fa-exclamation-triangle { color: #F97316; }
    .work-rate-status .fa-times-circle { color: #EF4444; }
    .work-rate-status .fa-question-circle { color: #9CA3AF; }
    
    /* Work Rate Tooltip Enhancement */
    .work-rate-status[data-tooltip] {
      position: relative;
    }
    
    .work-rate-status[data-tooltip]:hover::after {
      content: attr(data-tooltip);
      position: absolute;
      bottom: 120%;
      left: 50%;
      transform: translateX(-50%);
      background: var(--gray-800);
      color: white;
      padding: 0.5rem;
      border-radius: 0.5rem;
      font-size: 0.75rem;
      white-space: nowrap;
      z-index: var(--z-tooltip);
      opacity: 0;
      animation: fadeIn 0.2s ease forwards;
    }
    
    @keyframes fadeIn {
      to { opacity: 1; }
    }
    
    /* COLORFUL TRENDING PERIOD FILTERS */
    .trending-filters {
      display: flex;
      gap: var(--space-xs);
      margin-bottom: var(--space-lg);
      background: var(--gray-50);
      padding: var(--space-xs);
      border-radius: var(--radius-lg);
      border: 1px solid var(--gray-200);
      position: relative;
      overflow: hidden;
    }
    
    .trending-filter {
      flex: 1;
      padding: var(--space-sm) var(--space-md);
      background: transparent;
      border: none;
      border-radius: var(--radius-md);
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--gray-600);
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      font-family: var(--font-primary);
      text-align: center;
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: var(--space-xs);
      text-decoration: none;
    }
    
    .trending-filter::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: -1;
    }
    
    .trending-filter:hover::before {
      left: 100%;
    }
    
    /* COLORFUL PERIOD STYLES */
    .trending-filter.period-daily {
      color: #EF4444;
      border: 1px solid transparent;
    }
    
    .trending-filter.period-daily::before {
      background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.1), transparent);
    }
    
    .trending-filter.period-daily.active {
      background: linear-gradient(135deg, #FEF2F2, #FEE2E2);
      color: #DC2626;
      box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
      font-weight: 600;
      border-color: #FECACA;
    }
    
    .trending-filter.period-daily:hover:not(.active) {
      background: rgba(239, 68, 68, 0.05);
      color: #DC2626;
    }
    
    .trending-filter.period-weekly {
      color: #F97316;
      border: 1px solid transparent;
    }
    
    .trending-filter.period-weekly::before {
      background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.1), transparent);
    }
    
    .trending-filter.period-weekly.active {
      background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
      color: #EA580C;
      box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
      font-weight: 600;
      border-color: #FED7AA;
    }
    
    .trending-filter.period-weekly:hover:not(.active) {
      background: rgba(249, 115, 22, 0.05);
      color: #EA580C;
    }
    
    .trending-filter.period-monthly {
      color: #8B5CF6;
      border: 1px solid transparent;
    }
    
    .trending-filter.period-monthly::before {
      background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    }
    
    .trending-filter.period-monthly.active {
      background: linear-gradient(135deg, #FAF5FF, #F3E8FF);
      color: #7C3AED;
      box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
      font-weight: 600;
      border-color: #E9D5FF;
    }
    
    .trending-filter.period-monthly:hover:not(.active) {
      background: rgba(139, 92, 246, 0.05);
      color: #7C3AED;
    }
    
    .trending-filter.period-all-time {
      color: #059669;
      border: 1px solid transparent;
    }
    
    .trending-filter.period-all-time::before {
      background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.1), transparent);
    }
    
    .trending-filter.period-all-time.active {
      background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
      color: #047857;
      box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
      font-weight: 600;
      border-color: #BBF7D0;
    }
    
    .trending-filter.period-all-time:hover:not(.active) {
      background: rgba(5, 150, 105, 0.05);
      color: #047857;
    }
    
    /* PERIOD ICONS */
    .trending-filter .period-icon {
      font-size: 0.75rem;
      opacity: 0.8;
      transition: opacity 0.2s ease;
    }
    
    .trending-filter.active .period-icon {
      opacity: 1;
    }
    
    /* Progressive Enhancement - Only if JS loads */
    .js-loaded .reveal {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .js-loaded .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }
    
    /* Fallback: Always visible if no JS */
    .reveal {
      opacity: 1;
      transform: translateY(0);
    }
    
    /* TRENDING DESCRIPTION TEXT */
    .trending-description {
      font-size: 0.875rem;
      color: var(--gray-600);
      margin-bottom: var(--space-md);
      text-align: center;
      padding: var(--space-sm) var(--space-md);
      background: rgba(239, 68, 68, 0.05);
      border-radius: var(--radius-md);
      border: 1px solid rgba(239, 68, 68, 0.1);
    }
    
    .trending-description.period-daily {
      background: rgba(239, 68, 68, 0.05);
      color: #DC2626;
      border-color: rgba(239, 68, 68, 0.1);
    }
    
    .trending-description.period-weekly {
      background: rgba(249, 115, 22, 0.05);
      color: #EA580C;
      border-color: rgba(249, 115, 22, 0.1);
    }
    
    .trending-description.period-monthly {
      background: rgba(139, 92, 246, 0.05);
      color: #7C3AED;
      border-color: rgba(139, 92, 246, 0.1);
    }
    
    .trending-description.period-all-time {
      background: rgba(5, 150, 105, 0.05);
      color: #047857;
      border-color: rgba(5, 150, 105, 0.1);
    }
    
    /* SIDEBAR WIDGETS - COMPACT - ALWAYS VISIBLE */
    .sidebar-widget {
      background: white;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      border: 1px solid var(--gray-100);
      margin-bottom: var(--space-lg);
      overflow: hidden;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      opacity: 1;
    }
    
    .sidebar-widget:hover {
      transform: translateY(-1px);
      box-shadow: var(--shadow-md);
    }
    
    .sidebar-widget-header {
      padding: var(--space-md) var(--space-lg);
      border-bottom: 1px solid var(--gray-100);
    }
    
    .sidebar-widget-title {
      font-size: 1rem;
      font-weight: 700;
      color: var(--gray-900);
      display: flex;
      align-items: center;
      gap: var(--space-sm);
      font-family: var(--font-primary);
    }
    
    .sidebar-widget-content {
      padding: var(--space-md) var(--space-lg);
      text-align: left;
    }
    
    /* Prevent center alignment in empty states */
    .sidebar-widget-content .text-center {
      text-align: center;
    }
    
    /* FOLLOW BUTTON SYSTEM */
    .follow-btn {
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      border: none;
      outline: none;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      font-family: var(--font-primary);
      font-weight: 600;
      font-size: 0.75rem;
      padding: var(--space-xs) var(--space-md);
      border-radius: 9999px;
    }
    
    .follow-btn:hover {
      transform: translateY(-1px);
      box-shadow: var(--shadow-md);
    }
    
    .follow-btn.following {
      background: linear-gradient(135deg, var(--success-green), #16A34A);
      color: white;
    }
    
    .follow-btn.following:hover {
      background: linear-gradient(135deg, #16A34A, #15803D);
    }
    
    .follow-btn:not(.following) {
      background: linear-gradient(135deg, var(--primary-red), var(--primary-red-hover));
      color: white;
    }
    
    .follow-btn:not(.following):hover {
      background: linear-gradient(135deg, var(--primary-red-hover), var(--primary-red-deep));
    }
    
    /* TRENDING SHARES WIDGET - PERFECT LEFT ALIGNMENT */
    .trending-share-item {
      display: block;
      padding: var(--space-sm);
      border-radius: var(--radius-sm);
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      text-decoration: none;
      color: inherit;
      margin-bottom: var(--space-xs);
      text-align: left !important;
      width: 100%;
    }
    
    .trending-share-item:hover {
      background: var(--gray-50);
      transform: translateX(2px);
    }
    
    .trending-share-title {
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--gray-900);
      margin-bottom: var(--space-xs);
      line-height: 1.4;
      transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-align: left !important;
    }
    
    .trending-share-item:hover .trending-share-title {
      color: var(--primary-red);
    }
    
    .trending-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.75rem;
      color: var(--gray-500);
      text-align: left !important;
      width: 100%;
    }
    
    .trending-author {
      display: flex;
      align-items: center;
      gap: var(--space-xs);
      flex: 1;
      min-width: 0;
      text-align: left !important;
    }
    
    .trending-author span {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-align: left !important;
    }
    
    .trending-stats {
      display: flex;
      align-items: center;
      gap: var(--space-sm);
      flex-shrink: 0;
    }
    
    /* Force all text elements in trending shares to be left-aligned */
    .sidebar-widget .trending-share-item,
    .sidebar-widget .trending-share-item *,
    .sidebar-widget .trending-share-title,
    .sidebar-widget .trending-meta,
    .sidebar-widget .trending-author,
    .sidebar-widget .trending-author span {
      text-align: left !important;
    }
    
    /* CONTRIBUTOR ITEM - COMPACT */
    .contributor-item {
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      border-radius: var(--radius-sm);
      padding: var(--space-sm);
      margin-bottom: var(--space-xs);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    
    .contributor-item:hover {
      background: rgba(239, 68, 68, 0.02);
      transform: translateX(2px);
    }
    
    .contributor-info {
      display: flex;
      align-items: center;
      gap: var(--space-sm);
      flex: 1;
      min-width: 0;
    }
    
    .contributor-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      flex-shrink: 0;
      overflow: hidden;
    }
    
    .contributor-details {
      min-width: 0;
      flex: 1;
    }
    
    .contributor-name {
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--gray-900);
      margin-bottom: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 1.3;
    }
    
    .contributor-stats {
      font-size: 0.8rem;
      color: var(--gray-500);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 1.4;
    }
    
    /* VIEW ALL LINK */
    .view-all-link {
      display: block;
      text-align: center;
      color: var(--primary-red);
      font-size: 0.8rem;
      font-weight: 600;
      text-decoration: none;
      padding: var(--space-sm);
      border-top: 1px solid var(--gray-100);
      margin-top: var(--space-sm);
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .view-all-link:hover {
      background: var(--gray-50);
      color: var(--primary-red-hover);
    }
    
    /* XP SYSTEM STYLING */
    .role-badge {
      display: inline-flex;
      align-items: center;
      gap: var(--space-xs);
      padding: var(--space-xs) var(--space-sm);
      border-radius: 9999px;
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.025em;
      box-shadow: var(--shadow-sm);
      position: relative;
      overflow: hidden;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .role-badge::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
      transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .role-badge:hover {
      transform: scale(1.05);
      box-shadow: var(--shadow-md);
    }
    
    .role-badge:hover::before {
      left: 100%;
    }
    
    /* Role Colors */
    .role-rookie { background: var(--gray-100); color: var(--gray-700); }
    .role-explorer { background: #FEF3C7; color: #92400E; }
    .role-insider { background: #D1FAE5; color: #065F46; }
    .role-specialist { background: #DBEAFE; color: #1E40AF; }
    .role-expert { background: #FEE2E2; color: #DC2626; }
    .role-master { background: #FED7AA; color: #EA580C; }
    .role-legend { background: #E9D5FF; color: #7C3AED; }
    
    /* XP TOOLTIP */
    .xp-tooltip {
      position: absolute;
      background: var(--gray-800);
      color: white;
      padding: var(--space-sm) var(--space-md);
      border-radius: var(--radius-md);
      font-size: 0.75rem;
      white-space: nowrap;
      z-index: var(--z-tooltip);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      transform: translateX(-50%);
      bottom: 120%;
      left: 50%;
    }
    
    .xp-tooltip::after {
      content: '';
      position: absolute;
      top: 100%;
      left: 50%;
      margin-left: -5px;
      border-width: 5px;
      border-style: solid;
      border-color: var(--gray-800) transparent transparent transparent;
    }
    
    .role-badge:hover .xp-tooltip {
      opacity: 1;
    }
    
    /* TAG SYSTEM WITH SOFT COLORS */
    .tag-link {
      display: inline-block;
      padding: var(--space-sm) var(--space-md);
      border-radius: 9999px;
      font-size: 0.875rem;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      margin: var(--space-xs);
      border: 1px solid transparent;
    }
    
    .tag-link:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
    
    /* SPECIFIC TAG COLORS WITH SOFT DESIGN */
    .tag-blue {
      background: #d6e8fd;
      color: #2764c0;
      border-color: #b8d4fc;
    }
    
    .tag-blue:hover {
      background: #c4ddfb;
      color: #1e4a94;
    }
    
    .tag-yellow {
      background: #fcebaf;
      color: #9b5c0c;
      border-color: #fae085;
    }
    
    .tag-yellow:hover {
      background: #fbe49d;
      color: #7a4609;
    }
    
    .tag-green {
      background: #cdf5e1;
      color: #2e7d50;
      border-color: #a7f0c4;
    }
    
    .tag-green:hover {
      background: #bdf2d6;
      color: #226340;
    }
    
    .tag-red {
      background: #ffd2d2;
      color: #c63636;
      border-color: #ffb5b5;
    }
    
    .tag-red:hover {
      background: #ffc5c5;
      color: #a02929;
    }
    
    .tag-purple {
      background: #e4d8fc;
      color: #7d59db;
      border-color: #d4c4f9;
    }
    
    .tag-purple:hover {
      background: #dbcdf9;
      color: #6342c7;
    }
    
    .tag-orange {
      background: #ffc788;
      color: #cc5d0d;
      border-color: #ffb866;
    }
    
    .tag-orange:hover {
      background: #ffbd76;
      color: #a6470a;
    }
    
    /* ADDITIONAL COLORS IN SAME TONE */
    .tag-cyan {
      background: #FFE7D9;
      color: #D64B22;
      border-color: #FFD3BF;
    }
    
    .tag-cyan:hover {
      background: #FFDCC7;
      color: #B83918;
    }
    
    .tag-lime {
      background: #E5D1FF;
      color: #6F2C9B;
      border-color: #D7B8FF;
    }
    
    .tag-lime:hover {
      background: #DDC4FF;
      color: #5A2478;
    }
    
    .tag-rose {
      background: #ffe1e6;
      color: #be185d;
      border-color: #ffc7d1;
    }
    
    .tag-rose:hover {
      background: #ffd6dd;
      color: #9d1447;
    }
    
    .tag-violet {
      background: #f0e8ff;
      color: #6d28d9;
      border-color: #e5d4ff;
    }
    
    .tag-violet:hover {
      background: #ebddff;
      color: #5b21b6;
    }
    
    .tag-emerald {
      background: #dcfce7;
      color: #059669;
      border-color: #bbf7d0;
    }
    
    .tag-emerald:hover {
      background: #d1fae5;
      color: #047857;
    }
    
    .tag-amber {
      background: #fef3c7;
      color: #d97706;
      border-color: #fde68a;
    }
    
    .tag-amber:hover {
      background: #fef08a;
      color: #b45309;
    }
    
    .tag-pink {
      background: #fce7f3;
      color: #db2777;
      border-color: #f9a8d4;
    }
    
    .tag-pink:hover {
      background: #fbcfe8;
      color: #be185d;
    }
    
    .tag-teal {
      background: #ccfbf1;
      color: #0f766e;
      border-color: #99f6e4;
    }
    
    .tag-teal:hover {
      background: #b2f9ec;
      color: #0d5d56;
    }
    
    .tag-indigo {
      background: #e0e7ff;
      color: #4f46e5;
      border-color: #c7d2fe;
    }
    
    .tag-indigo:hover {
      background: #d6ddff;
      color: #4338ca;
    }
    
    .tag-gray {
      background: #f1f5f9;
      color: #475569;
      border-color: #e2e8f0;
    }
    
    .tag-gray:hover {
      background: #e2e8f0;
      color: #334155;
    }
    
    /* FORCED CATEGORY COLORS */
    .tag-tools-custom {
      background: #FFE7D9 !important;
      color: #D64B22 !important;
      border-color: #FFD3BF !important;
    }
    
    .tag-tools-custom:hover {
      background: #FFDCC7 !important;
      color: #B83918 !important;
    }
    
    .tag-socialmedia-custom {
      background: #E5D1FF !important;
      color: #6F2C9B !important;
      border-color: #D7B8FF !important;
    }
    
    .tag-socialmedia-custom:hover {
      background: #DDC4FF !important;
      color: #5A2478 !important;
    }
    
    .tag-sponsored-custom {
      background: #E8F6FB !important;
      color: #2A6D85 !important;
      border-color: #D4ECFC !important;
    }
    
    .tag-sponsored-custom:hover {
      background: #DEF1F9 !important;
      color: #1F5C75 !important;
    }
    
    /* CLICKABLE CARDS */
    .clickable-card {
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .clickable-card:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    }
    
    /* ACTION BUTTONS */
    .action-btn {
      position: relative;
      overflow: hidden;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      border: none;
      background: none;
      cursor: pointer;
      border-radius: var(--radius-md);
      padding: var(--space-sm) var(--space-md);
      font-family: var(--font-primary);
    }
    
    .action-btn::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      background: rgba(239, 68, 68, 0.1);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .action-btn:hover::before {
      width: 100%;
      height: 100%;
    }
    
    /* UTILITY CLASSES */
    .text-gradient-red {
      background: linear-gradient(135deg, var(--primary-red), var(--primary-red-hover));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    
    .bg-gradient-red {
      background: linear-gradient(135deg, var(--primary-red), var(--primary-red-hover));
    }
    
    .border-gradient-red {
      border: 2px solid;
      border-image: linear-gradient(135deg, var(--primary-red), var(--primary-red-hover)) 1;
    }
    
    /* LINE CLAMP UTILITIES */
    .line-clamp-2 {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    
    .line-clamp-3 {
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    
    /* ANIMATION KEYFRAMES */
    @keyframes slideInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    @keyframes fadeInScale {
      from {
        opacity: 0;
        transform: scale(0.95);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }
    
    @keyframes pulse {
      0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
      }
      50% { 
        opacity: 0.5; 
        transform: scale(1.05); 
      }
    }
    
    /* PROGRESSIVE ENHANCEMENT ANIMATION CLASSES */
    .js-loaded .animate-slide-in-up {
      animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .js-loaded .animate-fade-in-scale {
      animation: fadeInScale 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .js-loaded .animate-pulse {
      animation: pulse 2s infinite;
    }
    
    /* MOBILE OVERLAY - OPTIMIZED FOR MOBILE DEVICES */
    .mobile-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      width: 100vw;
      height: 100vh;
      height: -webkit-fill-available; /* iOS Safari fix */
      background: rgba(0, 0, 0, 0.5);
      z-index: calc(var(--z-sidebar) - 1);
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
    }
    
    .mobile-overlay.active {
      opacity: 1;
      visibility: visible;
    }
    
    @media (max-width: 768px) {
      .mobile-overlay {
        touch-action: none; /* Prevent scroll behind overlay */
      }
    }
    
    /* NOTIFICATION SYSTEM ENHANCEMENTS */
    .notification {
      position: fixed;
      top: var(--space-lg);
      right: var(--space-lg);
      z-index: var(--z-floating);
      padding: var(--space-lg) var(--space-xl);
      border-radius: var(--radius-lg);
      color: white;
      font-weight: 500;
      font-family: var(--font-primary);
      font-size: 0.875rem;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      transform: translateX(100%);
      box-shadow: var(--shadow-lg);
      display: flex;
      align-items: center;
      gap: var(--space-sm);
      max-width: 400px;
    }
    
    .notification.show {
      transform: translateX(0);
    }
    
    .notification.success {
      background: linear-gradient(135deg, var(--success-green), #16A34A);
    }
    
    .notification.error {
      background: linear-gradient(135deg, var(--primary-red), var(--primary-red-hover));
    }
    
    .notification.info {
      background: linear-gradient(135deg, var(--info-blue), #2563EB);
    }
    
    .notification.warning {
      background: linear-gradient(135deg, var(--warning-yellow), #D97706);
    }
    
    /* XP GAIN ANIMATION */
    .xp-gain {
      position: absolute;
      background: linear-gradient(135deg, var(--success-green), #16A34A);
      color: white;
      padding: var(--space-xs) var(--space-sm);
      border-radius: var(--radius-md);
      font-size: 0.75rem;
      font-weight: 600;
      z-index: var(--z-tooltip);
      pointer-events: none;
      transform: translateY(0);
      opacity: 1;
      transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .xp-gain.animate {
      transform: translateY(-30px);
      opacity: 0;
    }
    
    /* OPTIMIZED LOADING SPINNER - SINGLE DEFINITION */
    .loading-spinner {
      display: inline-block;
      width: 20px;
      height: 20px;
      border: 2px solid #f3f3f3;
      border-top: 2px solid #EF4444;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    
    /* LOADING STATES */
    .loading {
      opacity: 0.7;
      pointer-events: none;
    }
    
    .loading .fa-spin,
    .loading-spinner {
      animation: spin 1s infinite linear;
    }
    
    .loading-dots {
      display: inline-block;
    }
    
    .loading-dots::after {
      content: '';
      animation: loading-dots 1.5s infinite;
    }
    
    @keyframes loading-dots {
      0%, 20% { content: '.'; }
      40% { content: '..'; }
      60%, 100% { content: '...'; }
    }
    
    /* SKELETON LOADING STATES - OPTIMIZED */
    .trending-skeleton {
      background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
      background-size: 200% 100%;
      animation: skeleton-shimmer 1.5s infinite;
      border-radius: 16px;
      height: 160px;
      margin-bottom: 16px;
    }
    
    .trending-loading {
      opacity: 0.6;
      pointer-events: none;
    }
    
    @keyframes skeleton-shimmer {
      0% { background-position: -200% 0; }
      100% { background-position: 200% 0; }
    }
    
    /* CSS-ONLY PROGRESSIVE ENHANCEMENT */
    .needs-js {
      opacity: 1;
      pointer-events: auto;
    }
    
    .js-loaded .needs-js {
      transition: opacity 0.3s ease;
    }
    
    /* ACCESSIBILITY IMPROVEMENTS */
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    
    .loading-announcement {
      position: absolute;
      left: -10000px;
      width: 1px;
      height: 1px;
      overflow: hidden;
    }
    
    /* PERFORMANCE OPTIMIZATIONS */
    .js-loaded .revesery-layout-container,
    .js-loaded .layout-sidebar,
    .js-loaded .layout-header {
      will-change: opacity, visibility;
      transform: translateZ(0);
    }
    
    /* DROPDOWN MENU STYLING */
    .dropdown-menu {
      animation: fadeInScale 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 1000;
    }
    
    .dropdown-menu .bg-white {
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .dropdown-menu button {
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      font-family: var(--font-primary);
    }
    
    .dropdown-menu button:hover {
      transform: translateX(2px);
    }
    
    /* BOOKMARK BUTTON ENHANCED STATES */
    .action-btn.bookmarked {
      color: #F59E0B !important;
    }
    
    .action-btn.bookmarked:hover {
      color: #D97706 !important;
      transform: scale(1.1);
    }
    
    .action-btn.bookmarked i {
      color: #F59E0B !important;
    }
    
    /* SHARE MODAL STYLING */
    .share-modal {
      opacity: 0;
      transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 1050;
    }
    
    .share-modal.show {
      opacity: 1;
    }
    
    .share-modal .bg-white {
      animation: slideInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }
    
    .share-modal a {
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      font-family: var(--font-primary);
    }
    
    .share-modal a:hover {
      background-color: #F3F4F6;
      transform: translateX(4px);
    }