    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: "Segoe UI", system-ui, sans-serif;
    }

    body {
      background: linear-gradient(rgba(255, 255, 255, 0.3),
          rgba(255, 255, 255, 0.3)),
        url("/static/images/bdcom.jpg") no-repeat center center fixed;
      background-size: cover;
      min-height: 100vh;
      padding: 2rem;
      color: #333;
    }

    .content-wrapper {
      backdrop-filter: blur(10px);
      margin-top: 108px !important;
      padding: 1rem;
      border-radius: 16px;
      max-width: 800px;
      margin: 0 auto;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    h1,
    h2 {
      text-align: center;
      margin-bottom: 1.5rem;
      color: #2c3e50;
      transition: color 0.3s ease;
    }

    h1:hover,
    h2:hover {
      color: #3498db;
    }

    .upload-container {
      width: 100%;
      max-width: 500px;
      margin: 20px auto;
      padding: 2rem;
      border: 3px dashed #3498db;
      border-radius: 12px;
      text-align: center;
      color: #3498db;
      cursor: pointer;
      transition: all 0.3s ease;
      background-color: rgba(255, 255, 255, 0.9);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .upload-container:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    .upload-container.dragover {
      background-color: rgba(227, 242, 253, 0.9);
      border-color: #2980b9;
      color: #2980b9;
      transform: scale(1.02);
    }

    .upload-container.uploading {
      border-color: #f39c12;
      background: rgba(243, 156, 18, 0.1);
      pointer-events: none;
    }

    .upload-icon {
      font-size: 3rem;
      margin-bottom: 1rem;
      display: block;
    }

    .file-list {
      list-style: none;
      padding: 0;
      max-width: 500px;
      max-height: 300px;
      margin: 20px auto;
      overflow-y: auto;
    }

    ::-webkit-scrollbar {
      width: 5px;
    }

    ::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.4);
      border-radius: 5px;
    }

    ::-webkit-scrollbar-thumb {
      background: rgba(52, 152, 219, 0.5);
      border-radius: 5px;
      transition: all 0.3s ease;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: rgba(52, 152, 219, 0.8);
    }

    .file-list li {
      max-width: 490px;
      background: rgba(255, 255, 255, 0.95);
      margin-bottom: 0.5rem;
      padding: 0.8rem 1rem;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      border: 1px solid rgba(52, 152, 219, 0.1);
      position: relative;
      overflow: hidden;
    }

    .file-list li::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      width: 3px;
      background: linear-gradient(to bottom, #3498db, #2980b9);
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .file-list li:hover {
      transform: translateX(5px);
      box-shadow: 0 4px 12px rgba(52, 152, 219, 0.12);
      background: rgba(255, 255, 255, 0.98);
      border-color: rgba(52, 152, 219, 0.2);
    }

    .file-list li:hover::before {
      opacity: 1;
    }

    .file-info {
      flex-grow: 1;
      margin-right: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
    }

    .file-details {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .file-name {
      color: #2c3e50;
      text-decoration: none;
      font-size: 0.95em;
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 300px;
      transition: color 0.3s ease;
    }

    .file-name:before {
      content: '📄';
      margin-right: 0.4rem;
      opacity: 0.8;
    }

    .file-name:hover {
      color: #3498db;
    }

    .file-size {
      color: #7f8c8d;
      font-size: 0.85em;
      background: rgba(52, 152, 219, 0.1);
      padding: 0.2rem 0.6rem;
      border-radius: 12px;
      transition: all 0.3s ease;
    }

    .file-list li:hover .file-size {
      background: rgba(52, 152, 219, 0.15);
    }

    .uploader {
      color: #95a5a6;
      font-size: 0.8em;
      display: flex;
      align-items: center;
      gap: 0.3rem;
    }

    .uploader:before {
      content: '👤';
      font-size: 0.9em;
      opacity: 0.8;
    }

    .delete-icon {
      cursor: pointer;
      padding: 6px;
      border-radius: 50%;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      align-self: center;
      background: rgba(231, 76, 60, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0.7;
    }

    .delete-icon:hover {
      background: rgba(231, 76, 60, 0.2);
      transform: rotate(90deg);
      opacity: 1;
    }

    .delete-icon svg {
      width: 18px;
      height: 18px;
      fill: #e74c3c;
    }

    .file-actions {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .view-icon {
      cursor: pointer;
      padding: 6px;
      border-radius: 50%;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      align-self: center;
      background: rgba(46, 204, 113, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0.7;
    }

    .view-icon:hover {
      background: rgba(46, 204, 113, 0.2);
      transform: scale(1.1);
      opacity: 1;
    }

    .view-icon svg {
      width: 18px;
      height: 18px;
      fill: #2ecc71;
    }

    @media (max-width: 600px) {
      .file-list li {
        padding: 0.7rem;
      }

      .file-name {
        font-size: 0.9em;
        max-width: 140px;
      }

      .file-size {
        padding: 0.15rem 0.5rem;
        font-size: 0.8em;
      }

      .uploader {
        font-size: 0.75em;
      }
    }

    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.6);
      z-index: 1000;
      backdrop-filter: blur(3px);
    }

    .modal-content {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: linear-gradient(145deg, #ffffff, #f8f9fa);
      padding: 2.5rem;
      border-radius: 16px;
      max-width: 450px;
      width: 90%;
      text-align: center;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
      border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .modal-content h3 {
      margin-bottom: 1rem;
      color: #2c3e50;
      font-size: 1.5rem;
    }

    .modal-content p {
      margin-bottom: 1.5rem;
      color: #5a6c7d;
      line-height: 1.6;
    }

    .modal-buttons {
      display: flex;
      justify-content: center;
      gap: 1rem;
      margin-top: 1.5rem;
    }

    .modal-button {
      padding: 0.75rem 1.5rem;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 500;
      transition: all 0.3s ease;
      min-width: 100px;
    }

    .confirm-delete {
      background: linear-gradient(135deg, #e74c3c, #c0392b);
      color: white;
      box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    }

    .confirm-delete:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    }

    .cancel-delete {
      background: linear-gradient(135deg, #95a5a6, #7f8c8d);
      color: white;
      box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
    }

    .cancel-delete:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4);
    }

    /* Enhanced Sharing Options */
    .sharing-options {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      backdrop-filter: blur(5px);
    }

    .sharing-options.show {
      display: flex;
      animation: fadeIn 0.3s ease-out;
    }

    .sharing-options-content {
      background: linear-gradient(145deg, #ffffff, #f8f9fa);
      top: 85px;
      padding: 2rem;
      border-radius: 16px;
      max-width: 500px;
      width: 90%;
      max-height: 100vh;
      overflow-y: auto;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
      border: 1px solid rgba(255, 255, 255, 0.3);
      backdrop-filter: blur(10px);
      position: relative;
    }

    /* Close button for popup */
    .close-popup {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: #95a5a6;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
    }

    .close-popup:hover {
      background: rgba(231, 76, 60, 0.1);
      color: #e74c3c;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    /* Ensure popup content is scrollable on small screens */
    @media (max-height: 600px) {
      .sharing-options-content {
        max-height: 80vh;
      }
    }

    .sharing-options h3 {
      margin-top: 0;
      color: #2c3e50;
      text-align: center;
      font-size: 1.4rem;
      margin-bottom: 1rem;
    }

    .share-type-container {
      margin: 1rem 0;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .share-type-container label {
      display: flex;
      align-items: center;
      padding: 0.8rem;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.3s ease;
      border: 2px solid transparent;
      background: rgba(52, 152, 219, 0.05);
      position: relative;
    }

    .share-type-container label:hover {
      background: rgba(52, 152, 219, 0.1);
      transform: translateX(5px);
    }

    .share-type-container label:has(input:checked) {
      background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(52, 152, 219, 0.1));
      border-color: #3498db;
      box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
    }

    .share-type-container input[type="radio"] {
      margin-right: 1rem;
      width: 20px;
      height: 20px;
      accent-color: #3498db;
    }

    .share-type-container span {
      font-weight: 500;
      color: #2c3e50;
      font-size: 1rem;
    }


    /* Updated User Selection Styles */
    .user-selection {
      margin: 1.2rem 0;
      padding: 1.2rem;
      background: rgba(255, 255, 255, 0.7);
      border-radius: 12px;
      border: 1px solid rgba(52, 152, 219, 0.2);
      display: none;
      backdrop-filter: blur(5px);
      max-width: 100%;
      position: relative;
      z-index: 1001;
    }

    .user-selection.show {
      display: block;
      animation: fadeIn 0.3s ease-out;
    }

    .user-selection h4 {
      margin-top: 0;
      margin-bottom: 1rem;
      color: #2c3e50;
      font-size: 1.1rem;
    }

    .search-container {
      margin-bottom: 1rem;
      position: relative;
    }

    .search-input {
      width: 100%;
      padding: 0.75rem 1rem;
      border: 2px solid rgba(52, 152, 219, 0.2);
      border-radius: 8px;
      font-size: 1rem;
      transition: all 0.3s ease;
      background: rgba(255, 255, 255, 0.9);
    }

    .search-input:focus {
      outline: none;
      border-color: #3498db;
      box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    }

    .search-input::placeholder {
      color: #95a5a6;
    }

    /* Compact scrollable users list */
    .users-list {
      max-height: 180px;
      overflow-y: auto;
      border: 1px solid rgba(52, 152, 219, 0.1);
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.5);
      padding: 0.5rem;
    }

    /* Custom scrollbar for users list */
    .users-list::-webkit-scrollbar {
      width: 5px;
    }

    .users-list::-webkit-scrollbar-track {
      background: rgba(52, 152, 219, 0.1);
      border-radius: 3px;
    }

    .users-list::-webkit-scrollbar-thumb {
      background: rgba(52, 152, 219, 0.3);
      border-radius: 3px;
    }

    .users-list::-webkit-scrollbar-thumb:hover {
      background: rgba(52, 152, 219, 0.5);
    }

    .user-checkbox {
      display: flex;
      align-items: center;
      margin: 0.25rem 0;
      padding: 0.6rem 0.75rem;
      border-radius: 6px;
      transition: all 0.3s ease;
      cursor: pointer;
      border: 1px solid transparent;
      background: rgba(255, 255, 255, 0.3);
    }

    .user-checkbox:hover {
      background: rgba(52, 152, 219, 0.1);
      border-color: rgba(52, 152, 219, 0.2);
      transform: translateX(2px);
    }

    .user-checkbox:has(input:checked) {
      background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(46, 204, 113, 0.1));
      border-color: #27ae60;
      box-shadow: 0 2px 8px rgba(46, 204, 113, 0.2);
    }

    .user-checkbox input[type="checkbox"] {
      margin-right: 0.8rem;
      width: 18px;
      height: 18px;
      accent-color: #27ae60;
    }

    .user-checkbox label {
      cursor: pointer;
      font-weight: 500;
      color: #2c3e50;
      flex-grow: 1;
      font-size: 0.9rem;
    }

    .user-checkbox.hidden {
      display: none;
    }

    .no-users-message {
      text-align: center;
      color: #95a5a6;
      font-style: italic;
      padding: 1rem;
      background: rgba(255, 255, 255, 0.3);
      border-radius: 6px;
      margin: 0.5rem 0;
    }

    .share-actions {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      margin-top: 2rem;
    }

    .share-btn,
    .cancel-btn {
      padding: 0.7rem 1.2rem;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 500;
      transition: all 0.3s ease;
      flex: 1;
      font-size: 1rem;
    }

    .share-btn {
      background: linear-gradient(135deg, #3498db, #2980b9);
      color: white;
      box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    }

    .share-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    }

    .cancel-btn {
      background: linear-gradient(135deg, #95a5a6, #7f8c8d);
      color: white;
      box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
    }

    .cancel-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4);
    }

    .loading {
      text-align: center;
      padding: 1rem;
      color: #7f8c8d;
    }

    .error-message {
      color: #e74c3c;
      text-align: center;
      margin: 1rem 0;
      padding: 0.5rem;
      background-color: rgba(231, 76, 60, 0.1);
      border-radius: 6px;
    }

    .file-metadata {
      display: flex;
      gap: 1rem;
      color: #95a5a6;
      font-size: 0.85rem;
    }

    .share-indicator {
      display: inline-block;
      padding: 0.2rem 0.6rem;
      border-radius: 12px;
      font-size: 0.75em;
      font-weight: 500;
      margin-left: 0.5rem;
    }

    .share-all {
      background-color: rgba(46, 204, 113, 0.2);
      color: #27ae60;
    }

    .share-specific {
      background-color: rgba(241, 196, 15, 0.2);
      color: #f39c12;
    }

    .share-meeting-room {
      background-color: rgba(155, 89, 182, 0.2);
      color: #8e44ad;
    }
    .file-owner {
      background-color: rgba(52, 152, 219, 0.2);
      color: #3498db;
    }

    /* Add tooltip on hover for truncated filenames */

    .clear-button {
      display: block;
      margin: 2rem auto;
      padding: 0.8rem 1.5rem;
      background-color: rgba(231, 76, 60, 0.9);
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-weight: 500;
    }

    .clear-button:hover {
      background-color: rgba(192, 57, 43, 0.95);
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
    }

    .upload-icon {
      font-size: 2rem;
      margin-bottom: 1rem;
    }

    @media (max-width: 600px) {
      body {
        padding: 1rem;
      }

      .content-wrapper {
        padding: 1rem;
      }

      .upload-container {
        padding: 1.5rem;
        font-size: 0.9em;
      }

      .file-list li {
        padding: 0.8rem;
      }
    }

    .upload-container.uploading {
      border-color: #2ecc71;
      color: #2ecc71;
    }

    .upload-container.upload-error {
      border-color: #e74c3c;
      color: #e74c3c;
    }

    .upload-container.upload-error {
      border-color: #e74c3c;
      color: #e74c3c;
      animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    }

    .upload-container small {
      display: block;
      margin-top: 0.5rem;
      font-size: 0.8em;
      opacity: 0.8;
    }

    @keyframes shake {

      10%,
      90% {
        transform: translate3d(-1px, 0, 0);
      }

      20%,
      80% {
        transform: translate3d(2px, 0, 0);
      }

      30%,
      50%,
      70% {
        transform: translate3d(-4px, 0, 0);
      }

      40%,
      60% {
        transform: translate3d(4px, 0, 0);
      }
    }

    @keyframes upload-pulse {
      0% {
        transform: scale(1);
      }

      50% {
        transform: scale(1.05);
      }

      100% {
        transform: scale(1);
      }
    }

    .uploading {
      animation: upload-pulse 1s infinite;
    }

    /* ===== Notice Bell (navbar) ===== */
    .notice-bell {
      position: relative;
      flex-shrink: 0;
      margin-left: auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      background: rgba(255, 255, 255, 0.55);
      border: 1px solid rgba(52, 152, 219, 0.2);
      border-radius: 10px;
      color: #2563eb;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .notice-bell:hover {
      background: #fff;
      color: #1d4ed8;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    }

    .notice-bell svg {
      width: 20px;
      height: 20px;
    }

    .notice-bell-dot {
      position: absolute;
      top: 8px;
      right: 9px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #ef4444;
      border: 2px solid rgba(255, 255, 255, 0.95);
      box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
      animation: bell-pulse 2s infinite;
    }

    @keyframes bell-pulse {
      0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
      }

      70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
      }

      100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
      }
    }

    /* Give the bell breathing room from the hamburger on mobile/tablet */
    @media (max-width: 1024px) {
      .notice-bell {
        margin-right: 0.5rem;
      }
    }

    /* ===== Announcement bar (under navbar) ===== */
    .announcement-bar {
      position: fixed;
      top: 70px;
      left: 0;
      right: 0;
      z-index: 998;
      background: linear-gradient(90deg, #3aa0e3, #2980b9);
      color: #fff;
      box-shadow: 0 3px 12px rgba(41, 128, 185, 0.25);
    }

    .announcement-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 9px 1.5rem;
    }

    .announcement-label {
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      background: rgba(255, 255, 255, 0.2);
      border: 1px solid rgba(255, 255, 255, 0.32);
      padding: 4px 11px;
      border-radius: 999px;
      white-space: nowrap;
    }

    .announcement-label svg {
      width: 15px;
      height: 15px;
      flex-shrink: 0;
    }

    .announcement-text {
      flex: 1;
      min-width: 0;
      font-size: 0.9rem;
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .announcement-more {
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: rgba(255, 255, 255, 0.95);
      color: #2563eb;
      border: none;
      padding: 6px 13px;
      border-radius: 999px;
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.2s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    }

    .announcement-more svg {
      width: 13px;
      height: 13px;
      transition: transform 0.2s ease;
    }

    .announcement-more:hover {
      background: #fff;
      transform: translateY(-1px);
    }

    .announcement-more:hover svg {
      transform: translateX(2px);
    }

    /* Announcement details popup (reuses .popup-overlay / .popup-content) */
    .announcement-popup .announcement-img {
      width: 100%;
      max-height: 320px;
      object-fit: cover;
      border-radius: 12px;
      margin-bottom: 1rem;
    }

    .announcement-body {
      color: #334155;
      line-height: 1.6;
      font-size: 0.95rem;
      white-space: normal;
      margin-bottom: 1rem;
    }

    /* Rendered Markdown (announcement details, etc.) */
    .markdown-body {
      line-height: 1.6;
      word-wrap: break-word;
    }

    .markdown-body h1,
    .markdown-body h2,
    .markdown-body h3,
    .markdown-body h4 {
      margin: 0.8em 0 0.4em;
      line-height: 1.25;
      color: #1e293b;
    }

    .markdown-body h1 {
      font-size: 1.4em;
    }

    .markdown-body h2 {
      font-size: 1.2em;
    }

    .markdown-body h3 {
      font-size: 1.08em;
    }

    .markdown-body p {
      margin: 0.5em 0;
    }

    .markdown-body ul,
    .markdown-body ol {
      margin: 0.5em 0;
      padding-left: 1.5em;
    }

    .markdown-body li {
      margin: 0.2em 0;
    }

    .markdown-body a {
      color: #2563eb;
      text-decoration: underline;
    }

    .markdown-body code {
      background: rgba(15, 23, 42, 0.07);
      padding: 0.1em 0.35em;
      border-radius: 4px;
      font-family: 'SF Mono', Monaco, Consolas, monospace;
      font-size: 0.88em;
    }

    .markdown-body pre {
      background: #0f172a;
      color: #e2e8f0;
      padding: 0.8em 1em;
      border-radius: 8px;
      overflow-x: auto;
      margin: 0.6em 0;
    }

    .markdown-body pre code {
      background: none;
      padding: 0;
      color: inherit;
      font-size: 0.85em;
    }

    .markdown-body blockquote {
      border-left: 3px solid #cbd5e1;
      margin: 0.6em 0;
      padding: 0.2em 0 0.2em 1em;
      color: #475569;
    }

    .markdown-body img {
      max-width: 100%;
      border-radius: 8px;
    }

    .markdown-body hr {
      border: none;
      border-top: 1px solid #e2e8f0;
      margin: 0.9em 0;
    }

    .markdown-body strong {
      font-weight: 700;
    }

    .announcement-link-btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: linear-gradient(135deg, #3b82f6, #2563eb);
      color: #fff;
      text-decoration: none;
      padding: 9px 16px;
      border-radius: 10px;
      font-weight: 600;
      font-size: 0.9rem;
      transition: all 0.2s ease;
      box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
    }

    .announcement-link-btn svg {
      width: 15px;
      height: 15px;
    }

    .announcement-link-btn:hover {
      background: linear-gradient(135deg, #2563eb, #1d4ed8);
      transform: translateY(-1px);
    }

    /* Announcements feed (latest + past) */
    .announcement-feed {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }

    .ann-feed-item {
      padding-bottom: 1.25rem;
      border-bottom: 1px solid #eef2f7;
    }

    .ann-feed-item:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .ann-feed-head {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      flex-wrap: wrap;
      margin-bottom: 0.5rem;
    }

    .ann-feed-title {
      font-size: 1.05rem;
      font-weight: 700;
      color: #1e293b;
    }

    .ann-feed-item.latest .ann-feed-title {
      color: #1d4ed8;
    }

    .ann-feed-badge {
      font-size: 0.65rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: #2563eb;
      background: rgba(37, 99, 235, 0.1);
      padding: 2px 8px;
      border-radius: 999px;
    }

    .ann-feed-date {
      margin-left: auto;
      font-size: 0.78rem;
      color: #94a3b8;
      white-space: nowrap;
    }

    .ann-feed-body {
      color: #334155;
      font-size: 0.92rem;
      margin-bottom: 0.6rem;
    }

    .ann-feed-item .announcement-img {
      max-height: 240px;
      margin-bottom: 0.75rem;
    }

    .ann-feed-item .announcement-link-btn {
      font-size: 0.85rem;
      padding: 7px 13px;
    }

    @media (max-width: 1024px) {
      .announcement-bar {
        top: 62px;
      }
    }

    @media (max-width: 768px) {
      .announcement-inner {
        padding: 8px 1rem;
        gap: 10px;
      }

      .announcement-text {
        font-size: 0.82rem;
      }

      .announcement-more span {
        display: none;
      }

      .announcement-more {
        padding: 7px;
      }
    }

    @media (max-width: 560px) {
      .announcement-label span {
        display: none;
      }

      .announcement-label {
        padding: 6px 8px;
      }
    }

    /* ===== Notices Panel (popup) ===== */
    .popup-overlay {
      display: none;
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      background: rgba(15, 23, 42, 0.55);
      backdrop-filter: blur(3px);
      -webkit-backdrop-filter: blur(3px);
      z-index: 1002;
      justify-content: center;
      align-items: center;
      padding: 1rem;
    }

    .popup-content {
      background: #fff;
      padding: 1.5rem 1.5rem 0.75rem;
      border-radius: 18px;
      width: 100%;
      max-width: 620px;
      max-height: 82vh;
      overflow-y: auto;
      position: relative;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
      animation: popup-rise 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @keyframes popup-rise {
      from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
      }

      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .popup-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
      padding-bottom: 0.9rem;
      border-bottom: 1px solid #eef2f7;
      position: sticky;
      top: 0;
      background: #fff;
      z-index: 1;
    }

    .popup-title {
      font-size: 1.3rem;
      font-weight: 700;
      color: #1e293b;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .popup-title::before {
      content: '';
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #3b82f6;
    }

    .close-button {
      background: #f1f5f9;
      border: none;
      width: 34px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      font-size: 1.35rem;
      line-height: 1;
      cursor: pointer;
      color: #475569;
      transition: all 0.2s ease;
    }

    .close-button:hover {
      background: #e2e8f0;
      color: #0f172a;
      transform: rotate(90deg);
    }

    .notice-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
    }

    .notice-item {
      padding: 0.9rem 1rem;
      border: 1px solid #eef2f7;
      border-radius: 12px;
      background: #f8fafc;
      transition: all 0.2s ease;
    }

    .notice-item:hover {
      border-color: #bfdbfe;
      background: #fff;
      box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
    }

    .notice-date {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 600;
      color: #2563eb;
      background: rgba(37, 99, 235, 0.1);
      padding: 3px 10px;
      border-radius: 999px;
      margin-bottom: 0.55rem;
    }

    .notice-message {
      color: #334155;
      line-height: 1.55;
      font-size: 0.92rem;
    }

    .notice-message b {
      color: #0f172a;
    }

    /* Enhanced Navigation Bar Styles */
    .nav-container {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      background: transparent;
      backdrop-filter: blur(8px);
      z-index: 999;
      padding: 1rem 1rem;
      background: linear-gradient(to bottom,
          rgba(255, 255, 255, 0.5),
          rgba(255, 255, 255, 0.2));
      border-bottom: 1px solid rgba(52, 152, 219, 0.1);
    }

    .navbar {
      max-width: 1400px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
    }

    .nav-menu {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      align-items: center;
      gap: 0.8rem;
      flex-wrap: nowrap;
    }

    .nav-brand {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      text-decoration: none;
      font-weight: 600;
      color: #3498db;
      white-space: nowrap;
    }

    .nav-brand img {
      width: 30px;
      height: 30px;
      object-fit: contain;
      border-radius: 6px;
      padding: 4px;
    }

    .nav-brand span {
      font-size: 1.3rem;
    }

    .nav-link {
      color: #1a1a1a;
      text-decoration: none;
      padding: 0.5rem 0.8rem;
      border-radius: 8px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      font-weight: 500;
      position: relative;
      display: flex;
      align-items: center;
      gap: 0.3rem;
      font-size: 0.9rem;
      letter-spacing: 0.3px;
      white-space: nowrap;
    }

    .nav-link:before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 2px;
      background: #3498db;
      transition: width 0.3s ease;
    }

    .nav-link:hover:before {
      width: 80%;
    }

    .nav-link:hover {
      background-color: rgba(255, 255, 255, 0.15);
      color: #3498db;
      transform: translateY(-1px);
    }

    .nav-link svg {
      width: 18px;
      height: 18px;
    }

    /* Special Navigation Items */
    .nav-link.primary-action {
      background: linear-gradient(45deg, #2ecc71, #27ae60);
      color: white;
      padding: 0.6rem 1.4rem;
      border-radius: 20px;
      box-shadow: 0 2px 10px rgba(46, 204, 113, 0.2);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link.primary-action:hover {
      background: linear-gradient(45deg, #27ae60, #219a52);
      transform: translateY(-1px);
      box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    }

    .nav-link.primary-action:before {
      display: none;
    }

    .nav-link.secondary-action {
      background: linear-gradient(45deg, #007bff, #0056b3);
      color: white;
      padding: 0.6rem 1.4rem;
      border-radius: 20px;
      box-shadow: 0 2px 10px rgba(0, 123, 255, 0.2);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link.secondary-action:hover {
      background: linear-gradient(45deg, #0056b3, #003580);
      transform: translateY(-1px);
      box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    }

    .nav-link.secondary-action:before {
      display: none;
    }

    /* Dropdown menu styles */
    .nav-dropdown {
      position: relative;
      display: inline-block;
    }

    .dropdown-toggle {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      background: none;
      border: none;
      color: #1a1a1a;
      padding: 0.5rem 0.8rem;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 500;
      font-size: 0.9rem;
      letter-spacing: 0.3px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
    }

    .dropdown-toggle:before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 2px;
      background: #3498db;
      transition: width 0.3s ease;
    }

    .dropdown-toggle:hover:before {
      width: 80%;
    }

    .dropdown-toggle:hover {
      background-color: rgba(255, 255, 255, 0.15);
      color: #3498db;
      transform: translateY(-1px);
    }

    .dropdown-arrow {
      width: 14px;
      height: 14px;
      transition: transform 0.3s ease;
      flex-shrink: 0;
      margin-left: 4px;
    }

    .dropdown-toggle:hover .dropdown-arrow,
    .nav-dropdown.active .dropdown-arrow {
      transform: rotate(180deg);
    }

    .dropdown-content {
      position: absolute;
      top: 100%;
      right: 0;
      background: white;
      min-width: 220px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
      border-radius: 12px;
      padding: 0.5rem 0;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px);
      transition: all 0.3s ease;
      border: 1px solid rgba(52, 152, 219, 0.1);
    }

    .nav-dropdown:hover .dropdown-content,
    .nav-dropdown.active .dropdown-content {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .dropdown-content a {
      color: #1a1a1a;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.8rem 1rem;
      transition: all 0.3s ease;
      font-size: 0.9rem;
      border-left: 3px solid transparent;
    }

    .dropdown-content a:hover {
      background-color: rgba(52, 152, 219, 0.08);
      color: #3498db;
      border-left-color: #3498db;
    }

    .dropdown-content a svg {
      width: 18px;
      height: 18px;
    }

    .dropdown-section {
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
      margin-bottom: 0.3rem;
      padding-bottom: 0.3rem;
    }

    .dropdown-section:last-child {
      border-bottom: none;
      margin-bottom: 0;
      padding-bottom: 0;
    }

    .dropdown-label {
      font-size: 0.75rem;
      font-weight: 600;
      color: #7f8c8d;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding: 0.3rem 1rem;
      margin-top: 0.2rem;
    }

    /* Hamburger Menu Styles */
    .hamburger-menu {
      display: none;
      flex-direction: column;
      cursor: pointer;
      z-index: 1000;
    }

    .hamburger-line {
      width: 25px;
      height: 3px;
      background-color: #1a1a1a;
      margin: 3px 0;
      transition: 0.4s;
    }

    /* Mobile / tablet navigation drawer */
    @media (max-width: 1024px) {
      .nav-container {
        padding: 0.75rem 1rem;
      }

      .navbar {
        justify-content: space-between;
        position: relative;
      }

      .hamburger-menu {
        display: flex;
        padding: 6px;
        border-radius: 8px;
        z-index: 1002;
      }

      /* Keep floating widgets from poking over the open drawer */
      body:has(.nav-menu.active) .chat-button,
      body:has(.nav-menu.active) .status-button,
      body:has(.nav-menu.active) .about-button,
      body:has(.nav-menu.active) .game-ad-container,
      body:has(.nav-menu.active) .tea-widget-container {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
      }

      .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: min(360px, 90vw);
        height: 100vh;
        height: 100dvh;
        transform: translateX(105%);
        flex-direction: column;
        align-items: stretch;
        gap: 0.3rem;
        padding: 4.75rem 1rem 2rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: -14px 0 44px rgba(15, 23, 42, 0.18);
        border-left: 1px solid rgba(52, 152, 219, 0.12);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
      }

      .nav-menu.active {
        transform: translateX(0);
      }

      .hamburger-menu.active .hamburger-line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
      }

      .hamburger-menu.active .hamburger-line:nth-child(2) {
        opacity: 0;
      }

      .hamburger-menu.active .hamburger-line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
      }

      .nav-dropdown {
        width: 100%;
      }

      .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.85rem 1rem;
        border-radius: 10px;
        font-size: 0.95rem;
      }

      .dropdown-toggle:hover {
        transform: none;
        background-color: rgba(52, 152, 219, 0.08);
      }

      .dropdown-toggle:before {
        display: none;
      }

      .dropdown-content {
        position: static;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        background: rgba(241, 245, 249, 0.75);
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        padding: 0;
        margin: 0.15rem 0 0.35rem;
        border: none;
        border-radius: 10px;
      }

      .nav-dropdown.active .dropdown-content {
        max-height: 640px;
        padding: 0.4rem 0;
      }

      .dropdown-content a {
        padding: 0.72rem 1.1rem;
      }

      .search-button {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
        padding: 0.85rem 1rem;
        background: linear-gradient(135deg, #3498db, #2980b9);
        color: #fff;
        border: none;
      }

      .search-button:hover {
        background: linear-gradient(135deg, #2980b9, #21618c);
      }

      .search-button .tooltip {
        display: none;
      }
    }

    .chat-button {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: #4a90e2;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
      transition: transform 0.3s ease;
      z-index: 1000;
    }

    .chat-button:hover {
      transform: scale(1.1);
    }

    .chat-button svg {
      width: 24px;
      height: 24px;
      color: white;
    }

    /* Chat popup styles */
    .chat-popup {
      position: fixed;
      bottom: 90px;
      right: 20px;
      width: min(450px, 95vw);
      height: min(700px, 90vh);
      background: white;
      border-radius: 12px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
      display: none;
      flex-direction: column;
      z-index: 999;
    }

    @media (max-width: 768px) {
      .chat-popup {
        bottom: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - 70px);
        border-radius: 12px 12px 0 0;
      }

      .chat-button {
        bottom: 10px;
        right: 10px;
      }
    }

    .chat-popup.active {
      display: flex;
    }

    .chat-container {
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    .chat-header {
      padding: 12px 15px;
      background: #5f9fe9;
      color: white;
      border-radius: 12px 12px 0 0;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .message-list {
      flex: 1;
      overflow-y: auto;
      padding: 15px;
      -webkit-overflow-scrolling: touch;
    }

    .message {
      margin-bottom: 15px;
      background: #f8f9fa;
      padding: 10px;
      border-radius: 8px;
      max-width: 100%;
    }

    .message-header {
      display: flex;
      justify-content: space-between;
      margin-bottom: 5px;
      font-size: 0.9em;
    }

    .message-content {
      word-break: break-word;
    }

    .message-content img {
      max-width: min(200px, 100%);
      height: auto;
      border-radius: 8px;
      cursor: pointer;
      transition: transform 0.2s;
    }

    .message-content img:hover {
      transform: scale(1.02);
    }

    .preview-container {
      padding: 10px;
      display: none;
      overflow-x: auto;
      white-space: nowrap;
    }

    .image-preview {
      position: relative;
      display: inline-block;
      margin-right: 10px;
    }

    .image-preview img {
      max-height: 50px;
      border-radius: 4px;
    }

    .remove-preview {
      position: absolute;
      top: -8px;
      right: -8px;
      background: #ff4444;
      color: white;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-weight: bold;
      font-size: 14px;
    }

    .message-form {
      padding: 12px;
      border-top: 1px solid #eee;
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .image-upload {
      cursor: pointer;
      padding: 8px;
      border-radius: 4px;
      background: #f0f2f5;
      display: flex;
      align-items: center;
    }

    .image-upload input {
      display: none;
    }

    .message-input {
      flex: 1;
      padding: 8px;
      border: 1px solid #ddd;
      border-radius: 4px;
      min-height: 20px;
      max-height: 100px;
      overflow-y: auto;
    }

    .send-button {
      padding: 8px 12px;
      background: #4a90e2;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 5px;
      white-space: nowrap;
    }

    /* Modal styles */
    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.8);
      z-index: 1001;
      align-items: center;
      justify-content: center;
    }

    .modal.active {
      display: flex;
    }

    .modal-close {
      position: absolute;
      top: 20px;
      right: 20px;
      color: white;
      font-size: 30px;
      cursor: pointer;
      padding: 10px;
    }

    #modalImage {
      max-width: 90%;
      max-height: 90vh;
      width: auto;
      height: auto;
      border-radius: 8px;
      object-fit: contain;
    }

    @media (max-width: 480px) {
      .message-form {
        padding: 8px;
        gap: 6px;
      }

      .send-button {
        padding: 8px;
      }

      .image-upload {
        padding: 6px;
      }

      .chat-header {
        padding: 10px;
      }
    }

    .footer {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      background-color: #E3EFFE;
      border-top: 1px solid #e7e7e9;
      box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
      padding: 8px 0;
      z-index: 900;
      /* Less than chat popup's z-index */
    }

    .footer-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 15px;
      position: relative;
    }

    .footer-logo {
      display: flex;
      align-items: center;
    }

    .footer-logo a {
      display: flex;
      align-items: center;
      text-decoration: none;
    }

    .footer-logo img {
      width: 80px;
      height: 30px;
    }

    /* Removed the span styling as we no longer have the text */

    .footer-copyright {
      color: #888;
      font-size: 0.85rem;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      white-space: nowrap;
    }

    .footer-spacer {
      /* This helps maintain the 3-column layout to keep logo left-aligned */
      width: 150px;
    }

    /* Adjust for chat popup */
    @media (max-width: 768px) {
      .footer-content {
        padding-bottom: 0;
        /* Space for chat button on mobile */
      }

      .footer-logo {
        font-size: 0.9rem;
      }

      .footer-copyright {
        font-size: 0.8rem;
      }

      .footer-spacer {
        width: auto;
      }
    }

    /* Ensure footer doesn't cover chat popup on larger screens */
    @media (min-width: 769px) {
      .footer {
        padding-right: 80px;
        /* Space for chat popup */
      }
    }

    .about-button {
      position: fixed;
      left: 20px;
      bottom: 20px;
      z-index: 1000;
      transition: transform 0.3s;
    }

    .button-content {
      width: 50px;
      height: 50px;
      background: linear-gradient(135deg, #4CAF50, #2E7D32);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      cursor: pointer;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
      transition: transform 0.3s, box-shadow 0.3s;
    }

    .button-content:hover {
      transform: scale(1.1);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .about-button svg {
      width: 24px;
      height: 24px;
    }

    .about-popup {
      position: fixed;
      left: 20px;
      bottom: 80px;
      width: 320px;
      background: white;
      border-radius: 20px;
      box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
      display: none;
      z-index: 999;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.3s, transform 0.3s;
    }

    .about-popup.active {
      opacity: 1;
      transform: translateY(0);
    }

    .about-header {
      padding: 20px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .header-content {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .profile-pic {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      object-fit: cover;
    }

    .header-text h3 {
      margin: 0;
      font-size: 1.2em;
      color: #333;
    }

    .header-text span {
      font-size: 0.9em;
      color: #666;
    }

    .close-about {
      background: none;
      border: none;
      padding: 5px;
      cursor: pointer;
      color: #666;
      transition: color 0.3s;
    }

    .close-about:hover {
      color: #333;
    }

    .social-bar {
      display: flex;
      justify-content: center;
      gap: 20px;
      padding: 20px;
    }

    .social-icon {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: #f5f5f5;
      color: #333;
      transition: all 0.3s;
    }

    .social-icon:hover {
      transform: translateY(-3px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .social-icon svg {
      width: 20px;
      height: 20px;
    }

    .github:hover {
      background: #333;
      color: white;
    }

    .linkedin:hover {
      background: #0077b5;
      color: white;
    }

    .wechat:hover {
      background: #07C160;
      color: white;
    }

    .qr-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.8);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 1001;
    }

    .qr-container {
      background: white;
      padding: 20px;
      border-radius: 15px;
      text-align: center;
    }

    .qr-container img {
      width: 200px;
      height: 200px;
      margin-bottom: 10px;
    }

    .info-section {
      padding: 0 20px 20px;
    }

    .education-timeline {
      position: relative;
      padding-left: 20px;
    }

    .education-timeline::before {
      content: '';
      position: absolute;
      left: 0;
      top: 8px;
      bottom: 8px;
      width: 2px;
      background: #4CAF50;
    }

    .edu-item {
      position: relative;
      padding: 16px 0;
    }

    .edu-item::before {
      content: '';
      position: absolute;
      left: -24px;
      top: 22px;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #4CAF50;
      border: 2px solid white;
      box-shadow: 0 0 0 2px #4CAF50;
    }

    .edu-year {
      font-size: 0.85em;
      color: #666;
      margin-bottom: 4px;
      font-weight: 500;
    }

    .edu-content h5 {
      margin: 0 0 8px;
      color: #2E7D32;
      font-size: 1em;
    }

    .edu-school,
    .edu-grade {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.9em;
      color: #555;
      margin: 4px 0;
    }

    .edu-school svg,
    .edu-grade svg {
      width: 16px;
      height: 16px;
      color: #4CAF50;
    }

    .edu-item:hover .edu-content {
      transform: translateX(5px);
    }

    .edu-content {
      transition: transform 0.3s;
    }

    @media (max-width: 380px) {
      .education-timeline {
        padding-left: 15px;
      }

      .edu-item::before {
        left: -19px;
      }
    }

    .skill-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .skill-tags span {
      background: #e9ecef;
      padding: 5px 10px;
      border-radius: 15px;
      font-size: 0.9em;
      color: #495057;
    }

    @media (max-width: 380px) {
      .about-popup {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
      }
    }

    .search-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgb(2, 2, 2);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  position: relative;
}

.search-button .tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  padding: 6px 12px;
  background: #111827;
  color: white;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.search-button .tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: #111827;
}

.search-button:hover .tooltip {
  opacity: 1;
}

.search-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.search-button svg {
  width: 18px;
  height: 18px;
}

.search-kbd {
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  font-size: 12px;
  font-family: monospace;
}

/* Search Modal Styles */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  animation: fadeIn 0.15s ease;
}

.search-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.search-modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.2s ease;
  overflow: hidden;
}

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.search-header {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.search-input-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input-container svg {
  width: 20px;
  height: 20px;
  color: #6b7280;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #111827;
  font-size: 16px;
  font-family: inherit;
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-close {
  background: #f3f4f6;
  border: none;
  color: #6b7280;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.search-close:hover {
  background: #e5e7eb;
  color: #111827;
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
}

.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: #f9fafb;
}

.search-results::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.search-category {
  padding: 12px 16px 8px 16px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f9fafb;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  color: #111827;
  border-bottom: 1px solid #f3f4f6;
}

.search-item:hover,
.search-item.selected {
  background: #f9fafb;
}

.search-item.selected {
  background: #e5e7eb;
}

.search-item-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #6b7280;
}

.search-item-content {
  flex: 1;
  min-width: 0;
}

.search-item-title {
  font-weight: 500;
  font-size: 14px;
  color: #111827;
  margin-bottom: 2px;
}

.search-item-description {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-badge {
  padding: 3px 8px;
  background: #f3f4f6;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  flex-shrink: 0;
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: #6b7280;
}

.no-results-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: #d1d5db;
}

.no-results-text {
  font-size: 15px;
  color: #111827;
  margin-bottom: 4px;
}

.no-results-hint {
  font-size: 13px;
  color: #9ca3af;
}

.highlight {
  background: #fef3c7;
  padding: 1px 2px;
  border-radius: 2px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .search-modal-content {
    width: 95%;
  }
  
  .search-kbd {
    display: none;
  }
}

/* Status Button - Fixed position in bottom left */
.status-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: rgb(113, 192, 235);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    z-index: 1000;
    border: 1px solid #e5e7eb;
}

.status-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-button svg {
    width: 22px;
    height: 22px;
    fill: #374151;
}

/* Online indicator dot */
.status-button::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid white;
}

/* Status Popup Modal */
.status-popup-overlay {
    display: none;
    position: fixed;
    bottom: 140px;
    left: 20px;
    z-index: 2000;
}

.status-popup-overlay.active {
    display: block;
}

.status-popup-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 380px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.status-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-popup-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.status-close-button {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.status-close-button:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

/* Online Users Section */
.online-users-section {
    margin-top: 16px;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.users-list-container {
    max-height: 180px;
    overflow-y: auto;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.user-item:hover {
    background: #f3f4f6;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 500;
    color: #111827;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-ip {
    font-size: 11px;
    color: #9ca3af;
}

.user-status {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    flex-shrink: 0;
}

.no-users {
    text-align: center;
    padding: 24px;
    color: #9ca3af;
    font-size: 13px;
}

/* Scrollbar styling */
.users-list-container::-webkit-scrollbar {
    width: 4px;
}

.users-list-container::-webkit-scrollbar-track {
    background: transparent;
}

.users-list-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.users-list-container::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Responsive */
@media (max-width: 600px) {
    .status-popup-content {
        width: calc(100% - 40px);
        max-width: 380px;
    }
}
/* --- Floating Game Ad Styles (Top Left) --- */
.game-ad-container {
    position: fixed;
    /* Positioned to clear the Navbar + Notice Bar */
    top: 130px; 
    left: 20px;
    z-index: 999; /* High enough to sit on top of content, but below Modals */
    
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(13, 148, 136, 0.3),
                0 0 0 1px rgba(13, 148, 136, 0.1);
    
    /* Gentle floating animation 
    animation: floatAd 3s ease-in-out infinite;
    transition: all 0.3s ease;
    max-width: 300px;*/
}

/* Hover Effect: Stop floating and scale up slightly */
.game-ad-container:hover {
    animation-play-state: paused;
    transform: scale(1.02);
    box-shadow: 0 20px 50px -10px rgba(13, 148, 136, 0.4);
}

.game-ad-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

/* Icon Area */
.game-ad-icon {
    position: relative;
    width: 45px;
    height: 45px;
    background: #f0fdfa; /* Light Teal */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Animation dots */
.keyboard-anim {
    position: absolute;
    bottom: 4px;
    display: flex;
    gap: 2px;
}
.keyboard-anim span {
    width: 3px;
    height: 3px;
    background: #0d9488;
    border-radius: 50%;
    animation: typingDots 1.4s infinite ease-in-out both;
}
.keyboard-anim span:nth-child(1) { animation-delay: -0.32s; }
.keyboard-anim span:nth-child(2) { animation-delay: -0.16s; }

/* Text Styling */
.game-ad-text {
    display: flex;
    flex-direction: column;
}
.game-title {
    font-weight: 800;
    font-size: 16px;
    color: #0f172a;
    font-family: 'Segoe UI', sans-serif;
}
.game-subtitle {
    font-size: 12px;
    color: #0d9488; /* Teal */
    font-weight: 600;
}

/* "NEW" Badge */
.game-badge {
    background: #f43f5e;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 6px;
    position: absolute;
    top: -8px;
    right: -8px;
    box-shadow: 0 2px 5px rgba(244, 63, 94, 0.4);
    animation: pulseBadge 2s infinite;
}

/* Close Button */
.game-ad-close {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 24px;
    height: 24px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s;
    z-index: 10;
}
.game-ad-close:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* Animations */
@keyframes floatAd {
    0% { transform: translateY(0px); }
    50% { transform: translateY(6px); }
    100% { transform: translateY(0px); }
}

@keyframes typingDots {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Hide on mobile to save screen space */
@media (max-width: 768px) {
    .game-ad-container { display: none; }
}

/* Stack widgets vertically */
.ramadan-ad-container {
  top: 230px; /* existing widget top (130px) + widget height (~85px) + gap (15px) */
  box-shadow: 0 10px 40px -10px rgba(194, 65, 12, 0.3),
              0 0 0 1px rgba(194, 65, 12, 0.1);
  /* animation: floatAd 3.4s ease-in-out infinite; /* slightly offset timing */
}
.ramadan-ad-container:hover {
  box-shadow: 0 20px 50px -10px rgba(194, 65, 12, 0.4);
}

.gallery-ad-container {
  top: 330px; /* ramadan top (230px) + widget height (~85px) + gap (15px) */
  box-shadow: 0 10px 40px -10px rgba(124, 58, 237, 0.3),
              0 0 0 1px rgba(124, 58, 237, 0.1);
  /* animation: floatAd 3.8s ease-in-out infinite; /* further offset for stagger */
}
.gallery-ad-container:hover {
  box-shadow: 0 20px 50px -10px rgba(124, 58, 237, 0.4);
}

/* Recolor anim dots for each widget */
.ramadan-anim span { background: #c2410c; }
.gallery-anim span  { background: #7c3aed; }

/* Ramadan modal fade-in */
#ramadanModal.open {
  display: flex !important;
  animation: modalFadeIn 0.25s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 768px) {
  .ramadan-ad-container,
  .gallery-ad-container { display: none; }
}

/* --- Floating Tea Time Widget (modern) --- */
.tea-widget-container {
    position: fixed;
    top: 124px;
    right: 20px;
    z-index: 999;
    width: 300px;
    max-width: calc(100vw - 40px);

    /* Soft warm glass card */
    background:
        linear-gradient(135deg, rgba(255, 251, 245, 0.92), rgba(255, 247, 237, 0.88));
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    padding: 18px;
    border-radius: 20px;
    overflow: hidden;

    box-shadow:
        0 18px 50px -12px rgba(124, 45, 18, 0.32),
        0 4px 12px -6px rgba(180, 83, 9, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);

    animation: teaSlideIn 0.55s cubic-bezier(0.2, 0.9, 0.25, 1);
}

/* Decorative warm glow in the corner */
.tea-widget-container::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.35), transparent 70%);
    pointer-events: none;
}

.tea-top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Dismiss button */
.tea-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 22px;
    height: 22px;
    border: none;
    background: rgba(124, 45, 18, 0.08);
    color: #9a3412;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}
.tea-close:hover {
    background: rgba(124, 45, 18, 0.16);
    transform: rotate(90deg);
}

/* Icon Container with gradient badge */
.tea-icon-area {
    position: relative;
    flex: none;
    width: 52px;
    height: 52px;
    background: linear-gradient(140deg, #fbbf24 0%, #f97316 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 16px -4px rgba(249, 115, 22, 0.6);
}

/* Steam Animation Container */
.tea-steam {
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.tea-steam span {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 5px;
    animation: steamRise 2.4s infinite ease-out;
    opacity: 0;
}

.tea-steam span:nth-child(1) { animation-delay: 0s; }
.tea-steam span:nth-child(2) { animation-delay: 0.6s; height: 12px; }
.tea-steam span:nth-child(3) { animation-delay: 1.2s; }

/* Text Styling */
.tea-text-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tea-header {
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.01em;
    color: #431407;
    font-family: 'Segoe UI', system-ui, sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tea-emoji {
    font-size: 16px;
    animation: teaBob 2.5s ease-in-out infinite;
}

.tea-sub {
    font-size: 12px;
    color: #9a3412;
    font-weight: 600;
    opacity: 0.85;
}

/* Countdown pill */
.tea-countdown {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(180, 83, 9, 0.18);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    color: #b45309;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}
.tea-countdown:empty {
    display: none;
}

/* Slim draining progress bar */
.tea-progress {
    margin-top: 14px;
    width: 100%;
    height: 6px;
    background: rgba(124, 45, 18, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.tea-progress-bar {
    height: 100%;
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    transition: width 1s linear;
}

/* Keyframes */
@keyframes steamRise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    50% { opacity: 0.7; }
    100% { transform: translateY(-16px) scale(1.6); opacity: 0; }
}

@keyframes teaBob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-2px) rotate(-6deg); }
}

@keyframes teaSlideIn {
    from { transform: translateY(-12px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Hide on Mobile */
@media (max-width: 768px) {
    .tea-widget-container { display: none !important; }
}