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

  .topic-card {
    background: #1e1e1e;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 24px 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);

    .header {
      margin-bottom: 24px;

      .title {
        font-size: 32px; /* Increased from 28px */
        font-weight: 800;
        color: #fff;
        margin-bottom: 20px;
        line-height: 1.4;
        letter-spacing: -0.5px;
      }

      .meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        color: #888;
        font-size: 14px; /* Increased from 13px */

        .author {
          display: flex;
          align-items: center;
          gap: 10px;
          background: rgba(255,255,255,0.05);
          padding: 6px 12px 6px 6px;
          border-radius: 20px;

          .avatar {
            width: 32px; /* Larger avatar */
            height: 32px;
            border-radius: 50%;
            border: 1px solid rgba(255,255,255,0.1);
          }
          
          .verified {
             color: #00b96b;
             font-size: 16px;
             margin-left: 2px;
          }
        }

        .like-btn {
          display: flex;
          align-items: center;
          margin-left: auto; /* Push to right or keep left */
          padding: 6px 14px;
          border-radius: 20px;
          background-color: rgba(255, 255, 255, 0.08);
          border: 1px solid rgba(255, 255, 255, 0.05);
          transition: all 0.3s;

          &.active {
            background-color: rgba(255, 77, 79, 0.15);
            border-color: rgba(255, 77, 79, 0.3);
            
            text { color: #ff4d4f !important; }
          }

          text {
            color: #888;
            font-size: 14px;
            margin-left: 6px;
            font-weight: 600;
          }
        }
      }
    }

    .content {
      font-size: 20px; /* Increased from 18px */
      line-height: 1.9; /* Improved readability */
      color: #e0e0e0;
      letter-spacing: 0.3px;
      
      image {
        max-width: 100%;
        border-radius: 12px;
        margin: 24px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
      }
      
      /* Markdown styling enhancements */
      h1, h2, h3, h4, h5, h6 { margin-top: 32px; margin-bottom: 20px; color: #fff; font-weight: 700; line-height: 1.4; }
      h1 { font-size: 28px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 12px; }
      h2 { font-size: 24px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 8px; }
      h3 { font-size: 22px; }
      h4 { font-size: 20px; }
      h5 { font-size: 18px; color: #ddd; }
      
      p { margin-bottom: 24px; }
      
      strong { font-weight: 800; color: #fff; }
      em { font-style: italic; color: #aaa; }
      del { text-decoration: line-through; color: #666; }
      
      ul, ol { margin-bottom: 24px; padding-left: 20px; }
      li { margin-bottom: 8px; list-style-position: outside; }
      ul li { list-style-type: disc; }
      ol li { list-style-type: decimal; }
      
      /* Task lists */
      li input[type="checkbox"] { margin-right: 8px; }

      blockquote {
          border-left: 4px solid #00b96b;
          background: rgba(255, 255, 255, 0.05);
          padding: 16px 20px;
          margin: 24px 0;
          border-radius: 4px;
          color: #bbb;
          font-size: 18px;
          font-style: italic;
          
          p { margin-bottom: 0; }
      }
      
      a { color: #00b96b; 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: 40px 0;
      }
      
      table {
          width: 100%;
          border-collapse: collapse;
          margin: 24px 0;
          font-size: 16px;
          overflow-x: auto;
          display: block;
          
          th, td {
              border: 1px solid rgba(255,255,255,0.1);
              padding: 12px;
              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: 4px 8px;
          border-radius: 4px;
          font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
          color: #ff7875;
          font-size: 16px;
          margin: 0 4px;
      }
      
      pre {
          background: #161616;
          padding: 20px;
          border-radius: 12px;
          overflow-x: auto;
          margin: 24px 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: 15px; 
              margin: 0;
              white-space: pre;
          }
      }
    }

    .media-list {
      margin-top: 24px;
      
      .media-item {
        margin-bottom: 16px;
        
        video {
            width: 100%;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }
      }
    }
  }

  .replies-section {
    padding: 0 16px;

    .section-title {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 20px;
      padding-left: 12px;
      border-left: 4px solid #00b96b;
      color: #fff;
    }

    .reply-card {
      background: #1e1e1e;
      border-radius: 12px;
      padding: 24px; /* Increased padding */
      margin-bottom: 24px;
      display: flex;
      gap: 16px; /* Increased gap */
      border: 1px solid rgba(255,255,255,0.03);
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);

      .avatar {
        width: 44px; /* Larger avatar */
        height: 44px;
        border-radius: 50%;
        flex-shrink: 0;
        border: 1px solid rgba(255,255,255,0.1);
      }

      .reply-main {
        flex: 1;

        .reply-header {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 12px;
            
            .nickname {
                font-weight: 600;
                color: #ddd;
                font-size: 16px; /* Larger nickname */
            }
            
            .time {
                color: #666;
                font-size: 13px;
                background: rgba(255,255,255,0.05);
                padding: 3px 8px;
                border-radius: 4px;
            }
        }

        .reply-content {
            font-size: 17px; /* Larger reply text */
            color: #ccc;
            line-height: 1.8;
            
            image {
                max-width: 100%;
                border-radius: 8px;
                margin-top: 14px;
            }
        }

        .reply-actions {
            display: flex;
            align-items: center;
            margin-top: 12px;

            .reply-like-btn {
                display: flex;
                align-items: center;
                margin-right: 16px;
                padding: 4px 10px;
                border-radius: 12px;
                background-color: rgba(255, 255, 255, 0.03);
                transition: all 0.3s;

                &.active {
                    background-color: rgba(255, 77, 79, 0.12);
                    text { color: #ff4d4f !important; }
                }

                text {
                    font-size: 12px;
                    color: #888;
                    margin-left: 4px;
                    font-weight: 500;
                }
            }

            .reply-to-btn {
                margin-right: 16px;
                padding: 4px 10px;
                background: rgba(255,255,255,0.05);
                border-radius: 12px;
                
                text {
                    font-size: 12px;
                    color: #aaa;
                }
            }
        }
      }
    }
  }

  .reply-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.95); /* More opaque */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);

    .input-wrapper {
      flex: 1;
      background: rgba(255,255,255,0.1);
      border-radius: 26px;
      padding: 14px 20px; /* Larger input area */
      transition: all 0.3s;
      border: 1px solid transparent;

      &:focus-within {
          background: rgba(255,255,255,0.15);
          border-color: rgba(0, 185, 107, 0.5);
      }
      
      input {
          color: #fff;
          width: 100%;
          font-size: 18px; /* Larger text */
      }
    }

    .action-btn {
        width: 48px; /* Larger touch target */
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.2s;

        &:active {
            background: rgba(255,255,255,0.1);
        }
    }

    .send-btn {
        color: #00b96b;
        font-weight: 700;
        font-size: 16px;
        padding: 0 8px;
    }
  }
    
  /* Expert Modal Styles - Tech & Dark Theme */
  .at-float-layout {
      .at-float-layout__overlay {
          background-color: rgba(0, 0, 0, 0.8);
          backdrop-filter: blur(8px);
      }

      .at-float-layout__container {
          background-color: #0f1216 !important; /* Deep dark tech background */
          border-top: 1px solid rgba(0, 185, 107, 0.3); /* Tech green border */
          box-shadow: 0 -10px 40px rgba(0, 185, 107, 0.15);
          border-radius: 24px 24px 0 0; /* More rounded top */

          .layout-header {
              background-color: #15191f;
              border-bottom: 1px solid rgba(255, 255, 255, 0.05);
              padding: 18px 24px;
              
              .layout-header__title {
                  color: #00b96b; /* Tech green */
                  font-size: 18px;
                  font-weight: 700;
                  letter-spacing: 1px;
                  text-shadow: 0 0 10px rgba(0, 185, 107, 0.3);
              }
              
              .layout-header__btn-close {
                  color: #666;
              }
          }
          
          .layout-body {
              background-color: #0f1216;
              padding: 0;
          }
      }
  }

  .expert-modal-content {
      padding: 30px 24px 60px;
      color: #fff;
      background: radial-gradient(circle at 50% 10%, rgba(0, 185, 107, 0.08), transparent 60%);

      .expert-header {
          display: flex;
          flex-direction: column;
          align-items: center;
          margin-bottom: 36px;
          position: relative;
          
          .avatar-container {
              position: relative;
              margin-bottom: 24px;
              
              .expert-avatar {
                  width: 100px;
                  height: 100px;
                  border-radius: 50%;
                  border: 2px solid #ffd700; /* Gold for expert */
                  box-shadow: 0 0 30px rgba(255, 215, 0, 0.25), inset 0 0 10px rgba(255, 215, 0, 0.2);
                  z-index: 2;
                  position: relative;
              }
              
              .avatar-ring {
                  position: absolute;
                  top: -12px; left: -12px; right: -12px; bottom: -12px;
                  border-radius: 50%;
                  border: 1px dashed rgba(255, 215, 0, 0.5);
                  animation: spin 12s linear infinite;
                  z-index: 1;
                  
                  &::after {
                      content: '';
                      position: absolute;
                      top: -6px; left: -6px; right: -6px; bottom: -6px;
                      border-radius: 50%;
                      border: 1px solid rgba(0, 185, 107, 0.3); /* Outer green ring */
                      animation: spin 8s reverse linear infinite;
                  }
              }
          }
          
          .expert-info {
              text-align: center;
              
              .expert-name {
                  font-size: 26px;
                  font-weight: 800;
                  color: #fff;
                  margin-bottom: 12px;
                  text-shadow: 0 0 15px rgba(0, 185, 107, 0.5);
                  letter-spacing: 0.5px;
              }
              
              .expert-title-badge {
                  display: inline-flex;
                  align-items: center;
                  gap: 8px;
                  background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
                  padding: 6px 16px;
                  border-radius: 20px;
                  border: 1px solid rgba(255, 215, 0, 0.4);
                  box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
                  
                  .at-icon {
                      text-shadow: 0 0 5px #ffd700;
                  }
                  
                  text {
                      font-size: 14px;
                      color: #ffd700;
                      font-weight: 700;
                      letter-spacing: 1px;
                  }
              }
          }
      }
      
      .expert-skills-section {
          margin-bottom: 30px;
          background: rgba(255, 255, 255, 0.02);
          border-radius: 20px;
          padding: 24px;
          border: 1px solid rgba(255, 255, 255, 0.06);
          position: relative;
          overflow: hidden;
          
          /* Tech corner accent */
          &::before {
              content: '';
              position: absolute;
              top: 0; left: 0;
              width: 10px; height: 10px;
              border-top: 2px solid #00b96b;
              border-left: 2px solid #00b96b;
              border-radius: 4px 0 0 0;
          }
          
          &::after {
              content: '';
              position: absolute;
              bottom: 0; right: 0;
              width: 10px; height: 10px;
              border-bottom: 2px solid #00b96b;
              border-right: 2px solid #00b96b;
              border-radius: 0 0 4px 0;
          }
          
          .section-label {
              display: flex;
              align-items: center;
              margin-bottom: 20px;
              
              .label-text {
                  font-size: 15px;
                  font-weight: 700;
                  color: #00b96b;
                  margin-right: 12px;
                  text-transform: uppercase;
                  letter-spacing: 1px;
              }
              
              .label-line {
                  flex: 1;
                  height: 1px;
                  background: linear-gradient(90deg, rgba(0, 185, 107, 0.5), transparent);
                  opacity: 0.6;
              }
          }
          
          .skills-grid {
              display: flex;
              flex-wrap: wrap;
              gap: 12px;
              
              .skill-tag {
                  display: flex;
                  align-items: center;
                  background: rgba(0, 185, 107, 0.08);
                  padding: 8px 16px;
                  border-radius: 6px;
                  border: 1px solid rgba(0, 185, 107, 0.25);
                  transition: all 0.3s;
                  position: relative;
                  overflow: hidden;
                  
                  /* Left accent bar */
                  &::before {
                      content: '';
                      position: absolute;
                      top: 0; left: 0; width: 3px; height: 100%;
                      background: #00b96b;
                      opacity: 0.6;
                  }
                  
                  &:active {
                      background: rgba(0, 185, 107, 0.2);
                      transform: scale(0.98);
                      box-shadow: 0 0 10px rgba(0, 185, 107, 0.2);
                  }
                  
                  .skill-icon {
                      width: 20px;
                      height: 20px;
                      margin-right: 8px;
                      filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
                  }
                  
                  .skill-text {
                      font-size: 13px;
                      color: #e0e0e0;
                      font-weight: 500;
                      letter-spacing: 0.5px;
                  }
              }
          }
      }
      
      .expert-action {
          display: flex;
          justify-content: center;
          
          .action-btn {
              width: 100%;
              height: 52px;
              display: flex;
              align-items: center;
              justify-content: center;
              background: linear-gradient(135deg, #00b96b 0%, #009456 100%);
              border-radius: 26px;
              box-shadow: 0 4px 20px rgba(0, 185, 107, 0.3);
              gap: 6px;
              transition: all 0.3s;
              border: 1px solid rgba(255, 255, 255, 0.1);
              
              &:active {
                  transform: scale(0.98);
                  box-shadow: 0 2px 10px rgba(0, 185, 107, 0.2);
              }
              
              text {
                  color: #fff;
                  font-size: 16px;
                  font-weight: 700;
                  letter-spacing: 1px;
              }
          }
      }
  }
}
