body {
    background-color: #fff;
  }

  h1 {
    color: #1da1f2;
    /* Twitter Blue */
    font-size: 2.5rem;
  }

  /* Responsive h1 sizing */
  @media (max-width: 768px) {
    h1 {
      font-size: 2.2rem;
    }
  }

  @media (max-width: 480px) {
    h1 {
      font-size: 1.6rem;
    }
  }

  /* Responsive paragraph sizing */
  p {
    font-size: 1.1rem;
  }

  @media (max-width: 768px) {
    p {
      font-size: 1rem;
    }
  }

  @media (max-width: 480px) {
    p {
      font-size: 0.9rem;
    }
  }

  /* Responsive button sizing */
  @media (max-width: 768px) {
    #pasteButton, #clearButton {
      padding: 10px 12px !important;
      font-size: 12px !important;
    }
    
    #downloadButton {
      padding: 10px 18px !important;
      font-size: 14px !important;
    }
  }

  @media (max-width: 480px) {
    #pasteButton, #clearButton {
      padding: 8px 10px !important;
      font-size: 11px !important;
    }
    
    #downloadButton {
      padding: 8px 14px !important;
      font-size: 13px !important;
    }
  }

  .bi-twitter,
  .bi-twitter-x {
    color: #1da1f2;
    /* Twitter Blue */
  }

  .btn-primary {
    background-color: #1da1f2;
    /* Twitter Blue */
    border-color: #1da1f2;
    /* Twitter Blue */
  }

  .btn-primary:hover {
    background-color: #1da1f2;
    /* Twitter Blue */
    border-color: #1da1f2;
    /* Twitter Blue */
  }

  .navbar {
    padding: 14px 0;
  }

  /* Responsive navbar sizing */
  @media (max-width: 768px) {
    .navbar {
      padding: 0.5rem 0;
    }

    .btn-nav {
      padding: 10px 14px;
      font-size: 13px;
      margin: 0 0.2rem;
    }
  }

  @media (max-width: 480px) {
    .navbar {
      padding: 0.25rem 0;
    }

    .btn-nav {
      padding: 5px 8px;
      font-size: 11px;
      margin: 0 0.12rem;
    }
  }

  .btn-nav {
    background-color: #1da1f2;
    /* Twitter Blue */
    color: white;
    border: 1px solid white;
  }

  .btn-nav:hover,
  .btn-nav:focus {
    background-color: #0c85d0;
    /* Darker Twitter Blue */
    color: white;
  }

  .btn-nav.active {
    background-color: #0c85d0;
    /* Darker Twitter Blue */
    color: white;
  }

  /* Modern option selector styles */
  .option-selector {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
  }

  .option-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 46px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
  }

  .option-btn.active {
    background-color: #1da1f2;
    color: white;
    box-shadow: 0 2px 8px rgba(29, 161, 242, 0.3);
  }

  .option-btn:hover:not(.active) {
    color: #1da1f2;
    background-color: rgba(29, 161, 242, 0.1);
  }

  /* Responsive option selector sizing */
  @media (max-width: 768px) {
    .option-selector {
      padding: 3px;
      margin-bottom: 15px;
    }
    
    .option-btn {
      padding: 8px 14px;
      font-size: 12px;
    }
  }

  @media (max-width: 480px) {
    .option-selector {
      padding: 2px;
      margin-bottom: 10px;
    }
    
    .option-btn {
      padding: 6px 10px;
      font-size: 11px;
    }
  }

  /* Twitter profile styling */
  .profile-card {
    background-color: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
  }

  .profile-banner-container {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%);
    position: relative;
  }

  .profile-banner-container.no-banner {
    height: 140px;
  }

  .profile-banner-container.no-banner .profile-banner {
    display: none;
  }

  .profile-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .profile-main {
    padding: 0 16px 16px;
  }

  .profile-avatar-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: -68px;
    margin-bottom: 12px;
  }

  .profile-avatar {
    width: 134px;
    height: 134px;
    border-radius: 50%;
    border: 4px solid #fff;
    background-color: #fff;
    object-fit: cover;
    position: relative;
    z-index: 2;
  }

  .profile-actions {
    display: flex;
    gap: 8px;
    margin-top: 76px;
  }

  .profile-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #cfd9de;
    background-color: #fff;
    color: #0f1419;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
  }

  .profile-action-btn:hover {
    background-color: rgba(15, 20, 25, 0.1);
    color: #0f1419;
  }

  .profile-action-btn i {
    font-size: 16px;
  }

  .profile-info {
    text-align: left;
  }

  .profile-name {
    font-weight: 800;
    font-size: 20px;
    color: #0f1419;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
  }

  /* Verified badge */
  .verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .verified-badge svg {
    width: 100%;
    height: 100%;
    fill: #1d9bf0;
  }

  .profile-username {
    color: #536471;
    font-size: 15px;
    margin-bottom: 12px;
  }

  .profile-bio {
    color: #0f1419;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
  }

  .profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
  }

  .profile-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #536471;
    font-size: 15px;
  }

  .profile-meta-item i {
    color: #536471;
    font-size: 16px;
  }

  .profile-meta-item .website-link {
    color: #1d9bf0;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .profile-meta-item .website-link:hover {
    text-decoration: underline;
  }

  .profile-stats {
    display: flex;
    gap: 20px;
  }

  .profile-download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eff3f4;
  }

  .profile-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid #cfd9de;
    border-radius: 9999px;
    background-color: #fff;
    color: #0f1419;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .profile-download-btn:hover {
    background-color: #1d9bf0;
    border-color: #1d9bf0;
    color: #fff;
  }

  .profile-download-btn i {
    font-size: 18px;
  }

  .profile-download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  .profile-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .profile-stat:hover {
    text-decoration: underline;
  }

  .stat-value {
    font-weight: 700;
    color: #0f1419;
    font-size: 14px;
  }

  .stat-label {
    color: #536471;
    font-size: 14px;
  }

  /* Responsive profile card */
  @media (max-width: 768px) {
    .profile-banner-container {
      height: 150px;
    }

    .profile-banner-container.no-banner {
      height: 100px;
    }

    .profile-avatar-section {
      margin-top: -50px;
    }

    .profile-avatar {
      width: 100px;
      height: 100px;
      border-width: 3px;
    }

    .profile-actions {
      margin-top: 56px;
    }

    .profile-action-btn {
      width: 32px;
      height: 32px;
    }

    .profile-action-btn i {
      font-size: 14px;
    }

    .profile-name {
      font-size: 18px;
    }

    .profile-username {
      font-size: 14px;
    }

    .profile-bio {
      font-size: 14px;
    }

    .profile-meta {
      gap: 10px;
    }

    .profile-meta-item {
      font-size: 14px;
    }

    .profile-meta-item i {
      font-size: 15px;
    }

    .profile-download-actions {
      gap: 10px;
      margin-top: 14px;
      padding-top: 14px;
    }

    .profile-download-btn {
      padding: 8px 16px;
      font-size: 14px;
      gap: 6px;
    }

    .profile-download-btn i {
      font-size: 16px;
    }

    .profile-stats {
      gap: 16px;
    }

    .stat-value,
    .stat-label {
      font-size: 13px;
    }
  }

  @media (max-width: 480px) {
    .profile-card {
      border-radius: 0;
      border-left: none;
      border-right: none;
    }

    .profile-banner-container {
      height: 120px;
    }

    .profile-banner-container.no-banner {
      height: 80px;
    }

    .profile-main {
      padding: 0 12px 12px;
    }

    .profile-avatar-section {
      margin-top: -40px;
      margin-bottom: 8px;
    }

    .profile-avatar {
      width: 80px;
      height: 80px;
    }

    .profile-actions {
      margin-top: 46px;
      gap: 6px;
    }

    .profile-action-btn {
      width: 30px;
      height: 30px;
    }

    .profile-action-btn i {
      font-size: 13px;
    }

    .profile-name {
      font-size: 16px;
    }

    .profile-username {
      font-size: 13px;
      margin-bottom: 8px;
    }

    .profile-bio {
      font-size: 13px;
      margin-bottom: 8px;
    }

    .profile-meta {
      gap: 8px;
      margin-bottom: 8px;
    }

    .profile-meta-item {
      font-size: 13px;
    }

    .profile-meta-item i {
      font-size: 14px;
    }

    .profile-download-actions {
      flex-direction: column;
      gap: 6px;
      margin-top: 10px;
      padding-top: 10px;
    }

    .profile-download-btn {
      width: 100%;
      justify-content: center;
      padding: 7px 12px;
      font-size: 11px;
      gap: 5px;
    }

    .profile-download-btn i {
      font-size: 12px;
    }

    .profile-stats {
      flex-wrap: wrap;
      gap: 12px;
    }

    .stat-value,
    .stat-label {
      font-size: 12px;
    }
  }

  /* Legacy stat-item for backwards compatibility */
  .stat-item {
    display: flex;
    flex-direction: column;
  }

  .tweet-card {
    border: 1px solid #e1e8ed;
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 12px;
    background-color: #fff;
    transition: background-color 0.2s ease;
  }

  .tweet-card:hover {
    background-color: rgba(0, 0, 0, 0.015);
  }

  .tweet-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }

  .tweet-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
  }

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

  .tweet-author-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
  }

  .tweet-author-name {
    font-weight: 700;
    color: #0f1419;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }

  .tweet-author-username {
    color: #536471;
    font-size: 15px;
  }

  .tweet-time-separator {
    color: #536471;
    font-size: 15px;
  }

  .tweet-timestamp {
    color: #536471;
    font-size: 15px;
    text-decoration: none;
  }

  .tweet-timestamp:hover {
    text-decoration: underline;
    color: #1d9bf0;
  }

  .tweet-body {
    margin-top: 4px;
  }

  .tweet-text {
    color: #0f1419;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 8px;
    word-wrap: break-word;
    white-space: pre-wrap;
  }

  .tweet-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
  }

  .tweet-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #536471;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 9999px;
    transition: all 0.2s ease;
  }

  .tweet-stat:hover {
    background-color: rgba(29, 155, 240, 0.1);
    color: #1d9bf0;
  }

  .tweet-stat-retweet:hover {
    background-color: rgba(0, 186, 124, 0.1);
    color: #00ba7c;
  }

  .tweet-stat-like:hover {
    background-color: rgba(249, 24, 128, 0.1);
    color: #f91880;
  }

  .tweet-stat-views:hover {
    background-color: rgba(29, 155, 240, 0.1);
    color: #1d9bf0;
  }

  .tweet-stat i {
    font-size: 16px;
  }

  /* Responsive tweet card for mobile */
  @media (max-width: 480px) {
    .tweet-card {
      padding: 10px 12px;
      border-radius: 0;
      border-left: none;
      border-right: none;
      margin-bottom: 0;
      border-bottom: 1px solid #e1e8ed;
    }

    .tweet-avatar {
      width: 36px;
      height: 36px;
    }

    .tweet-header {
      gap: 10px;
    }

    .tweet-author-row {
      gap: 3px;
    }

    .tweet-author-name {
      font-size: 14px;
      max-width: 120px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .tweet-author-username {
      font-size: 13px;
      max-width: 80px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .tweet-time-separator,
    .tweet-timestamp {
      font-size: 13px;
    }

    .tweet-text {
      font-size: 14px;
    }

    .tweet-stats {
      margin-top: 8px;
    }

    .tweet-stat {
      font-size: 12px;
      padding: 2px 4px;
    }

    .tweet-stat i {
      font-size: 14px;
    }
  }

  @media (max-width: 768px) {
    .tweet-card {
      padding: 12px;
      border-radius: 12px;
    }

    .tweet-author-name {
      max-width: 150px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .tweet-author-username {
      max-width: 100px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  .tweet-time {
    color: #657786;
    font-size: 0.9rem;
  }

  /* Search results styling */
  .search-header {
    background-color: #f7f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
  }

  .user-card {
    background-color: #fff;
    transition: all 0.3s ease;
    border: 1px solid #e1e8ed !important;
  }

  .user-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
  }

  .user-card img {
    border: 2px solid #e1e8ed;
  }

  .user-card .btn-sm {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
  }

  /* Download button and progress bar styles */
  .progress {
    width: 100%;
    margin-bottom: 0;
    height: 4px;
  }

  .progress-bar {
    width: 0%;
    transition: width 0.3s ease;
    background-color: #1da1f2;
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .user-card .col-md-3 {
      text-align: center;
      margin-bottom: 15px;
    }
    
    .user-card .d-flex.flex-column {
      flex-direction: row !important;
      flex-wrap: wrap;
      gap: 5px !important;
    }
    
    .user-card .btn-sm {
      flex: 1;
      min-width: 80px;
    }
  }

  /* Tweet viewer specific styles */
  .detailed-tweet-card {
    max-width: 100%;
  }

  .tweet-header-section {
    background-color: #f8f9fa;
  }

  .tweet-content {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .tweet-media {
    border-radius: 12px;
    overflow: hidden;
  }

  /* GIF specific styling */
  .gif-container {
    position: relative;
    display: inline-block;
    width: 100%;
  }

  .gif-video,
  .gif-video-small {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .gif-badge {
    z-index: 10;
  }

  .gif-badge .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
  }

  /* Media grid for multiple images */
  .media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
  }

  .media-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
  }

  .grid-item,
  .grid-item-small {
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 10px;
    background-color: #fff;
  }

  .grid-item-small {
    padding: 8px;
  }

  .media-item {
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 15px;
    background-color: #fff;
  }

  .quoted-media-item {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 8px;
    background-color: #fff;
  }

  .media-item img,
  .media-item video,
  .quoted-media-item img,
  .quoted-media-item video {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  /* Pinned tweet and retweet info */
  .pinned-tweet-info,
  .retweet-info {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 52px;
    margin-bottom: 4px;
  }

  @media (max-width: 480px) {
    .pinned-tweet-info,
    .retweet-info {
      margin-left: 46px;
      font-size: 0.75rem !important;
    }
  }

  /* Quoted tweet styling */
  .quoted-tweet-card {
    border: 1px solid #cfd9de;
    border-radius: 16px;
    padding: 12px;
    margin-top: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .quoted-tweet-card:hover {
    background-color: rgba(0, 0, 0, 0.03);
  }

  .quoted-tweet-section {
    border-left: 4px solid #1da1f2 !important;
    background-color: #f8f9fa !important;
    transition: all 0.3s ease;
  }

  .quoted-tweet-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .quoted-tweet-media {
    max-height: 250px;
    overflow: hidden;
  }

  .quoted-author-name {
    font-weight: 700;
    color: #0f1419;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
  }

  .quoted-author-username,
  .quoted-time-separator,
  .quoted-timestamp {
    color: #536471;
    font-size: 13px;
  }

  .quoted-tweet-text {
    color: #0f1419;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 0;
    word-wrap: break-word;
  }

  @media (max-width: 480px) {
    .quoted-tweet-card {
      padding: 10px;
      border-radius: 12px;
    }

    .quoted-author-name {
      font-size: 12px;
      max-width: 80px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .quoted-author-username {
      font-size: 12px;
      max-width: 60px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .quoted-time-separator,
    .quoted-timestamp {
      font-size: 12px;
    }

    .quoted-tweet-text {
      font-size: 13px;
    }
  }

  /* Button sizes */
  .btn-xs {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }

  .video-download-options {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
  }

  .video-download-options .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .tweet-stats-section {
    background-color: #fff;
  }

  .stat-card {
    transition: all 0.3s ease;
    background-color: #f8f9fa;
  }

  .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .tweet-metadata {
    font-size: 0.9rem;
  }

  /* Responsive adjustments for tweet viewer */
  @media (max-width: 768px) {
    .detailed-tweet-card .row.text-center .col {
      margin-bottom: 10px;
    }
    
    .detailed-tweet-card .d-flex.gap-2 {
      flex-direction: column;
    }
    
    .detailed-tweet-card .d-flex.gap-2 .btn {
      width: 100%;
    }

    .media-grid {
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .media-grid-small {
      grid-template-columns: 1fr;
      gap: 8px;
    }

    .video-download-options {
      flex-direction: column;
      align-items: flex-start;
    }

    .video-download-options .btn-sm {
      width: 100%;
      margin-bottom: 5px;
    }

    .quoted-tweet-section .d-flex.gap-2 {
      flex-direction: column;
    }

    .quoted-tweet-section .btn-sm {
      width: 100%;
      margin-bottom: 5px;
    }

    .gif-badge .badge {
      font-size: 0.6rem;
      padding: 0.2rem 0.4rem;
    }
  }

  /* Media item containers for download buttons */
  .media-item-container {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 8px;
    text-align: center;
    border: 1px solid #cfd9de;
  }

  .media-item-container img,
  .media-item-container video {
    border-radius: 0;
    max-width: 100%;
    max-height: 500px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
  }

  .media-item-container .btn {
    font-size: 0.8rem;
  }

  /* Tweet download buttons section */
  .tweet-download-buttons {
    border-top: 1px solid #eff3f4;
    padding-top: 12px;
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .tweet-download-buttons .btn {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-weight: 500;
  }

  /* Responsive adjustments for media containers */
  @media (max-width: 768px) {
    .media-item-container {
      padding: 8px;
    }

    .media-item-container img,
    .media-item-container video {
      max-width: 100%;
    }

    .tweet-download-buttons {
      gap: 6px;
    }

    .tweet-download-buttons .btn {
      font-size: 12px;
      padding: 5px 10px;
    }
  }

  @media (max-width: 480px) {
    .tweet-download-buttons {
      flex-direction: column;
    }

    .tweet-download-buttons .btn {
      width: 100%;
      font-size: 12px;
      padding: 8px 12px;
    }
  }

  /* Video loading optimization styles */
  .media-item-container video {
    background-color: #f8f9fa;
    position: relative;
  }

  .media-item-container video[preload="none"] {
    cursor: pointer;
  }

  .media-item-container video[preload="none"]:hover {
    opacity: 0.9;
    transition: opacity 0.3s ease;
  }

  /* Add a subtle play button overlay for videos with preload="none" */
  .media-item-container video[preload="none"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
  }

  .media-item-container video[preload="none"]::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    pointer-events: none;
    z-index: 2;
  }

  /* Elementor stretch section compatibility */
  .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
  }

  /* Donation button fixed alignment */
  #donationButton {
    display: block !important;
    text-align: center !important;
    margin: 20px auto !important;
    width: fit-content !important;
  }

  #donationButton img {
    max-width: 350px !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Profile and tweet cards max width constraints */
  .profile-card {
    max-width: 800px;
    margin: 0 auto 20px auto;
  }

  .tweet-card {
    max-width: 800px;
    margin: 0 auto 15px auto;
  }

  .detailed-tweet-card {
    max-width: 800px;
    margin: 0 auto;
  }

  /* Search results constraints */
  .user-card {
    max-width: 800px;
    margin: 0 auto 15px auto;
  }

  /* Search sub-options styling */
  .search-sub-options {
    margin-bottom: 15px;
    margin-top: 10px;
  }

  .sub-option-selector {
    display: flex;
    background-color: #e9ecef;
    border-radius: 25px;
    padding: 3px;
    max-width: 300px;
    margin: 0 auto;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
  }

  .sub-option-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 22px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 13px;
  }

  .sub-option-btn.active {
    background-color: #1da1f2;
    color: white;
    box-shadow: 0 1px 4px rgba(29, 161, 242, 0.3);
  }

  .sub-option-btn:hover:not(.active) {
    color: #1da1f2;
    background-color: rgba(29, 161, 242, 0.1);
  }

  /* Responsive sub-option selector sizing */
  @media (max-width: 768px) {
    .sub-option-selector {
      padding: 2px;
      max-width: 250px;
    }
    
    .sub-option-btn {
      padding: 6px 12px;
      font-size: 11px;
    }
  }

  @media (max-width: 480px) {
    .sub-option-selector {
      padding: 2px;
      max-width: 200px;
    }
    
    .sub-option-btn {
      padding: 4px 8px;
      font-size: 10px;
    }
  }

  /* Tweet notice styling */
  .tweet-notice {
    max-width: 600px;
    margin: 0 auto 15px auto;
    animation: slideIn 0.3s ease-in;
  }

  .notice-content {
    background-color: #e3f2fd;
    border: 1px solid #1da1f2;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #0c85d0;
    display: flex;
    align-items: center;
    text-align: left;
  }

  .notice-content i {
    color: #1da1f2;
    font-size: 1rem;
    flex-shrink: 0;
  }

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

  /* Responsive tweet notice sizing */
  @media (max-width: 768px) {
    .tweet-notice {
      max-width: 100%;
      margin: 0 15px 15px 15px;
    }
    
    .notice-content {
      padding: 10px 12px;
      font-size: 0.85rem;
    }
  }

  @media (max-width: 480px) {
    .notice-content {
      padding: 8px 10px;
      font-size: 0.8rem;
    }
    
    .notice-content i {
      font-size: 0.9rem;
    }
  }

  /* Captcha Modal */
  .captcha-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5vh;
  }

  .captcha-modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    animation: captchaModalSlideIn 0.3s ease-out;
  }

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

  .captcha-modal-header h5 {
    color: #000000;
    margin-bottom: 0.5rem;
    font-weight: 600;
  }

  .captcha-modal-header p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
  }

  .captcha-modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  @media (max-width: 480px) {
    .captcha-modal-content {
      padding: 1.5rem;
      margin: 1rem;
    }
  }