:root {
      --bg: #0b0b0b;
      --card: #141414;
      --muted: #9ca3af;
      --accent: #9d031a;
      --glass: rgba(255, 255, 255, 0.05);
      --radius: 14px;
      --maxw: 1440px;
      --small: 13px;
    }

    * {
      box-sizing: border-box;
    }

    html,
    body {
      margin: 0;
      padding: 0;
      height: 100%;
      font-family: 'Inter', sans-serif;
      color: #f1f1f1;
      line-height: 1.6;
      background: #0a0a0a;
      overflow-x: hidden;
      scroll-behavior: smooth;
    }

    body {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      overflow-x: hidden;
    }



    /* Particle background canvas */
    #bg-canvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
      /* don't block clicks */
    }

    /* Optional: subtle gradient overlay for depth */
    body::after {
      content: "";
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: radial-gradient(circle at 30% 30%, rgba(182, 0, 24, 0.05), transparent 70%),
        radial-gradient(circle at 70% 70%, rgba(182, 0, 24, 0.05), transparent 70%);
      z-index: 0;
      pointer-events: none;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    a:hover,
    a:focus {
      color: #fff;
      outline: none;
    }

    :focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    .container {
      max-width: var(--maxw);
      margin: 0 auto;
      padding: 0 20px;
      width: 100%;
    }

    /* Header */
    header {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      padding: 20px 0;
    }

    /* New navbar styles - FIXED */
    .navbar {
      padding-top: 15px;
      padding-bottom: 15px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 20px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 600;
      font-size: 20px;
      flex-shrink: 0;
    }

    .brand-text {
      color: #fff;
      white-space: nowrap;
    }

    .main-nav {
      display: flex;
      align-items: center;
      gap: 30px;
      flex: 1;
      justify-content: space-between;
      min-width: 0;
    }

    .nav-categories {
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
    }

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

    .dropdown-trigger {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 12px 16px;
      border-radius: 8px;
      font-weight: 500;
      color: var(--muted);
      transition: all 0.3s ease;
      text-decoration: none;
      cursor: pointer;
    }

    .dropdown-trigger:hover,
    .nav-dropdown:hover .dropdown-trigger {
      color: var(--accent);
      background: rgba(182, 0, 24, 0.1);
    }

    .dropdown-arrow {
      font-size: 12px;
      transition: transform 0.3s ease;
      color: var(--muted);
    }

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

    .dropdown-menu {
      position: absolute;
      top: calc(100% + 4px);
      left: 0;
      background: linear-gradient(135deg, rgba(15, 15, 15, 0.98), rgba(8, 8, 8, 0.98));
      backdrop-filter: blur(20px);
      border: 1px solid rgba(182, 0, 24, 0.3);
      border-radius: 20px;
      padding: 20px;
      margin-top: 0;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-15px) scale(0.95);
      transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
      box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(182, 0, 24, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
      z-index: 1000;
      display: grid;
      gap: 16px;
      pointer-events: none;
    }

    /* Weapons dropdown - large with 6 columns */
    .dropdown-menu.weapons-dropdown {
      min-width: 1400px;
      max-width: 1600px;
      grid-template-columns: repeat(6, 1fr);
    }

    /* Knives & Gloves dropdown - medium with 2 columns */
    .dropdown-menu.knives-gloves-dropdown {
      min-width: 500px;
      max-width: 600px;
      grid-template-columns: repeat(2, 1fr);
    }

    /* Stickers dropdown - medium with 2 columns */
    .dropdown-menu.stickers-dropdown {
      min-width: 500px;
      max-width: 600px;
      grid-template-columns: repeat(2, 1fr);
    }

    /* Cases dropdown - medium with 2 columns */
    .dropdown-menu.cases-dropdown {
      min-width: 500px;
      max-width: 600px;
      grid-template-columns: repeat(2, 1fr);
    }

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

    /* Extend hover area to prevent flickering */
    .nav-dropdown::after {
      content: '';
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      height: 8px;
      z-index: 999;
    }

    .dropdown-section {
      display: flex;
      flex-direction: column;
      gap: 3px;
      min-width: 200px;
      max-width: 220px;
    }

    .dropdown-section h4 {
      font-size: 12px;
      font-weight: 600;
      color: var(--accent);
      text-transform: none;
      letter-spacing: 0.5px;
      margin: 0 0 8px 0;
      padding: 6px 10px;
      background: transparent;
      border-radius: 6px;
      position: relative;
      border: none;
    }

    .dropdown-section h4::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
    }

    .dropdown-section h4::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3));
      border-radius: 0 0 8px 8px;
    }

    .dropdown-section:hover h4::before {
      opacity: 1;
    }

    .dropdown-section a {
      display: flex;
      align-items: center;
      gap: 12px;
      color: rgba(255, 255, 255, 0.85);
      text-decoration: none;
      padding: 12px 16px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 500;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(255, 255, 255, 0.05);
      margin-bottom: 4px;
    }

    .dropdown-section a::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(182, 0, 24, 0.3), transparent);
      transition: left 0.6s ease;
      z-index: 0;
    }

    .dropdown-section a:hover {
      color: #fff;
      background: linear-gradient(135deg, rgba(182, 0, 24, 0.2), rgba(182, 0, 24, 0.1));
      transform: translateX(6px);
      border-color: rgba(182, 0, 24, 0.3);
      box-shadow: 0 4px 15px rgba(182, 0, 24, 0.3);
    }

    .dropdown-section a:hover::before {
      left: 100%;
    }

    /* Item images */
    .dropdown-item-image {
      width: 40px;
      height: 28px;
      background: linear-gradient(135deg, rgba(182, 0, 24, 0.2), rgba(255, 255, 255, 0.1));
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      flex-shrink: 0;
      border: 1px solid rgba(255, 255, 255, 0.1);
      position: relative;
      overflow: hidden;
    }

    .dropdown-item-image::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: conic-gradient(from 0deg, transparent, rgba(182, 0, 24, 0.3), transparent);
      animation: rotate 3s linear infinite;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .dropdown-section a:hover .dropdown-item-image::before {
      opacity: 1;
    }

    @keyframes rotate {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    .dropdown-item-content {
      display: flex;
      flex-direction: column;
      gap: 2px;
      flex: 1;
      z-index: 1;
      position: relative;
    }

    .dropdown-item-name {
      font-weight: 600;
      color: inherit;
      line-height: 1.2;
    }

    .dropdown-item-desc {
      font-size: 11px;
      color: rgba(255, 255, 255, 0.5);
      font-weight: 400;
      line-height: 1.1;
    }

    @keyframes sparkle {
      0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
      50% { opacity: 0.7; transform: translateY(-50%) scale(1.1); }
    }

    .dropdown-section h4 {
      font-size: 13px;
      font-weight: 600;
      color: var(--accent);
      text-transform: none;
      letter-spacing: 0.5px;
      margin: 0 0 12px 0;
      padding: 8px 14px;
      background: transparent;
      border-radius: 8px;
      position: relative;
      border: none;
    }

    .dropdown-section h4::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
    }

    .dropdown-section h4::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3));
      border-radius: 0 0 8px 8px;
    }

    .dropdown-section:hover h4::before {
      opacity: 1;
    }

    .dropdown-section a {
      display: flex;
      align-items: center;
      gap: 12px;
      color: rgba(255, 255, 255, 0.85);
      text-decoration: none;
      padding: 12px 16px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 500;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid rgba(255, 255, 255, 0.05);
      margin-bottom: 4px;
    }

    .dropdown-section a::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(182, 0, 24, 0.3), transparent);
      transition: left 0.6s ease;
      z-index: 0;
    }

    .dropdown-section a:hover {
      color: #fff;
      background: linear-gradient(135deg, rgba(182, 0, 24, 0.2), rgba(182, 0, 24, 0.1));
      transform: translateX(6px);
      border-color: rgba(182, 0, 24, 0.3);
      box-shadow: 0 4px 15px rgba(182, 0, 24, 0.3);
    }

    .dropdown-section a:hover::before {
      left: 100%;
    }

    /* Item images */
    .dropdown-item-image {
      width: 40px;
      height: 28px;
      background: linear-gradient(135deg, rgba(182, 0, 24, 0.2), rgba(255, 255, 255, 0.1));
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      flex-shrink: 0;
      border: 1px solid rgba(255, 255, 255, 0.1);
      position: relative;
      overflow: hidden;
    }

    .dropdown-item-image::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: conic-gradient(from 0deg, transparent, rgba(182, 0, 24, 0.3), transparent);
      animation: rotate 3s linear infinite;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .dropdown-section a:hover .dropdown-item-image::before {
      opacity: 1;
    }

    @keyframes rotate {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    .dropdown-item-content {
      display: flex;
      flex-direction: column;
      gap: 2px;
      flex: 1;
      z-index: 1;
      position: relative;
    }

    .dropdown-item-name {
      font-weight: 600;
      color: inherit;
      line-height: 1.2;
    }

    .dropdown-item-desc {
      font-size: 11px;
      color: rgba(255, 255, 255, 0.5);
      font-weight: 400;
      line-height: 1.1;
    }

    @keyframes sparkle {
      0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
      50% { opacity: 0.7; transform: translateY(-50%) scale(1.1); }
    }

    /* Enhanced Navigation Effects */
    .dropdown-menu::before {
      content: '';
      position: absolute;
      top: -8px;
      left: 20px;
      width: 0;
      height: 0;
      border-left: 8px solid transparent;
      border-right: 8px solid transparent;
      border-bottom: 8px solid rgba(182, 0, 24, 0.2);
      z-index: 1001;
    }

    .dropdown-menu::after {
      content: '';
      position: absolute;
      top: -6px;
      left: 22px;
      width: 0;
      height: 0;
      border-left: 6px solid transparent;
      border-right: 6px solid transparent;
      border-bottom: 6px solid rgba(20, 20, 20, 0.98);
      z-index: 1002;
    }

    /* Glow effect for special items */
    .dropdown-section a[href*="karambit"],
    .dropdown-section a[href*="butterfly"],
    .dropdown-section a[href*="driver"],
    .dropdown-section a[href*="major"] {
      position: relative;
    }

    .dropdown-section a[href*="karambit"]::after,
    .dropdown-section a[href*="butterfly"]::after {
      content: '★';
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      color: #c41e3a;
      font-size: 10px;
      opacity: 0.7;
    }

    .dropdown-section a[href*="major"]::after {
      content: '🏆';
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 10px;
      opacity: 0.7;
    }

    /* Hover animations for entire dropdown */
    .nav-dropdown:hover .dropdown-menu {
      animation: dropdownSlideIn 0.4s ease-out;
    }

    @keyframes dropdownSlideIn {
      from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    /* Loading shimmer effect for dropdown items */
    .dropdown-section a:hover {
      background: linear-gradient(
        90deg,
        rgba(182, 0, 24, 0.1) 0%,
        rgba(182, 0, 24, 0.2) 50%,
        rgba(182, 0, 24, 0.1) 100%
      );
      background-size: 200% 100%;
      animation: shimmer 1.5s infinite;
    }

    @keyframes shimmer {
      0% { background-position: -200% 0; }
      100% { background-position: 200% 0; }
    }

    /* Enhanced mobile dropdown styling */
    @media (max-width: 768px) {
      .dropdown-menu::before,
      .dropdown-menu::after {
        display: none;
      }
      
      .nav-dropdown.active .dropdown-trigger {
        background: rgba(182, 0, 24, 0.15);
        color: var(--accent);
        border-radius: 12px 12px 0 0;
      }
      
      .nav-dropdown.active .dropdown-menu {
        border-top: none;
        border-radius: 0 0 12px 12px;
        box-shadow: 
          0 8px 16px rgba(0, 0, 0, 0.3),
          inset 0 1px 0 rgba(182, 0, 24, 0.2);
      }
    }
    /* Tablet responsive adjustments */
    @media (max-width: 1200px) {
      .dropdown-menu.weapons-dropdown {
        min-width: 900px;
        max-width: 1000px;
        grid-template-columns: repeat(4, 1fr);
      }
      
      .dropdown-menu.knives-gloves-dropdown,
      .dropdown-menu.stickers-dropdown,
      .dropdown-menu.cases-dropdown {
        min-width: 400px;
        max-width: 500px;
      }
    }

    /* Mobile dropdown adjustments */
    @media (max-width: 768px) {
      .nav-categories {
        flex-direction: column;
        gap: 8px;
        width: 100%;
      }
      
      .nav-dropdown {
        width: 100%;
      }
      
      .dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 16px 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
      }
      
      .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0;
        transform: none;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
        grid-template-columns: 1fr;
        padding: 0;
        background: rgba(15, 15, 15, 0.98);
        border-radius: 0 0 16px 16px;
        border-top: none;
        pointer-events: none;
        min-width: auto;
        max-width: none;
      }
      
      .nav-dropdown:hover .dropdown-menu,
      .nav-dropdown.active .dropdown-menu {
        opacity: 1;
        max-height: 500px;
        padding: 20px;
        pointer-events: auto;
      }
      
      .nav-dropdown::after {
        display: none;
      }
      
      .dropdown-section {
        margin-bottom: 20px;
      }
      
      .dropdown-section:last-child {
        margin-bottom: 0;
      }
      
      .dropdown-section a {
        padding: 16px;
        font-size: 15px;
      }
      
      .dropdown-item-image {
        width: 45px;
        height: 32px;
        font-size: 18px;
      }
    }

    .nav-item {
      padding: 8px 16px;
      border-radius: 8px;
      font-weight: 500;
      color: var(--muted);
      transition: all 0.3s;
      text-decoration: none;
    }

    .nav-item:hover {
      color: var(--accent);
      background: rgba(182, 0, 24, 0.1);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 15px;
      flex-shrink: 0;
    }

    .search-container {
      display: flex;
      align-items: center;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 8px;
      padding: 0;
      overflow: hidden;
    }

    .search-input {
      background: transparent;
      border: none;
      padding: 8px 12px;
      color: #fff;
      font-size: 14px;
      width: 200px;
    }

    .search-input::placeholder {
      color: var(--muted);
    }

    .search-input:focus {
      outline: none;
    }

    .search-btn {
      background: transparent;
      border: none;
      padding: 8px 12px;
      cursor: pointer;
      color: var(--muted);
      transition: color 0.3s;
    }

    .search-btn:hover {
      color: var(--accent);
    }

    /* Hero Banner */
    .hero-banner {
      text-align: center;
      padding: 60px 0;
      margin-bottom: 40px;
    }

    .hero-content h1 {
      font-size: 48px;
      font-weight: 800;
      margin-bottom: 16px;
      color: #fff;
    }

    .hero-content .highlight {
      color: var(--accent);
    }

    .hero-content p {
      font-size: 18px;
      color: var(--muted);
      margin-bottom: 30px;
    }

    .search-bar-large {
      display: flex;
      max-width: 500px;
      margin: 0 auto 40px;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .search-large {
      flex: 1;
      background: transparent;
      border: none;
      padding: 16px 20px;
      color: #fff;
      font-size: 16px;
    }

    .search-large::placeholder {
      color: var(--muted);
    }

    .search-large:focus {
      outline: none;
    }

    .search-btn-large {
      padding: 16px 24px;
      font-size: 16px;
      background: var(--accent);
      color: #fff;
      border: none;
      border-radius: 0 12px 12px 0;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.3s;
    }

    .search-btn-large:hover {
      background: #b00420;
      transform: scale(1.02);
    }

    .featured-stats {
      display: flex;
      justify-content: center;
      gap: 40px;
      margin-top: 40px;
    }

    /* Trending Section */
    .trending-section {
      margin-bottom: 60px;
      background: var(--card);
      border-radius: var(--radius);
      padding: 32px;
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .trending-section h2 {
      font-size: 28px;
      font-weight: 700;
      margin-bottom: 24px;
      color: #fff;
      text-align: center;
    }

    .trending-carousel {
      display: flex;
      gap: 16px;
      overflow-x: auto;
      padding: 8px;
      scrollbar-width: thin;
    }

    .trending-item {
      display: flex;
      align-items: center;
      gap: 16px;
      background: rgba(255, 255, 255, 0.03);
      border-radius: 12px;
      padding: 16px;
      min-width: 300px;
      border: 1px solid rgba(255, 255, 255, 0.05);
      transition: all 0.3s;
    }

    .trending-item:hover {
      transform: translateY(-2px);
      background: rgba(255, 255, 255, 0.05);
    }

    .trend-position {
      background: var(--accent);
      color: #fff;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 12px;
    }

    .trend-name {
      color: #fff;
      font-weight: 600;
      flex: 1;
    }

    .trend-price {
      color: var(--accent);
      font-weight: 700;
    }

    .trend-change {
      font-weight: 600;
      font-size: 14px;
    }

    .trend-change.positive {
      color: #00ff88;
    }

    .trend-change.negative {
      color: #c41e3a;
    }

    .stat-item {
      text-align: center;
    }

    .stat-number {
      font-size: 32px;
      font-weight: 800;
      color: var(--accent);
      margin-bottom: 4px;
    }

    .stat-label {
      font-size: 14px;
      color: var(--muted);
    }

    /* Categories Section */
    .categories-section {
      margin-bottom: 60px;
    }

    .categories-section h2 {
      font-size: 28px;
      font-weight: 700;
      margin-bottom: 30px;
      color: #fff;
    }

    .categories-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
    }

    .category-card {
      background: var(--card);
      border-radius: var(--radius);
      padding: 24px;
      display: flex;
      align-items: center;
      gap: 16px;
      transition: all 0.3s;
      text-decoration: none;
      color: inherit;
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .category-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 25px rgba(182, 0, 24, 0.3);
      border-color: var(--accent);
    }

    .category-card.popular {
      border-color: var(--accent);
      background: linear-gradient(135deg, rgba(182, 0, 24, 0.1), var(--card));
    }

    .category-icon {
      font-size: 32px;
      width: 60px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
    }

    .category-info {
      flex: 1;
    }

    .category-info h3 {
      font-size: 20px;
      font-weight: 600;
      margin: 0 0 4px 0;
      color: #fff;
    }

    .category-count {
      font-size: 14px;
      color: var(--muted);
    }

    .category-preview {
      text-align: right;
    }

    .preview-skin {
      font-size: 14px;
      color: var(--muted);
      margin-bottom: 2px;
    }

    .preview-price {
      font-size: 16px;
      font-weight: 600;
      color: var(--accent);
    }

    /* Featured Skins */
    .featured-skins {
      margin-bottom: 60px;
    }

    .featured-skins h2 {
      font-size: 28px;
      font-weight: 700;
      margin-bottom: 30px;
      color: #fff;
    }

    .skins-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
    }

    .skin-card {
      background: var(--card);
      border-radius: var(--radius);
      overflow: hidden;
      transition: all 0.3s;
      border: 1px solid rgba(255, 255, 255, 0.05);
      position: relative;
    }

    .skin-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }

    .skin-image {
      height: 160px;
      background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      color: var(--muted);
    }

    .rarity-indicator {
      position: absolute;
      top: 12px;
      left: 12px;
      width: 4px;
      height: 40px;
      border-radius: 2px;
    }

    .rarity-indicator.covert {
      background: #eb4b4b;
    }

    .rarity-indicator.classified {
      background: #d32ce6;
    }

    .rarity-indicator.restricted {
      background: #8847ff;
    }

    .rarity-indicator.knife {
      background: #c41e3a;
    }

    .skin-wear {
      position: absolute;
      top: 12px;
      right: 12px;
      background: rgba(0, 0, 0, 0.7);
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 12px;
      font-weight: 600;
      color: #fff;
    }

    .skin-info {
      padding: 20px;
    }

    .skin-info h3 {
      font-size: 18px;
      font-weight: 600;
      margin: 0 0 8px 0;
      color: #fff;
    }

    .skin-details {
      display: flex;
      gap: 8px;
      margin-bottom: 12px;
    }

    .rarity {
      font-size: 12px;
      padding: 2px 6px;
      border-radius: 4px;
      font-weight: 600;
    }

    .rarity.covert {
      background: rgba(235, 75, 75, 0.2);
      color: #eb4b4b;
    }

    .rarity.classified {
      background: rgba(211, 44, 230, 0.2);
      color: #d32ce6;
    }

    .rarity.restricted {
      background: rgba(136, 71, 255, 0.2);
      color: #8847ff;
    }

    .rarity.knife {
      background: rgba(157, 3, 26, 0.2);
      color: #c41e3a;
    }

    .collection {
      font-size: 12px;
      color: var(--muted);
    }

    .price-info {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .current-price {
      font-size: 18px;
      font-weight: 700;
      color: #fff;
    }

    .price-change {
      font-size: 14px;
      font-weight: 600;
      padding: 2px 6px;
      border-radius: 4px;
    }

    .price-change.positive {
      background: rgba(34, 197, 94, 0.2);
      color: #22c55e;
    }

    .price-change.negative {
      background: rgba(239, 68, 68, 0.2);
      color: #ef4444;
    }

    /* Market Trends */
    .market-trends {
      margin-bottom: 60px;
    }

    .market-trends h2 {
      font-size: 28px;
      font-weight: 700;
      margin-bottom: 30px;
      color: #fff;
    }

    .trends-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
    }

    .trend-card {
      background: var(--card);
      border-radius: var(--radius);
      padding: 24px;
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .trend-card h3 {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 16px;
      color: #fff;
    }

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

    .trend-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

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

    .trend-item span:first-child {
      color: #fff;
      font-size: 14px;
    }

    .trend-item .positive {
      color: #22c55e;
      font-weight: 600;
    }

    .trend-item .negative {
      color: #ef4444;
      font-weight: 600;
    }

    .trend-item .views {
      color: var(--muted);
      font-size: 12px;
    }

    /* Skin Detail Page Styles */
    .breadcrumb {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 20px 0;
      font-size: 14px;
    }

    .breadcrumb a {
      color: var(--muted);
      text-decoration: none;
    }

    .breadcrumb a:hover {
      color: var(--accent);
    }

    .breadcrumb span {
      color: var(--muted);
    }

    .breadcrumb span:last-child {
      color: #fff;
    }

    .skin-header {
      margin-bottom: 40px;
    }

    .skin-main-info {
      display: flex;
      gap: 40px;
      align-items: flex-start;
    }

    .skin-image-large {
      width: 400px;
      height: 300px;
      background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
      border-radius: var(--radius);
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      font-size: 18px;
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .skin-details-main {
      flex: 1;
    }

    .skin-details-main h1 {
      font-size: 36px;
      font-weight: 800;
      margin: 0 0 16px 0;
      color: #fff;
    }

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

    .weapon-type {
      font-size: 12px;
      padding: 4px 8px;
      border-radius: 4px;
      background: rgba(255, 255, 255, 0.1);
      color: var(--muted);
    }

    .price-section {
      margin-bottom: 32px;
    }

    .current-price-large {
      font-size: 48px;
      font-weight: 800;
      color: #fff;
      margin-bottom: 8px;
    }

    .price-change {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 12px;
    }

    .price-history-mini {
      display: flex;
      gap: 16px;
      font-size: 14px;
      color: var(--muted);
    }

    .quick-stats {
      display: flex;
      gap: 32px;
    }

    .stat {
      text-align: center;
    }

    .stat-label {
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 4px;
    }

    .stat-value {
      font-size: 20px;
      font-weight: 700;
      color: #fff;
    }

    /* Wear Conditions */
    .wear-conditions {
      margin-bottom: 40px;
    }

    .wear-conditions h2 {
      font-size: 24px;
      font-weight: 700;
      margin-bottom: 20px;
      color: #fff;
    }

    .wear-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
    }

    .wear-card {
      background: var(--card);
      border-radius: var(--radius);
      padding: 20px;
      text-align: center;
      border: 1px solid rgba(255, 255, 255, 0.05);
      transition: all 0.3s;
    }

    .wear-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(182, 0, 24, 0.2);
    }

    .wear-name {
      font-size: 16px;
      font-weight: 600;
      color: #fff;
      margin-bottom: 4px;
    }

    .wear-range {
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 12px;
    }

    .wear-price {
      font-size: 20px;
      font-weight: 700;
      color: var(--accent);
      margin-bottom: 4px;
    }

    .wear-change {
      font-size: 12px;
    }

    /* Price Chart */
    .price-chart-section {
      margin-bottom: 40px;
    }

    .price-chart-section h2 {
      font-size: 24px;
      font-weight: 700;
      margin-bottom: 20px;
      color: #fff;
    }

    .chart-container {
      background: var(--card);
      border-radius: var(--radius);
      padding: 40px;
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .chart-placeholder {
      text-align: center;
      padding: 60px 20px;
      position: relative;
    }

    .chart-line {
      width: 100%;
      height: 2px;
      background: linear-gradient(90deg, var(--accent), #22c55e, var(--accent));
      margin-bottom: 20px;
      border-radius: 1px;
    }

    .chart-info p {
      color: var(--muted);
      margin-bottom: 16px;
    }

    /* Similar Skins */
    .similar-skins {
      margin-bottom: 40px;
    }

    .similar-skins h2 {
      font-size: 24px;
      font-weight: 700;
      margin-bottom: 20px;
      color: #fff;
    }

    /* Skin Description */
    .skin-description {
      margin-bottom: 40px;
    }

    .skin-description h2 {
      font-size: 24px;
      font-weight: 700;
      margin-bottom: 20px;
      color: #fff;
    }

    .description-content {
      background: var(--card);
      border-radius: var(--radius);
      padding: 30px;
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .description-content p {
      color: var(--muted);
      line-height: 1.7;
      margin-bottom: 24px;
    }

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

    .fact-row {
      display: flex;
      justify-content: space-between;
      padding: 8px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .fact-row:last-child {
      border-bottom: none;
    }

    .fact-label {
      color: var(--muted);
      font-weight: 500;
    }

    .fact-value {
      color: #fff;
      font-weight: 600;
    }

    /* Category Listing Page Styles */
    .nav-item.active {
      color: var(--accent);
      background: rgba(182, 0, 24, 0.1);
    }

    .category-header {
      margin: 20px 0 40px;
      text-align: center;
    }

    .category-info-large h1 {
      font-size: 48px;
      font-weight: 800;
      margin-bottom: 12px;
      color: #fff;
    }

    .category-info-large p {
      font-size: 18px;
      color: var(--muted);
      margin-bottom: 16px;
    }

    .category-stats {
      font-size: 16px;
      color: var(--muted);
    }

    .category-stats strong {
      color: var(--accent);
    }

    /* Filters */
    .filters-section {
      background: var(--card);
      border-radius: var(--radius);
      padding: 24px;
      margin-bottom: 30px;
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .filters-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }

    .filters-header h3 {
      font-size: 18px;
      font-weight: 600;
      color: #fff;
      margin: 0;
    }

    .clear-filters {
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: var(--muted);
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.3s;
    }

    .clear-filters:hover {
      color: var(--accent);
      border-color: var(--accent);
    }

    .filters-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
    }

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

    .filter-group label {
      font-size: 14px;
      font-weight: 500;
      color: #fff;
    }

    .filter-select {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 8px;
      padding: 10px 12px;
      color: #fff;
      font-size: 14px;
      font-family: inherit;
    }

    .filter-select:focus {
      outline: none;
      border-color: var(--accent);
    }

    /* Listing */
    .skins-listing {
      margin-bottom: 40px;
    }

    .listing-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 24px;
    }

    .listing-header h2 {
      font-size: 24px;
      font-weight: 700;
      color: #fff;
      margin: 0;
    }

    .view-options {
      display: flex;
      gap: 8px;
    }

    .view-btn {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: var(--muted);
      padding: 8px 16px;
      border-radius: 6px;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.3s;
    }

    .view-btn.active,
    .view-btn:hover {
      color: var(--accent);
      border-color: var(--accent);
      background: rgba(182, 0, 24, 0.1);
    }

    .skin-info h3 a {
      color: inherit;
      text-decoration: none;
    }

    .skin-info h3 a:hover {
      color: var(--accent);
    }

    /* Load More */
    .load-more-section {
      text-align: center;
      margin-top: 40px;
      padding-top: 30px;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .load-more-btn {
      margin-bottom: 16px;
    }

    .results-info {
      color: var(--muted);
      font-size: 14px;
      margin: 0;
    }

    /* API Page Styles */
    .btn-primary.active {
      background: #aa162c;
      box-shadow: 0 4px 20px rgba(147, 0, 21, 0.5);
    }

    .btn-secondary {
      background: transparent;
      color: #fff;
      border: 2px solid rgba(255, 255, 255, 0.2);
      padding: 11px 16px;
      border-radius: 4px;
      font-weight: 600;
      font-family: inherit;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .btn-secondary:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    /* API Hero */
    .api-hero {
      text-align: center;
      padding: 60px 0;
      margin-bottom: 60px;
    }

    .api-hero-content h1 {
      font-size: 48px;
      font-weight: 800;
      margin-bottom: 16px;
      color: #fff;
    }

    .api-description {
      font-size: 20px;
      color: var(--muted);
      margin-bottom: 40px;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }

    .api-stats {
      display: flex;
      justify-content: center;
      gap: 60px;
      margin-bottom: 40px;
    }

    .api-stat {
      text-align: center;
    }

    .api-stat-number {
      font-size: 36px;
      font-weight: 800;
      color: var(--accent);
      margin-bottom: 8px;
    }

    .api-stat-label {
      font-size: 14px;
      color: var(--muted);
    }

    .api-cta {
      display: flex;
      justify-content: center;
      gap: 16px;
    }

    /* Quick Start */
    .quick-start {
      margin-bottom: 80px;
    }

    .quick-start h2 {
      font-size: 32px;
      font-weight: 700;
      margin-bottom: 40px;
      color: #fff;
      text-align: center;
    }

    .quick-start-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
    }

    .quick-start-step {
      display: flex;
      align-items: flex-start;
      gap: 20px;
      padding: 30px;
      background: var(--card);
      border-radius: var(--radius);
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .step-number {
      width: 50px;
      height: 50px;
      background: var(--accent);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      font-weight: 800;
      color: #fff;
      flex-shrink: 0;
    }

    .step-content h3 {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 8px;
      color: #fff;
    }

    .step-content p {
      color: var(--muted);
      margin: 0;
    }

    /* API Pricing */
    .api-pricing {
      margin-bottom: 80px;
    }

    .api-pricing h2 {
      font-size: 32px;
      font-weight: 700;
      margin-bottom: 40px;
      color: #fff;
      text-align: center;
    }

    .pricing-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
    }

    .pricing-card {
      background: var(--card);
      border-radius: var(--radius);
      padding: 32px;
      border: 1px solid rgba(255, 255, 255, 0.05);
      position: relative;
      transition: all 0.3s;
    }

    .pricing-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 25px rgba(182, 0, 24, 0.3);
    }

    .pricing-card.popular {
      border-color: var(--accent);
      background: linear-gradient(135deg, rgba(182, 0, 24, 0.1), var(--card));
    }

    .plan-badge {
      position: absolute;
      top: -12px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--accent);
      color: #fff;
      padding: 4px 16px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 600;
    }

    .pricing-header {
      text-align: center;
      margin-bottom: 24px;
    }

    .plan-name {
      font-size: 24px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 8px;
    }

    .plan-price {
      font-size: 48px;
      font-weight: 800;
      color: var(--accent);
    }

    .plan-period {
      font-size: 16px;
      color: var(--muted);
      font-weight: 400;
    }

    .plan-features {
      margin-bottom: 32px;
    }

    .feature {
      padding: 8px 0;
      color: #fff;
      font-size: 14px;
    }

    .feature-disabled {
      padding: 8px 0;
      color: var(--muted);
      font-size: 14px;
    }

    .plan-btn {
      width: 100%;
    }

    /* API Endpoints */
    .api-endpoints {
      margin-bottom: 80px;
    }

    .api-endpoints h2 {
      font-size: 32px;
      font-weight: 700;
      margin-bottom: 40px;
      color: #fff;
    }

    .endpoint-section {
      margin-bottom: 48px;
      background: var(--card);
      border-radius: var(--radius);
      padding: 32px;
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .endpoint-section h3 {
      font-size: 24px;
      font-weight: 600;
      margin-bottom: 20px;
      color: #fff;
    }

    .endpoint-card {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 24px;
      padding: 16px;
      background: rgba(255, 255, 255, 0.02);
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .endpoint-method {
      background: #22c55e;
      color: #fff;
      padding: 4px 12px;
      border-radius: 4px;
      font-weight: 600;
      font-size: 12px;
      min-width: 60px;
      text-align: center;
    }

    .endpoint-url {
      font-family: 'Courier New', monospace;
      color: var(--accent);
      font-weight: 600;
      flex: 1;
    }

    .endpoint-description {
      color: var(--muted);
      font-size: 14px;
    }

    .code-example, .response-example {
      margin-bottom: 24px;
    }

    .code-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #1a1a1a;
      padding: 12px 16px;
      border-radius: 8px 8px 0 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .code-header span {
      font-size: 14px;
      font-weight: 600;
      color: #fff;
    }

    .copy-btn {
      background: var(--accent);
      color: #fff;
      border: none;
      padding: 4px 12px;
      border-radius: 4px;
      font-size: 12px;
      cursor: pointer;
      transition: background 0.3s;
    }

    .copy-btn:hover {
      background: #aa162c;
    }

    pre {
      background: #0a0a0a;
      padding: 20px;
      border-radius: 0 0 8px 8px;
      overflow-x: auto;
      margin: 0;
    }

    code {
      font-family: 'Courier New', monospace;
      font-size: 13px;
      color: #f8f8f2;
      line-height: 1.5;
    }

    /* Parameters */
    .parameters {
      margin-top: 24px;
    }

    .parameters h4 {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 16px;
      color: #fff;
    }

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

    .param {
      display: grid;
      grid-template-columns: 120px 80px 1fr;
      gap: 16px;
      padding: 12px;
      background: rgba(255, 255, 255, 0.02);
      border-radius: 6px;
      align-items: center;
    }

    .param-name {
      font-family: 'Courier New', monospace;
      color: var(--accent);
      font-weight: 600;
    }

    .param-type {
      font-size: 12px;
      background: rgba(255, 255, 255, 0.1);
      padding: 2px 8px;
      border-radius: 4px;
      color: var(--muted);
    }

    .param-desc {
      color: var(--muted);
      font-size: 14px;
    }

    /* Rate Limits */
    .rate-limits {
      margin-bottom: 80px;
    }

    .rate-limits h2 {
      font-size: 32px;
      font-weight: 700;
      margin-bottom: 40px;
      color: #fff;
      text-align: center;
    }

    .guidelines-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 24px;
    }

    .guideline-card {
      background: var(--card);
      border-radius: var(--radius);
      padding: 24px;
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .guideline-card h3 {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 16px;
      color: #fff;
    }

    .guideline-card ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .guideline-card li {
      padding: 8px 0;
      color: var(--muted);
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .guideline-card li:last-child {
      border-bottom: none;
    }

    .guideline-card li strong {
      color: #fff;
    }

    .guideline-card code {
      background: rgba(255, 255, 255, 0.1);
      padding: 2px 6px;
      border-radius: 3px;
      font-size: 12px;
    }

    /* SDKs */
    .sdks {
      margin-bottom: 80px;
    }

    .sdks h2 {
      font-size: 32px;
      font-weight: 700;
      margin-bottom: 40px;
      color: #fff;
      text-align: center;
    }

    .sdk-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
    }

    .sdk-card {
      background: var(--card);
      border-radius: var(--radius);
      padding: 32px;
      text-align: center;
      border: 1px solid rgba(255, 255, 255, 0.05);
      transition: all 0.3s;
    }

    .sdk-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 25px rgba(182, 0, 24, 0.2);
    }

    .sdk-icon {
      font-size: 48px;
      margin-bottom: 16px;
    }

    .sdk-card h3 {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 12px;
      color: #fff;
    }

    .sdk-card p {
      color: var(--muted);
      margin-bottom: 20px;
    }

    .sdk-install {
      background: #0a0a0a;
      padding: 12px;
      border-radius: 6px;
      margin-bottom: 16px;
    }

    .sdk-install code {
      color: var(--accent);
      font-size: 14px;
    }

    .sdk-link {
      color: var(--accent);
      text-decoration: none;
      font-weight: 600;
      font-size: 14px;
    }

    .sdk-link:hover {
      text-decoration: underline;
    }

    /* Support */
    .api-support {
      margin-bottom: 80px;
    }

    .api-support h2 {
      font-size: 32px;
      font-weight: 700;
      margin-bottom: 40px;
      color: #fff;
      text-align: center;
    }

    .support-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
    }

    .support-card {
      background: var(--card);
      border-radius: var(--radius);
      padding: 32px;
      text-align: center;
      border: 1px solid rgba(255, 255, 255, 0.05);
      transition: all 0.3s;
    }

    .support-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 25px rgba(182, 0, 24, 0.2);
    }

    .support-card h3 {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 12px;
      color: #fff;
    }

    .support-card p {
      color: var(--muted);
      margin-bottom: 20px;
    }

    .support-link {
      color: var(--accent);
      text-decoration: none;
      font-weight: 600;
      font-size: 14px;
    }

    .support-link:hover {
      text-decoration: underline;
    }

    /* API Documentation Layout */
    main.api-container {
      display: flex !important;
      flex-direction: row !important;
      align-items: flex-start;
      max-width: var(--maxw);
      margin: 0 auto;
      padding: 20px;
      gap: 40px;
      flex: 1;
      position: relative;
      z-index: 1;
      width: 100%;
      box-sizing: border-box;
    }

    /* Override any container styles for API page */
    main.api-container {
      padding: 20px !important;
    }

    /* Ensure flex layout works */
    main.api-container > * {
      flex-shrink: 0;
    }

    main.api-container > .api-main-content {
      flex-shrink: 1;
      flex-grow: 1;
    }

    /* Sidebar Styles */
    main.api-container .api-sidebar {
      width: 280px;
      min-width: 280px;
      max-width: 280px;
      flex-shrink: 0;
      position: sticky;
      top: 100px;
      height: fit-content;
      max-height: calc(100vh - 120px);
      overflow-y: auto;
      background: var(--card);
      border-radius: var(--radius);
      border: 1px solid rgba(255, 255, 255, 0.05);
      z-index: 10;
      align-self: flex-start;
      order: 1;
    }

    .sidebar-content {
      padding: 24px;
    }

    .sidebar-header {
      margin-bottom: 24px;
      padding-bottom: 16px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-header h3 {
      font-size: 18px;
      font-weight: 700;
      color: #fff;
      margin: 0;
    }

    .sidebar-nav {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .nav-section {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .nav-section h4 {
      font-size: 14px;
      font-weight: 600;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin: 0 0 8px 0;
    }

    .nav-section ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .nav-section li {
      margin: 0;
    }

    .nav-link {
      display: block;
      padding: 8px 12px;
      color: var(--muted);
      text-decoration: none;
      font-size: 14px;
      border-radius: 6px;
      transition: all 0.2s ease;
      border-left: 3px solid transparent;
    }

    .nav-link:hover {
      color: #fff;
      background: rgba(255, 255, 255, 0.05);
      border-left-color: var(--accent);
    }

    .nav-link.active {
      color: var(--accent);
      background: rgba(182, 0, 24, 0.1);
      border-left-color: var(--accent);
    }

    /* Main Content Area */
    main.api-container .api-main-content {
      flex: 1;
      min-width: 0;
      width: calc(100% - 320px);
      padding-bottom: 40px;
      overflow-x: hidden;
      order: 2;
    }

    /* Content Sections */
    .content-section {
      margin-bottom: 60px;
      scroll-margin-top: 120px;
    }

    .section-header {
      margin-bottom: 40px;
      text-align: left;
    }

    .section-header h2 {
      font-size: 36px;
      font-weight: 800;
      margin-bottom: 12px;
      color: #fff;
    }

    .section-description {
      font-size: 18px;
      color: var(--muted);
      margin: 0;
      max-width: 600px;
    }

    /* Enhanced Quick Start */
    .quick-start-step {
      background: var(--card);
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: var(--radius);
      padding: 32px;
      display: flex;
      align-items: flex-start;
      gap: 24px;
      transition: all 0.3s ease;
    }

    .quick-start-step:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(182, 0, 24, 0.15);
    }

    .step-number {
      width: 60px;
      height: 60px;
      background: linear-gradient(135deg, var(--accent), #aa162c);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      font-weight: 800;
      color: #fff;
      flex-shrink: 0;
      box-shadow: 0 4px 15px rgba(182, 0, 24, 0.3);
    }

    .step-content {
      flex: 1;
    }

    .step-content h3 {
      font-size: 22px;
      font-weight: 700;
      margin-bottom: 12px;
      color: #fff;
    }

    .step-content p {
      color: var(--muted);
      margin-bottom: 16px;
      line-height: 1.6;
    }

    .step-action {
      margin-top: 16px;
    }

    .btn-small {
      padding: 8px 16px;
      font-size: 14px;
      font-weight: 600;
    }

    .step-code {
      background: #0a0a0a;
      padding: 16px;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      margin-top: 12px;
    }

    .step-code code {
      color: var(--accent);
      font-size: 13px;
      font-family: 'Courier New', monospace;
    }

    /* Enhanced Authentication Section */
    .auth-info {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 32px;
    }

    .auth-card {
      background: var(--card);
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: var(--radius);
      padding: 32px;
    }

    .auth-card h3 {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 16px;
      color: #fff;
    }

    .auth-card p {
      color: var(--muted);
      margin-bottom: 20px;
    }

    .auth-security {
      background: var(--card);
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-radius: var(--radius);
      padding: 32px;
    }

    .auth-security h3 {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 16px;
      color: #fff;
    }

    .security-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .security-list li {
      padding: 8px 0;
      color: var(--muted);
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      font-size: 14px;
    }

    .security-list li:last-child {
      border-bottom: none;
    }

    /* Enhanced Pricing */
    .plan-subtitle {
      font-size: 14px;
      color: var(--muted);
      margin-top: 8px;
    }

    /* Enhanced Endpoints */
    .endpoint-header {
      margin-bottom: 24px;
    }

    .endpoint-header h3 {
      font-size: 28px;
      font-weight: 700;
      margin-bottom: 8px;
      color: #fff;
    }

    .endpoint-header p {
      color: var(--muted);
      font-size: 16px;
      margin: 0;
    }

    .endpoint-method.get {
      background: #22c55e;
    }

    .endpoint-method.post {
      background: #3b82f6;
    }

    .endpoint-method.put {
      background: #f59e0b;
    }

    .endpoint-method.delete {
      background: #ef4444;
    }

    .endpoint-content {
      margin-top: 32px;
    }

    /* Tabs */
    .endpoint-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 24px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .tab-btn {
      background: transparent;
      border: none;
      padding: 12px 20px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      border-bottom: 2px solid transparent;
      transition: all 0.2s ease;
    }

    .tab-btn.active,
    .tab-btn:hover {
      color: var(--accent);
      border-bottom-color: var(--accent);
    }

    .tab-content {
      display: none;
    }

    .tab-content.active {
      display: block;
    }

    /* Enhanced Parameter Table */
    .param-table {
      display: grid;
      gap: 8px;
    }

    .param-row {
      display: grid;
      grid-template-columns: 140px 100px 80px 1fr;
      gap: 16px;
      padding: 16px;
      background: rgba(255, 255, 255, 0.02);
      border-radius: 8px;
      align-items: center;
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .param-row.header {
      background: rgba(182, 0, 24, 0.1);
      font-weight: 600;
      color: #fff;
      border-color: var(--accent);
    }

    .param-row .param-name {
      font-family: 'Courier New', monospace;
      color: var(--accent);
      font-weight: 600;
    }

    .param-row .param-type {
      font-size: 12px;
      background: rgba(255, 255, 255, 0.1);
      padding: 4px 8px;
      border-radius: 4px;
      color: var(--muted);
      text-align: center;
    }

    .param-row .param-required {
      font-size: 12px;
      font-weight: 600;
      text-align: center;
    }

    .param-row .param-desc {
      color: var(--muted);
      font-size: 14px;
    }

    /* Enhanced Code Blocks */
    .code-block {
      margin: 16px 0;
    }

    .copy-btn-small {
      background: none;
      border: none;
      color: var(--muted);
      cursor: pointer;
      font-size: 14px;
      padding: 4px;
      margin-left: 8px;
      transition: color 0.2s;
    }

    .copy-btn-small:hover {
      color: var(--accent);
    }

    /* Enhanced Guidelines */
    .card-icon {
      font-size: 32px;
      margin-bottom: 16px;
    }

    .rate-limits-card .rate-limit-table {
      margin: 16px 0;
    }

    .rate-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .rate-row:last-child {
      border-bottom: none;
    }

    .rate-row .plan-name {
      font-weight: 600;
      color: #fff;
    }

    .rate-row .rate-value {
      color: var(--accent);
      font-weight: 700;
    }

    .rate-info p {
      font-size: 13px;
      color: var(--muted);
      margin: 0;
    }

    .error-codes {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .error-row {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 8px 0;
    }

    .error-code {
      font-family: 'Courier New', monospace;
      font-weight: 700;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 12px;
      min-width: 40px;
      text-align: center;
    }

    .error-code.success {
      background: rgba(34, 197, 94, 0.2);
      color: #22c55e;
    }

    .error-code.client-error {
      background: rgba(239, 68, 68, 0.2);
      color: #ef4444;
    }

    .error-code.server-error {
      background: rgba(156, 163, 175, 0.2);
      color: #9ca3af;
    }

    .error-desc {
      color: var(--muted);
      font-size: 14px;
    }

    .best-practices-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .best-practices-list li {
      padding: 8px 0;
      color: var(--muted);
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      font-size: 14px;
      position: relative;
      padding-left: 20px;
    }

    .best-practices-list li:before {
      content: "→";
      position: absolute;
      left: 0;
      color: var(--accent);
      font-weight: bold;
    }

    .best-practices-list li:last-child {
      border-bottom: none;
    }

    /* Enhanced SDK Cards */
    .sdk-header {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 16px;
    }

    .sdk-info {
      flex: 1;
    }

    .sdk-info h3 {
      margin: 0 0 4px 0;
      font-size: 20px;
      font-weight: 600;
      color: #fff;
    }

    .sdk-badge {
      font-size: 10px;
      padding: 2px 8px;
      border-radius: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .sdk-badge.official {
      background: rgba(34, 197, 94, 0.2);
      color: #22c55e;
    }

    .sdk-badge.universal {
      background: rgba(59, 130, 246, 0.2);
      color: #3b82f6;
    }

    .sdk-features {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
      flex-wrap: wrap;
    }

    .feature-tag {
      font-size: 10px;
      padding: 2px 6px;
      background: rgba(255, 255, 255, 0.1);
      color: var(--muted);
      border-radius: 4px;
      font-weight: 500;
    }

    .sdk-install {
      display: flex;
      align-items: center;
      background: #0a0a0a;
      padding: 12px;
      border-radius: 6px;
      margin-bottom: 16px;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sdk-install code {
      flex: 1;
      color: var(--accent);
      font-size: 13px;
    }

    .sdk-links {
      display: flex;
      gap: 16px;
    }

    .sdk-link {
      color: var(--accent);
      text-decoration: none;
      font-weight: 500;
      font-size: 13px;
      transition: color 0.2s;
    }

    .sdk-link:hover {
      color: #aa162c;
      text-decoration: underline;
    }

    /* Enhanced Support Cards */
    .support-icon {
      font-size: 48px;
      margin-bottom: 16px;
    }

    .support-features {
      list-style: none;
      padding: 0;
      margin: 16px 0;
    }

    .support-features li {
      padding: 6px 0;
      color: var(--muted);
      font-size: 14px;
      position: relative;
      padding-left: 16px;
    }

    .support-features li:before {
      content: "✓";
      position: absolute;
      left: 0;
      color: var(--accent);
      font-weight: bold;
    }

    /* Changelog */
    .changelog-list {
      display: flex;
      flex-direction: column;
      gap: 32px;
    }

    .changelog-item {
      display: flex;
      gap: 24px;
      padding: 32px;
      background: var(--card);
      border-radius: var(--radius);
      border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .changelog-date {
      font-size: 14px;
      color: var(--muted);
      font-weight: 600;
      white-space: nowrap;
      padding-top: 4px;
    }

    .changelog-content {
      flex: 1;
    }

    .changelog-content h3 {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 12px;
      color: #fff;
    }

    .changelog-tags {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
    }

    .changelog-tags span {
      font-size: 10px;
      padding: 2px 8px;
      border-radius: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .tag-new {
      background: rgba(34, 197, 94, 0.2);
      color: #22c55e;
    }

    .tag-improvement {
      background: rgba(59, 130, 246, 0.2);
      color: #3b82f6;
    }

    .tag-fix {
      background: rgba(245, 158, 11, 0.2);
      color: #f59e0b;
    }

    .tag-breaking {
      background: rgba(239, 68, 68, 0.2);
      color: #ef4444;
    }

    .changelog-content ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .changelog-content li {
      padding: 6px 0;
      color: var(--muted);
      font-size: 14px;
      position: relative;
      padding-left: 16px;
    }

    .changelog-content li:before {
      content: "•";
      position: absolute;
      left: 0;
      color: var(--accent);
      font-weight: bold;
    }

    /* Dropdown Image Styling */
    .dropdown-item-image img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      filter: brightness(1.2) contrast(1.1);
      transition: all 0.3s ease;
      z-index: 2;
      position: relative;
    }

    .dropdown-section a:hover .dropdown-item-image img {
      filter: brightness(1.4) contrast(1.2) saturate(1.2);
      transform: scale(1.1);
    }

    /* Responsive Design */
    @media (max-width: 1200px) {
      .api-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
      }

      .api-sidebar {
        width: 100%;
        position: static;
        order: 2;
        max-height: none;
      }

      .api-main-content {
        order: 1;
      }

      .auth-info {
        grid-template-columns: 1fr;
      }

      .param-row {
        grid-template-columns: 1fr;
        gap: 8px;
      }

      .param-row.header {
        display: none;
      }

      .changelog-item {
        flex-direction: column;
        gap: 16px;
      }
    }

    @media (max-width: 768px) {
      .api-container {
        padding: 0 16px;
      }

      .section-header h2 {
        font-size: 28px;
      }

      .quick-start-step {
        flex-direction: column;
        text-align: center;
        gap: 16px;
      }

      .api-stats {
        flex-direction: column;
        gap: 20px;
      }

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

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

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

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 600;
      font-size: 20px;
    }

    /* Responsive navbar styles */
    @media (max-width: 768px) {
      .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
      }
      
      .brand {
        order: -1;
        margin-bottom: 10px;
      }
      
      .main-nav {
        width: 100%;
        flex-direction: column;
        gap: 15px;
      }
      
      .nav-categories {
        justify-content: center;
        flex-wrap: wrap;
      }
      
      .nav-actions {
        width: 100%;
        justify-content: center;
      }

      /* Trending section mobile styles */
      .trending-carousel {
        flex-direction: column;
      }

      .trending-item {
        min-width: auto;
      }
    }

    .logo {
      width: 48px;
      height: 48px;
      border-radius: var(--radius);
      background: var(--accent);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-weight: 800;
      font-size: 20px;
      box-shadow: 0 0 20px rgba(182, 0, 24, 0.7);
    }

    nav {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    nav a {
      padding: 8px 12px;
      border-radius: 8px;
      font-weight: 600;
      color: var(--muted);
      transition: color 0.3s, background 0.3s;
    }

    nav a.primary {
      background: var(--glass);
      color: #fff;
    }

    nav a:hover,
    nav a:focus {
      color: var(--accent);
    }
    
    .btn-primary {
      background: var(--accent);
      color: #fff;
      border: none;
      padding: 11px 16px;
      border-radius: 4px;
      font-weight: 600;
      font-family: inherit;
      text-transform: uppercase;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: all 0.3s ease;
    }

    .btn-primary::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
      transform: translate(-50%, -50%) scale(0);
      opacity: 0;
      transition: transform 0.6s ease-out, opacity 0.6s ease-out;
      border-radius: 50%;
      pointer-events: none;
      z-index: 0;
    }

    .btn-primary:hover::before,
    .btn-primary:focus::before {
      transform: translate(-50%, -50%) scale(1);
      opacity: 1;
    }

    .btn-primary:hover,
    .btn-primary:focus {
      background: #aa162c;
      box-shadow: 0 4px 20px rgba(147, 0, 21, 0.5);
    }


    /* Main */
    main {
      flex: 1;
      display: flex;
      flex-direction: column;
      width: 100%;
    }

    /* Hero */
    .hero {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      margin: 20px 0;
      /* Make hero full height if needed */
      min-height: 300px;
      /* adjust as desired */
      align-items: stretch;
      /* ensure children stretch vertically */
    }

    .hero-left {
      flex: 2;
      min-width: 280px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      /* center vertically for better balance */
      padding: 40px 30px;
      /* add inner padding for breathing room */
      gap: 24px;
      /* space between children elements */
    }

    .hero-right {
      flex: 1;
      /* 1/3 of available height */
      min-width: 280px;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
    }

    .hero-left h2 {
      font-size: 36px;
      margin: 0;
      /* remove default bottom margin */
      line-height: 1.3;
      /* tighter line-height for readability */
      position: relative;
    }


    .hero-left p {
      color: var(--muted);
      font-size: 17px;
      line-height: 1.6;
      margin: 0;
      position: relative;
    }

    .cta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
    }

    .muted {
      color: var(--muted);
      font-size: var(--small);
    }

    /* Panel */
    .panel {
      min-width: 280px;
      background: var(--card);
      padding: 20px;
      border-radius: var(--radius);
      box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
    }

    .metrics {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 10px;
    }

    .metric {
      flex: 1 1 100px;
      background: #1a1a1a;
      padding: 8px;
      border-radius: 8px;
      text-align: center;
    }

    .metric .num {
      font-weight: 800;
      font-size: 16px;
    }

    pre.code {
      background: #1a1a1a;
      padding: 12px;
      border-radius: 10px;
      font-family: monospace;
      font-size: 12px;
      color: #f9fafb;
      overflow-x: auto;
      margin-top: 15px;
      position: relative;
    }

    /* Pricing */
    section.pricing {
      text-align: center;
      margin: 0 0 20px 0;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      /* spread cards evenly */
      gap: 20px;
      width: 100%;
    }



    .pricing .card {
      background: linear-gradient(145deg, #1a1a1a, #121212);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: var(--radius);
      padding: 20px;
      flex: 1 1 calc(25% - 15px);
      /* four cards per row, minus gap */
      min-width: 200px;
      /* prevent too small on narrow screens */
      display: flex;
      flex-direction: column;
      gap: 10px;
      transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
      position: relative;
    }

    .pricing .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 25px rgba(182, 0, 24, 0.5);
      border-color: var(--accent);
    }

    .card-header {
      margin-bottom: 10px;
      display: flex;
      flex-direction: column;
      /* stack tags and price vertically */
      align-items: center;
      /* center everything horizontally */
      gap: 6px;
      /* space between elements */
      position: relative;
    }

    /* normal tag */
    .tag {
      display: inline-block;
      padding: 4px 10px;
      border-radius: 999px;
      font-weight: 700;
      font-size: 20px;
      color: var(--accent);
    }

    .tag-highlight {
      position: absolute;
      top: -12px;
      /* slightly above card */
      left: 50%;
      transform: translateX(-50%);
      padding: 4px 10px;
      border-radius: 999px;
      font-weight: 700;
      font-size: 12px;
      background: var(--accent);
      color: #fff;
    }

    .price .duration {
      font-weight: 400;
      font-size: 12px;
      color: var(--muted);
    }

    .list {
      list-style: none;
      padding: 0;
      margin-top: 10px;
      color: #fff;
      font-size: 13px;
    }

    .list li {
      padding: 6px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .pricing-pro {
      background: linear-gradient(135deg, #b60018, #930015);
      color: #fff;
    }

    /* Speed Highlight */
    .speed-highlight {
      padding: 32px 20px;
      background: linear-gradient(135deg, rgba(182, 0, 24, 0.2), rgba(0, 0, 0, 0.6));
      border-radius: var(--radius);
      text-align: center;
      margin-bottom: 60px;
    }

    .speed-highlight .big {
      font-size: 32px;
      font-weight: 800;
      color: var(--accent);
      margin-bottom: 12px;
    }

    .speed-highlight h2 {
      font-size: 24px;
    }

    footer {
      padding: 40px 20px;
      background: transparent;
      color: var(--muted);
      font-size: 13px;
      z-index: 1;
      position: relative;
      margin-top: auto;
    }

    .footer-container {
      max-width: var(--maxw);
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 20px;
      align-items: center;
      text-align: center;
    }

    .footer-brand {
      font-weight: 700;
      color: #fff;
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 18px;
    }

    .footer-brand .logo {
      width: 32px;
      height: 32px;
      background: var(--accent);
      border-radius: var(--radius);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 800;
      color: #fff;
      box-shadow: 0 0 12px rgba(182, 0, 24, 0.6);
    }

    .footer-links {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .footer-links a {
      color: var(--muted);
      font-weight: 500;
      transition: color 0.3s;
    }

    .footer-links a:hover {
      color: #fff;
    }

    .footer-meta {
      display: flex;
      flex-direction: column;
      gap: 22px;
      align-items: center;
      font-size: var(--small);
    }

    .socials {
      display: flex;
      gap: 12px;
    }

    .socials a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: rgba(255,255,255,0.05);
      transition: all 0.3s;
    }

    .socials a:hover {
      background: var(--accent);
      transform: translateY(-2px);
    }

    .socials svg {
      width: 14px;
      height: 14px;
      fill: currentColor;
      color: #fff;
    }

    /* Responsive */
    @media (max-width: 992px) {
      .hero-left h2 {
        font-size: 26px;
      }

      .hero-left p {
        font-size: 15px;
      }

      .panel {
        flex: 1 1 100%;
      }
    }

    @media (max-width: 768px) {
      .hero {
        flex-direction: column;
      }

      .hero-left,
      .hero-right {
        width: 100%;
      }

      .hero-left h2 {
        font-size: 24px;
      }

      .cta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
      }

      .pricing .card {
        width: 90%;
      }

      .speed-highlight .big {
        font-size: 28px;
      }

      .speed-highlight h2 {
        font-size: 20px;
      }
    }

    @media (max-width: 480px) {
      header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
      }

      nav {
        width: 100%;
        justify-content: space-between;
      }

      .hero-left h2 {
        font-size: 20px;
      }

      .hero-left p {
        font-size: 14px;
      }

      .pricing .card {
        width: 100%;
      }

      .speed-highlight .big {
        font-size: 24px;
      }

      .speed-highlight h2 {
        font-size: 18px;
      }
    }

    .live {
      position: relative;
      font-weight: 800;
      color: var(--accent);
    }

    .live .dot {
      display: inline-block;
      width: 10px;
      height: 10px;
      background: var(--accent);
      border-radius: 50%;
      margin-left: 6px;
      animation: pulse 1.2s infinite;
      vertical-align: middle;
    }

    @keyframes pulse {
      0% {
        transform: scale(1);
        opacity: 1;
      }

      50% {
        transform: scale(1.5);
        opacity: 0.6;
      }

      100% {
        transform: scale(1);
        opacity: 0.9;
      }
    }


    /* Login page styles */
    .login-section {
      min-height: 80vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px 0;
    }

    .login-container {
      width: 100%;
      max-width: 400px;
    }

    .login-card {
      background: var(--card);
      border-radius: var(--radius);
      padding: 40px;
      border: 1px solid rgba(255, 255, 255, 0.05);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .login-card h1 {
      text-align: center;
      margin-bottom: 8px;
      color: #fff;
      font-size: 28px;
      font-weight: 700;
    }

    .login-subtitle {
      text-align: center;
      color: var(--muted);
      margin-bottom: 32px;
      font-size: 14px;
    }

    .login-form {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

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

    .form-group label {
      color: #fff;
      font-weight: 500;
      font-size: 14px;
    }

    .form-group input {
      padding: 12px 16px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 8px;
      color: #fff;
      font-size: 14px;
      transition: all 0.3s;
    }

    .form-group input:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 2px rgba(157, 3, 26, 0.2);
    }

    .btn-login {
      width: 100%;
      padding: 14px;
      margin-top: 8px;
    }

    .login-footer {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-top: 24px;
      font-size: 14px;
    }

    .login-footer a {
      color: var(--accent);
      text-decoration: none;
    }

    .login-footer a:hover {
      text-decoration: underline;
    }

    .login-footer span {
      color: var(--muted);
    }
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
  transition: opacity 0.3s ease;
}

.modal-content {
  background: var(--card);
  padding: 30px;
  border-radius: var(--radius);
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s, color 0.3s;
  padding: 0;
  line-height: 1;
  text-align: center;
}

.modal-close:hover {
  color: #9d031a;
}

.modal h2 {
  margin-top: 0;
  color: #fff;
  font-size: 24px;
}

.modal p.muted {
  color: var(--muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(157, 3, 26, 0.3);
}

.form-group textarea {
  resize: vertical;
}

/* === ENHANCED HOMEPAGE COMPONENTS === */

/* Modern Hero Section */
.hero-modern {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(157, 3, 26, 0.15) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(157, 3, 26, 0.1) 1px, transparent 1px);
  background-size: 60px 60px, 40px 40px;
  animation: patternMove 20s linear infinite;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(157, 3, 26, 0.2) 0%, transparent 70%);
  filter: blur(60px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(157, 3, 26, 0.15), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(157, 3, 26, 0.3);
  padding: 16px 28px;
  border-radius: 50px;
  margin-bottom: 40px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  animation: badgeFloat 6s ease-in-out infinite;
}

/* Adjust hero badge position for larger screens */
@media (min-width: 1440px) {
  .hero-badge {
    transform: translateY(-20px);
  }
}

@media (min-width: 1600px) {
  .hero-badge {
    transform: translateY(-30px);
  }
}

.badge-pulse {
  width: 10px;
  height: 10px;
  background: #9d031a;
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(157, 3, 26, 0.7);
}

.hero-title {
  margin-bottom: 32px;
  line-height: 1.1;
}

.title-main {
  display: block;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.title-accent {
  display: block;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #9d031a 0%, #c41e3a 50%, #9d031a 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #9d031a 0%, #c41e3a 100%);
  color: #fff;
  padding: 18px 32px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  box-shadow: 0 8px 24px rgba(157, 3, 26, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-hero-primary:hover::before {
  left: 100%;
}

.btn-hero-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(157, 3, 26, 0.5);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 18px 32px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.4s ease;
}

.btn-hero-secondary:hover {
  background: rgba(157, 3, 26, 0.2);
  border-color: rgba(157, 3, 26, 0.5);
  transform: translateY(-4px);
}

.btn-icon {
  font-size: 1.2rem;
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-hero-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.feature-pill:hover {
  background: rgba(157, 3, 26, 0.1);
  border-color: rgba(157, 3, 26, 0.3);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1rem;
}

.hero-stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.stat-card-modern {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(157, 3, 26, 0.08));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.stat-card-modern::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, transparent, rgba(157, 3, 26, 0.5), transparent);
  background-size: 400% 400%;
  border-radius: 26px;
  z-index: -1;
  opacity: 0;
  animation: gradientRotate 6s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.stat-card-modern:hover::before {
  opacity: 1;
}

.stat-card-modern.featured {
  background: linear-gradient(135deg, rgba(157, 3, 26, 0.15), rgba(255, 255, 255, 0.08));
  border-color: rgba(157, 3, 26, 0.3);
}

.stat-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(157, 3, 26, 0.2);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
  opacity: 0.8;
}

.stat-content {
  margin-bottom: 12px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #9d031a;
  margin-bottom: 8px;
  display: block;
  text-shadow: 0 0 20px rgba(157, 3, 26, 0.3);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-trend {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: inline-block;
}

.stat-trend.positive {
  background: rgba(39, 174, 96, 0.2);
  color: #2ecc71;
}

/* Hero Animations */
@keyframes patternMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(157, 3, 26, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(157, 3, 26, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(157, 3, 26, 0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-modern {
    padding: 100px 0 60px;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .hero-features {
    flex-direction: column;
    align-items: center;
  }
}

/* Market Spotlight Section */
.market-spotlight {
  padding: 80px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, #9d031a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

.view-controls {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.time-filter {
  padding: 10px 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 50px;
}

.time-filter:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.time-filter.active {
  background: #9d031a;
  color: #fff;
  box-shadow: 0 4px 12px rgba(157, 3, 26, 0.4);
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.trending-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(157, 3, 26, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  flex-direction: column;
}

.trending-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #9d031a, #c41e3a, #7a0319, #c41e3a);
  background-size: 400% 400%;
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  animation: gradientRotate 4s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.trending-card:hover::before {
  opacity: 1;
}

.trending-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(157, 3, 26, 0.2);
}

.card-rank {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #9d031a, #c41e3a);
  color: #fff;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 28px;
  text-align: center;
}

.card-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex: 1;
  padding-right: 50px; /* Space for rank badge */
}

.skin-preview {
  flex-shrink: 0;
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skin-image-placeholder {
  width: 70px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(157, 3, 26, 0.3), rgba(255, 255, 255, 0.1));
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.skin-image-placeholder::before {
  content: '⚔️';
  font-size: 1.5rem;
  opacity: 0.6;
}

.skin-rarity {
  font-size: 0.65rem;
  text-align: center;
  padding: 3px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  width: 100%;
}

.skin-rarity.covert {
  background: rgba(235, 75, 75, 0.25);
  color: #eb4b4b;
  border: 1px solid rgba(235, 75, 75, 0.4);
}

.skin-rarity.knife {
  background: rgba(157, 3, 26, 0.25);
  color: #c41e3a;
  border: 1px solid rgba(157, 3, 26, 0.4);
}

.skin-rarity.classified {
  background: rgba(211, 44, 230, 0.25);
  color: #d32ce6;
  border: 1px solid rgba(211, 44, 230, 0.4);
}

.skin-rarity.restricted {
  background: rgba(136, 71, 255, 0.25);
  color: #8847ff;
  border: 1px solid rgba(136, 71, 255, 0.4);
}

.skin-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.skin-header {
  margin-bottom: 12px;
}

.skin-details h3 {
  font-size: 1.1rem;
  margin: 0 0 4px 0;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skin-collection {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.price-data {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.current-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #9d031a;
  flex-shrink: 0;
}

.price-change {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.price-change.mega-positive {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.3), rgba(46, 204, 113, 0.3));
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.price-change.positive {
  background: rgba(39, 174, 96, 0.25);
  color: #27ae60;
  border: 1px solid rgba(39, 174, 96, 0.4);
}

.price-change.negative {
  background: rgba(231, 76, 60, 0.25);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.4);
}

.volume-data {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-data::before {
  content: '�';
  font-size: 0.8rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.rank-badge {
  background: linear-gradient(135deg, #9d031a, #c41e3a);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.rarity-tag {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.rarity-tag.covert { background: rgba(235, 75, 75, 0.2); color: #eb4b4b; }
.rarity-tag.classified { background: rgba(211, 44, 230, 0.2); color: #d32ce6; }
.rarity-tag.restricted { background: rgba(136, 71, 255, 0.2); color: #8847ff; }

.skin-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 600;
}

.skin-collection {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.price-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.current-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #9d031a;
}

.price-change {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.positive { background: rgba(39, 174, 96, 0.2); color: #27ae60; }
.negative { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }
.mega-positive { 
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.3), rgba(46, 204, 113, 0.3)); 
  color: #2ecc71; 
  animation: pulse 2s infinite;
}

.market-metrics {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.volume-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-bar {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.volume-fill {
  height: 100%;
  background: linear-gradient(90deg, #9d031a, #c41e3a);
  border-radius: 2px;
  animation: fillAnimation 2s ease-out;
}

/* Weapon Categories Enhancement */
.weapon-categories-enhanced {
  padding: 80px 0;
}

.categories-header {
  text-align: center;
  margin-bottom: 48px;
}

.categories-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #9d031a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.categories-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}

.category-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: #9d031a;
  border-color: #9d031a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(157, 3, 26, 0.3);
}

.categories-enhanced-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.category-card-enhanced {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(157, 3, 26, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.category-card-enhanced::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #9d031a, #c41e3a, #9d031a, #c41e3a);
  background-size: 400% 400%;
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  animation: gradientRotate 4s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.category-card-enhanced:hover::before {
  opacity: 1;
}

.category-background {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.category-card-enhanced:hover .category-background {
  opacity: 0.1;
}

.category-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(157, 3, 26, 0.3) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(157, 3, 26, 0.3) 2px, transparent 2px);
  background-size: 40px 40px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.category-icon-large {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.category-badge {
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.category-badge.hot {
  background: linear-gradient(135deg, #9d031a, #c41e3a);
  color: #fff;
  animation: pulse 2s infinite;
}

.category-badge.legendary {
  background: linear-gradient(135deg, #9d031a, #c41e3a);
  color: #fff;
}

.category-content h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 600;
}

.category-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.category-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.stat {
  font-weight: 500;
}

.divider {
  color: rgba(255, 255, 255, 0.3);
}

.featured-skin {
  background: rgba(157, 3, 26, 0.1);
  padding: 12px;
  border-radius: 10px;
  border-left: 3px solid #9d031a;
  font-size: 0.85rem;
}

.featured-label {
  color: rgba(255, 255, 255, 0.6);
  margin-right: 8px;
}

.featured-name {
  color: #fff;
  font-weight: 500;
  margin-right: 8px;
}

.featured-price {
  color: #9d031a;
  font-weight: 600;
}

.category-arrow {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.category-card-enhanced:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(157, 3, 26, 0.2);
  border-color: rgba(157, 3, 26, 0.3);
}

.category-card-enhanced:hover .category-arrow {
  transform: translateY(-50%) translateX(8px);
  color: #9d031a;
}

/* Premium Showcase */
.premium-showcase {
  padding: 80px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, #9d031a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

.showcase-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(157, 3, 26, 0.1);
  border: 1px solid rgba(157, 3, 26, 0.3);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-filters:hover {
  background: rgba(157, 3, 26, 0.2);
  border-color: rgba(157, 3, 26, 0.5);
}

/* Advanced Filters Panel */
.filters-panel {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.95));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(157, 3, 26, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.filters-panel.active {
  max-height: 500px;
  opacity: 1;
}

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

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

.filter-group label {
  font-weight: 600;
  color: #9d031a;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  transition: color 0.3s ease;
}

.filter-checkboxes label:hover {
  color: #fff;
}

.filter-checkboxes input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #9d031a;
}

.price-range-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-range {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #9d031a;
  border-radius: 50%;
  cursor: pointer;
}

.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.float-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.float-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.float-input:focus {
  outline: none;
  border-color: #9d031a;
}

.collection-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.filter-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-clear-filters,
.btn-apply-filters {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-clear-filters {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

.btn-clear-filters:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.btn-apply-filters {
  background: linear-gradient(135deg, #9d031a, #c41e3a);
  border: none;
  color: #fff;
}

.btn-apply-filters:hover {
  background: linear-gradient(135deg, #c41e3a, #9d031a);
}

/* Enhanced Premium Grid */
.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

/* Enhanced Skin Cards */
.premium-skin-card {
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.8));
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.premium-skin-card.hidden {
  display: none;
}

.skin-image-enhanced {
  height: 140px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(157, 3, 26, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}

.weapon-type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #9d031a;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 4;
}

.btn-add-watchlist {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-add-watchlist:hover {
  background: rgba(157, 3, 26, 0.2);
  border-color: rgba(157, 3, 26, 0.5);
}

/* Enhanced Footer */
.showcase-footer {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.results-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 16px;
}

.items-per-page {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.items-per-page select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
}

.pagination-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.pagination-numbers {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.page-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 40px;
}

.page-btn:hover:not(:disabled) {
  background: rgba(157, 3, 26, 0.2);
  border-color: rgba(157, 3, 26, 0.5);
  color: #fff;
}

.page-btn.active {
  background: linear-gradient(135deg, #9d031a, #c41e3a);
  border-color: #9d031a;
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-dots {
  color: rgba(255, 255, 255, 0.5);
  padding: 0 8px;
}

.btn-load-more {
  background: linear-gradient(135deg, #9d031a, #c41e3a);
  border: none;
  color: #fff;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-load-more:hover {
  background: linear-gradient(135deg, #c41e3a, #9d031a);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(157, 3, 26, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .filters-grid {
    grid-template-columns: 1fr;
  }
  
  .premium-grid {
    grid-template-columns: 1fr;
  }
  
  .results-summary {
    flex-direction: column;
    text-align: center;
  }
  
  .pagination-numbers {
    justify-content: center;
  }
}

.sort-dropdown {
  position: relative;
}

.sort-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  min-width: 140px;
}

.view-toggles {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-toggle {
  padding: 8px 12px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.view-toggle.active {
  background: #9d031a;
  color: #fff;
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.premium-skin-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(157, 3, 26, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.premium-skin-card.legendary::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #c41e3a, #9d031a, #dc143c, #9d031a, #c41e3a);
  background-size: 400% 400%;
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  animation: gradientRotate 3s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.premium-skin-card.legendary:hover::before {
  opacity: 1;
}

.skin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.rarity-badge {
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.rarity-badge.covert { background: rgba(235, 75, 75, 0.3); color: #eb4b4b; }
.rarity-badge.classified { background: rgba(211, 44, 230, 0.3); color: #d32ce6; }
.rarity-badge.restricted { background: rgba(136, 71, 255, 0.3); color: #8847ff; }
.rarity-badge.contraband { background: rgba(255, 165, 0, 0.3); color: #ffa500; }
.rarity-badge.knife { background: rgba(157, 3, 26, 0.3); color: #c41e3a; }

.favorite-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.favorite-btn:hover, .favorite-btn.favorited {
  color: #9d031a;
  transform: scale(1.2);
}

.skin-visual {
  margin-bottom: 16px;
  position: relative;
}

.skin-image-enhanced {
  height: 120px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(157, 3, 26, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}

.skin-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transition: transform 0.3s ease;
}

.skin-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(157, 3, 26, 0.2), transparent 60%);
  z-index: 2;
}

.float-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 3;
}

.wear-condition {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.skin-info-enhanced h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: #fff;
  font-weight: 600;
}

.collection {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.price-section {
  margin-bottom: 16px;
}

.current-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #9d031a;
  margin-bottom: 8px;
  display: block;
}

.price-metrics {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.volume-info {
  color: rgba(255, 255, 255, 0.6);
}

.action-row {
  display: flex;
  gap: 12px;
}

.btn-view-details {
  flex: 1;
  background: linear-gradient(135deg, #9d031a, #c41e3a);
  border: none;
  padding: 12px;
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-view-details:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(157, 3, 26, 0.4);
}

.btn-quick-analyze {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-quick-analyze::before {
  content: '📈';
}

.btn-quick-analyze:hover {
  background: rgba(157, 3, 26, 0.2);
  border-color: rgba(157, 3, 26, 0.5);
}

.premium-skin-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(157, 3, 26, 0.2);
  border-color: rgba(157, 3, 26, 0.3);
}

.premium-skin-card:hover .skin-img {
  transform: scale(1.05);
}

.showcase-footer {
  text-align: center;
  padding-top: 32px;
}

.btn-load-more {
  background: linear-gradient(135deg, rgba(157, 3, 26, 0.2), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(157, 3, 26, 0.3);
  padding: 16px 32px;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

.btn-load-more:hover {
  background: linear-gradient(135deg, #9d031a, #c41e3a);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(157, 3, 26, 0.4);
}

.results-info {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Enhanced Component Animations */
@keyframes gradientRotate {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes slideIn {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes gradientMove {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fillAnimation {
  0% { width: 0%; }
  100% { width: 100%; }
}

@keyframes legendaryGlow {
  0% { background-position: -300% 0; }
  100% { background-position: 300% 0; }
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .hero-features {
    gap: 24px;
  }
  
  .feature-item {
    min-width: 140px;
    padding: 16px;
  }
  
  .hero-stats {
    gap: 32px;
  }
  
  .stat-card {
    padding: 20px 24px;
  }
  
  .spotlight-header,
  .section-header {
    flex-direction: column;
    text-align: center;
  }
  
  .showcase-controls,
  .spotlight-controls {
    justify-content: center;
  }
  
  .categories-enhanced-grid,
  .premium-grid {
    grid-template-columns: 1fr;
  }
  
  .category-card-enhanced {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .hero-title-enhanced {
    font-size: 2rem;
  }
  
  .hero-subtitle-enhanced {
    font-size: 1rem;
  }
  
  .categories-header h2,
  .section-title h2,
  .spotlight-title h2 {
    font-size: 2rem;
  }
  
  .premium-skin-card,
  .trending-card {
    padding: 20px;
  }
}