


      * {
         margin: 0;
         padding: 0;
         box-sizing: border-box;
      }

      body {
         font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
         background: #f5f7fa;
         color: #222;
         min-height: 100vh;
      }

      /* Glassmorphic Header with gradient background */
      header {
         background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
         box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
         padding: 0.75rem 2rem;
         position: sticky;
         top: 0;
         z-index: 100;
         transition: transform 0.3s ease;
      }

      header.header-hidden {
         transform: translateY(-100%);
      }

      /* Sticky filter bar on desktop */
      @media (min-width: 769px) {
         header + div[style*="background: #f8f9fa"] {
            position: sticky;
            top: 0;
            z-index: 999;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
         }
      }

      .header-content {
          margin: 0;
          padding: 0 1rem;
          width: 100%;
          display: flex;
          align-items: center;
          justify-content: space-between;
          flex-wrap: wrap;
      }

      .logo-section {
         display: flex;
         align-items: center;
         gap: 1rem;
         position: relative;
         flex: 0 1 auto;
      }

      .logo-container {
         display: flex;
         align-items: center;
         gap: 0.75rem;
      }

      .logo-image {
         height: 45px;
         width: auto;
         filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
         transition: transform 0.3s ease;
      }

      .logo-image:hover {
         transform: scale(1.05);
      }

      .brand-text {
         font-size: 1.5rem;
         font-weight: 800;
         color: white;
         text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
         letter-spacing: 0.5px;
         white-space: nowrap;
      }

      .divider {
         width: 1px;
         height: 30px;
         background: rgba(255, 255, 255, 0.3);
         margin: 0 0.5rem;
      }

      #profile-toggle {
         cursor: pointer;
         font-weight: 600;
         color: white;
         font-size: 0.9rem;
         text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
         transition: all 0.3s ease;
         white-space: nowrap;
         position: relative;
      }

      #profile-toggle:hover {
         color: #ffd700;
         transform: translateY(-1px);
      }

      .profile-toggle-wrapper {
         position: relative;
      }

      .role-badge {
         background: rgba(255, 255, 255, 0.25);
         backdrop-filter: blur(10px);
         border: 1px solid rgba(255, 255, 255, 0.3);
         color: white;
         padding: 0.3rem 0.75rem;
         border-radius: 20px;
         font-weight: 600;
         font-size: 0.75rem;
         transition: all 0.3s ease;
         cursor: default;
         text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
         white-space: nowrap;
      }

      .role-badge:hover {
         transform: scale(1.05);
         background: rgba(255, 255, 255, 0.35);
         box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
      }

      /* Profile Dropdown - Enhanced Glassmorphism - FIXED POSITIONING */
      .profile-dropdown {
         display: none;
         position: absolute;
         right: 0;
         top: 110%;
         background: rgba(255, 255, 255, 0.95);
         backdrop-filter: blur(20px);
         border: 1px solid rgba(255, 255, 255, 0.3);
         border-radius: 12px;
         box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
         padding: 1.25rem;
         min-width: 460px;
         max-width: 460px;
         z-index: 2000;
      }

      @media (max-width: 768px) {
         .profile-dropdown {
             right: 10px !important;
             width: 80vw !important;
             min-width: 0 !important;
         }
      }
      .profile-dropdown.show {
         display: block;
         animation: fadeIn 0.3s ease;
      }

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

      .profile-dropdown-content {
         display: flex;
         align-items: center;
         gap: 1rem;
      }

      .profile-dropdown .avatar {
         width: 55px;
         height: 55px;
         border-radius: 50%;
         background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
         display: flex;
         align-items: center;
         justify-content: center;
         color: white;
         font-size: 1.4rem;
         font-weight: bold;
         box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
      }

      .profile-dropdown-info h3 {
         font-size: 1.1rem;
         margin-bottom: 0.3rem;
         color: #333;
      }

      .profile-dropdown-info p {
         margin: 0.2rem 0;
         font-size: 0.9rem;
         color: #666;
      }

      .profile-dropdown-info a {
         color: #667eea;
         text-decoration: none;
         font-weight: 600;
         transition: all 0.2s ease;
         display: inline-block;
      }

      .profile-dropdown-info a:hover {
         color: #764ba2;
         transform: translateX(3px);
      }

      .nav-links {
         display: flex !important;
         gap: 0.75rem;
         flex-wrap: nowrap !important;
         align-items: center;
         flex: 1 1 100%;
         justify-content: flex-start;
         min-width: 100%;
         overflow-x: auto !important;
         overflow-y: hidden !important;
         white-space: nowrap !important;
         -webkit-overflow-scrolling: touch;
         scrollbar-width: none;
      }

      .nav-links::-webkit-scrollbar {
         display: none;
      }

      .nav-links a {
         color: white;
         text-decoration: none;
         font-weight: 600;
         transition: all 0.3s ease;
         position: relative;
         padding: 0.4rem 0.8rem;
         font-size: 0.9rem;
         border-radius: 8px;
         text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
         background: rgba(255, 255, 255, 0.1);
         border: 1px solid rgba(255, 255, 255, 0.15);
         white-space: nowrap;
         flex-shrink: 0;
         margin-right: 0.5rem;
      }

      .nav-links a:hover:not(.nav-disabled) {
         background: rgba(255, 255, 255, 0.25);
         transform: translateY(-2px);
         box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      }

      .nav-links a.nav-disabled {
         opacity: 0.5;
         cursor: not-allowed;
         background: rgba(255, 255, 255, 0.05);
         position: relative;
      }

      .nav-links a.nav-disabled::after {
         content: '🔒';
         margin-left: 0.3rem;
         font-size: 0.8rem;
      }

      .upgrade-badge {
         background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
         color: #333;
         padding: 0.2rem 0.5rem;
         border-radius: 10px;
         font-size: 0.7rem;
         font-weight: 700;
         margin-left: 0.3rem;
         text-shadow: none;
         box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
      }

      .search-form {
         display: flex;
         gap: 0.5rem;
         flex: 1 1 100%;
         margin: 0;
         min-width: 100%;
      }

      .search-form input {
         flex: 1;
         padding: 0.5rem 1rem;
         border: 1px solid rgba(255, 255, 255, 0.3);
         border-radius: 8px;
         font-size: 0.85rem;
         background: rgba(255, 255, 255, 0.15);
         backdrop-filter: blur(10px);
         color: white;
         transition: all 0.3s ease;
      }

      .search-form input::placeholder {
         color: rgba(255, 255, 255, 0.7);
      }

      .search-form input:focus {
         outline: none;
         background: rgba(255, 255, 255, 0.25);
         border-color: rgba(255, 255, 255, 0.5);
         box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      }

      .search-form button,
      .search-form a {
         padding: 0.5rem 1rem;
         border: none;
         border-radius: 8px;
         font-weight: 600;
         text-decoration: none;
         transition: all 0.3s ease;
         font-size: 0.85rem;
         white-space: nowrap;
      }

      .search-form button {
         background: rgba(255, 255, 255, 0.9);
         color: #667eea;
         cursor: pointer;
         border: 1px solid rgba(255, 255, 255, 0.3);
      }

      .search-form button:hover {
         background: white;
         transform: translateY(-2px);
         box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
      }

      .search-form a {
         background: rgba(255, 255, 255, 0.2);
         color: white;
         border: 1px solid rgba(255, 255, 255, 0.3);
      }

      .search-form a:hover {
         background: rgba(255, 255, 255, 0.3);
         transform: translateY(-2px);
      }

      /* Main Container */


      .content-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
      }

      .trial-banner {
        background: linear-gradient(135deg, #d1fae5, #a7f3d0);
        border: 2px solid #10b981;
        border-radius: 12px;
        padding: 1rem 1.5rem;
        margin: 1rem;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
      }

      .trial-banner.trial-urgent {
        background: linear-gradient(135deg, #fef3c7, #fde68a);
        border-bottom: 2px solid #f59e0b;
      }

      .trial-banner.trial-expired {
        background: linear-gradient(135deg, #fee2e2, #fecaca);
        border-bottom: 2px solid #ef4444;
      }

      .trial-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        gap: 1rem;
        justify-content: space-between;
      }

      .trial-icon {
        font-size: 1.25rem;
      }

      .trial-text {
        flex: 1;
        font-size: 0.95rem;
        color: #1a202c;
      }

      .trial-text strong {
        font-weight: 700;
      }

      .trial-upgrade-btn {
        background: #10b981;
        color: white;
        padding: 0.5rem 1.25rem;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.9rem;
        text-decoration: none;
        transition: all 0.2s;
        white-space: nowrap;
      }

      .trial-upgrade-btn:hover {
        background: #059669;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
      }

      .trial-upgrade-btn-primary {
        background: #ef4444;
        color: white;
        padding: 0.5rem 1.25rem;
        border-radius: 8px;
        font-weight: 700;
        font-size: 0.9rem;
        text-decoration: none;
        transition: all 0.2s;
        white-space: nowrap;
      }

      .trial-upgrade-btn-primary:hover {
        background: #dc2626;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
      }

      @media(max-width: 640px) {
       .trial-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
      }
  
      .trial-upgrade-btn,
      .trial-upgrade-btn-primary {
        width: 100%;
      }
    }

      .main-container {
         max-width: 1400px;
         margin: 0 auto;
         padding: 2rem 1rem;
         display: flex;
         gap: 2rem;
      }

      .sidebar {
         width: 160px;
         flex-shrink: 0;
      }

      .ad-placeholder {
         background: white;
         border: 2px dashed #ddd;
         border-radius: 12px;
         padding: 1rem;
         text-align: center;
         color: #999;
         font-size: 0.85rem;
         min-height: 600px;
         display: flex;
         align-items: center;
         justify-content: center;
         position: sticky;
         top: 120px;
      }

      .content-wrapper {
         flex: 1;
         min-width: 0;
      }

      /* Content Area */
      .content {
         background: white;
         border-radius: 12px;
         padding: 2rem;
         box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      }

      /* Dispatches */
      .dispatch-header {
         margin-bottom: 2rem;
         padding-bottom: 1rem;
         border-bottom: 2px solid rgba(102, 126, 234, 0.2);
      }

      .dispatch-header h2 {
         font-size: 1.8rem;
         color: #333;
      }

      .dispatch {
         background: #fafafa;
         border-radius: 10px;
         padding: 1.5rem;
         margin-bottom: 1.5rem;
         border-left: 4px solid #667eea;
         transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
         cursor: pointer;
      }

      .dispatch:hover {
         background: white;
         box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
         transform: translateY(-4px);
         border-left-width: 6px;
      }

      .dispatch h3 {
         font-size: 1.3rem;
         color: #333;
         margin-bottom: 0.8rem;
      }

      .dispatch p {
         margin: 0.6rem 0;
         line-height: 1.6;
         color: #555;
      }

      .dispatch p strong {
         color: #667eea;
      }

      .dispatch-tags {
         display: flex;
         gap: 0.5rem;
         flex-wrap: wrap;
         margin-top: 1rem;
      }

      .tag {
         background: #e8eaf6;
         color: #667eea;
         padding: 0.3rem 0.8rem;
         border-radius: 15px;
         font-size: 0.85rem;
         font-weight: 600;
         transition: all 0.2s ease;
         cursor: default;
      }

      .tag:hover {
         background: #667eea;
         color: white;
         transform: scale(1.05);
      }

      .dispatch .links {
         margin-top: 1rem;
         padding-top: 1rem;
         border-top: 1px solid #e0e0e0;
      }

      .dispatch .links a {
         color: #667eea;
         text-decoration: none;
         font-weight: 600;
         transition: all 0.2s ease;
         position: relative;
         padding-right: 1.2rem;
      }

      .dispatch .links a::after {
         content: "→";
         position: absolute;
         right: 0;
         opacity: 0;
         transform: translateX(-5px);
         transition: all 0.2s ease;
      }

      .dispatch .links a:hover {
         color: #764ba2;
         padding-right: 1.5rem;
      }

      .dispatch .links a:hover::after {
         opacity: 1;
         transform: translateX(0);
      }

      /* Radio Tower Share Button */
      .radio-tower-btn {
         background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
         color: white;
         border: none;
         padding: 0.6rem 1.2rem;
         border-radius: 8px;
         cursor: pointer;
         font-size: 0.9rem;
         font-weight: 600;
         transition: all 0.3s ease;
         margin-top: 0.75rem;
         box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
         display: inline-flex;
         align-items: center;
         gap: 0.5rem;
      }

      .radio-tower-btn:hover {
         transform: translateY(-2px);
         box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
         background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
      }

      .radio-tower-btn:active {
         transform: translateY(0);
      }

      /* Share Modal */
      .share-modal {
         display: none;
         position: fixed;
         z-index: 2000;
         left: 0;
         top: 0;
         width: 100%;
         height: 100%;
         background-color: rgba(0, 0, 0, 0.6);
         backdrop-filter: blur(5px);
         animation: fadeIn 0.3s ease;
      }

      .share-modal.show {
         display: flex;
         align-items: center;
         justify-content: center;
      }

      .share-modal-content {
         background: white;
         border-radius: 16px;
         padding: 2rem;
         width: 90%;
         max-width: 600px;
         max-height: 85vh;
         overflow-y: auto;
         box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
         animation: slideUp 0.3s ease;
      }

      @keyframes slideUp {
         from {
            opacity: 0;
            transform: translateY(50px);
         }
         to {
            opacity: 1;
            transform: translateY(0);
         }
      }

      .share-modal-header {
         display: flex;
         justify-content: space-between;
         align-items: center;
         margin-bottom: 1.5rem;
         padding-bottom: 1rem;
         border-bottom: 2px solid #f0f0f0;
      }

      .share-modal-header h2 {
         color: #333;
         font-size: 1.5rem;
         margin: 0;
      }

      .close-modal {
         background: none;
         border: none;
         font-size: 2rem;
         color: #999;
         cursor: pointer;
         padding: 0;
         width: 32px;
         height: 32px;
         display: flex;
         align-items: center;
         justify-content: center;
         border-radius: 50%;
         transition: all 0.2s ease;
      }

      .close-modal:hover {
         background: #f0f0f0;
         color: #333;
      }

      .sitrep-preview {
         background: linear-gradient(135deg, #f5f7fa 0%, #e8eaf6 100%);
         padding: 1.25rem;
         border-radius: 12px;
         margin-bottom: 1.5rem;
         border-left: 4px solid #667eea;
      }

      .sitrep-preview h3 {
         margin: 0 0 0.75rem 0;
         font-size: 1.2rem;
         color: #333;
      }

      .sitrep-preview p {
         margin: 0;
         color: #666;
         font-size: 0.95rem;
         line-height: 1.5;
      }

      .recipient-section h4 {
         margin: 0 0 1rem 0;
         color: #333;
         font-size: 1.1rem;
      }

      .contact-list {
         max-height: 250px;
         overflow-y: auto;
         border: 1px solid #e0e0e0;
         border-radius: 8px;
         padding: 0.75rem;
         margin-bottom: 1.5rem;
         background: #fafafa;
      }

      .contact-item {
         padding: 0.75rem;
         margin: 0.5rem 0;
         display: flex;
         align-items: center;
         background: white;
         border-radius: 8px;
         transition: all 0.2s ease;
         cursor: pointer;
      }

      .contact-item:hover {
         background: #f0f0f0;
         transform: translateX(4px);
      }

      .contact-item input[type="checkbox"] {
         margin-right: 0.75rem;
         width: 18px;
         height: 18px;
         cursor: pointer;
      }

      .contact-item label {
         display: flex;
         align-items: center;
         cursor: pointer;
         flex: 1;
         font-weight: 500;
         color: #333;
      }

      .contact-status-dot {
         width: 10px;
         height: 10px;
         border-radius: 50%;
         margin-right: 0.75rem;
         background: #ccc;
      }

      .contact-status-dot.online {
         background: #4caf50;
         box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
      }

      .message-composer {
         margin-bottom: 1.5rem;
      }

      .message-composer label {
         display: block;
         margin-bottom: 0.5rem;
         color: #333;
         font-weight: 600;
      }

      .message-composer textarea {
         width: 100%;
         min-height: 100px;
         padding: 0.75rem;
         border: 1px solid #e0e0e0;
         border-radius: 8px;
         font-family: inherit;
         font-size: 0.95rem;
         resize: vertical;
         transition: all 0.2s ease;
      }

      .message-composer textarea:focus {
         outline: none;
         border-color: #667eea;
         box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
      }

      .modal-actions {
         display: flex;
         gap: 1rem;
         justify-content: flex-end;
      }

      .modal-actions button {
         padding: 0.75rem 1.5rem;
         border: none;
         border-radius: 8px;
         cursor: pointer;
         font-size: 0.95rem;
         font-weight: 600;
         transition: all 0.3s ease;
      }

      .btn-send {
         background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
         color: white;
         box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
      }

      .btn-send:hover {
         transform: translateY(-2px);
         box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
      }

      .btn-send:disabled {
         background: #ccc;
         cursor: not-allowed;
         transform: none;
         box-shadow: none;
      }

      .btn-cancel {
         background: #f0f0f0;
         color: #666;
      }

      .btn-cancel:hover {
         background: #e0e0e0;
         color: #333;
      }

      .notification {
         position: fixed;
         bottom: 2rem;
         right: 2rem;
         background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
         color: white;
         padding: 1rem 1.5rem;
         border-radius: 12px;
         box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
         z-index: 3000;
         animation: slideInRight 0.3s ease;
         font-weight: 600;
      }

      @keyframes slideInRight {
         from {
            opacity: 0;
            transform: translateX(400px);
         }
         to {
            opacity: 1;
            transform: translateX(0);
         }
      }

      .no-contacts-msg {
         text-align: center;
         padding: 2rem;
         color: #999;
      }

      .no-contacts-msg a {
         color: #667eea;
         text-decoration: none;
         font-weight: 600;
      }

      .no-contacts-msg a:hover {
         text-decoration: underline;
      }

      /* Pagination */
      .pagination {
         display: flex;
         justify-content: center;
         gap: 0.5rem;
         margin-top: 2rem;
         flex-wrap: wrap;
      }

      .pagination a,
      .pagination span {
         padding: 0.5rem 0.8rem;
         border-radius: 8px;
         text-decoration: none;
         font-weight: 600;
         transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .pagination a {
         background: #f5f5f5;
         color: #667eea;
      }

      .pagination a:hover {
         background: #667eea;
         color: white;
         transform: translateY(-3px) scale(1.05);
         box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
      }

      .pagination .current {
         background: #667eea;
         color: white;
         box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
      }

      .page-info {
         text-align: center;
         margin-top: 1rem;
         color: #666;
         font-size: 0.95rem;
      }

      .no-dispatches {
         text-align: center;
         padding: 3rem;
         color: #999;
         font-size: 1.1rem;
      }

      /* No Local Coverage Message */
      .no-local-coverage {
         background: rgba(255, 255, 255, 0.9);
         backdrop-filter: blur(10px);
         border-radius: 16px;
         padding: 2rem 1.5rem;
         text-align: center;
         color: #2d3748;
         margin-bottom: 2rem;
         box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
         border-left: 5px solid #667eea;
         animation: fadeIn 0.4s ease;
      }

      .no-local-coverage h3 {
         margin-top: 0;
         font-size: 1.4rem;
         color: #333;
      }

      .no-local-coverage p {
         font-weight: 500;
         color: #4a5568;
         margin: 0.75rem 0 1.25rem;
      }

      .no-local-coverage .btn-try-nearby {
         display: inline-block;
         background: linear-gradient(135deg, #667eea, #764ba2);
         color: white;
         font-weight: 700;
         text-decoration: none;
         border-radius: 10px;
         padding: 0.6rem 1.4rem;
         box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
         transition: all 0.3s ease;
      }

      .no-local-coverage .btn-try-nearby:hover {
         transform: translateY(-2px);
         box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
      }

      /* Hide in-feed ads on desktop (sidebars visible) */
      @media (min-width: 1025px) {
         .in-feed-ad {
            display: none !important;
         }
      }

      .btn-appstore {
        padding: 0 8px;
        background: transparent;
        border: none;
        display: inline-flex;
        align-items: center;
      }

      .btn-appstore:hover {
        opacity: 0.85;
      }

      .appstore-badge {
        height: 32px;
        vertical-align: middle;
      }

      .appstore-img {
        height: 32px;
        vertical-align: middle;
      }

      /* Responsive */
      @media (max-width: 1024px) {
         .sidebar {
            display: none;
         }
      }

      @media (max-width: 768px) {
         header {
            position: fixed;
            padding: 0.6rem 1rem;
            width: 100%;
            top: 0;
         }

         body {
            padding-top: 180px;
         }

         .header-content {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.75rem;
         }

         .logo-section {
            width: 100%;
            flex-wrap: wrap;
         }

         .logo-image {
            height: 35px;
         }

         .brand-text {
            font-size: 1.2rem;
         }

         .role-badge {
            font-size: 0.7rem;
            padding: 0.25rem 0.6rem;
         }

         .nav-links {
            width: 100%;
            justify-content: flex-start;
            gap: 0.5rem;
            font-size: 0.85rem;
         }

         .nav-links a {
            padding: 0.35rem 0.65rem;
         }

         .search-form {
            width: 100%;
            flex: 1 1 auto;
         }

         .main-container {
            padding: 1rem 0.5rem;
         }

         .content {
            padding: 1.25rem;
            border-radius: 12px;
         }

         .dispatch {
            padding: 1rem;
            margin-bottom: 1rem;
         }

         .dispatch h3 {
            font-size: 1.1rem;
         }

         .dispatch p {
            font-size: 0.9rem;
         }

         .share-modal-content {
            width: 95%;
            padding: 1.5rem;
            max-height: 90vh;
         }

         .radio-tower-btn {
            font-size: 0.85rem;
            padding: 0.5rem 1rem;
         }

         .header-weather {
            margin-left: 0;
            margin-right: 0;
            width: 100%;
         }

         /* Force widgets to stay side-by-side */
         .dashboard-indicators {
             display: flex !important;
             flex-direction: row !important;
             flex-wrap: nowrap !important;
             align-items: center !important;
             gap: 6px !important;
         }

         .weather-widget-compact {
            max-width: 200px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            min-width: auto;
            width: 100%;
         }
      }

      /* Weather Widget Shrink Inside Header */
      .header-weather .weather-widget-compact {
          padding: 0.15rem 0.35rem !important;
          min-width: 120px !important;
          max-width: 140px !important;
          border-radius: 6px !important;
      }

      .header-weather .weather-compact-icon {
          font-size: 1.0rem !important;
          line-height: 1 !important;
      }

      .header-weather .weather-compact-temp {
          font-size: 0.85rem !important;
          line-height: 0.9 !important;
      }

      .header-weather .weather-compact-location {
          font-size: 0.55rem !important;
          line-height: 0.85 !important;
      }

      .header-weather .weather-compact-content {
          gap: 0.3rem !important;
      }

      /* Market Widget Shrink */
      .header-market {
          padding-top: 2px !important;
          padding-bottom: 2px !important;
      }

      .header-market .market-widget-compact,
      .header-market .weather-widget-compact {
          max-width: 140px !important;
          min-width: 120px !important;
          padding: 0.15rem 0.30rem !important;
          border-radius: 6px !important;
      }

      .header-market .market-compact-value,
      .header-market .weather-temp {
          font-size: 0.80rem !important;
          line-height: 0.85 !important;
      }

      .header-market .market-compact-symbol,
      .header-market .weather-location {
          font-size: 0.55rem !important;
      }

      .header-market .weather-widget-compact img,
      .header-market .market-compact-icon {
          width: 20px !important;
          height: 20px !important;
      }

      /* Nav Container Styles */
      .nav-container {
         min-height: 40px;
      }

      /* Message notification badge */
      .message-badge {
         position: relative;
      }

      .message-badge .unread-count {
         position: absolute;
         top: -8px;
         right: -8px;
         background: #dc3545;
         color: white;
         border-radius: 10px;
         padding: 2px 6px;
         font-size: 11px;
         font-weight: bold;
         min-width: 18px;
         text-align: center;
         display: none;
      }

      .message-badge .unread-count.show {
         display: inline-block !important;
         background: #dc3545 !important;
         color: white !important;
      }

      /* Mobile search form fix */
      @media (max-width: 768px) {
         .search-form {
             position: relative !important;
             z-index: 0 !important;
             pointer-events: none !important;
         }

         .search-form input,
         .search-form button,
         .search-form a {
             pointer-events: auto !important;
         }

         .nav-container {
            flex-direction: column;
            gap: 0.5rem;
         }

         form {
            width: 100%;
            margin-left: 0 !important;
         }
      }

      .nav-links-wrapper {
          position: relative;
      }

      .nav-links-fade {
          position: absolute;
          right: 0;
          top: 0;
          bottom: 0;
          width: 40px;
          pointer-events: none;
          background: linear-gradient(to right, rgba(102,0,255,0), rgba(102,0,255,0.4));
      }

      /* Old font controls - hidden */
      .font-controls {
        display: none;
      }

      /* Floating Font Controls - iOS App Only */
      .font-controls-floating {
          position: fixed;
          bottom: 80px;
          right: 20px;
          z-index: 9999;
          background: rgba(102, 126, 234, 0.95);
          backdrop-filter: blur(10px);
          padding: 8px;
          border-radius: 12px;
          box-shadow: 0 4px 20px rgba(0,0,0,0.3);
          display: none;
          flex-direction: column;
          gap: 8px;
      }

      .font-controls-floating .font-button {
          background: rgba(255, 255, 255, 0.9);
          color: #667eea;
          border: none;
          padding: 10px 14px;
          border-radius: 8px;
          font-weight: 700;
          cursor: pointer;
          min-width: 44px;
          transition: all 0.2s;
      }

      .font-controls-floating .font-button.active {
          background: white;
          box-shadow: 0 2px 8px rgba(0,0,0,0.2);
          transform: scale(1.05);
      }

      .font-controls-floating .font-button.font-small {
          font-size: 12px;
      }

      .font-controls-floating .font-button.font-medium {
          font-size: 16px;
      }

      .font-controls-floating .font-button.font-large {
          font-size: 20px;
      }

.appstore-badge,
.playstore-badge {
    height: 34px;      /* recommended size for your header */
    width: auto;
    display: inline-block;
    vertical-align: middle;
}
.btn-appstore,
.btn-playstore {
    padding: 0 6px;
}

/* Better scrollbar styling for desktop nav */
@media (min-width: 769px) {
    .nav-links {
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.3) transparent;
    }
    
    .nav-links::-webkit-scrollbar {
        display: block;
        height: 6px;
    }
    
    .nav-links::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.1);
        border-radius: 3px;
    }
    
    .nav-links::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.3);
        border-radius: 3px;
    }
    
    .nav-links::-webkit-scrollbar-thumb:hover {
        background: rgba(255,255,255,0.5);
    }

}
