    @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

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

    html {
      overflow-x: hidden;
      width: 100%;
    }

    body {
      font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
      font-weight: 400;
      background: #000000;
      -webkit-font-smoothing: antialiased;
      transition: background-color 0.3s ease;
      width: 100%;
      overflow-x: hidden;
    }

    /* Light mode */
    body.light-mode {
      background: #F5F5F5;
    }

    /* Top Navigation (from sports.html) */
    #topNav {
      position: fixed;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 100%;
      max-width: 1600px;
      height: 68px;
      z-index: 100;
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      padding: 0 40px;
      gap: 60px;
    }

    /* Full-width background */
    #topNav::before {
      content: '';
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 100vw;
      height: 100%;
      background: rgba(0, 0, 0, 0.95);
      border-bottom: 1px solid #1f1f1f;
      backdrop-filter: blur(20px);
      z-index: -1;
    }

    body.light-mode #topNav::before {
      background: rgba(255, 255, 255, 0.95);
      border-bottom-color: #E8E8E8;
    }

    #topNav .nav-logo {
      display: flex;
      align-items: center;
      text-decoration: none;
      height: 44px;
      grid-column: 1;
      justify-self: start;
    }

    #topNav .nav-logo-img {
      display: block;
      height: 44px;
      width: auto;
    }

    #topNav .nav-logo-light {
      display: none;
    }

    body.light-mode #topNav .nav-logo-dark {
      display: none;
    }

    body.light-mode #topNav .nav-logo-light {
      display: block;
    }

    #topNav .nav-links {
      display: flex;
      gap: 24px;
      align-items: center;
      justify-content: center;
      grid-column: 2;
    }

    /* Hide mobile-only login/account links on desktop - they should ONLY appear in hamburger menu */
    #mobileLoginBtn,
    #mobileAccountLink {
      display: none !important;
    }

    #topNav .nav-link {
      color: #8E8E93;
      text-decoration: none;
      font-size: 15px;
      font-weight: 500;
      transition: all 0.2s ease;
      white-space: nowrap;
      position: relative;
      padding-bottom: 4px;
    }

    #topNav .nav-link:hover,
    #topNav .nav-link.active {
      color: #FFFFFF;
    }

    /* Hover underline effect with category colors */
    #topNav .nav-link:hover::after,
    #topNav .nav-link.active::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: currentColor;
      transform: scaleX(1);
      transition: transform 0.2s ease;
    }

    #topNav .nav-link::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: currentColor;
      transform: scaleX(0);
      transition: transform 0.2s ease;
    }

    /* Category-specific hover colors */
    #topNav .nav-link[href*="sports"]:hover { color: #F97316; }
    #topNav .nav-link[href*="technology"]:hover { color: #A855F7; }
    #topNav .nav-link[href*="politics"]:hover { color: #8B5CF6; }
    #topNav .nav-link[href*="entertainment"]:hover { color: #EC4899; }
    #topNav .nav-link[href*="health"]:hover { color: #10B981; }
    #topNav .nav-link[href*="science"]:hover { color: #3B82F6; }
    #topNav .nav-link[href*="business"]:hover { color: #F59E0B; }
    #topNav .nav-link[href*="environment"]:hover { color: #059669; }
    #topNav .nav-link[href*="for-you"]:hover { color: #06B6D4; }
    #topNav .nav-link[href*="world"]:hover { color: #8B5CF6; }
    #topNav .nav-link[href*="index"]:hover,
    #topNav .nav-link.active[href*="index"] { color: #FFFFFF; }

    /* Dropdown Menu */
    .nav-dropdown {
      position: relative;
      display: inline-block;
    }

    .nav-dropdown-toggle {
      display: flex;
      align-items: center;
      gap: 4px;
      cursor: pointer;
    }

    .nav-dropdown-arrow {
      font-size: 10px;
      transition: transform 0.2s;
    }

    .nav-dropdown:hover .nav-dropdown-arrow {
      transform: rotate(180deg);
    }

    .nav-dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      margin-top: 12px;
      background: rgba(0, 0, 0, 0.95);
      backdrop-filter: blur(20px);
      border: 1px solid #2A2A2A;
      border-radius: 8px;
      padding: 8px 0;
      min-width: 180px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.2s ease;
      z-index: 100;
    }

    body.light-mode .nav-dropdown-menu {
      background: rgba(255, 255, 255, 0.98);
      border-color: #E8E8E8;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .nav-dropdown:hover .nav-dropdown-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .nav-dropdown-item {
      display: block;
      padding: 10px 20px;
      color: #8E8E93;
      text-decoration: none;
      font-size: 14px;
      font-weight: 500;
      transition: all 0.2s;
    }

    body.light-mode .nav-dropdown-item {
      color: #6B6B6B;
    }

    .nav-dropdown-item:hover {
      color: #FFFFFF;
      background: rgba(139, 92, 246, 0.1);
    }

    body.light-mode .nav-dropdown-item:hover {
      color: #8B5CF6;
      background: rgba(139, 92, 246, 0.05);
    }

    body.light-mode #topNav .nav-link:hover,
    body.light-mode #topNav .nav-link.active {
      color: #000000;
    }

    /* Light mode category hover colors */
    body.light-mode #topNav .nav-link[href*="sports"]:hover { color: #F97316; }
    body.light-mode #topNav .nav-link[href*="technology"]:hover { color: #A855F7; }
    body.light-mode #topNav .nav-link[href*="politics"]:hover { color: #8B5CF6; }
    body.light-mode #topNav .nav-link[href*="entertainment"]:hover { color: #EC4899; }
    body.light-mode #topNav .nav-link[href*="health"]:hover { color: #10B981; }
    body.light-mode #topNav .nav-link[href*="science"]:hover { color: #3B82F6; }
    body.light-mode #topNav .nav-link[href*="business"]:hover { color: #F59E0B; }
    body.light-mode #topNav .nav-link[href*="environment"]:hover { color: #059669; }
    body.light-mode #topNav .nav-link[href*="for-you"]:hover { color: #06B6D4; }
    body.light-mode #topNav .nav-link[href*="world"]:hover { color: #8B5CF6; }

    /* Subscribe and Login Buttons */
    #topNav .subscribe-button {
      padding: 8px 20px;
      background: transparent;
      color: #FFFFFF;
      border: 2px solid #FFFFFF;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      white-space: nowrap;
      transition: all 0.2s;
    }

    body.light-mode #topNav .subscribe-button {
      color: #1D1D1F;
      border-color: #1D1D1F;
    }

    #topNav .subscribe-button:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    body.light-mode #topNav .subscribe-button:hover {
      background: rgba(0, 0, 0, 0.05);
    }

    #topNav .auth-button {
      padding: 8px 20px;
      background: #ff4d00;
      color: #FFFFFF;
      border: none;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      white-space: nowrap;
      transition: all 0.2s;
    }

    #topNav .auth-button:hover {
      background: #e64500;
    }

    /* Theme Toggle */
    /* Right side items - stack them in grid column 3 */
    #topNav > #themeToggle,
    #topNav > .subscribe-button,
    #topNav > .auth-button,
    #topNav > .nav-link[href*="account"],
    #topNav > div:last-child {
      grid-column: 3;
      grid-row: 1;
    }

    /* Position auth buttons container to the right */
    #topNav > div:last-child {
      justify-self: end;
    }

    /* Position items on the right */
    #topNav > #themeToggle {
      justify-self: end;
    }

    #topNav > .subscribe-button {
      justify-self: end;
      margin-right: 72px; /* Width of theme toggle + gap */
    }

    #topNav > .auth-button {
      justify-self: end;
      margin-right: 190px; /* Width of theme toggle + subscribe button + gaps */
    }

    /* My Account - further to the right */
    #topNav > .nav-link[href*="account"] {
      justify-self: end;
      margin-right: 72px; /* Same as subscribe button */
    }

    #themeToggle {
      position: relative;
      width: 56px;
      height: 28px;
      background: #2C2C2E;
      border-radius: 14px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    body.light-mode #themeToggle {
      background: #E5E5E7;
    }

    #themeToggle .toggle-icon {
      position: absolute;
      top: 4px;
      left: 4px;
      width: 20px;
      height: 20px;
      background: #FFFFFF;
      border-radius: 50%;
      transition: transform 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
    }

    body.light-mode #themeToggle .toggle-icon {
      transform: translateX(28px);
      background: #000000;
    }

    /* Main Container */
    .main-container {
      margin-top: 76px;
      padding: 0 40px;
      max-width: 1600px;
      margin-left: auto;
      margin-right: auto;
    }

    /* Page Title */
    .page-title {
      font-family: 'Outfit', sans-serif;
      font-size: 48px;
      font-weight: 700;
      color: #FFFFFF;
      margin-bottom: 8px;
    }

    body.light-mode .page-title {
      color: #1D1D1F;
    }

    .page-subtitle {
      font-size: 16px;
      color: #8E8E93;
      margin-bottom: 32px;
    }

    /* Hero Section (ESPN-style) */
    .hero-section {
      position: relative;
      height: 420px;
      border-radius: 16px;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.3s ease;
      margin-bottom: 32px;
    }

    .hero-section:hover {
      transform: scale(1.01);
    }

    .hero-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .hero-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
      padding: 40px;
    }

    body.light-mode .hero-overlay {
      background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    }

    .hero-category {
      display: inline-block;
      padding: 6px 12px;
      font-size: 14px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      border-radius: 4px;
      margin-bottom: 12px;
      background: rgba(249, 115, 22, 0.9);
      color: white;
    }

    /* Hero category colors matching category themes */
    .hero-category.sports { background: rgba(249, 115, 22, 0.9); color: white; }
    .hero-category.technology { background: rgba(168, 85, 247, 0.9); color: white; }
    .hero-category.politics { background: rgba(139, 92, 246, 0.9); color: white; }
    .hero-category.entertainment { background: rgba(236, 72, 153, 0.9); color: white; }
    .hero-category.health { background: rgba(16, 185, 129, 0.9); color: white; }
    .hero-category.science { background: rgba(59, 130, 246, 0.9); color: white; }
    .hero-category.business { background: rgba(245, 158, 11, 0.9); color: white; }
    .hero-category.environment { background: rgba(5, 150, 105, 0.9); color: white; }

    .hero-title {
      font-family: 'Outfit', sans-serif;
      font-size: 42px;
      font-weight: 700;
      line-height: 1.2;
      color: white;
      margin-bottom: 12px;
    }

    .hero-meta {
      display: flex;
      align-items: center;
      gap: 16px;
      color: rgba(255,255,255,0.8);
      font-size: 14px;
    }


    /* ESPN-Style Irregular Grid */
    .news-grid {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 20px;
      margin-bottom: 60px;
    }

    .grid-item-large {
      grid-column: span 8;
      grid-row: span 2;
    }

    .grid-item-medium {
      grid-column: span 4;
    }

    .grid-item-small {
      grid-column: span 4;
    }

    .grid-item-wide {
      grid-column: span 6;
    }

    .news-card {
      background: #1C1C1E;
      border-radius: 12px;
      overflow: hidden;
      cursor: pointer;
      transition: all 0.3s ease;
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    body.light-mode .news-card {
      background: white;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .news-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 24px rgba(0,0,0,0.4);
    }

    body.light-mode .news-card:hover {
      box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    }

    .news-card-image {
      width: 100%;
      aspect-ratio: 16/9;
      object-fit: cover;
    }

    .grid-item-large .news-card-image {
      aspect-ratio: 16/10;
    }

    .news-card-content {
      padding: 20px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .news-card-category {
      display: inline-block;
      font-size: 14px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 8px;
    }

    /* Category colors matching category themes (no background) */
    .news-card-category.sports { color: #F97316; }
    .news-card-category.technology { color: #A855F7; }
    .news-card-category.politics { color: #8B5CF6; }
    .news-card-category.entertainment { color: #EC4899; }
    .news-card-category.health { color: #10B981; }
    .news-card-category.science { color: #3B82F6; }
    .news-card-category.business { color: #F59E0B; }
    .news-card-category.environment { color: #059669; }

    .news-card-title {
      font-family: 'Outfit', sans-serif;
      font-size: 18px;
      font-weight: 600;
      line-height: 1.3;
      color: white;
      margin-bottom: 12px;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    body.light-mode .news-card-title {
      color: #1D1D1F;
    }

    .grid-item-large .news-card-title {
      font-family: 'Outfit', sans-serif;
      font-size: 24px;
      font-weight: 700;
      -webkit-line-clamp: 4;
    }

    .news-card-summary {
      font-size: 15px;
      font-weight: 400;
      line-height: 1.5;
      color: #8E8E93;
      margin-bottom: 16px;
      display: none;
    }

    .grid-item-large .news-card-summary,
    .grid-item-wide .news-card-summary {
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .grid-item-large .news-card-summary {
      font-size: 16px;
      -webkit-line-clamp: 4;
    }

    .news-card-meta {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 13px;
      color: #8E8E93;
      margin-top: auto;
    }

    .source-logo-small {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: white;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .source-logo-small img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    /* Mashable-Style Category Cards */
    .category-section {
      margin-bottom: 60px;
    }

    .category-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 24px;
      padding-bottom: 16px;
      border-bottom: 3px solid;
    }

    .category-title {
      font-family: 'Outfit', sans-serif;
      font-size: 28px;
      font-weight: 700;
      color: white;
    }

    body.light-mode .category-title {
      color: #1D1D1F;
    }

    .category-more {
      color: #8E8E93;
      text-decoration: none;
      font-size: 15px;
      font-weight: 600;
      transition: color 0.2s;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .category-more:hover {
      color: white;
    }

    body.light-mode .category-more:hover {
      color: #1D1D1F;
    }

    /* Mashable-style 3-column layout */
    .category-columns-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 40px;
      margin-top: 32px;
    }

    /* Tablet view: 2 columns for Entertainment/Health/Environment */
    @media (max-width: 1024px) and (min-width: 769px) {
      .category-columns-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
      }

      .category-column:last-child {
        grid-column: span 2;
      }
    }

    .category-column {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    /* Category column header */
    .category-column-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 4px;
      padding-bottom: 12px;
    }

    .category-column-title {
      font-family: 'Outfit', sans-serif;
      font-size: 32px;
      font-weight: 700;
      color: white;
      margin: 0;
      padding-bottom: 8px;
    }

    body.light-mode .category-column-title {
      color: #1D1D1F;
    }

    .category-column-more {
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      transition: opacity 0.2s;
    }

    .category-column-more:hover {
      opacity: 0.7;
    }

    /* Featured card (first in column, with image) */
    .category-featured-card {
      cursor: pointer;
      transition: transform 0.2s ease;
      margin-bottom: 8px;
    }

    .category-featured-card:hover {
      transform: translateY(-2px);
    }

    .category-featured-image {
      width: 100%;
      height: 250px;
      object-fit: cover;
      border-radius: 8px;
      margin-bottom: 12px;
    }

    .category-featured-content {
      padding: 0;
    }

    .category-featured-title {
      font-family: 'Outfit', sans-serif;
      font-size: 22px;
      font-weight: 700;
      line-height: 1.3;
      color: white;
      margin-bottom: 10px;
      transition: color 0.2s;
    }

    body.light-mode .category-featured-title {
      color: #1D1D1F;
    }

    .category-featured-card:hover .category-featured-title {
      color: #F97316;
    }

    /* Text-only cards */
    .category-text-card {
      padding: 12px 0;
      border-bottom: 1px solid #2C2C2E;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    body.light-mode .category-text-card {
      border-bottom-color: #E8E8E8;
    }

    .category-text-card:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .category-text-title {
      font-family: 'Outfit', sans-serif;
      font-size: 18px;
      font-weight: 600;
      line-height: 1.3;
      color: white;
      margin-bottom: 8px;
      transition: color 0.2s;
    }

    body.light-mode .category-text-title {
      color: #1D1D1F;
    }

    .category-text-card:hover .category-text-title {
      color: #F97316;
    }

    /* OLD category-grid (kept for backwards compatibility) */
    .category-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 24px;
    }

    .category-card {
      background: #1C1C1E;
      border-radius: 12px;
      overflow: hidden;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    body.light-mode .category-card {
      background: white;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .category-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 24px rgba(0,0,0,0.4);
    }

    body.light-mode .category-card:hover {
      box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    }

    .category-card-image {
      width: 100%;
      height: 200px;
      object-fit: cover;
    }

    .category-card-content {
      padding: 20px;
    }

    .category-card-label {
      font-size: 14px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 8px;
    }

    /* Category card label colors */
    .category-card-label.sports { color: #F97316; }
    .category-card-label.technology { color: #A855F7; }
    .category-card-label.politics { color: #8B5CF6; }
    .category-card-label.entertainment { color: #EC4899; }
    .category-card-label.health { color: #10B981; }
    .category-card-label.science { color: #3B82F6; }
    .category-card-label.business { color: #F59E0B; }
    .category-card-label.environment { color: #059669; }

    .category-card-title {
      font-family: 'Outfit', sans-serif;
      font-size: 18px;
      font-weight: 600;
      line-height: 1.3;
      color: white;
      margin-bottom: 12px;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    body.light-mode .category-card-title {
      color: #1D1D1F;
    }

    .category-card-meta {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 13px;
      color: #8E8E93;
    }

    /* Sidebar */
    .sidebar {
      background: #1C1C1E;
      border-radius: 12px;
      padding: 24px;
      margin-bottom: 24px;
    }

    body.light-mode .sidebar {
      background: white;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .sidebar-title {
      font-family: 'Outfit', sans-serif;
      font-size: 18px;
      font-weight: 700;
      color: white;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    body.light-mode .sidebar-title {
      color: #1D1D1F;
    }

    .sidebar-item {
      padding: 16px 0;
      border-bottom: 1px solid rgba(255,255,255,0.1);
      cursor: pointer;
      transition: all 0.2s ease;
    }

    body.light-mode .sidebar-item {
      border-bottom-color: #E8E8E8;
    }

    .sidebar-item:hover {
      padding-left: 8px;
    }

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

    .sidebar-item-title {
      font-family: 'Outfit', sans-serif;
      font-size: 18px;
      font-weight: 600;
      color: white;
      line-height: 23px;
      margin-bottom: 6px;
    }

    body.light-mode .sidebar-item-title {
      color: #1D1D1F;
    }

    .sidebar-item-meta {
      font-size: 12px;
      color: #8E8E93;
    }

    .sidebar-item-category {
      font-size: 14px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 4px;
    }

    /* Two Column Layout */
    .content-grid {
      display: grid;
      grid-template-columns: 1fr 350px;
      gap: 40px;
      margin-top: 0;
      margin-bottom: 60px;
    }

    @media (max-width: 1024px) {
      .content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
      }

      .sidebar {
        margin-top: 0 !important;
      }
    }

    /* Category Colors */
    .sports { color: #F97316; }
    .technology { color: #A855F7; }
    .politics { color: #8B5CF6; }
    .entertainment { color: #EC4899; }
    .health { color: #10B981; }
    .science { color: #3B82F6; }
    .business { color: #F59E0B; }
    .environment { color: #059669; }

    .border-sports { border-color: #F97316; }
    .border-technology { border-color: #A855F7; }
    .border-politics { border-color: #8B5CF6; }
    .border-entertainment { border-color: #EC4899; }
    .border-health { border-color: #10B981; }
    .border-science { border-color: #3B82F6; }
    .border-business { border-color: #F59E0B; }
    .border-environment { border-color: #059669; }

    /* Trending Concepts Bar (Ground.news style) */
    .trending-bar {
      padding: 12px 0;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 12px;
      overflow-x: auto;
      scrollbar-width: none;
      scroll-behavior: smooth;
    }

    .trending-bar::-webkit-scrollbar {
      display: none;
    }

    .trending-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 20px;
      opacity: 0.7;
    }

    .trending-concepts {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: nowrap;
      flex-direction: row-reverse; /* Scroll from left */
      justify-content: flex-end; /* Align to left */
      width: 100%;
    }

    .concept-pill {
      padding: 8px 14px;
      background: rgba(255, 255, 255, 0.05);
      color: #FFFFFF;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 600;
      white-space: nowrap;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      gap: 8px;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    body.light-mode .concept-pill:not(.following) {
      background: rgba(0, 0, 0, 0.04);
      color: #1D1D1F;
      border-color: rgba(0, 0, 0, 0.08);
    }

    .concept-pill:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.2);
      transform: translateY(-2px);
    }

    body.light-mode .concept-pill:not(.following):hover {
      background: rgba(0, 0, 0, 0.08);
      border-color: rgba(0, 0, 0, 0.15);
    }

    .concept-pill.following {
      background: linear-gradient(135deg, #10B981 0%, #059669 100%);
      color: white;
      border-color: transparent;
    }

    .concept-pill.following .follow-btn {
      background: rgba(255, 255, 255, 0.2);
    }

    .concept-pill.following .follow-btn:hover {
      background: rgba(255, 255, 255, 0.3);
    }

    .concept-count {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 20px;
      height: 20px;
      padding: 0 6px;
      background: rgba(255, 255, 255, 0.15);
      border-radius: 10px;
      font-size: 11px;
      font-weight: 700;
    }

    body.light-mode .concept-count {
      background: rgba(0, 0, 0, 0.1);
    }

    .concept-pill.active .concept-count {
      background: rgba(255, 255, 255, 0.3);
    }

    /* Follow Button */
    .follow-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s ease;
      border: none;
      color: inherit;
      flex-shrink: 0;
    }

    body.light-mode .follow-btn {
      background: rgba(0, 0, 0, 0.08);
    }

    .follow-btn:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: scale(1.1);
    }

    body.light-mode .follow-btn:hover {
      background: rgba(0, 0, 0, 0.15);
    }

    .concept-name {
      cursor: pointer;
    }

    /* Responsive */
    @media (max-width: 1024px) {
      .news-grid {
        grid-template-columns: repeat(8, 1fr);
      }

      .grid-item-large {
        grid-column: span 8;
      }

      .grid-item-medium,
      .grid-item-small {
        grid-column: span 4;
      }

      .grid-item-wide {
        grid-column: span 8;
      }

      .hero-title {
        font-size: 32px;
      }
    }

    /* Footer (Particle-inspired) */
    #siteFooter {
      background: #0A0A0A;
      border-top: 1px solid #1f1f1f;
      padding: 60px 40px 32px;
      margin-top: 80px;
    }

    body.light-mode #siteFooter {
      background: #1A1A1A;
      border-top-color: #2A2A2A;
    }

    .footer-content {
      max-width: 1600px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 2fr 3fr;
      gap: 80px;
      margin-bottom: 48px;
    }

    .footer-logo {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .footer-logo-img {
      height: 40px;
      width: auto;
      display: block;
      object-fit: contain;
      max-width: 200px;
    }

    .footer-tagline {
      font-family: 'Outfit', sans-serif;
      font-size: 14px;
      color: #8E8E93;
      line-height: 1.5;
      max-width: 300px;
    }

    body.light-mode .footer-tagline {
      color: #C0C0C0;
    }

    .footer-links {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 40px;
    }

    .footer-column {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .footer-column h4 {
      font-family: 'Outfit', sans-serif;
      font-size: 14px;
      font-weight: 700;
      color: white;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 8px;
    }

    body.light-mode .footer-column h4 {
      color: #E8E8E8;
    }

    .footer-column a {
      font-family: 'Outfit', sans-serif;
      font-size: 14px;
      color: #8E8E93;
      text-decoration: none;
      transition: color 0.2s;
    }

    body.light-mode .footer-column a {
      color: #B0B0B0;
    }

    .footer-column a:hover {
      color: #F97316;
    }

    .footer-bottom {
      max-width: 1600px;
      margin: 0 auto;
      padding-top: 32px;
      border-top: 1px solid #1f1f1f;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    body.light-mode .footer-bottom {
      border-top-color: #2A2A2A;
    }

    .footer-bottom p {
      font-family: 'Outfit', sans-serif;
      font-size: 13px;
      color: #6B6B6B;
    }

    body.light-mode .footer-bottom p {
      color: #8E8E93;
    }

    .footer-social {
      display: flex;
      gap: 20px;
    }

    .footer-social a {
      font-size: 18px;
      color: #8E8E93;
      text-decoration: none;
      transition: color 0.2s;
    }

    .footer-social a:hover {
      color: #F97316;
    }

    @media (max-width: 768px) {
      .main-container {
        margin-top: 70px;
        padding: 0 16px;
      }

      .page-title {
        font-size: 32px;
      }

      .page-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
      }

      .content-grid {
        margin-top: 24px;
      }

      .news-grid {
        grid-template-columns: 1fr;
        gap: 0;
      }

      .grid-item-large,
      .grid-item-medium,
      .grid-item-small,
      .grid-item-wide {
        grid-column: span 1;
        grid-row: span 1;
      }

      /* Make news cards compact horizontal on mobile - Apple News style */
      .news-card {
        display: flex;
        flex-direction: row-reverse;
        height: auto;
        min-height: 100px;
        border-radius: 0;
        border-bottom: 1px solid #2C2C2E;
        background: transparent;
        padding: 16px 0;
      }

      body.light-mode .news-card {
        border-bottom-color: #E8E8E8;
        background: transparent;
        box-shadow: none;
      }

      .news-card:hover {
        transform: none;
        box-shadow: none;
      }

      .news-card-image {
        width: 100px;
        min-width: 100px;
        height: 100px;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 8px;
        margin-left: 12px;
      }

      .grid-item-large .news-card-image {
        aspect-ratio: 1;
      }

      .news-card-content {
        padding: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
      }

      .news-card-category {
        font-size: 12px;
        margin-bottom: 6px;
        font-weight: 700;
      }

      .news-card-title {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.4;
        -webkit-line-clamp: 3;
        margin-bottom: 8px;
      }

      .grid-item-large .news-card-title {
        font-size: 18px;
        -webkit-line-clamp: 3;
      }

      /* Hide summaries on mobile */
      .news-card-summary {
        display: none !important;
      }

      .news-card-meta {
        font-size: 11px;
        gap: 8px;
      }

      /* MOBILE: Hide Subscribe and Theme Toggle - keep it simple */
      #topNav .subscribe-button,
      #topNav #themeToggle {
        display: none !important;
      }

      /* MOBILE: Login button and User Menu inherit their visibility from JavaScript */
      /* No !important - let JavaScript control which one shows */

      .hero-section {
        height: 280px;
        margin-bottom: 24px;
      }

      .hero-title {
        font-size: 20px;
      }

      .hero-overlay {
        padding: 16px;
      }

      .hero-category {
        font-size: 11px;
        padding: 4px 10px;
        margin-bottom: 8px;
      }

      .hero-meta {
        font-size: 12px;
      }

      /* Category cards - same style as main grid (image on right) */
      .category-card {
        display: flex;
        flex-direction: row-reverse;
        height: auto;
        min-height: 100px;
        border-radius: 0;
        border-bottom: 1px solid #2C2C2E;
        background: transparent;
        padding: 16px 0;
      }

      body.light-mode .category-card {
        border-bottom-color: #E8E8E8;
        background: transparent;
        box-shadow: none;
      }

      .category-card:hover {
        transform: none;
        box-shadow: none;
      }

      .category-card-image {
        width: 100px;
        min-width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 8px;
        margin-left: 12px;
      }

      .category-card-content {
        padding: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
      }

      .category-card-label {
        font-size: 12px;
        margin-bottom: 6px;
        font-weight: 700;
      }

      .category-card-title {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.4;
        -webkit-line-clamp: 3;
        margin-bottom: 8px;
      }

      .category-card-meta {
        font-size: 11px;
        gap: 8px;
      }

      /* Mobile: stack columns */
      .category-columns-grid {
        grid-template-columns: 1fr;
        gap: 32px;
      }

      /* First story in each category section: mini-hero style on mobile */
      .category-card-featured {
        position: relative;
        display: block !important;
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 16px;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
      }

      .category-card-featured-image {
        width: 100% !important;
        height: 280px !important;
        border-radius: 8px;
        margin: 0 !important;
      }

      .category-card-featured-content {
        position: absolute !important;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
        padding: 16px !important;
        display: block !important;
        flex-direction: column !important;
      }

      .category-card-featured-title {
        font-size: 18px !important;
        line-height: 1.3 !important;
        color: white !important;
        margin-bottom: 8px !important;
        -webkit-line-clamp: unset !important;
      }

      .category-card-featured-label {
        font-size: 11px !important;
        padding: 4px 10px;
        display: inline-block;
        margin-bottom: 8px !important;
      }

      .category-card-featured-meta {
        font-size: 12px !important;
        color: rgba(255,255,255,0.8) !important;
      }

      /* Mashable category featured cards (already existing) */
      .category-featured-card {
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 16px;
      }

      .category-featured-image {
        height: 200px;
        border-radius: 8px;
        margin-bottom: 0;
      }

      .category-featured-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
        padding: 16px;
      }

      .category-featured-title {
        font-size: 16px;
        line-height: 1.3;
        color: white !important;
        margin-bottom: 8px;
      }

      .category-featured-category {
        font-size: 11px;
        padding: 4px 10px;
        display: inline-block;
        margin-bottom: 8px;
      }

      .category-featured-meta {
        font-size: 12px;
        color: rgba(255,255,255,0.8) !important;
      }

      /* Text-only cards (for Mashable categories) - NO images on mobile */
      .category-text-card {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #2C2C2E;
      }

      body.light-mode .category-text-card {
        border-bottom-color: #E8E8E8;
      }

      .category-text-card:last-child {
        border-bottom: none;
      }

      /* Hide images in text-only cards */
      .category-text-image {
        display: none;
      }

      .category-text-title {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 8px;
        font-weight: 600;
      }

      .category-text-meta {
        font-size: 12px;
        color: #8E8E93;
      }

      .category-grid {
        grid-template-columns: 1fr;
        gap: 0;
      }

      .category-title {
        font-size: 28px;
        font-weight: 700;
      }

      /* Reduce spacing between category sections */
      .category-section {
        margin-bottom: 32px;
      }

      /* Hide sidebars on mobile */
      .sidebar {
        display: none;
      }

      /* Hide sidebar column on mobile */
      .content-grid {
        grid-template-columns: 1fr !important;
      }
    }

    /* Hamburger Menu */
    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 8px;
      z-index: 60;
    }

    .hamburger span {
      width: 24px;
      height: 2px;
      background: #8E8E93;
      transition: all 0.3s ease;
      border-radius: 2px;
    }

    body.light-mode .hamburger span {
      background: #1D1D1F;
    }

    .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Responsive: Show hamburger menu on smaller screens */
    @media (max-width: 1200px) {
      #topNav {
        padding: 0 16px;
        justify-content: space-between;
      }

      .hamburger {
        display: flex;
        order: 1;
      }

      #topNav .nav-logo {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
      }

      #topNav .nav-logo-img {
        height: 42px;
      }

      #themeToggle {
        order: 3;
        margin-left: 0;
      }

      #topNav .nav-links {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px 0;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
        border-bottom: 1px solid #1f1f1f;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
      }

      body.light-mode #topNav .nav-links {
        background: rgba(255, 255, 255, 0.98);
        border-bottom-color: #E8E8E8;
      }

      #topNav .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
      }

      #topNav .nav-link {
        padding: 16px 20px;
        width: 100%;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
        justify-content: flex-start;
      }

      /* Remove underline effect in mobile menu */
      #topNav .nav-link::after {
        display: none;
      }

      body.light-mode #topNav .nav-link {
        border-bottom-color: #E8E8E8;
      }

      #topNav .nav-link:last-child {
        border-bottom: none;
      }

      /* Category hover colors in mobile menu */
      #topNav .nav-link[href*="sports"]:hover {
        color: #F97316;
        background: rgba(249, 115, 22, 0.1);
      }
      #topNav .nav-link[href*="technology"]:hover {
        color: #A855F7;
        background: rgba(168, 85, 247, 0.1);
      }
      #topNav .nav-link[href*="politics"]:hover {
        color: #8B5CF6;
        background: rgba(139, 92, 246, 0.1);
      }
      #topNav .nav-link[href*="entertainment"]:hover {
        color: #EC4899;
        background: rgba(236, 72, 153, 0.1);
      }
      #topNav .nav-link[href*="health"]:hover {
        color: #10B981;
        background: rgba(16, 185, 129, 0.1);
      }
      #topNav .nav-link[href*="science"]:hover {
        color: #3B82F6;
        background: rgba(59, 130, 246, 0.1);
      }
      #topNav .nav-link[href*="business"]:hover {
        color: #F59E0B;
        background: rgba(245, 158, 11, 0.1);
      }
      #topNav .nav-link[href*="environment"]:hover {
        color: #059669;
        background: rgba(5, 150, 105, 0.1);
      }
      #topNav .nav-link[href*="for-you"]:hover {
        color: #06B6D4;
        background: rgba(6, 182, 212, 0.1);
      }

      /* Mobile dropdown styles - left aligned */
      #topNav .nav-dropdown {
        width: 100%;
      }

      #topNav .nav-dropdown-toggle {
        padding: 16px 20px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: flex-start;
      }

      body.light-mode #topNav .nav-dropdown-toggle {
        border-bottom-color: #E8E8E8;
      }

      #topNav .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 0;
        border: none;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        box-shadow: none;
      }

      body.light-mode #topNav .nav-dropdown-menu {
        background: rgba(0, 0, 0, 0.05);
      }

      #topNav .nav-dropdown.active .nav-dropdown-menu {
        display: block;
      }

      #topNav .nav-dropdown-item {
        padding: 12px 20px 12px 40px;
        font-size: 15px;
        text-align: left;
      }

      /* MOBILE: Hide Subscribe and Theme Toggle - keep it simple */
      #topNav .subscribe-button,
      #topNav #themeToggle {
        display: none !important;
      }

      /* MOBILE: Login button and User Menu visibility controlled by JavaScript */
      /* No CSS rules - let JavaScript handle display property */

      /* Hide old account link if it exists */
      #topNav > #accountLink {
        display: none !important;
      }

      /* Allow mobile Login/My Account to be shown in hamburger menu (JavaScript controls visibility) */
      #mobileLoginBtn,
      #mobileAccountLink {
        display: none; /* Hidden by default, JavaScript will set to 'block' when needed */
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      }

      /* When JavaScript sets display:block, allow it to show */
      #mobileLoginBtn[style*="display: block"],
      #mobileAccountLink[style*="display: block"] {
        display: block !important;
      }

      body.light-mode #topNav .nav-links #mobileLoginBtn,
      body.light-mode #topNav .nav-links #mobileAccountLink {
        border-bottom-color: #E8E8E8;
      }

      /* Footer mobile */
      #siteFooter {
        padding: 40px 20px 24px;
        margin-top: 60px;
      }

      .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
      }

      .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
      }

      .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
      }
    }

    /* Login Modal (Ground.news inspired) */
    .login-modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(8px);
      z-index: 9999;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .login-modal-overlay.active {
      display: flex;
      opacity: 1;
    }

    .login-modal {
      background: #1D1D1F;
      border-radius: 16px;
      max-width: 480px;
      width: 90%;
      padding: 48px 40px;
      position: relative;
      transform: scale(0.9);
      transition: transform 0.3s ease;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }

    .login-modal-overlay.active .login-modal {
      transform: scale(1);
    }

    body.light-mode .login-modal {
      background: #FFFFFF;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    }

    .login-modal-close {
      position: absolute;
      top: 20px;
      right: 20px;
      background: none;
      border: none;
      color: #8E8E93;
      font-size: 28px;
      cursor: pointer;
      padding: 0;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: color 0.2s;
      line-height: 1;
    }

    .login-modal-close:hover {
      color: #FFFFFF;
    }

    body.light-mode .login-modal-close:hover {
      color: #000000;
    }

    .login-modal-title {
      font-family: 'Outfit', sans-serif;
      font-size: 28px;
      font-weight: 700;
      color: #FFFFFF;
      margin-bottom: 16px;
      text-align: center;
    }

    body.light-mode .login-modal-title {
      color: #000000;
    }

    .login-modal-subtitle {
      font-family: 'Outfit', sans-serif;
      font-size: 16px;
      font-weight: 400;
      color: #8E8E93;
      margin-bottom: 32px;
      text-align: center;
      line-height: 1.5;
    }

    .login-modal-buttons {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .login-modal-button {
      width: 100%;
      padding: 16px 24px;
      border-radius: 12px;
      font-family: 'Outfit', sans-serif;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      text-decoration: none;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      border: none;
    }

    .login-modal-button.primary {
      background: #F97316;
      color: white;
    }

    .login-modal-button.primary:hover {
      background: #EA580C;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    }

    .login-modal-button.social-btn {
      background: white;
      color: #1D1D1F;
      border: 1px solid #E8E8E8;
      font-weight: 500;
    }

    .login-modal-button.social-btn:hover {
      background: #F5F5F5;
      border-color: #CCCCCC;
    }

    body.light-mode .login-modal-button.social-btn {
      background: white;
      border-color: #E8E8E8;
    }

    body.light-mode .login-modal-button.social-btn:hover {
      background: #F5F5F5;
    }

    /* Form Styles */
    .login-form {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .form-group label {
      font-family: 'Outfit', sans-serif;
      font-size: 14px;
      font-weight: 500;
      color: #FFFFFF;
    }

    body.light-mode .form-group label {
      color: #1D1D1F;
    }

    .form-group input {
      padding: 14px 16px;
      border-radius: 8px;
      border: 1px solid #2C2C2E;
      background: #000000;
      color: #FFFFFF;
      font-family: 'Outfit', sans-serif;
      font-size: 15px;
      transition: all 0.2s ease;
    }

    .form-group input:focus {
      outline: none;
      border-color: #F97316;
      box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    }

    .form-group input::placeholder {
      color: #6B6B6B;
    }

    body.light-mode .form-group input {
      background: #FFFFFF;
      border-color: #E8E8E8;
      color: #1D1D1F;
    }

    body.light-mode .form-group input:focus {
      border-color: #F97316;
    }

    .error-message {
      color: #FF3B30;
      font-size: 14px;
      text-align: center;
      display: none;
      padding: 8px;
      background: rgba(255, 59, 48, 0.1);
      border-radius: 6px;
    }

    .error-message.show {
      display: block;
    }

    .toggle-auth-mode {
      text-align: center;
      font-size: 14px;
      color: #8E8E93;
      margin-top: 16px;
    }

    .toggle-auth-mode a {
      color: #F97316;
      text-decoration: none;
      font-weight: 600;
      margin-left: 4px;
    }

    .toggle-auth-mode a:hover {
      text-decoration: underline;
    }

    .login-modal-divider {
      display: flex;
      align-items: center;
      gap: 16px;
      margin: 24px 0;
      color: #8E8E93;
      font-size: 14px;
    }

    .login-modal-divider::before,
    .login-modal-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: #2C2C2E;
    }

    body.light-mode .login-modal-divider::before,
    body.light-mode .login-modal-divider::after {
      background: #E8E8E8;
    }

    .login-modal-benefits {
      margin-top: 32px;
      padding-top: 24px;
      border-top: 1px solid #2C2C2E;
    }

    body.light-mode .login-modal-benefits {
      border-top-color: #E8E8E8;
    }

    .login-modal-benefit {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
      color: #8E8E93;
      font-size: 14px;
    }

    .login-modal-benefit:last-child {
      margin-bottom: 0;
    }

    .login-modal-benefit-icon {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 12px;
      flex-shrink: 0;
    }

    @media (max-width: 768px) {
      .login-modal {
        padding: 36px 24px;
        max-width: 90%;
      }

      .login-modal-title {
        font-size: 24px;
      }

      .login-modal-subtitle {
        font-size: 14px;
      }

      .login-modal-button {
        padding: 14px 20px;
        font-size: 15px;
      }
    }

    /* User Menu Dropdown */
    .user-menu {
      position: relative;
      display: flex;
      align-items: center;
    }

    .user-button {
      display: flex;
      align-items: center;
      gap: 10px;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 6px 12px;
      border-radius: 20px;
      transition: background 0.2s ease;
      color: inherit;
    }

    .user-button:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    body.light-mode .user-button:hover {
      background: rgba(0, 0, 0, 0.05);
    }

    .user-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 14px;
    }

    .user-name {
      font-size: 15px;
      font-weight: 500;
      color: #FFFFFF;
      white-space: nowrap;
    }

    body.light-mode .user-name {
      color: #1D1D1F;
    }

    .dropdown-arrow {
      opacity: 0.6;
      transition: transform 0.2s ease;
    }

    .user-button.active .dropdown-arrow {
      transform: rotate(180deg);
    }

    .user-dropdown-menu {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      background: rgba(28, 28, 30, 0.95);
      backdrop-filter: blur(20px);
      border-radius: 12px;
      padding: 8px;
      min-width: 200px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.2s ease;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
      z-index: 1000;
    }

    body.light-mode .user-dropdown-menu {
      background: rgba(255, 255, 255, 0.95);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    .user-dropdown-menu.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .user-dropdown-item {
      display: block;
      color: rgba(255, 255, 255, 0.7);
      text-decoration: none;
      padding: 10px 16px;
      border-radius: 8px;
      transition: all 0.2s ease;
      font-size: 15px;
    }

    .user-dropdown-item:hover {
      background: rgba(255, 255, 255, 0.1);
      color: #FFFFFF;
    }

    body.light-mode .user-dropdown-item {
      color: rgba(29, 29, 31, 0.7);
    }

    body.light-mode .user-dropdown-item:hover {
      background: rgba(0, 0, 0, 0.05);
      color: #1D1D1F;
    }

    .user-dropdown-divider {
      height: 1px;
      background: rgba(255, 255, 255, 0.1);
      margin: 8px 0;
    }

    body.light-mode .user-dropdown-divider {
      background: rgba(0, 0, 0, 0.1);
    }

    @media (max-width: 768px) {
      /* Show user menu on mobile, but only the avatar */
      .user-menu {
        display: flex !important;
      }

      /* Hide username text and dropdown arrow on mobile - just show avatar */
      .user-name,
      .dropdown-arrow {
        display: none !important;
      }

      /* Make user button more compact on mobile */
      .user-button {
        padding: 4px;
      }
    }
