.referral-page {
  min-height: 100vh;
  background-color: #f5f5f7;
}

.stats-section {
  padding: 24px 16px;
  color: #fff;
  
  .stats-title {
    margin-bottom: 16px;
    text-align: center;
  }
  
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    
    .stat-item {
      text-align: center;
      
      .stat-value {
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 4px;
      }
      
      .stat-label {
        font-size: 12px;
      }
    }
  }
}

.form-section {
  padding: 0 16px 16px;
  
  .section-title {
    margin-bottom: 12px;
  }
  
  .form-card {
    background: #fff;
    border-radius: 12px;
    padding: 8px 0;
    
    .nut-input-text {
      flex: 1;
      text-align: right;
    }
    
    .submit-btn {
      padding: 16px;
      
      button {
        width: 100%;
        border-radius: 8px;
        height: 44px;
        line-height: 44px;
      }
    }
    
    .tips {
      padding: 0 16px 16px;
      text-align: center;
    }
  }
}

.records-section {
  padding: 0 16px 16px;
  
  .section-title {
    margin-bottom: 12px;
  }
  
  .empty-state {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  
  .record-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    
    .record-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      
      .customer-info {
        display: flex;
        align-items: center;
      }
      
      .status-tag {
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 500;
      }
    }
    
    .record-body {
      .record-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        
        &:not(:last-child) {
          border-bottom: 1px solid #f0f0f0;
        }
      }
    }
  }
  
  .no-more {
    text-align: center;
    padding: 16px;
  }
}
