/* HugeAstrology Base UI Styles (Extracted from base.html for browser caching) */

    /* Form select and option contrast and theme fixes */
    select {
      background-color: #ffffff;
      color: #0f172a;
    }
    .dark select,
    html.dark select {
      background-color: #1e293b;
      color: #f8fafc;
    }
    select option,
    select optgroup {
      background-color: #ffffff !important;
      color: #0f172a !important;
    }
    .dark select option,
    html.dark select option,
    .dark select optgroup,
    html.dark select optgroup {
      background-color: #0f172a !important;
      color: #f8fafc !important;
    }

    html,
    body {
      min-height: 100%;
      overflow-x: hidden;
      max-width: 100vw;
    }

    [x-cloak] {
      display: none !important;
    }

    .hidden {
      display: none !important;
    }

    /* Restores standard list and spacing styling for .prose elements (Tailwind Typography missing) */
    .prose ol {
      list-style-type: decimal !important;
      padding-left: 1.5rem !important;
      margin-top: 1rem !important;
      margin-bottom: 1rem !important;
    }

    .prose ul {
      list-style-type: disc !important;
      padding-left: 1.5rem !important;
      margin-top: 1rem !important;
      margin-bottom: 1rem !important;
    }

    .prose li {
      margin-top: 0.25rem !important;
      margin-bottom: 0.25rem !important;
      display: list-item !important;
    }

    .prose p {
      margin-top: 0.75rem !important;
      margin-bottom: 0.75rem !important;
    }


    @media (min-width: 768px) {
      .md\:hidden {
        display: none !important;
      }
      .md\:flex {
        display: flex !important;
      }
      .md\:block {
        display: block !important;
      }
    }

    [x-cloak] {
      display: none !important;
    }

    html {
      scrollbar-gutter: stable;
    }

    body {
      font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
      min-height: 100vh;
    }

    /* ==========================================================================
       DEFINITIVE GLOBAL DARK MODE ENGINE (Shell, Left Sidebar, Search & Forms)
       ========================================================================== */
    html.dark,
    .dark,
    html.dark body,
    .dark body,
    html.dark main,
    .dark main,
    html.dark .site-main-layout,
    .dark .site-main-layout,
    html.dark .main-canvas-area,
    .dark .main-canvas-area,
    html.dark #main-content,
    .dark #main-content {
      background-color: #0e1113 !important;
      color: #f1f5f9 !important;
    }

    /* Left Navigation Sidebar Shell in Dark Mode */
    html.dark aside#desktop-sidebar,
    .dark aside#desktop-sidebar,
    html.dark .sidebar-scroller,
    .dark .sidebar-scroller {
      background-color: #0e1113 !important;
      border-color: #223237 !important;
      color: #cbd5e1 !important;
    }

    html.dark aside#desktop-sidebar a,
    .dark aside#desktop-sidebar a,
    html.dark aside#desktop-sidebar button,
    .dark aside#desktop-sidebar button {
      color: #cbd5e1;
    }

    html.dark aside#desktop-sidebar a:hover,
    .dark aside#desktop-sidebar a:hover,
    html.dark aside#desktop-sidebar button:hover,
    .dark aside#desktop-sidebar button:hover {
      background-color: #1a282d !important;
      color: #ffffff !important;
    }

    html.dark aside#desktop-sidebar hr,
    .dark aside#desktop-sidebar hr {
      border-color: #223237 !important;
    }

    html.dark aside#desktop-sidebar button.rounded-full,
    .dark aside#desktop-sidebar button.rounded-full,
    html.dark button[title="Expand Navigation"],
    .dark button[title="Expand Navigation"] {
      background-color: #1a282d !important;
      border-color: #273740 !important;
      color: #94a3b8 !important;
    }

    html.dark aside#desktop-sidebar button.rounded-full:hover,
    .dark aside#desktop-sidebar button.rounded-full:hover,
    html.dark button[title="Expand Navigation"]:hover,
    .dark button[title="Expand Navigation"]:hover {
      background-color: #223237 !important;
      color: #818cf8 !important;
    }

    /* Top Navigation Search Bar in Dark Mode */
    .top-nav-search-bar {
      background-color: #EAEDEF;
      border: 1px solid transparent;
    }
    .top-nav-search-bar:hover {
      background-color: #E2E6E9;
    }
    .top-nav-search-bar:focus-within {
      background-color: #ffffff;
      border-color: #cbd5e1;
    }
    html.dark .top-nav-search-bar,
    .dark .top-nav-search-bar {
      background-color: #1a282d !important;
      border-color: rgba(255, 255, 255, 0.08) !important;
    }
    html.dark .top-nav-search-bar:hover,
    .dark .top-nav-search-bar:hover {
      background-color: #223237 !important;
    }
    html.dark .top-nav-search-bar:focus-within,
    .dark .top-nav-search-bar:focus-within {
      background-color: #0e1113 !important;
      border-color: rgba(99, 102, 241, 0.6) !important;
    }
    html.dark .top-nav-search-bar input,
    .dark .top-nav-search-bar input {
      color: #f1f5f9 !important;
    }
    html.dark .top-nav-search-bar input::placeholder,
    .dark .top-nav-search-bar input::placeholder {
      color: #94a3b8 !important;
    }
    html.dark .top-nav-search-bar svg,
    .dark .top-nav-search-bar svg {
      color: #94a3b8 !important;
    }
    html.dark .top-nav-search-bar .bg-indigo-50,
    .dark .top-nav-search-bar .bg-indigo-50 {
      background-color: #1e1b4b !important;
      border-color: #3730a3 !important;
      color: #c7d2fe !important;
    }

    /* Settings Page & General Forms Dark Mode */
    html.dark #settings-form,
    .dark #settings-form,
    html.dark section[data-search-url],
    .dark section[data-search-url],
    html.dark [x-data*="activeSection"],
    .dark [x-data*="activeSection"] {
      background-color: #0e1113 !important;
      color: #f1f5f9 !important;
    }

    html.dark #settings-form .divide-slate-100 > *,
    .dark #settings-form .divide-slate-100 > *,
    html.dark section[data-search-url] .divide-slate-100 > *,
    .dark section[data-search-url] .divide-slate-100 > *,
    html.dark section[data-search-url] .border-slate-100,
    .dark section[data-search-url] .border-slate-100 {
      border-color: #223237 !important;
    }

    html.dark #settings-form p.text-slate-800,
    .dark #settings-form p.text-slate-800,
    html.dark section[data-search-url] p.text-slate-800,
    .dark section[data-search-url] p.text-slate-800 {
      color: #f1f5f9 !important;
    }

    html.dark #settings-form p.text-slate-500,
    .dark #settings-form p.text-slate-500,
    html.dark section[data-search-url] p.text-slate-500,
    .dark section[data-search-url] p.text-slate-500,
    html.dark #settings-form span.text-slate-500,
    .dark #settings-form span.text-slate-500,
    html.dark section[data-search-url] span.text-slate-500,
    .dark section[data-search-url] span.text-slate-500 {
      color: #94a3b8 !important;
    }

    html.dark section[data-search-url] aside button,
    .dark section[data-search-url] aside button {
      color: #cbd5e1;
    }

    html.dark section[data-search-url] aside button:hover,
    .dark section[data-search-url] aside button:hover {
      background-color: #1a282d !important;
      color: #ffffff !important;
    }

    html.dark section[data-search-url] a[href*="analytics"],
    .dark section[data-search-url] a[href*="analytics"],
    html.dark section[data-search-url] a[href*="socialaccount"],
    .dark section[data-search-url] a[href*="socialaccount"] {
      background-color: #1a282d !important;
      border-color: #273740 !important;
      color: #f1f5f9 !important;
    }

    html.dark section[data-search-url] a[href*="analytics"]:hover,
    .dark section[data-search-url] a[href*="analytics"]:hover,
    html.dark section[data-search-url] a[href*="socialaccount"]:hover,
    .dark section[data-search-url] a[href*="socialaccount"]:hover {
      background-color: #223237 !important;
    }

    html.dark button[type="button"][class*="rounded-full"][class*="border-slate-300"],
    .dark button[type="button"][class*="rounded-full"][class*="border-slate-300"] {
      border-color: #273740 !important;
      background-color: #1a282d !important;
      color: #94a3b8 !important;
    }

    html.dark #settings-form input[type="text"],
    html.dark #settings-form input[type="email"],
    html.dark #settings-form input[type="password"],
    html.dark #settings-form input[type="tel"],
    html.dark #settings-form textarea {
      background-color: #0e1113 !important;
      border-color: #273740 !important;
      color: #f1f5f9 !important;
    }

    /* General card and widget defaults across pages */
    html.dark .bg-slate-50,
    .dark .bg-slate-50 {
      background-color: #0e1113 !important;
    }

    /* HugeAstrology Independent Column Scrolling - No layout shift on hover */
    .sidebar-scroller,
    .content-scroller {
      position: sticky;
      top: 3.5rem;
      max-height: calc(100vh - 4rem);
      overflow-y: auto;
      overflow-x: hidden;
      scrollbar-gutter: stable;
      scrollbar-width: thin;
      scrollbar-color: transparent transparent;
      transition: scrollbar-color 0.2s ease-in-out;
    }

    .sidebar-scroller:hover,
    .content-scroller:hover {
      scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
    }

    .dark .sidebar-scroller:hover,
    .dark .content-scroller:hover {
      scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
    }

    .sidebar-scroller::-webkit-scrollbar,
    .content-scroller::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }

    .sidebar-scroller::-webkit-scrollbar-track,
    .content-scroller::-webkit-scrollbar-track {
      background: transparent;
    }

    .sidebar-scroller::-webkit-scrollbar-thumb,
    .content-scroller::-webkit-scrollbar-thumb {
      background: transparent;
      border-radius: 9999px;
      transition: background-color 0.2s ease-in-out;
    }

    .sidebar-scroller:hover::-webkit-scrollbar-thumb,
    .content-scroller:hover::-webkit-scrollbar-thumb {
      background: rgba(156, 163, 175, 0.5);
    }

    .sidebar-scroller::-webkit-scrollbar-thumb:hover,
    .content-scroller::-webkit-scrollbar-thumb:hover {
      background: rgba(107, 114, 128, 0.8);
    }

    .dark .sidebar-scroller:hover::-webkit-scrollbar-thumb,
    .dark .content-scroller:hover::-webkit-scrollbar-thumb {
      background: rgba(148, 163, 184, 0.4);
    }

    .dark .sidebar-scroller::-webkit-scrollbar-thumb:hover,
    .dark .content-scroller::-webkit-scrollbar-thumb:hover {
      background: rgba(203, 213, 225, 0.7);
    }

    /* Inner Mini-Scrollbars (e.g. Recent Posts, Comments) without layout shift */
    .custom-scrollbar-mini,
    .custom-scrollbar {
      scrollbar-gutter: stable;
      scrollbar-width: thin;
      scrollbar-color: transparent transparent;
      transition: scrollbar-color 0.2s ease-in-out;
    }

    .custom-scrollbar-mini:hover,
    .custom-scrollbar:hover {
      scrollbar-color: rgba(156, 163, 175, 0.4) transparent;
    }

    .dark .custom-scrollbar-mini:hover,
    .dark .custom-scrollbar:hover {
      scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
    }

    .custom-scrollbar-mini::-webkit-scrollbar,
    .custom-scrollbar::-webkit-scrollbar {
      width: 4px;
      height: 4px;
    }

    .custom-scrollbar-mini::-webkit-scrollbar-track,
    .custom-scrollbar::-webkit-scrollbar-track {
      background: transparent;
    }

    .custom-scrollbar-mini::-webkit-scrollbar-thumb,
    .custom-scrollbar::-webkit-scrollbar-thumb {
      background: transparent;
      border-radius: 9999px;
      transition: background-color 0.2s ease-in-out;
    }

    .custom-scrollbar-mini:hover::-webkit-scrollbar-thumb,
    .custom-scrollbar:hover::-webkit-scrollbar-thumb {
      background: rgba(156, 163, 175, 0.4);
    }

    .dark .custom-scrollbar-mini:hover::-webkit-scrollbar-thumb,
    .dark .custom-scrollbar:hover::-webkit-scrollbar-thumb {
      background: rgba(148, 163, 184, 0.35);
    }

    /* Prevent text wrapping when sidebar is collapsed */
    .sidebar-collapsed .sidebar-label,
    .sidebar-is-collapsed .sidebar-label {
      display: none !important;
    }

    /* Pre-Alpine Sidebar Width Fixes */
    aside#desktop-sidebar:not(.sidebar-collapsed) {
      width: 272px !important;
      min-width: 272px !important;
      max-width: 272px !important;
      flex: 0 0 272px !important;
    }

    html.sidebar-is-collapsed aside#desktop-sidebar,
    aside#desktop-sidebar.sidebar-collapsed {
      grid-column: span 1 / span 1 !important;
      width: 0 !important;
      min-width: 0 !important;
      max-width: 0 !important;
      flex: 0 0 0px !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
      border-right: none !important;
      overflow: hidden !important;
      opacity: 0 !important;
    }
    
    html.sidebar-is-collapsed .sidebar-label {
      display: none !important;
    }

    /* Elements shown only when collapsed */
    .sidebar-only-collapsed {
        display: none !important;
    }
    
    html.sidebar-is-collapsed .sidebar-only-collapsed,
    .sidebar-collapsed .sidebar-only-collapsed {
        display: block !important;
    }

    /* Sidebar Tooltip when collapsed */
    .sidebar-is-collapsed .sidebar-label,
    .sidebar-collapsed .sidebar-label {
        display: none !important;
    }

    .sidebar-is-collapsed a:hover .sidebar-label,
    .sidebar-collapsed a:hover .sidebar-label {
        display: block !important;
        position: absolute;
        left: 3.5rem;
        padding: 0.5rem 0.75rem;
        background: #1e293b;
        color: white;
        border-radius: 0.5rem;
        font-size: 0.75rem;
        font-weight: 600;
        white-space: nowrap;
        z-index: 100;
        pointer-events: none;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar-is-collapsed a,
    .sidebar-collapsed a {
        position: relative;
    }

    .vote-btn {
      width: 36px;
      height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    [x-cloak] {
      display: none !important;
    }

    /* Toast Animations */
    .toast-enter {
      transform: translateX(100%);
      opacity: 0;
    }

    /* Quill & Community Post Tables */
    .ql-editor table, .prose table, table.ha-table {
      width: 100%;
      border-collapse: collapse;
      margin: 1rem 0;
      border: 1px solid #cbd5e1;
      border-radius: 6px;
    }
    .dark .ql-editor table, .dark .prose table, .dark table.ha-table {
      border-color: #334155;
    }
    .ql-editor table th, .prose table th, table.ha-table th {
      background-color: #f1f5f9;
      font-weight: 700;
      padding: 0.6rem 0.75rem;
      border: 1px solid #cbd5e1;
      text-align: left;
      color: #0f172a;
    }
    .dark .ql-editor table th, .dark .prose table th, .dark table.ha-table th {
      background-color: #1e293b;
      border-color: #334155;
      color: #f8fafc;
    }
    .ql-editor table td, .prose table td, table.ha-table td {
      padding: 0.5rem 0.75rem;
      border: 1px solid #cbd5e1;
      color: inherit;
      min-width: 60px;
    }
    .dark .ql-editor table td, .dark .prose table td, .dark table.ha-table td {
      border-color: #334155;
    }
    .ql-editor table td:focus, .ql-editor table th:focus {
      outline: 2px solid #6366f1;
      background-color: rgba(99, 102, 241, 0.05);
    }

    .toast-enter-active {
      transform: translateX(0);
      opacity: 1;
      transition: all 0.5s ease-out;
    }

    .toast-leave-active {
      transform: translateX(100%);
      opacity: 0;
      transition: all 0.4s ease-in;
    }

    .toast-progress {
      height: 3px;
      background: rgba(255, 255, 255, 0.4);
      position: absolute;
      bottom: 0;
      left: 0;
      transition: width linear;
    }

    /* Accessibility: Screen Reader Only */
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border-width: 0;
    }

    .sr-only-focusable:focus {
      position: static;
      width: auto;
      height: auto;
      padding: 0.5rem 1rem;
      margin: 0;
      overflow: visible;
      clip: auto;
      white-space: normal;
    }

    /* Skip Navigation */
    .skip-nav {
      position: absolute;
      top: -40px;
      left: 0;
      background: #4f46e5;
      color: white;
      padding: 0.5rem 1rem;
      z-index: 100;
      text-decoration: none;
      border-radius: 0 0 0.25rem 0;
    }

    .skip-nav:focus {
      top: 0;
    }

    /* Improved Focus Indicators */
    *:focus-visible {
      outline: 2px solid #4f46e5;
      outline-offset: 2px;
      border-radius: 0.25rem;
    }

    button:focus-visible,
    a:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
      outline: 2px solid #4f46e5;
      outline-offset: 2px;
      box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    }

    /* HugeAstrology Two-Column Grid Layout: 726px max-width center column, 24px gap, 308px right sidebar */
    .ha-two-col-grid,
    .hugeastrology-two-col-grid,
    .reddit-two-col-grid {
      max-width: 1058px !important;
      margin: 0 auto !important;
      padding: 0 24px !important;
      display: grid !important;
      grid-template-columns: minmax(0, 726px) 308px !important;
      gap: 24px !important;
      align-items: start !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
    @media (min-width: 1024px) {
      .ha-two-col-grid,
      .hugeastrology-two-col-grid,
      .reddit-two-col-grid {
        max-width: 1076px !important;
        padding-left: 18px !important;
        padding-right: 0 !important;
        margin: 0 auto !important;
      }
    }
    @media (max-width: 1024px) {
      .ha-two-col-grid,
      .hugeastrology-two-col-grid,
      .reddit-two-col-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        padding: 0 16px !important;
        gap: 16px !important;
      }
    }

    /* HugeAstrology Right Sidebar: Strictly locked to 308px, never shrinks or stretches */
    .ha-right-sidebar,
    .hugeastrology-right-sidebar,
    .reddit-right-sidebar {
      width: 308px !important;
      min-width: 308px !important;
      max-width: 308px !important;
      flex: 0 0 308px !important;
      box-sizing: border-box !important;
      display: block !important;
      position: sticky !important;
      top: 3.5rem !important;
      max-height: calc(100vh - 4.5rem) !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
      scrollbar-width: thin !important;
      scrollbar-color: transparent transparent !important;
      transition: scrollbar-color 0.2s ease-in-out;
    }
    .ha-right-sidebar:hover,
    .hugeastrology-right-sidebar:hover,
    .reddit-right-sidebar:hover {
      scrollbar-color: rgba(156, 163, 175, 0.5) transparent !important;
    }
    .dark .ha-right-sidebar:hover,
    .dark .hugeastrology-right-sidebar:hover,
    .dark .reddit-right-sidebar:hover {
      scrollbar-color: rgba(148, 163, 184, 0.4) transparent !important;
    }
    .ha-right-sidebar::-webkit-scrollbar,
    .hugeastrology-right-sidebar::-webkit-scrollbar,
    .reddit-right-sidebar::-webkit-scrollbar {
      width: 6px !important;
      height: 6px !important;
    }
    .ha-right-sidebar::-webkit-scrollbar-track,
    .hugeastrology-right-sidebar::-webkit-scrollbar-track,
    .reddit-right-sidebar::-webkit-scrollbar-track {
      background: transparent !important;
    }
    .ha-right-sidebar::-webkit-scrollbar-thumb,
    .hugeastrology-right-sidebar::-webkit-scrollbar-thumb,
    .reddit-right-sidebar::-webkit-scrollbar-thumb {
      background: transparent !important;
      border-radius: 9999px !important;
      transition: background-color 0.2s ease-in-out !important;
    }
    .ha-right-sidebar:hover::-webkit-scrollbar-thumb,
    .hugeastrology-right-sidebar:hover::-webkit-scrollbar-thumb,
    .reddit-right-sidebar:hover::-webkit-scrollbar-thumb {
      background: rgba(156, 163, 175, 0.5) !important;
    }
    .dark .ha-right-sidebar:hover::-webkit-scrollbar-thumb,
    .dark .hugeastrology-right-sidebar:hover::-webkit-scrollbar-thumb,
    .dark .reddit-right-sidebar:hover::-webkit-scrollbar-thumb {
      background: rgba(148, 163, 184, 0.4) !important;
    }

    /* === HUGEASTROLOGY PILL BUTTONS (Tactile #EAEDEF -> #D2D6D9 Hover States) === */
    .ha-action-pill,
    .hugeastrology-action-pill,
    .reddit-action-pill {
      background-color: #EAEDEF !important;
      color: #0F1A1C !important;
      border: none !important;
      outline: none !important;
      border-radius: 9999px !important;
      transition: background-color 0.15s ease, color 0.15s ease !important;
      cursor: pointer !important;
    }
    .ha-action-pill:hover,
    .hugeastrology-action-pill:hover,
    .reddit-action-pill:hover {
      background-color: #D2D6D9 !important;
      outline: none !important;
    }
    .ha-action-pill:focus,
    .ha-action-pill:focus-visible,
    .hugeastrology-action-pill:focus,
    .hugeastrology-action-pill:focus-visible,
    .reddit-action-pill:focus,
    .reddit-action-pill:focus-visible {
      outline: none !important;
      box-shadow: none !important;
    }
    .dark .ha-action-pill,
    .dark .hugeastrology-action-pill,
    .dark .reddit-action-pill {
      background-color: #1A282D !important;
      color: #E2E8F0 !important;
    }
    .dark .ha-action-pill:hover,
    .dark .hugeastrology-action-pill:hover,
    .dark .reddit-action-pill:hover {
      background-color: #223237 !important;
    }

    /* HugeAstrology Vote Pill */
    .ha-vote-pill,
    .hugeastrology-vote-pill,
    .reddit-vote-pill {
      background-color: #EAEDEF !important;
      color: #0F1A1C !important;
      border: none !important;
      outline: none !important;
      border-radius: 9999px !important;
      transition: background-color 0.15s ease, color 0.15s ease !important;
      display: inline-flex !important;
      align-items: center !important;
    }
    .ha-vote-pill:hover,
    .hugeastrology-vote-pill:hover,
    .reddit-vote-pill:hover {
      background-color: #D2D6D9 !important;
      outline: none !important;
    }
    .ha-vote-pill button,
    .hugeastrology-vote-pill button,
    .reddit-vote-pill button {
      background: transparent !important;
      border: none !important;
      outline: none !important;
      color: inherit;
      transition: color 0.15s ease !important;
      cursor: pointer !important;
    }
    .ha-vote-pill button:focus,
    .ha-vote-pill button:focus-visible,
    .hugeastrology-vote-pill button:focus,
    .hugeastrology-vote-pill button:focus-visible,
    .reddit-vote-pill button:focus,
    .reddit-vote-pill button:focus-visible {
      outline: none !important;
      box-shadow: none !important;
    }

    /* Upvote Hover: Upvote arrow & score turn #FF4500 */
    .ha-vote-pill:has(.upvote-btn:hover) .upvote-btn,
    .ha-vote-pill .upvote-btn:hover,
    .ha-vote-pill:has(.upvote-btn:hover) .upvote-btn svg,
    .ha-vote-pill .upvote-btn:hover svg,
    .hugeastrology-vote-pill:has(.upvote-btn:hover) .upvote-btn,
    .hugeastrology-vote-pill .upvote-btn:hover,
    .hugeastrology-vote-pill:has(.upvote-btn:hover) .upvote-btn svg,
    .hugeastrology-vote-pill .upvote-btn:hover svg,
    .reddit-vote-pill:has(.upvote-btn:hover) .upvote-btn,
    .reddit-vote-pill .upvote-btn:hover,
    .reddit-vote-pill:has(.upvote-btn:hover) .upvote-btn svg,
    .reddit-vote-pill .upvote-btn:hover svg {
      color: #FF4500 !important;
      stroke: #FF4500 !important;
    }
    .ha-vote-pill:has(.upvote-btn:hover) .vote-score,
    .hugeastrology-vote-pill:has(.upvote-btn:hover) .vote-score,
    .reddit-vote-pill:has(.upvote-btn:hover) .vote-score {
      color: #FF4500 !important;
    }

    /* Downvote Hover: Downvote arrow & score turn #7193FF */
    .ha-vote-pill:has(.downvote-btn:hover) .downvote-btn,
    .ha-vote-pill .downvote-btn:hover,
    .ha-vote-pill:has(.downvote-btn:hover) .downvote-btn svg,
    .ha-vote-pill .downvote-btn:hover svg,
    .hugeastrology-vote-pill:has(.downvote-btn:hover) .downvote-btn,
    .hugeastrology-vote-pill .downvote-btn:hover,
    .hugeastrology-vote-pill:has(.downvote-btn:hover) .downvote-btn svg,
    .hugeastrology-vote-pill .downvote-btn:hover svg,
    .reddit-vote-pill:has(.downvote-btn:hover) .downvote-btn,
    .reddit-vote-pill .downvote-btn:hover,
    .reddit-vote-pill:has(.downvote-btn:hover) .downvote-btn svg,
    .reddit-vote-pill .downvote-btn:hover svg {
      color: #7193FF !important;
      stroke: #7193FF !important;
    }
    .ha-vote-pill:has(.downvote-btn:hover) .vote-score,
    .hugeastrology-vote-pill:has(.downvote-btn:hover) .vote-score,
    .reddit-vote-pill:has(.downvote-btn:hover) .vote-score {
      color: #7193FF !important;
    }

    /* Active Upvoted State: Permanently #FF4500 */
    .ha-vote-pill.is-upvoted,
    .hugeastrology-vote-pill.is-upvoted,
    .reddit-vote-pill.is-upvoted {
      background-color: #EAEDEF !important;
    }
    .ha-vote-pill.is-upvoted:hover,
    .hugeastrology-vote-pill.is-upvoted:hover,
    .reddit-vote-pill.is-upvoted:hover {
      background-color: #D2D6D9 !important;
    }
    .ha-vote-pill.is-upvoted .upvote-btn,
    .ha-vote-pill.is-upvoted .upvote-btn svg,
    .hugeastrology-vote-pill.is-upvoted .upvote-btn,
    .hugeastrology-vote-pill.is-upvoted .upvote-btn svg,
    .reddit-vote-pill.is-upvoted .upvote-btn,
    .reddit-vote-pill.is-upvoted .upvote-btn svg {
      color: #FF4500 !important;
      fill: #FF4500 !important;
      stroke: #FF4500 !important;
    }
    .ha-vote-pill.is-upvoted .vote-score,
    .hugeastrology-vote-pill.is-upvoted .vote-score,
    .reddit-vote-pill.is-upvoted .vote-score {
      color: #FF4500 !important;
    }

    /* Active Downvoted State */
    .ha-vote-pill.is-downvoted,
    .hugeastrology-vote-pill.is-downvoted,
    .reddit-vote-pill.is-downvoted {
      background-color: #EAEDEF !important;
    }
    .ha-vote-pill.is-downvoted:hover,
    .hugeastrology-vote-pill.is-downvoted:hover,
    .reddit-vote-pill.is-downvoted:hover {
      background-color: #D2D6D9 !important;
    }
    .ha-vote-pill.is-downvoted .downvote-btn,
    .ha-vote-pill.is-downvoted .downvote-btn svg,
    .hugeastrology-vote-pill.is-downvoted .downvote-btn,
    .hugeastrology-vote-pill.is-downvoted .downvote-btn svg,
    .reddit-vote-pill.is-downvoted .downvote-btn,
    .reddit-vote-pill.is-downvoted .downvote-btn svg {
      color: #7193FF !important;
      fill: #7193FF !important;
      stroke: #7193FF !important;
    }
    .ha-vote-pill.is-downvoted .vote-score,
    .hugeastrology-vote-pill.is-downvoted .vote-score,
    .reddit-vote-pill.is-downvoted .vote-score {
      color: #7193FF !important;
    }

    /* Dark Mode for Vote Pill */
    .dark .ha-vote-pill,
    .dark .hugeastrology-vote-pill,
    .dark .reddit-vote-pill {
      background-color: #1A282D !important;
      color: #E2E8F0 !important;
    }
    .dark .ha-vote-pill:hover,
    .dark .hugeastrology-vote-pill:hover,
    .dark .reddit-vote-pill:hover {
      background-color: #223237 !important;
    }
    .dark .ha-vote-pill.is-upvoted,
    .dark .hugeastrology-vote-pill.is-upvoted,
    .dark .reddit-vote-pill.is-upvoted {
      background-color: #1A282D !important;
    }
    .dark .ha-vote-pill.is-upvoted:hover,
    .dark .hugeastrology-vote-pill.is-upvoted:hover,
    .dark .reddit-vote-pill.is-upvoted:hover {
      background-color: #223237 !important;
    }
    .dark .ha-vote-pill.is-downvoted,
    .dark .hugeastrology-vote-pill.is-downvoted,
    .dark .reddit-vote-pill.is-downvoted {
      background-color: #1A282D !important;
    }
    .dark .ha-vote-pill.is-downvoted:hover,
    .dark .hugeastrology-vote-pill.is-downvoted:hover,
    .dark .reddit-vote-pill.is-downvoted:hover {
      background-color: #223237 !important;
    }
    @media (max-width: 1023px) {
      .ha-right-sidebar,
      .hugeastrology-right-sidebar,
      .reddit-right-sidebar {
        display: none !important;
      }
      .ha-two-col-grid > aside,
      .ha-two-col-grid > .community-right-sidebar,
      .ha-two-col-grid > .ha-right-sidebar,
      .hugeastrology-two-col-grid > aside,
      .hugeastrology-two-col-grid > .community-right-sidebar,
      .hugeastrology-two-col-grid > .hugeastrology-right-sidebar,
      .reddit-two-col-grid > aside,
      .reddit-two-col-grid > .community-right-sidebar,
      .reddit-two-col-grid > .reddit-right-sidebar {
        display: none !important;
      }
    }
    @media (min-width: 1024px) {
      .ha-right-sidebar,
      .hugeastrology-right-sidebar,
      .reddit-right-sidebar {
        display: block !important;
      }
      .lg\:block {
        display: block !important;
      }
      .lg\:flex {
        display: flex !important;
      }
      .lg\:hidden {
        display: none !important;
      }
      .lg\:grid {
        display: grid !important;
      }
    }


    /* HugeAstrology Post Card Media: Scale full image proportionally without cropping */
    .post-media-container {
      width: 100% !important;
      background: radial-gradient(circle, #333a3e 0%, #181c1f 100%) !important;
      border-radius: 16px !important;
      overflow: hidden !important;
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      max-height: 540px !important;
      margin: 10px 0 !important;
    }
    .post-card-media-img {
      max-height: 540px !important;
      max-width: 100% !important;
      width: auto !important;
      height: auto !important;
      object-fit: contain !important;
      display: block !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }


/* Tom Select Component Styles */
      /* Tom Select Premium Alignment */
      .ts-control {
          border-radius: 0.5rem !important;
          padding: 0.5rem 0.75rem !important;
          border-color: #e2e8f0 !important;
          background-color: transparent !important;
      }
      .dark .ts-control {
          background-color: #0f172a !important;
          border-color: #1e293b !important;
          color: white !important;
      }
      .ts-dropdown {
          border-radius: 0.5rem !important;
          box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
      }
      .dark .ts-dropdown {
          background-color: #1e293b !important;
          color: white !important;
      }
      .dark .ts-dropdown .active {
          background-color: #4f46e5 !important;
      }
      .ts-control .item {
          background: #4f46e5 !important;
          color: white !important;
          border-radius: 4px !important;
          padding: 2px 8px !important;
      }
      /* Constrain multi-select tags from expanding endlessly and filling screen */
      .ts-wrapper.multi .ts-control {
          max-height: 130px !important;
          overflow-y: auto !important;
          display: flex !important;
          flex-wrap: wrap !important;
          gap: 4px !important;
          align-content: flex-start !important;
          scrollbar-width: thin;
      }
      .ts-wrapper.multi .ts-control::-webkit-scrollbar {
          width: 5px;
      }
      .ts-wrapper.multi .ts-control::-webkit-scrollbar-track {
          background: transparent;
      }
      .ts-wrapper.multi .ts-control::-webkit-scrollbar-thumb {
          background-color: #cbd5e1;
          border-radius: 9999px;
      }
      .dark .ts-wrapper.multi .ts-control::-webkit-scrollbar-thumb {
          background-color: #334155;
      }
