  /* ====================
     Hero Section
     ==================== */
  .materials-hero {
      position: relative;
      padding: 60px 0 40px;
      background: #000;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 500px;
  }
  
  /* Moving Background Marquee */
  .hero-marquee-wrapper {
      position: absolute;
      top: -10%;
      left: -10%;
      width: 120%;
      height: 120%;
      display: flex;
      justify-content: center;
      gap: 20px;
      /*transform: rotate(15deg) scale(1.1);*/
      opacity: 0.3; /* Slightly lower opacity for better text readability */
      z-index: 1;
      pointer-events: none;
      mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
      -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  }
  
  .marquee-column {
      display: flex;
      flex-direction: column;
      gap: 20px;
      width: 350px;
  }
  
  .marquee-content {
      display: flex;
      flex-direction: column;
      gap: 20px;
      animation: scrollUp 40s linear infinite;
  }
  
  .col-2 .marquee-content {
      animation-direction: reverse; /* Center column goes down */
      animation-duration: 45s;
  }
  
  .col-3 .marquee-content {
      animation-duration: 35s;
  }
  
  .marquee-content img,
  .marquee-content video {
      width: 100%;
      border-radius: 12px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.5);
      filter: grayscale(30%);
      transition: all 0.5s ease;
      object-fit: cover; /* Ensure video covers the area */
  }
  
  @keyframes scrollUp {
      0% { transform: translateY(0); }
      100% { transform: translateY(-50%); }
  }
  
  /* Overlay Gradient */
  .hero-overlay-gradient {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: radial-gradient(circle at 30% 50%, rgba(10,10,10,0.85) 0%, rgba(5,5,5,0.6) 100%); /* Adjusted gradient to focus darkness on left */
      z-index: 2;
  }
  
  /* Hero Flex Layout (Left Align) */
  .hero-flex-container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 40px;
      position: relative;
      z-index: 10;
      width: 100%;
  }
  
  .hero-content {
      flex: 1;
      max-width: 800px; /* Limit width for readability */
      text-align: left;
  }
  
  .hero-visual-spacer {
      flex: 1;
      /* Empty space for background to show through */
  }
  
  /* Typography Revert - Scaled Up */
  .tagline {
      background-color: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.1);
      display: inline-flex;
      align-items: center;
      gap: 8px; /* Matched index.html */
      padding: 6px 16px; /* Matched index.html */
      font-size: 14px;
      color: var(--accent-color);
      margin-bottom: 24px; /* Matched index.html */
      border-radius: 50px; /* Matched index.html */
      font-weight: 500; /* Matched index.html */
      letter-spacing: normal; /* Reset letter-spacing */
      text-transform: none; /* Reset text-transform */
  }
  
  .materials-hero h1 {
      font-size: 64px;
      line-height: 1.1;
      margin-bottom: 24px; /* Matched index.html */
      letter-spacing: -1px;
      font-weight: 800;
      text-shadow: none; /* Removed shadow to match index.html */
  }
  
  .materials-hero h1 .highlight {
      color: transparent; /* Matched index.html gradient text */
      background: linear-gradient(90deg, #fff, var(--accent-color));
      -webkit-background-clip: text;
      background-clip: text;
      display: inline;
      font-size: inherit;
      margin-top: 0;
      -webkit-text-fill-color: transparent; /* Needed for gradient text */
  }
  
  .materials-hero .description {
      font-size: 18px;
      color: var(--text-muted); /* Matched index.html */
      max-width: 650px;
      margin: 0 0 40px; /* Matched index.html */
      line-height: 1.6;
  }
  
  /* Search Box (Left Aligned) */
  .hero-search-wrapper {
      position: relative;
      max-width: 600px;
      margin: 0 0 30px; /* Reduced from 40px */
      display: flex;
      align-items: center;
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 12px; /* Slightly more rounded */
      padding: 8px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      transition: all 0.3s ease;
  }
  
  .hero-search-wrapper:focus-within {
      background: rgba(255, 255, 255, 0.12);
      border-color: var(--accent-color);
      transform: translateY(-2px);
      box-shadow: 0 15px 40px rgba(0, 229, 255, 0.15);
  }
  
  .search-icon {
      margin-left: 20px;
      color: rgba(255, 255, 255, 0.6);
      font-size: 20px;
  }
  
  .hero-search-wrapper input {
      flex: 1;
      background: transparent;
      border: none;
      color: #fff;
      font-size: 18px;
      padding: 15px 20px;
      outline: none;
      height: auto;
  }
  
  .hero-search-wrapper input::placeholder {
      color: rgba(255, 255, 255, 0.5);
  }
  
  .hero-search-btn {
      background: var(--accent-color);
      color: #000;
      border: none;
      padding: 14px 35px;
      border-radius: 8px;
      font-size: 18px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.3s ease;
  }
  
  .hero-search-btn:hover {
      background: #fff;
      transform: none; /* Simple hover */
      box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
  }
  
  /* ====================
     Hero Visual Enhancements (Glass Gallery)
     ==================== */
  .materials-hero .hero-visual {
      min-width: 460px; /* Widened for zig-zag layout */
      height: auto;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      padding: 20px 0;
      perspective: 1000px;
  }
  
  .glass-showcase-container {
      position: relative;
      width: 100%;
      max-width: 420px;
      display: flex;
      flex-direction: column;
      gap: 30px; /* Significant spacing to avoid stacking */
      transform-style: preserve-3d;
      transform: rotateY(-8deg) rotateX(2deg);
      transition: transform 0.5s ease-out;
  }
  
  .glass-showcase-container:hover {
      transform: rotateY(0deg) rotateX(0deg);
  }
  
  /* Background Glow */
  .glow-sphere {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 300px;
      height: 300px;
      background: radial-gradient(circle, rgba(0, 229, 255, 0.2) 0%, rgba(0,0,0,0) 70%);
      z-index: -1;
      pointer-events: none;
      animation: breathe 4s ease-in-out infinite;
  }
  
  /* Unified Hero Module Card - Cyber Glass Style */
  .hero-module-card {
      position: relative;
      width: 320px;
      display: flex;
      align-items: center;
      gap: 16px;
      /* Glass Effect */
      background: rgba(18, 18, 24, 0.65);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-top: 1px solid rgba(255, 255, 255, 0.15); /* Top highlight */
      border-radius: 20px;
      padding: 16px 20px;
      text-decoration: none;
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      box-shadow: 
          0 8px 32px rgba(0, 0, 0, 0.4),
          inset 0 0 0 1px rgba(255, 255, 255, 0.02); /* Subtle inner stroke */
      min-height: 96px;
      transform-style: preserve-3d;
      overflow: hidden; /* For shine effect */
  }
  
  /* Shine Effect on Hover */
  .hero-module-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.05),
          transparent
      );
      transition: 0.5s;
      pointer-events: none;
  }
  
  .hero-module-card:hover::before {
      left: 100%;
  }
  
  .hero-module-card:hover {
      transform: translateZ(30px) scale(1.02);
      background: rgba(25, 25, 35, 0.8);
      border-color: rgba(0, 229, 255, 0.3);
      box-shadow: 
          0 20px 40px rgba(0, 0, 0, 0.5),
          0 0 20px rgba(0, 229, 255, 0.1);
      z-index: 100;
  }
  
  /* Module Icon Styling */
  .module-icon {
      width: 56px;
      height: 56px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      flex-shrink: 0;
      position: relative;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.05);
      transition: all 0.3s ease;
  }
  
  .module-icon i {
      background: linear-gradient(135deg, #fff, #aaa);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  }
  
  /* Specific Icon Colors */
  .membership-module .module-icon {
      background: radial-gradient(circle at top left, rgba(255, 215, 0, 0.15), rgba(0,0,0,0));
      border-color: rgba(255, 215, 0, 0.2);
  }
  .membership-module .module-icon i {
      background: linear-gradient(135deg, #FFD700, #FFA500);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
  }
  
  .module-consult .module-icon { /* Using class selector properly */
      background: radial-gradient(circle at top left, rgba(0, 229, 255, 0.15), rgba(0,0,0,0));
      border-color: rgba(0, 229, 255, 0.2);
  }
  .module-consult .module-icon i {
      background: linear-gradient(135deg, #00E5FF, #0099FF);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
  }
  
  .module-service .module-icon {
      background: radial-gradient(circle at top left, rgba(180, 0, 255, 0.15), rgba(0,0,0,0));
      border-color: rgba(180, 0, 255, 0.2);
  }
  .module-service .module-icon i {
      background: linear-gradient(135deg, #E0AAFF, #7B2CBF);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
  }
  
  
  /* Content Styling */
  .module-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 4px;
  }
  
  .module-content h3 {
      font-size: 17px;
      font-weight: 600;
      color: #fff;
      margin: 0;
      letter-spacing: 0.5px;
      text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  }
  
  .module-content p {
      font-size: 13px;
      color: rgba(255, 255, 255, 0.9); /* Brighter description */
      margin: 0;
      font-weight: 500;
  }
  
  .module-content .sub-text {
      font-size: 12px;
      color: rgba(255, 255, 255, 0.5);
      margin-top: 2px;
  }
  
  /* Action Arrow */
  .module-action {
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.05);
      color: rgba(255, 255, 255, 0.4);
      transition: all 0.3s ease;
  }
  
  .hero-module-card:hover .module-action {
      background: var(--accent-color);
      color: #000;
      transform: translateX(4px);
      box-shadow: 0 0 15px var(--accent-color);
  }
  
  /* Specific Module Positioning & Animation (Zig-Zag) */
  
  /* 1. Membership (Left Aligned) */
  .membership-module {
      align-self: flex-start;
      margin-left: 10px;
      background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(0, 0, 0, 0.95));
      border: 1px solid rgba(255, 255, 255, 0.15);
      animation: float-v-1 6s ease-in-out infinite;
  }
  
  /* 2. Consult (Right Aligned) */
  .module-consult {
      align-self: flex-end;
      margin-right: 10px;
      animation: float-v-2 7s ease-in-out infinite 1s;
  }
  
  /* 3. Service (Left Aligned) */
  .module-service {
      align-self: flex-start;
      margin-left: 20px; /* Slightly different indent */
      animation: float-v-3 8s ease-in-out infinite 0.5s;
  }
  
  /* Floating Animations (Vertical Only) */
  @keyframes float-v-1 {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
  }
  
  @keyframes float-v-2 {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-12px); }
  }
  
  @keyframes float-v-3 {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
  }
  
  .membership-module:hover {
      background: linear-gradient(135deg, rgba(40, 40, 40, 0.95), rgba(10, 10, 10, 0.98));
  }
  
  
  
  @keyframes breathe {
      0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
      50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
  }
  
  @keyframes float-pill {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
  }
  
  /* Notice */
  .hero-footer-notice {
      margin-top: 20px; /* Reduced from 40px */
      display: flex;
      justify-content: center;
      position: relative;
      z-index: 10;
      width: 100%;
  }
  
  .materials-notice {
      display: inline-block;
      background: rgba(255, 77, 79, 0.1);
      border: 1px solid rgba(255, 77, 79, 0.3);
      padding: 10px 30px;
      border-radius: 50px; /* Fully rounded for centered pill shape */
      backdrop-filter: blur(5px);
  }
  
  .materials-notice p {
      color: rgba(255, 255, 255, 0.9);
      font-size: 14px;
      margin: 0;
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 500;
  }
  
  .materials-notice i {
      color: #ff4d4f;
      font-size: 16px;
  }
  
  @media (max-width: 992px) {
      .hero-flex-container {
          flex-direction: column;
          text-align: center;
      }
      .materials-notice p {
      font-size: 8px;
      }
      .hero-content {
          text-align: center;
          max-width: 100%;
      }
      .hero-search-wrapper {
          margin: 0 auto 30px;
      }
      .materials-hero .description {
          margin: 0 auto 30px;
      }
      .hero-visual-spacer {
          display: none;
      }
      .glass-showcase-container {
          display: none;
      }
      .hero-footer-notice {
      margin-top: -100px; /* Reduced from 40px */
      }
  }
  
  @media (max-width: 480px) {
    .materials-hero h1 {
    font-size: 32px;
    }
    .materials-hero .description {
      font-size: 10px;
    }
}
  
  /* Elegant Filter Bar Styles */
  .elegant-filter-bar {
      background: #1e1e1e;
      border-radius: 16px;
      padding: 10px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 40px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      border: 1px solid rgba(255, 255, 255, 0.05);
      flex-wrap: wrap;
      gap: 15px;
  }
  
  .filter-left {
      display: flex;
      align-items: center;
      gap: 15px;
      flex: 1;
      overflow-x: auto;
      padding-bottom: 5px; /* Scrollbar spacing */
  }
  
  /* Hide scrollbar */
  .filter-left::-webkit-scrollbar {
      height: 0;
      width: 0;
  }
  
  .filter-label {
      color: var(--text-muted);
      font-size: 14px;
      font-weight: 600;
      white-space: nowrap;
      display: flex;
      align-items: center;
      gap: 8px;
  }
  
  .elegant-tabs {
      display: flex;
      gap: 8px;
  }
  
  .tab-item {
      padding: 8px 16px;
      border-radius: 8px;
      color: var(--text-muted);
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
      background: transparent;
      border: 1px solid transparent;
  }
  
  .tab-item:hover {
      color: #fff;
      background: rgba(255, 255, 255, 0.05);
  }
  
  .tab-item.active {
      background: var(--accent-color);
      color: #000;
      font-weight: 700;
      box-shadow: 0 4px 12px rgba(0, 229, 255, 0.2);
  }
  
  .filter-right {
      display: flex;
      align-items: center;
  }
  
  .elegant-search {
      background: #141414;
      border-radius: 50px;
      padding: 5px 5px 5px 15px;
      display: flex;
      align-items: center;
      border: 1px solid rgba(255, 255, 255, 0.1);
      transition: all 0.3s;
      width: 240px;
  }
  
  .elegant-search:focus-within {
      border-color: var(--accent-color);
      box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
  }
  
  .elegant-search i {
      color: var(--text-muted);
      margin-right: 10px;
  }
  
  .elegant-search input {
      background: transparent;
      border: none;
      color: #fff;
      width: 100%;
      outline: none;
      font-size: 14px;
  }
  
  .elegant-search-btn {
      background: var(--accent-color);
      color: #000;
      border: none;
      border-radius: 50px;
      padding: 6px 15px;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.3s;
  }
  
  .elegant-search-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
  }
  
  /* Elegant Back Button */
  .elegant-back-btn {
      background: rgba(255, 255, 255, 0.05);
      color: var(--text-color);
      border: 1px solid rgba(255, 255, 255, 0.1);
      padding: 8px 16px;
      border-radius: 50px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      margin-left: 15px;
  }
  
  .elegant-back-btn:hover {
      background: rgba(0, 229, 255, 0.15);
      border-color: rgba(0, 229, 255, 0.4);
      color: #fff;
      transform: translateX(-3px);
      box-shadow: 0 4px 12px rgba(0, 229, 255, 0.15);
  }
  
  .elegant-back-btn i {
      font-size: 12px;
      transition: transform 0.3s ease;
  }
  
  .elegant-back-btn:hover i {
      transform: translateX(-2px);
  }
  
  @media (max-width: 768px) {
      .elegant-filter-bar {
          flex-direction: column;
          align-items: stretch;
          padding: 15px;
      }
      
      .filter-left {
          width: 100%;
          margin-bottom: 15px;
          -webkit-overflow-scrolling: touch; /* Smooth scrolling */
          padding-bottom: 5px;
      }
  
      .filter-label {
          display: none; /* Hide label on mobile to save space */
      }
      
      .elegant-tabs {
          gap: 10px;
          width: 100%; /* Ensure tabs take full width */
      }
  
      .tab-item {
          flex-shrink: 0; /* Prevent shrinking */
          padding: 10px 20px; /* Larger touch target */
          background: rgba(255, 255, 255, 0.03); /* Subtle background */
          border: 1px solid rgba(255, 255, 255, 0.05);
          font-size: 15px; /* Slightly larger text */
      }
  
      .tab-item.active {
          background: var(--accent-color);
          color: #000;
          border-color: var(--accent-color);
          box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
      }
      
      .filter-right {
          width: 100%;
      }
      
      .elegant-search {
          width: 100%;
      }
  }
  
  /* Click feedback for all devices */
  .tab-item:active {
      transform: scale(0.95);
  }
  
  /* Material Cards */
  .material-card {
      position: relative; /* Required for absolute badges */
      background: #0a0a0a; /* Darker solid background for Cyberpunk look */
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px; /* Slightly tighter radius */
      overflow: hidden;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: pointer;
      display: flex;
      flex-direction: column;
  }
  
  .material-card:hover {
      transform: translateY(-5px);
      background: #141414;
      border-color: var(--accent-color);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  
  /* Badges Styling */
  .badge-copyright, .badge-new, .badge-exclusive {
      position: absolute;
      top: 10px;
      padding: 4px 8px;
      border-radius: 6px;
      font-size: 11px;
      font-weight: 700;
      z-index: 10;
      box-shadow: 0 2px 5px rgba(0,0,0,0.3);
      backdrop-filter: blur(4px);
  }
  
  .badge-copyright {
      right: 10px;
      background: rgba(0, 229, 255, 0.2);
      border: 1px solid rgba(0, 229, 255, 0.4);
      color: #00e5ff;
  }
  
  .badge-new {
      left: 10px;
      background: rgba(255, 50, 50, 0.8);
      color: #fff;
      border: none;
  }
  
  .badge-exclusive {
      right: 10px; /* If both exist, layout needs adjustment, usually exclusive overrides copyright or stacks */
      background: linear-gradient(135deg, #FFD700, #FFA500);
      color: #000;
  }
  
  /* Stack badges if multiple exist */
  .material-card:has(.badge-copyright) .badge-exclusive {
      right: 50px; /* Simple offset for now, better to use flex container for badges if needed */
  }
  
  .material-preview {
      width: 100%;
      aspect-ratio: 16/9;
      object-fit: cover;
      background: #1a1a1a;
      transition: transform 0.5s ease;
  }
  
  .material-card:hover .material-preview {
      transform: scale(1.05);
  }
  
  .material-info {
      padding: 12px 14px;
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      gap: 2px;
      background: transparent; /* Clean background */
  }
  
  .material-title {
      font-size: 14px;
      font-weight: 600;
      color: #fff;
      margin: 0;
      line-height: 1.4;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 70%; /* Reserve space for badge */
  }
  
  /* Special Info Row */
  .special-info-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: auto;
  }
  
  .special-text {
      font-size: 12px;
      color: var(--accent-color);
      background: rgba(0, 229, 255, 0.1);
      padding: 2px 6px;
      border-radius: 4px;
  }
  
  /* Item Card Tutorial Overlay */
  .material-preview-wrapper {
      position: relative;
      overflow: hidden;
  }
  
  
  
  /* Special Text Badges - Redesigned for Image Style */
  .material-title-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      margin-bottom: 6px;
  }
  
  .tag-yellow {
      background: #FFD700;
      color: #000;
      font-size: 11px;
      font-weight: 800;
      padding: 2px 8px;
      border-radius: 4px;
      line-height: 1.4;
      letter-spacing: 0.5px;
  }
  
  .tag-teal {
      background: rgba(0, 50, 60, 0.8);
      color: #00bcd4;
      border: 1px solid rgba(0, 188, 212, 0.3);
      font-size: 11px;
      padding: 2px 8px;
      border-radius: 4px;
      display: inline-block;
  }
  
  .material-sub-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
  }
  
  .material-views-text {
      font-size: 11px;
      color: rgba(255, 255, 255, 0.3);
      font-family: monospace;
  }
  
  /* Deprecated/Legacy Tag Styles (kept for compatibility if needed) */
  .material-tags {
      display: flex;
      gap: 6px;
      margin-bottom: 8px;
      display: none; /* Hide old tags container */
  }
  
  /* ====================
     Album Card (Sub-Category) Styles
     ==================== */
  .album-card {
      position: relative;
      background: #141414; /* Darker solid background */
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 20px;
      overflow: hidden;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: pointer;
      display: flex;
      flex-direction: column;
      padding: 12px;
      gap: 12px;
  }
  
  .album-card:hover {
      transform: translateY(-5px);
      background: #1a1a1a;
      border-color: var(--accent-color);
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  }
  
  .album-cover-wrapper {
      position: relative;
      width: 100%;
      aspect-ratio: 16/9; /* Standard widescreen */
      overflow: hidden;
      border-radius: 12px;
  }
  
  /* Remove old stack effect */
  .album-cover-wrapper::before {
      display: none;
  }
  
  .album-cover {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
      filter: brightness(0.9);
  }
  
  .album-card:hover .album-cover {
      transform: scale(1.05);
      filter: brightness(1);
  }
  
  /* "Album" Tag - Top Left Overlay */
  .album-tag {
      position: absolute;
      top: 10px;
      left: 10px;
      background: rgba(0, 229, 255, 0.15);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      border: 1px solid rgba(0, 229, 255, 0.3);
      color: var(--accent-color);
      padding: 4px 12px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 700;
      z-index: 10;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  .album-info {
      padding: 0 4px 4px 4px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      position: relative;
  }
  
  .album-title {
      font-size: 18px;
      font-weight: 700;
      color: #fff;
      margin: 0;
      line-height: 1.3;
  }
  
  .album-meta {
      font-size: 13px;
      color: rgba(255, 255, 255, 0.5);
      display: flex;
      align-items: center;
      gap: 6px;
  }
  
  .album-arrow-btn {
      position: absolute;
      bottom: 0;
      right: 0;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      color: rgba(255, 255, 255, 0.6);
      transition: all 0.3s ease;
  }
  
  .album-card:hover .album-arrow-btn {
      background: var(--accent-color);
      color: #000;
  }
  
  /* Utilities for Grid switching */
  .hidden {
      display: none !important;
  }
  
  /* Pagination Styles - Redesigned v2.0 */
  .pagination-container {
      /* Container as the pill */
      display: flex;
      align-items: center;
      justify-content: center;
      width: fit-content;
      margin: 60px auto; /* Center horizontally */
      
      gap: 8px;
      padding: 8px 16px;
      background: rgba(10, 10, 10, 0.6);
      border-radius: 50px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(12px);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
      position: relative;
  }
  
  .page-item {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: 1px solid transparent;
      border-radius: 50%;
      color: rgba(255, 255, 255, 0.5);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      position: relative;
      overflow: hidden;
  }
  
  .page-item:hover:not(.disabled) {
      color: #fff;
      background: rgba(255, 255, 255, 0.05);
      transform: translateY(-2px);
  }
  
  .page-item.active {
      background: var(--accent-color);
      color: #000;
      box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
      transform: scale(1.1);
      z-index: 1;
  }
  
  .page-item.disabled {
      opacity: 0.3;
      cursor: not-allowed;
      pointer-events: none;
  }
  
  .page-item.placeholder {
      cursor: default;
      color: rgba(255, 255, 255, 0.3); /* Matches disabled opacity but semantic naming */
      pointer-events: none;
      letter-spacing: 2px; /* Widen the dots slightly */
  }
  
  /* Ellipsis specific style */
  .page-item:not(.active):not(.disabled):not(:hover) {
      /* Subtle separation if needed, but transparent is fine */
  }
  
  /* Add a subtle glow line at the bottom of the container */
  .pagination-container::after {
      content: '';
      position: absolute;
      bottom: -1px;
      left: 20%;
      width: 60%;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
      opacity: 0.5;
  }
  
  /* Material Detail Modal - v2.0 Glassmorphism Redesign */
  /* Overlay Wrapper */
  .material-modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1000;
      background-color: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(8px);
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      overflow-y: auto;
      display: flex;
      align-items: flex-start;
      justify-content: center;
  }
  
  .material-modal-overlay.active {
      opacity: 1;
      visibility: visible;
  }
  
  /* Modal Window */
  .material-modal {
      position: relative;
      width: 90%;
      max-width: 1200px;
      margin: 40px auto;
      background: rgba(20, 20, 20, 0.95);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 24px;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
      overflow: hidden;
      transform: translateY(30px) scale(0.98);
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .material-modal-overlay.active .material-modal {
      transform: translateY(0) scale(1);
  }
  
  /* Inner Layout */
  .modal-body-container {
      display: flex;
      flex-direction: row;
      min-height: 600px;
  }
  
  @media (max-width: 900px) {
      .modal-body-container {
          flex-direction: column;
      }
  }
  
  @keyframes modalSlideIn {
      from {
          transform: translateY(30px) scale(0.98);
          opacity: 0;
      }
      to {
          transform: translateY(0) scale(1);
          opacity: 1;
      }
  }
  
  .modal-close-btn {
      position: absolute;
      top: 20px;
      right: 20px;
      width: 40px;
      height: 40px;
      background: rgba(255, 255, 255, 0.1);
      border: none;
      border-radius: 50%;
      color: #fff;
      font-size: 18px;
      cursor: pointer;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      backdrop-filter: blur(4px);
  }
  
  .modal-close-btn:hover {
      background: rgba(255, 0, 0, 0.2);
      color: #ff4d4f;
      transform: rotate(90deg);
  }
  
  /* Content Stream (Left Column) */
  .modal-content-stream {
      flex: 1;
      padding: 40px;
      border-right: 1px solid rgba(255, 255, 255, 0.05);
      overflow-y: auto;
  }
  
  /* Header */
  .stream-header {
      margin-bottom: 30px;
  }
  
  .category-breadcrumbs {
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 10px;
  }
  
  .category-breadcrumbs i {
      font-size: 10px;
      margin: 0 5px;
  }
  
  .stream-title {
      font-size: 32px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 15px;
      line-height: 1.2;
  }
  
  .stream-meta-row {
      display: flex;
      align-items: center;
      gap: 20px;
      font-size: 14px;
      color: var(--text-muted);
  }
  
  .meta-tags {
      display: flex;
      gap: 8px;
      margin-left: auto;
  }
  
  .modal-tag {
      padding: 4px 10px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 600;
  }
  
  .tag-copyright { background: rgba(0, 229, 255, 0.1); color: #00e5ff; }
  .tag-exclusive { background: rgba(255, 215, 0, 0.1); color: #ffd700; }
  .tag-new { background: rgba(255, 50, 50, 0.1); color: #ff3232; }
  
  /* Main Media */
  .stream-main-media {
      position: relative;
      border-radius: 12px;
      overflow: hidden;
      margin-bottom: 40px;
      background: #000;
      border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .main-media-content {
      width: 100%;
      height: auto;
      display: block;
      max-height: 650px;
      object-fit: contain;
  }
  
  .media-type-badge {
      position: absolute;
      bottom: 10px;
      right: 10px;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(4px);
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 12px;
      color: #fff;
  }
  
  /* Rich Text */
  .stream-rich-text {
      color: var(--text-color);
      line-height: 1.8;
      margin-bottom: 40px;
  }
  
  .stream-rich-text h3 {
      font-size: 20px;
      color: #fff;
      margin: 30px 0 15px;
      display: flex;
      align-items: center;
      gap: 10px;
  }
  
  .stream-rich-text h3 i {
      color: var(--accent-color);
  }
  
  .stream-rich-text p {
      margin-bottom: 15px;
  }
  
  .stream-rich-text img {
      max-width: 100%;
      border-radius: 8px;
      margin: 20px 0;
  }
  
  /* Sidebar */
  .modal-sidebar {
      width: 360px;
      background: rgba(18, 18, 18, 0.6);
      padding: 30px;
      flex-shrink: 0;
  }
  
  .sidebar-sticky-wrapper {
      position: sticky;
      top: 30px;
      display: flex;
      flex-direction: column;
      gap: 20px;
  }
  
  /* Purchase Card */
  .purchase-card {
      background: rgba(30, 30, 30, 0.8);
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      overflow: hidden;
  }
  
  .card-header-gradient {
      background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
      color: #000;
      padding: 12px 20px;
      font-weight: 700;
      font-size: 14px;
      display: flex;
      align-items: center;
      gap: 8px;
  }
  
  .card-body {
      padding: 20px;
  }
  
  .price-display {
      margin-bottom: 20px;
  }
  
  .price-display .currency {
      font-size: 20px;
      color: var(--accent-color);
  }
  
  .price-display .amount {
      font-size: 36px;
      font-weight: 800;
      color: #fff;
      margin-right: 10px;
  }
  
  .price-display .original-price {
      text-decoration: line-through;
      color: var(--text-muted);
  }
  
  .rights-list {
      list-style: none;
      padding: 0;
      margin-bottom: 25px;
  }
  
  .rights-list li {
      margin-bottom: 10px;
      font-size: 13px;
      color: var(--text-color);
      display: flex;
      align-items: center;
      gap: 10px;
  }
  
  .rights-list li i {
      color: var(--accent-color);
  }
  
  .btn-purchase-action {
      width: 100%;
      padding: 14px;
      background: var(--accent-color);
      border: none;
      border-radius: 12px;
      color: #000;
      font-weight: 700;
      font-size: 16px;
      cursor: pointer;
      transition: all 0.3s;
  }
  
  .btn-purchase-action:hover {
      background: #00b8d4;
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(0, 229, 255, 0.3);
  }
  
  .btn-download-action {
      width: 100%;
      padding: 14px;
      background: #28c76f;
      border: none;
      border-radius: 12px;
      color: #fff;
      font-weight: 700;
      font-size: 16px;
      cursor: pointer;
      transition: all 0.3s;
      margin-top: 10px;
  }
  
  .btn-download-action:hover {
      background: #3dd682;
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(40, 199, 111, 0.3);
  }
  
  .download-area {
      text-align: center;
  }
  
  .success-message {
      color: #28c76f;
      margin-bottom: 15px;
      font-weight: 600;
  }
  
  .file-info-text {
      margin-top: 10px;
      font-size: 12px;
      color: var(--text-muted);
  }
  
  .card-footer-secure {
      background: rgba(0, 0, 0, 0.2);
      padding: 10px;
      text-align: center;
      font-size: 12px;
      color: var(--text-muted);
  }
  
  /* Detail Grid */
  .detail-grid-v3 {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
      gap: 15px;
      margin-top: 20px;
  }
  
  .detail-img-item {
      width: 100%;
      aspect-ratio: 1;
      object-fit: cover;
      border-radius: 8px;
      cursor: pointer;
      border: 2px solid transparent;
      transition: all 0.2s;
  }
  
  .detail-img-item:hover {
      border-color: var(--accent-color);
      transform: scale(1.05);
  }
  
  /* Mobile Responsive */
  @media (max-width: 900px) {
      .modal-sidebar {
          width: 100%;
          order: 1;
          padding: 20px;
      }
      
      .sidebar-sticky-wrapper {
          position: static;
      }
      
      .modal-content-stream {
          border-right: none;
          padding: 20px;
      }
  }
  
  /* Materials Section Title Layout */
  .section-title {
      width: auto;
      white-space: nowrap;
  }
  
  
  
  /* ====================
     Back to Top Button
     ==================== */
  .floating-back-to-top {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: rgba(18, 18, 24, 0.8);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: var(--accent-color);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      cursor: pointer;
      z-index: 999;
      backdrop-filter: blur(10px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      opacity: 0;
      visibility: hidden;
      transform: translateY(20px);
  }
  
  .floating-back-to-top.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
  }
  
  .floating-back-to-top:hover {
      background: var(--accent-color);
      color: #000;
      transform: translateY(-5px);
      box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
  }
  
  @media (max-width: 768px) {
      .floating-back-to-top {
          bottom: 20px;
          right: 20px;
          width: 44px;
          height: 44px;
          font-size: 18px;
      }
  }

/* Materials Page Grid Layout Override */
#albumGrid {
    grid-template-columns: repeat(3, 1fr);
}

#itemGrid {
    grid-template-columns: repeat(3, 1fr);
}

/* Maintain responsiveness */
@media (max-width: 992px) {
    .project-grid, #albumGrid, #itemGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .project-grid, #albumGrid, #itemGrid {
        grid-template-columns: 1fr;
    }
}
