.activity-detail-page {
  min-height: 100vh;
  background-color: #050505;
  color: #fff;
  padding-bottom: 100px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  .loading-container, .error-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 16px;
  }

  /* Hero Section */
  .hero-section {
    position: relative;
    height: 380px; /* Enlarge height */
    width: 100%;
    overflow: hidden;

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

    .hero-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(to top, #050505 0%, rgba(5,5,5,0.6) 60%, rgba(0,0,0,0.2) 100%);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 32px; /* More padding */
      box-sizing: border-box;

      .status-tag {
        align-self: flex-start;
        background: var(--primary-cyan, #00f0ff);
        color: #000;
        font-weight: 800;
        padding: 6px 16px; /* Larger tag */
        border-radius: 6px;
        font-size: 16px; /* Larger font */
        margin-bottom: 16px;
        box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
      }

      .hero-title {
        font-size: 36px; /* Larger title */
        font-weight: 900;
        color: #fff;
        text-shadow: 0 4px 15px rgba(0,0,0,0.6);
        line-height: 1.25;
        letter-spacing: 0.5px;
      }
    }
  }

  .main-content {
    padding: 0 32px; /* More side padding */
    transform: translateY(-30px); /* Larger overlap */
    position: relative;
    z-index: 10;
  }

  /* Info Grid */
  .info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px; /* More gap */
    margin-bottom: 40px;

    .info-card {
      background: rgba(255, 255, 255, 0.08); /* Slightly lighter for contrast */
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 20px; /* Rounder */
      padding: 20px; /* More padding */
      display: flex;
      align-items: center;
      box-shadow: 0 8px 20px rgba(0,0,0,0.2);

      .info-text {
        margin-left: 20px;
        display: flex;
        flex-direction: column;

        .label {
          font-size: 14px; /* Larger label */
          color: rgba(255,255,255,0.6);
          margin-bottom: 6px;
        }

        .value {
          font-size: 18px; /* Larger value */
          color: #fff;
          font-weight: 600;
          letter-spacing: 0.3px;
        }
      }
    }
  }

  /* Stats Section */
  .stats-section {
    background: #111;
    border-radius: 24px;
    padding: 28px; /* More padding */
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);

    .stats-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 20px;

      .stats-title {
        font-size: 20px; /* Larger title */
        font-weight: 700;
        color: #fff;
      }

      .stats-count {
        .current {
          font-size: 32px; /* Larger numbers */
          font-weight: 800;
          color: var(--primary-cyan, #00f0ff);
        }
        .divider {
          font-size: 20px;
          color: #666;
          margin: 0 6px;
        }
        .max {
          font-size: 20px;
          color: #888;
        }
      }
    }

    .progress-bar-container {
      height: 12px; /* Thicker bar */
      background: rgba(255,255,255,0.15);
      border-radius: 6px;
      position: relative;
      overflow: hidden;

      .progress-bar {
        height: 100%;
        background: linear-gradient(90deg, #00f0ff, #bd00ff);
        border-radius: 6px;
        transition: width 0.5s ease-out;
        box-shadow: 0 0 10px rgba(189, 0, 255, 0.4);
      }
      
      .progress-glow {
        position: absolute;
        top: 0;
        width: 15px;
        height: 100%;
        background: #fff;
        filter: blur(6px);
        opacity: 0.9;
        transform: translateX(-50%);
        transition: left 0.5s ease-out;
      }
    }
  }

  /* Detail Section */
  .detail-section {
    padding-bottom: 40px;

    .section-header {
      display: flex;
      align-items: center;
      margin-bottom: 30px;

      .title-text {
        font-size: 24px; /* Larger title */
        font-weight: 800;
        color: #fff;
        margin-right: 20px;
        white-space: nowrap;
        letter-spacing: 0.5px;
      }

      .line {
        flex: 1;
        height: 2px; /* Thicker line */
        background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent);
      }
    }

    .rich-text-wrapper {
      color: #ddd; /* Brighter text */
      font-size: 18px; /* Base font size increased */
      line-height: 1.9;
      
      image {
        max-width: 100%;
        border-radius: 16px;
        margin: 20px 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
      }
      
      /* Markdown Styling */
      h1, h2, h3, h4, h5, h6 { margin-top: 32px; margin-bottom: 20px; color: #fff; font-weight: 700; line-height: 1.4; }
      h1 { font-size: 30px; border-bottom: 2px solid rgba(255,255,255,0.1); padding-bottom: 12px; }
      h2 { font-size: 26px; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 10px; }
      h3 { font-size: 22px; }
      
      p { margin-bottom: 20px; }
      
      strong { font-weight: 800; color: #fff; }
      em { font-style: italic; color: #bbb; }
      del { text-decoration: line-through; color: #777; }
      
      ul, ol { margin-bottom: 20px; padding-left: 24px; }
      li { margin-bottom: 10px; list-style-position: outside; }
      ul li { list-style-type: disc; }
      ol li { list-style-type: decimal; }
      
      blockquote {
        border-left: 5px solid var(--primary-cyan, #00f0ff);
        background: rgba(255, 255, 255, 0.08);
        padding: 16px 20px;
        margin: 24px 0;
        border-radius: 8px;
        color: #ccc;
        font-style: italic;
        font-size: 17px;
        
        p { margin-bottom: 0; }
      }

      
      a { color: var(--primary-cyan, #00f0ff); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
      
      hr {
          height: 1px;
          background: rgba(255,255,255,0.1);
          border: none;
          margin: 24px 0;
      }
      
      table {
          width: 100%;
          border-collapse: collapse;
          margin: 16px 0;
          font-size: 14px;
          overflow-x: auto;
          display: block;
          
          th, td {
              border: 1px solid rgba(255,255,255,0.1);
              padding: 10px;
              text-align: left;
          }
          
          th {
              background: rgba(255,255,255,0.05);
              font-weight: 700;
              color: #fff;
          }
          
          tr:nth-child(even) {
              background: rgba(255,255,255,0.02);
          }
      }

      code {
          background: rgba(255,255,255,0.1);
          padding: 3px 6px;
          border-radius: 4px;
          font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
          color: #ff7875;
          font-size: 14px;
          margin: 0 4px;
      }
      
      pre {
          background: #161616;
          padding: 16px;
          border-radius: 12px;
          overflow-x: auto;
          margin: 16px 0;
          border: 1px solid #333;
          box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
          
          code { 
              background: transparent; 
              color: #a6e22e; 
              padding: 0; 
              font-size: 14px; 
              margin: 0;
              white-space: pre;
          }
      }
    }
  }

  /* Footer Action Bar */
  .footer-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95); /* More opaque */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 20px 32px; /* More padding */
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.15);
    z-index: 100;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);

    .left-info {
      display: flex;
      flex-direction: column;

      .price {
        font-size: 28px; /* Larger price */
        font-weight: 800;
        color: var(--primary-cyan, #00f0ff);
        text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
      }

      .desc {
        font-size: 14px; /* Larger desc */
        color: #999;
        margin-top: 4px;
      }
    }

    .action-btn {
      margin: 0;
      padding: 0 48px;
      height: 64px; /* Taller button */
      line-height: 64px;
      border-radius: 32px;
      font-size: 20px; /* Larger font */
      font-weight: 800;
      border: none;
      
      &.active {
        background: linear-gradient(90deg, #00f0ff, #00b96b);
        color: #000;
        box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
        
        &:active {
          transform: scale(0.98);
        }
      }
      
      &.disabled {
        background: rgba(255,255,255,0.15);
        color: #777;
      }
    }
  }
}
