    body {
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
      margin: 0;
      padding: 0;
      background: #f8fafc;
      color: #1e293b;
    }
    .container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

    /* Utility Classes */
    .flex-between { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
    .flex-center { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
    .flex-start { display: flex; gap: 0.5rem; align-items: center; }
    .text-primary { color: #3b82f6; }
    .text-secondary { color: #334155; }
    .text-muted { color: #64748b; }
    .fw-semibold { font-weight: 600; }
    .mb-1 { margin-bottom: 0.25rem; }
    .mt-2 { margin-top: 0.5rem; }
    .section-spacing { margin: 1rem 0; padding: 0.75rem; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; }
    .border-radius { border-radius: 8px; }
    .bg-light { background: #f8fafc; }

    /* Form Styles */
    .form-input {
      padding: 0.5rem;
      border: 1px solid #d1d5db;
      border-radius: 6px;
      background: white;
      font-size: 0.9rem;
      min-width: 200px;
    }

    /* Button Styles */
    .btn-primary {
      padding: 0.6rem 1rem;
      background: #3b82f6;
      color: #fff;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 600;
      text-decoration: none;
      display: inline-block;
      transition: background-color 0.2s;
    }
    .btn-primary:hover { background: #2563eb; }

    /* Admin Styles */
    .admin-links {
      padding: 0 1rem 1rem 1rem;
      display: none;
      text-align: center;
    }
    .admin-links a {
      color: #3b82f6;
      font-weight: 600;
      text-decoration: none;
      margin-right: 0.75rem;
    }

    /* Round Indicator */
    .round-indicator {
      padding: 0 1rem 1rem 1rem;
      color: #475569;
      font-weight: 500;
    }

    /* Utility Classes for JavaScript */
    .hidden { display: none !important; }
    .shown { display: block !important; }
    .flex-display { display: flex !important; }
    .grid-display { display: grid !important; }
    .inline-block-display { display: inline-block !important; }

    /* Status Colors */
    .status-default { color: #64748b; }
    .status-success { color: #16a34a; }
    .status-error { color: #dc2626; }

    /* Interactive Elements */
    .clickable { cursor: pointer; }

    /* Form Validation */
    .checkbox-error {
      outline: 2px solid #dc2626;
      outline-offset: 2px;
    }

    /* Header and Navigation */
    .header {
      background: white;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
      position: sticky;
      top: 0;
      z-index: 100;
      margin-bottom: 2rem;
    }
    .header-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 1rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
    }
    .header h1 {
      color: #3b82f6;
      margin: 0;
      font-size: 1.5rem;
    }
    .header p {
      color: #64748b;
      margin: 0.25rem 0 0 0;
      font-size: 0.9rem;
    }

    /* Navigation Tabs */
    .nav-tabs {
      display: flex;
      gap: 0.5rem;
      margin: 1rem 0;
      border-bottom: 1px solid #e2e8f0;
      overflow-x: auto;
      justify-content: center;
      padding: 0 1rem;
      max-width: 100%;
    }
    .nav-tab {
      padding: 0.75rem 1.5rem;
      background: none;
      border: none;
      border-bottom: 3px solid transparent;
      cursor: pointer;
      font-weight: 600;
      color: #64748b;
      transition: all 0.2s ease;
      white-space: nowrap;
      font-size: 0.9rem;
      min-height: 3rem;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }
    .nav-tab:hover {
      color: #3b82f6;
      background: #f8fafc;
    }
    .nav-tab.active {
      color: #3b82f6;
      border-bottom-color: #3b82f6;
      background: #f8fafc;
    }

    /* Mobile Navigation */
    .mobile-nav-toggle {
      display: none;
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: #3b82f6;
      padding: 0.5rem;
    }
    .mobile-nav {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: white;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
      border-top: 1px solid #e2e8f0;
    }
    .mobile-nav.open {
      display: block;
    }
    .mobile-nav .nav-tab {
      display: flex;
      width: 100%;
      text-align: center;
      border-bottom: 1px solid #e2e8f0;
      border-radius: 0;
      min-height: 3rem;
      align-items: center;
      justify-content: center;
      position: relative;
    }
    .mobile-nav .nav-tab:last-child {
      border-bottom: none;
    }

    /* Wallet requirement banner */
    .wallet-banner {
      background: #fef3c7; /* amber-100 */
      border-bottom: 1px solid #f59e0b; /* amber-500 */
      color: #7c2d12; /* amber-900 */
      padding: 0.75rem 1rem;
      display: none; /* hidden by default to avoid flash before auth/profile check */
    }
    .wallet-banner strong { color: #92400e; }
    .wallet-banner a { color: #b45309; text-decoration: underline; cursor: pointer; }


    /* Tab Content */
    .tab-content {
      display: none;
    }
    .tab-content.active {
      display: block;
    }

    /* Auth Controls */
    .auth-controls {
      display: flex;
      gap: 0.5rem;
      align-items: center;
      flex-wrap: wrap;
    }
    .auth-user {
      color: #64748b;
      font-size: 0.9rem;
    }
    .login-btn, .logout-btn {
      padding: 0.5rem 1rem;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 600;
      font-size: 0.9rem;
      transition: all 0.2s ease;
    }
    .login-btn {
      background: #1d9bf0;
      color: #fff;
    }
    .login-btn:hover {
      background: #1a8cd8;
    }
    .logout-btn {
      background: #ef4444;
      color: #fff;
    }
    .logout-btn:hover {
      background: #dc2626;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        position: relative;
      }
      .header h1 {
        text-align: center;
        font-size: 1.25rem;
        padding-right: 3rem; /* Make room for hamburger menu */
      }
      .mobile-nav-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
      }
      .nav-tabs {
        display: none;
      }
      .auth-controls {
        justify-content: center;
        margin-top: 0.5rem;
      }
      .container {
        padding: 0 0.5rem;
      }

      /* Mobile-specific tab content adjustments */
      .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
      }
      .points-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
      }
      .personal-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
      }

      /* Mobile profile settings */
      .personal-stats > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
      }

      /* Mobile manual checks */
      .tweets-section > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
      }
    }

    @media (max-width: 480px) {
      .header h1 {
        font-size: 1.1rem;
      }
      .personal-grid {
        grid-template-columns: 1fr;
      }
      .nav-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-height: 2.5rem;
      }
      .nav-tabs {
        gap: 0.25rem;
        padding: 0 0.5rem;
      }

      /* Mobile profile form improvements */
      #profile-settings {
        padding: 1rem 0.5rem;
      }

      #profile-settings input[type="text"],
      #profile-settings input[type="email"] {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem;
        min-height: 44px; /* Better touch targets */
      }

      #profile-save-status {
        font-size: 0.9rem;
        padding: 0.5rem 0;
        min-height: 1.2rem;
        word-wrap: break-word;
        line-height: 1.4;
      }


      #profile-save-btn,
      #profile-reset-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        min-height: 44px;
        width: 100%;
        margin-bottom: 0.5rem;
      }

      /* Wallet warning banner mobile */
      #wallet-warning-banner {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
      }

      #wallet-warning-banner .wallet-warning-text {
        font-size: 0.85rem;
      }

      /* Checkbox styling for mobile */
      #wallet-confirmation {
        transform: scale(1.2);
        margin-right: 0.5rem;
        min-height: 20px; /* Better touch target */
        min-width: 20px;
      }

      /* Profile form grid adjustments */
      #profile-settings > div > div {
        gap: 0.5rem;
      }
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1rem;
      margin-bottom: 2rem;
    }
    .stat-card {
      background: white;
      padding: 1.5rem;
      border-radius: 8px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
      border-left: 4px solid #3b82f6;
    }
    .stat-number { font-size: 2rem; font-weight: bold; color: #3b82f6; }
    .stat-label { color: #64748b; margin-top: 0.5rem; }

    .tweets-section {
      background: white;
      border-radius: 8px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
      overflow: hidden;
    }

    /* Global tweets list styling */
    #tweets-list {
      background: white;
      border-radius: 8px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
      overflow: hidden;
      max-height: none;
      overflow-y: visible;
    }

    /* KOL Bonuses styling - compact info box */
    #kol-bonuses {
      font-size: 0.9rem;
    }

    .kol-info-header {
      font-weight: 600;
      font-size: 1rem;
      margin-bottom: 0.75rem;
      color: #059669;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .kol-categories {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .kol-category {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
    }

    .kol-category-label {
      font-weight: 500;
      white-space: nowrap;
      color: #374151;
    }

    .kol-category-label.base {
      color: #dc2626;
    }

    .kol-category-label.desci {
      color: #2563eb;
    }

    .kol-xp-badge {
      background: #059669;
      color: white;
      font-weight: 600;
      padding: 0.25rem 0.5rem;
      border-radius: 12px;
      font-size: 0.8rem;
    }

    .kol-list {
      display: flex;
      flex-wrap: wrap;
      gap: 0.375rem;
      flex: 1;
    }

    .kol-item {
      background: rgba(255, 255, 255, 0.8);
      padding: 0.25rem 0.5rem;
      border-radius: 16px;
      font-size: 0.8rem;
      font-weight: 500;
      color: #374151;
      text-decoration: none;
      border: 1px solid rgba(5, 150, 105, 0.2);
      transition: all 0.2s ease;
    }

    .kol-item:hover {
      background: white;
      color: #1f2937;
      border-color: #059669;
      transform: translateY(-1px);
    }

    /* KOL full details styling for How it works tab */
    .kol-full-details {
      margin: 1rem 0;
    }

    .kol-group {
      background: white;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      padding: 1rem;
      margin-bottom: 1rem;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .kol-group:last-child {
      margin-bottom: 0;
    }

    .kol-group-header {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.75rem;
      flex-wrap: wrap;
    }

    .kol-group-icon {
      font-size: 1rem;
    }

    .kol-group-title {
      font-weight: 600;
      font-size: 1rem;
      color: #374151;
      flex: 1;
    }

    .kol-group-xp {
      background: #059669;
      color: white;
      font-weight: 600;
      padding: 0.25rem 0.5rem;
      border-radius: 16px;
      font-size: 0.8rem;
    }

    .kol-list-full {
      display: flex;
      flex-wrap: wrap;
      gap: 0.375rem;
      margin-bottom: 0.75rem;
    }

    .kol-link-full {
      background: #f3f4f6;
      padding: 0.375rem 0.625rem;
      border-radius: 16px;
      font-size: 0.85rem;
      font-weight: 500;
      color: #374151;
      text-decoration: none;
      border: 1px solid #e5e7eb;
      transition: all 0.2s ease;
    }

    .kol-link-full:hover {
      background: #e5e7eb;
      color: #1f2937;
      border-color: #d1d5db;
      transform: translateY(-1px);
    }

    .kol-note {
      font-size: 0.85rem;
      color: #6b7280;
      font-style: italic;
      padding: 0.5rem;
      background: #f9fafb;
      border-radius: 6px;
      border-left: 2px solid #059669;
    }

    /* KOL badges for leaderboard */
    .kol-badge {
      display: inline-block;
      padding: 0.25rem 0.5rem;
      border-radius: 12px;
      font-size: 0.8rem;
      font-weight: 500;
      text-decoration: none;
      transition: all 0.2s ease;
      border: 1px solid transparent;
    }

    .kol-badge.base {
      background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
      color: #9a3412;
      border-color: #fb923c;
    }

    .kol-badge.base:hover {
      background: linear-gradient(135deg, #fdba74 0%, #fb923c 100%);
      transform: translateY(-1px);
      box-shadow: 0 2px 4px rgba(251, 146, 60, 0.3);
    }

    .kol-badge.desci {
      background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
      color: #065f46;
      border-color: #34d399;
    }

    .kol-badge.desci:hover {
      background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%);
      transform: translateY(-1px);
      box-shadow: 0 2px 4px rgba(52, 211, 153, 0.3);
    }

    /* Global user rankings styling */
    #user-rankings {
      background: white;
      border-radius: 8px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
      overflow: hidden;
      max-height: none;
      overflow-y: visible;
    }

    /* Personal tweets breakdown styling */
    #personal-tweets-breakdown {
      max-height: none !important;
      overflow-y: visible !important;
    }

    /* Dashboard rankings styling */
    #dashboard-rankings-list {
      background: white;
      border-radius: 8px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
      overflow: hidden;
      max-height: none;
      overflow-y: visible;
    }

    /* Ensure tweet items have proper spacing */
    #tweets-list .tweet-item,
    #user-rankings .tweet-item,
    #personal-tweets-breakdown .tweet-breakdown-item,
    #dashboard-rankings-list .tweet-item {
      margin-bottom: 0;
    }

    #tweets-list .tweet-item:last-child,
    #user-rankings .tweet-item:last-child,
    #personal-tweets-breakdown .tweet-breakdown-item:last-child,
    #dashboard-rankings-list .tweet-item:last-child {
      border-bottom: none;
    }
    .section-header {
      background: #3b82f6;
      color: white;
      padding: 1rem;
      font-weight: bold;
    }
    .tweet-item {
      padding: 1rem;
      border-bottom: 1px solid #e2e8f0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: background-color 0.2s ease;
    }
    .tweet-item:last-child { border-bottom: none; }
    .tweet-item:hover { background-color: #f8fafc; }
    .tweet-info { flex: 1; }
    .tweet-user { font-weight: bold; color: #1e293b; }
    .tweet-text { color: #64748b; margin: 0.25rem 0; font-size: 0.9rem; }
    .tweet-meta { font-size: 0.8rem; color: #94a3b8; }
    .tweet-score {
      background: #10b981;
      color: white;
      padding: 0.25rem 0.75rem;
      border-radius: 20px;
      font-weight: bold;
      font-size: 0.9rem;
    }
    .tweet-score.zero { background: #6b7280; }
    .tweet-score.thread { background: #f59e0b; }

    .category-badge {
      display: inline-block;
      padding: 0.25rem 0.5rem;
      border-radius: 4px;
      font-size: 0.75rem;
      font-weight: bold;
      margin-left: 0.5rem;
    }
    .category-new { background: #dbeafe; color: #1e40af; }
    .category-hyperdesci { background: #dcfce7; color: #166534; }
    .category-random { background: #fef3c7; color: #92400e; }
    .category-thread { background: #fde68a; color: #92400e; }
    .category-retweet { background: #e0e7ff; color: #3730a3; }
    .category-commentour { background: #dcfce7; color: #166534; }
    .category-commentkol { background: #fef3c7; color: #92400e; }
    .category-commentkolbase { background: #fed7aa; color: #9a3412; }
    .category-commentkoldesci { background: #d1fae5; color: #065f46; }
    .category-timelimited { background: #fecaca; color: #dc2626; }
    .category-skipped { background: #f3f4f6; color: #6b7280; }

    /* User breakdown modal styles */
    .user-breakdown-modal {
      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;
    }

    .user-breakdown-content {
      background: white;
      border-radius: 12px;
      max-width: 800px;
      width: 90%;
      max-height: 80vh;
      overflow-y: auto;
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

    .user-breakdown-header {
      background: #3b82f6;
      color: white;
      padding: 1.5rem;
      border-radius: 12px 12px 0 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .user-breakdown-header h2 {
      margin: 0;
      font-size: 1.5rem;
    }

    .close-btn {
      background: none;
      border: none;
      color: white;
      font-size: 1.5rem;
      cursor: pointer;
      padding: 0.5rem;
      border-radius: 4px;
      transition: background-color 0.2s ease;
    }

    .close-btn:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    .user-breakdown-body {
      padding: 1.5rem;
    }

    .user-summary {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 1rem;
      margin-bottom: 2rem;
    }

    .summary-item {
      text-align: center;
      padding: 1rem;
      background: #f8fafc;
      border-radius: 8px;
      border-left: 4px solid #3b82f6;
    }

    .summary-number {
      font-size: 1.5rem;
      font-weight: bold;
      color: #3b82f6;
    }

    .summary-label {
      color: #64748b;
      font-size: 0.9rem;
      margin-top: 0.25rem;
    }

    .breakdown-table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 1rem;
    }

    .breakdown-table th,
    .breakdown-table td {
      padding: 0.75rem;
      text-align: left;
      border-bottom: 1px solid #e2e8f0;
    }

    .breakdown-table th {
      background: #f8fafc;
      font-weight: bold;
      color: #374151;
    }

    .breakdown-table tr:hover {
      background: #f8fafc;
    }

    .activity-type {
      display: inline-block;
      padding: 0.25rem 0.5rem;
      border-radius: 4px;
      font-size: 0.8rem;
      font-weight: bold;
    }

    .activity-new { background: #dbeafe; color: #1e40af; }
    .activity-comment-our { background: #dcfce7; color: #166534; }
    .activity-comment-kol { background: #fef3c7; color: #92400e; }
    .activity-comment-kol-base { background: #fed7aa; color: #9a3412; }
    .activity-comment-kol-desci { background: #d1fae5; color: #065f46; }
    .activity-retweet { background: #e0e7ff; color: #3730a3; }
    .activity-thread { background: #fde68a; color: #92400e; }
    .activity-time-limited { background: #fecaca; color: #dc2626; }

    .points-cell {
      font-weight: bold;
      color: #10b981;
    }

    .points-cell.zero {
      color: #6b7280;
    }

    /* Individual tweet styles in breakdown */
    .tweet-breakdown-item {
      padding: 1rem;
      border-bottom: 1px solid #e2e8f0;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      transition: background-color 0.2s ease;
    }

    .tweet-breakdown-item:last-child {
      border-bottom: none;
    }

    .tweet-breakdown-item:hover {
      background-color: #f8fafc;
    }

    .tweet-breakdown-info {
      flex: 1;
      margin-right: 1rem;
    }

    .tweet-breakdown-text {
      color: #1e293b;
      margin: 0.5rem 0;
      font-size: 0.9rem;
      line-height: 1.4;
    }

    .tweet-breakdown-meta {
      font-size: 0.8rem;
      color: #64748b;
      margin-top: 0.25rem;
    }

    .tweet-breakdown-classification {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 0.5rem;
    }

    .tweet-breakdown-points {
      background: #10b981;
      color: white;
      padding: 0.25rem 0.75rem;
      border-radius: 20px;
      font-weight: bold;
      font-size: 0.9rem;
    }

    .tweet-breakdown-points.zero {
      background: #6b7280;
    }

    .tweet-breakdown-reason {
      font-size: 0.8rem;
      color: #64748b;
      text-align: right;
    }

    .loading { text-align: center; padding: 2rem; color: #64748b; }
    .error { background: #fef2f2; color: #dc2626; padding: 1rem; border-radius: 8px; margin: 1rem 0; }

    /* Tab Loading Indicators */
    .nav-tab.loading {
      color: #94a3b8;
    }
    .nav-tab.loading::after {
      content: '';
      position: absolute;
      right: 0.75rem;
      top: 50%;
      transform: translateY(-50%);
      width: 12px;
      height: 12px;
      border: 2px solid #e2e8f0;
      border-top: 2px solid #3b82f6;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }
    @keyframes spin {
      0% { transform: translateY(-50%) rotate(0deg); }
      100% { transform: translateY(-50%) rotate(360deg); }
    }

    /* Tab Content Loading */
    .tab-content.loading {
      position: relative;
      min-height: 200px;
    }
    .tab-content.loading::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 40px;
      height: 40px;
      border: 4px solid #e2e8f0;
      border-top: 4px solid #3b82f6;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      z-index: 10;
    }
    .tab-content.loading::after {
      content: 'Loading...';
      position: absolute;
      top: 60%;
      left: 50%;
      transform: translateX(-50%);
      color: #64748b;
      font-size: 0.9rem;
      z-index: 10;
    }

    code { background: #f1f5f9; padding: 0.15rem 0.35rem; border-radius: 4px; font-size: 0.9rem; }

    .points-info-section {
      background: #f1f5f9;
      border-radius: 12px;
      padding: 2rem;
      margin: 2rem 0;
    }

    .points-info-section h3 {
      margin: 0 0 1.5rem 0;
      color: #3b82f6;
      text-align: center;
      font-size: 1.5rem;
    }

    /* Leaderboard percentage bar */
    .percent-wrap { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; }
    .percent-bar { flex: 1; height: 8px; background: #e5e7eb; border-radius: 9999px; overflow: hidden; }
    .percent-fill { height: 100%; background: #3b82f6; }
    .percent-label { font-size: 0.8rem; color: #475569; min-width: 3.5rem; text-align: right; }

    /* Personal stats */
    .personal-stats { background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 1rem; margin: 1rem 0; }
    .personal-stats h3 { margin: 0 0 0.5rem 0; color: #3b82f6; }
    .personal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; }
    .personal-item { background: #f8fafc; padding: 0.75rem; border-radius: 8px; }
    .personal-number { font-size: 1.6rem; font-weight: 700; color: #3b82f6; }
    .personal-label { color: #64748b; font-size: 0.85rem; }

    .points-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
    }

    .point-card {
      background: white;
      border-radius: 8px;
      padding: 1.5rem;
      text-align: center;
      box-shadow: 0 4px 6px rgba(0,0,0,0.05);
      border-top: 4px solid #3b82f6;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .point-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    .point-value {
      font-size: 2.5rem;
      font-weight: bold;
      color: #3b82f6;
      margin-bottom: 0.5rem;
    }

    .point-description {
      color: #475569;
      font-size: 0.9rem;
    }

    .info-note {
      background: #dbeafe;
      color: #1e40af;
      padding: 1rem 1.5rem;
      border-radius: 8px;
      margin-top: 2rem;
      font-size: 0.9rem;
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .info-note strong {
      font-weight: bold;
    }

    /* Wallet Connection Notification */
    .wallet-notification {
      position: fixed;
      top: 20px;
      right: 20px;
      background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
      color: white;
      padding: 1rem 1.5rem;
      border-radius: 12px;
      box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
      z-index: 1000;
      max-width: 400px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      transform: translateX(100%);
      opacity: 0;
      transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    }

    .wallet-notification:not(.hidden) {
      transform: translateX(0);
      opacity: 1;
    }

    .wallet-notification.hidden {
      transform: translateX(100%);
      opacity: 0;
    }


    .wallet-notification-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 0.75rem;
    }

    .wallet-notification-icon {
      font-size: 1.5rem;
    }

    .wallet-notification-title {
      font-weight: bold;
      font-size: 1.1rem;
      margin: 0;
    }

    .wallet-notification-close {
      background: none;
      border: none;
      color: white;
      font-size: 1.2rem;
      cursor: pointer;
      padding: 0.25rem;
      border-radius: 4px;
      margin-left: auto;
      transition: background-color 0.2s ease;
    }

    .wallet-notification-close:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    .wallet-notification-content {
      font-size: 0.9rem;
      line-height: 1.4;
      margin-bottom: 1rem;
    }

    .wallet-notification-actions {
      display: flex;
      gap: 0.75rem;
      align-items: center;
    }

    .wallet-notification-btn {
      background: rgba(255, 255, 255, 0.2);
      color: white;
      border: 1px solid rgba(255, 255, 255, 0.3);
      padding: 0.5rem 1rem;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 600;
      font-size: 0.9rem;
      transition: all 0.2s ease;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

    .wallet-notification-btn:hover {
      background: rgba(255, 255, 255, 0.3);
      border-color: rgba(255, 255, 255, 0.5);
    }

    .wallet-notification-btn.primary {
      background: white;
      color: #1d4ed8;
      border-color: white;
    }

    .wallet-notification-btn.primary:hover {
      background: #f8fafc;
      color: #1e40af;
    }

    .wallet-notification-dismiss {
      background: none;
      border: none;
      color: rgba(255, 255, 255, 0.8);
      cursor: pointer;
      font-size: 0.85rem;
      text-decoration: underline;
      padding: 0.25rem;
    }

    .wallet-notification-dismiss:hover {
      color: white;
    }

    /* Mobile responsive */
    @media (max-width: 768px) {
      .wallet-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
      }

      .wallet-notification-actions {
        flex-direction: column;
        align-items: stretch;
      }

      .wallet-notification-btn {
        justify-content: center;
      }


      /* Mobile wallet warning banner */
      #wallet-warning-banner {
        padding: 0.5rem !important;
        margin-bottom: 0.25rem !important;
      }

      #wallet-warning-banner .flex {
        gap: 0.35rem !important;
      }

      /* Mobile wallet checkbox */
      #wallet-confirmation {
        margin-top: 0.05rem !important;
      }

      #wallet-confirmation + label {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
      }

      /* Mobile profile sections */
      #profile-settings > div[style*="background"] {
        padding: 1rem !important;
      }

      #profile-settings > div[style*="background"] h4 {
        font-size: 1rem !important;
      }

      /* Mobile wallet input */
      #wallet-address {
        font-size: 16px !important; /* Prevents zoom on iOS */
        min-height: 44px !important; /* Better touch targets */
      }

      /* Mobile wallet save button */
      #wallet-save-btn {
        width: 100%;
        margin-bottom: 0.5rem;
        min-height: 44px !important; /* Better touch targets */
      }

      /* Mobile wallet status message */
      #wallet-save-status {
        font-size: 0.9rem;
        padding: 0.5rem 0;
        min-height: 1.2rem;
        word-wrap: break-word;
        line-height: 1.4;
      }
    }

    /* How It Works Section Styles */
    .how-it-works-hero {
      background: linear-gradient(135deg, #3b82f6, #1d4ed8);
      color: white;
      padding: 3rem 1rem;
      border-radius: 12px;
      margin-bottom: 2rem;
      text-align: center;
    }

    .hero-content h2 {
      font-size: 2.5rem;
      margin: 0 0 0.5rem 0;
      font-weight: 700;
    }

    .hero-subtitle {
      font-size: 1.2rem;
      margin: 0 0 2rem 0;
      opacity: 0.9;
      font-weight: 400;
    }

    .how-it-works-section {
      background: white;
      padding: 2rem;
      border-radius: 12px;
      margin-bottom: 2rem;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .how-it-works-section h3 {
      color: #1e293b;
      margin: 0 0 1rem 0;
      font-size: 1.5rem;
      font-weight: 600;
    }

    .section-intro {
      color: #64748b;
      font-size: 1rem;
      margin: 0 0 1.5rem 0;
      line-height: 1.5;
    }

    .steps-container {
      display: flex;
      gap: 1.5rem;
      flex-wrap: wrap;
      justify-content: center;
    }

    .step-card {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 1.5rem;
      text-align: center;
      flex: 1;
      min-width: 200px;
      max-width: 300px;
      position: relative;
      transition: all 0.2s;
    }

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

    .step-number {
      position: absolute;
      top: -10px;
      left: -10px;
      background: #3b82f6;
      color: white;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 0.9rem;
    }

    .step-icon {
      font-size: 2rem;
      margin-bottom: 1rem;
    }

    .step-card h4 {
      color: #1e293b;
      margin: 0 0 0.5rem 0;
      font-size: 1.1rem;
      font-weight: 600;
    }

    .step-card p {
      color: #64748b;
      margin: 0;
      line-height: 1.5;
    }

    .points-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;
      margin-bottom: 2rem;
    }

    .point-card {
      background: white;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 1.5rem;
      text-align: center;
      transition: all 0.2s;
      position: relative;
    }

    .point-card:hover {
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .point-card.featured {
      border: 2px solid #3b82f6;
      background: linear-gradient(135deg, #f0f9ff, white);
    }

    .point-badge {
      position: absolute;
      top: -8px;
      left: 50%;
      transform: translateX(-50%);
      background: #3b82f6;
      color: white;
      padding: 0.25rem 0.75rem;
      border-radius: 12px;
      font-size: 0.7rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .point-value {
      font-size: 1.5rem;
      font-weight: 700;
      color: #1e293b;
      margin-bottom: 0.5rem;
    }

    .point-description {
      color: #64748b;
      margin-bottom: 0.5rem;
      line-height: 1.4;
    }

    .point-limit {
      font-size: 0.8rem;
      color: #ef4444;
      font-weight: 500;
    }

    .info-box {
      border-radius: 8px;
      padding: 1rem;
      margin-top: 1.5rem;
      display: flex;
      align-items: flex-start;
      gap: 1rem;
    }

    .info-box.info {
      background: #f0f9ff;
      border: 1px solid #3b82f6;
    }

    .info-box.warning {
      background: #fef3c7;
      border: 1px solid #f59e0b;
    }

    .info-icon {
      font-size: 1.5rem;
      flex-shrink: 0;
    }

    .info-content h4 {
      margin: 0 0 0.5rem 0;
      color: #1e293b;
      font-size: 1rem;
      font-weight: 600;
    }

    .info-content ul {
      margin: 0;
      padding-left: 1.25rem;
    }

    .info-content li {
      margin-bottom: 0.25rem;
      color: #64748b;
      line-height: 1.4;
    }

    .rewards-explanation {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .reward-pool {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 1.5rem;
      text-align: center;
    }

    .pool-header {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      margin-bottom: 1rem;
    }

    .pool-icon {
      font-size: 1.5rem;
    }

    .pool-header h4 {
      margin: 0;
      color: #1e293b;
      font-size: 1.1rem;
      font-weight: 600;
    }


    .reward-pool p {
      color: #64748b;
      margin: 0 0 1rem 0;
      line-height: 1.5;
    }



    .rules-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;
      margin-bottom: 2rem;
    }

    .rule-card {
      border-radius: 8px;
      padding: 1.5rem;
      text-align: center;
      border: 2px solid;
    }

    .rule-card.good {
      background: #f0fdf4;
      border-color: #10b981;
    }

    .rule-card.bad {
      background: #fef2f2;
      border-color: #ef4444;
    }

    .rule-icon {
      font-size: 2rem;
      margin-bottom: 1rem;
    }

    .rule-card h4 {
      margin: 0 0 0.5rem 0;
      font-size: 1rem;
      font-weight: 600;
    }

    .rule-card p {
      margin: 0;
      color: #64748b;
      line-height: 1.4;
    }

    .faq-container {
      max-width: 800px;
      margin: 0 auto;
    }

    .faq-item {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      margin-bottom: 1rem;
      overflow: hidden;
    }

    .faq-question {
      padding: 1rem 1.5rem;
      margin: 0;
      background: white;
      cursor: pointer;
      font-weight: 600;
      color: #1e293b;
      border-bottom: 1px solid #e2e8f0;
      transition: background-color 0.2s;
    }

    .faq-question:hover {
      background: #f1f5f9;
    }

    .faq-answer {
      padding: 1rem 1.5rem;
      margin: 0;
      color: #64748b;
      line-height: 1.5;
      display: none;
    }

    .faq-item.expanded .faq-answer {
      display: block;
    }

    /* Mobile Responsiveness */
    @media (max-width: 768px) {
      .how-it-works-hero {
        padding: 2rem 1rem;
      }

      .hero-content h2 {
        font-size: 2rem;
      }

      .steps-container {
        gap: 1rem;
      }

      .step-card {
        min-width: 250px;
      }

      .points-grid {
        grid-template-columns: 1fr;
      }

      .rewards-explanation {
        grid-template-columns: 1fr;
      }

      .rules-grid {
        grid-template-columns: 1fr;
      }

      .round-details {
        flex-direction: column;
        gap: 1rem;
      }

      /* Mobile optimization for keyword grid */
      #how-to-yapp-tab [style*="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: 1fr !important;
      }

      #how-to-yapp-tab [style*="background: #f1f5f9; padding: 1.5rem"] {
        padding: 1rem !important;
      }
    }
