.page-container {
  min-height: 100vh;
  background-color: #050505;
  color: #fff;
  padding: 30px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 185, 107, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 185, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 185, 107, 0); }
}

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

.profile-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  
  .card-bg-effect {
      position: absolute;
      top: -50%;
      right: -20%;
      width: 200px;
      height: 200px;
      background: radial-gradient(circle, rgba(0, 185, 107, 0.2) 0%, transparent 70%);
      filter: blur(40px);
      z-index: 0;
  }

  .avatar-container {
      position: relative;
      margin-right: 30px;
      z-index: 1;
      
      .avatar {
          width: 120px;
          height: 120px;
          border-radius: 60px;
          border: 2px solid rgba(0, 185, 107, 0.5);
          background: #000;
      }
      
      .online-dot {
          position: absolute;
          bottom: 5px;
          right: 5px;
          width: 24px;
          height: 24px;
          background: #00b96b;
          border-radius: 50%;
          border: 3px solid #111;
          animation: pulse 2s infinite;
      }
  }

  .info-col {
      flex: 1;
      z-index: 1;
      display: flex;
      flex-direction: column;
      
      .nickname {
          font-size: 36px;
          font-weight: bold;
          color: #fff;
          margin-bottom: 8px;
          text-shadow: 0 0 10px rgba(0,0,0,0.5);
      }
      
      .uid {
          font-size: 24px;
          color: #666;
          margin-bottom: 20px;
          font-family: monospace;
      }
      
      .btn-login {
          background: rgba(0, 185, 107, 0.2);
          border: 1px solid #00b96b;
          color: #00b96b;
          font-size: 24px;
          border-radius: 30px;
          padding: 0 30px;
          height: 60px;
          line-height: 58px;
          margin: 0;
          width: fit-content;
          
          &:active { background: rgba(0, 185, 107, 0.3); }
      }
  }
}

.stats-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 10px;
    
    .stat-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        
        .stat-val { font-size: 36px; font-weight: bold; color: #fff; margin-bottom: 5px; }
        .stat-lbl { font-size: 24px; color: #666; }
    }
}

.service-container {
    padding-bottom: 40px;
    
    .service-group {
        margin-bottom: 40px;
        
        .group-title {
            display: block;
            font-size: 32px;
            font-weight: bold;
            color: #fff;
            margin-bottom: 20px;
            padding-left: 10px;
            border-left: 4px solid #00b96b;
            line-height: 1;
        }
        
        .grid-layout {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            
            .grid-item {
                width: calc(33.33% - 14px); // 3 items per row, accounting for gap
                background: rgba(255, 255, 255, 0.03);
                border: 1px solid rgba(255, 255, 255, 0.05);
                border-radius: 20px;
                padding: 30px 10px;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                position: relative;
                box-sizing: border-box;
                backdrop-filter: blur(10px);
                transition: all 0.2s ease;
                
                &:active {
                    background: rgba(255, 255, 255, 0.08);
                    transform: scale(0.95);
                }
                
                .icon-box {
                    width: 80px;
                    height: 80px;
                    border-radius: 50%;
                    background: rgba(0, 185, 107, 0.1);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    margin-bottom: 16px;
                    
                    .icon { font-size: 40px; }
                }
                
                .item-title {
                    font-size: 26px;
                    color: #ddd;
                    text-align: center;
                }
                
                .contact-overlay {
                    position: absolute;
                    top: 0; left: 0; right: 0; bottom: 0;
                    opacity: 0;
                }
            }
        }
    }
}

.version-info {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    
    text {
        font-size: 20px;
        color: #333;
    }
}

/* Login Modal Styles */
.login-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-modal-content {
    width: 600px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);

    .modal-header {
        margin-bottom: 60px;
        text-align: center;
        
        .modal-title {
            display: block;
            font-size: 40px;
            font-weight: bold;
            color: #fff;
            margin-bottom: 16px;
        }
        
        .modal-subtitle {
            font-size: 28px;
            color: #888;
        }
    }
    
    .modal-body {
        width: 100%;
        
        .btn-modal-login {
            width: 100%;
            height: 90px;
            line-height: 90px;
            border-radius: 45px;
            font-size: 32px;
            margin-bottom: 40px;
            background: #333;
            color: #888;
            border: none;
            
            &.primary {
                background: linear-gradient(90deg, #00b96b 0%, #009959 100%);
                color: #fff;
                box-shadow: 0 8px 20px rgba(0, 185, 107, 0.3);
                
                &:active {
                    transform: scale(0.98);
                }
            }
        }
        
        .agreement-box {
            display: flex;
            align-items: flex-start;
            justify-content: center;
            
            .agreement-checkbox {
                transform: scale(0.7);
                margin-top: -4px;
            }
            
            .agreement-text {
                font-size: 24px;
                color: #888;
                line-height: 1.4;
                
                .link {
                    color: #00b96b;
                    display: inline;
                }
            }
        }
    }
}

/* Agreement Detail Modal */
.agreement-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agreement-content {
    width: 600px;
    height: 80vh;
    background: #fff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    
    .agreement-title {
        font-size: 36px;
        font-weight: bold;
        color: #333;
        padding: 30px;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    
    .agreement-scroll {
        flex: 1;
        padding: 30px;
        overflow-y: auto;
        
        .p {
            margin-bottom: 20px;
            font-size: 28px;
            color: #666;
            line-height: 1.6;
        }
    }
    
    .btn-close {
        height: 100px;
        line-height: 100px;
        text-align: center;
        background: #f5f5f5;
        color: #00b96b;
        font-size: 32px;
        font-weight: bold;
        border-radius: 0;
        
        &:active {
            background: #eee;
        }
    }
}
